@inploi/plugin-chatbot 3.4.1 → 3.4.2

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-1005e99a.cjs")).then((module2) => module2.JobApplicationContent));
8301
+ const JobApplicationContent = M$1(() => Promise.resolve().then(() => require("./job-application-content-d37b54a8.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-df993dbc.js").then((module) => module.JobApplicationContent));
8300
+ const JobApplicationContent = M$1(() => import("./job-application-content-e7ea0d04.js").then((module) => module.JobApplicationContent));
8301
8301
  const MotionProvider = ({
8302
8302
  children
8303
8303
  }) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-cd323c8f.cjs");
3
+ const index = require("./index-b2d395bb.cjs");
4
4
  require("@inploi/sdk");
5
5
  const followNodes = ({
6
6
  node,
@@ -186,6 +186,17 @@ async function interpretSubmitNode({
186
186
  minSelected: 1
187
187
  }
188
188
  });
189
+ const logApplyComplete = () => {
190
+ const contextJobId = typeof context.jobId === "string" ? context.jobId : void 0;
191
+ if (contextJobId) {
192
+ analytics.log({
193
+ event: "APPLY_COMPLETE",
194
+ properties: {
195
+ job_id: contextJobId
196
+ }
197
+ });
198
+ }
199
+ };
189
200
  await chat.sendMessage({
190
201
  type: "system",
191
202
  variant: "info",
@@ -216,6 +227,7 @@ async function interpretSubmitNode({
216
227
  if (currentAnonymousId && !href.searchParams.has("anonymous_id")) {
217
228
  href.searchParams.set("anonymous_id", currentAnonymousId);
218
229
  }
230
+ logApplyComplete();
219
231
  await chat.sendMessage({
220
232
  type: "link",
221
233
  href: href.toString(),
@@ -224,6 +236,7 @@ async function interpretSubmitNode({
224
236
  }).with({
225
237
  success: true
226
238
  }, async () => {
239
+ logApplyComplete();
227
240
  await chat.sendMessage({
228
241
  type: "system",
229
242
  variant: "success",
@@ -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-e2bcee62.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-c0d5e29a.js";
2
2
  import "@inploi/sdk";
3
3
  const followNodes = ({
4
4
  node,
@@ -184,6 +184,17 @@ async function interpretSubmitNode({
184
184
  minSelected: 1
185
185
  }
186
186
  });
187
+ const logApplyComplete = () => {
188
+ const contextJobId = typeof context.jobId === "string" ? context.jobId : void 0;
189
+ if (contextJobId) {
190
+ analytics.log({
191
+ event: "APPLY_COMPLETE",
192
+ properties: {
193
+ job_id: contextJobId
194
+ }
195
+ });
196
+ }
197
+ };
187
198
  await chat.sendMessage({
188
199
  type: "system",
189
200
  variant: "info",
@@ -214,6 +225,7 @@ async function interpretSubmitNode({
214
225
  if (currentAnonymousId && !href.searchParams.has("anonymous_id")) {
215
226
  href.searchParams.set("anonymous_id", currentAnonymousId);
216
227
  }
228
+ logApplyComplete();
217
229
  await chat.sendMessage({
218
230
  type: "link",
219
231
  href: href.toString(),
@@ -222,6 +234,7 @@ async function interpretSubmitNode({
222
234
  }).with({
223
235
  success: true
224
236
  }, async () => {
237
+ logApplyComplete();
225
238
  await chat.sendMessage({
226
239
  type: "system",
227
240
  variant: "success",
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-cd323c8f.cjs");
3
+ const index = require("./index-b2d395bb.cjs");
4
4
  require("@inploi/sdk");
5
5
  exports.chatbotPlugin = index.chatbotPlugin;
@@ -1,4 +1,4 @@
1
- import { H } from "./index-e2bcee62.js";
1
+ import { H } from "./index-c0d5e29a.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.1",
3
+ "version": "3.4.2",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-chatbot.js",
6
6
  "types": "dist/index.d.ts",
@@ -64,9 +64,9 @@
64
64
  "vite-plugin-dts": "^3.7.0",
65
65
  "vite-tsconfig-paths": "^4.2.1",
66
66
  "@inploi/core": "1.11.0",
67
- "@inploi/sdk": "1.10.0",
68
67
  "eslint-config-custom": "0.1.0",
69
- "tsconfig": "0.1.0"
68
+ "tsconfig": "0.1.0",
69
+ "@inploi/sdk": "1.10.0"
70
70
  },
71
71
  "msw": {
72
72
  "workerDirectory": "public"