@inploi/plugin-chatbot 13.1.0 → 14.0.0
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/cdn/index.js +7 -3
- package/cdn/style.css +1 -1
- package/dist/chatbot-body-90cadbb9.cjs +5 -0
- package/dist/{chatbot-body-02c464c0.js → chatbot-body-bb8289cb.js} +1205 -1137
- package/dist/chatbot.state.d.ts +37 -0
- package/dist/chatbot.utils.d.ts +37 -0
- package/dist/{index-fc976df1.js → index-3a093ba1.js} +832 -794
- package/dist/index-7aaddd89.cjs +5 -0
- package/dist/mocks/pre-apply.mock.d.ts +296 -0
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chatbot-body-9dd967cb.cjs +0 -1
- package/dist/index-a3ad2e04.cjs +0 -5
package/dist/chatbot.state.d.ts
CHANGED
|
@@ -43,6 +43,33 @@ export declare const store: {
|
|
|
43
43
|
id: string;
|
|
44
44
|
version: number;
|
|
45
45
|
nodes: ({
|
|
46
|
+
type: "flow-section";
|
|
47
|
+
id: string;
|
|
48
|
+
data: {
|
|
49
|
+
title: string;
|
|
50
|
+
};
|
|
51
|
+
isHead?: boolean | undefined;
|
|
52
|
+
nextId?: string | undefined;
|
|
53
|
+
} | {
|
|
54
|
+
type: "pre-apply-result";
|
|
55
|
+
id: string;
|
|
56
|
+
data: {
|
|
57
|
+
key: string;
|
|
58
|
+
participationKey: string;
|
|
59
|
+
messages: {
|
|
60
|
+
hard: string;
|
|
61
|
+
advisory: string;
|
|
62
|
+
matched: string;
|
|
63
|
+
};
|
|
64
|
+
continueLabel: string;
|
|
65
|
+
alternativeLink?: {
|
|
66
|
+
href: string;
|
|
67
|
+
label: string;
|
|
68
|
+
} | undefined;
|
|
69
|
+
};
|
|
70
|
+
isHead?: boolean | undefined;
|
|
71
|
+
nextId?: string | undefined;
|
|
72
|
+
} | {
|
|
46
73
|
type: "text";
|
|
47
74
|
id: string;
|
|
48
75
|
data: {
|
|
@@ -107,6 +134,11 @@ export declare const store: {
|
|
|
107
134
|
trueLabel: string;
|
|
108
135
|
falseLabel: string;
|
|
109
136
|
optional: boolean;
|
|
137
|
+
preApply?: {
|
|
138
|
+
severity: "hard" | "advisory";
|
|
139
|
+
mismatchMessage: string;
|
|
140
|
+
expectedValue: boolean;
|
|
141
|
+
} | undefined;
|
|
110
142
|
};
|
|
111
143
|
isHead?: boolean | undefined;
|
|
112
144
|
nextId?: string | undefined;
|
|
@@ -163,6 +195,11 @@ export declare const store: {
|
|
|
163
195
|
question: string;
|
|
164
196
|
maxSelected: number;
|
|
165
197
|
minSelected: number;
|
|
198
|
+
preApply?: {
|
|
199
|
+
severity: "hard" | "advisory";
|
|
200
|
+
mismatchMessage: string;
|
|
201
|
+
expectedValue: string;
|
|
202
|
+
} | undefined;
|
|
166
203
|
};
|
|
167
204
|
isHead?: boolean | undefined;
|
|
168
205
|
nextId?: string | undefined;
|
package/dist/chatbot.utils.d.ts
CHANGED
|
@@ -3,6 +3,33 @@ import { FlowStateData, FlowSubmission } from './chatbot.state';
|
|
|
3
3
|
|
|
4
4
|
export type DistributivePick<T, K extends keyof T> = T extends unknown ? Pick<T, K> : never;
|
|
5
5
|
export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
|
|
6
|
+
type: "flow-section";
|
|
7
|
+
id: string;
|
|
8
|
+
data: {
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
isHead?: boolean | undefined;
|
|
12
|
+
nextId?: string | undefined;
|
|
13
|
+
} | {
|
|
14
|
+
type: "pre-apply-result";
|
|
15
|
+
id: string;
|
|
16
|
+
data: {
|
|
17
|
+
key: string;
|
|
18
|
+
participationKey: string;
|
|
19
|
+
messages: {
|
|
20
|
+
hard: string;
|
|
21
|
+
advisory: string;
|
|
22
|
+
matched: string;
|
|
23
|
+
};
|
|
24
|
+
continueLabel: string;
|
|
25
|
+
alternativeLink?: {
|
|
26
|
+
href: string;
|
|
27
|
+
label: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
};
|
|
30
|
+
isHead?: boolean | undefined;
|
|
31
|
+
nextId?: string | undefined;
|
|
32
|
+
} | {
|
|
6
33
|
type: "text";
|
|
7
34
|
id: string;
|
|
8
35
|
data: {
|
|
@@ -67,6 +94,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
|
|
|
67
94
|
trueLabel: string;
|
|
68
95
|
falseLabel: string;
|
|
69
96
|
optional: boolean;
|
|
97
|
+
preApply?: {
|
|
98
|
+
severity: "hard" | "advisory";
|
|
99
|
+
mismatchMessage: string;
|
|
100
|
+
expectedValue: boolean;
|
|
101
|
+
} | undefined;
|
|
70
102
|
};
|
|
71
103
|
isHead?: boolean | undefined;
|
|
72
104
|
nextId?: string | undefined;
|
|
@@ -123,6 +155,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
|
|
|
123
155
|
question: string;
|
|
124
156
|
maxSelected: number;
|
|
125
157
|
minSelected: number;
|
|
158
|
+
preApply?: {
|
|
159
|
+
severity: "hard" | "advisory";
|
|
160
|
+
mismatchMessage: string;
|
|
161
|
+
expectedValue: string;
|
|
162
|
+
} | undefined;
|
|
126
163
|
};
|
|
127
164
|
isHead?: boolean | undefined;
|
|
128
165
|
nextId?: string | undefined;
|