ai12z 3.3.2 → 3.3.4
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.
- package/dist/cjs/ai12z-bot-f357d89d.js +2613 -0
- package/dist/cjs/ai12z-bot-f357d89d.js.map +1 -0
- package/dist/cjs/ai12z-bot.cjs.entry.js +1 -1
- package/dist/cjs/ai12z-chat_3.cjs.entry.js +46 -36
- package/dist/cjs/ai12z-chat_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ai12z-knowledge-box-005b5b85.js +384 -0
- package/dist/cjs/ai12z-knowledge-box-005b5b85.js.map +1 -0
- package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +1 -1
- package/dist/cjs/dynamic-form.cjs.entry.js +35 -31
- package/dist/cjs/dynamic-form.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +51 -30
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/collection/components/ai12z-cta/components/Chat.js +46 -36
- package/dist/collection/components/ai12z-cta/components/Chat.js.map +1 -1
- package/dist/collection/components/ai12z-cta/components/DynamicForm.js +35 -31
- package/dist/collection/components/ai12z-cta/components/DynamicForm.js.map +1 -1
- package/dist/collection/components/ai12z-knowledge-box/ai12z-knowledge-box.js +45 -30
- package/dist/collection/components/ai12z-knowledge-box/ai12z-knowledge-box.js.map +1 -1
- package/dist/collection/global/survey-core.min.css +6 -0
- package/dist/esm/ai12z-bot-77e7fbec.js +2611 -0
- package/dist/esm/ai12z-bot-77e7fbec.js.map +1 -0
- package/dist/esm/ai12z-bot.entry.js +1 -1
- package/dist/esm/ai12z-chat_3.entry.js +46 -36
- package/dist/esm/ai12z-chat_3.entry.js.map +1 -1
- package/dist/esm/ai12z-knowledge-box-71a10937.js +382 -0
- package/dist/esm/ai12z-knowledge-box-71a10937.js.map +1 -0
- package/dist/esm/ai12z-knowledge-box.entry.js +1 -1
- package/dist/esm/dynamic-form.entry.js +35 -31
- package/dist/esm/dynamic-form.entry.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/library/index.esm.js +1 -1
- package/dist/library/library.esm.js +1 -1
- package/dist/library/{p-3e968bf1.entry.js → p-03269530.entry.js} +2 -2
- package/dist/library/p-08bbb4b8.entry.js +2 -0
- package/dist/library/p-08bbb4b8.entry.js.map +1 -0
- package/dist/library/{p-af76a7c6.entry.js → p-32558909.entry.js} +2 -2
- package/dist/library/{p-d567093b.entry.js → p-706e3933.entry.js} +2 -2
- package/dist/library/p-706e3933.entry.js.map +1 -0
- package/dist/library/p-a8e4dffd.js +2 -0
- package/dist/library/p-a8e4dffd.js.map +1 -0
- package/dist/library/p-c5f0d025.js +2 -0
- package/dist/library/p-c5f0d025.js.map +1 -0
- package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +4 -0
- package/dist/types/components/ai12z-cta/components/Chat.d.ts +3 -0
- package/dist/types/components/ai12z-cta/components/DynamicForm.d.ts +3 -5
- package/dist/types/components/ai12z-knowledge-box/ai12z-knowledge-box.d.ts +3 -1
- package/package.json +6 -6
- package/dist/cjs/ai12z-bot-74f5836f.js +0 -2592
- package/dist/cjs/ai12z-bot-74f5836f.js.map +0 -1
- package/dist/cjs/ai12z-knowledge-box-30117a83.js +0 -369
- package/dist/cjs/ai12z-knowledge-box-30117a83.js.map +0 -1
- package/dist/collection/global/survey.min.css +0 -6
- package/dist/esm/ai12z-bot-6f64c1b4.js +0 -2590
- package/dist/esm/ai12z-bot-6f64c1b4.js.map +0 -1
- package/dist/esm/ai12z-knowledge-box-f0962b9a.js +0 -367
- package/dist/esm/ai12z-knowledge-box-f0962b9a.js.map +0 -1
- package/dist/library/p-03ec5034.js +0 -2
- package/dist/library/p-03ec5034.js.map +0 -1
- package/dist/library/p-28892eb0.entry.js +0 -2
- package/dist/library/p-28892eb0.entry.js.map +0 -1
- package/dist/library/p-a6392d09.js +0 -2
- package/dist/library/p-a6392d09.js.map +0 -1
- package/dist/library/p-d567093b.entry.js.map +0 -1
- /package/dist/library/{p-3e968bf1.entry.js.map → p-03269530.entry.js.map} +0 -0
- /package/dist/library/{p-af76a7c6.entry.js.map → p-32558909.entry.js.map} +0 -0
|
@@ -11,6 +11,7 @@ declare global {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class Ai12zBot {
|
|
13
13
|
private cdnPath;
|
|
14
|
+
private surveyCDNPath;
|
|
14
15
|
private styles;
|
|
15
16
|
private liveAgentEventHandler;
|
|
16
17
|
private audioElement;
|
|
@@ -54,6 +55,7 @@ export declare class Ai12zBot {
|
|
|
54
55
|
conversationId: string;
|
|
55
56
|
formModel?: any;
|
|
56
57
|
surveyDomId?: string;
|
|
58
|
+
controlType?: string;
|
|
57
59
|
thumbsId?: string;
|
|
58
60
|
insightId?: string;
|
|
59
61
|
sender?: any;
|
|
@@ -105,6 +107,8 @@ export declare class Ai12zBot {
|
|
|
105
107
|
handleClickOutside(event: MouseEvent): void;
|
|
106
108
|
loadRecaptchaV3(siteKey: string): Promise<void>;
|
|
107
109
|
componentDidLoad(): void;
|
|
110
|
+
private loadScriptsSequentially;
|
|
111
|
+
private loadScript;
|
|
108
112
|
loadStyles(): void;
|
|
109
113
|
disconnectedCallback(): void;
|
|
110
114
|
checkHistory: () => void;
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "../../../stencil-public-runtime";
|
|
|
2
2
|
import { SocketService } from "../../../utils/socket-service";
|
|
3
3
|
export declare class MyChat {
|
|
4
4
|
private cdnPath;
|
|
5
|
+
private surveyCDNPath;
|
|
5
6
|
private element;
|
|
6
7
|
chatId: string;
|
|
7
8
|
chats: any;
|
|
@@ -44,6 +45,8 @@ export declare class MyChat {
|
|
|
44
45
|
private styles;
|
|
45
46
|
private audioElement;
|
|
46
47
|
componentDidLoad(): void;
|
|
48
|
+
private loadScriptsSequentially;
|
|
49
|
+
private loadScript;
|
|
47
50
|
loadStyles(): void;
|
|
48
51
|
private scrollToLatestBubble;
|
|
49
52
|
componentWillLoad(): void;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
export declare class DynamicForm {
|
|
3
|
-
private
|
|
3
|
+
private surveyCDNPath;
|
|
4
4
|
private surveyModel;
|
|
5
|
-
private scripts;
|
|
6
|
-
private styles;
|
|
7
5
|
el: HTMLElement;
|
|
8
6
|
form: any;
|
|
9
7
|
formSettings: any;
|
|
@@ -11,11 +9,11 @@ export declare class DynamicForm {
|
|
|
11
9
|
theme: any;
|
|
12
10
|
formSubmitted: EventEmitter<any>;
|
|
13
11
|
componentWillLoad(): void;
|
|
12
|
+
private loadScriptsSequentially;
|
|
13
|
+
private loadScript;
|
|
14
14
|
componentDidLoad(): void;
|
|
15
15
|
disconnectedCallback(): void;
|
|
16
16
|
applySettings(): void;
|
|
17
17
|
resolveLocalized(value: any, fallback?: string): string;
|
|
18
|
-
loadScripts(): void;
|
|
19
|
-
loadStyles(): void;
|
|
20
18
|
render(): any;
|
|
21
19
|
}
|
|
@@ -19,8 +19,10 @@ export declare class Ai12zKnowledgeBox {
|
|
|
19
19
|
label: string;
|
|
20
20
|
}>;
|
|
21
21
|
errored: EventEmitter;
|
|
22
|
-
private
|
|
22
|
+
private surveyCDNPath;
|
|
23
23
|
componentDidLoad(): void;
|
|
24
|
+
private loadScriptsSequentially;
|
|
25
|
+
private loadScript;
|
|
24
26
|
getConfig(): void;
|
|
25
27
|
insertStyles(linkURL: string): void;
|
|
26
28
|
getResults(type: any): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai12z",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "ai12z Web Components",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -16,15 +16,14 @@
|
|
|
16
16
|
"loader/"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "rm -rf ./www && npm run build:css &&
|
|
19
|
+
"build": "rm -rf ./www && npm run build:css && stencil build",
|
|
20
20
|
"start": "stencil build --dev --watch --serve",
|
|
21
21
|
"test": "stencil test --spec --e2e",
|
|
22
22
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
23
23
|
"generate": "stencil generate",
|
|
24
24
|
"copy-surveyjs": "gulp copy-surveyjs",
|
|
25
25
|
"copy-jqueryjs": "gulp copy-jqueryjs",
|
|
26
|
-
"
|
|
27
|
-
"build:survey-css:minify": "postcss ../../node_modules/survey-jquery/defaultV2.css --use postcss-clean -o src/global/survey.min.css",
|
|
26
|
+
"copy-surveyjs-css": "gulp copy-surveyjs-css",
|
|
28
27
|
"build:css": "npx postcss src/global/custom-tailwind.css -o src/global/tailwind.css",
|
|
29
28
|
"build:css:minify": "npx postcss src/global/tailwind.css --use postcss-clean -o src/global/tailwind.min.css && npx postcss src/global/survey.css --use postcss-clean -o src/global/survey.min.css"
|
|
30
29
|
},
|
|
@@ -65,12 +64,13 @@
|
|
|
65
64
|
"postcss-import": "^16.1.0",
|
|
66
65
|
"puppeteer": "^21.7.0",
|
|
67
66
|
"stencil-tailwind-plugin": "^1.8.0",
|
|
68
|
-
"survey-core": "2.
|
|
67
|
+
"survey-core": "2.3.4",
|
|
69
68
|
"survey-jquery": "^1.11.5",
|
|
69
|
+
"survey-js-ui": "2.3.4",
|
|
70
70
|
"tailwindcss": "^3.4.1",
|
|
71
71
|
"typescript": "^5.8.3",
|
|
72
72
|
"workbox-build": "^4.3.1"
|
|
73
73
|
},
|
|
74
74
|
"license": "ISC",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "2d6d9c6bea9827c84930e1dc7ac2933a60f7f792"
|
|
76
76
|
}
|