@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.mjs
CHANGED
|
@@ -5827,13 +5827,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5827
5827
|
quotelessJson,
|
|
5828
5828
|
ZodError
|
|
5829
5829
|
});
|
|
5830
|
-
var
|
|
5831
|
-
z.
|
|
5832
|
-
z.
|
|
5833
|
-
z.
|
|
5834
|
-
|
|
5835
|
-
|
|
5830
|
+
var imageSchema = z.object({
|
|
5831
|
+
text: z.string().optional(),
|
|
5832
|
+
url: z.string(),
|
|
5833
|
+
accessibilityDescription: z.string().optional()
|
|
5834
|
+
});
|
|
5835
|
+
var httpMethodSchema = z.union([
|
|
5836
|
+
z.literal("GET"),
|
|
5837
|
+
z.literal("POST"),
|
|
5838
|
+
z.literal("PUT"),
|
|
5839
|
+
z.literal("PATCH"),
|
|
5840
|
+
z.literal("DELETE")
|
|
5836
5841
|
]);
|
|
5842
|
+
var iconNamedSchema = z.object({
|
|
5843
|
+
name: z.string()
|
|
5844
|
+
});
|
|
5837
5845
|
var contextSchema = z.union([
|
|
5838
5846
|
z.literal("positive"),
|
|
5839
5847
|
z.literal("neutral"),
|
|
@@ -5844,107 +5852,18 @@ var contextSchema = z.union([
|
|
|
5844
5852
|
z.literal("info"),
|
|
5845
5853
|
z.literal("primary")
|
|
5846
5854
|
]);
|
|
5847
|
-
var
|
|
5848
|
-
z.
|
|
5849
|
-
z.literal("left"),
|
|
5850
|
-
z.literal("right")
|
|
5851
|
-
]);
|
|
5852
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5853
|
-
z.literal("not-done"),
|
|
5854
|
-
z.literal("pending"),
|
|
5855
|
-
z.literal("done")
|
|
5856
|
-
]);
|
|
5857
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5858
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5859
|
-
$ref: z.string()
|
|
5860
|
-
});
|
|
5861
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5862
|
-
title: z.string()
|
|
5863
|
-
});
|
|
5864
|
-
var httpMethodSchema = z.union([
|
|
5865
|
-
z.literal("GET"),
|
|
5866
|
-
z.literal("POST"),
|
|
5867
|
-
z.literal("PUT"),
|
|
5868
|
-
z.literal("PATCH"),
|
|
5869
|
-
z.literal("DELETE")
|
|
5870
|
-
]);
|
|
5871
|
-
var dividerLayoutSchema = z.object({
|
|
5872
|
-
type: z.literal("divider"),
|
|
5873
|
-
control: z.string().optional(),
|
|
5874
|
-
margin: sizeSchema.optional()
|
|
5855
|
+
var iconTextSchema = z.object({
|
|
5856
|
+
text: z.string()
|
|
5875
5857
|
});
|
|
5876
|
-
var
|
|
5877
|
-
z.literal("
|
|
5878
|
-
z.literal("
|
|
5879
|
-
z.literal("
|
|
5858
|
+
var sizeSchema = z.union([
|
|
5859
|
+
z.literal("xs"),
|
|
5860
|
+
z.literal("sm"),
|
|
5861
|
+
z.literal("md"),
|
|
5862
|
+
z.literal("lg"),
|
|
5863
|
+
z.literal("xl")
|
|
5880
5864
|
]);
|
|
5881
|
-
var
|
|
5882
|
-
|
|
5883
|
-
text: z.string(),
|
|
5884
|
-
size: sizeSchema.optional(),
|
|
5885
|
-
align: alignSchema.optional(),
|
|
5886
|
-
control: z.string().optional(),
|
|
5887
|
-
margin: sizeSchema.optional()
|
|
5888
|
-
});
|
|
5889
|
-
var formLayoutSchema = z.object({
|
|
5890
|
-
type: z.literal("form"),
|
|
5891
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5892
|
-
schemaId: z.string(),
|
|
5893
|
-
control: z.string().optional(),
|
|
5894
|
-
margin: sizeSchema.optional()
|
|
5895
|
-
});
|
|
5896
|
-
var imageLayoutSchema = z.object({
|
|
5897
|
-
type: z.literal("image"),
|
|
5898
|
-
text: z.string().optional(),
|
|
5899
|
-
url: z.string(),
|
|
5900
|
-
size: sizeSchema.optional(),
|
|
5901
|
-
accessibilityDescription: z.string().optional(),
|
|
5902
|
-
control: z.string().optional(),
|
|
5903
|
-
margin: sizeSchema.optional()
|
|
5904
|
-
});
|
|
5905
|
-
var infoLayoutSchema = z.object({
|
|
5906
|
-
type: z.literal("info"),
|
|
5907
|
-
markdown: z.string(),
|
|
5908
|
-
align: alignSchema.optional(),
|
|
5909
|
-
control: z.string().optional(),
|
|
5910
|
-
margin: sizeSchema.optional()
|
|
5911
|
-
});
|
|
5912
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
5913
|
-
type: z.literal("loading-indicator"),
|
|
5914
|
-
size: sizeSchema.optional(),
|
|
5915
|
-
control: z.string().optional(),
|
|
5916
|
-
margin: sizeSchema.optional()
|
|
5917
|
-
});
|
|
5918
|
-
var paragraphLayoutSchema = z.object({
|
|
5919
|
-
type: z.literal("paragraph"),
|
|
5920
|
-
text: z.string(),
|
|
5921
|
-
align: alignSchema.optional(),
|
|
5922
|
-
control: z.string().optional(),
|
|
5923
|
-
margin: sizeSchema.optional()
|
|
5924
|
-
});
|
|
5925
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5926
|
-
text: z.string(),
|
|
5927
|
-
context: contextSchema
|
|
5928
|
-
});
|
|
5929
|
-
var helpSchema = z.object({
|
|
5930
|
-
markdown: z.string()
|
|
5931
|
-
});
|
|
5932
|
-
var imageSchema = z.object({
|
|
5933
|
-
text: z.string().optional(),
|
|
5934
|
-
url: z.string(),
|
|
5935
|
-
accessibilityDescription: z.string().optional()
|
|
5936
|
-
});
|
|
5937
|
-
var summaryProviderSchema = z.object({
|
|
5938
|
-
providesTitle: z.boolean().optional(),
|
|
5939
|
-
providesDescription: z.boolean().optional(),
|
|
5940
|
-
providesIcon: z.boolean().optional(),
|
|
5941
|
-
providesImage: z.boolean().optional()
|
|
5942
|
-
});
|
|
5943
|
-
var validateAsyncSchema = z.object({
|
|
5944
|
-
param: z.string(),
|
|
5945
|
-
method: httpMethodSchema,
|
|
5946
|
-
url: z.string()
|
|
5947
|
-
});
|
|
5865
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5866
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5948
5867
|
var autocompleteTokenSchema = z.union([
|
|
5949
5868
|
z.literal("on"),
|
|
5950
5869
|
z.literal("name"),
|
|
@@ -6010,14 +5929,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
6010
5929
|
z.literal("fax"),
|
|
6011
5930
|
z.literal("pager")
|
|
6012
5931
|
]);
|
|
6013
|
-
var
|
|
6014
|
-
z.literal("
|
|
6015
|
-
|
|
6016
|
-
z.
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
5932
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5933
|
+
type: z.literal("loading-indicator"),
|
|
5934
|
+
size: sizeSchema.optional(),
|
|
5935
|
+
control: z.string().optional(),
|
|
5936
|
+
margin: sizeSchema.optional()
|
|
5937
|
+
});
|
|
5938
|
+
var paragraphLayoutSchema = z.object({
|
|
5939
|
+
type: z.literal("paragraph"),
|
|
5940
|
+
text: z.string(),
|
|
5941
|
+
align: alignSchema.optional(),
|
|
5942
|
+
control: z.string().optional(),
|
|
5943
|
+
margin: sizeSchema.optional()
|
|
5944
|
+
});
|
|
5945
|
+
var dividerLayoutSchema = z.object({
|
|
5946
|
+
type: z.literal("divider"),
|
|
5947
|
+
control: z.string().optional(),
|
|
5948
|
+
margin: sizeSchema.optional()
|
|
5949
|
+
});
|
|
5950
|
+
var listLayoutStatusSchema = z.union([
|
|
5951
|
+
z.literal("warning"),
|
|
5952
|
+
z.literal("neutral"),
|
|
5953
|
+
z.literal("positive")
|
|
5954
|
+
]);
|
|
5955
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5956
|
+
$ref: z.string()
|
|
5957
|
+
});
|
|
5958
|
+
var imageLayoutSchema = z.object({
|
|
5959
|
+
type: z.literal("image"),
|
|
5960
|
+
text: z.string().optional(),
|
|
5961
|
+
url: z.string(),
|
|
5962
|
+
size: sizeSchema.optional(),
|
|
5963
|
+
accessibilityDescription: z.string().optional(),
|
|
5964
|
+
control: z.string().optional(),
|
|
5965
|
+
margin: sizeSchema.optional()
|
|
5966
|
+
});
|
|
5967
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5968
|
+
z.literal("not-done"),
|
|
5969
|
+
z.literal("pending"),
|
|
5970
|
+
z.literal("done")
|
|
5971
|
+
]);
|
|
5972
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5973
|
+
text: z.string(),
|
|
5974
|
+
context: contextSchema
|
|
5975
|
+
});
|
|
5976
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5977
|
+
title: z.string()
|
|
5978
|
+
});
|
|
5979
|
+
var searchLayoutSchema = z.object({
|
|
5980
|
+
type: z.literal("search"),
|
|
5981
|
+
title: z.string(),
|
|
5982
|
+
method: httpMethodSchema,
|
|
5983
|
+
url: z.string(),
|
|
5984
|
+
param: z.string(),
|
|
5985
|
+
emptyMessage: z.string().optional(),
|
|
5986
|
+
control: z.string().optional(),
|
|
5987
|
+
margin: sizeSchema.optional()
|
|
5988
|
+
});
|
|
5989
|
+
var infoLayoutSchema = z.object({
|
|
5990
|
+
type: z.literal("info"),
|
|
5991
|
+
markdown: z.string(),
|
|
5992
|
+
align: alignSchema.optional(),
|
|
5993
|
+
control: z.string().optional(),
|
|
5994
|
+
margin: sizeSchema.optional()
|
|
5995
|
+
});
|
|
5996
|
+
var formLayoutSchema = z.object({
|
|
5997
|
+
type: z.literal("form"),
|
|
5998
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5999
|
+
schemaId: z.string(),
|
|
6000
|
+
control: z.string().optional(),
|
|
6001
|
+
margin: sizeSchema.optional()
|
|
6002
|
+
});
|
|
6003
|
+
var headingLayoutSchema = z.object({
|
|
6004
|
+
type: z.literal("heading"),
|
|
6005
|
+
text: z.string(),
|
|
6006
|
+
size: sizeSchema.optional(),
|
|
6007
|
+
align: alignSchema.optional(),
|
|
6008
|
+
control: z.string().optional(),
|
|
6009
|
+
margin: sizeSchema.optional()
|
|
6010
|
+
});
|
|
6011
|
+
var markdownLayoutSchema = z.object({
|
|
6012
|
+
type: z.literal("markdown"),
|
|
6013
|
+
content: z.string(),
|
|
6014
|
+
align: alignSchema.optional(),
|
|
6015
|
+
control: z.string().optional(),
|
|
6016
|
+
margin: sizeSchema.optional()
|
|
6017
|
+
});
|
|
6018
|
+
var columnsLayoutBiasSchema = z.union([
|
|
6019
|
+
z.literal("none"),
|
|
6020
|
+
z.literal("left"),
|
|
6021
|
+
z.literal("right")
|
|
6020
6022
|
]);
|
|
6023
|
+
var helpSchema = z.object({
|
|
6024
|
+
markdown: z.string()
|
|
6025
|
+
});
|
|
6026
|
+
var searchSearchRequestSchema = z.object({
|
|
6027
|
+
url: z.string(),
|
|
6028
|
+
method: httpMethodSchema,
|
|
6029
|
+
param: z.string(),
|
|
6030
|
+
query: z.string()
|
|
6031
|
+
});
|
|
6021
6032
|
var jsonElementSchema = z.lazy(
|
|
6022
6033
|
() => z.union([
|
|
6023
6034
|
z.string(),
|
|
@@ -6027,7 +6038,6 @@ var jsonElementSchema = z.lazy(
|
|
|
6027
6038
|
z.array(jsonElementSchema)
|
|
6028
6039
|
]).nullable()
|
|
6029
6040
|
);
|
|
6030
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6031
6041
|
var externalSchema = z.object({
|
|
6032
6042
|
url: z.string()
|
|
6033
6043
|
});
|
|
@@ -6035,28 +6045,42 @@ var stepErrorSchema = z.object({
|
|
|
6035
6045
|
error: z.string().optional(),
|
|
6036
6046
|
validation: jsonElementSchema.optional()
|
|
6037
6047
|
});
|
|
6038
|
-
var
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6048
|
+
var stringSchemaFormatSchema = z.union([
|
|
6049
|
+
z.literal("date"),
|
|
6050
|
+
z.literal("email"),
|
|
6051
|
+
z.literal("numeric"),
|
|
6052
|
+
z.literal("password"),
|
|
6053
|
+
z.literal("phone-number"),
|
|
6054
|
+
z.literal("base64url")
|
|
6055
|
+
]);
|
|
6056
|
+
var summarySummariserSchema = z.object({
|
|
6057
|
+
defaultTitle: z.string().optional(),
|
|
6058
|
+
defaultDescription: z.string().optional(),
|
|
6059
|
+
defaultIcon: iconSchema.optional(),
|
|
6060
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6061
|
+
providesTitle: z.boolean().optional(),
|
|
6062
|
+
providesDescription: z.boolean().optional(),
|
|
6063
|
+
providesIcon: z.boolean().optional(),
|
|
6064
|
+
providesImage: z.boolean().optional()
|
|
6044
6065
|
});
|
|
6045
|
-
var
|
|
6046
|
-
url: z.string(),
|
|
6047
|
-
method: httpMethodSchema,
|
|
6066
|
+
var validateAsyncSchema = z.object({
|
|
6048
6067
|
param: z.string(),
|
|
6049
|
-
|
|
6068
|
+
method: httpMethodSchema,
|
|
6069
|
+
url: z.string()
|
|
6050
6070
|
});
|
|
6071
|
+
var summaryProviderSchema = z.object({
|
|
6072
|
+
providesTitle: z.boolean().optional(),
|
|
6073
|
+
providesDescription: z.boolean().optional(),
|
|
6074
|
+
providesIcon: z.boolean().optional(),
|
|
6075
|
+
providesImage: z.boolean().optional()
|
|
6076
|
+
});
|
|
6077
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6051
6078
|
var navigationStackBehaviorSchema = z.union([
|
|
6052
6079
|
z.literal("default"),
|
|
6053
6080
|
z.literal("remove-previous"),
|
|
6054
6081
|
z.literal("remove-all"),
|
|
6055
6082
|
z.literal("replace-current")
|
|
6056
6083
|
]);
|
|
6057
|
-
var linkSchema = z.object({
|
|
6058
|
-
url: z.string()
|
|
6059
|
-
});
|
|
6060
6084
|
var actionTypeSchema = z.union([
|
|
6061
6085
|
z.literal("primary"),
|
|
6062
6086
|
z.literal("secondary"),
|
|
@@ -6064,11 +6088,9 @@ var actionTypeSchema = z.union([
|
|
|
6064
6088
|
z.literal("positive"),
|
|
6065
6089
|
z.literal("negative")
|
|
6066
6090
|
]);
|
|
6067
|
-
var
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
var iconTextSchema = z.object({
|
|
6071
|
-
text: z.string()
|
|
6091
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6092
|
+
var linkSchema = z.object({
|
|
6093
|
+
url: z.string()
|
|
6072
6094
|
});
|
|
6073
6095
|
var actionSchema = z.object({
|
|
6074
6096
|
title: z.string().optional(),
|
|
@@ -6085,26 +6107,25 @@ var actionSchema = z.object({
|
|
|
6085
6107
|
timeout: z.number().optional(),
|
|
6086
6108
|
skipValidation: z.boolean().optional()
|
|
6087
6109
|
});
|
|
6088
|
-
var
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
margin: sizeSchema.optional()
|
|
6110
|
+
var listLayoutItemSchema = z.object({
|
|
6111
|
+
title: z.string(),
|
|
6112
|
+
description: z.string().optional(),
|
|
6113
|
+
icon: iconSchema,
|
|
6114
|
+
status: listLayoutStatusSchema.optional()
|
|
6094
6115
|
});
|
|
6095
|
-
var
|
|
6096
|
-
|
|
6116
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6117
|
+
action: actionSchema,
|
|
6097
6118
|
title: z.string(),
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
control: z.string().optional(),
|
|
6103
|
-
margin: sizeSchema.optional()
|
|
6119
|
+
description: z.string().optional(),
|
|
6120
|
+
disabled: z.boolean().optional(),
|
|
6121
|
+
icon: iconSchema.optional(),
|
|
6122
|
+
image: imageLayoutSchema.optional()
|
|
6104
6123
|
});
|
|
6105
|
-
var
|
|
6124
|
+
var statusListLayoutItemSchema = z.object({
|
|
6106
6125
|
title: z.string(),
|
|
6107
|
-
|
|
6126
|
+
description: z.string().optional(),
|
|
6127
|
+
icon: iconSchema,
|
|
6128
|
+
status: statusListLayoutStatusSchema.optional()
|
|
6108
6129
|
});
|
|
6109
6130
|
var instructionsLayoutSchema = z.object({
|
|
6110
6131
|
type: z.literal("instructions"),
|
|
@@ -6113,39 +6134,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
6113
6134
|
control: z.string().optional(),
|
|
6114
6135
|
margin: sizeSchema.optional()
|
|
6115
6136
|
});
|
|
6116
|
-
var
|
|
6137
|
+
var buttonLayoutSchema = z.object({
|
|
6138
|
+
type: z.literal("button"),
|
|
6139
|
+
size: sizeSchema.optional(),
|
|
6140
|
+
title: z.string().optional(),
|
|
6141
|
+
action: actionSchema,
|
|
6142
|
+
context: contextSchema.optional(),
|
|
6143
|
+
disabled: z.boolean().optional(),
|
|
6144
|
+
pinOrder: z.number().optional(),
|
|
6145
|
+
control: z.string().optional(),
|
|
6146
|
+
margin: sizeSchema.optional()
|
|
6147
|
+
});
|
|
6117
6148
|
var reviewLayoutFieldSchema = z.object({
|
|
6118
6149
|
label: z.string(),
|
|
6119
6150
|
value: z.string(),
|
|
6120
6151
|
help: helpSchema.optional()
|
|
6121
6152
|
});
|
|
6122
|
-
var statusListLayoutItemSchema = z.object({
|
|
6123
|
-
title: z.string(),
|
|
6124
|
-
description: z.string().optional(),
|
|
6125
|
-
icon: iconSchema,
|
|
6126
|
-
status: statusListLayoutStatusSchema.optional()
|
|
6127
|
-
});
|
|
6128
6153
|
var behaviorSchema = z.object({
|
|
6129
6154
|
action: actionSchema.optional(),
|
|
6130
6155
|
link: linkSchema.optional()
|
|
6131
6156
|
});
|
|
6132
|
-
var summarySummariserSchema = z.object({
|
|
6133
|
-
defaultTitle: z.string().optional(),
|
|
6134
|
-
defaultDescription: z.string().optional(),
|
|
6135
|
-
defaultIcon: iconSchema.optional(),
|
|
6136
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
6137
|
-
providesTitle: z.boolean().optional(),
|
|
6138
|
-
providesDescription: z.boolean().optional(),
|
|
6139
|
-
providesIcon: z.boolean().optional(),
|
|
6140
|
-
providesImage: z.boolean().optional()
|
|
6141
|
-
});
|
|
6142
|
-
var linkHandlerSchema = z.object({
|
|
6143
|
-
regexPattern: z.string(),
|
|
6144
|
-
action: actionSchema
|
|
6145
|
-
});
|
|
6146
|
-
var actionResponseBodySchema = z.object({
|
|
6147
|
-
action: actionSchema
|
|
6148
|
-
});
|
|
6149
6157
|
var searchResultSearchSchema = z.object({
|
|
6150
6158
|
type: z.literal("search"),
|
|
6151
6159
|
title: z.string(),
|
|
@@ -6162,6 +6170,20 @@ var searchResultActionSchema = z.object({
|
|
|
6162
6170
|
image: imageLayoutSchema.optional(),
|
|
6163
6171
|
value: actionSchema
|
|
6164
6172
|
});
|
|
6173
|
+
var actionResponseBodySchema = z.object({
|
|
6174
|
+
action: actionSchema
|
|
6175
|
+
});
|
|
6176
|
+
var errorResponseBodySchema = z.object({
|
|
6177
|
+
refreshFormUrl: z.string().optional(),
|
|
6178
|
+
analytics: z.record(z.string()).optional(),
|
|
6179
|
+
error: z.string().optional(),
|
|
6180
|
+
validation: jsonElementSchema.optional(),
|
|
6181
|
+
refreshUrl: z.string().optional()
|
|
6182
|
+
});
|
|
6183
|
+
var linkHandlerSchema = z.object({
|
|
6184
|
+
regexPattern: z.string(),
|
|
6185
|
+
action: actionSchema
|
|
6186
|
+
});
|
|
6165
6187
|
var pollingOnErrorSchema = z.object({
|
|
6166
6188
|
action: actionSchema
|
|
6167
6189
|
});
|
|
@@ -6169,33 +6191,26 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6169
6191
|
title: z.string().optional(),
|
|
6170
6192
|
action: actionSchema
|
|
6171
6193
|
});
|
|
6172
|
-
var
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6194
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6195
|
+
title: z.string(),
|
|
6196
|
+
action: actionSchema
|
|
6197
|
+
});
|
|
6198
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6199
|
+
title: z.string(),
|
|
6200
|
+
accessibilityDescription: z.string().optional(),
|
|
6201
|
+
behavior: behaviorSchema
|
|
6202
|
+
});
|
|
6203
|
+
var listLayoutSchema = z.object({
|
|
6204
|
+
type: z.literal("list"),
|
|
6205
|
+
items: z.array(listLayoutItemSchema),
|
|
6176
6206
|
title: z.string().optional(),
|
|
6177
|
-
action: actionSchema,
|
|
6178
|
-
context: contextSchema.optional(),
|
|
6179
|
-
disabled: z.boolean().optional(),
|
|
6180
|
-
pinOrder: z.number().optional(),
|
|
6181
6207
|
control: z.string().optional(),
|
|
6182
6208
|
margin: sizeSchema.optional()
|
|
6183
6209
|
});
|
|
6184
|
-
var
|
|
6185
|
-
|
|
6186
|
-
title: z.string(),
|
|
6187
|
-
description: z.string().optional(),
|
|
6188
|
-
disabled: z.boolean().optional(),
|
|
6189
|
-
icon: iconSchema.optional(),
|
|
6190
|
-
image: imageLayoutSchema.optional()
|
|
6191
|
-
});
|
|
6192
|
-
var reviewLayoutSchema = z.object({
|
|
6193
|
-
type: z.literal("review"),
|
|
6194
|
-
orientation: z.string().optional(),
|
|
6195
|
-
action: actionSchema.optional(),
|
|
6196
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
6210
|
+
var decisionLayoutSchema = z.object({
|
|
6211
|
+
type: z.literal("decision"),
|
|
6197
6212
|
title: z.string().optional(),
|
|
6198
|
-
|
|
6213
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6199
6214
|
control: z.string().optional(),
|
|
6200
6215
|
margin: sizeSchema.optional()
|
|
6201
6216
|
});
|
|
@@ -6206,17 +6221,17 @@ var statusListLayoutSchema = z.object({
|
|
|
6206
6221
|
control: z.string().optional(),
|
|
6207
6222
|
margin: sizeSchema.optional()
|
|
6208
6223
|
});
|
|
6209
|
-
var
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
behavior: behaviorSchema
|
|
6224
|
+
var reviewLayoutSchema = z.object({
|
|
6225
|
+
type: z.literal("review"),
|
|
6226
|
+
orientation: z.string().optional(),
|
|
6227
|
+
action: actionSchema.optional(),
|
|
6228
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
6229
|
+
title: z.string().optional(),
|
|
6230
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
6231
|
+
control: z.string().optional(),
|
|
6232
|
+
margin: sizeSchema.optional()
|
|
6219
6233
|
});
|
|
6234
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6220
6235
|
var pollingSchema = z.object({
|
|
6221
6236
|
url: z.string(),
|
|
6222
6237
|
interval: z.number().optional(),
|
|
@@ -6230,14 +6245,6 @@ var navigationSchema = z.object({
|
|
|
6230
6245
|
back: navigationBackBehaviorSchema.optional(),
|
|
6231
6246
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6232
6247
|
});
|
|
6233
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6234
|
-
var decisionLayoutSchema = z.object({
|
|
6235
|
-
type: z.literal("decision"),
|
|
6236
|
-
title: z.string().optional(),
|
|
6237
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
6238
|
-
control: z.string().optional(),
|
|
6239
|
-
margin: sizeSchema.optional()
|
|
6240
|
-
});
|
|
6241
6248
|
var alertLayoutSchema = z.object({
|
|
6242
6249
|
type: z.literal("alert"),
|
|
6243
6250
|
markdown: z.string(),
|
|
@@ -6246,12 +6253,8 @@ var alertLayoutSchema = z.object({
|
|
|
6246
6253
|
margin: sizeSchema.optional(),
|
|
6247
6254
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6248
6255
|
});
|
|
6249
|
-
var
|
|
6250
|
-
|
|
6251
|
-
items: z.array(listLayoutItemSchema),
|
|
6252
|
-
title: z.string().optional(),
|
|
6253
|
-
control: z.string().optional(),
|
|
6254
|
-
margin: sizeSchema.optional()
|
|
6256
|
+
var searchResponseBodySchema = z.object({
|
|
6257
|
+
results: z.array(searchResultSchema)
|
|
6255
6258
|
});
|
|
6256
6259
|
var blobSchemaSchema = z.object({
|
|
6257
6260
|
type: z.literal("blob"),
|
|
@@ -6291,19 +6294,6 @@ var constSchemaSchema = z.object({
|
|
|
6291
6294
|
analyticsId: z.string().optional(),
|
|
6292
6295
|
disabled: z.boolean().optional()
|
|
6293
6296
|
});
|
|
6294
|
-
var searchResponseBodySchema = z.object({
|
|
6295
|
-
results: z.array(searchResultSchema)
|
|
6296
|
-
});
|
|
6297
|
-
var columnsLayoutSchema = z.lazy(
|
|
6298
|
-
() => z.object({
|
|
6299
|
-
type: z.literal("columns"),
|
|
6300
|
-
left: z.array(layoutSchema),
|
|
6301
|
-
right: z.array(layoutSchema),
|
|
6302
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6303
|
-
control: z.string().optional(),
|
|
6304
|
-
margin: sizeSchema.optional()
|
|
6305
|
-
})
|
|
6306
|
-
);
|
|
6307
6297
|
var layoutSchema = z.lazy(
|
|
6308
6298
|
() => z.union([
|
|
6309
6299
|
alertLayoutSchema,
|
|
@@ -6327,6 +6317,26 @@ var layoutSchema = z.lazy(
|
|
|
6327
6317
|
statusListLayoutSchema
|
|
6328
6318
|
])
|
|
6329
6319
|
);
|
|
6320
|
+
var boxLayoutSchema = z.lazy(
|
|
6321
|
+
() => z.object({
|
|
6322
|
+
type: z.literal("box"),
|
|
6323
|
+
components: z.array(layoutSchema),
|
|
6324
|
+
width: sizeSchema.optional(),
|
|
6325
|
+
border: z.boolean().optional(),
|
|
6326
|
+
control: z.string().optional(),
|
|
6327
|
+
margin: sizeSchema.optional()
|
|
6328
|
+
})
|
|
6329
|
+
);
|
|
6330
|
+
var columnsLayoutSchema = z.lazy(
|
|
6331
|
+
() => z.object({
|
|
6332
|
+
type: z.literal("columns"),
|
|
6333
|
+
left: z.array(layoutSchema),
|
|
6334
|
+
right: z.array(layoutSchema),
|
|
6335
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6336
|
+
control: z.string().optional(),
|
|
6337
|
+
margin: sizeSchema.optional()
|
|
6338
|
+
})
|
|
6339
|
+
);
|
|
6330
6340
|
var modalLayoutSchema = z.lazy(
|
|
6331
6341
|
() => z.object({
|
|
6332
6342
|
type: z.literal("modal"),
|
|
@@ -6342,14 +6352,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6342
6352
|
components: z.array(layoutSchema)
|
|
6343
6353
|
})
|
|
6344
6354
|
);
|
|
6345
|
-
var
|
|
6355
|
+
var stepSchema = z.lazy(
|
|
6346
6356
|
() => z.object({
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6357
|
+
key: z.string().optional(),
|
|
6358
|
+
type: z.string().optional(),
|
|
6359
|
+
actions: z.array(actionSchema).optional(),
|
|
6360
|
+
refreshFormUrl: z.string().optional(),
|
|
6361
|
+
id: z.string(),
|
|
6362
|
+
title: z.string(),
|
|
6363
|
+
schemas: z.array(schemaSchema),
|
|
6364
|
+
layout: z.array(layoutSchema),
|
|
6365
|
+
description: z.string().optional(),
|
|
6366
|
+
model: jsonElementSchema.optional(),
|
|
6367
|
+
external: externalSchema.optional(),
|
|
6368
|
+
polling: pollingSchema.optional(),
|
|
6369
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6370
|
+
analytics: z.record(z.string()).optional(),
|
|
6371
|
+
errors: stepErrorSchema.optional(),
|
|
6372
|
+
navigation: navigationSchema.optional(),
|
|
6373
|
+
refreshUrl: z.string().optional()
|
|
6353
6374
|
})
|
|
6354
6375
|
);
|
|
6355
6376
|
var schemaSchema = z.lazy(
|
|
@@ -6575,21 +6596,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
6575
6596
|
help: helpSchema.optional()
|
|
6576
6597
|
})
|
|
6577
6598
|
);
|
|
6578
|
-
var
|
|
6579
|
-
() => z.object({
|
|
6580
|
-
param: z.string(),
|
|
6581
|
-
idProperty: z.string(),
|
|
6582
|
-
schema: schemaSchema,
|
|
6583
|
-
url: z.string(),
|
|
6584
|
-
method: httpMethodSchema
|
|
6585
|
-
})
|
|
6586
|
-
);
|
|
6587
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
6599
|
+
var arraySchemaListSchema = z.lazy(
|
|
6588
6600
|
() => z.object({
|
|
6589
6601
|
type: z.literal("array"),
|
|
6590
6602
|
promoted: z.boolean().optional(),
|
|
6591
6603
|
$id: z.string().optional(),
|
|
6592
|
-
items:
|
|
6604
|
+
items: schemaSchema,
|
|
6605
|
+
addItemTitle: z.string(),
|
|
6606
|
+
editItemTitle: z.string(),
|
|
6607
|
+
minItems: z.number().optional(),
|
|
6608
|
+
maxItems: z.number().optional(),
|
|
6609
|
+
placeholder: z.string().optional(),
|
|
6593
6610
|
title: z.string().optional(),
|
|
6594
6611
|
description: z.string().optional(),
|
|
6595
6612
|
control: z.string().optional(),
|
|
@@ -6597,24 +6614,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6597
6614
|
icon: iconSchema.optional(),
|
|
6598
6615
|
image: imageSchema.optional(),
|
|
6599
6616
|
keywords: z.array(z.string()).optional(),
|
|
6600
|
-
summary:
|
|
6617
|
+
summary: summarySummariserSchema.optional(),
|
|
6601
6618
|
analyticsId: z.string().optional(),
|
|
6602
6619
|
persistAsync: persistAsyncSchema.optional(),
|
|
6603
6620
|
validationAsync: validateAsyncSchema.optional(),
|
|
6604
|
-
alert: alertLayoutSchema.optional()
|
|
6621
|
+
alert: alertLayoutSchema.optional(),
|
|
6622
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6623
|
+
disabled: z.boolean().optional()
|
|
6605
6624
|
})
|
|
6606
6625
|
);
|
|
6607
|
-
var
|
|
6626
|
+
var persistAsyncSchema = z.lazy(
|
|
6627
|
+
() => z.object({
|
|
6628
|
+
param: z.string(),
|
|
6629
|
+
idProperty: z.string(),
|
|
6630
|
+
schema: schemaSchema,
|
|
6631
|
+
url: z.string(),
|
|
6632
|
+
method: httpMethodSchema
|
|
6633
|
+
})
|
|
6634
|
+
);
|
|
6635
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6608
6636
|
() => z.object({
|
|
6609
6637
|
type: z.literal("array"),
|
|
6610
6638
|
promoted: z.boolean().optional(),
|
|
6611
6639
|
$id: z.string().optional(),
|
|
6612
|
-
items: schemaSchema,
|
|
6613
|
-
addItemTitle: z.string(),
|
|
6614
|
-
editItemTitle: z.string(),
|
|
6615
|
-
minItems: z.number().optional(),
|
|
6616
|
-
maxItems: z.number().optional(),
|
|
6617
|
-
placeholder: z.string().optional(),
|
|
6640
|
+
items: z.array(schemaSchema),
|
|
6618
6641
|
title: z.string().optional(),
|
|
6619
6642
|
description: z.string().optional(),
|
|
6620
6643
|
control: z.string().optional(),
|
|
@@ -6622,34 +6645,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6622
6645
|
icon: iconSchema.optional(),
|
|
6623
6646
|
image: imageSchema.optional(),
|
|
6624
6647
|
keywords: z.array(z.string()).optional(),
|
|
6625
|
-
summary:
|
|
6648
|
+
summary: summaryProviderSchema.optional(),
|
|
6626
6649
|
analyticsId: z.string().optional(),
|
|
6627
6650
|
persistAsync: persistAsyncSchema.optional(),
|
|
6628
6651
|
validationAsync: validateAsyncSchema.optional(),
|
|
6629
|
-
alert: alertLayoutSchema.optional()
|
|
6630
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6631
|
-
disabled: z.boolean().optional()
|
|
6632
|
-
})
|
|
6633
|
-
);
|
|
6634
|
-
var stepSchema = z.lazy(
|
|
6635
|
-
() => z.object({
|
|
6636
|
-
key: z.string().optional(),
|
|
6637
|
-
type: z.string().optional(),
|
|
6638
|
-
actions: z.array(actionSchema).optional(),
|
|
6639
|
-
refreshFormUrl: z.string().optional(),
|
|
6640
|
-
id: z.string(),
|
|
6641
|
-
title: z.string(),
|
|
6642
|
-
schemas: z.array(schemaSchema),
|
|
6643
|
-
layout: z.array(layoutSchema),
|
|
6644
|
-
description: z.string().optional(),
|
|
6645
|
-
model: jsonElementSchema.optional(),
|
|
6646
|
-
external: externalSchema.optional(),
|
|
6647
|
-
polling: pollingSchema.optional(),
|
|
6648
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6649
|
-
analytics: z.record(z.string()).optional(),
|
|
6650
|
-
errors: stepErrorSchema.optional(),
|
|
6651
|
-
navigation: navigationSchema.optional(),
|
|
6652
|
-
refreshUrl: z.string().optional()
|
|
6652
|
+
alert: alertLayoutSchema.optional()
|
|
6653
6653
|
})
|
|
6654
6654
|
);
|
|
6655
6655
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -6992,7 +6992,11 @@ var getActionByReference = ($ref, actions = []) => {
|
|
|
6992
6992
|
// src/revamp/domain/mappers/layout/buttonLayoutToComponent.ts
|
|
6993
6993
|
var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
6994
6994
|
const { context, control, disabled, margin = "md", pinOrder, size, title } = button;
|
|
6995
|
-
const action = inlineAction(button.action, step == null ? void 0 : step.actions);
|
|
6995
|
+
const action = button.action ? inlineAction(button.action, step == null ? void 0 : step.actions) : {};
|
|
6996
|
+
const onClick = button.action ? () => {
|
|
6997
|
+
void onAction(action);
|
|
6998
|
+
} : () => {
|
|
6999
|
+
};
|
|
6996
7000
|
return createButtonComponent({
|
|
6997
7001
|
uid,
|
|
6998
7002
|
context: getButtonContext({ context, action }),
|
|
@@ -7002,9 +7006,7 @@ var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
|
7002
7006
|
pinOrder,
|
|
7003
7007
|
size,
|
|
7004
7008
|
title: getButtonTitle({ title, action }),
|
|
7005
|
-
onClick
|
|
7006
|
-
void onAction(action);
|
|
7007
|
-
}
|
|
7009
|
+
onClick
|
|
7008
7010
|
});
|
|
7009
7011
|
};
|
|
7010
7012
|
var getButtonTitle = ({ title, action }) => {
|
|
@@ -11886,7 +11888,6 @@ var MultiUploadInputRenderer = {
|
|
|
11886
11888
|
{
|
|
11887
11889
|
id,
|
|
11888
11890
|
"aria-describedby": descriptionId,
|
|
11889
|
-
className: "form-control",
|
|
11890
11891
|
description,
|
|
11891
11892
|
disabled,
|
|
11892
11893
|
fileTypes: getAcceptsString(accepts),
|
|
@@ -15056,7 +15057,6 @@ function MultipleFileUploadSchema(props) {
|
|
|
15056
15057
|
const maxSize = "maxSize" in fileSchemaDescriptor && fileSchemaDescriptor.maxSize;
|
|
15057
15058
|
const uploadInputProps = __spreadProps(__spreadValues(__spreadValues({
|
|
15058
15059
|
multiple: true,
|
|
15059
|
-
className: "form-control",
|
|
15060
15060
|
files,
|
|
15061
15061
|
fileInputName: uid,
|
|
15062
15062
|
id: uid
|