@blockspark/chat-widget 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,182 @@
1
+ /**
2
+ * Vue 3 wrapper for the BlockSpark React ChatWidget.
3
+ * Mounts and unmounts the React component and forwards all props.
4
+ */
5
+ export declare const BlockSparkChatWidgetVue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ title: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ subtitle: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ welcomeTitle: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ welcomeMessage: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ welcomeCta: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ showWelcomePopup: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ welcomePopupDelay: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ fallbackWelcomeMessage: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ inputPlaceholder: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ emptyStateMessage: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ debug: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ dfProjectId: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ dfLocation: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ dfAgentId: {
59
+ type: StringConstructor;
60
+ default: undefined;
61
+ };
62
+ serviceAccountKey: {
63
+ type: ObjectConstructor;
64
+ default: undefined;
65
+ };
66
+ accessToken: {
67
+ type: StringConstructor;
68
+ default: undefined;
69
+ };
70
+ languageCode: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ backendBaseUrl: {
75
+ type: StringConstructor;
76
+ default: undefined;
77
+ };
78
+ backendWsUrl: {
79
+ type: StringConstructor;
80
+ default: undefined;
81
+ };
82
+ }>, {
83
+ containerRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
84
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
85
+ title: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ subtitle: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ welcomeTitle: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ welcomeMessage: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ welcomeCta: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ showWelcomePopup: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ welcomePopupDelay: {
110
+ type: NumberConstructor;
111
+ default: number;
112
+ };
113
+ fallbackWelcomeMessage: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ inputPlaceholder: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ emptyStateMessage: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ debug: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ dfProjectId: {
130
+ type: StringConstructor;
131
+ default: undefined;
132
+ };
133
+ dfLocation: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ dfAgentId: {
138
+ type: StringConstructor;
139
+ default: undefined;
140
+ };
141
+ serviceAccountKey: {
142
+ type: ObjectConstructor;
143
+ default: undefined;
144
+ };
145
+ accessToken: {
146
+ type: StringConstructor;
147
+ default: undefined;
148
+ };
149
+ languageCode: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ backendBaseUrl: {
154
+ type: StringConstructor;
155
+ default: undefined;
156
+ };
157
+ backendWsUrl: {
158
+ type: StringConstructor;
159
+ default: undefined;
160
+ };
161
+ }>> & Readonly<{}>, {
162
+ title: string;
163
+ subtitle: string;
164
+ welcomeTitle: string;
165
+ welcomeMessage: string;
166
+ welcomeCta: string;
167
+ showWelcomePopup: boolean;
168
+ welcomePopupDelay: number;
169
+ fallbackWelcomeMessage: string;
170
+ inputPlaceholder: string;
171
+ emptyStateMessage: string;
172
+ debug: boolean;
173
+ dfProjectId: string;
174
+ dfLocation: string;
175
+ dfAgentId: string;
176
+ serviceAccountKey: Record<string, any>;
177
+ accessToken: string;
178
+ languageCode: string;
179
+ backendBaseUrl: string;
180
+ backendWsUrl: string;
181
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
182
+ //# sourceMappingURL=ChatWidgetWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatWidgetWrapper.d.ts","sourceRoot":"","sources":["../../src/vue/ChatWidgetWrapper.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAyFlC,CAAC"}
@@ -0,0 +1,191 @@
1
+ import type { App } from 'vue';
2
+ import { BlockSparkChatWidgetVue } from './ChatWidgetWrapper';
3
+ export { BlockSparkChatWidgetVue };
4
+ /**
5
+ * Vue 3 plugin. Use in main.js: app.use(BlockSparkChatWidget)
6
+ */
7
+ export declare function install(app: App, options?: {
8
+ name?: string;
9
+ }): void;
10
+ declare const _default: {
11
+ install: typeof install;
12
+ component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
+ title: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ subtitle: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ welcomeTitle: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ welcomeMessage: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ welcomeCta: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ showWelcomePopup: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ welcomePopupDelay: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ fallbackWelcomeMessage: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ inputPlaceholder: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ emptyStateMessage: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ debug: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ dfProjectId: {
58
+ type: StringConstructor;
59
+ default: undefined;
60
+ };
61
+ dfLocation: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ dfAgentId: {
66
+ type: StringConstructor;
67
+ default: undefined;
68
+ };
69
+ serviceAccountKey: {
70
+ type: ObjectConstructor;
71
+ default: undefined;
72
+ };
73
+ accessToken: {
74
+ type: StringConstructor;
75
+ default: undefined;
76
+ };
77
+ languageCode: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ backendBaseUrl: {
82
+ type: StringConstructor;
83
+ default: undefined;
84
+ };
85
+ backendWsUrl: {
86
+ type: StringConstructor;
87
+ default: undefined;
88
+ };
89
+ }>, {
90
+ containerRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
91
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
92
+ title: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ subtitle: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ welcomeTitle: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ welcomeMessage: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ welcomeCta: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ showWelcomePopup: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
116
+ welcomePopupDelay: {
117
+ type: NumberConstructor;
118
+ default: number;
119
+ };
120
+ fallbackWelcomeMessage: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ };
124
+ inputPlaceholder: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ emptyStateMessage: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ debug: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ dfProjectId: {
137
+ type: StringConstructor;
138
+ default: undefined;
139
+ };
140
+ dfLocation: {
141
+ type: StringConstructor;
142
+ default: string;
143
+ };
144
+ dfAgentId: {
145
+ type: StringConstructor;
146
+ default: undefined;
147
+ };
148
+ serviceAccountKey: {
149
+ type: ObjectConstructor;
150
+ default: undefined;
151
+ };
152
+ accessToken: {
153
+ type: StringConstructor;
154
+ default: undefined;
155
+ };
156
+ languageCode: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ backendBaseUrl: {
161
+ type: StringConstructor;
162
+ default: undefined;
163
+ };
164
+ backendWsUrl: {
165
+ type: StringConstructor;
166
+ default: undefined;
167
+ };
168
+ }>> & Readonly<{}>, {
169
+ title: string;
170
+ subtitle: string;
171
+ welcomeTitle: string;
172
+ welcomeMessage: string;
173
+ welcomeCta: string;
174
+ showWelcomePopup: boolean;
175
+ welcomePopupDelay: number;
176
+ fallbackWelcomeMessage: string;
177
+ inputPlaceholder: string;
178
+ emptyStateMessage: string;
179
+ debug: boolean;
180
+ dfProjectId: string;
181
+ dfLocation: string;
182
+ dfAgentId: string;
183
+ serviceAccountKey: Record<string, any>;
184
+ accessToken: string;
185
+ languageCode: string;
186
+ backendBaseUrl: string;
187
+ backendWsUrl: string;
188
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
189
+ };
190
+ export default _default;
191
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vue/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC;;GAEG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,QAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,wBAGE"}