cft-builder 0.2.61 → 0.2.63

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.
@@ -32538,13 +32538,13 @@ class Kte {
32538
32538
  }
32539
32539
  const yf = function(e, n, r) {
32540
32540
  return new Kte(e, n, r);
32541
- }, Sk = fh(void 0), Xte = ({ children: t, option: e, saveFormBuilderSchema: n, templateSchema: r, onChange: i }) => {
32542
- const a = { ...g7, ...r }, [s, o] = LO(MZ, a);
32541
+ }, Sk = fh(void 0), Xte = ({ children: t, option: e, saveFormBuilderSchema: n, templateSchema: r, onChange: i, isHTML5BackendDisabled: a = !1 }) => {
32542
+ const s = { ...g7, ...r }, [o, l] = LO(MZ, s);
32543
32543
  gn(() => {
32544
- n && n(s);
32545
- }, [s]);
32546
- const { isPreview: l, isAdmin: u, isRenderView: d, renderType: f, isAdvanceView: p, globalAlignment: g = "ltr", emitSocketData: v, media: m, reusableComponent: x, saveFormProgress: C, showSettings: E } = e;
32547
- return /* @__PURE__ */ c(Sk.Provider, { value: { media: m, isPreview: l, isAdmin: u, isRenderView: d, renderType: f, isAdvanceView: p, globalAlignment: g, emitSocketData: v, reusableComponent: x, state: s, dispatch: o, onChange: i, saveFormProgress: C, showSettings: E }, children: /* @__PURE__ */ c(bf, { backend: yf, children: t }) });
32544
+ n && n(o);
32545
+ }, [o]);
32546
+ const { isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v = "ltr", emitSocketData: m, media: x, reusableComponent: C, saveFormProgress: E, showSettings: S } = e;
32547
+ return /* @__PURE__ */ c(Sk.Provider, { value: { media: x, isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v, emitSocketData: m, reusableComponent: C, state: o, dispatch: l, onChange: i, saveFormProgress: E, showSettings: S }, children: a ? /* @__PURE__ */ c(Ce, { children: t }) : /* @__PURE__ */ c(bf, { backend: yf, children: t }) });
32548
32548
  }, Tk = () => i1(Sk), Gte = (t, e, n) => {
32549
32549
  const r = Array.from(t), [i] = r.splice(e, 1);
32550
32550
  return r.splice(n, 0, i), r;
@@ -33503,19 +33503,19 @@ const Lk = (t) => (e) => {
33503
33503
  return { ...t, ...e.payLoad };
33504
33504
  }
33505
33505
  return t;
33506
- }, Bk = fh(void 0), zEe = ({ option: t, taskOptions: e, saveFormBuilderSchema: n, templateSchema: r, taskValue: i, children: a }) => {
33507
- const [s, o] = LO(Sne, { ...w7, ...i }), {
33508
- progressMaxValue: l = 0,
33509
- progressValue: u = 0,
33510
- registerData: d = null,
33511
- ...f
33506
+ }, Bk = fh(void 0), zEe = ({ option: t, taskOptions: e, saveFormBuilderSchema: n, templateSchema: r, taskValue: i, children: a, isHTML5BackendDisabled: s = !1 }) => {
33507
+ const [o, l] = LO(Sne, { ...w7, ...i }), {
33508
+ progressMaxValue: u = 0,
33509
+ progressValue: d = 0,
33510
+ registerData: f = null,
33511
+ ...p
33512
33512
  } = i || {};
33513
33513
  return gn(() => {
33514
- o({
33514
+ l({
33515
33515
  type: Ok,
33516
- payLoad: f
33516
+ payLoad: p
33517
33517
  });
33518
- }, [i]), /* @__PURE__ */ c(Bk.Provider, { value: { taskOptions: e, state: s, dispatch: o }, children: /* @__PURE__ */ c(Xte, { option: t, saveFormBuilderSchema: n, templateSchema: r, onChange: () => {
33518
+ }, [i]), /* @__PURE__ */ c(Bk.Provider, { value: { taskOptions: e, state: o, dispatch: l }, children: /* @__PURE__ */ c(Xte, { isHTML5BackendDisabled: s, option: t, saveFormBuilderSchema: n, templateSchema: r, onChange: () => {
33519
33519
  }, children: a }) });
33520
33520
  }, Tne = () => i1(Bk), hr = () => {
33521
33521
  var ye, Z, B, ee, W, ce, Ie, Te;
@@ -58129,7 +58129,7 @@ var Uue = function() {
58129
58129
  theme: i.theme,
58130
58130
  formats: i.formats
58131
58131
  };
58132
- Uue ? A(new Quill(d.current, V)) : import("./quill-B7YsDC18.js").then(function(q) {
58132
+ Uue ? A(new Quill(d.current, V)) : import("./quill-DSe-30l5.js").then(function(q) {
58133
58133
  if (q && Se.isExist(d.current)) {
58134
58134
  var P;
58135
58135
  q.default ? P = new q.default(d.current, V) : P = new q(d.current, V), A(P);
@@ -119998,6 +119998,7 @@ const fSe = RU(axe), hSe = (t) => {
119998
119998
  ) }) : /* @__PURE__ */ c(
119999
119999
  FO,
120000
120000
  {
120001
+ isAdmin: !1,
120001
120002
  ...t,
120002
120003
  field: d,
120003
120004
  isPreview: o,
@@ -120011,8 +120012,7 @@ const fSe = RU(axe), hSe = (t) => {
120011
120012
  actionBodyTemplate: J,
120012
120013
  isFocus: _,
120013
120014
  inputValue: S,
120014
- handleFieldSettingsSidebar: _e,
120015
- isAdmin: l
120015
+ handleFieldSettingsSidebar: _e
120016
120016
  }
120017
120017
  )
120018
120018
  }
@@ -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-B97ijl8U.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-DmTwdvcQ.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.61",
3
+ "version": "0.2.63",
4
4
  "type": "module",
5
5
  "types": "dist/types/index",
6
6
  "files": [