treege 3.0.0-beta.54 → 3.0.0-beta.56
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/README.md +98 -35
- package/dist/DefaultInputs-DklwwMaZ.js +1807 -0
- package/dist/ThemeContext-DAMkr9gW.js +1362 -0
- package/dist/editor/constants/edgeTypes.d.ts +1 -1
- package/dist/editor/features/TreegeEditor/edges/DefaultEdge.d.ts +1 -1
- package/dist/editor/features/TreegeEditor/forms/OptionsMappingFields.d.ts +34 -0
- package/dist/editor/features/TreegeEditor/nodes/components/BottomHandleDropdown.d.ts +18 -2
- package/dist/editor/features/TreegeEditor/nodes/components/NodeTypePickerMenuContent.d.ts +12 -0
- package/dist/editor/utils/edge.d.ts +37 -1
- package/dist/editor-uMYOjG2i.js +6079 -0
- package/dist/editor.js +2 -2
- package/dist/main.js +4 -4
- package/dist/renderer/utils/http.d.ts +13 -1
- package/dist/renderer-native.js +899 -896
- package/dist/renderer.js +3 -3
- package/dist/shared/locales/ar.json.d.ts +8 -0
- package/dist/shared/locales/de.json.d.ts +8 -0
- package/dist/shared/locales/en.json.d.ts +8 -0
- package/dist/shared/locales/es.json.d.ts +8 -0
- package/dist/shared/locales/fr.json.d.ts +8 -0
- package/dist/shared/locales/it.json.d.ts +8 -0
- package/dist/shared/locales/pt.json.d.ts +8 -0
- package/dist/shared/types/node.d.ts +20 -0
- package/package.json +1 -1
- package/dist/DefaultInputs-BbfholiM.js +0 -1799
- package/dist/ThemeContext-C9418UR6.js +0 -1354
- package/dist/editor-DgUCBTZ0.js +0 -5831
package/dist/editor.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./editor-
|
|
2
|
-
import { n as t, t as n } from "./ThemeContext-
|
|
1
|
+
import { t as e } from "./editor-uMYOjG2i.js";
|
|
2
|
+
import { n as t, t as n } from "./ThemeContext-DAMkr9gW.js";
|
|
3
3
|
export { n as ThemeProvider, e as TreegeEditor, t as useTheme };
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./editor-
|
|
2
|
-
import { A as t, B as n,
|
|
3
|
-
import { C as E, E as D, S as O, T as k, _ as A, a as j, b as M, d as N, f as P, i as F, l as I, m as L, n as R, p as z, r as B, s as V, t as H, u as U, v as W, w as G, x as K, y as q } from "./DefaultInputs-
|
|
4
|
-
export { D as DefaultAddressInput, k as DefaultAutocompleteInput, G as DefaultCheckboxInput, E as DefaultDateInput, O as DefaultDateRangeInput, K as DefaultFileInput, M as DefaultHiddenInput, q as DefaultHttpInput, W as DefaultNumberInput, A as DefaultPasswordInput, L as DefaultRadioInput, z as DefaultSelectInput, V as DefaultSwitchInput, j as DefaultTextAreaInput, F as DefaultTextInput, B as DefaultTimeInput, R as DefaultTimeRangeInput, U as Divider, S as ThemeProvider, N as Title, C as TreegeConfigProvider, e as TreegeEditor, I as TreegeRenderer, d as applyReferenceTransformation, b as calculateReferenceFieldUpdates, _ as checkFormFieldHasValue, p as convertFormValuesToNamedFormat, H as defaultInputRenderers, P as defaultUI, l as evaluateCondition, g as evaluateConditions, c as fileToSerializable, w as filesToSerializable, s as findStartNode, y as getFlowRenderState, r as getStaticTranslations, i as getTranslatedText, f as isFieldEmpty,
|
|
1
|
+
import { t as e } from "./editor-uMYOjG2i.js";
|
|
2
|
+
import { A as t, B as n, L as r, R as i, S as a, V as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, j as h, l as g, m as _, n as v, o as y, p as b, s as x, t as S, u as C, x as w, z as T } from "./ThemeContext-DAMkr9gW.js";
|
|
3
|
+
import { C as E, E as D, S as O, T as k, _ as A, a as j, b as M, d as N, f as P, i as F, l as I, m as L, n as R, p as z, r as B, s as V, t as H, u as U, v as W, w as G, x as K, y as q } from "./DefaultInputs-DklwwMaZ.js";
|
|
4
|
+
export { D as DefaultAddressInput, k as DefaultAutocompleteInput, G as DefaultCheckboxInput, E as DefaultDateInput, O as DefaultDateRangeInput, K as DefaultFileInput, M as DefaultHiddenInput, q as DefaultHttpInput, W as DefaultNumberInput, A as DefaultPasswordInput, L as DefaultRadioInput, z as DefaultSelectInput, V as DefaultSwitchInput, j as DefaultTextAreaInput, F as DefaultTextInput, B as DefaultTimeInput, R as DefaultTimeRangeInput, U as Divider, S as ThemeProvider, N as Title, C as TreegeConfigProvider, e as TreegeEditor, I as TreegeRenderer, d as applyReferenceTransformation, b as calculateReferenceFieldUpdates, _ as checkFormFieldHasValue, p as convertFormValuesToNamedFormat, H as defaultInputRenderers, P as defaultUI, l as evaluateCondition, g as evaluateConditions, c as fileToSerializable, w as filesToSerializable, s as findStartNode, y as getFlowRenderState, r as getStaticTranslations, i as getTranslatedText, f as isFieldEmpty, T as isGroupNode, n as isInputNode, x as isStartNode, o as isUINode, t as sanitize, h as sanitizeHttpResponse, a as serializableToFile, v as useTheme, u as useTreegeConfig, m as useTreegeRenderer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormValues } from '../types/renderer';
|
|
2
|
-
import { HttpHeader, InputOption, OptionsSourceMapping } from '../../shared/types/node';
|
|
2
|
+
import { HttpHeader, InputOption, OptionsSourceMapping, QueryParam } from '../../shared/types/node';
|
|
3
3
|
/**
|
|
4
4
|
* Merge multiple lists of HTTP headers. Later sources override earlier ones
|
|
5
5
|
* when they specify the same key (case-insensitive comparison, since HTTP
|
|
@@ -7,6 +7,13 @@ import { HttpHeader, InputOption, OptionsSourceMapping } from '../../shared/type
|
|
|
7
7
|
* is preserved in the output.
|
|
8
8
|
*/
|
|
9
9
|
export declare const mergeHttpHeaders: (...sources: (HttpHeader[] | undefined)[]) => HttpHeader[];
|
|
10
|
+
/**
|
|
11
|
+
* Append query parameters to a URL. Entries with an empty key are skipped,
|
|
12
|
+
* keys and values are URL-encoded, and `?` or `&` is chosen automatically
|
|
13
|
+
* based on whether the URL already has a query string. Values are expected
|
|
14
|
+
* to already have their template variables resolved.
|
|
15
|
+
*/
|
|
16
|
+
export declare const appendQueryParams: (url: string, params?: QueryParam[]) => string;
|
|
10
17
|
/**
|
|
11
18
|
* Result of an HTTP request
|
|
12
19
|
*/
|
|
@@ -48,6 +55,11 @@ export interface HttpRequestOptions {
|
|
|
48
55
|
* Request headers
|
|
49
56
|
*/
|
|
50
57
|
headers?: HttpHeader[];
|
|
58
|
+
/**
|
|
59
|
+
* Query parameters appended to the URL (values should already have their
|
|
60
|
+
* template variables resolved; keys/values are URL-encoded here)
|
|
61
|
+
*/
|
|
62
|
+
queryParams?: QueryParam[];
|
|
51
63
|
/**
|
|
52
64
|
* Request body (for POST/PUT/PATCH)
|
|
53
65
|
*/
|