@inploi/plugin-chatbot 3.2.12 → 3.2.13
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 +12 -12
- package/dist/chatbot.state.d.ts +1 -0
- package/dist/{index-fd87b398.js → index-8b760687.js} +3 -2
- package/dist/{index-141dd913.cjs → index-d7f1dfc3.cjs} +3 -2
- package/dist/{job-application-content-e64a96de.cjs → job-application-content-447d0287.cjs} +5 -2
- package/dist/{job-application-content-4b948a26.js → job-application-content-e3ffad6c.js} +5 -2
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +2 -2
package/dist/chatbot.state.d.ts
CHANGED
|
@@ -8059,7 +8059,8 @@ const createNewApplicationData = (application2) => ({
|
|
|
8059
8059
|
messages: [],
|
|
8060
8060
|
submissions: {},
|
|
8061
8061
|
currentNodeId: getHeadOrThrow(application2.flow.nodes).id,
|
|
8062
|
-
isFinished: false
|
|
8062
|
+
isFinished: false,
|
|
8063
|
+
sequence: 0
|
|
8063
8064
|
});
|
|
8064
8065
|
var _ = 0;
|
|
8065
8066
|
function o(o2, e2, n2, t2, f2, l2) {
|
|
@@ -8295,7 +8296,7 @@ const ChatbotHeader = ({
|
|
|
8295
8296
|
})]
|
|
8296
8297
|
});
|
|
8297
8298
|
};
|
|
8298
|
-
const JobApplicationContent = M$1(() => import("./job-application-content-
|
|
8299
|
+
const JobApplicationContent = M$1(() => import("./job-application-content-e3ffad6c.js").then((module) => module.JobApplicationContent));
|
|
8299
8300
|
const MotionProvider = ({
|
|
8300
8301
|
children
|
|
8301
8302
|
}) => {
|
|
@@ -8060,7 +8060,8 @@ const createNewApplicationData = (application2) => ({
|
|
|
8060
8060
|
messages: [],
|
|
8061
8061
|
submissions: {},
|
|
8062
8062
|
currentNodeId: getHeadOrThrow(application2.flow.nodes).id,
|
|
8063
|
-
isFinished: false
|
|
8063
|
+
isFinished: false,
|
|
8064
|
+
sequence: 0
|
|
8064
8065
|
});
|
|
8065
8066
|
var _ = 0;
|
|
8066
8067
|
function o(o2, e2, n2, t2, f2, l2) {
|
|
@@ -8296,7 +8297,7 @@ const ChatbotHeader = ({
|
|
|
8296
8297
|
})]
|
|
8297
8298
|
});
|
|
8298
8299
|
};
|
|
8299
|
-
const JobApplicationContent = M$1(() => Promise.resolve().then(() => require("./job-application-content-
|
|
8300
|
+
const JobApplicationContent = M$1(() => Promise.resolve().then(() => require("./job-application-content-447d0287.cjs")).then((module2) => module2.JobApplicationContent));
|
|
8300
8301
|
const MotionProvider = ({
|
|
8301
8302
|
children
|
|
8302
8303
|
}) => {
|
|
@@ -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-d7f1dfc3.cjs");
|
|
4
4
|
require("@inploi/sdk");
|
|
5
5
|
const followNodes = ({
|
|
6
6
|
node,
|
|
@@ -2853,6 +2853,9 @@ const JobApplicationContent = ({
|
|
|
2853
2853
|
return (_a = index.application.current$.peek().application) == null ? void 0 : _a.data.submissions;
|
|
2854
2854
|
},
|
|
2855
2855
|
onInterpret: (node, prevNode) => {
|
|
2856
|
+
const currentState = index.application.current$.peek().application;
|
|
2857
|
+
index.invariant(currentState);
|
|
2858
|
+
currentState.data.sequence = currentState.data.sequence + 1;
|
|
2856
2859
|
analytics.log({
|
|
2857
2860
|
event: "FLOW_NODE",
|
|
2858
2861
|
properties: {
|
|
@@ -2861,7 +2864,7 @@ const JobApplicationContent = ({
|
|
|
2861
2864
|
job_id: job.id,
|
|
2862
2865
|
from_node_id: prevNode ? prevNode.id : null,
|
|
2863
2866
|
to_node_id: node.id,
|
|
2864
|
-
sequence:
|
|
2867
|
+
sequence: currentState.data.sequence
|
|
2865
2868
|
}
|
|
2866
2869
|
});
|
|
2867
2870
|
index.application.setCurrentNodeId(node.id);
|
|
@@ -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-
|
|
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-8b760687.js";
|
|
2
2
|
import "@inploi/sdk";
|
|
3
3
|
const followNodes = ({
|
|
4
4
|
node,
|
|
@@ -2851,6 +2851,9 @@ const JobApplicationContent = ({
|
|
|
2851
2851
|
return (_a = application.current$.peek().application) == null ? void 0 : _a.data.submissions;
|
|
2852
2852
|
},
|
|
2853
2853
|
onInterpret: (node, prevNode) => {
|
|
2854
|
+
const currentState = application.current$.peek().application;
|
|
2855
|
+
invariant(currentState);
|
|
2856
|
+
currentState.data.sequence = currentState.data.sequence + 1;
|
|
2854
2857
|
analytics.log({
|
|
2855
2858
|
event: "FLOW_NODE",
|
|
2856
2859
|
properties: {
|
|
@@ -2859,7 +2862,7 @@ const JobApplicationContent = ({
|
|
|
2859
2862
|
job_id: job.id,
|
|
2860
2863
|
from_node_id: prevNode ? prevNode.id : null,
|
|
2861
2864
|
to_node_id: node.id,
|
|
2862
|
-
sequence:
|
|
2865
|
+
sequence: currentState.data.sequence
|
|
2863
2866
|
}
|
|
2864
2867
|
});
|
|
2865
2868
|
application.setCurrentNodeId(node.id);
|
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.2.
|
|
3
|
+
"version": "3.2.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-chatbot.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"vite": "^4.4.5",
|
|
67
67
|
"vite-plugin-dts": "^3.7.0",
|
|
68
68
|
"vite-tsconfig-paths": "^4.2.1",
|
|
69
|
-
"@inploi/sdk": "1.7.5",
|
|
70
69
|
"@inploi/core": "1.7.0",
|
|
70
|
+
"@inploi/sdk": "1.7.6",
|
|
71
71
|
"eslint-config-custom": "0.1.0",
|
|
72
72
|
"tsconfig": "0.1.0"
|
|
73
73
|
},
|