@factorialco/f0-react 1.427.2 → 1.427.3

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/dist/ai.d.ts CHANGED
@@ -1793,6 +1793,11 @@ declare module "gridstack" {
1793
1793
  }
1794
1794
 
1795
1795
 
1796
+ declare namespace Calendar {
1797
+ var displayName: string;
1798
+ }
1799
+
1800
+
1796
1801
  declare module "@tiptap/core" {
1797
1802
  interface Commands<ReturnType> {
1798
1803
  aiBlock: {
@@ -1840,8 +1845,3 @@ declare module "@tiptap/core" {
1840
1845
  };
1841
1846
  }
1842
1847
  }
1843
-
1844
-
1845
- declare namespace Calendar {
1846
- var displayName: string;
1847
- }
@@ -7235,6 +7235,11 @@ declare module "gridstack" {
7235
7235
  }
7236
7236
 
7237
7237
 
7238
+ declare namespace Calendar {
7239
+ var displayName: string;
7240
+ }
7241
+
7242
+
7238
7243
  declare module "@tiptap/core" {
7239
7244
  interface Commands<ReturnType> {
7240
7245
  aiBlock: {
@@ -7282,8 +7287,3 @@ declare module "@tiptap/core" {
7282
7287
  };
7283
7288
  }
7284
7289
  }
7285
-
7286
-
7287
- declare namespace Calendar {
7288
- var displayName: string;
7289
- }
package/dist/f0.d.ts CHANGED
@@ -10840,6 +10840,11 @@ declare module "gridstack" {
10840
10840
  }
10841
10841
 
10842
10842
 
10843
+ declare namespace Calendar {
10844
+ var displayName: string;
10845
+ }
10846
+
10847
+
10843
10848
  declare module "@tiptap/core" {
10844
10849
  interface Commands<ReturnType> {
10845
10850
  aiBlock: {
@@ -10887,8 +10892,3 @@ declare module "@tiptap/core" {
10887
10892
  };
10888
10893
  }
10889
10894
  }
10890
-
10891
-
10892
- declare namespace Calendar {
10893
- var displayName: string;
10894
- }
package/dist/f0.js CHANGED
@@ -1185,10 +1185,10 @@ function Tm(e) {
1185
1185
  }));
1186
1186
  return n ? nf(d, n) : d;
1187
1187
  }
1188
- var qe;
1188
+ var Ze;
1189
1189
  (function(e) {
1190
1190
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
1191
- })(qe || (qe = {}));
1191
+ })(Ze || (Ze = {}));
1192
1192
  function Er() {
1193
1193
  }
1194
1194
  function vi(e, t) {
@@ -2631,7 +2631,7 @@ function Ch() {
2631
2631
  }
2632
2632
  function Nh(e, t) {
2633
2633
  switch (t.type) {
2634
- case qe.DragStart:
2634
+ case Ze.DragStart:
2635
2635
  return {
2636
2636
  ...e,
2637
2637
  draggable: {
@@ -2640,7 +2640,7 @@ function Nh(e, t) {
2640
2640
  active: t.active
2641
2641
  }
2642
2642
  };
2643
- case qe.DragMove:
2643
+ case Ze.DragMove:
2644
2644
  return e.draggable.active == null ? e : {
2645
2645
  ...e,
2646
2646
  draggable: {
@@ -2651,8 +2651,8 @@ function Nh(e, t) {
2651
2651
  }
2652
2652
  }
2653
2653
  };
2654
- case qe.DragEnd:
2655
- case qe.DragCancel:
2654
+ case Ze.DragEnd:
2655
+ case Ze.DragCancel:
2656
2656
  return {
2657
2657
  ...e,
2658
2658
  draggable: {
@@ -2668,7 +2668,7 @@ function Nh(e, t) {
2668
2668
  }
2669
2669
  }
2670
2670
  };
2671
- case qe.RegisterDroppable: {
2671
+ case Ze.RegisterDroppable: {
2672
2672
  const {
2673
2673
  element: n
2674
2674
  } = t, {
@@ -2682,7 +2682,7 @@ function Nh(e, t) {
2682
2682
  }
2683
2683
  };
2684
2684
  }
2685
- case qe.SetDroppableDisabled: {
2685
+ case Ze.SetDroppableDisabled: {
2686
2686
  const {
2687
2687
  id: n,
2688
2688
  key: r,
@@ -2702,7 +2702,7 @@ function Nh(e, t) {
2702
2702
  }
2703
2703
  };
2704
2704
  }
2705
- case qe.UnregisterDroppable: {
2705
+ case Ze.UnregisterDroppable: {
2706
2706
  const {
2707
2707
  id: n,
2708
2708
  key: r
@@ -2985,7 +2985,7 @@ const Th = /* @__PURE__ */ ol(function(t) {
2985
2985
  };
2986
2986
  mr(() => {
2987
2987
  Bt?.(On), k(Ut.Initializing), v({
2988
- type: qe.DragStart,
2988
+ type: Ze.DragStart,
2989
2989
  initialCoordinates: Qe,
2990
2990
  active: Zt
2991
2991
  }), p({
@@ -2996,12 +2996,12 @@ const Th = /* @__PURE__ */ ol(function(t) {
2996
2996
  },
2997
2997
  onMove(Qe) {
2998
2998
  v({
2999
- type: qe.DragMove,
2999
+ type: Ze.DragMove,
3000
3000
  coordinates: Qe
3001
3001
  });
3002
3002
  },
3003
- onEnd: fn(qe.DragEnd),
3004
- onCancel: fn(qe.DragCancel)
3003
+ onEnd: fn(Ze.DragEnd),
3004
+ onCancel: fn(Ze.DragCancel)
3005
3005
  });
3006
3006
  Ot.current = Et;
3007
3007
  function fn(Qe) {
@@ -3023,13 +3023,13 @@ const Th = /* @__PURE__ */ ol(function(t) {
3023
3023
  collisions: Bt,
3024
3024
  delta: En,
3025
3025
  over: On
3026
- }, Qe === qe.DragEnd && typeof In == "function" && await Promise.resolve(In(Wt)) && (Qe = qe.DragCancel);
3026
+ }, Qe === Ze.DragEnd && typeof In == "function" && await Promise.resolve(In(Wt)) && (Qe = Ze.DragCancel);
3027
3027
  }
3028
3028
  M.current = null, mr(() => {
3029
3029
  v({
3030
3030
  type: Qe
3031
3031
  }), k(Ut.Uninitialized), Ie(null), le(null), ce(null), Ot.current = null;
3032
- const In = Qe === qe.DragEnd ? "onDragEnd" : "onDragCancel";
3032
+ const In = Qe === Ze.DragEnd ? "onDragEnd" : "onDragCancel";
3033
3033
  if (Wt) {
3034
3034
  const ys = te.current[In];
3035
3035
  ys?.(Wt), p({
@@ -3316,7 +3316,7 @@ function Lh(e) {
3316
3316
  !b || !k.current || (b.disconnect(), f.current = !1, b.observe(k.current));
3317
3317
  }, [k, b]), ie(
3318
3318
  () => (o({
3319
- type: qe.RegisterDroppable,
3319
+ type: Ze.RegisterDroppable,
3320
3320
  element: {
3321
3321
  id: r,
3322
3322
  key: a,
@@ -3326,7 +3326,7 @@ function Lh(e) {
3326
3326
  data: _
3327
3327
  }
3328
3328
  }), () => o({
3329
- type: qe.UnregisterDroppable,
3329
+ type: Ze.UnregisterDroppable,
3330
3330
  key: a,
3331
3331
  id: r
3332
3332
  })),
@@ -3334,7 +3334,7 @@ function Lh(e) {
3334
3334
  [r]
3335
3335
  ), ie(() => {
3336
3336
  n !== d.current.disabled && (o({
3337
- type: qe.SetDroppableDisabled,
3337
+ type: Ze.SetDroppableDisabled,
3338
3338
  id: r,
3339
3339
  key: a,
3340
3340
  disabled: n
@@ -6840,9 +6840,9 @@ function Sg(e) {
6840
6840
  return !1;
6841
6841
  return !0;
6842
6842
  }
6843
- function ze(e, t) {
6843
+ function qe(e, t) {
6844
6844
  const n = Array.isArray(t) ? t : za(t) ? [t] : bc(t), r = n.length === 1 ? e : wg(e, n), s = n.length - 1, a = n[s];
6845
- return r && delete r[a], s !== 0 && (Be(r) && at(r) || Array.isArray(r) && Sg(r)) && ze(e, n.slice(0, -1)), e;
6845
+ return r && delete r[a], s !== 0 && (Be(r) && at(r) || Array.isArray(r) && Sg(r)) && qe(e, n.slice(0, -1)), e;
6846
6846
  }
6847
6847
  var Fs = () => {
6848
6848
  let e = [];
@@ -6947,7 +6947,7 @@ function Zi(e, t, n) {
6947
6947
  name: n
6948
6948
  };
6949
6949
  }
6950
- var Dg = (e, t, n, r, s) => s.isOnAll ? !1 : !n && s.isOnTouch ? !(t || e) : (n ? r.isOnBlur : s.isOnBlur) ? !e : (n ? r.isOnChange : s.isOnChange) ? e : !0, Ag = (e, t) => !cs(H(e, t)).length && ze(e, t);
6950
+ var Dg = (e, t, n, r, s) => s.isOnAll ? !1 : !n && s.isOnTouch ? !(t || e) : (n ? r.isOnBlur : s.isOnBlur) ? !e : (n ? r.isOnChange : s.isOnChange) ? e : !0, Ag = (e, t) => !cs(H(e, t)).length && qe(e, t);
6951
6951
  const Fg = {
6952
6952
  mode: Dt.onSubmit,
6953
6953
  reValidateMode: Dt.onChange,
@@ -7005,7 +7005,7 @@ function Tg(e = {}) {
7005
7005
  }
7006
7006
  }, v = (y, A) => {
7007
7007
  !t.disabled && (d.isValidating || d.validatingFields) && ((y || Array.from(o.mount)).forEach((T) => {
7008
- T && (A ? Ne(n.validatingFields, T, A) : ze(n.validatingFields, T));
7008
+ T && (A ? Ne(n.validatingFields, T, A) : qe(n.validatingFields, T));
7009
7009
  }), f.state.next({
7010
7010
  validatingFields: n.validatingFields,
7011
7011
  isValidating: !at(n.validatingFields)
@@ -7058,7 +7058,7 @@ function Tg(e = {}) {
7058
7058
  if (!T || Z) {
7059
7059
  d.isDirty && (re = n.isDirty, n.isDirty = de.isDirty = N(), L = re !== de.isDirty);
7060
7060
  const _e = Ee || Gt(H(s, y), A);
7061
- re = !!(!Ee && H(n.dirtyFields, y)), _e || Ee ? ze(n.dirtyFields, y) : Ne(n.dirtyFields, y, !0), de.dirtyFields = n.dirtyFields, L = L || d.dirtyFields && re !== !_e;
7061
+ re = !!(!Ee && H(n.dirtyFields, y)), _e || Ee ? qe(n.dirtyFields, y) : Ne(n.dirtyFields, y, !0), de.dirtyFields = n.dirtyFields, L = L || d.dirtyFields && re !== !_e;
7062
7062
  }
7063
7063
  if (T) {
7064
7064
  const _e = H(n.touchedFields, y);
@@ -7069,7 +7069,7 @@ function Tg(e = {}) {
7069
7069
  return L ? de : {};
7070
7070
  }, _ = (y, A, T, Z) => {
7071
7071
  const j = H(n.errors, y), L = d.isValid && wt(A) && n.isValid !== A;
7072
- if (t.delayError && T ? (l = w(() => b(y, T)), l(t.delayError)) : (clearTimeout(u), l = null, T ? Ne(n.errors, y, T) : ze(n.errors, y)), (T ? !Gt(j, T) : j) || !at(Z) || L) {
7072
+ if (t.delayError && T ? (l = w(() => b(y, T)), l(t.delayError)) : (clearTimeout(u), l = null, T ? Ne(n.errors, y, T) : qe(n.errors, y)), (T ? !Gt(j, T) : j) || !at(Z) || L) {
7073
7073
  const re = {
7074
7074
  ...Z,
7075
7075
  ...L && wt(A) ? { isValid: A } : {},
@@ -7090,7 +7090,7 @@ function Tg(e = {}) {
7090
7090
  if (y)
7091
7091
  for (const T of y) {
7092
7092
  const Z = H(A, T);
7093
- Z ? Ne(n.errors, T, Z) : ze(n.errors, T);
7093
+ Z ? Ne(n.errors, T, Z) : qe(n.errors, T);
7094
7094
  }
7095
7095
  else
7096
7096
  n.errors = A;
@@ -7108,7 +7108,7 @@ function Tg(e = {}) {
7108
7108
  const _e = await zi(j, o.disabled, a, x, t.shouldUseNativeValidation && !A, de);
7109
7109
  if (Ee && d.validatingFields && v([Z]), _e[L.name] && (T.valid = !1, A))
7110
7110
  break;
7111
- !A && (H(_e, L.name) ? de ? xg(n.errors, _e, L.name) : Ne(n.errors, L.name, _e[L.name]) : ze(n.errors, L.name));
7111
+ !A && (H(_e, L.name) ? de ? xg(n.errors, _e, L.name) : Ne(n.errors, L.name, _e[L.name]) : qe(n.errors, L.name));
7112
7112
  }
7113
7113
  !at(re) && await F(re, A, T);
7114
7114
  }
@@ -7209,7 +7209,7 @@ function Tg(e = {}) {
7209
7209
  isValidating: !!H(n.validatingFields, y),
7210
7210
  isTouched: !!H((A || n).touchedFields, y)
7211
7211
  }), $ = (y) => {
7212
- y && Un(y).forEach((A) => ze(n.errors, A)), f.state.next({
7212
+ y && Un(y).forEach((A) => qe(n.errors, A)), f.state.next({
7213
7213
  errors: y ? n.errors : {}
7214
7214
  });
7215
7215
  }, fe = (y, A, T) => {
@@ -7227,7 +7227,7 @@ function Tg(e = {}) {
7227
7227
  next: (T) => y(E(void 0, A), T)
7228
7228
  }) : E(y, A, !0), ae = (y, A = {}) => {
7229
7229
  for (const T of y ? Un(y) : o.mount)
7230
- o.mount.delete(T), o.array.delete(T), A.keepValue || (ze(r, T), ze(a, T)), !A.keepError && ze(n.errors, T), !A.keepDirty && ze(n.dirtyFields, T), !A.keepTouched && ze(n.touchedFields, T), !A.keepIsValidating && ze(n.validatingFields, T), !t.shouldUnregister && !A.keepDefaultValue && ze(s, T);
7230
+ o.mount.delete(T), o.array.delete(T), A.keepValue || (qe(r, T), qe(a, T)), !A.keepError && qe(n.errors, T), !A.keepDirty && qe(n.dirtyFields, T), !A.keepTouched && qe(n.touchedFields, T), !A.keepIsValidating && qe(n.validatingFields, T), !t.shouldUnregister && !A.keepDefaultValue && qe(s, T);
7231
7231
  f.values.next({
7232
7232
  values: { ...a }
7233
7233
  }), f.state.next({
@@ -7308,7 +7308,7 @@ function Tg(e = {}) {
7308
7308
  n.errors = L, j = re;
7309
7309
  } else
7310
7310
  await F(r);
7311
- if (ze(n.errors, "root"), at(n.errors)) {
7311
+ if (qe(n.errors, "root"), at(n.errors)) {
7312
7312
  f.state.next({
7313
7313
  errors: {}
7314
7314
  });
@@ -7328,7 +7328,7 @@ function Tg(e = {}) {
7328
7328
  }), Z)
7329
7329
  throw Z;
7330
7330
  }, De = (y, A = {}) => {
7331
- H(r, y) && (je(A.defaultValue) ? G(y, st(H(s, y))) : (G(y, A.defaultValue), Ne(s, y, st(A.defaultValue))), A.keepTouched || ze(n.touchedFields, y), A.keepDirty || (ze(n.dirtyFields, y), n.isDirty = A.defaultValue ? N(y, st(H(s, y))) : N()), A.keepError || (ze(n.errors, y), d.isValid && g()), f.state.next({ ...n }));
7331
+ H(r, y) && (je(A.defaultValue) ? G(y, st(H(s, y))) : (G(y, A.defaultValue), Ne(s, y, st(A.defaultValue))), A.keepTouched || qe(n.touchedFields, y), A.keepDirty || (qe(n.dirtyFields, y), n.isDirty = A.defaultValue ? N(y, st(H(s, y))) : N()), A.keepError || (qe(n.errors, y), d.isValid && g()), f.state.next({ ...n }));
7332
7332
  }, Te = (y, A = {}) => {
7333
7333
  const T = y ? st(y) : s, Z = st(T), j = at(y), L = j ? s : Z;
7334
7334
  if (A.keepDefaultValues || (s = T), !A.keepValues) {
@@ -16055,7 +16055,7 @@ function Nu({
16055
16055
  );
16056
16056
  return /* @__PURE__ */ c(Cu.Provider, { value: R, children: t });
16057
16057
  }
16058
- function Ze() {
16058
+ function ze() {
16059
16059
  const e = et(Cu);
16060
16060
  if (!e)
16061
16061
  throw new Error(
@@ -16086,7 +16086,7 @@ function Tn() {
16086
16086
  };
16087
16087
  }
16088
16088
  const ni = () => {
16089
- const { isQuestionTypeAllowed: e } = Ze(), { t } = Fe();
16089
+ const { isQuestionTypeAllowed: e } = ze(), { t } = Fe();
16090
16090
  return [
16091
16091
  {
16092
16092
  label: t("surveyFormBuilder.questionTypes.rating"),
@@ -16159,7 +16159,7 @@ const ni = () => {
16159
16159
  file: Sa,
16160
16160
  checkbox: Yr
16161
16161
  }, Zy = () => {
16162
- const { disabled: e, answering: t, onAddNewElement: n } = Ze(), r = ni(), { t: s } = Fe(), a = (l) => {
16162
+ const { disabled: e, answering: t, onAddNewElement: n } = ze(), r = ni(), { t: s } = Fe(), a = (l) => {
16163
16163
  n?.({
16164
16164
  type: l
16165
16165
  });
@@ -16241,7 +16241,7 @@ function Au() {
16241
16241
  deleteElement: n,
16242
16242
  onDuplicateElement: r,
16243
16243
  disallowOptionalQuestions: s
16244
- } = Ze(), a = ni();
16244
+ } = ze(), a = ni();
16245
16245
  return { getActionsForQuestion: P(
16246
16246
  (o, l, u) => {
16247
16247
  const d = t(o), f = Uy(l, d);
@@ -16483,7 +16483,7 @@ function Xy({
16483
16483
  ] });
16484
16484
  }
16485
16485
  function dn(e) {
16486
- const { answering: t, getSectionContainingQuestion: n } = Ze(), r = n(e.id), s = e.locked || r?.locked;
16486
+ const { answering: t, getSectionContainingQuestion: n } = ze(), r = n(e.id), s = e.locked || r?.locked;
16487
16487
  return t ? !1 : s || !0;
16488
16488
  }
16489
16489
  const So = {
@@ -16504,7 +16504,7 @@ const So = {
16504
16504
  answering: d,
16505
16505
  getIsSingleQuestionInSection: f,
16506
16506
  getSectionContainingQuestion: h
16507
- } = Ze(), m = h(e), x = m?.locked || a, w = !!m, [g, v] = ee(!1), [p, b] = ee(!1), { isDragging: C } = Tn(), { t: k } = Fe(), S = (G) => {
16507
+ } = ze(), m = h(e), x = m?.locked || a, w = !!m, [g, v] = ee(!1), [p, b] = ee(!1), { isDragging: C } = Tn(), { t: k } = Fe(), S = (G) => {
16508
16508
  o?.({
16509
16509
  id: e,
16510
16510
  type: i,
@@ -16671,7 +16671,7 @@ const So = {
16671
16671
  label: t,
16672
16672
  ...n
16673
16673
  }) => {
16674
- const { onQuestionChange: r, answering: s, disabled: a } = Ze(), i = dn(n), { t: o } = Fe();
16674
+ const { onQuestionChange: r, answering: s, disabled: a } = ze(), i = dn(n), { t: o } = Fe();
16675
16675
  if (s)
16676
16676
  return /* @__PURE__ */ c(Me, { ...n, children: /* @__PURE__ */ c("div", { className: "px-0.5", children: /* @__PURE__ */ c(
16677
16677
  Gn,
@@ -16719,7 +16719,7 @@ const So = {
16719
16719
  value: e,
16720
16720
  ...t
16721
16721
  }) => {
16722
- const { onQuestionChange: n } = Ze(), r = dn(t), { t: s } = Fe(), a = {
16722
+ const { onQuestionChange: n } = ze(), r = dn(t), { t: s } = Fe(), a = {
16723
16723
  id: t.id,
16724
16724
  type: "date",
16725
16725
  label: s("surveyFormBuilder.answer.label"),
@@ -16745,7 +16745,7 @@ const So = {
16745
16745
  options: e,
16746
16746
  ...t
16747
16747
  }) => {
16748
- const { onQuestionChange: n, answering: r } = Ze(), s = dn(t), { t: a } = Fe(), i = V(
16748
+ const { onQuestionChange: n, answering: r } = ze(), s = dn(t), { t: a } = Fe(), i = V(
16749
16749
  () => e.map((u) => ({ value: u.value, label: u.label })),
16750
16750
  [e]
16751
16751
  ), o = a("surveyFormBuilder.answer.dropdownPlaceholder"), l = V(
@@ -16815,7 +16815,7 @@ const So = {
16815
16815
  maxSizeMB: r,
16816
16816
  ...s
16817
16817
  }) => {
16818
- const { onQuestionChange: a, useUpload: i } = Ze(), o = dn(s), { t: l } = Fe(), u = t ?? i, d = {
16818
+ const { onQuestionChange: a, useUpload: i } = ze(), o = dn(s), { t: l } = Fe(), u = t ?? i, d = {
16819
16819
  id: s.id,
16820
16820
  type: "file",
16821
16821
  label: l("surveyFormBuilder.answer.label"),
@@ -16844,7 +16844,7 @@ const So = {
16844
16844
  value: e,
16845
16845
  ...t
16846
16846
  }) => {
16847
- const { t: n } = Fe(), { onQuestionChange: r, answering: s } = Ze(), a = dn(t), i = n("surveyFormBuilder.answer.linkPlaceholder"), o = {
16847
+ const { t: n } = Fe(), { onQuestionChange: r, answering: s } = ze(), a = dn(t), i = n("surveyFormBuilder.answer.linkPlaceholder"), o = {
16848
16848
  id: t.id,
16849
16849
  type: "text",
16850
16850
  inputType: "url",
@@ -16872,7 +16872,7 @@ const So = {
16872
16872
  value: e,
16873
16873
  ...t
16874
16874
  }) => {
16875
- const { t: n } = Fe(), { onQuestionChange: r, answering: s } = Ze(), a = dn(t), i = (l) => {
16875
+ const { t: n } = Fe(), { onQuestionChange: r, answering: s } = ze(), a = dn(t), i = (l) => {
16876
16876
  r?.({
16877
16877
  ...t,
16878
16878
  type: "numeric",
@@ -16979,7 +16979,7 @@ const So = {
16979
16979
  value: t,
16980
16980
  ...n
16981
16981
  }) => {
16982
- const { onQuestionChange: r, disabled: s, answering: a } = Ze(), o = ku(e) === "emojis", l = (d) => {
16982
+ const { onQuestionChange: r, disabled: s, answering: a } = ze(), o = ku(e) === "emojis", l = (d) => {
16983
16983
  r?.({
16984
16984
  id: n.id,
16985
16985
  value: d,
@@ -17162,7 +17162,7 @@ const ux = {
17162
17162
  disabled: r,
17163
17163
  answering: s,
17164
17164
  getSectionContainingQuestion: a
17165
- } = Ze(), i = new Set(e.map((g) => g.value)).size !== e.length, o = a(t.id), l = t.locked || o?.locked, { t: u } = Fe(), d = V(
17165
+ } = ze(), i = new Set(e.map((g) => g.value)).size !== e.length, o = a(t.id), l = t.locked || o?.locked, { t: u } = Fe(), d = V(
17166
17166
  () => ({
17167
17167
  id: t.id,
17168
17168
  type: t.type,
@@ -17292,7 +17292,7 @@ const ux = {
17292
17292
  value: e,
17293
17293
  ...t
17294
17294
  }) => {
17295
- const { onQuestionChange: n, answering: r } = Ze(), s = dn(t), { t: a } = Fe(), i = a("surveyFormBuilder.answer.textPlaceholder"), o = V(
17295
+ const { onQuestionChange: n, answering: r } = ze(), s = dn(t), { t: a } = Fe(), i = a("surveyFormBuilder.answer.textPlaceholder"), o = V(
17296
17296
  () => t.type === "text" ? {
17297
17297
  id: t.id,
17298
17298
  type: "text",
@@ -17366,7 +17366,7 @@ const ux = {
17366
17366
  showEndOfSection: t,
17367
17367
  className: n
17368
17368
  }) => {
17369
- const { isDragging: r, setIsDragging: s, setDraggedItemId: a, draggedItemId: i } = Tn(), o = Da(), { disabled: l, answering: u, getSectionContainingQuestion: d } = Ze(), f = d(e.question.id), h = !!f && i === f.id, m = () => {
17369
+ const { isDragging: r, setIsDragging: s, setDraggedItemId: a, draggedItemId: i } = Tn(), o = Da(), { disabled: l, answering: u, getSectionContainingQuestion: d } = ze(), f = d(e.question.id), h = !!f && i === f.id, m = () => {
17370
17370
  s(!0), a(e.question.id);
17371
17371
  }, x = () => {
17372
17372
  s(!1), a(null);
@@ -17422,7 +17422,7 @@ const ux = {
17422
17422
  }
17423
17423
  );
17424
17424
  }, px = ({ question: e }) => {
17425
- const { isDragging: t, setIsDragging: n, setDraggedItemId: r } = Tn(), s = Da(), { disabled: a, answering: i, getSectionContainingQuestion: o } = Ze(), l = o(e.id), u = () => {
17425
+ const { isDragging: t, setIsDragging: n, setDraggedItemId: r } = Tn(), s = Da(), { disabled: a, answering: i, getSectionContainingQuestion: o } = ze(), l = o(e.id), u = () => {
17426
17426
  n(!0), r(e.id);
17427
17427
  }, d = () => {
17428
17428
  n(!1), r(null);
@@ -17487,7 +17487,7 @@ const ux = {
17487
17487
  answering: l,
17488
17488
  deleteElement: u,
17489
17489
  onDuplicateElement: d
17490
- } = Ze(), [f, h] = ee(!1), { t: m } = Fe(), x = V(
17490
+ } = ze(), [f, h] = ee(!1), { t: m } = Fe(), x = V(
17491
17491
  () => ({
17492
17492
  id: e,
17493
17493
  title: t,
@@ -17619,7 +17619,7 @@ const ux = {
17619
17619
  item: e,
17620
17620
  className: t
17621
17621
  }) => {
17622
- const { isDragging: n, setIsDragging: r, setDraggedItemId: s, draggedItemId: a } = Tn(), i = Da(), { disabled: o, answering: l } = Ze(), u = a === e.section.id, d = () => {
17622
+ const { isDragging: n, setIsDragging: r, setDraggedItemId: s, draggedItemId: a } = Tn(), i = Da(), { disabled: o, answering: l } = ze(), u = a === e.section.id, d = () => {
17623
17623
  r(!0), s(e.section.id);
17624
17624
  }, f = () => {
17625
17625
  r(!1), s(null);
@@ -17682,7 +17682,7 @@ const ux = {
17682
17682
  questionOptionsLabel: l,
17683
17683
  requiredLabel: u,
17684
17684
  questionTypeLabel: d
17685
- } = t, { deleteElement: f, onDuplicateElement: h, disabled: m, answering: x } = Ze(), { getActionsForQuestion: w, questionTypes: g } = Au(), v = P((b) => {
17685
+ } = t, { deleteElement: f, onDuplicateElement: h, disabled: m, answering: x } = ze(), { getActionsForQuestion: w, questionTypes: g } = Au(), v = P((b) => {
17686
17686
  yx(b);
17687
17687
  }, []), p = P(
17688
17688
  (b, C, k) => {
@@ -17865,7 +17865,7 @@ const Ou = ({
17865
17865
  onChange: t,
17866
17866
  answering: n
17867
17867
  }) => {
17868
- const { t: r } = Fe(), { portalContainer: s } = et(Ad), a = xx(e, {
17868
+ const { t: r } = Fe(), { disabled: s } = ze(), { portalContainer: a } = et(Ad), i = xx(e, {
17869
17869
  untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
17870
17870
  untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
17871
17871
  duplicateQuestionLabel: r("surveyFormBuilder.actions.duplicateQuestion"),
@@ -17875,23 +17875,23 @@ const Ou = ({
17875
17875
  questionOptionsLabel: r("surveyFormBuilder.labels.questionOptions"),
17876
17876
  requiredLabel: r("surveyFormBuilder.labels.required"),
17877
17877
  questionTypeLabel: r("surveyFormBuilder.labels.questionType")
17878
- }), i = P(
17879
- (o) => {
17880
- t(wx(o, e));
17878
+ }), o = P(
17879
+ (l) => {
17880
+ t(wx(l, e));
17881
17881
  },
17882
17882
  [e, t]
17883
17883
  );
17884
17884
  return /* @__PURE__ */ c("div", { className: "sticky left-0 top-1/2 z-10 hidden h-0 -translate-y-12 px-2 @3xl:block", children: /* @__PURE__ */ c(
17885
17885
  Su,
17886
17886
  {
17887
- items: a,
17887
+ items: i,
17888
17888
  barsAlign: "left",
17889
17889
  size: "md",
17890
17890
  collapsible: !0,
17891
17891
  showChildrenCounter: !0,
17892
- sortable: !n,
17893
- onReorder: i,
17894
- portalContainer: s
17892
+ sortable: !n && !s,
17893
+ onReorder: o,
17894
+ portalContainer: a
17895
17895
  }
17896
17896
  ) });
17897
17897
  };
@@ -729,6 +729,11 @@ declare module "gridstack" {
729
729
  }
730
730
 
731
731
 
732
+ declare namespace Calendar {
733
+ var displayName: string;
734
+ }
735
+
736
+
732
737
  declare module "@tiptap/core" {
733
738
  interface Commands<ReturnType> {
734
739
  aiBlock: {
@@ -776,8 +781,3 @@ declare module "@tiptap/core" {
776
781
  };
777
782
  }
778
783
  }
779
-
780
-
781
- declare namespace Calendar {
782
- var displayName: string;
783
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.427.2",
3
+ "version": "1.427.3",
4
4
  "private": false,
5
5
  "files": [
6
6
  "assets",