treege 3.0.0-beta.29 → 3.0.0-beta.30

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 (36) hide show
  1. package/dist/ThemeContext-D49eu_oE.js +1472 -0
  2. package/dist/editor/constants/nodeTypes.d.ts +4 -4
  3. package/dist/editor/context/TreegeEditorContext.d.ts +9 -1
  4. package/dist/editor/features/TreegeEditor/inputs/OptionImageField.d.ts +6 -0
  5. package/dist/editor/features/TreegeEditor/nodes/GroupNode.d.ts +1 -1
  6. package/dist/editor/features/TreegeEditor/nodes/TreegeNode.d.ts +6 -0
  7. package/dist/editor/features/TreegeEditor/nodes/components/BottomHandleDropdown.d.ts +6 -0
  8. package/dist/editor/features/TreegeEditor/nodes/components/NodeLabelInput.d.ts +9 -0
  9. package/dist/editor/features/TreegeEditor/nodes/components/NodeTypeBadge.d.ts +8 -0
  10. package/dist/editor/features/TreegeEditor/nodes/components/OpenSheetButton.d.ts +6 -0
  11. package/dist/editor/features/TreegeEditor/nodes/components/SubTypeBadge.d.ts +8 -0
  12. package/dist/editor/hooks/useFlowActions.d.ts +1 -0
  13. package/dist/editor/hooks/useFlowConnections.d.ts +4 -1
  14. package/dist/editor/utils/image.d.ts +7 -0
  15. package/dist/{editor-iWcSAxOr.js → editor-DnrJgSrC.js} +1246 -1035
  16. package/dist/editor.js +2 -2
  17. package/dist/main.js +4 -4
  18. package/dist/{renderer-DZD267lH.js → renderer-MCPhNlp1.js} +20 -12
  19. package/dist/renderer-native.js +644 -631
  20. package/dist/renderer.js +3 -3
  21. package/dist/{separator-DzU4sadU.js → separator-gO82kpxa.js} +1 -1
  22. package/dist/shared/locales/ar.json.d.ts +12 -0
  23. package/dist/shared/locales/de.json.d.ts +12 -0
  24. package/dist/shared/locales/en.json.d.ts +12 -0
  25. package/dist/shared/locales/es.json.d.ts +12 -0
  26. package/dist/shared/locales/fr.json.d.ts +12 -0
  27. package/dist/shared/locales/it.json.d.ts +12 -0
  28. package/dist/shared/locales/pt.json.d.ts +12 -0
  29. package/dist/shared/types/node.d.ts +5 -0
  30. package/dist/{useRenderNode-Huckx5bu.js → useRenderNode-B_GPMTPf.js} +1 -1
  31. package/package.json +1 -1
  32. package/dist/ThemeContext-cNnjiSPY.js +0 -2152
  33. package/dist/editor/features/TreegeEditor/nodes/FlowNode.d.ts +0 -6
  34. package/dist/editor/features/TreegeEditor/nodes/InputNode.d.ts +0 -6
  35. package/dist/editor/features/TreegeEditor/nodes/UINode.d.ts +0 -6
  36. package/dist/editor/features/TreegeEditor/nodes/hooks/useBottomHandleClick.d.ts +0 -8
package/dist/editor.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, t } from "./ThemeContext-cNnjiSPY.js";
2
- import { t as n } from "./editor-iWcSAxOr.js";
1
+ import { n as e, t } from "./ThemeContext-D49eu_oE.js";
2
+ import { t as n } from "./editor-DnrJgSrC.js";
3
3
  export { t as ThemeProvider, n as TreegeEditor, e as useTheme };
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as e, d as t, l as n, n as r, o as i, s as a, t as o, u as s } from "./ThemeContext-cNnjiSPY.js";
2
- import { t as c } from "./editor-iWcSAxOr.js";
3
- import { C as l, _ as u, a as d, b as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, p as x, r as S, u as C, v as w, w as T, x as E, y as D } from "./useRenderNode-Huckx5bu.js";
4
- import { C as O, S as k, _ as A, a as j, b as M, c as N, d as P, f as F, g as I, h as L, i as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, x as Y, y as X } from "./renderer-DZD267lH.js";
1
+ import { c as e, d as t, l as n, n as r, o as i, s as a, t as o, u as s } from "./ThemeContext-D49eu_oE.js";
2
+ import { t as c } from "./editor-DnrJgSrC.js";
3
+ import { C as l, _ as u, a as d, b as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, p as x, r as S, u as C, v as w, w as T, x as E, y as D } from "./useRenderNode-B_GPMTPf.js";
4
+ import { C as O, S as k, _ as A, a as j, b as M, c as N, d as P, f as F, g as I, h as L, i as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, x as Y, y as X } from "./renderer-MCPhNlp1.js";
5
5
  export { k as DefaultAddressInput, Y as DefaultAutocompleteInput, M as DefaultCheckboxInput, X as DefaultDateInput, J as DefaultDateRangeInput, A as DefaultFileInput, O as DefaultGroup, I as DefaultHiddenInput, L as DefaultHttpInput, B as DefaultNumberInput, U as DefaultPasswordInput, F as DefaultRadioInput, P as DefaultSelectInput, q as DefaultSwitchInput, z as DefaultTextAreaInput, N as DefaultTextInput, G as DefaultTimeInput, H as DefaultTimeRangeInput, V as Divider, o as ThemeProvider, W as Title, l as TreegeConfigProvider, c as TreegeEditor, K as TreegeRenderer, u as applyReferenceTransformation, w as calculateReferenceFieldUpdates, D as checkFormFieldHasValue, f as convertFormValuesToNamedFormat, j as defaultInputRenderers, R as defaultUI, x as evaluateCondition, y as evaluateConditions, b as fileToSerializable, S as filesToSerializable, v as findStartNode, C as getFlowRenderState, i as getStaticTranslations, a as getTranslatedText, E as isFieldEmpty, e as isFlowNode, n as isGroupNode, s as isInputNode, p as isStartNode, t as isUINode, m as mergeFlows, g as sanitize, h as sanitizeHttpResponse, _ as serializableToFile, r as useTheme, T as useTreegeConfig, d as useTreegeRenderer };
@@ -1,6 +1,6 @@
1
- import { f as e, t } from "./ThemeContext-cNnjiSPY.js";
2
- import { A as n, C as r, D as i, E as a, F as o, M as s, N as c, O as l, P as u, S as d, T as f, _ as p, a as m, b as h, c as g, i as _, j as v, k as y, l as b, n as ee, o as te, r as x, s as S, t as C, v as w, w as T, y as E } from "./separator-DzU4sadU.js";
3
- import { S as D, a as O, b as ne, c as k, d as A, g as re, n as j, o as M, r as N, s as P, t as F, w as I } from "./useRenderNode-Huckx5bu.js";
1
+ import { f as e, t } from "./ThemeContext-D49eu_oE.js";
2
+ import { A as n, C as r, D as i, E as a, F as o, M as s, N as c, O as l, P as u, S as d, T as f, _ as p, a as m, b as h, c as g, i as _, j as v, k as y, l as b, n as ee, o as te, r as x, s as S, t as C, v as w, w as T, y as E } from "./separator-gO82kpxa.js";
3
+ import { S as D, a as O, b as ne, c as k, d as A, g as re, n as j, o as M, r as N, s as P, t as F, w as I } from "./useRenderNode-B_GPMTPf.js";
4
4
  import * as L from "react";
5
5
  import { forwardRef as R, useCallback as ie, useEffect as z, useMemo as ae, useRef as B, useState as V } from "react";
6
6
  import { Check as oe, ChevronDownIcon as se, ChevronLeftIcon as ce, ChevronRightIcon as le, ChevronsUpDown as ue, CircleIcon as H, Loader2 as de, MapPin as U } from "lucide-react";
@@ -808,15 +808,23 @@ var Ne = ({ node: e, value: t, setValue: r, error: a, label: o, helperText: s, i
808
808
  name: l,
809
809
  children: e.data.options?.map((e, t) => /* @__PURE__ */ (0, J.jsxs)("div", {
810
810
  className: "flex items-center space-x-2",
811
- children: [/* @__PURE__ */ (0, J.jsx)(Me, {
812
- value: String(e.value),
813
- id: `${c}-${e.value}`,
814
- disabled: e.disabled
815
- }), /* @__PURE__ */ (0, J.jsx)(i, {
816
- htmlFor: `${c}-${e.value}`,
817
- className: "cursor-pointer font-normal text-sm",
818
- children: u(e.label) ? u(e.label) : e.value
819
- })]
811
+ children: [
812
+ /* @__PURE__ */ (0, J.jsx)(Me, {
813
+ value: String(e.value),
814
+ id: `${c}-${e.value}`,
815
+ disabled: e.disabled
816
+ }),
817
+ e.image && /* @__PURE__ */ (0, J.jsx)("img", {
818
+ src: e.image,
819
+ alt: "",
820
+ className: "h-8 w-8 rounded object-cover"
821
+ }),
822
+ /* @__PURE__ */ (0, J.jsx)(i, {
823
+ htmlFor: `${c}-${e.value}`,
824
+ className: "cursor-pointer font-normal text-sm",
825
+ children: u(e.label) ? u(e.label) : e.value
826
+ })
827
+ ]
820
828
  }, e.value + t))
821
829
  }),
822
830
  a && /* @__PURE__ */ (0, J.jsx)(n, { children: a }),