diff --git a/package.json b/package.json index 9b7ec57..fd36348 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@project-trans/suggestion-box", "type": "module", - "version": "0.1.0", + "version": "0.2.0", "packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b", "description": "Suggestion box for Project Trans", "author": { diff --git a/src/aio.ts b/src/aio.ts index 8f216d9..4ff3873 100644 --- a/src/aio.ts +++ b/src/aio.ts @@ -1,3 +1,17 @@ +import { createApp } from 'vue' import App from './App.vue' -export default App +function mount(props: { + attachImageButtonText?: string + sendButtonText?: string + sendingButtonText?: string + sentSuccessButtonText?: string + sentFailedButtonText?: string + targetUrl?: string + textContentPlaceholder?: string + contactContentPlaceholder?: string +}, rootContainer: string | Element) { + createApp(App, props).mount(rootContainer) +} + +export default mount