@inploi/plugin-chatbot 4.2.0 → 4.2.1
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/cdn/style.css +1 -1
- package/dist/chatbot-body-bf860914.cjs +1 -0
- package/dist/{chatbot-body-c294edef.js → chatbot-body-cb27f685.js} +401 -398
- package/dist/chatbot.d.ts +6 -3
- package/dist/chatbot.state.d.ts +2 -1
- package/dist/{index-9944cf27.cjs → index-4c82e536.cjs} +2 -2
- package/dist/{index-e35a0d9d.js → index-fab0ae6e.js} +12 -11
- 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-51ed15c6.cjs +0 -1
package/dist/chatbot.d.ts
CHANGED
|
@@ -46,12 +46,15 @@ export type OpenChatbotParams = {
|
|
|
46
46
|
* Use `external` if unsure */
|
|
47
47
|
id_type: 'internal' | 'external';
|
|
48
48
|
};
|
|
49
|
+
/** Coordinates used to order address suggestions by proximity */
|
|
50
|
+
locationOrigin?: {
|
|
51
|
+
lat?: number;
|
|
52
|
+
lng?: number;
|
|
53
|
+
};
|
|
49
54
|
};
|
|
50
55
|
export declare const chatbotPlugin: ({ _internal_domManager: dom, theme, terms, feedback, }: InternalChatbotPluginParams) => ({ apiClient, logger, analytics }: {
|
|
51
56
|
apiClient: import("@inploi/sdk").ApiClient;
|
|
52
|
-
logger: Logger;
|
|
53
|
-
* @param jobId - The job ID to fetch the flow for. This is the job ID according to the **ATS**, and not the inploi job ID.
|
|
54
|
-
*/
|
|
57
|
+
logger: Logger;
|
|
55
58
|
analytics: import("@inploi/sdk").AnalyticsService;
|
|
56
59
|
}) => {
|
|
57
60
|
/** Optionally eagerly renders the interface ahead of needing the chatbot. */
|
package/dist/chatbot.state.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type StartedFlow = Flow & {
|
|
|
10
10
|
startedAt: Date;
|
|
11
11
|
context: Record<string, unknown>;
|
|
12
12
|
job: OpenChatbotParams['job'];
|
|
13
|
+
locationOrigin: OpenChatbotParams['locationOrigin'];
|
|
13
14
|
nodeIdToProgress: Record<string, ChatbotFlowProgress>;
|
|
14
15
|
analytics: OpenChatbotParams['analytics'];
|
|
15
16
|
};
|
|
@@ -34,7 +35,7 @@ export declare const store: {
|
|
|
34
35
|
current$: import("@preact/signals").Signal<CurrentFlow>;
|
|
35
36
|
viewState$: import("@preact/signals").Signal<"maximised" | "minimised" | "closed">;
|
|
36
37
|
inputHeight$: import("@preact/signals").Signal<number>;
|
|
37
|
-
startFlow: ({ flow, context, flowKeys, title, analytics, job }: OpenChatbotParams) => Promise<void>;
|
|
38
|
+
startFlow: ({ flow, context, flowKeys, title, analytics, job, locationOrigin }: OpenChatbotParams) => Promise<void>;
|
|
38
39
|
cancelCurrentFlow: () => void;
|
|
39
40
|
markAsFinished: () => void;
|
|
40
41
|
setCurrentNodeId: (currentNodeId: string) => void;
|