@inploi/plugin-chatbot 3.4.2 → 3.5.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.
@@ -8297,7 +8297,7 @@ const ChatbotHeader = ({
8297
8297
  })]
8298
8298
  });
8299
8299
  };
8300
- const JobApplicationContent = M$1(() => import("./job-application-content-e7ea0d04.js").then((module) => module.JobApplicationContent));
8300
+ const JobApplicationContent = M$1(() => import("./job-application-content-4255d386.js").then((module) => module.JobApplicationContent));
8301
8301
  const MotionProvider = ({
8302
8302
  children
8303
8303
  }) => {
@@ -8298,7 +8298,7 @@ const ChatbotHeader = ({
8298
8298
  })]
8299
8299
  });
8300
8300
  };
8301
- const JobApplicationContent = M$1(() => Promise.resolve().then(() => require("./job-application-content-d37b54a8.cjs")).then((module2) => module2.JobApplicationContent));
8301
+ const JobApplicationContent = M$1(() => Promise.resolve().then(() => require("./job-application-content-1812c3f4.cjs")).then((module2) => module2.JobApplicationContent));
8302
8302
  const MotionProvider = ({
8303
8303
  children
8304
8304
  }) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-b2d395bb.cjs");
3
+ const index = require("./index-da99deb7.cjs");
4
4
  require("@inploi/sdk");
5
5
  const followNodes = ({
6
6
  node,
@@ -84,7 +84,8 @@ const createFlowInterpreter = ({
84
84
  if (!nextNode)
85
85
  return onFlowEnd == null ? void 0 : onFlowEnd(node);
86
86
  return interpretNode(nextNode, node);
87
- }
87
+ },
88
+ end: () => onFlowEnd == null ? void 0 : onFlowEnd(node)
88
89
  });
89
90
  } catch (e) {
90
91
  if (e instanceof index.AbortedError)
@@ -209,6 +210,7 @@ async function interpretSubmitNode({
209
210
  type: node.data.type,
210
211
  ats: node.data.ats,
211
212
  integration_id: node.data.integrationId,
213
+ anonymous_id: analytics.getAnonymousId(),
212
214
  submissions: index.getApplicationSubmissionsPayload(submissions || {})
213
215
  })
214
216
  }).catch((e) => e);
@@ -446,6 +448,7 @@ async function interpretQuestionFileNode({
446
448
  }
447
449
  async function interpretEndFlowNode({
448
450
  chat,
451
+ end,
449
452
  next,
450
453
  node
451
454
  }) {
@@ -454,7 +457,7 @@ async function interpretEndFlowNode({
454
457
  variant: "info",
455
458
  text: node.data.systemMessage || "Conversation finished"
456
459
  });
457
- next(void 0);
460
+ end();
458
461
  }
459
462
  const stringOrStringArray = index._.union(index._.string, index._.array(index._.string));
460
463
  const isIfBlockConditionMet = (ifBlock, submissions) => {
@@ -2651,6 +2654,7 @@ const TypingIndicator = ({
2651
2654
  ...props
2652
2655
  }) => {
2653
2656
  return index.o("div", {
2657
+ "aria-label": "Typing…",
2654
2658
  class: index.clsx("flex gap-1 p-4", className),
2655
2659
  ...props,
2656
2660
  children: Array.from({
@@ -1,4 +1,4 @@
1
- import { _, g as getHeadOrThrow, A as AbortedError, N, a as getApplicationSubmissionsPayload, o as o$1, c as clsx, b as _$1, p, d as parse, e as picklist, m, f as AnimatePresence, h as application, i as h, k, j as invariant, l as isSubmissionOfType, C as Cn, n as parseAsync, V as ValiError, q as object, t as transform, r as maxLength, s as minLength, u as record, v as boolean, w as string, x as email, y as url, z as regex, B as y, T, D as inputHeight, F, E as viewState, G as ERROR_MESSAGES } from "./index-c0d5e29a.js";
1
+ import { _, g as getHeadOrThrow, A as AbortedError, N, a as getApplicationSubmissionsPayload, o as o$1, c as clsx, b as _$1, p, d as parse, e as picklist, m, f as AnimatePresence, h as application, i as h, k, j as invariant, l as isSubmissionOfType, C as Cn, n as parseAsync, V as ValiError, q as object, t as transform, r as maxLength, s as minLength, u as record, v as boolean, w as string, x as email, y as url, z as regex, B as y, T, D as inputHeight, F, E as viewState, G as ERROR_MESSAGES } from "./index-6321b293.js";
2
2
  import "@inploi/sdk";
3
3
  const followNodes = ({
4
4
  node,
@@ -82,7 +82,8 @@ const createFlowInterpreter = ({
82
82
  if (!nextNode)
83
83
  return onFlowEnd == null ? void 0 : onFlowEnd(node);
84
84
  return interpretNode(nextNode, node);
85
- }
85
+ },
86
+ end: () => onFlowEnd == null ? void 0 : onFlowEnd(node)
86
87
  });
87
88
  } catch (e) {
88
89
  if (e instanceof AbortedError)
@@ -207,6 +208,7 @@ async function interpretSubmitNode({
207
208
  type: node.data.type,
208
209
  ats: node.data.ats,
209
210
  integration_id: node.data.integrationId,
211
+ anonymous_id: analytics.getAnonymousId(),
210
212
  submissions: getApplicationSubmissionsPayload(submissions || {})
211
213
  })
212
214
  }).catch((e) => e);
@@ -444,6 +446,7 @@ async function interpretQuestionFileNode({
444
446
  }
445
447
  async function interpretEndFlowNode({
446
448
  chat,
449
+ end,
447
450
  next,
448
451
  node
449
452
  }) {
@@ -452,7 +455,7 @@ async function interpretEndFlowNode({
452
455
  variant: "info",
453
456
  text: node.data.systemMessage || "Conversation finished"
454
457
  });
455
- next(void 0);
458
+ end();
456
459
  }
457
460
  const stringOrStringArray = _.union(_.string, _.array(_.string));
458
461
  const isIfBlockConditionMet = (ifBlock, submissions) => {
@@ -2649,6 +2652,7 @@ const TypingIndicator = ({
2649
2652
  ...props
2650
2653
  }) => {
2651
2654
  return o$1("div", {
2655
+ "aria-label": "Typing…",
2652
2656
  class: clsx("flex gap-1 p-4", className),
2653
2657
  ...props,
2654
2658
  children: Array.from({
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-b2d395bb.cjs");
3
+ const index = require("./index-da99deb7.cjs");
4
4
  require("@inploi/sdk");
5
5
  exports.chatbotPlugin = index.chatbotPlugin;
@@ -1,4 +1,4 @@
1
- import { H } from "./index-c0d5e29a.js";
1
+ import { H } from "./index-6321b293.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  H as chatbotPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-chatbot",
3
- "version": "3.4.2",
3
+ "version": "3.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-chatbot.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,10 +63,10 @@
63
63
  "vite": "^4.4.5",
64
64
  "vite-plugin-dts": "^3.7.0",
65
65
  "vite-tsconfig-paths": "^4.2.1",
66
- "@inploi/core": "1.11.0",
66
+ "@inploi/sdk": "1.10.0",
67
67
  "eslint-config-custom": "0.1.0",
68
68
  "tsconfig": "0.1.0",
69
- "@inploi/sdk": "1.10.0"
69
+ "@inploi/core": "1.11.1"
70
70
  },
71
71
  "msw": {
72
72
  "workerDirectory": "public"