@wise/dynamic-flow-client 3.19.1-experimental-6810eca → 3.19.2
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 +288 -288
- package/build/main.min.js +1 -1
- package/build/main.mjs +288 -288
- package/package.json +4 -4
package/build/main.js
CHANGED
|
@@ -5851,13 +5851,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5851
5851
|
quotelessJson,
|
|
5852
5852
|
ZodError
|
|
5853
5853
|
});
|
|
5854
|
-
var
|
|
5855
|
-
z.
|
|
5856
|
-
z.
|
|
5857
|
-
z.
|
|
5858
|
-
|
|
5859
|
-
|
|
5854
|
+
var imageSchema = z.object({
|
|
5855
|
+
text: z.string().optional(),
|
|
5856
|
+
url: z.string(),
|
|
5857
|
+
accessibilityDescription: z.string().optional()
|
|
5858
|
+
});
|
|
5859
|
+
var httpMethodSchema = z.union([
|
|
5860
|
+
z.literal("GET"),
|
|
5861
|
+
z.literal("POST"),
|
|
5862
|
+
z.literal("PUT"),
|
|
5863
|
+
z.literal("PATCH"),
|
|
5864
|
+
z.literal("DELETE")
|
|
5860
5865
|
]);
|
|
5866
|
+
var iconNamedSchema = z.object({
|
|
5867
|
+
name: z.string()
|
|
5868
|
+
});
|
|
5861
5869
|
var contextSchema = z.union([
|
|
5862
5870
|
z.literal("positive"),
|
|
5863
5871
|
z.literal("neutral"),
|
|
@@ -5868,107 +5876,18 @@ var contextSchema = z.union([
|
|
|
5868
5876
|
z.literal("info"),
|
|
5869
5877
|
z.literal("primary")
|
|
5870
5878
|
]);
|
|
5871
|
-
var
|
|
5872
|
-
z.
|
|
5873
|
-
z.literal("left"),
|
|
5874
|
-
z.literal("right")
|
|
5875
|
-
]);
|
|
5876
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5877
|
-
z.literal("not-done"),
|
|
5878
|
-
z.literal("pending"),
|
|
5879
|
-
z.literal("done")
|
|
5880
|
-
]);
|
|
5881
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5882
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5883
|
-
$ref: z.string()
|
|
5884
|
-
});
|
|
5885
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5886
|
-
title: z.string()
|
|
5887
|
-
});
|
|
5888
|
-
var httpMethodSchema = z.union([
|
|
5889
|
-
z.literal("GET"),
|
|
5890
|
-
z.literal("POST"),
|
|
5891
|
-
z.literal("PUT"),
|
|
5892
|
-
z.literal("PATCH"),
|
|
5893
|
-
z.literal("DELETE")
|
|
5894
|
-
]);
|
|
5895
|
-
var dividerLayoutSchema = z.object({
|
|
5896
|
-
type: z.literal("divider"),
|
|
5897
|
-
control: z.string().optional(),
|
|
5898
|
-
margin: sizeSchema.optional()
|
|
5879
|
+
var iconTextSchema = z.object({
|
|
5880
|
+
text: z.string()
|
|
5899
5881
|
});
|
|
5900
|
-
var
|
|
5901
|
-
z.literal("
|
|
5902
|
-
z.literal("
|
|
5903
|
-
z.literal("
|
|
5882
|
+
var sizeSchema = z.union([
|
|
5883
|
+
z.literal("xs"),
|
|
5884
|
+
z.literal("sm"),
|
|
5885
|
+
z.literal("md"),
|
|
5886
|
+
z.literal("lg"),
|
|
5887
|
+
z.literal("xl")
|
|
5904
5888
|
]);
|
|
5905
|
-
var
|
|
5906
|
-
|
|
5907
|
-
text: z.string(),
|
|
5908
|
-
size: sizeSchema.optional(),
|
|
5909
|
-
align: alignSchema.optional(),
|
|
5910
|
-
control: z.string().optional(),
|
|
5911
|
-
margin: sizeSchema.optional()
|
|
5912
|
-
});
|
|
5913
|
-
var formLayoutSchema = z.object({
|
|
5914
|
-
type: z.literal("form"),
|
|
5915
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5916
|
-
schemaId: z.string(),
|
|
5917
|
-
control: z.string().optional(),
|
|
5918
|
-
margin: sizeSchema.optional()
|
|
5919
|
-
});
|
|
5920
|
-
var imageLayoutSchema = z.object({
|
|
5921
|
-
type: z.literal("image"),
|
|
5922
|
-
text: z.string().optional(),
|
|
5923
|
-
url: z.string(),
|
|
5924
|
-
size: sizeSchema.optional(),
|
|
5925
|
-
accessibilityDescription: z.string().optional(),
|
|
5926
|
-
control: z.string().optional(),
|
|
5927
|
-
margin: sizeSchema.optional()
|
|
5928
|
-
});
|
|
5929
|
-
var infoLayoutSchema = z.object({
|
|
5930
|
-
type: z.literal("info"),
|
|
5931
|
-
markdown: z.string(),
|
|
5932
|
-
align: alignSchema.optional(),
|
|
5933
|
-
control: z.string().optional(),
|
|
5934
|
-
margin: sizeSchema.optional()
|
|
5935
|
-
});
|
|
5936
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
5937
|
-
type: z.literal("loading-indicator"),
|
|
5938
|
-
size: sizeSchema.optional(),
|
|
5939
|
-
control: z.string().optional(),
|
|
5940
|
-
margin: sizeSchema.optional()
|
|
5941
|
-
});
|
|
5942
|
-
var paragraphLayoutSchema = z.object({
|
|
5943
|
-
type: z.literal("paragraph"),
|
|
5944
|
-
text: z.string(),
|
|
5945
|
-
align: alignSchema.optional(),
|
|
5946
|
-
control: z.string().optional(),
|
|
5947
|
-
margin: sizeSchema.optional()
|
|
5948
|
-
});
|
|
5949
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5950
|
-
text: z.string(),
|
|
5951
|
-
context: contextSchema
|
|
5952
|
-
});
|
|
5953
|
-
var helpSchema = z.object({
|
|
5954
|
-
markdown: z.string()
|
|
5955
|
-
});
|
|
5956
|
-
var imageSchema = z.object({
|
|
5957
|
-
text: z.string().optional(),
|
|
5958
|
-
url: z.string(),
|
|
5959
|
-
accessibilityDescription: z.string().optional()
|
|
5960
|
-
});
|
|
5961
|
-
var summaryProviderSchema = z.object({
|
|
5962
|
-
providesTitle: z.boolean().optional(),
|
|
5963
|
-
providesDescription: z.boolean().optional(),
|
|
5964
|
-
providesIcon: z.boolean().optional(),
|
|
5965
|
-
providesImage: z.boolean().optional()
|
|
5966
|
-
});
|
|
5967
|
-
var validateAsyncSchema = z.object({
|
|
5968
|
-
param: z.string(),
|
|
5969
|
-
method: httpMethodSchema,
|
|
5970
|
-
url: z.string()
|
|
5971
|
-
});
|
|
5889
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5890
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5972
5891
|
var autocompleteTokenSchema = z.union([
|
|
5973
5892
|
z.literal("on"),
|
|
5974
5893
|
z.literal("name"),
|
|
@@ -6034,14 +5953,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
6034
5953
|
z.literal("fax"),
|
|
6035
5954
|
z.literal("pager")
|
|
6036
5955
|
]);
|
|
6037
|
-
var
|
|
6038
|
-
z.literal("
|
|
6039
|
-
|
|
6040
|
-
z.
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
5956
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5957
|
+
type: z.literal("loading-indicator"),
|
|
5958
|
+
size: sizeSchema.optional(),
|
|
5959
|
+
control: z.string().optional(),
|
|
5960
|
+
margin: sizeSchema.optional()
|
|
5961
|
+
});
|
|
5962
|
+
var paragraphLayoutSchema = z.object({
|
|
5963
|
+
type: z.literal("paragraph"),
|
|
5964
|
+
text: z.string(),
|
|
5965
|
+
align: alignSchema.optional(),
|
|
5966
|
+
control: z.string().optional(),
|
|
5967
|
+
margin: sizeSchema.optional()
|
|
5968
|
+
});
|
|
5969
|
+
var dividerLayoutSchema = z.object({
|
|
5970
|
+
type: z.literal("divider"),
|
|
5971
|
+
control: z.string().optional(),
|
|
5972
|
+
margin: sizeSchema.optional()
|
|
5973
|
+
});
|
|
5974
|
+
var listLayoutStatusSchema = z.union([
|
|
5975
|
+
z.literal("warning"),
|
|
5976
|
+
z.literal("neutral"),
|
|
5977
|
+
z.literal("positive")
|
|
5978
|
+
]);
|
|
5979
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5980
|
+
$ref: z.string()
|
|
5981
|
+
});
|
|
5982
|
+
var imageLayoutSchema = z.object({
|
|
5983
|
+
type: z.literal("image"),
|
|
5984
|
+
text: z.string().optional(),
|
|
5985
|
+
url: z.string(),
|
|
5986
|
+
size: sizeSchema.optional(),
|
|
5987
|
+
accessibilityDescription: z.string().optional(),
|
|
5988
|
+
control: z.string().optional(),
|
|
5989
|
+
margin: sizeSchema.optional()
|
|
5990
|
+
});
|
|
5991
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5992
|
+
z.literal("not-done"),
|
|
5993
|
+
z.literal("pending"),
|
|
5994
|
+
z.literal("done")
|
|
5995
|
+
]);
|
|
5996
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5997
|
+
text: z.string(),
|
|
5998
|
+
context: contextSchema
|
|
5999
|
+
});
|
|
6000
|
+
var modalLayoutTriggerSchema = z.object({
|
|
6001
|
+
title: z.string()
|
|
6002
|
+
});
|
|
6003
|
+
var searchLayoutSchema = z.object({
|
|
6004
|
+
type: z.literal("search"),
|
|
6005
|
+
title: z.string(),
|
|
6006
|
+
method: httpMethodSchema,
|
|
6007
|
+
url: z.string(),
|
|
6008
|
+
param: z.string(),
|
|
6009
|
+
emptyMessage: z.string().optional(),
|
|
6010
|
+
control: z.string().optional(),
|
|
6011
|
+
margin: sizeSchema.optional()
|
|
6012
|
+
});
|
|
6013
|
+
var infoLayoutSchema = z.object({
|
|
6014
|
+
type: z.literal("info"),
|
|
6015
|
+
markdown: z.string(),
|
|
6016
|
+
align: alignSchema.optional(),
|
|
6017
|
+
control: z.string().optional(),
|
|
6018
|
+
margin: sizeSchema.optional()
|
|
6019
|
+
});
|
|
6020
|
+
var formLayoutSchema = z.object({
|
|
6021
|
+
type: z.literal("form"),
|
|
6022
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
6023
|
+
schemaId: z.string(),
|
|
6024
|
+
control: z.string().optional(),
|
|
6025
|
+
margin: sizeSchema.optional()
|
|
6026
|
+
});
|
|
6027
|
+
var headingLayoutSchema = z.object({
|
|
6028
|
+
type: z.literal("heading"),
|
|
6029
|
+
text: z.string(),
|
|
6030
|
+
size: sizeSchema.optional(),
|
|
6031
|
+
align: alignSchema.optional(),
|
|
6032
|
+
control: z.string().optional(),
|
|
6033
|
+
margin: sizeSchema.optional()
|
|
6034
|
+
});
|
|
6035
|
+
var markdownLayoutSchema = z.object({
|
|
6036
|
+
type: z.literal("markdown"),
|
|
6037
|
+
content: z.string(),
|
|
6038
|
+
align: alignSchema.optional(),
|
|
6039
|
+
control: z.string().optional(),
|
|
6040
|
+
margin: sizeSchema.optional()
|
|
6041
|
+
});
|
|
6042
|
+
var columnsLayoutBiasSchema = z.union([
|
|
6043
|
+
z.literal("none"),
|
|
6044
|
+
z.literal("left"),
|
|
6045
|
+
z.literal("right")
|
|
6044
6046
|
]);
|
|
6047
|
+
var helpSchema = z.object({
|
|
6048
|
+
markdown: z.string()
|
|
6049
|
+
});
|
|
6050
|
+
var searchSearchRequestSchema = z.object({
|
|
6051
|
+
url: z.string(),
|
|
6052
|
+
method: httpMethodSchema,
|
|
6053
|
+
param: z.string(),
|
|
6054
|
+
query: z.string()
|
|
6055
|
+
});
|
|
6045
6056
|
var jsonElementSchema = z.lazy(
|
|
6046
6057
|
() => z.union([
|
|
6047
6058
|
z.string(),
|
|
@@ -6051,7 +6062,6 @@ var jsonElementSchema = z.lazy(
|
|
|
6051
6062
|
z.array(jsonElementSchema)
|
|
6052
6063
|
]).nullable()
|
|
6053
6064
|
);
|
|
6054
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6055
6065
|
var externalSchema = z.object({
|
|
6056
6066
|
url: z.string()
|
|
6057
6067
|
});
|
|
@@ -6059,28 +6069,42 @@ var stepErrorSchema = z.object({
|
|
|
6059
6069
|
error: z.string().optional(),
|
|
6060
6070
|
validation: jsonElementSchema.optional()
|
|
6061
6071
|
});
|
|
6062
|
-
var
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6072
|
+
var stringSchemaFormatSchema = z.union([
|
|
6073
|
+
z.literal("date"),
|
|
6074
|
+
z.literal("email"),
|
|
6075
|
+
z.literal("numeric"),
|
|
6076
|
+
z.literal("password"),
|
|
6077
|
+
z.literal("phone-number"),
|
|
6078
|
+
z.literal("base64url")
|
|
6079
|
+
]);
|
|
6080
|
+
var summarySummariserSchema = z.object({
|
|
6081
|
+
defaultTitle: z.string().optional(),
|
|
6082
|
+
defaultDescription: z.string().optional(),
|
|
6083
|
+
defaultIcon: iconSchema.optional(),
|
|
6084
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6085
|
+
providesTitle: z.boolean().optional(),
|
|
6086
|
+
providesDescription: z.boolean().optional(),
|
|
6087
|
+
providesIcon: z.boolean().optional(),
|
|
6088
|
+
providesImage: z.boolean().optional()
|
|
6068
6089
|
});
|
|
6069
|
-
var
|
|
6070
|
-
url: z.string(),
|
|
6071
|
-
method: httpMethodSchema,
|
|
6090
|
+
var validateAsyncSchema = z.object({
|
|
6072
6091
|
param: z.string(),
|
|
6073
|
-
|
|
6092
|
+
method: httpMethodSchema,
|
|
6093
|
+
url: z.string()
|
|
6074
6094
|
});
|
|
6095
|
+
var summaryProviderSchema = z.object({
|
|
6096
|
+
providesTitle: z.boolean().optional(),
|
|
6097
|
+
providesDescription: z.boolean().optional(),
|
|
6098
|
+
providesIcon: z.boolean().optional(),
|
|
6099
|
+
providesImage: z.boolean().optional()
|
|
6100
|
+
});
|
|
6101
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6075
6102
|
var navigationStackBehaviorSchema = z.union([
|
|
6076
6103
|
z.literal("default"),
|
|
6077
6104
|
z.literal("remove-previous"),
|
|
6078
6105
|
z.literal("remove-all"),
|
|
6079
6106
|
z.literal("replace-current")
|
|
6080
6107
|
]);
|
|
6081
|
-
var linkSchema = z.object({
|
|
6082
|
-
url: z.string()
|
|
6083
|
-
});
|
|
6084
6108
|
var actionTypeSchema = z.union([
|
|
6085
6109
|
z.literal("primary"),
|
|
6086
6110
|
z.literal("secondary"),
|
|
@@ -6088,11 +6112,9 @@ var actionTypeSchema = z.union([
|
|
|
6088
6112
|
z.literal("positive"),
|
|
6089
6113
|
z.literal("negative")
|
|
6090
6114
|
]);
|
|
6091
|
-
var
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
var iconTextSchema = z.object({
|
|
6095
|
-
text: z.string()
|
|
6115
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6116
|
+
var linkSchema = z.object({
|
|
6117
|
+
url: z.string()
|
|
6096
6118
|
});
|
|
6097
6119
|
var actionSchema = z.object({
|
|
6098
6120
|
title: z.string().optional(),
|
|
@@ -6109,26 +6131,25 @@ var actionSchema = z.object({
|
|
|
6109
6131
|
timeout: z.number().optional(),
|
|
6110
6132
|
skipValidation: z.boolean().optional()
|
|
6111
6133
|
});
|
|
6112
|
-
var
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
margin: sizeSchema.optional()
|
|
6134
|
+
var listLayoutItemSchema = z.object({
|
|
6135
|
+
title: z.string(),
|
|
6136
|
+
description: z.string().optional(),
|
|
6137
|
+
icon: iconSchema,
|
|
6138
|
+
status: listLayoutStatusSchema.optional()
|
|
6118
6139
|
});
|
|
6119
|
-
var
|
|
6120
|
-
|
|
6140
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6141
|
+
action: actionSchema,
|
|
6121
6142
|
title: z.string(),
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
control: z.string().optional(),
|
|
6127
|
-
margin: sizeSchema.optional()
|
|
6143
|
+
description: z.string().optional(),
|
|
6144
|
+
disabled: z.boolean().optional(),
|
|
6145
|
+
icon: iconSchema.optional(),
|
|
6146
|
+
image: imageLayoutSchema.optional()
|
|
6128
6147
|
});
|
|
6129
|
-
var
|
|
6148
|
+
var statusListLayoutItemSchema = z.object({
|
|
6130
6149
|
title: z.string(),
|
|
6131
|
-
|
|
6150
|
+
description: z.string().optional(),
|
|
6151
|
+
icon: iconSchema,
|
|
6152
|
+
status: statusListLayoutStatusSchema.optional()
|
|
6132
6153
|
});
|
|
6133
6154
|
var instructionsLayoutSchema = z.object({
|
|
6134
6155
|
type: z.literal("instructions"),
|
|
@@ -6137,39 +6158,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
6137
6158
|
control: z.string().optional(),
|
|
6138
6159
|
margin: sizeSchema.optional()
|
|
6139
6160
|
});
|
|
6140
|
-
var
|
|
6161
|
+
var buttonLayoutSchema = z.object({
|
|
6162
|
+
type: z.literal("button"),
|
|
6163
|
+
size: sizeSchema.optional(),
|
|
6164
|
+
title: z.string().optional(),
|
|
6165
|
+
action: actionSchema,
|
|
6166
|
+
context: contextSchema.optional(),
|
|
6167
|
+
disabled: z.boolean().optional(),
|
|
6168
|
+
pinOrder: z.number().optional(),
|
|
6169
|
+
control: z.string().optional(),
|
|
6170
|
+
margin: sizeSchema.optional()
|
|
6171
|
+
});
|
|
6141
6172
|
var reviewLayoutFieldSchema = z.object({
|
|
6142
6173
|
label: z.string(),
|
|
6143
6174
|
value: z.string(),
|
|
6144
6175
|
help: helpSchema.optional()
|
|
6145
6176
|
});
|
|
6146
|
-
var statusListLayoutItemSchema = z.object({
|
|
6147
|
-
title: z.string(),
|
|
6148
|
-
description: z.string().optional(),
|
|
6149
|
-
icon: iconSchema,
|
|
6150
|
-
status: statusListLayoutStatusSchema.optional()
|
|
6151
|
-
});
|
|
6152
6177
|
var behaviorSchema = z.object({
|
|
6153
6178
|
action: actionSchema.optional(),
|
|
6154
6179
|
link: linkSchema.optional()
|
|
6155
6180
|
});
|
|
6156
|
-
var summarySummariserSchema = z.object({
|
|
6157
|
-
defaultTitle: z.string().optional(),
|
|
6158
|
-
defaultDescription: z.string().optional(),
|
|
6159
|
-
defaultIcon: iconSchema.optional(),
|
|
6160
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
6161
|
-
providesTitle: z.boolean().optional(),
|
|
6162
|
-
providesDescription: z.boolean().optional(),
|
|
6163
|
-
providesIcon: z.boolean().optional(),
|
|
6164
|
-
providesImage: z.boolean().optional()
|
|
6165
|
-
});
|
|
6166
|
-
var linkHandlerSchema = z.object({
|
|
6167
|
-
regexPattern: z.string(),
|
|
6168
|
-
action: actionSchema
|
|
6169
|
-
});
|
|
6170
|
-
var actionResponseBodySchema = z.object({
|
|
6171
|
-
action: actionSchema
|
|
6172
|
-
});
|
|
6173
6181
|
var searchResultSearchSchema = z.object({
|
|
6174
6182
|
type: z.literal("search"),
|
|
6175
6183
|
title: z.string(),
|
|
@@ -6186,6 +6194,20 @@ var searchResultActionSchema = z.object({
|
|
|
6186
6194
|
image: imageLayoutSchema.optional(),
|
|
6187
6195
|
value: actionSchema
|
|
6188
6196
|
});
|
|
6197
|
+
var actionResponseBodySchema = z.object({
|
|
6198
|
+
action: actionSchema
|
|
6199
|
+
});
|
|
6200
|
+
var errorResponseBodySchema = z.object({
|
|
6201
|
+
refreshFormUrl: z.string().optional(),
|
|
6202
|
+
analytics: z.record(z.string()).optional(),
|
|
6203
|
+
error: z.string().optional(),
|
|
6204
|
+
validation: jsonElementSchema.optional(),
|
|
6205
|
+
refreshUrl: z.string().optional()
|
|
6206
|
+
});
|
|
6207
|
+
var linkHandlerSchema = z.object({
|
|
6208
|
+
regexPattern: z.string(),
|
|
6209
|
+
action: actionSchema
|
|
6210
|
+
});
|
|
6189
6211
|
var pollingOnErrorSchema = z.object({
|
|
6190
6212
|
action: actionSchema
|
|
6191
6213
|
});
|
|
@@ -6193,33 +6215,26 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6193
6215
|
title: z.string().optional(),
|
|
6194
6216
|
action: actionSchema
|
|
6195
6217
|
});
|
|
6196
|
-
var
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6218
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6219
|
+
title: z.string(),
|
|
6220
|
+
action: actionSchema
|
|
6221
|
+
});
|
|
6222
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6223
|
+
title: z.string(),
|
|
6224
|
+
accessibilityDescription: z.string().optional(),
|
|
6225
|
+
behavior: behaviorSchema
|
|
6226
|
+
});
|
|
6227
|
+
var listLayoutSchema = z.object({
|
|
6228
|
+
type: z.literal("list"),
|
|
6229
|
+
items: z.array(listLayoutItemSchema),
|
|
6200
6230
|
title: z.string().optional(),
|
|
6201
|
-
action: actionSchema,
|
|
6202
|
-
context: contextSchema.optional(),
|
|
6203
|
-
disabled: z.boolean().optional(),
|
|
6204
|
-
pinOrder: z.number().optional(),
|
|
6205
6231
|
control: z.string().optional(),
|
|
6206
6232
|
margin: sizeSchema.optional()
|
|
6207
6233
|
});
|
|
6208
|
-
var
|
|
6209
|
-
|
|
6210
|
-
title: z.string(),
|
|
6211
|
-
description: z.string().optional(),
|
|
6212
|
-
disabled: z.boolean().optional(),
|
|
6213
|
-
icon: iconSchema.optional(),
|
|
6214
|
-
image: imageLayoutSchema.optional()
|
|
6215
|
-
});
|
|
6216
|
-
var reviewLayoutSchema = z.object({
|
|
6217
|
-
type: z.literal("review"),
|
|
6218
|
-
orientation: z.string().optional(),
|
|
6219
|
-
action: actionSchema.optional(),
|
|
6220
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
6234
|
+
var decisionLayoutSchema = z.object({
|
|
6235
|
+
type: z.literal("decision"),
|
|
6221
6236
|
title: z.string().optional(),
|
|
6222
|
-
|
|
6237
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6223
6238
|
control: z.string().optional(),
|
|
6224
6239
|
margin: sizeSchema.optional()
|
|
6225
6240
|
});
|
|
@@ -6230,17 +6245,17 @@ var statusListLayoutSchema = z.object({
|
|
|
6230
6245
|
control: z.string().optional(),
|
|
6231
6246
|
margin: sizeSchema.optional()
|
|
6232
6247
|
});
|
|
6233
|
-
var
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
behavior: behaviorSchema
|
|
6248
|
+
var reviewLayoutSchema = z.object({
|
|
6249
|
+
type: z.literal("review"),
|
|
6250
|
+
orientation: z.string().optional(),
|
|
6251
|
+
action: actionSchema.optional(),
|
|
6252
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
6253
|
+
title: z.string().optional(),
|
|
6254
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
6255
|
+
control: z.string().optional(),
|
|
6256
|
+
margin: sizeSchema.optional()
|
|
6243
6257
|
});
|
|
6258
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6244
6259
|
var pollingSchema = z.object({
|
|
6245
6260
|
url: z.string(),
|
|
6246
6261
|
interval: z.number().optional(),
|
|
@@ -6254,14 +6269,6 @@ var navigationSchema = z.object({
|
|
|
6254
6269
|
back: navigationBackBehaviorSchema.optional(),
|
|
6255
6270
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6256
6271
|
});
|
|
6257
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6258
|
-
var decisionLayoutSchema = z.object({
|
|
6259
|
-
type: z.literal("decision"),
|
|
6260
|
-
title: z.string().optional(),
|
|
6261
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
6262
|
-
control: z.string().optional(),
|
|
6263
|
-
margin: sizeSchema.optional()
|
|
6264
|
-
});
|
|
6265
6272
|
var alertLayoutSchema = z.object({
|
|
6266
6273
|
type: z.literal("alert"),
|
|
6267
6274
|
markdown: z.string(),
|
|
@@ -6270,12 +6277,8 @@ var alertLayoutSchema = z.object({
|
|
|
6270
6277
|
margin: sizeSchema.optional(),
|
|
6271
6278
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6272
6279
|
});
|
|
6273
|
-
var
|
|
6274
|
-
|
|
6275
|
-
items: z.array(listLayoutItemSchema),
|
|
6276
|
-
title: z.string().optional(),
|
|
6277
|
-
control: z.string().optional(),
|
|
6278
|
-
margin: sizeSchema.optional()
|
|
6280
|
+
var searchResponseBodySchema = z.object({
|
|
6281
|
+
results: z.array(searchResultSchema)
|
|
6279
6282
|
});
|
|
6280
6283
|
var blobSchemaSchema = z.object({
|
|
6281
6284
|
type: z.literal("blob"),
|
|
@@ -6315,19 +6318,6 @@ var constSchemaSchema = z.object({
|
|
|
6315
6318
|
analyticsId: z.string().optional(),
|
|
6316
6319
|
disabled: z.boolean().optional()
|
|
6317
6320
|
});
|
|
6318
|
-
var searchResponseBodySchema = z.object({
|
|
6319
|
-
results: z.array(searchResultSchema)
|
|
6320
|
-
});
|
|
6321
|
-
var columnsLayoutSchema = z.lazy(
|
|
6322
|
-
() => z.object({
|
|
6323
|
-
type: z.literal("columns"),
|
|
6324
|
-
left: z.array(layoutSchema),
|
|
6325
|
-
right: z.array(layoutSchema),
|
|
6326
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6327
|
-
control: z.string().optional(),
|
|
6328
|
-
margin: sizeSchema.optional()
|
|
6329
|
-
})
|
|
6330
|
-
);
|
|
6331
6321
|
var layoutSchema = z.lazy(
|
|
6332
6322
|
() => z.union([
|
|
6333
6323
|
alertLayoutSchema,
|
|
@@ -6351,6 +6341,26 @@ var layoutSchema = z.lazy(
|
|
|
6351
6341
|
statusListLayoutSchema
|
|
6352
6342
|
])
|
|
6353
6343
|
);
|
|
6344
|
+
var boxLayoutSchema = z.lazy(
|
|
6345
|
+
() => z.object({
|
|
6346
|
+
type: z.literal("box"),
|
|
6347
|
+
components: z.array(layoutSchema),
|
|
6348
|
+
width: sizeSchema.optional(),
|
|
6349
|
+
border: z.boolean().optional(),
|
|
6350
|
+
control: z.string().optional(),
|
|
6351
|
+
margin: sizeSchema.optional()
|
|
6352
|
+
})
|
|
6353
|
+
);
|
|
6354
|
+
var columnsLayoutSchema = z.lazy(
|
|
6355
|
+
() => z.object({
|
|
6356
|
+
type: z.literal("columns"),
|
|
6357
|
+
left: z.array(layoutSchema),
|
|
6358
|
+
right: z.array(layoutSchema),
|
|
6359
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6360
|
+
control: z.string().optional(),
|
|
6361
|
+
margin: sizeSchema.optional()
|
|
6362
|
+
})
|
|
6363
|
+
);
|
|
6354
6364
|
var modalLayoutSchema = z.lazy(
|
|
6355
6365
|
() => z.object({
|
|
6356
6366
|
type: z.literal("modal"),
|
|
@@ -6366,14 +6376,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6366
6376
|
components: z.array(layoutSchema)
|
|
6367
6377
|
})
|
|
6368
6378
|
);
|
|
6369
|
-
var
|
|
6379
|
+
var stepSchema = z.lazy(
|
|
6370
6380
|
() => z.object({
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6381
|
+
key: z.string().optional(),
|
|
6382
|
+
type: z.string().optional(),
|
|
6383
|
+
actions: z.array(actionSchema).optional(),
|
|
6384
|
+
refreshFormUrl: z.string().optional(),
|
|
6385
|
+
id: z.string(),
|
|
6386
|
+
title: z.string(),
|
|
6387
|
+
schemas: z.array(schemaSchema),
|
|
6388
|
+
layout: z.array(layoutSchema),
|
|
6389
|
+
description: z.string().optional(),
|
|
6390
|
+
model: jsonElementSchema.optional(),
|
|
6391
|
+
external: externalSchema.optional(),
|
|
6392
|
+
polling: pollingSchema.optional(),
|
|
6393
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6394
|
+
analytics: z.record(z.string()).optional(),
|
|
6395
|
+
errors: stepErrorSchema.optional(),
|
|
6396
|
+
navigation: navigationSchema.optional(),
|
|
6397
|
+
refreshUrl: z.string().optional()
|
|
6377
6398
|
})
|
|
6378
6399
|
);
|
|
6379
6400
|
var schemaSchema = z.lazy(
|
|
@@ -6599,21 +6620,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
6599
6620
|
help: helpSchema.optional()
|
|
6600
6621
|
})
|
|
6601
6622
|
);
|
|
6602
|
-
var
|
|
6603
|
-
() => z.object({
|
|
6604
|
-
param: z.string(),
|
|
6605
|
-
idProperty: z.string(),
|
|
6606
|
-
schema: schemaSchema,
|
|
6607
|
-
url: z.string(),
|
|
6608
|
-
method: httpMethodSchema
|
|
6609
|
-
})
|
|
6610
|
-
);
|
|
6611
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
6623
|
+
var arraySchemaListSchema = z.lazy(
|
|
6612
6624
|
() => z.object({
|
|
6613
6625
|
type: z.literal("array"),
|
|
6614
6626
|
promoted: z.boolean().optional(),
|
|
6615
6627
|
$id: z.string().optional(),
|
|
6616
|
-
items:
|
|
6628
|
+
items: schemaSchema,
|
|
6629
|
+
addItemTitle: z.string(),
|
|
6630
|
+
editItemTitle: z.string(),
|
|
6631
|
+
minItems: z.number().optional(),
|
|
6632
|
+
maxItems: z.number().optional(),
|
|
6633
|
+
placeholder: z.string().optional(),
|
|
6617
6634
|
title: z.string().optional(),
|
|
6618
6635
|
description: z.string().optional(),
|
|
6619
6636
|
control: z.string().optional(),
|
|
@@ -6621,24 +6638,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6621
6638
|
icon: iconSchema.optional(),
|
|
6622
6639
|
image: imageSchema.optional(),
|
|
6623
6640
|
keywords: z.array(z.string()).optional(),
|
|
6624
|
-
summary:
|
|
6641
|
+
summary: summarySummariserSchema.optional(),
|
|
6625
6642
|
analyticsId: z.string().optional(),
|
|
6626
6643
|
persistAsync: persistAsyncSchema.optional(),
|
|
6627
6644
|
validationAsync: validateAsyncSchema.optional(),
|
|
6628
|
-
alert: alertLayoutSchema.optional()
|
|
6645
|
+
alert: alertLayoutSchema.optional(),
|
|
6646
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6647
|
+
disabled: z.boolean().optional()
|
|
6629
6648
|
})
|
|
6630
6649
|
);
|
|
6631
|
-
var
|
|
6650
|
+
var persistAsyncSchema = z.lazy(
|
|
6651
|
+
() => z.object({
|
|
6652
|
+
param: z.string(),
|
|
6653
|
+
idProperty: z.string(),
|
|
6654
|
+
schema: schemaSchema,
|
|
6655
|
+
url: z.string(),
|
|
6656
|
+
method: httpMethodSchema
|
|
6657
|
+
})
|
|
6658
|
+
);
|
|
6659
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6632
6660
|
() => z.object({
|
|
6633
6661
|
type: z.literal("array"),
|
|
6634
6662
|
promoted: z.boolean().optional(),
|
|
6635
6663
|
$id: z.string().optional(),
|
|
6636
|
-
items: schemaSchema,
|
|
6637
|
-
addItemTitle: z.string(),
|
|
6638
|
-
editItemTitle: z.string(),
|
|
6639
|
-
minItems: z.number().optional(),
|
|
6640
|
-
maxItems: z.number().optional(),
|
|
6641
|
-
placeholder: z.string().optional(),
|
|
6664
|
+
items: z.array(schemaSchema),
|
|
6642
6665
|
title: z.string().optional(),
|
|
6643
6666
|
description: z.string().optional(),
|
|
6644
6667
|
control: z.string().optional(),
|
|
@@ -6646,34 +6669,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6646
6669
|
icon: iconSchema.optional(),
|
|
6647
6670
|
image: imageSchema.optional(),
|
|
6648
6671
|
keywords: z.array(z.string()).optional(),
|
|
6649
|
-
summary:
|
|
6672
|
+
summary: summaryProviderSchema.optional(),
|
|
6650
6673
|
analyticsId: z.string().optional(),
|
|
6651
6674
|
persistAsync: persistAsyncSchema.optional(),
|
|
6652
6675
|
validationAsync: validateAsyncSchema.optional(),
|
|
6653
|
-
alert: alertLayoutSchema.optional()
|
|
6654
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6655
|
-
disabled: z.boolean().optional()
|
|
6656
|
-
})
|
|
6657
|
-
);
|
|
6658
|
-
var stepSchema = z.lazy(
|
|
6659
|
-
() => z.object({
|
|
6660
|
-
key: z.string().optional(),
|
|
6661
|
-
type: z.string().optional(),
|
|
6662
|
-
actions: z.array(actionSchema).optional(),
|
|
6663
|
-
refreshFormUrl: z.string().optional(),
|
|
6664
|
-
id: z.string(),
|
|
6665
|
-
title: z.string(),
|
|
6666
|
-
schemas: z.array(schemaSchema),
|
|
6667
|
-
layout: z.array(layoutSchema),
|
|
6668
|
-
description: z.string().optional(),
|
|
6669
|
-
model: jsonElementSchema.optional(),
|
|
6670
|
-
external: externalSchema.optional(),
|
|
6671
|
-
polling: pollingSchema.optional(),
|
|
6672
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6673
|
-
analytics: z.record(z.string()).optional(),
|
|
6674
|
-
errors: stepErrorSchema.optional(),
|
|
6675
|
-
navigation: navigationSchema.optional(),
|
|
6676
|
-
refreshUrl: z.string().optional()
|
|
6676
|
+
alert: alertLayoutSchema.optional()
|
|
6677
6677
|
})
|
|
6678
6678
|
);
|
|
6679
6679
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -7016,7 +7016,11 @@ var getActionByReference = ($ref, actions = []) => {
|
|
|
7016
7016
|
// src/revamp/domain/mappers/layout/buttonLayoutToComponent.ts
|
|
7017
7017
|
var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
7018
7018
|
const { context, control, disabled, margin = "md", pinOrder, size, title } = button;
|
|
7019
|
-
const action = inlineAction(button.action, step == null ? void 0 : step.actions);
|
|
7019
|
+
const action = button.action ? inlineAction(button.action, step == null ? void 0 : step.actions) : {};
|
|
7020
|
+
const onClick = button.action ? () => {
|
|
7021
|
+
void onAction(action);
|
|
7022
|
+
} : () => {
|
|
7023
|
+
};
|
|
7020
7024
|
return createButtonComponent({
|
|
7021
7025
|
uid,
|
|
7022
7026
|
context: getButtonContext({ context, action }),
|
|
@@ -7026,9 +7030,7 @@ var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
|
7026
7030
|
pinOrder,
|
|
7027
7031
|
size,
|
|
7028
7032
|
title: getButtonTitle({ title, action }),
|
|
7029
|
-
onClick
|
|
7030
|
-
void onAction(action);
|
|
7031
|
-
}
|
|
7033
|
+
onClick
|
|
7032
7034
|
});
|
|
7033
7035
|
};
|
|
7034
7036
|
var getButtonTitle = ({ title, action }) => {
|
|
@@ -11910,7 +11912,6 @@ var MultiUploadInputRenderer = {
|
|
|
11910
11912
|
{
|
|
11911
11913
|
id,
|
|
11912
11914
|
"aria-describedby": descriptionId,
|
|
11913
|
-
className: "form-control",
|
|
11914
11915
|
description,
|
|
11915
11916
|
disabled,
|
|
11916
11917
|
fileTypes: getAcceptsString(accepts),
|
|
@@ -15071,7 +15072,6 @@ function MultipleFileUploadSchema(props) {
|
|
|
15071
15072
|
const maxSize = "maxSize" in fileSchemaDescriptor && fileSchemaDescriptor.maxSize;
|
|
15072
15073
|
const uploadInputProps = __spreadProps(__spreadValues(__spreadValues({
|
|
15073
15074
|
multiple: true,
|
|
15074
|
-
className: "form-control",
|
|
15075
15075
|
files,
|
|
15076
15076
|
fileInputName: uid,
|
|
15077
15077
|
id: uid
|