@wise/dynamic-flow-client 3.23.0 → 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 +348 -344
- package/build/main.min.js +1 -1
- package/build/main.mjs +345 -341
- package/package.json +7 -7
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.16.
|
|
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.16.
|
|
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) {
|
|
@@ -5905,21 +5907,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5905
5907
|
quotelessJson,
|
|
5906
5908
|
ZodError
|
|
5907
5909
|
});
|
|
5908
|
-
var
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
z.literal("GET"),
|
|
5915
|
-
z.literal("POST"),
|
|
5916
|
-
z.literal("PUT"),
|
|
5917
|
-
z.literal("PATCH"),
|
|
5918
|
-
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")
|
|
5919
5916
|
]);
|
|
5920
|
-
var iconNamedSchema = z.object({
|
|
5921
|
-
name: z.string()
|
|
5922
|
-
});
|
|
5923
5917
|
var contextSchema = z.union([
|
|
5924
5918
|
z.literal("positive"),
|
|
5925
5919
|
z.literal("neutral"),
|
|
@@ -5930,18 +5924,107 @@ var contextSchema = z.union([
|
|
|
5930
5924
|
z.literal("info"),
|
|
5931
5925
|
z.literal("primary")
|
|
5932
5926
|
]);
|
|
5933
|
-
var
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
z.literal("
|
|
5940
|
-
z.literal("
|
|
5941
|
-
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")
|
|
5942
5936
|
]);
|
|
5943
5937
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5944
|
-
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
|
+
});
|
|
5945
6028
|
var autocompleteTokenSchema = z.union([
|
|
5946
6029
|
z.literal("on"),
|
|
5947
6030
|
z.literal("name"),
|
|
@@ -6007,52 +6090,87 @@ var autocompleteTokenSchema = z.union([
|
|
|
6007
6090
|
z.literal("fax"),
|
|
6008
6091
|
z.literal("pager")
|
|
6009
6092
|
]);
|
|
6010
|
-
var
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
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()
|
|
6022
6113
|
});
|
|
6023
|
-
var
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
margin: sizeSchema.optional()
|
|
6114
|
+
var stepErrorSchema = z.object({
|
|
6115
|
+
error: z.string().optional(),
|
|
6116
|
+
validation: jsonElementSchema.optional()
|
|
6027
6117
|
});
|
|
6028
|
-
var
|
|
6029
|
-
z.
|
|
6030
|
-
z.
|
|
6031
|
-
z.
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
$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()
|
|
6035
6124
|
});
|
|
6036
|
-
var
|
|
6037
|
-
type: z.literal("image"),
|
|
6038
|
-
text: z.string().optional(),
|
|
6125
|
+
var searchSearchRequestSchema = z.object({
|
|
6039
6126
|
url: z.string(),
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
margin: sizeSchema.optional()
|
|
6127
|
+
method: httpMethodSchema,
|
|
6128
|
+
param: z.string(),
|
|
6129
|
+
query: z.string()
|
|
6044
6130
|
});
|
|
6045
|
-
var
|
|
6046
|
-
z.literal("
|
|
6047
|
-
z.literal("
|
|
6048
|
-
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")
|
|
6049
6136
|
]);
|
|
6050
|
-
var
|
|
6051
|
-
|
|
6052
|
-
context: contextSchema
|
|
6137
|
+
var linkSchema = z.object({
|
|
6138
|
+
url: z.string()
|
|
6053
6139
|
});
|
|
6054
|
-
var
|
|
6055
|
-
|
|
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()
|
|
6056
6174
|
});
|
|
6057
6175
|
var searchLayoutSchema = z.object({
|
|
6058
6176
|
type: z.literal("search"),
|
|
@@ -6064,73 +6182,32 @@ var searchLayoutSchema = z.object({
|
|
|
6064
6182
|
control: z.string().optional(),
|
|
6065
6183
|
margin: sizeSchema.optional()
|
|
6066
6184
|
});
|
|
6067
|
-
var
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
align: alignSchema.optional(),
|
|
6071
|
-
control: z.string().optional(),
|
|
6072
|
-
margin: sizeSchema.optional()
|
|
6185
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6186
|
+
title: z.string(),
|
|
6187
|
+
action: actionSchema
|
|
6073
6188
|
});
|
|
6074
|
-
var
|
|
6075
|
-
type: z.literal("
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
control: z.string().optional(),
|
|
6079
|
-
margin: sizeSchema.optional()
|
|
6080
|
-
});
|
|
6081
|
-
var headingLayoutSchema = z.object({
|
|
6082
|
-
type: z.literal("heading"),
|
|
6083
|
-
text: z.string(),
|
|
6084
|
-
size: sizeSchema.optional(),
|
|
6085
|
-
align: alignSchema.optional(),
|
|
6086
|
-
control: z.string().optional(),
|
|
6087
|
-
margin: sizeSchema.optional()
|
|
6088
|
-
});
|
|
6089
|
-
var markdownLayoutSchema = z.object({
|
|
6090
|
-
type: z.literal("markdown"),
|
|
6091
|
-
content: z.string(),
|
|
6092
|
-
align: alignSchema.optional(),
|
|
6189
|
+
var instructionsLayoutSchema = z.object({
|
|
6190
|
+
type: z.literal("instructions"),
|
|
6191
|
+
title: z.string().optional(),
|
|
6192
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
6093
6193
|
control: z.string().optional(),
|
|
6094
6194
|
margin: sizeSchema.optional()
|
|
6095
6195
|
});
|
|
6096
|
-
var
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
]);
|
|
6101
|
-
var helpSchema = z.object({
|
|
6102
|
-
markdown: z.string()
|
|
6103
|
-
});
|
|
6104
|
-
var searchSearchRequestSchema = z.object({
|
|
6105
|
-
url: z.string(),
|
|
6106
|
-
method: httpMethodSchema,
|
|
6107
|
-
param: z.string(),
|
|
6108
|
-
query: z.string()
|
|
6196
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6197
|
+
var behaviorSchema = z.object({
|
|
6198
|
+
action: actionSchema.optional(),
|
|
6199
|
+
link: linkSchema.optional()
|
|
6109
6200
|
});
|
|
6110
|
-
var
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
z.boolean(),
|
|
6115
|
-
z.record(jsonElementSchema),
|
|
6116
|
-
z.array(jsonElementSchema)
|
|
6117
|
-
]).nullable()
|
|
6118
|
-
);
|
|
6119
|
-
var externalSchema = z.object({
|
|
6120
|
-
url: z.string()
|
|
6201
|
+
var reviewLayoutFieldSchema = z.object({
|
|
6202
|
+
label: z.string(),
|
|
6203
|
+
value: z.string(),
|
|
6204
|
+
help: helpSchema.optional()
|
|
6121
6205
|
});
|
|
6122
|
-
var
|
|
6123
|
-
|
|
6124
|
-
|
|
6206
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6207
|
+
title: z.string(),
|
|
6208
|
+
accessibilityDescription: z.string().optional(),
|
|
6209
|
+
behavior: behaviorSchema
|
|
6125
6210
|
});
|
|
6126
|
-
var stringSchemaFormatSchema = z.union([
|
|
6127
|
-
z.literal("date"),
|
|
6128
|
-
z.literal("email"),
|
|
6129
|
-
z.literal("numeric"),
|
|
6130
|
-
z.literal("password"),
|
|
6131
|
-
z.literal("phone-number"),
|
|
6132
|
-
z.literal("base64url")
|
|
6133
|
-
]);
|
|
6134
6211
|
var summarySummariserSchema = z.object({
|
|
6135
6212
|
defaultTitle: z.string().optional(),
|
|
6136
6213
|
defaultDescription: z.string().optional(),
|
|
@@ -6141,90 +6218,12 @@ var summarySummariserSchema = z.object({
|
|
|
6141
6218
|
providesIcon: z.boolean().optional(),
|
|
6142
6219
|
providesImage: z.boolean().optional()
|
|
6143
6220
|
});
|
|
6144
|
-
var
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
url: z.string()
|
|
6148
|
-
});
|
|
6149
|
-
var summaryProviderSchema = z.object({
|
|
6150
|
-
providesTitle: z.boolean().optional(),
|
|
6151
|
-
providesDescription: z.boolean().optional(),
|
|
6152
|
-
providesIcon: z.boolean().optional(),
|
|
6153
|
-
providesImage: z.boolean().optional()
|
|
6154
|
-
});
|
|
6155
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6156
|
-
var navigationStackBehaviorSchema = z.union([
|
|
6157
|
-
z.literal("default"),
|
|
6158
|
-
z.literal("remove-previous"),
|
|
6159
|
-
z.literal("remove-all"),
|
|
6160
|
-
z.literal("replace-current")
|
|
6161
|
-
]);
|
|
6162
|
-
var actionTypeSchema = z.union([
|
|
6163
|
-
z.literal("primary"),
|
|
6164
|
-
z.literal("secondary"),
|
|
6165
|
-
z.literal("link"),
|
|
6166
|
-
z.literal("positive"),
|
|
6167
|
-
z.literal("negative")
|
|
6168
|
-
]);
|
|
6169
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6170
|
-
var linkSchema = z.object({
|
|
6171
|
-
url: z.string()
|
|
6172
|
-
});
|
|
6173
|
-
var actionSchema = z.object({
|
|
6174
|
-
title: z.string().optional(),
|
|
6175
|
-
type: actionTypeSchema.optional(),
|
|
6176
|
-
disabled: z.boolean().optional(),
|
|
6177
|
-
$id: z.string().optional(),
|
|
6178
|
-
$ref: z.string().optional(),
|
|
6179
|
-
id: z.string().optional(),
|
|
6180
|
-
url: z.string().optional(),
|
|
6181
|
-
method: httpMethodSchema.optional(),
|
|
6182
|
-
exit: z.boolean().optional(),
|
|
6183
|
-
result: jsonElementSchema.optional(),
|
|
6184
|
-
data: jsonElementSchema.optional(),
|
|
6185
|
-
timeout: z.number().optional(),
|
|
6186
|
-
skipValidation: z.boolean().optional()
|
|
6187
|
-
});
|
|
6188
|
-
var listLayoutItemSchema = z.object({
|
|
6189
|
-
title: z.string(),
|
|
6190
|
-
description: z.string().optional(),
|
|
6191
|
-
icon: iconSchema,
|
|
6192
|
-
status: listLayoutStatusSchema.optional()
|
|
6193
|
-
});
|
|
6194
|
-
var decisionLayoutOptionSchema = z.object({
|
|
6195
|
-
action: actionSchema,
|
|
6196
|
-
title: z.string(),
|
|
6197
|
-
description: z.string().optional(),
|
|
6198
|
-
disabled: z.boolean().optional(),
|
|
6199
|
-
icon: iconSchema.optional(),
|
|
6200
|
-
image: imageLayoutSchema.optional()
|
|
6201
|
-
});
|
|
6202
|
-
var instructionsLayoutSchema = z.object({
|
|
6203
|
-
type: z.literal("instructions"),
|
|
6204
|
-
title: z.string().optional(),
|
|
6205
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
6206
|
-
control: z.string().optional(),
|
|
6207
|
-
margin: sizeSchema.optional()
|
|
6208
|
-
});
|
|
6209
|
-
var behaviorSchema = z.object({
|
|
6210
|
-
action: actionSchema.optional(),
|
|
6211
|
-
link: linkSchema.optional()
|
|
6212
|
-
});
|
|
6213
|
-
var buttonLayoutSchema = z.object({
|
|
6214
|
-
type: z.literal("button"),
|
|
6215
|
-
size: sizeSchema.optional(),
|
|
6216
|
-
title: z.string().optional(),
|
|
6217
|
-
action: actionSchema,
|
|
6218
|
-
context: contextSchema.optional(),
|
|
6219
|
-
disabled: z.boolean().optional(),
|
|
6220
|
-
pinOrder: z.number().optional(),
|
|
6221
|
-
control: z.string().optional(),
|
|
6222
|
-
margin: sizeSchema.optional()
|
|
6221
|
+
var linkHandlerSchema = z.object({
|
|
6222
|
+
regexPattern: z.string(),
|
|
6223
|
+
action: actionSchema
|
|
6223
6224
|
});
|
|
6224
|
-
var
|
|
6225
|
-
|
|
6226
|
-
value: z.string(),
|
|
6227
|
-
help: helpSchema.optional()
|
|
6225
|
+
var actionResponseBodySchema = z.object({
|
|
6226
|
+
action: actionSchema
|
|
6228
6227
|
});
|
|
6229
6228
|
var searchResultSearchSchema = z.object({
|
|
6230
6229
|
type: z.literal("search"),
|
|
@@ -6242,20 +6241,6 @@ var searchResultActionSchema = z.object({
|
|
|
6242
6241
|
image: imageLayoutSchema.optional(),
|
|
6243
6242
|
value: actionSchema
|
|
6244
6243
|
});
|
|
6245
|
-
var actionResponseBodySchema = z.object({
|
|
6246
|
-
action: actionSchema
|
|
6247
|
-
});
|
|
6248
|
-
var errorResponseBodySchema = z.object({
|
|
6249
|
-
refreshFormUrl: z.string().optional(),
|
|
6250
|
-
analytics: z.record(z.string()).optional(),
|
|
6251
|
-
error: z.string().optional(),
|
|
6252
|
-
validation: jsonElementSchema.optional(),
|
|
6253
|
-
refreshUrl: z.string().optional()
|
|
6254
|
-
});
|
|
6255
|
-
var linkHandlerSchema = z.object({
|
|
6256
|
-
regexPattern: z.string(),
|
|
6257
|
-
action: actionSchema
|
|
6258
|
-
});
|
|
6259
6244
|
var pollingOnErrorSchema = z.object({
|
|
6260
6245
|
action: actionSchema
|
|
6261
6246
|
});
|
|
@@ -6263,33 +6248,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6263
6248
|
title: z.string().optional(),
|
|
6264
6249
|
action: actionSchema
|
|
6265
6250
|
});
|
|
6266
|
-
var
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
6271
|
-
title: z.string(),
|
|
6272
|
-
accessibilityDescription: z.string().optional(),
|
|
6273
|
-
behavior: behaviorSchema
|
|
6274
|
-
});
|
|
6275
|
-
var listLayoutSchema = z.object({
|
|
6276
|
-
type: z.literal("list"),
|
|
6277
|
-
items: z.array(listLayoutItemSchema),
|
|
6278
|
-
title: z.string().optional(),
|
|
6279
|
-
control: z.string().optional(),
|
|
6280
|
-
margin: sizeSchema.optional()
|
|
6281
|
-
});
|
|
6282
|
-
var decisionLayoutSchema = z.object({
|
|
6283
|
-
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(),
|
|
6284
6255
|
title: z.string().optional(),
|
|
6285
|
-
|
|
6256
|
+
action: actionSchema,
|
|
6257
|
+
context: contextSchema.optional(),
|
|
6258
|
+
disabled: z.boolean().optional(),
|
|
6259
|
+
pinOrder: z.number().optional(),
|
|
6286
6260
|
control: z.string().optional(),
|
|
6287
6261
|
margin: sizeSchema.optional()
|
|
6288
6262
|
});
|
|
6289
|
-
var
|
|
6263
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6264
|
+
action: actionSchema,
|
|
6290
6265
|
title: z.string(),
|
|
6291
|
-
|
|
6292
|
-
|
|
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()
|
|
6293
6278
|
});
|
|
6294
6279
|
var reviewLayoutSchema = z.object({
|
|
6295
6280
|
type: z.literal("review"),
|
|
@@ -6301,27 +6286,16 @@ var reviewLayoutSchema = z.object({
|
|
|
6301
6286
|
control: z.string().optional(),
|
|
6302
6287
|
margin: sizeSchema.optional()
|
|
6303
6288
|
});
|
|
6304
|
-
var
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
timeout: z.number().optional(),
|
|
6310
|
-
maxAttempts: z.number(),
|
|
6311
|
-
onError: pollingOnErrorSchema
|
|
6312
|
-
});
|
|
6313
|
-
var navigationSchema = z.object({
|
|
6314
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
6315
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
6316
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6289
|
+
var listLayoutItemSchema = z.object({
|
|
6290
|
+
title: z.string(),
|
|
6291
|
+
description: z.string().optional(),
|
|
6292
|
+
icon: iconSchema,
|
|
6293
|
+
status: listLayoutStatusSchema.optional()
|
|
6317
6294
|
});
|
|
6318
|
-
var
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
control: z.string().optional(),
|
|
6323
|
-
margin: sizeSchema.optional(),
|
|
6324
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6295
|
+
var itemCallToActionSchema = z.object({
|
|
6296
|
+
title: z.string(),
|
|
6297
|
+
accessibilityDescription: z.string().optional(),
|
|
6298
|
+
behavior: behaviorSchema
|
|
6325
6299
|
});
|
|
6326
6300
|
var statusListLayoutItemSchema = z.object({
|
|
6327
6301
|
title: z.string(),
|
|
@@ -6330,9 +6304,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
6330
6304
|
status: statusListLayoutStatusSchema.optional(),
|
|
6331
6305
|
callToAction: itemCallToActionSchema.optional()
|
|
6332
6306
|
});
|
|
6333
|
-
var searchResponseBodySchema = z.object({
|
|
6334
|
-
results: z.array(searchResultSchema)
|
|
6335
|
-
});
|
|
6336
6307
|
var blobSchemaSchema = z.object({
|
|
6337
6308
|
type: z.literal("blob"),
|
|
6338
6309
|
promoted: z.boolean().optional(),
|
|
@@ -6371,6 +6342,34 @@ var constSchemaSchema = z.object({
|
|
|
6371
6342
|
analyticsId: z.string().optional(),
|
|
6372
6343
|
disabled: z.boolean().optional()
|
|
6373
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
|
+
});
|
|
6374
6373
|
var statusListLayoutSchema = z.object({
|
|
6375
6374
|
type: z.literal("status-list"),
|
|
6376
6375
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -6378,6 +6377,19 @@ var statusListLayoutSchema = z.object({
|
|
|
6378
6377
|
control: z.string().optional(),
|
|
6379
6378
|
margin: sizeSchema.optional()
|
|
6380
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
|
+
);
|
|
6381
6393
|
var layoutSchema = z.lazy(
|
|
6382
6394
|
() => z.union([
|
|
6383
6395
|
alertLayoutSchema,
|
|
@@ -6401,26 +6413,6 @@ var layoutSchema = z.lazy(
|
|
|
6401
6413
|
statusListLayoutSchema
|
|
6402
6414
|
])
|
|
6403
6415
|
);
|
|
6404
|
-
var boxLayoutSchema = z.lazy(
|
|
6405
|
-
() => z.object({
|
|
6406
|
-
type: z.literal("box"),
|
|
6407
|
-
components: z.array(layoutSchema),
|
|
6408
|
-
width: sizeSchema.optional(),
|
|
6409
|
-
border: z.boolean().optional(),
|
|
6410
|
-
control: z.string().optional(),
|
|
6411
|
-
margin: sizeSchema.optional()
|
|
6412
|
-
})
|
|
6413
|
-
);
|
|
6414
|
-
var columnsLayoutSchema = z.lazy(
|
|
6415
|
-
() => z.object({
|
|
6416
|
-
type: z.literal("columns"),
|
|
6417
|
-
left: z.array(layoutSchema),
|
|
6418
|
-
right: z.array(layoutSchema),
|
|
6419
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6420
|
-
control: z.string().optional(),
|
|
6421
|
-
margin: sizeSchema.optional()
|
|
6422
|
-
})
|
|
6423
|
-
);
|
|
6424
6416
|
var modalLayoutSchema = z.lazy(
|
|
6425
6417
|
() => z.object({
|
|
6426
6418
|
type: z.literal("modal"),
|
|
@@ -6436,25 +6428,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6436
6428
|
components: z.array(layoutSchema)
|
|
6437
6429
|
})
|
|
6438
6430
|
);
|
|
6439
|
-
var
|
|
6431
|
+
var boxLayoutSchema = z.lazy(
|
|
6440
6432
|
() => z.object({
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
schemas: z.array(schemaSchema),
|
|
6448
|
-
layout: z.array(layoutSchema),
|
|
6449
|
-
description: z.string().optional(),
|
|
6450
|
-
model: jsonElementSchema.optional(),
|
|
6451
|
-
external: externalSchema.optional(),
|
|
6452
|
-
polling: pollingSchema.optional(),
|
|
6453
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6454
|
-
analytics: z.record(z.string()).optional(),
|
|
6455
|
-
errors: stepErrorSchema.optional(),
|
|
6456
|
-
navigation: navigationSchema.optional(),
|
|
6457
|
-
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()
|
|
6458
6439
|
})
|
|
6459
6440
|
);
|
|
6460
6441
|
var schemaSchema = z.lazy(
|
|
@@ -6680,17 +6661,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6680
6661
|
help: helpSchema.optional()
|
|
6681
6662
|
})
|
|
6682
6663
|
);
|
|
6683
|
-
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(
|
|
6684
6674
|
() => z.object({
|
|
6685
6675
|
type: z.literal("array"),
|
|
6686
6676
|
promoted: z.boolean().optional(),
|
|
6687
6677
|
$id: z.string().optional(),
|
|
6688
|
-
items: schemaSchema,
|
|
6689
|
-
addItemTitle: z.string(),
|
|
6690
|
-
editItemTitle: z.string(),
|
|
6691
|
-
minItems: z.number().optional(),
|
|
6692
|
-
maxItems: z.number().optional(),
|
|
6693
|
-
placeholder: z.string().optional(),
|
|
6678
|
+
items: z.array(schemaSchema),
|
|
6694
6679
|
title: z.string().optional(),
|
|
6695
6680
|
description: z.string().optional(),
|
|
6696
6681
|
control: z.string().optional(),
|
|
@@ -6698,30 +6683,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6698
6683
|
icon: iconSchema.optional(),
|
|
6699
6684
|
image: imageSchema.optional(),
|
|
6700
6685
|
keywords: z.array(z.string()).optional(),
|
|
6701
|
-
summary:
|
|
6686
|
+
summary: summaryProviderSchema.optional(),
|
|
6702
6687
|
analyticsId: z.string().optional(),
|
|
6703
6688
|
persistAsync: persistAsyncSchema.optional(),
|
|
6704
6689
|
validationAsync: validateAsyncSchema.optional(),
|
|
6705
|
-
alert: alertLayoutSchema.optional()
|
|
6706
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6707
|
-
disabled: z.boolean().optional()
|
|
6708
|
-
})
|
|
6709
|
-
);
|
|
6710
|
-
var persistAsyncSchema = z.lazy(
|
|
6711
|
-
() => z.object({
|
|
6712
|
-
param: z.string(),
|
|
6713
|
-
idProperty: z.string(),
|
|
6714
|
-
schema: schemaSchema,
|
|
6715
|
-
url: z.string(),
|
|
6716
|
-
method: httpMethodSchema
|
|
6690
|
+
alert: alertLayoutSchema.optional()
|
|
6717
6691
|
})
|
|
6718
6692
|
);
|
|
6719
|
-
var
|
|
6693
|
+
var arraySchemaListSchema = z.lazy(
|
|
6720
6694
|
() => z.object({
|
|
6721
6695
|
type: z.literal("array"),
|
|
6722
6696
|
promoted: z.boolean().optional(),
|
|
6723
6697
|
$id: z.string().optional(),
|
|
6724
|
-
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(),
|
|
6725
6704
|
title: z.string().optional(),
|
|
6726
6705
|
description: z.string().optional(),
|
|
6727
6706
|
control: z.string().optional(),
|
|
@@ -6729,11 +6708,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6729
6708
|
icon: iconSchema.optional(),
|
|
6730
6709
|
image: imageSchema.optional(),
|
|
6731
6710
|
keywords: z.array(z.string()).optional(),
|
|
6732
|
-
summary:
|
|
6711
|
+
summary: summarySummariserSchema.optional(),
|
|
6733
6712
|
analyticsId: z.string().optional(),
|
|
6734
6713
|
persistAsync: persistAsyncSchema.optional(),
|
|
6735
6714
|
validationAsync: validateAsyncSchema.optional(),
|
|
6736
|
-
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()
|
|
6737
6739
|
})
|
|
6738
6740
|
);
|
|
6739
6741
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -11606,8 +11608,8 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
11606
11608
|
// ../renderers/src/DecisionRenderer.tsx
|
|
11607
11609
|
var import_components9 = require("@transferwise/components");
|
|
11608
11610
|
|
|
11609
|
-
// ../../node_modules/.pnpm/@wise+art@2.16.
|
|
11610
|
-
|
|
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();
|
|
11611
11613
|
init_clsx();
|
|
11612
11614
|
var import_react8 = require("react");
|
|
11613
11615
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
@@ -15277,9 +15279,11 @@ var DynamicExternal = ({ component, onAction }) => {
|
|
|
15277
15279
|
(0, import_react32.useEffect)(() => {
|
|
15278
15280
|
openExternalUrl();
|
|
15279
15281
|
}, [openExternalUrl]);
|
|
15280
|
-
const pollingConfiguration =
|
|
15281
|
-
responseHandlers
|
|
15282
|
-
|
|
15282
|
+
const pollingConfiguration = (0, import_react32.useMemo)(() => {
|
|
15283
|
+
return polling && responseHandlers ? __spreadProps(__spreadValues({}, polling), {
|
|
15284
|
+
responseHandlers
|
|
15285
|
+
}) : void 0;
|
|
15286
|
+
}, [polling, responseHandlers]);
|
|
15283
15287
|
useExternalStepPolling(pollingConfiguration, onAction);
|
|
15284
15288
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
15285
15289
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components45.Loader, { size: import_components45.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
|