Skip to content

Commit f6eb65d

Browse files
committed
v1.2.0
1 parent 2fd5df9 commit f6eb65d

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

module/nuxt-tawk-to-1.0.0.tgz

-2.95 KB
Binary file not shown.

module/nuxt-tawk-to-1.2.0.tgz

3.27 KB
Binary file not shown.

module/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-tawk-to",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Nuxt 3 module for integrating Tawk.to live chat widget.",
55
"keywords": [
66
"nuxt",

module/src/module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default defineNuxtModule<TawkToConfig>({
1212
defaults: {
1313
propertyId: '',
1414
widgetId: '',
15+
embedId: '',
16+
basePath: '',
17+
autoStart: true,
1518
},
1619
setup(options, nuxt) {
1720
nuxt.options.runtimeConfig.public.tawkModule = options

module/src/runtime/plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ export default defineNuxtPlugin((nuxtApp) => {
1818
nuxtApp.vueApp.use(TawkMessengerVue, {
1919
propertyId: config.propertyId,
2020
widgetId: config.widgetId,
21+
embedId: config.embedId,
22+
basePath: config.basePath,
23+
autoStart: config.autoStart,
2124
})
2225
})

module/src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
interface TawkToConfig {
22
propertyId: string
33
widgetId: string
4+
embedId?: string
5+
basePath?: string
6+
autoStart?: boolean
47
}
58

69
export {

0 commit comments

Comments
 (0)