treege 3.0.0-beta.55 → 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/dist/editor.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as e } from "./editor-DgUCBTZ0.js";
2
- import { n as t, t as n } from "./ThemeContext-C9418UR6.js";
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-DgUCBTZ0.js";
2
- import { A as t, B as n, I as r, L as i, R as a, S 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, k 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-C9418UR6.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-BbfholiM.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, a as isGroupNode, T as isInputNode, x as isStartNode, n as isUINode, h as sanitize, t as sanitizeHttpResponse, o as serializableToFile, v as useTheme, u as useTreegeConfig, m as useTreegeRenderer };
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
  */