cft-builder 0.2.46 → 0.2.48

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.
@@ -33324,7 +33324,7 @@ function bne() {
33324
33324
  };
33325
33325
  }
33326
33326
  const Lk = (t) => (e) => {
33327
- e({
33327
+ console.log("updateProgresValue", t), e({
33328
33328
  type: Wy,
33329
33329
  payLoad: { progressValue: t }
33330
33330
  });
@@ -33430,7 +33430,7 @@ const Lk = (t) => (e) => {
33430
33430
  case Ok:
33431
33431
  return { ...t, ...e.payLoad };
33432
33432
  case Wy:
33433
- return { ...t, ...e.payLoad };
33433
+ return console.log("action.payLoad", e.payLoad), { ...t, ...e.payLoad };
33434
33434
  case Dk:
33435
33435
  return { ...t, registerData: e.payLoad.registerData };
33436
33436
  case _k:
@@ -33516,7 +33516,7 @@ const Lk = (t) => (e) => {
33516
33516
  const { taskOptions: n, state: r, dispatch: i } = Tne();
33517
33517
  if (r === void 0)
33518
33518
  throw new Error("Must be wrapped in task render provider");
33519
- console.log("state", r);
33519
+ console.log("state.progressValue", r.progressValue), console.log("state.taskProgressMaxValue", r.progressMaxValue);
33520
33520
  const a = r.task_status, s = r.task_status, o = r.userTaskSubmitFormData, l = r.userTrainingSaveData, u = r.taskSchema, d = r.assessmentData, f = r.progressLoading, p = r.submitting, g = r.httpRequest, v = r.taskData, m = r.progressMaxValue, x = r.maxTabs, S = r.tabNoOfFieldsData, T = r.registerData, A = r.progressValue, E = r.noOfTotalElements, w = r.menuList, _ = r.loading, D = r.submitting, F = r.success, L = r.success_message, R = (ye = n == null ? void 0 : n.exam) != null && ye.startQuiz ? (Z = n == null ? void 0 : n.exam) == null ? void 0 : Z.startQuiz : () => {
33521
33521
  }, V = (B = n == null ? void 0 : n.exam) != null && B.AddUserAssessmentAnswer ? (ee = n == null ? void 0 : n.exam) == null ? void 0 : ee.AddUserAssessmentAnswer : () => {
33522
33522
  }, j = (W = n == null ? void 0 : n.exam) != null && W.endQuiz ? (ce = n == null ? void 0 : n.exam) == null ? void 0 : ce.endQuiz : () => {
@@ -33545,7 +33545,9 @@ const Lk = (t) => (e) => {
33545
33545
  ),
33546
33546
  [i]
33547
33547
  ), he = tt.useCallback(
33548
- (ge) => i(Lk(ge)),
33548
+ (ge) => {
33549
+ console.log("updateTaskProgressValue hook", ge), Lk(ge)(i);
33550
+ },
33549
33551
  [i]
33550
33552
  ), J = tt.useCallback(
33551
33553
  (ge) => i(yne(ge)),
@@ -54527,7 +54529,7 @@ const $i = (t) => {
54527
54529
  onBlur: (A) => {
54528
54530
  var w;
54529
54531
  const E = s4.sanitize((w = A == null ? void 0 : A.target) == null ? void 0 : w.innerText);
54530
- console.log("DOMPurify.sanitize(e?.target?.innerText)", E), x(E), v("label", d, E);
54532
+ x(E), v("label", d, E);
54531
54533
  },
54532
54534
  tagName: "article"
54533
54535
  }
@@ -55256,7 +55258,7 @@ const $i = (t) => {
55256
55258
  postValue: ""
55257
55259
  });
55258
55260
  }
55259
- if (!(v != null && v.rowIsRepeatable)) {
55261
+ if (console.log("row?.rowIsRepeatable", v == null ? void 0 : v.rowIsRepeatable), !(v != null && v.rowIsRepeatable)) {
55260
55262
  n($);
55261
55263
  const ue = Object.keys($).length;
55262
55264
  r(ue);
@@ -58121,7 +58123,7 @@ var Uue = function() {
58121
58123
  theme: i.theme,
58122
58124
  formats: i.formats
58123
58125
  };
58124
- Uue ? w(new Quill(d.current, V)) : import("./quill-BRtaJs4F.js").then(function(j) {
58126
+ Uue ? w(new Quill(d.current, V)) : import("./quill-C4W5eeB2.js").then(function(j) {
58125
58127
  if (j && Se.isExist(d.current)) {
58126
58128
  var P;
58127
58129
  j.default ? P = new j.default(d.current, V) : P = new j(d.current, V), w(P);
@@ -123484,9 +123486,7 @@ const fSe = RU(axe), hSe = (t) => {
123484
123486
  }
123485
123487
  );
123486
123488
  }, QSe = () => {
123487
- const { isPreview: t, isAdvanceView: e } = Zt(), [n, r] = Pe(!1), [i, a] = Pe(!1), [s, o] = Pe(0), { formBuilderFormLayout: l, formBuilderFormSchema: u } = sn(), { emitSocketData: d } = Zt();
123488
- console.log("state", u);
123489
- const f = (p, g, v) => /* @__PURE__ */ c(
123489
+ const { isPreview: t, isAdvanceView: e } = Zt(), [n, r] = Pe(!1), [i, a] = Pe(!1), [s, o] = Pe(0), { formBuilderFormLayout: l, formBuilderFormSchema: u } = sn(), { emitSocketData: d } = Zt(), f = (p, g, v) => /* @__PURE__ */ c(
123490
123490
  WSe,
123491
123491
  {
123492
123492
  data: p,
@@ -128909,20 +128909,20 @@ Lv.propTypes = {
128909
128909
  updateTrainingProgress: bn.func
128910
128910
  };
128911
128911
  const ZTe = () => {
128912
- var r, i;
128913
- const { formBuilderFormLayout: t } = sn(), { isPreview: e } = Zt(), n = (a, s, o) => /* @__PURE__ */ c(
128912
+ var r;
128913
+ const { formBuilderFormLayout: t } = sn(), { isPreview: e } = Zt(), n = (i, a, s) => /* @__PURE__ */ c(
128914
128914
  OTe,
128915
128915
  {
128916
- data: a,
128917
- path: s,
128918
- pageIndex: o
128916
+ data: i,
128917
+ path: a,
128918
+ pageIndex: s
128919
128919
  },
128920
- `page-${a.uuid}`
128920
+ `page-${i.uuid}`
128921
128921
  );
128922
- return e ? (console.log("pages[0]?.children", (r = t[0]) == null ? void 0 : r.children), /* @__PURE__ */ c(Lv, { sections: ((i = t[0]) == null ? void 0 : i.children) || [], showInfoPanel: !1, updateTrainingProgress: () => {
128923
- } })) : /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ c("div", { className: "page", children: (t == null ? void 0 : t.length) && t.map((a, s) => {
128924
- const o = `${s}`;
128925
- return /* @__PURE__ */ c("div", { children: n(a, o, s) }, `exam-page-${s}`);
128922
+ return e ? /* @__PURE__ */ c(Lv, { sections: ((r = t[0]) == null ? void 0 : r.children) || [], showInfoPanel: !1, updateTrainingProgress: () => {
128923
+ } }) : /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ c("div", { className: "page", children: (t == null ? void 0 : t.length) && t.map((i, a) => {
128924
+ const s = `${a}`;
128925
+ return /* @__PURE__ */ c("div", { children: n(i, s, a) }, `exam-page-${a}`);
128926
128926
  }) }) });
128927
128927
  }, eEe = (t) => {
128928
128928
  var _, D, F, L, R;
@@ -1,7 +1,7 @@
1
1
  var Bl = Object.defineProperty;
2
2
  var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-DbFeGeyA.js";
4
+ import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-CIYHc7IO.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cft-builder",
3
- "version": "0.2.46",
3
+ "version": "0.2.48",
4
4
  "type": "module",
5
5
  "types": "dist/types/index",
6
6
  "files": [