@inploi/plugin-chatbot 3.4.2 → 3.5.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.
@@ -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-a6726978.cjs")).then((module2) => module2.JobApplicationContent));
8302
8302
  const MotionProvider = ({
8303
8303
  children
8304
8304
  }) => {
@@ -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-8a7522d6.js").then((module) => module.JobApplicationContent));
8301
8301
  const MotionProvider = ({
8302
8302
  children
8303
8303
  }) => {
@@ -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-670c0945.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)
@@ -444,6 +445,7 @@ async function interpretQuestionFileNode({
444
445
  }
445
446
  async function interpretEndFlowNode({
446
447
  chat,
448
+ end,
447
449
  next,
448
450
  node
449
451
  }) {
@@ -452,7 +454,7 @@ async function interpretEndFlowNode({
452
454
  variant: "info",
453
455
  text: node.data.systemMessage || "Conversation finished"
454
456
  });
455
- next(void 0);
457
+ end();
456
458
  }
457
459
  const stringOrStringArray = _.union(_.string, _.array(_.string));
458
460
  const isIfBlockConditionMet = (ifBlock, submissions) => {
@@ -2649,6 +2651,7 @@ const TypingIndicator = ({
2649
2651
  ...props
2650
2652
  }) => {
2651
2653
  return o$1("div", {
2654
+ "aria-label": "Typing…",
2652
2655
  class: clsx("flex gap-1 p-4", className),
2653
2656
  ...props,
2654
2657
  children: Array.from({
@@ -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-430323a2.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)
@@ -446,6 +447,7 @@ async function interpretQuestionFileNode({
446
447
  }
447
448
  async function interpretEndFlowNode({
448
449
  chat,
450
+ end,
449
451
  next,
450
452
  node
451
453
  }) {
@@ -454,7 +456,7 @@ async function interpretEndFlowNode({
454
456
  variant: "info",
455
457
  text: node.data.systemMessage || "Conversation finished"
456
458
  });
457
- next(void 0);
459
+ end();
458
460
  }
459
461
  const stringOrStringArray = index._.union(index._.string, index._.array(index._.string));
460
462
  const isIfBlockConditionMet = (ifBlock, submissions) => {
@@ -2651,6 +2653,7 @@ const TypingIndicator = ({
2651
2653
  ...props
2652
2654
  }) => {
2653
2655
  return index.o("div", {
2656
+ "aria-label": "Typing…",
2654
2657
  class: index.clsx("flex gap-1 p-4", className),
2655
2658
  ...props,
2656
2659
  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-430323a2.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-670c0945.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.0",
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/core": "1.11.1",
67
+ "@inploi/sdk": "1.10.0",
67
68
  "eslint-config-custom": "0.1.0",
68
- "tsconfig": "0.1.0",
69
- "@inploi/sdk": "1.10.0"
69
+ "tsconfig": "0.1.0"
70
70
  },
71
71
  "msw": {
72
72
  "workerDirectory": "public"