treege 3.0.0-beta.39 → 3.0.0-beta.40

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 (30) hide show
  1. package/dist/DefaultInputs-8yJMEyMh.js +1557 -0
  2. package/dist/ThemeContext-Ejgu9Mwr.js +1603 -0
  3. package/dist/editor/constants/nodeTypes.d.ts +3 -3
  4. package/dist/editor/context/TreegeEditorContext.d.ts +18 -1
  5. package/dist/editor/features/TreegeEditor/dialogs/ChangeNodeTypeDialog.d.ts +2 -0
  6. package/dist/editor/features/TreegeEditor/nodes/TreegeNode.d.ts +2 -2
  7. package/dist/editor/features/TreegeEditor/nodes/components/NodeInputPreview.d.ts +7 -0
  8. package/dist/editor/features/TreegeEditor/nodes/components/NodeTypeBadge.d.ts +7 -0
  9. package/dist/editor/hooks/useFlowActions.d.ts +2 -2
  10. package/dist/editor/utils/edge.d.ts +14 -0
  11. package/dist/{editor-CAj1BX2r.js → editor-DWJ95r4g.js} +1340 -1114
  12. package/dist/editor.js +2 -2
  13. package/dist/main.js +4 -5
  14. package/dist/renderer/utils/node.d.ts +9 -0
  15. package/dist/renderer-native.js +680 -681
  16. package/dist/renderer.js +3 -4
  17. package/dist/shared/locales/ar.json.d.ts +7 -0
  18. package/dist/shared/locales/de.json.d.ts +7 -0
  19. package/dist/shared/locales/en.json.d.ts +7 -0
  20. package/dist/shared/locales/es.json.d.ts +7 -0
  21. package/dist/shared/locales/fr.json.d.ts +7 -0
  22. package/dist/shared/locales/it.json.d.ts +7 -0
  23. package/dist/shared/locales/pt.json.d.ts +7 -0
  24. package/package.json +1 -1
  25. package/dist/ThemeContext-PGG6Ht__.js +0 -813
  26. package/dist/editor/features/TreegeEditor/inputs/SelectInputType.d.ts +0 -7
  27. package/dist/editor/features/TreegeEditor/nodes/components/InputTypeBadge.d.ts +0 -7
  28. package/dist/renderer-BOjgk8F8.js +0 -1199
  29. package/dist/separator-Cdfv5nIR.js +0 -351
  30. package/dist/useRenderNode-OgRe_mb5.js +0 -775
package/dist/editor.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as e } from "./editor-CAj1BX2r.js";
2
- import { n as t, t as n } from "./ThemeContext-PGG6Ht__.js";
1
+ import { t as e } from "./editor-DWJ95r4g.js";
2
+ import { n as t, t as n } from "./ThemeContext-Ejgu9Mwr.js";
3
3
  export { n as ThemeProvider, e as TreegeEditor, t as useTheme };
package/dist/main.js CHANGED
@@ -1,5 +1,4 @@
1
- import { t as e } from "./editor-CAj1BX2r.js";
2
- import { c as t, d as n, l as r, n as i, o as a, s as o, t as s, u as c } from "./ThemeContext-PGG6Ht__.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-OgRe_mb5.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-BOjgk8F8.js";
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, s as ThemeProvider, W as Title, l as TreegeConfigProvider, e 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, a as getStaticTranslations, o as getTranslatedText, E as isFieldEmpty, t as isFlowNode, r as isGroupNode, c as isInputNode, p as isStartNode, n as isUINode, m as mergeFlows, g as sanitize, h as sanitizeHttpResponse, _ as serializableToFile, i as useTheme, T as useTreegeConfig, d as useTreegeRenderer };
1
+ import { t as e } from "./editor-DWJ95r4g.js";
2
+ import { C as t, D as n, F as r, I as i, L as a, M as o, N as s, O as c, P as l, S as u, _ as d, a as f, b as p, c as m, d as h, f as g, g as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, v as T, x as E, y as D } from "./ThemeContext-Ejgu9Mwr.js";
3
+ import { C as O, D as k, E as A, O as j, S as M, T as N, a as P, b as F, d as I, f as L, g as R, h as z, i as B, l as V, m as H, n as U, r as W, s as G, t as K, u as q, w as J, x as Y, y as X } from "./DefaultInputs-8yJMEyMh.js";
4
+ export { j as DefaultAddressInput, k as DefaultAutocompleteInput, A as DefaultCheckboxInput, N as DefaultDateInput, J as DefaultDateRangeInput, O as DefaultFileInput, H as DefaultGroup, M as DefaultHiddenInput, Y as DefaultHttpInput, F as DefaultNumberInput, X as DefaultPasswordInput, R as DefaultRadioInput, z as DefaultSelectInput, G as DefaultSwitchInput, P as DefaultTextAreaInput, B as DefaultTextInput, W as DefaultTimeInput, U as DefaultTimeRangeInput, q as Divider, w as ThemeProvider, I as Title, f as TreegeConfigProvider, e as TreegeEditor, V as TreegeRenderer, D as applyReferenceTransformation, p as calculateReferenceFieldUpdates, E as checkFormFieldHasValue, u as convertFormValuesToNamedFormat, K as defaultInputRenderers, L as defaultUI, n as evaluateCondition, c as evaluateConditions, C as fileToSerializable, m as filesToSerializable, v as findStartNode, _ as getFlowRenderState, o as getStaticTranslations, s as getTranslatedText, t as isFieldEmpty, l as isFlowNode, r as isGroupNode, i as isInputNode, d as isStartNode, a as isUINode, T as mergeFlows, h as sanitize, g as sanitizeHttpResponse, b as serializableToFile, x as useTheme, S as useTreegeConfig, y as useTreegeRenderer };
@@ -13,6 +13,15 @@ export declare const getInputNodes: (nodes: Node<TreegeNodeData>[]) => Node<Inpu
13
13
  * @returns The resolved key (name, label, or node ID)
14
14
  */
15
15
  export declare const resolveNodeKey: (node: Node<InputNodeData>) => string;
16
+ /**
17
+ * Resolve the placeholder text for an input, falling back to the static
18
+ * "newAnswer" translation for textfield-like types when the user has not
19
+ * defined a placeholder for the current language.
20
+ * @param data - The input node data
21
+ * @param language - The current language code
22
+ * @returns The resolved placeholder string (empty string if none available)
23
+ */
24
+ export declare const resolveInputPlaceholder: (data: InputNodeData, language: string) => string;
16
25
  /**
17
26
  * Get the field name (DOM name attribute) for a given node ID
18
27
  * Priority: name > label (en) > nodeId