@inploi/plugin-chatbot 3.28.6 → 3.28.7
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 +4 -4
- package/dist/{chatbot-body-e28d969c.js → chatbot-body-a8a1e4f3.js} +5 -2
- package/dist/{chatbot-body-a56a7923.cjs → chatbot-body-ea9d97f5.cjs} +5 -2
- package/dist/chatbot.api.d.ts +44 -11
- package/dist/chatbot.utils.d.ts +4 -1
- package/dist/{index-a103d43c.js → index-12c8b547.js} +1 -1
- package/dist/{index-1bbddc51.cjs → index-ab7e5077.cjs} +1 -1
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as get$1, i as isString$2, k as kbToReadableSize, a as getHeadOrThrow, b as invariant, A as AbortedError, c as getFlowSubmissionsPayload, N, _, d as getDefaultExportFromCjs, h, e as _$1, p, F, o as o$1, f as clsx, y, s as store, j as a$2, l as k, m as k$1, n as getFormSubmitter, q as parse, r as picklist, t as isSubmissionOfType, C as Cn, u as parseAsync, V as ValiError, v as object, w as transform, x as cva, z as maxLength, B as minLength, D as record, E as boolean, G as number, H as minValue, I as maxValue, J as custom, K as string, L as regex, M as email, O as url, P as LoadingIndicator, Q as ERROR_MESSAGES } from "./index-
|
|
1
|
+
import { g as get$1, i as isString$2, k as kbToReadableSize, a as getHeadOrThrow, b as invariant, A as AbortedError, c as getFlowSubmissionsPayload, N, _, d as getDefaultExportFromCjs, h, e as _$1, p, F, o as o$1, f as clsx, y, s as store, j as a$2, l as k, m as k$1, n as getFormSubmitter, q as parse, r as picklist, t as isSubmissionOfType, C as Cn, u as parseAsync, V as ValiError, v as object, w as transform, x as cva, z as maxLength, B as minLength, D as record, E as boolean, G as number, H as minValue, I as maxValue, J as custom, K as string, L as regex, M as email, O as url, P as LoadingIndicator, Q as ERROR_MESSAGES } from "./index-12c8b547.js";
|
|
2
2
|
import "@inploi/sdk";
|
|
3
3
|
const isConditionMet = ({
|
|
4
4
|
condition,
|
|
@@ -475,7 +475,10 @@ async function interpretIdentifyNode({
|
|
|
475
475
|
last_name: node.data.lastName ? getSubmissionValue(submissions, node.data.lastName).toString() : void 0,
|
|
476
476
|
email: node.data.email ? getSubmissionValue(submissions, node.data.email).toString() : void 0,
|
|
477
477
|
phone_number: node.data.phoneNumber ? getSubmissionValue(submissions, node.data.phoneNumber).toString() : void 0,
|
|
478
|
-
custom_traits: node.data.customTraits ? Object.fromEntries(
|
|
478
|
+
custom_traits: node.data.customTraits ? Object.fromEntries(node.data.customTraits.map(({
|
|
479
|
+
key,
|
|
480
|
+
value
|
|
481
|
+
}) => {
|
|
479
482
|
var _a;
|
|
480
483
|
return [key, (_a = submissions[value]) == null ? void 0 : _a.value];
|
|
481
484
|
})) : void 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-ab7e5077.cjs");
|
|
4
4
|
require("@inploi/sdk");
|
|
5
5
|
const isConditionMet = ({
|
|
6
6
|
condition,
|
|
@@ -477,7 +477,10 @@ async function interpretIdentifyNode({
|
|
|
477
477
|
last_name: node.data.lastName ? getSubmissionValue(submissions, node.data.lastName).toString() : void 0,
|
|
478
478
|
email: node.data.email ? getSubmissionValue(submissions, node.data.email).toString() : void 0,
|
|
479
479
|
phone_number: node.data.phoneNumber ? getSubmissionValue(submissions, node.data.phoneNumber).toString() : void 0,
|
|
480
|
-
custom_traits: node.data.customTraits ? Object.fromEntries(
|
|
480
|
+
custom_traits: node.data.customTraits ? Object.fromEntries(node.data.customTraits.map(({
|
|
481
|
+
key,
|
|
482
|
+
value
|
|
483
|
+
}) => {
|
|
481
484
|
var _a;
|
|
482
485
|
return [key, (_a = submissions[value]) == null ? void 0 : _a.value];
|
|
483
486
|
})) : void 0
|
package/dist/chatbot.api.d.ts
CHANGED
|
@@ -207,7 +207,10 @@ export declare const FlowSchema: import("valibot").ObjectSchema<{
|
|
|
207
207
|
lastName?: string | undefined;
|
|
208
208
|
phoneNumber?: string | undefined;
|
|
209
209
|
email?: string | undefined;
|
|
210
|
-
customTraits?:
|
|
210
|
+
customTraits?: {
|
|
211
|
+
value: string;
|
|
212
|
+
key: string;
|
|
213
|
+
}[] | undefined;
|
|
211
214
|
};
|
|
212
215
|
type: "identify";
|
|
213
216
|
id: string;
|
|
@@ -409,7 +412,10 @@ export declare const FlowSchema: import("valibot").ObjectSchema<{
|
|
|
409
412
|
lastName?: string | undefined;
|
|
410
413
|
phoneNumber?: string | undefined;
|
|
411
414
|
email?: string | undefined;
|
|
412
|
-
customTraits?:
|
|
415
|
+
customTraits?: {
|
|
416
|
+
value: string;
|
|
417
|
+
key: string;
|
|
418
|
+
}[] | undefined;
|
|
413
419
|
};
|
|
414
420
|
type: "identify";
|
|
415
421
|
id: string;
|
|
@@ -638,7 +644,10 @@ export declare const FlowSchema: import("valibot").ObjectSchema<{
|
|
|
638
644
|
lastName?: string | undefined;
|
|
639
645
|
phoneNumber?: string | undefined;
|
|
640
646
|
email?: string | undefined;
|
|
641
|
-
customTraits?:
|
|
647
|
+
customTraits?: {
|
|
648
|
+
value: string;
|
|
649
|
+
key: string;
|
|
650
|
+
}[] | undefined;
|
|
642
651
|
};
|
|
643
652
|
type: "identify";
|
|
644
653
|
id: string;
|
|
@@ -854,7 +863,10 @@ export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
854
863
|
lastName?: string | undefined;
|
|
855
864
|
phoneNumber?: string | undefined;
|
|
856
865
|
email?: string | undefined;
|
|
857
|
-
customTraits?:
|
|
866
|
+
customTraits?: {
|
|
867
|
+
value: string;
|
|
868
|
+
key: string;
|
|
869
|
+
}[] | undefined;
|
|
858
870
|
};
|
|
859
871
|
type: "identify";
|
|
860
872
|
id: string;
|
|
@@ -1056,7 +1068,10 @@ export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
1056
1068
|
lastName?: string | undefined;
|
|
1057
1069
|
phoneNumber?: string | undefined;
|
|
1058
1070
|
email?: string | undefined;
|
|
1059
|
-
customTraits?:
|
|
1071
|
+
customTraits?: {
|
|
1072
|
+
value: string;
|
|
1073
|
+
key: string;
|
|
1074
|
+
}[] | undefined;
|
|
1060
1075
|
};
|
|
1061
1076
|
type: "identify";
|
|
1062
1077
|
id: string;
|
|
@@ -1285,7 +1300,10 @@ export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
1285
1300
|
lastName?: string | undefined;
|
|
1286
1301
|
phoneNumber?: string | undefined;
|
|
1287
1302
|
email?: string | undefined;
|
|
1288
|
-
customTraits?:
|
|
1303
|
+
customTraits?: {
|
|
1304
|
+
value: string;
|
|
1305
|
+
key: string;
|
|
1306
|
+
}[] | undefined;
|
|
1289
1307
|
};
|
|
1290
1308
|
type: "identify";
|
|
1291
1309
|
id: string;
|
|
@@ -1500,7 +1518,10 @@ export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
1500
1518
|
lastName?: string | undefined;
|
|
1501
1519
|
phoneNumber?: string | undefined;
|
|
1502
1520
|
email?: string | undefined;
|
|
1503
|
-
customTraits?:
|
|
1521
|
+
customTraits?: {
|
|
1522
|
+
value: string;
|
|
1523
|
+
key: string;
|
|
1524
|
+
}[] | undefined;
|
|
1504
1525
|
};
|
|
1505
1526
|
type: "identify";
|
|
1506
1527
|
id: string;
|
|
@@ -1721,7 +1742,10 @@ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
1721
1742
|
lastName?: string | undefined;
|
|
1722
1743
|
phoneNumber?: string | undefined;
|
|
1723
1744
|
email?: string | undefined;
|
|
1724
|
-
customTraits?:
|
|
1745
|
+
customTraits?: {
|
|
1746
|
+
value: string;
|
|
1747
|
+
key: string;
|
|
1748
|
+
}[] | undefined;
|
|
1725
1749
|
};
|
|
1726
1750
|
type: "identify";
|
|
1727
1751
|
id: string;
|
|
@@ -1923,7 +1947,10 @@ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
1923
1947
|
lastName?: string | undefined;
|
|
1924
1948
|
phoneNumber?: string | undefined;
|
|
1925
1949
|
email?: string | undefined;
|
|
1926
|
-
customTraits?:
|
|
1950
|
+
customTraits?: {
|
|
1951
|
+
value: string;
|
|
1952
|
+
key: string;
|
|
1953
|
+
}[] | undefined;
|
|
1927
1954
|
};
|
|
1928
1955
|
type: "identify";
|
|
1929
1956
|
id: string;
|
|
@@ -2152,7 +2179,10 @@ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
2152
2179
|
lastName?: string | undefined;
|
|
2153
2180
|
phoneNumber?: string | undefined;
|
|
2154
2181
|
email?: string | undefined;
|
|
2155
|
-
customTraits?:
|
|
2182
|
+
customTraits?: {
|
|
2183
|
+
value: string;
|
|
2184
|
+
key: string;
|
|
2185
|
+
}[] | undefined;
|
|
2156
2186
|
};
|
|
2157
2187
|
type: "identify";
|
|
2158
2188
|
id: string;
|
|
@@ -2374,7 +2404,10 @@ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
|
|
|
2374
2404
|
lastName?: string | undefined;
|
|
2375
2405
|
phoneNumber?: string | undefined;
|
|
2376
2406
|
email?: string | undefined;
|
|
2377
|
-
customTraits?:
|
|
2407
|
+
customTraits?: {
|
|
2408
|
+
value: string;
|
|
2409
|
+
key: string;
|
|
2410
|
+
}[] | undefined;
|
|
2378
2411
|
};
|
|
2379
2412
|
type: "identify";
|
|
2380
2413
|
id: string;
|
package/dist/chatbot.utils.d.ts
CHANGED
|
@@ -198,7 +198,10 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
|
|
|
198
198
|
lastName?: string | undefined;
|
|
199
199
|
phoneNumber?: string | undefined;
|
|
200
200
|
email?: string | undefined;
|
|
201
|
-
customTraits?:
|
|
201
|
+
customTraits?: {
|
|
202
|
+
value: string;
|
|
203
|
+
key: string;
|
|
204
|
+
}[] | undefined;
|
|
202
205
|
};
|
|
203
206
|
type: "identify";
|
|
204
207
|
id: string;
|
|
@@ -5320,7 +5320,7 @@ const StatusBar = ({
|
|
|
5320
5320
|
};
|
|
5321
5321
|
function noop() {
|
|
5322
5322
|
}
|
|
5323
|
-
const ChatbotBody = M(() => import("./chatbot-body-
|
|
5323
|
+
const ChatbotBody = M(() => import("./chatbot-body-a8a1e4f3.js").then((module) => module.ChatbotBody));
|
|
5324
5324
|
const chatbotContentClass = cva("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
5325
5325
|
variants: {
|
|
5326
5326
|
view: {
|
|
@@ -5321,7 +5321,7 @@ const StatusBar = ({
|
|
|
5321
5321
|
};
|
|
5322
5322
|
function noop() {
|
|
5323
5323
|
}
|
|
5324
|
-
const ChatbotBody = M(() => Promise.resolve().then(() => require("./chatbot-body-
|
|
5324
|
+
const ChatbotBody = M(() => Promise.resolve().then(() => require("./chatbot-body-ea9d97f5.cjs")).then((module2) => module2.ChatbotBody));
|
|
5325
5325
|
const chatbotContentClass = cva("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
5326
5326
|
variants: {
|
|
5327
5327
|
view: {
|
package/dist/plugin-chatbot.cjs
CHANGED
package/dist/plugin-chatbot.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-chatbot",
|
|
3
|
-
"version": "3.28.
|
|
3
|
+
"version": "3.28.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-chatbot.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"vite": "^4.4.5",
|
|
68
68
|
"vite-plugin-dts": "^3.7.0",
|
|
69
69
|
"vite-tsconfig-paths": "^4.2.1",
|
|
70
|
-
"@inploi/core": "1.14.
|
|
70
|
+
"@inploi/core": "1.14.8",
|
|
71
71
|
"@inploi/design-tokens": "0.2.1",
|
|
72
72
|
"@inploi/sdk": "1.14.9",
|
|
73
73
|
"eslint-config-custom": "0.1.0",
|