vc-page-workflows 1.5.20 → 1.5.22

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.
@@ -1,4 +1,4 @@
1
- import { s as t } from "./main-BuUU4ZY1.js";
1
+ import { s as t } from "./main-CgxNfoi-.js";
2
2
  import "react";
3
3
  const e = (r) => /* @__PURE__ */ t.jsxs(
4
4
  "svg",
@@ -1,4 +1,4 @@
1
- import { s as c } from "./main-BuUU4ZY1.js";
1
+ import { s as c } from "./main-CgxNfoi-.js";
2
2
  import "react";
3
3
  const e = (r) => /* @__PURE__ */ c.jsxs(
4
4
  "svg",
@@ -1,4 +1,4 @@
1
- import { s as r } from "./main-BuUU4ZY1.js";
1
+ import { s as r } from "./main-CgxNfoi-.js";
2
2
  import "react";
3
3
  const e = (c) => /* @__PURE__ */ r.jsxs(
4
4
  "svg",
@@ -1,4 +1,4 @@
1
- import { s as t } from "./main-BuUU4ZY1.js";
1
+ import { s as t } from "./main-CgxNfoi-.js";
2
2
  import "react";
3
3
  const o = (s) => /* @__PURE__ */ t.jsxs(
4
4
  "svg",
@@ -1,4 +1,4 @@
1
- import { s as c } from "./main-BuUU4ZY1.js";
1
+ import { s as c } from "./main-CgxNfoi-.js";
2
2
  import "react";
3
3
  const e = (r) => /* @__PURE__ */ c.jsxs(
4
4
  "svg",
@@ -1,4 +1,4 @@
1
- import { s as c } from "./main-BuUU4ZY1.js";
1
+ import { s as c } from "./main-CgxNfoi-.js";
2
2
  import "react";
3
3
  const e = (r) => /* @__PURE__ */ c.jsxs(
4
4
  "svg",
@@ -166408,7 +166408,7 @@ const wd = (a, u, c) => {
166408
166408
  }
166409
166409
  const u = (async () => {
166410
166410
  try {
166411
- const c = (await wd(/* @__PURE__ */ Object.assign({ "../../icons/BarCode.jsx": () => Promise.resolve().then(() => vp), "../../icons/Caculator.jsx": () => Promise.resolve().then(() => mu), "../../icons/CryingFace.jsx": () => import("./CryingFace-B8FkdzVS-c-H103vp.js"), "../../icons/HappyFace.jsx": () => import("./HappyFace-CAg48Lio-Ct40hKt4.js"), "../../icons/NoParticularEmotion.jsx": () => import("./NoParticularEmotion-CXiqTd28-BvoKKgbe.js"), "../../icons/SadFace.jsx": () => import("./SadFace-CPkBktqq-vU1f5o6P.js"), "../../icons/SlightlySadFace.jsx": () => import("./SlightlySadFace-DqFsvQgy-BLM0riO6.js"), "../../icons/VeryHappyFace.jsx": () => import("./VeryHappyFace-MALA1Kuq-9IjY2unl.js") }), `../../icons/${a}.jsx`, 4)).default;
166411
+ const c = (await wd(/* @__PURE__ */ Object.assign({ "../../icons/BarCode.jsx": () => Promise.resolve().then(() => vp), "../../icons/Caculator.jsx": () => Promise.resolve().then(() => mu), "../../icons/CryingFace.jsx": () => import("./CryingFace-B8FkdzVS-BYlUinMD.js"), "../../icons/HappyFace.jsx": () => import("./HappyFace-CAg48Lio-CrH0ivZ_.js"), "../../icons/NoParticularEmotion.jsx": () => import("./NoParticularEmotion-CXiqTd28-k_BKemE3.js"), "../../icons/SadFace.jsx": () => import("./SadFace-CPkBktqq-DEImy5Gr.js"), "../../icons/SlightlySadFace.jsx": () => import("./SlightlySadFace-DqFsvQgy-B-aGwgoS.js"), "../../icons/VeryHappyFace.jsx": () => import("./VeryHappyFace-MALA1Kuq-BAqMKvuv.js") }), `../../icons/${a}.jsx`, 4)).default;
166412
166412
  return Ar.set(a, c), c;
166413
166413
  } catch {
166414
166414
  return Ar.set(a, null), null;
@@ -172669,7 +172669,7 @@ const FormComponent = ({
172669
172669
  });
172670
172670
  }
172671
172671
  })().finally(() => S(!1));
172672
- }, [a.data]);
172672
+ }, [a]);
172673
172673
  const K = useCallback(() => {
172674
172674
  var Ne;
172675
172675
  if (a != null && a.value)
@@ -176096,9 +176096,9 @@ const COMPONENT_END_ID = "end", isLoggedIn = () => {
176096
176096
  const F = () => {
176097
176097
  b(!1), m(null);
176098
176098
  const he = {};
176099
- isLoggedIn() && (he.user = window.user), lodash$2.get(c, "login", !0) || (he.login = !1), lodash$2.get(componentStates, "patient.value") && (he.patient = lodash$2.get(componentStates, "patient.value")), lodash$2.get(componentStates, "visit.value.id") && (he.visit = lodash$2.get(componentStates, "visit.value")), lodash$2.get(componentStates, "intake.value.id") && (he.intake = lodash$2.get(componentStates, "intake.value")), lodash$2.get(componentStates, "session.value") && (he.session = lodash$2.get(componentStates, "session.value")), lodash$2.has(componentStates, "on_workflow_completed.redirect_url") ? he.next = lodash$2.get(componentStates, "on_workflow_completed.redirect_url") : lodash$2.get(c, "options.on_completed.next.stay_in_page") && (he.stay_in_page = !0, componentStates = {
176099
+ isLoggedIn() && (he.user = window.user), lodash$2.get(c, "login", !0) || (he.login = !1), lodash$2.has(componentStates, "on_workflow_completed.redirect_url") ? he.next = lodash$2.get(componentStates, "on_workflow_completed.redirect_url") : lodash$2.get(c, "options.on_completed.next.stay_in_page") && (he.stay_in_page = !0, componentStates = {
176100
176100
  on_workflow_completed: componentStates.on_workflow_completed
176101
- }), lodash$2.get(c, "options.on_completed.next.open_next_record") && (he.open_next_record = !0, he.current_record_id = lodash$2.get(
176101
+ }), lodash$2.get(componentStates, "visit.value.id") && (he.visit = lodash$2.get(componentStates, "visit.value")), lodash$2.get(componentStates, "intake.value.id") && (he.intake = lodash$2.get(componentStates, "intake.value")), lodash$2.get(componentStates, "session.value") && (he.session = lodash$2.get(componentStates, "session.value")), lodash$2.get(c, "options.on_completed.next.open_next_record") && (he.open_next_record = !0, he.current_record_id = lodash$2.get(
176102
176102
  componentStates,
176103
176103
  "on_workflow_completed.current_record_id"
176104
176104
  )), a.onEnd && a.onEnd(he), Evisit.postMessageBackToParent({
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as m } from "./main-BuUU4ZY1.js";
1
+ import { D as m } from "./main-CgxNfoi-.js";
2
2
  export {
3
3
  m as DynamicFlows
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vc-page-workflows",
3
3
  "private": false,
4
- "version": "1.5.20",
4
+ "version": "1.5.22",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -25,7 +25,7 @@
25
25
  "@formio/react": "^6",
26
26
  "@stripe/react-stripe-js": "^3.1.1",
27
27
  "@stripe/stripe-js": "^5.3.0",
28
- "@vc/formio-components": "bitbucket:vsee/vc-page-formio#develop",
28
+ "@vc/formio-components": "bitbucket:vsee/vc-page-formio#v1.0.3",
29
29
  "@vc/library": "bitbucket:vsee/vc-page-lib#develop",
30
30
  "@vitejs/plugin-basic-ssl": "^1.2.0",
31
31
  "@vsee/vc-assets": "bitbucket:vsee/vc-assets#develop",