@notmrabhi/flowforge 0.1.99 → 0.1.101

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.
Files changed (41) hide show
  1. package/dist/{SchemaBuilderDrawer-DQYn2I4F.js → SchemaBuilderDrawer-CF4cJeXJ.js} +2 -2
  2. package/dist/{SchemaBuilderDrawer-DQYn2I4F.js.map → SchemaBuilderDrawer-CF4cJeXJ.js.map} +1 -1
  3. package/dist/{SchemaBuilderDrawer-DSfw0D2b.js → SchemaBuilderDrawer-CtT0j0WY.js} +2 -2
  4. package/dist/{SchemaBuilderDrawer-DSfw0D2b.js.map → SchemaBuilderDrawer-CtT0j0WY.js.map} +1 -1
  5. package/dist/{WorkflowExecutionHistory-dFqYZRj4.js → WorkflowExecutionHistory-6X5WPDN6.js} +2 -2
  6. package/dist/WorkflowExecutionHistory-6X5WPDN6.js.map +1 -0
  7. package/dist/{WorkflowExecutionHistory-VxBT0l5H.js → WorkflowExecutionHistory-jMlntXkG.js} +2 -3
  8. package/dist/WorkflowExecutionHistory-jMlntXkG.js.map +1 -0
  9. package/dist/buildBackendPayload-GM9No65b.js +2 -0
  10. package/dist/buildBackendPayload-GM9No65b.js.map +1 -0
  11. package/dist/buildBackendPayload-TJ27pbpx.js +349 -0
  12. package/dist/buildBackendPayload-TJ27pbpx.js.map +1 -0
  13. package/dist/canvas.cjs +1 -1
  14. package/dist/canvas.js +1 -1
  15. package/dist/core.cjs +1 -1
  16. package/dist/core.d.ts +12 -0
  17. package/dist/core.js +1 -1
  18. package/dist/form.cjs +1 -1
  19. package/dist/form.js +2 -2
  20. package/dist/{index-BmFseAEn.js → index-BW1ACtO5.js} +7 -7
  21. package/dist/{index-BmFseAEn.js.map → index-BW1ACtO5.js.map} +1 -1
  22. package/dist/{index-DfuN9q7p.js → index-CyHfUy0G.js} +2 -2
  23. package/dist/{index-DfuN9q7p.js.map → index-CyHfUy0G.js.map} +1 -1
  24. package/dist/{index-BvpacxDE.js → index-DfJ_w7XO.js} +14 -16
  25. package/dist/{index-BvpacxDE.js.map → index-DfJ_w7XO.js.map} +1 -1
  26. package/dist/{index-CT-rko-F.js → index-DiT-JDHC.js} +2 -2
  27. package/dist/{index-CT-rko-F.js.map → index-DiT-JDHC.js.map} +1 -1
  28. package/dist/{index-ClNHzqeD.js → index-Dj-p10sr.js} +2 -2
  29. package/dist/{index-ClNHzqeD.js.map → index-Dj-p10sr.js.map} +1 -1
  30. package/dist/{index-D9udXMrE.js → index-DrduWLV7.js} +2 -2
  31. package/dist/{index-D9udXMrE.js.map → index-DrduWLV7.js.map} +1 -1
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.d.ts +12 -0
  34. package/dist/index.js +4 -4
  35. package/package.json +1 -1
  36. package/dist/WorkflowExecutionHistory-VxBT0l5H.js.map +0 -1
  37. package/dist/WorkflowExecutionHistory-dFqYZRj4.js.map +0 -1
  38. package/dist/buildBackendPayload-cMkV2Kes.js +0 -328
  39. package/dist/buildBackendPayload-cMkV2Kes.js.map +0 -1
  40. package/dist/buildBackendPayload-ciDznCtJ.js +0 -2
  41. package/dist/buildBackendPayload-ciDznCtJ.js.map +0 -1
@@ -6408,7 +6408,7 @@ function fc({
6408
6408
  (s || g) && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: g ?? r })
6409
6409
  ] });
6410
6410
  }
6411
- const pc = nt.lazy(async () => ({ default: (await import("./index-DfuN9q7p.js")).default }));
6411
+ const pc = nt.lazy(async () => ({ default: (await import("./index-CyHfUy0G.js")).default }));
6412
6412
  async function gc(t) {
6413
6413
  switch (t) {
6414
6414
  case "python":
@@ -6617,7 +6617,7 @@ function mc({
6617
6617
  ] });
6618
6618
  }
6619
6619
  const vc = nt.lazy(
6620
- () => import("./index-CT-rko-F.js").then((t) => t.i).then((t) => (Promise.resolve({ }), { default: t.default }))
6620
+ () => import("./index-DiT-JDHC.js").then((t) => t.i).then((t) => (Promise.resolve({ }), { default: t.default }))
6621
6621
  ), yc = [
6622
6622
  [{ header: [1, 2, 3, !1] }],
6623
6623
  ["bold", "italic", "underline", "strike"],
@@ -9928,7 +9928,7 @@ function qn(t) {
9928
9928
  } catch {
9929
9929
  continue;
9930
9930
  }
9931
- if (!i || n.hidden) continue;
9931
+ if (!i || n.hidden || n.shouldHide != null || n.shouldRequire != null) continue;
9932
9932
  if (n.validation) {
9933
9933
  e[i] = n.validation;
9934
9934
  continue;
@@ -10027,13 +10027,13 @@ function Fo(t) {
10027
10027
  }
10028
10028
  const qe = "__ff_field__";
10029
10029
  function zd(t) {
10030
- const e = { ...t, id: qe, name: qe }, n = qn([e]), i = t.label ?? t.id ?? t.name ?? "This field";
10031
- return async (r) => {
10030
+ const { shouldHide: e, shouldRequire: n, ...i } = t, r = { ...i, id: qe, name: qe }, a = qn([r]), o = t.label ?? t.id ?? t.name ?? "This field";
10031
+ return async (u) => {
10032
10032
  try {
10033
- await n.validateAt(qe, { [qe]: r });
10033
+ await a.validateAt(qe, { [qe]: u });
10034
10034
  return;
10035
- } catch (a) {
10036
- return a instanceof pe ? a.message.replace(new RegExp(qe, "g"), i) : "Invalid";
10035
+ } catch (s) {
10036
+ return s instanceof pe ? s.message.replace(new RegExp(qe, "g"), o) : "Invalid";
10037
10037
  }
10038
10038
  };
10039
10039
  }
@@ -10963,17 +10963,15 @@ const cf = Lt(function(e, n) {
10963
10963
  enableReinitialize: !0,
10964
10964
  validateOnChange: !0,
10965
10965
  validateOnBlur: !0,
10966
- children: ({ values: l, errors: d, touched: f, isSubmitting: m, setFieldValue: g, setFieldTouched: h, submitForm: b, validateForm: p }) => {
10967
- var v;
10966
+ children: ({ values: l, errors: d, touched: f, isSubmitting: m, setFieldValue: g, setFieldTouched: h, submitForm: b }) => {
10967
+ var p;
10968
10968
  return /* @__PURE__ */ R(
10969
10969
  "form",
10970
10970
  {
10971
10971
  id: e.formId,
10972
10972
  noValidate: !0,
10973
- onSubmit: (x) => {
10974
- x.preventDefault(), of(e.schema).forEach((C) => h(C, !0, !1)), p().then((C) => {
10975
- Object.keys(C ?? {}).length > 0 ? (console.warn("[FlowForge] Save blocked — validation errors:", C), console.warn("[FlowForge] Current form values:", l)) : console.info("[FlowForge] Validation passed — submitting.", l);
10976
- }), b();
10973
+ onSubmit: (v) => {
10974
+ v.preventDefault(), of(e.schema).forEach((x) => h(x, !0, !1)), b();
10977
10975
  },
10978
10976
  children: [
10979
10977
  e.onValuesChange && /* @__PURE__ */ c(lf, { onValuesChange: e.onValuesChange }),
@@ -10991,7 +10989,7 @@ const cf = Lt(function(e, n) {
10991
10989
  }
10992
10990
  )
10993
10991
  ),
10994
- (v = e.children) == null ? void 0 : v.call(e, { isSubmitting: m })
10992
+ (p = e.children) == null ? void 0 : p.call(e, { isSubmitting: m })
10995
10993
  ]
10996
10994
  }
10997
10995
  );
@@ -11471,4 +11469,4 @@ export {
11471
11469
  Ef as y,
11472
11470
  De as z
11473
11471
  };
11474
- //# sourceMappingURL=index-BvpacxDE.js.map
11472
+ //# sourceMappingURL=index-DfJ_w7XO.js.map