@wise/dynamic-flow-client 3.22.2 → 3.23.1-experimental-3a3c1f1
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/build/main.js +390 -350
- package/build/main.min.js +1 -1
- package/build/main.mjs +391 -351
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +4 -1
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/RepeatableComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TupleComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +2 -0
- package/build/types/revamp/domain/types.d.ts +2 -0
- package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/tupleComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +2 -0
- package/package.json +23 -23
package/build/main.js
CHANGED
|
@@ -144,10 +144,10 @@ var init_clsx = __esm({
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
-
// ../../node_modules/.pnpm/@wise+art@2.
|
|
147
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.2_@transferwise+neptune-css@14.19.1_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-c8ed1f53.esm.js
|
|
148
148
|
var import_react7, import_jsx_runtime17, unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
|
|
149
|
-
var
|
|
150
|
-
"../../node_modules/.pnpm/@wise+art@2.
|
|
149
|
+
var init_index_c8ed1f53_esm = __esm({
|
|
150
|
+
"../../node_modules/.pnpm/@wise+art@2.16.2_@transferwise+neptune-css@14.19.1_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-c8ed1f53.esm.js"() {
|
|
151
151
|
"use strict";
|
|
152
152
|
init_clsx();
|
|
153
153
|
import_react7 = require("react");
|
|
@@ -165,16 +165,18 @@ var init_index_a91e5689_esm = __esm({
|
|
|
165
165
|
}, [code]);
|
|
166
166
|
const detailed = intrinsicSize >= 150;
|
|
167
167
|
const name = fallback !== "unknown" ? `${code.toLowerCase()}${fallback == null && detailed ? "-detailed" : ""}` : unknownFlagName;
|
|
168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("
|
|
168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", {
|
|
169
169
|
className: clsx(`wds-flag wds-flag-${name}`, className),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("img", {
|
|
171
|
+
src: `https://wise.com/web-art/assets/flags/${name}.svg`,
|
|
172
|
+
loading,
|
|
173
|
+
alt: "",
|
|
174
|
+
width: intrinsicSize,
|
|
175
|
+
height: intrinsicSize,
|
|
176
|
+
onError: () => {
|
|
177
|
+
setFallback((prev) => prev == null && detailed ? "simple" : "unknown");
|
|
178
|
+
}
|
|
179
|
+
})
|
|
178
180
|
});
|
|
179
181
|
};
|
|
180
182
|
(function(Sizes2) {
|
|
@@ -1479,12 +1481,14 @@ var alertComponentToProps = ({
|
|
|
1479
1481
|
});
|
|
1480
1482
|
|
|
1481
1483
|
// src/revamp/renderers/mappers/allOfComponentToProps.ts
|
|
1482
|
-
var allOfComponentToProps = ({ control, description, help, title }, children) => ({
|
|
1484
|
+
var allOfComponentToProps = ({ control, description, help, icon, image, title }, children) => ({
|
|
1483
1485
|
type: "form-section",
|
|
1484
1486
|
children,
|
|
1485
1487
|
control,
|
|
1486
1488
|
description,
|
|
1487
1489
|
help,
|
|
1490
|
+
icon,
|
|
1491
|
+
image,
|
|
1488
1492
|
title
|
|
1489
1493
|
});
|
|
1490
1494
|
|
|
@@ -1509,7 +1513,9 @@ var inputComponentToProps = (component, type) => {
|
|
|
1509
1513
|
disabled,
|
|
1510
1514
|
errors,
|
|
1511
1515
|
help,
|
|
1516
|
+
icon,
|
|
1512
1517
|
id,
|
|
1518
|
+
image,
|
|
1513
1519
|
placeholder,
|
|
1514
1520
|
required,
|
|
1515
1521
|
title,
|
|
@@ -1526,7 +1532,9 @@ var inputComponentToProps = (component, type) => {
|
|
|
1526
1532
|
disabled,
|
|
1527
1533
|
error: (_a = messages == null ? void 0 : messages.error) != null ? _a : errors == null ? void 0 : errors[0],
|
|
1528
1534
|
help,
|
|
1535
|
+
icon,
|
|
1529
1536
|
id,
|
|
1537
|
+
image,
|
|
1530
1538
|
label: title,
|
|
1531
1539
|
placeholder,
|
|
1532
1540
|
required,
|
|
@@ -1732,12 +1740,14 @@ var numberInputComponentToProps = (component) => __spreadProps(__spreadValues({}
|
|
|
1732
1740
|
});
|
|
1733
1741
|
|
|
1734
1742
|
// src/revamp/renderers/mappers/objectComponentToProps.ts
|
|
1735
|
-
var objectComponentToProps = ({ control, description, help, title }, children) => ({
|
|
1743
|
+
var objectComponentToProps = ({ control, description, help, icon, image, title }, children) => ({
|
|
1736
1744
|
type: "form-section",
|
|
1737
1745
|
children,
|
|
1738
1746
|
control,
|
|
1739
1747
|
description,
|
|
1740
1748
|
help,
|
|
1749
|
+
icon,
|
|
1750
|
+
image,
|
|
1741
1751
|
title
|
|
1742
1752
|
});
|
|
1743
1753
|
|
|
@@ -1764,6 +1774,8 @@ var repeatableComponentToProps = (component, children, editableItemChildren) =>
|
|
|
1764
1774
|
description,
|
|
1765
1775
|
editItemTitle,
|
|
1766
1776
|
errors,
|
|
1777
|
+
icon,
|
|
1778
|
+
image,
|
|
1767
1779
|
maxItems,
|
|
1768
1780
|
minItems,
|
|
1769
1781
|
summaryDefaults,
|
|
@@ -1794,6 +1806,8 @@ var repeatableComponentToProps = (component, children, editableItemChildren) =>
|
|
|
1794
1806
|
editableItem: editableItemChildren,
|
|
1795
1807
|
editItemTitle,
|
|
1796
1808
|
error: errors == null ? void 0 : errors[0],
|
|
1809
|
+
icon,
|
|
1810
|
+
image,
|
|
1797
1811
|
items: itemProps,
|
|
1798
1812
|
maxItems,
|
|
1799
1813
|
minItems,
|
|
@@ -1935,12 +1949,14 @@ var uploadInputComponentToProps = (component) => {
|
|
|
1935
1949
|
};
|
|
1936
1950
|
|
|
1937
1951
|
// src/revamp/renderers/mappers/tupleComponentToProps.ts
|
|
1938
|
-
var tupleComponentToProps = ({ control, description, help, title }, children) => ({
|
|
1952
|
+
var tupleComponentToProps = ({ control, description, help, icon, image, title }, children) => ({
|
|
1939
1953
|
type: "form-section",
|
|
1940
1954
|
children,
|
|
1941
1955
|
control,
|
|
1942
1956
|
description,
|
|
1943
1957
|
help,
|
|
1958
|
+
icon,
|
|
1959
|
+
image,
|
|
1944
1960
|
title
|
|
1945
1961
|
});
|
|
1946
1962
|
|
|
@@ -5891,21 +5907,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5891
5907
|
quotelessJson,
|
|
5892
5908
|
ZodError
|
|
5893
5909
|
});
|
|
5894
|
-
var
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
z.literal("GET"),
|
|
5901
|
-
z.literal("POST"),
|
|
5902
|
-
z.literal("PUT"),
|
|
5903
|
-
z.literal("PATCH"),
|
|
5904
|
-
z.literal("DELETE")
|
|
5910
|
+
var sizeSchema = z.union([
|
|
5911
|
+
z.literal("xs"),
|
|
5912
|
+
z.literal("sm"),
|
|
5913
|
+
z.literal("md"),
|
|
5914
|
+
z.literal("lg"),
|
|
5915
|
+
z.literal("xl")
|
|
5905
5916
|
]);
|
|
5906
|
-
var iconNamedSchema = z.object({
|
|
5907
|
-
name: z.string()
|
|
5908
|
-
});
|
|
5909
5917
|
var contextSchema = z.union([
|
|
5910
5918
|
z.literal("positive"),
|
|
5911
5919
|
z.literal("neutral"),
|
|
@@ -5916,18 +5924,107 @@ var contextSchema = z.union([
|
|
|
5916
5924
|
z.literal("info"),
|
|
5917
5925
|
z.literal("primary")
|
|
5918
5926
|
]);
|
|
5919
|
-
var
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
z.literal("
|
|
5926
|
-
z.literal("
|
|
5927
|
-
z.literal("
|
|
5927
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5928
|
+
z.literal("none"),
|
|
5929
|
+
z.literal("left"),
|
|
5930
|
+
z.literal("right")
|
|
5931
|
+
]);
|
|
5932
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5933
|
+
z.literal("not-done"),
|
|
5934
|
+
z.literal("pending"),
|
|
5935
|
+
z.literal("done")
|
|
5928
5936
|
]);
|
|
5929
5937
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5930
|
-
var
|
|
5938
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5939
|
+
$ref: z.string()
|
|
5940
|
+
});
|
|
5941
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5942
|
+
title: z.string()
|
|
5943
|
+
});
|
|
5944
|
+
var httpMethodSchema = z.union([
|
|
5945
|
+
z.literal("GET"),
|
|
5946
|
+
z.literal("POST"),
|
|
5947
|
+
z.literal("PUT"),
|
|
5948
|
+
z.literal("PATCH"),
|
|
5949
|
+
z.literal("DELETE")
|
|
5950
|
+
]);
|
|
5951
|
+
var dividerLayoutSchema = z.object({
|
|
5952
|
+
type: z.literal("divider"),
|
|
5953
|
+
control: z.string().optional(),
|
|
5954
|
+
margin: sizeSchema.optional()
|
|
5955
|
+
});
|
|
5956
|
+
var listLayoutStatusSchema = z.union([
|
|
5957
|
+
z.literal("warning"),
|
|
5958
|
+
z.literal("neutral"),
|
|
5959
|
+
z.literal("positive")
|
|
5960
|
+
]);
|
|
5961
|
+
var headingLayoutSchema = z.object({
|
|
5962
|
+
type: z.literal("heading"),
|
|
5963
|
+
text: z.string(),
|
|
5964
|
+
size: sizeSchema.optional(),
|
|
5965
|
+
align: alignSchema.optional(),
|
|
5966
|
+
control: z.string().optional(),
|
|
5967
|
+
margin: sizeSchema.optional()
|
|
5968
|
+
});
|
|
5969
|
+
var formLayoutSchema = z.object({
|
|
5970
|
+
type: z.literal("form"),
|
|
5971
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5972
|
+
schemaId: z.string(),
|
|
5973
|
+
control: z.string().optional(),
|
|
5974
|
+
margin: sizeSchema.optional()
|
|
5975
|
+
});
|
|
5976
|
+
var imageLayoutSchema = z.object({
|
|
5977
|
+
type: z.literal("image"),
|
|
5978
|
+
text: z.string().optional(),
|
|
5979
|
+
url: z.string(),
|
|
5980
|
+
size: sizeSchema.optional(),
|
|
5981
|
+
accessibilityDescription: z.string().optional(),
|
|
5982
|
+
control: z.string().optional(),
|
|
5983
|
+
margin: sizeSchema.optional()
|
|
5984
|
+
});
|
|
5985
|
+
var infoLayoutSchema = z.object({
|
|
5986
|
+
type: z.literal("info"),
|
|
5987
|
+
markdown: z.string(),
|
|
5988
|
+
align: alignSchema.optional(),
|
|
5989
|
+
control: z.string().optional(),
|
|
5990
|
+
margin: sizeSchema.optional()
|
|
5991
|
+
});
|
|
5992
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5993
|
+
type: z.literal("loading-indicator"),
|
|
5994
|
+
size: sizeSchema.optional(),
|
|
5995
|
+
control: z.string().optional(),
|
|
5996
|
+
margin: sizeSchema.optional()
|
|
5997
|
+
});
|
|
5998
|
+
var paragraphLayoutSchema = z.object({
|
|
5999
|
+
type: z.literal("paragraph"),
|
|
6000
|
+
text: z.string(),
|
|
6001
|
+
align: alignSchema.optional(),
|
|
6002
|
+
control: z.string().optional(),
|
|
6003
|
+
margin: sizeSchema.optional()
|
|
6004
|
+
});
|
|
6005
|
+
var instructionsLayoutItemSchema = z.object({
|
|
6006
|
+
text: z.string(),
|
|
6007
|
+
context: contextSchema
|
|
6008
|
+
});
|
|
6009
|
+
var helpSchema = z.object({
|
|
6010
|
+
markdown: z.string()
|
|
6011
|
+
});
|
|
6012
|
+
var imageSchema = z.object({
|
|
6013
|
+
text: z.string().optional(),
|
|
6014
|
+
url: z.string(),
|
|
6015
|
+
accessibilityDescription: z.string().optional()
|
|
6016
|
+
});
|
|
6017
|
+
var summaryProviderSchema = z.object({
|
|
6018
|
+
providesTitle: z.boolean().optional(),
|
|
6019
|
+
providesDescription: z.boolean().optional(),
|
|
6020
|
+
providesIcon: z.boolean().optional(),
|
|
6021
|
+
providesImage: z.boolean().optional()
|
|
6022
|
+
});
|
|
6023
|
+
var validateAsyncSchema = z.object({
|
|
6024
|
+
param: z.string(),
|
|
6025
|
+
method: httpMethodSchema,
|
|
6026
|
+
url: z.string()
|
|
6027
|
+
});
|
|
5931
6028
|
var autocompleteTokenSchema = z.union([
|
|
5932
6029
|
z.literal("on"),
|
|
5933
6030
|
z.literal("name"),
|
|
@@ -5993,52 +6090,87 @@ var autocompleteTokenSchema = z.union([
|
|
|
5993
6090
|
z.literal("fax"),
|
|
5994
6091
|
z.literal("pager")
|
|
5995
6092
|
]);
|
|
5996
|
-
var
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6093
|
+
var stringSchemaFormatSchema = z.union([
|
|
6094
|
+
z.literal("date"),
|
|
6095
|
+
z.literal("email"),
|
|
6096
|
+
z.literal("numeric"),
|
|
6097
|
+
z.literal("password"),
|
|
6098
|
+
z.literal("phone-number"),
|
|
6099
|
+
z.literal("base64url")
|
|
6100
|
+
]);
|
|
6101
|
+
var jsonElementSchema = z.lazy(
|
|
6102
|
+
() => z.union([
|
|
6103
|
+
z.string(),
|
|
6104
|
+
z.number(),
|
|
6105
|
+
z.boolean(),
|
|
6106
|
+
z.record(jsonElementSchema),
|
|
6107
|
+
z.array(jsonElementSchema)
|
|
6108
|
+
]).nullable()
|
|
6109
|
+
);
|
|
6110
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6111
|
+
var externalSchema = z.object({
|
|
6112
|
+
url: z.string()
|
|
6008
6113
|
});
|
|
6009
|
-
var
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
margin: sizeSchema.optional()
|
|
6114
|
+
var stepErrorSchema = z.object({
|
|
6115
|
+
error: z.string().optional(),
|
|
6116
|
+
validation: jsonElementSchema.optional()
|
|
6013
6117
|
});
|
|
6014
|
-
var
|
|
6015
|
-
z.
|
|
6016
|
-
z.
|
|
6017
|
-
z.
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
$ref: z.string()
|
|
6118
|
+
var errorResponseBodySchema = z.object({
|
|
6119
|
+
refreshFormUrl: z.string().optional(),
|
|
6120
|
+
analytics: z.record(z.string()).optional(),
|
|
6121
|
+
error: z.string().optional(),
|
|
6122
|
+
validation: jsonElementSchema.optional(),
|
|
6123
|
+
refreshUrl: z.string().optional()
|
|
6021
6124
|
});
|
|
6022
|
-
var
|
|
6023
|
-
type: z.literal("image"),
|
|
6024
|
-
text: z.string().optional(),
|
|
6125
|
+
var searchSearchRequestSchema = z.object({
|
|
6025
6126
|
url: z.string(),
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
margin: sizeSchema.optional()
|
|
6127
|
+
method: httpMethodSchema,
|
|
6128
|
+
param: z.string(),
|
|
6129
|
+
query: z.string()
|
|
6030
6130
|
});
|
|
6031
|
-
var
|
|
6032
|
-
z.literal("
|
|
6033
|
-
z.literal("
|
|
6034
|
-
z.literal("
|
|
6131
|
+
var navigationStackBehaviorSchema = z.union([
|
|
6132
|
+
z.literal("default"),
|
|
6133
|
+
z.literal("remove-previous"),
|
|
6134
|
+
z.literal("remove-all"),
|
|
6135
|
+
z.literal("replace-current")
|
|
6035
6136
|
]);
|
|
6036
|
-
var
|
|
6037
|
-
|
|
6038
|
-
context: contextSchema
|
|
6137
|
+
var linkSchema = z.object({
|
|
6138
|
+
url: z.string()
|
|
6039
6139
|
});
|
|
6040
|
-
var
|
|
6041
|
-
|
|
6140
|
+
var actionTypeSchema = z.union([
|
|
6141
|
+
z.literal("primary"),
|
|
6142
|
+
z.literal("secondary"),
|
|
6143
|
+
z.literal("link"),
|
|
6144
|
+
z.literal("positive"),
|
|
6145
|
+
z.literal("negative")
|
|
6146
|
+
]);
|
|
6147
|
+
var iconNamedSchema = z.object({
|
|
6148
|
+
name: z.string()
|
|
6149
|
+
});
|
|
6150
|
+
var iconTextSchema = z.object({
|
|
6151
|
+
text: z.string()
|
|
6152
|
+
});
|
|
6153
|
+
var actionSchema = z.object({
|
|
6154
|
+
title: z.string().optional(),
|
|
6155
|
+
type: actionTypeSchema.optional(),
|
|
6156
|
+
disabled: z.boolean().optional(),
|
|
6157
|
+
$id: z.string().optional(),
|
|
6158
|
+
$ref: z.string().optional(),
|
|
6159
|
+
id: z.string().optional(),
|
|
6160
|
+
url: z.string().optional(),
|
|
6161
|
+
method: httpMethodSchema.optional(),
|
|
6162
|
+
exit: z.boolean().optional(),
|
|
6163
|
+
result: jsonElementSchema.optional(),
|
|
6164
|
+
data: jsonElementSchema.optional(),
|
|
6165
|
+
timeout: z.number().optional(),
|
|
6166
|
+
skipValidation: z.boolean().optional()
|
|
6167
|
+
});
|
|
6168
|
+
var markdownLayoutSchema = z.object({
|
|
6169
|
+
type: z.literal("markdown"),
|
|
6170
|
+
content: z.string(),
|
|
6171
|
+
align: alignSchema.optional(),
|
|
6172
|
+
control: z.string().optional(),
|
|
6173
|
+
margin: sizeSchema.optional()
|
|
6042
6174
|
});
|
|
6043
6175
|
var searchLayoutSchema = z.object({
|
|
6044
6176
|
type: z.literal("search"),
|
|
@@ -6050,73 +6182,32 @@ var searchLayoutSchema = z.object({
|
|
|
6050
6182
|
control: z.string().optional(),
|
|
6051
6183
|
margin: sizeSchema.optional()
|
|
6052
6184
|
});
|
|
6053
|
-
var
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
align: alignSchema.optional(),
|
|
6057
|
-
control: z.string().optional(),
|
|
6058
|
-
margin: sizeSchema.optional()
|
|
6059
|
-
});
|
|
6060
|
-
var formLayoutSchema = z.object({
|
|
6061
|
-
type: z.literal("form"),
|
|
6062
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
6063
|
-
schemaId: z.string(),
|
|
6064
|
-
control: z.string().optional(),
|
|
6065
|
-
margin: sizeSchema.optional()
|
|
6066
|
-
});
|
|
6067
|
-
var headingLayoutSchema = z.object({
|
|
6068
|
-
type: z.literal("heading"),
|
|
6069
|
-
text: z.string(),
|
|
6070
|
-
size: sizeSchema.optional(),
|
|
6071
|
-
align: alignSchema.optional(),
|
|
6072
|
-
control: z.string().optional(),
|
|
6073
|
-
margin: sizeSchema.optional()
|
|
6185
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6186
|
+
title: z.string(),
|
|
6187
|
+
action: actionSchema
|
|
6074
6188
|
});
|
|
6075
|
-
var
|
|
6076
|
-
type: z.literal("
|
|
6077
|
-
|
|
6078
|
-
|
|
6189
|
+
var instructionsLayoutSchema = z.object({
|
|
6190
|
+
type: z.literal("instructions"),
|
|
6191
|
+
title: z.string().optional(),
|
|
6192
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
6079
6193
|
control: z.string().optional(),
|
|
6080
6194
|
margin: sizeSchema.optional()
|
|
6081
6195
|
});
|
|
6082
|
-
var
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
]);
|
|
6087
|
-
var helpSchema = z.object({
|
|
6088
|
-
markdown: z.string()
|
|
6089
|
-
});
|
|
6090
|
-
var searchSearchRequestSchema = z.object({
|
|
6091
|
-
url: z.string(),
|
|
6092
|
-
method: httpMethodSchema,
|
|
6093
|
-
param: z.string(),
|
|
6094
|
-
query: z.string()
|
|
6196
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6197
|
+
var behaviorSchema = z.object({
|
|
6198
|
+
action: actionSchema.optional(),
|
|
6199
|
+
link: linkSchema.optional()
|
|
6095
6200
|
});
|
|
6096
|
-
var
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
z.boolean(),
|
|
6101
|
-
z.record(jsonElementSchema),
|
|
6102
|
-
z.array(jsonElementSchema)
|
|
6103
|
-
]).nullable()
|
|
6104
|
-
);
|
|
6105
|
-
var externalSchema = z.object({
|
|
6106
|
-
url: z.string()
|
|
6201
|
+
var reviewLayoutFieldSchema = z.object({
|
|
6202
|
+
label: z.string(),
|
|
6203
|
+
value: z.string(),
|
|
6204
|
+
help: helpSchema.optional()
|
|
6107
6205
|
});
|
|
6108
|
-
var
|
|
6109
|
-
|
|
6110
|
-
|
|
6206
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6207
|
+
title: z.string(),
|
|
6208
|
+
accessibilityDescription: z.string().optional(),
|
|
6209
|
+
behavior: behaviorSchema
|
|
6111
6210
|
});
|
|
6112
|
-
var stringSchemaFormatSchema = z.union([
|
|
6113
|
-
z.literal("date"),
|
|
6114
|
-
z.literal("email"),
|
|
6115
|
-
z.literal("numeric"),
|
|
6116
|
-
z.literal("password"),
|
|
6117
|
-
z.literal("phone-number"),
|
|
6118
|
-
z.literal("base64url")
|
|
6119
|
-
]);
|
|
6120
6211
|
var summarySummariserSchema = z.object({
|
|
6121
6212
|
defaultTitle: z.string().optional(),
|
|
6122
6213
|
defaultDescription: z.string().optional(),
|
|
@@ -6127,90 +6218,12 @@ var summarySummariserSchema = z.object({
|
|
|
6127
6218
|
providesIcon: z.boolean().optional(),
|
|
6128
6219
|
providesImage: z.boolean().optional()
|
|
6129
6220
|
});
|
|
6130
|
-
var
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
url: z.string()
|
|
6134
|
-
});
|
|
6135
|
-
var summaryProviderSchema = z.object({
|
|
6136
|
-
providesTitle: z.boolean().optional(),
|
|
6137
|
-
providesDescription: z.boolean().optional(),
|
|
6138
|
-
providesIcon: z.boolean().optional(),
|
|
6139
|
-
providesImage: z.boolean().optional()
|
|
6140
|
-
});
|
|
6141
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6142
|
-
var navigationStackBehaviorSchema = z.union([
|
|
6143
|
-
z.literal("default"),
|
|
6144
|
-
z.literal("remove-previous"),
|
|
6145
|
-
z.literal("remove-all"),
|
|
6146
|
-
z.literal("replace-current")
|
|
6147
|
-
]);
|
|
6148
|
-
var actionTypeSchema = z.union([
|
|
6149
|
-
z.literal("primary"),
|
|
6150
|
-
z.literal("secondary"),
|
|
6151
|
-
z.literal("link"),
|
|
6152
|
-
z.literal("positive"),
|
|
6153
|
-
z.literal("negative")
|
|
6154
|
-
]);
|
|
6155
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6156
|
-
var linkSchema = z.object({
|
|
6157
|
-
url: z.string()
|
|
6158
|
-
});
|
|
6159
|
-
var actionSchema = z.object({
|
|
6160
|
-
title: z.string().optional(),
|
|
6161
|
-
type: actionTypeSchema.optional(),
|
|
6162
|
-
disabled: z.boolean().optional(),
|
|
6163
|
-
$id: z.string().optional(),
|
|
6164
|
-
$ref: z.string().optional(),
|
|
6165
|
-
id: z.string().optional(),
|
|
6166
|
-
url: z.string().optional(),
|
|
6167
|
-
method: httpMethodSchema.optional(),
|
|
6168
|
-
exit: z.boolean().optional(),
|
|
6169
|
-
result: jsonElementSchema.optional(),
|
|
6170
|
-
data: jsonElementSchema.optional(),
|
|
6171
|
-
timeout: z.number().optional(),
|
|
6172
|
-
skipValidation: z.boolean().optional()
|
|
6173
|
-
});
|
|
6174
|
-
var listLayoutItemSchema = z.object({
|
|
6175
|
-
title: z.string(),
|
|
6176
|
-
description: z.string().optional(),
|
|
6177
|
-
icon: iconSchema,
|
|
6178
|
-
status: listLayoutStatusSchema.optional()
|
|
6179
|
-
});
|
|
6180
|
-
var decisionLayoutOptionSchema = z.object({
|
|
6181
|
-
action: actionSchema,
|
|
6182
|
-
title: z.string(),
|
|
6183
|
-
description: z.string().optional(),
|
|
6184
|
-
disabled: z.boolean().optional(),
|
|
6185
|
-
icon: iconSchema.optional(),
|
|
6186
|
-
image: imageLayoutSchema.optional()
|
|
6187
|
-
});
|
|
6188
|
-
var instructionsLayoutSchema = z.object({
|
|
6189
|
-
type: z.literal("instructions"),
|
|
6190
|
-
title: z.string().optional(),
|
|
6191
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
6192
|
-
control: z.string().optional(),
|
|
6193
|
-
margin: sizeSchema.optional()
|
|
6194
|
-
});
|
|
6195
|
-
var behaviorSchema = z.object({
|
|
6196
|
-
action: actionSchema.optional(),
|
|
6197
|
-
link: linkSchema.optional()
|
|
6198
|
-
});
|
|
6199
|
-
var buttonLayoutSchema = z.object({
|
|
6200
|
-
type: z.literal("button"),
|
|
6201
|
-
size: sizeSchema.optional(),
|
|
6202
|
-
title: z.string().optional(),
|
|
6203
|
-
action: actionSchema,
|
|
6204
|
-
context: contextSchema.optional(),
|
|
6205
|
-
disabled: z.boolean().optional(),
|
|
6206
|
-
pinOrder: z.number().optional(),
|
|
6207
|
-
control: z.string().optional(),
|
|
6208
|
-
margin: sizeSchema.optional()
|
|
6221
|
+
var linkHandlerSchema = z.object({
|
|
6222
|
+
regexPattern: z.string(),
|
|
6223
|
+
action: actionSchema
|
|
6209
6224
|
});
|
|
6210
|
-
var
|
|
6211
|
-
|
|
6212
|
-
value: z.string(),
|
|
6213
|
-
help: helpSchema.optional()
|
|
6225
|
+
var actionResponseBodySchema = z.object({
|
|
6226
|
+
action: actionSchema
|
|
6214
6227
|
});
|
|
6215
6228
|
var searchResultSearchSchema = z.object({
|
|
6216
6229
|
type: z.literal("search"),
|
|
@@ -6228,20 +6241,6 @@ var searchResultActionSchema = z.object({
|
|
|
6228
6241
|
image: imageLayoutSchema.optional(),
|
|
6229
6242
|
value: actionSchema
|
|
6230
6243
|
});
|
|
6231
|
-
var actionResponseBodySchema = z.object({
|
|
6232
|
-
action: actionSchema
|
|
6233
|
-
});
|
|
6234
|
-
var errorResponseBodySchema = z.object({
|
|
6235
|
-
refreshFormUrl: z.string().optional(),
|
|
6236
|
-
analytics: z.record(z.string()).optional(),
|
|
6237
|
-
error: z.string().optional(),
|
|
6238
|
-
validation: jsonElementSchema.optional(),
|
|
6239
|
-
refreshUrl: z.string().optional()
|
|
6240
|
-
});
|
|
6241
|
-
var linkHandlerSchema = z.object({
|
|
6242
|
-
regexPattern: z.string(),
|
|
6243
|
-
action: actionSchema
|
|
6244
|
-
});
|
|
6245
6244
|
var pollingOnErrorSchema = z.object({
|
|
6246
6245
|
action: actionSchema
|
|
6247
6246
|
});
|
|
@@ -6249,33 +6248,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6249
6248
|
title: z.string().optional(),
|
|
6250
6249
|
action: actionSchema
|
|
6251
6250
|
});
|
|
6252
|
-
var
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
6257
|
-
title: z.string(),
|
|
6258
|
-
accessibilityDescription: z.string().optional(),
|
|
6259
|
-
behavior: behaviorSchema
|
|
6260
|
-
});
|
|
6261
|
-
var listLayoutSchema = z.object({
|
|
6262
|
-
type: z.literal("list"),
|
|
6263
|
-
items: z.array(listLayoutItemSchema),
|
|
6264
|
-
title: z.string().optional(),
|
|
6265
|
-
control: z.string().optional(),
|
|
6266
|
-
margin: sizeSchema.optional()
|
|
6267
|
-
});
|
|
6268
|
-
var decisionLayoutSchema = z.object({
|
|
6269
|
-
type: z.literal("decision"),
|
|
6251
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6252
|
+
var buttonLayoutSchema = z.object({
|
|
6253
|
+
type: z.literal("button"),
|
|
6254
|
+
size: sizeSchema.optional(),
|
|
6270
6255
|
title: z.string().optional(),
|
|
6271
|
-
|
|
6256
|
+
action: actionSchema,
|
|
6257
|
+
context: contextSchema.optional(),
|
|
6258
|
+
disabled: z.boolean().optional(),
|
|
6259
|
+
pinOrder: z.number().optional(),
|
|
6272
6260
|
control: z.string().optional(),
|
|
6273
6261
|
margin: sizeSchema.optional()
|
|
6274
6262
|
});
|
|
6275
|
-
var
|
|
6263
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6264
|
+
action: actionSchema,
|
|
6276
6265
|
title: z.string(),
|
|
6277
|
-
|
|
6278
|
-
|
|
6266
|
+
description: z.string().optional(),
|
|
6267
|
+
disabled: z.boolean().optional(),
|
|
6268
|
+
icon: iconSchema.optional(),
|
|
6269
|
+
image: imageLayoutSchema.optional()
|
|
6270
|
+
});
|
|
6271
|
+
var alertLayoutSchema = z.object({
|
|
6272
|
+
type: z.literal("alert"),
|
|
6273
|
+
markdown: z.string(),
|
|
6274
|
+
context: contextSchema.optional(),
|
|
6275
|
+
control: z.string().optional(),
|
|
6276
|
+
margin: sizeSchema.optional(),
|
|
6277
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6279
6278
|
});
|
|
6280
6279
|
var reviewLayoutSchema = z.object({
|
|
6281
6280
|
type: z.literal("review"),
|
|
@@ -6287,27 +6286,16 @@ var reviewLayoutSchema = z.object({
|
|
|
6287
6286
|
control: z.string().optional(),
|
|
6288
6287
|
margin: sizeSchema.optional()
|
|
6289
6288
|
});
|
|
6290
|
-
var
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
timeout: z.number().optional(),
|
|
6296
|
-
maxAttempts: z.number(),
|
|
6297
|
-
onError: pollingOnErrorSchema
|
|
6298
|
-
});
|
|
6299
|
-
var navigationSchema = z.object({
|
|
6300
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
6301
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
6302
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6289
|
+
var listLayoutItemSchema = z.object({
|
|
6290
|
+
title: z.string(),
|
|
6291
|
+
description: z.string().optional(),
|
|
6292
|
+
icon: iconSchema,
|
|
6293
|
+
status: listLayoutStatusSchema.optional()
|
|
6303
6294
|
});
|
|
6304
|
-
var
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
control: z.string().optional(),
|
|
6309
|
-
margin: sizeSchema.optional(),
|
|
6310
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6295
|
+
var itemCallToActionSchema = z.object({
|
|
6296
|
+
title: z.string(),
|
|
6297
|
+
accessibilityDescription: z.string().optional(),
|
|
6298
|
+
behavior: behaviorSchema
|
|
6311
6299
|
});
|
|
6312
6300
|
var statusListLayoutItemSchema = z.object({
|
|
6313
6301
|
title: z.string(),
|
|
@@ -6316,9 +6304,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
6316
6304
|
status: statusListLayoutStatusSchema.optional(),
|
|
6317
6305
|
callToAction: itemCallToActionSchema.optional()
|
|
6318
6306
|
});
|
|
6319
|
-
var searchResponseBodySchema = z.object({
|
|
6320
|
-
results: z.array(searchResultSchema)
|
|
6321
|
-
});
|
|
6322
6307
|
var blobSchemaSchema = z.object({
|
|
6323
6308
|
type: z.literal("blob"),
|
|
6324
6309
|
promoted: z.boolean().optional(),
|
|
@@ -6357,6 +6342,34 @@ var constSchemaSchema = z.object({
|
|
|
6357
6342
|
analyticsId: z.string().optional(),
|
|
6358
6343
|
disabled: z.boolean().optional()
|
|
6359
6344
|
});
|
|
6345
|
+
var pollingSchema = z.object({
|
|
6346
|
+
url: z.string(),
|
|
6347
|
+
interval: z.number().optional(),
|
|
6348
|
+
delay: z.number().optional(),
|
|
6349
|
+
timeout: z.number().optional(),
|
|
6350
|
+
maxAttempts: z.number(),
|
|
6351
|
+
onError: pollingOnErrorSchema
|
|
6352
|
+
});
|
|
6353
|
+
var navigationSchema = z.object({
|
|
6354
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
6355
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
6356
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6357
|
+
});
|
|
6358
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6359
|
+
var decisionLayoutSchema = z.object({
|
|
6360
|
+
type: z.literal("decision"),
|
|
6361
|
+
title: z.string().optional(),
|
|
6362
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6363
|
+
control: z.string().optional(),
|
|
6364
|
+
margin: sizeSchema.optional()
|
|
6365
|
+
});
|
|
6366
|
+
var listLayoutSchema = z.object({
|
|
6367
|
+
type: z.literal("list"),
|
|
6368
|
+
items: z.array(listLayoutItemSchema),
|
|
6369
|
+
title: z.string().optional(),
|
|
6370
|
+
control: z.string().optional(),
|
|
6371
|
+
margin: sizeSchema.optional()
|
|
6372
|
+
});
|
|
6360
6373
|
var statusListLayoutSchema = z.object({
|
|
6361
6374
|
type: z.literal("status-list"),
|
|
6362
6375
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -6364,6 +6377,19 @@ var statusListLayoutSchema = z.object({
|
|
|
6364
6377
|
control: z.string().optional(),
|
|
6365
6378
|
margin: sizeSchema.optional()
|
|
6366
6379
|
});
|
|
6380
|
+
var searchResponseBodySchema = z.object({
|
|
6381
|
+
results: z.array(searchResultSchema)
|
|
6382
|
+
});
|
|
6383
|
+
var columnsLayoutSchema = z.lazy(
|
|
6384
|
+
() => z.object({
|
|
6385
|
+
type: z.literal("columns"),
|
|
6386
|
+
left: z.array(layoutSchema),
|
|
6387
|
+
right: z.array(layoutSchema),
|
|
6388
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6389
|
+
control: z.string().optional(),
|
|
6390
|
+
margin: sizeSchema.optional()
|
|
6391
|
+
})
|
|
6392
|
+
);
|
|
6367
6393
|
var layoutSchema = z.lazy(
|
|
6368
6394
|
() => z.union([
|
|
6369
6395
|
alertLayoutSchema,
|
|
@@ -6387,26 +6413,6 @@ var layoutSchema = z.lazy(
|
|
|
6387
6413
|
statusListLayoutSchema
|
|
6388
6414
|
])
|
|
6389
6415
|
);
|
|
6390
|
-
var boxLayoutSchema = z.lazy(
|
|
6391
|
-
() => z.object({
|
|
6392
|
-
type: z.literal("box"),
|
|
6393
|
-
components: z.array(layoutSchema),
|
|
6394
|
-
width: sizeSchema.optional(),
|
|
6395
|
-
border: z.boolean().optional(),
|
|
6396
|
-
control: z.string().optional(),
|
|
6397
|
-
margin: sizeSchema.optional()
|
|
6398
|
-
})
|
|
6399
|
-
);
|
|
6400
|
-
var columnsLayoutSchema = z.lazy(
|
|
6401
|
-
() => z.object({
|
|
6402
|
-
type: z.literal("columns"),
|
|
6403
|
-
left: z.array(layoutSchema),
|
|
6404
|
-
right: z.array(layoutSchema),
|
|
6405
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6406
|
-
control: z.string().optional(),
|
|
6407
|
-
margin: sizeSchema.optional()
|
|
6408
|
-
})
|
|
6409
|
-
);
|
|
6410
6416
|
var modalLayoutSchema = z.lazy(
|
|
6411
6417
|
() => z.object({
|
|
6412
6418
|
type: z.literal("modal"),
|
|
@@ -6422,25 +6428,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6422
6428
|
components: z.array(layoutSchema)
|
|
6423
6429
|
})
|
|
6424
6430
|
);
|
|
6425
|
-
var
|
|
6431
|
+
var boxLayoutSchema = z.lazy(
|
|
6426
6432
|
() => z.object({
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
schemas: z.array(schemaSchema),
|
|
6434
|
-
layout: z.array(layoutSchema),
|
|
6435
|
-
description: z.string().optional(),
|
|
6436
|
-
model: jsonElementSchema.optional(),
|
|
6437
|
-
external: externalSchema.optional(),
|
|
6438
|
-
polling: pollingSchema.optional(),
|
|
6439
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6440
|
-
analytics: z.record(z.string()).optional(),
|
|
6441
|
-
errors: stepErrorSchema.optional(),
|
|
6442
|
-
navigation: navigationSchema.optional(),
|
|
6443
|
-
refreshUrl: z.string().optional()
|
|
6433
|
+
type: z.literal("box"),
|
|
6434
|
+
components: z.array(layoutSchema),
|
|
6435
|
+
width: sizeSchema.optional(),
|
|
6436
|
+
border: z.boolean().optional(),
|
|
6437
|
+
control: z.string().optional(),
|
|
6438
|
+
margin: sizeSchema.optional()
|
|
6444
6439
|
})
|
|
6445
6440
|
);
|
|
6446
6441
|
var schemaSchema = z.lazy(
|
|
@@ -6666,17 +6661,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6666
6661
|
help: helpSchema.optional()
|
|
6667
6662
|
})
|
|
6668
6663
|
);
|
|
6669
|
-
var
|
|
6664
|
+
var persistAsyncSchema = z.lazy(
|
|
6665
|
+
() => z.object({
|
|
6666
|
+
param: z.string(),
|
|
6667
|
+
idProperty: z.string(),
|
|
6668
|
+
schema: schemaSchema,
|
|
6669
|
+
url: z.string(),
|
|
6670
|
+
method: httpMethodSchema
|
|
6671
|
+
})
|
|
6672
|
+
);
|
|
6673
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6670
6674
|
() => z.object({
|
|
6671
6675
|
type: z.literal("array"),
|
|
6672
6676
|
promoted: z.boolean().optional(),
|
|
6673
6677
|
$id: z.string().optional(),
|
|
6674
|
-
items: schemaSchema,
|
|
6675
|
-
addItemTitle: z.string(),
|
|
6676
|
-
editItemTitle: z.string(),
|
|
6677
|
-
minItems: z.number().optional(),
|
|
6678
|
-
maxItems: z.number().optional(),
|
|
6679
|
-
placeholder: z.string().optional(),
|
|
6678
|
+
items: z.array(schemaSchema),
|
|
6680
6679
|
title: z.string().optional(),
|
|
6681
6680
|
description: z.string().optional(),
|
|
6682
6681
|
control: z.string().optional(),
|
|
@@ -6684,30 +6683,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6684
6683
|
icon: iconSchema.optional(),
|
|
6685
6684
|
image: imageSchema.optional(),
|
|
6686
6685
|
keywords: z.array(z.string()).optional(),
|
|
6687
|
-
summary:
|
|
6686
|
+
summary: summaryProviderSchema.optional(),
|
|
6688
6687
|
analyticsId: z.string().optional(),
|
|
6689
6688
|
persistAsync: persistAsyncSchema.optional(),
|
|
6690
6689
|
validationAsync: validateAsyncSchema.optional(),
|
|
6691
|
-
alert: alertLayoutSchema.optional()
|
|
6692
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6693
|
-
disabled: z.boolean().optional()
|
|
6694
|
-
})
|
|
6695
|
-
);
|
|
6696
|
-
var persistAsyncSchema = z.lazy(
|
|
6697
|
-
() => z.object({
|
|
6698
|
-
param: z.string(),
|
|
6699
|
-
idProperty: z.string(),
|
|
6700
|
-
schema: schemaSchema,
|
|
6701
|
-
url: z.string(),
|
|
6702
|
-
method: httpMethodSchema
|
|
6690
|
+
alert: alertLayoutSchema.optional()
|
|
6703
6691
|
})
|
|
6704
6692
|
);
|
|
6705
|
-
var
|
|
6693
|
+
var arraySchemaListSchema = z.lazy(
|
|
6706
6694
|
() => z.object({
|
|
6707
6695
|
type: z.literal("array"),
|
|
6708
6696
|
promoted: z.boolean().optional(),
|
|
6709
6697
|
$id: z.string().optional(),
|
|
6710
|
-
items:
|
|
6698
|
+
items: schemaSchema,
|
|
6699
|
+
addItemTitle: z.string(),
|
|
6700
|
+
editItemTitle: z.string(),
|
|
6701
|
+
minItems: z.number().optional(),
|
|
6702
|
+
maxItems: z.number().optional(),
|
|
6703
|
+
placeholder: z.string().optional(),
|
|
6711
6704
|
title: z.string().optional(),
|
|
6712
6705
|
description: z.string().optional(),
|
|
6713
6706
|
control: z.string().optional(),
|
|
@@ -6715,11 +6708,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6715
6708
|
icon: iconSchema.optional(),
|
|
6716
6709
|
image: imageSchema.optional(),
|
|
6717
6710
|
keywords: z.array(z.string()).optional(),
|
|
6718
|
-
summary:
|
|
6711
|
+
summary: summarySummariserSchema.optional(),
|
|
6719
6712
|
analyticsId: z.string().optional(),
|
|
6720
6713
|
persistAsync: persistAsyncSchema.optional(),
|
|
6721
6714
|
validationAsync: validateAsyncSchema.optional(),
|
|
6722
|
-
alert: alertLayoutSchema.optional()
|
|
6715
|
+
alert: alertLayoutSchema.optional(),
|
|
6716
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6717
|
+
disabled: z.boolean().optional()
|
|
6718
|
+
})
|
|
6719
|
+
);
|
|
6720
|
+
var stepSchema = z.lazy(
|
|
6721
|
+
() => z.object({
|
|
6722
|
+
key: z.string().optional(),
|
|
6723
|
+
type: z.string().optional(),
|
|
6724
|
+
actions: z.array(actionSchema).optional(),
|
|
6725
|
+
refreshFormUrl: z.string().optional(),
|
|
6726
|
+
id: z.string(),
|
|
6727
|
+
title: z.string(),
|
|
6728
|
+
schemas: z.array(schemaSchema),
|
|
6729
|
+
layout: z.array(layoutSchema),
|
|
6730
|
+
description: z.string().optional(),
|
|
6731
|
+
model: jsonElementSchema.optional(),
|
|
6732
|
+
external: externalSchema.optional(),
|
|
6733
|
+
polling: pollingSchema.optional(),
|
|
6734
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6735
|
+
analytics: z.record(z.string()).optional(),
|
|
6736
|
+
errors: stepErrorSchema.optional(),
|
|
6737
|
+
navigation: navigationSchema.optional(),
|
|
6738
|
+
refreshUrl: z.string().optional()
|
|
6723
6739
|
})
|
|
6724
6740
|
);
|
|
6725
6741
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -7874,7 +7890,7 @@ var schemaHasValidationMessages = (schema) => Boolean("validationMessages" in sc
|
|
|
7874
7890
|
var mapCommonSchemaProps = (schemaMapperProps) => {
|
|
7875
7891
|
var _a;
|
|
7876
7892
|
const { uid, schema, required, validationErrors } = schemaMapperProps;
|
|
7877
|
-
const { $id, analyticsId, control, description, keywords, title, hidden } = schema;
|
|
7893
|
+
const { $id, analyticsId, control, description, icon, image, keywords, title, hidden } = schema;
|
|
7878
7894
|
return __spreadValues(__spreadValues({
|
|
7879
7895
|
uid,
|
|
7880
7896
|
id: $id != null ? $id : uid,
|
|
@@ -7884,6 +7900,8 @@ var mapCommonSchemaProps = (schemaMapperProps) => {
|
|
|
7884
7900
|
disabled: schemaHasDisabled(schema) ? schema.disabled : false,
|
|
7885
7901
|
errors: isString(validationErrors) ? [validationErrors] : void 0,
|
|
7886
7902
|
hidden: Boolean(hidden),
|
|
7903
|
+
icon,
|
|
7904
|
+
image,
|
|
7887
7905
|
keywords,
|
|
7888
7906
|
required: Boolean(required),
|
|
7889
7907
|
title,
|
|
@@ -8021,6 +8039,8 @@ var createObjectComponent = (objectProps) => {
|
|
|
8021
8039
|
displayOrder,
|
|
8022
8040
|
help,
|
|
8023
8041
|
hidden,
|
|
8042
|
+
icon,
|
|
8043
|
+
image,
|
|
8024
8044
|
summariser,
|
|
8025
8045
|
title
|
|
8026
8046
|
} = objectProps;
|
|
@@ -8033,6 +8053,8 @@ var createObjectComponent = (objectProps) => {
|
|
|
8033
8053
|
description,
|
|
8034
8054
|
help,
|
|
8035
8055
|
hidden,
|
|
8056
|
+
icon,
|
|
8057
|
+
image,
|
|
8036
8058
|
title,
|
|
8037
8059
|
getChildren() {
|
|
8038
8060
|
return displayOrder.map((propName) => this.componentMap[propName]);
|
|
@@ -8131,7 +8153,7 @@ var validateDisplayOrder = ($id, displayOrder, properties, logEvent) => {
|
|
|
8131
8153
|
|
|
8132
8154
|
// src/revamp/domain/components/AllOfComponent.ts
|
|
8133
8155
|
var createAllOfComponent = (allOfProps) => {
|
|
8134
|
-
const { uid, analyticsId, components, control, description, help, hidden, title } = allOfProps;
|
|
8156
|
+
const { uid, analyticsId, components, control, description, help, hidden, icon, image, title } = allOfProps;
|
|
8135
8157
|
return {
|
|
8136
8158
|
type: "all-of",
|
|
8137
8159
|
uid,
|
|
@@ -8141,6 +8163,8 @@ var createAllOfComponent = (allOfProps) => {
|
|
|
8141
8163
|
description,
|
|
8142
8164
|
help,
|
|
8143
8165
|
hidden,
|
|
8166
|
+
icon,
|
|
8167
|
+
image,
|
|
8144
8168
|
title,
|
|
8145
8169
|
getChildren() {
|
|
8146
8170
|
return this.components;
|
|
@@ -9545,7 +9569,19 @@ var arraySchemaToMultiSelectComponent = (schemaMapperProps, mapperProps) => {
|
|
|
9545
9569
|
|
|
9546
9570
|
// src/revamp/domain/components/TupleComponent.ts
|
|
9547
9571
|
var createTupleComponent = (tupleProps) => {
|
|
9548
|
-
const {
|
|
9572
|
+
const {
|
|
9573
|
+
uid,
|
|
9574
|
+
analyticsId,
|
|
9575
|
+
components,
|
|
9576
|
+
control,
|
|
9577
|
+
description,
|
|
9578
|
+
help,
|
|
9579
|
+
hidden,
|
|
9580
|
+
icon,
|
|
9581
|
+
image,
|
|
9582
|
+
summariser,
|
|
9583
|
+
title
|
|
9584
|
+
} = tupleProps;
|
|
9549
9585
|
return {
|
|
9550
9586
|
type: "tuple",
|
|
9551
9587
|
uid,
|
|
@@ -9555,6 +9591,8 @@ var createTupleComponent = (tupleProps) => {
|
|
|
9555
9591
|
description,
|
|
9556
9592
|
help,
|
|
9557
9593
|
hidden,
|
|
9594
|
+
icon,
|
|
9595
|
+
image,
|
|
9558
9596
|
title,
|
|
9559
9597
|
getChildren() {
|
|
9560
9598
|
return this.components;
|
|
@@ -11570,8 +11608,8 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
11570
11608
|
// ../renderers/src/DecisionRenderer.tsx
|
|
11571
11609
|
var import_components9 = require("@transferwise/components");
|
|
11572
11610
|
|
|
11573
|
-
// ../../node_modules/.pnpm/@wise+art@2.
|
|
11574
|
-
|
|
11611
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.2_@transferwise+neptune-css@14.19.1_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
|
|
11612
|
+
init_index_c8ed1f53_esm();
|
|
11575
11613
|
init_clsx();
|
|
11576
11614
|
var import_react8 = require("react");
|
|
11577
11615
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
@@ -15241,9 +15279,11 @@ var DynamicExternal = ({ component, onAction }) => {
|
|
|
15241
15279
|
(0, import_react32.useEffect)(() => {
|
|
15242
15280
|
openExternalUrl();
|
|
15243
15281
|
}, [openExternalUrl]);
|
|
15244
|
-
const pollingConfiguration =
|
|
15245
|
-
responseHandlers
|
|
15246
|
-
|
|
15282
|
+
const pollingConfiguration = (0, import_react32.useMemo)(() => {
|
|
15283
|
+
return polling && responseHandlers ? __spreadProps(__spreadValues({}, polling), {
|
|
15284
|
+
responseHandlers
|
|
15285
|
+
}) : void 0;
|
|
15286
|
+
}, [polling, responseHandlers]);
|
|
15247
15287
|
useExternalStepPolling(pollingConfiguration, onAction);
|
|
15248
15288
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
15249
15289
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components45.Loader, { size: import_components45.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
|