@inploi/plugin-chatbot 4.4.0 → 5.1.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 +3 -3
- package/dist/{chatbot-body-78dc7e6c.js → chatbot-body-81bfa2bc.js} +518 -518
- package/dist/{chatbot-body-b911ba6f.cjs → chatbot-body-f17e1b0d.cjs} +1 -1
- package/dist/chatbot.api.d.ts +51 -1984
- package/dist/chatbot.d.ts +2 -1
- package/dist/chatbot.utils.d.ts +1 -1
- package/dist/index-4da34b43.js +3763 -0
- package/dist/index-610bb8d8.cjs +5 -0
- package/dist/mocks/flows.mocks.d.ts +6 -2
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/rpc.d.ts +495 -0
- package/package.json +7 -7
- package/dist/index-2066a89b.cjs +0 -5
- package/dist/index-2463356b.js +0 -3621
package/dist/chatbot.d.ts
CHANGED
|
@@ -54,8 +54,9 @@ export type OpenChatbotParams = {
|
|
|
54
54
|
lng?: number;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
export declare const chatbotPlugin: ({ _internal_domManager: dom, theme, terms, feedback, }: InternalChatbotPluginParams) => ({ apiClient, logger, analytics }: {
|
|
57
|
+
export declare const chatbotPlugin: ({ _internal_domManager: dom, theme, terms, feedback, }: InternalChatbotPluginParams) => ({ apiClient, rpcClient, logger, analytics }: {
|
|
58
58
|
apiClient: import("@inploi/sdk").ApiClient;
|
|
59
|
+
rpcClient: import("@inploi/sdk").InploiRpcClient;
|
|
59
60
|
logger: Logger;
|
|
60
61
|
analytics: import("@inploi/sdk").AnalyticsService;
|
|
61
62
|
}) => {
|
package/dist/chatbot.utils.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
|
|
|
228
228
|
nextId?: string | undefined;
|
|
229
229
|
};
|
|
230
230
|
export declare const getFlowSubmissionsPayload: (submissions: KeyToSubmissionMap) => Record<string, unknown>;
|
|
231
|
-
export declare const isSubmissionOfType: <T extends "string" | "number" | "boolean" | "
|
|
231
|
+
export declare const isSubmissionOfType: <T extends "string" | "number" | "boolean" | "phone" | "enum" | "address" | "file" | "integration">(type: T) => (submission?: FlowSubmission) => submission is Extract<import("./chatbot.state").FlowSubmissionString, {
|
|
232
232
|
type: T;
|
|
233
233
|
}> | Extract<import("./chatbot.state").FlowSubmissionBoolean, {
|
|
234
234
|
type: T;
|