@wise/dynamic-flow-client 3.29.1 → 3.29.2-experimental-fetch-bugfix-b6e445d
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 +301 -301
- package/build/main.min.js +1 -1
- package/build/main.mjs +301 -301
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -1349,7 +1349,7 @@ var i18n_default = translations;
|
|
|
1349
1349
|
|
|
1350
1350
|
// ../renderers/src/contexts/RendererContext.tsx
|
|
1351
1351
|
var import_react = require("react");
|
|
1352
|
-
var RendererContext = (0, import_react.createContext)({ loadingState: "idle", httpClient:
|
|
1352
|
+
var RendererContext = (0, import_react.createContext)({ loadingState: "idle", httpClient: null, trackEvent: () => {
|
|
1353
1353
|
} });
|
|
1354
1354
|
var RendererContextProvider = RendererContext.Provider;
|
|
1355
1355
|
var useLoadingContext = () => {
|
|
@@ -1362,7 +1362,7 @@ var useTrackEvent = () => {
|
|
|
1362
1362
|
};
|
|
1363
1363
|
var useRendererHttpClient = () => {
|
|
1364
1364
|
const { httpClient } = (0, import_react.useContext)(RendererContext);
|
|
1365
|
-
return httpClient;
|
|
1365
|
+
return httpClient != null ? httpClient : fetch;
|
|
1366
1366
|
};
|
|
1367
1367
|
|
|
1368
1368
|
// ../renderers/src/AlertRenderer.tsx
|
|
@@ -8325,21 +8325,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
8325
8325
|
quotelessJson,
|
|
8326
8326
|
ZodError
|
|
8327
8327
|
});
|
|
8328
|
-
var
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
z.literal("GET"),
|
|
8335
|
-
z.literal("POST"),
|
|
8336
|
-
z.literal("PUT"),
|
|
8337
|
-
z.literal("PATCH"),
|
|
8338
|
-
z.literal("DELETE")
|
|
8328
|
+
var sizeSchema = z.union([
|
|
8329
|
+
z.literal("xs"),
|
|
8330
|
+
z.literal("sm"),
|
|
8331
|
+
z.literal("md"),
|
|
8332
|
+
z.literal("lg"),
|
|
8333
|
+
z.literal("xl")
|
|
8339
8334
|
]);
|
|
8340
|
-
var iconNamedSchema = z.object({
|
|
8341
|
-
name: z.string()
|
|
8342
|
-
});
|
|
8343
8335
|
var contextSchema = z.union([
|
|
8344
8336
|
z.literal("positive"),
|
|
8345
8337
|
z.literal("neutral"),
|
|
@@ -8350,18 +8342,107 @@ var contextSchema = z.union([
|
|
|
8350
8342
|
z.literal("info"),
|
|
8351
8343
|
z.literal("primary")
|
|
8352
8344
|
]);
|
|
8353
|
-
var
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
z.literal("
|
|
8360
|
-
z.literal("
|
|
8361
|
-
z.literal("
|
|
8345
|
+
var columnsLayoutBiasSchema = z.union([
|
|
8346
|
+
z.literal("none"),
|
|
8347
|
+
z.literal("left"),
|
|
8348
|
+
z.literal("right")
|
|
8349
|
+
]);
|
|
8350
|
+
var statusListLayoutStatusSchema = z.union([
|
|
8351
|
+
z.literal("not-done"),
|
|
8352
|
+
z.literal("pending"),
|
|
8353
|
+
z.literal("done")
|
|
8362
8354
|
]);
|
|
8363
8355
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
8364
|
-
var
|
|
8356
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
8357
|
+
$ref: z.string()
|
|
8358
|
+
});
|
|
8359
|
+
var modalLayoutTriggerSchema = z.object({
|
|
8360
|
+
title: z.string()
|
|
8361
|
+
});
|
|
8362
|
+
var httpMethodSchema = z.union([
|
|
8363
|
+
z.literal("GET"),
|
|
8364
|
+
z.literal("POST"),
|
|
8365
|
+
z.literal("PUT"),
|
|
8366
|
+
z.literal("PATCH"),
|
|
8367
|
+
z.literal("DELETE")
|
|
8368
|
+
]);
|
|
8369
|
+
var dividerLayoutSchema = z.object({
|
|
8370
|
+
type: z.literal("divider"),
|
|
8371
|
+
control: z.string().optional(),
|
|
8372
|
+
margin: sizeSchema.optional()
|
|
8373
|
+
});
|
|
8374
|
+
var listLayoutStatusSchema = z.union([
|
|
8375
|
+
z.literal("warning"),
|
|
8376
|
+
z.literal("neutral"),
|
|
8377
|
+
z.literal("positive")
|
|
8378
|
+
]);
|
|
8379
|
+
var headingLayoutSchema = z.object({
|
|
8380
|
+
type: z.literal("heading"),
|
|
8381
|
+
text: z.string(),
|
|
8382
|
+
size: sizeSchema.optional(),
|
|
8383
|
+
align: alignSchema.optional(),
|
|
8384
|
+
control: z.string().optional(),
|
|
8385
|
+
margin: sizeSchema.optional()
|
|
8386
|
+
});
|
|
8387
|
+
var formLayoutSchema = z.object({
|
|
8388
|
+
type: z.literal("form"),
|
|
8389
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
8390
|
+
schemaId: z.string(),
|
|
8391
|
+
control: z.string().optional(),
|
|
8392
|
+
margin: sizeSchema.optional()
|
|
8393
|
+
});
|
|
8394
|
+
var imageLayoutSchema = z.object({
|
|
8395
|
+
type: z.literal("image"),
|
|
8396
|
+
text: z.string().optional(),
|
|
8397
|
+
url: z.string(),
|
|
8398
|
+
size: sizeSchema.optional(),
|
|
8399
|
+
accessibilityDescription: z.string().optional(),
|
|
8400
|
+
control: z.string().optional(),
|
|
8401
|
+
margin: sizeSchema.optional()
|
|
8402
|
+
});
|
|
8403
|
+
var infoLayoutSchema = z.object({
|
|
8404
|
+
type: z.literal("info"),
|
|
8405
|
+
markdown: z.string(),
|
|
8406
|
+
align: alignSchema.optional(),
|
|
8407
|
+
control: z.string().optional(),
|
|
8408
|
+
margin: sizeSchema.optional()
|
|
8409
|
+
});
|
|
8410
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
8411
|
+
type: z.literal("loading-indicator"),
|
|
8412
|
+
size: sizeSchema.optional(),
|
|
8413
|
+
control: z.string().optional(),
|
|
8414
|
+
margin: sizeSchema.optional()
|
|
8415
|
+
});
|
|
8416
|
+
var paragraphLayoutSchema = z.object({
|
|
8417
|
+
type: z.literal("paragraph"),
|
|
8418
|
+
text: z.string(),
|
|
8419
|
+
align: alignSchema.optional(),
|
|
8420
|
+
control: z.string().optional(),
|
|
8421
|
+
margin: sizeSchema.optional()
|
|
8422
|
+
});
|
|
8423
|
+
var instructionsLayoutItemSchema = z.object({
|
|
8424
|
+
text: z.string(),
|
|
8425
|
+
context: contextSchema
|
|
8426
|
+
});
|
|
8427
|
+
var helpSchema = z.object({
|
|
8428
|
+
markdown: z.string()
|
|
8429
|
+
});
|
|
8430
|
+
var imageSchema = z.object({
|
|
8431
|
+
text: z.string().optional(),
|
|
8432
|
+
url: z.string(),
|
|
8433
|
+
accessibilityDescription: z.string().optional()
|
|
8434
|
+
});
|
|
8435
|
+
var summaryProviderSchema = z.object({
|
|
8436
|
+
providesTitle: z.boolean().optional(),
|
|
8437
|
+
providesDescription: z.boolean().optional(),
|
|
8438
|
+
providesIcon: z.boolean().optional(),
|
|
8439
|
+
providesImage: z.boolean().optional()
|
|
8440
|
+
});
|
|
8441
|
+
var validateAsyncSchema = z.object({
|
|
8442
|
+
param: z.string(),
|
|
8443
|
+
method: httpMethodSchema,
|
|
8444
|
+
url: z.string()
|
|
8445
|
+
});
|
|
8365
8446
|
var autocompleteTokenSchema = z.union([
|
|
8366
8447
|
z.literal("on"),
|
|
8367
8448
|
z.literal("name"),
|
|
@@ -8427,106 +8508,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
8427
8508
|
z.literal("fax"),
|
|
8428
8509
|
z.literal("pager")
|
|
8429
8510
|
]);
|
|
8430
|
-
var
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
type: z.literal("paragraph"),
|
|
8438
|
-
text: z.string(),
|
|
8439
|
-
align: alignSchema.optional(),
|
|
8440
|
-
control: z.string().optional(),
|
|
8441
|
-
margin: sizeSchema.optional()
|
|
8442
|
-
});
|
|
8443
|
-
var dividerLayoutSchema = z.object({
|
|
8444
|
-
type: z.literal("divider"),
|
|
8445
|
-
control: z.string().optional(),
|
|
8446
|
-
margin: sizeSchema.optional()
|
|
8447
|
-
});
|
|
8448
|
-
var listLayoutStatusSchema = z.union([
|
|
8449
|
-
z.literal("warning"),
|
|
8450
|
-
z.literal("neutral"),
|
|
8451
|
-
z.literal("positive")
|
|
8452
|
-
]);
|
|
8453
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
8454
|
-
$ref: z.string()
|
|
8455
|
-
});
|
|
8456
|
-
var imageLayoutSchema = z.object({
|
|
8457
|
-
type: z.literal("image"),
|
|
8458
|
-
text: z.string().optional(),
|
|
8459
|
-
url: z.string(),
|
|
8460
|
-
size: sizeSchema.optional(),
|
|
8461
|
-
accessibilityDescription: z.string().optional(),
|
|
8462
|
-
control: z.string().optional(),
|
|
8463
|
-
margin: sizeSchema.optional()
|
|
8464
|
-
});
|
|
8465
|
-
var statusListLayoutStatusSchema = z.union([
|
|
8466
|
-
z.literal("not-done"),
|
|
8467
|
-
z.literal("pending"),
|
|
8468
|
-
z.literal("done")
|
|
8469
|
-
]);
|
|
8470
|
-
var instructionsLayoutItemSchema = z.object({
|
|
8471
|
-
text: z.string(),
|
|
8472
|
-
context: contextSchema
|
|
8473
|
-
});
|
|
8474
|
-
var modalLayoutTriggerSchema = z.object({
|
|
8475
|
-
title: z.string()
|
|
8476
|
-
});
|
|
8477
|
-
var searchLayoutSchema = z.object({
|
|
8478
|
-
type: z.literal("search"),
|
|
8479
|
-
title: z.string(),
|
|
8480
|
-
method: httpMethodSchema,
|
|
8481
|
-
url: z.string(),
|
|
8482
|
-
param: z.string(),
|
|
8483
|
-
emptyMessage: z.string().optional(),
|
|
8484
|
-
control: z.string().optional(),
|
|
8485
|
-
margin: sizeSchema.optional()
|
|
8486
|
-
});
|
|
8487
|
-
var infoLayoutSchema = z.object({
|
|
8488
|
-
type: z.literal("info"),
|
|
8489
|
-
markdown: z.string(),
|
|
8490
|
-
align: alignSchema.optional(),
|
|
8491
|
-
control: z.string().optional(),
|
|
8492
|
-
margin: sizeSchema.optional()
|
|
8493
|
-
});
|
|
8494
|
-
var formLayoutSchema = z.object({
|
|
8495
|
-
type: z.literal("form"),
|
|
8496
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
8497
|
-
schemaId: z.string(),
|
|
8498
|
-
control: z.string().optional(),
|
|
8499
|
-
margin: sizeSchema.optional()
|
|
8500
|
-
});
|
|
8501
|
-
var headingLayoutSchema = z.object({
|
|
8502
|
-
type: z.literal("heading"),
|
|
8503
|
-
text: z.string(),
|
|
8504
|
-
size: sizeSchema.optional(),
|
|
8505
|
-
align: alignSchema.optional(),
|
|
8506
|
-
control: z.string().optional(),
|
|
8507
|
-
margin: sizeSchema.optional()
|
|
8508
|
-
});
|
|
8509
|
-
var markdownLayoutSchema = z.object({
|
|
8510
|
-
type: z.literal("markdown"),
|
|
8511
|
-
content: z.string(),
|
|
8512
|
-
align: alignSchema.optional(),
|
|
8513
|
-
control: z.string().optional(),
|
|
8514
|
-
margin: sizeSchema.optional()
|
|
8515
|
-
});
|
|
8516
|
-
var columnsLayoutBiasSchema = z.union([
|
|
8517
|
-
z.literal("none"),
|
|
8518
|
-
z.literal("left"),
|
|
8519
|
-
z.literal("right")
|
|
8511
|
+
var stringSchemaFormatSchema = z.union([
|
|
8512
|
+
z.literal("date"),
|
|
8513
|
+
z.literal("email"),
|
|
8514
|
+
z.literal("numeric"),
|
|
8515
|
+
z.literal("password"),
|
|
8516
|
+
z.literal("phone-number"),
|
|
8517
|
+
z.literal("base64url")
|
|
8520
8518
|
]);
|
|
8521
|
-
var helpSchema = z.object({
|
|
8522
|
-
markdown: z.string()
|
|
8523
|
-
});
|
|
8524
|
-
var searchSearchRequestSchema = z.object({
|
|
8525
|
-
url: z.string(),
|
|
8526
|
-
method: httpMethodSchema,
|
|
8527
|
-
param: z.string(),
|
|
8528
|
-
query: z.string()
|
|
8529
|
-
});
|
|
8530
8519
|
var jsonElementSchema = z.lazy(
|
|
8531
8520
|
() => z.union([
|
|
8532
8521
|
z.string(),
|
|
@@ -8536,6 +8525,7 @@ var jsonElementSchema = z.lazy(
|
|
|
8536
8525
|
z.array(jsonElementSchema)
|
|
8537
8526
|
]).nullable()
|
|
8538
8527
|
);
|
|
8528
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
8539
8529
|
var externalSchema = z.object({
|
|
8540
8530
|
url: z.string()
|
|
8541
8531
|
});
|
|
@@ -8543,42 +8533,28 @@ var stepErrorSchema = z.object({
|
|
|
8543
8533
|
error: z.string().optional(),
|
|
8544
8534
|
validation: jsonElementSchema.optional()
|
|
8545
8535
|
});
|
|
8546
|
-
var
|
|
8547
|
-
z.
|
|
8548
|
-
z.
|
|
8549
|
-
z.
|
|
8550
|
-
|
|
8551
|
-
z.
|
|
8552
|
-
z.literal("base64url")
|
|
8553
|
-
]);
|
|
8554
|
-
var summarySummariserSchema = z.object({
|
|
8555
|
-
defaultTitle: z.string().optional(),
|
|
8556
|
-
defaultDescription: z.string().optional(),
|
|
8557
|
-
defaultIcon: iconSchema.optional(),
|
|
8558
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
8559
|
-
providesTitle: z.boolean().optional(),
|
|
8560
|
-
providesDescription: z.boolean().optional(),
|
|
8561
|
-
providesIcon: z.boolean().optional(),
|
|
8562
|
-
providesImage: z.boolean().optional()
|
|
8536
|
+
var errorResponseBodySchema = z.object({
|
|
8537
|
+
refreshFormUrl: z.string().optional(),
|
|
8538
|
+
analytics: z.record(z.string()).optional(),
|
|
8539
|
+
error: z.string().optional(),
|
|
8540
|
+
validation: jsonElementSchema.optional(),
|
|
8541
|
+
refreshUrl: z.string().optional()
|
|
8563
8542
|
});
|
|
8564
|
-
var
|
|
8565
|
-
|
|
8543
|
+
var searchSearchRequestSchema = z.object({
|
|
8544
|
+
url: z.string(),
|
|
8566
8545
|
method: httpMethodSchema,
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
var summaryProviderSchema = z.object({
|
|
8570
|
-
providesTitle: z.boolean().optional(),
|
|
8571
|
-
providesDescription: z.boolean().optional(),
|
|
8572
|
-
providesIcon: z.boolean().optional(),
|
|
8573
|
-
providesImage: z.boolean().optional()
|
|
8546
|
+
param: z.string(),
|
|
8547
|
+
query: z.string()
|
|
8574
8548
|
});
|
|
8575
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
8576
8549
|
var navigationStackBehaviorSchema = z.union([
|
|
8577
8550
|
z.literal("default"),
|
|
8578
8551
|
z.literal("remove-previous"),
|
|
8579
8552
|
z.literal("remove-all"),
|
|
8580
8553
|
z.literal("replace-current")
|
|
8581
8554
|
]);
|
|
8555
|
+
var linkSchema = z.object({
|
|
8556
|
+
url: z.string()
|
|
8557
|
+
});
|
|
8582
8558
|
var actionTypeSchema = z.union([
|
|
8583
8559
|
z.literal("primary"),
|
|
8584
8560
|
z.literal("secondary"),
|
|
@@ -8586,9 +8562,11 @@ var actionTypeSchema = z.union([
|
|
|
8586
8562
|
z.literal("positive"),
|
|
8587
8563
|
z.literal("negative")
|
|
8588
8564
|
]);
|
|
8589
|
-
var
|
|
8590
|
-
|
|
8591
|
-
|
|
8565
|
+
var iconNamedSchema = z.object({
|
|
8566
|
+
name: z.string()
|
|
8567
|
+
});
|
|
8568
|
+
var iconTextSchema = z.object({
|
|
8569
|
+
text: z.string()
|
|
8592
8570
|
});
|
|
8593
8571
|
var actionSchema = z.object({
|
|
8594
8572
|
title: z.string().optional(),
|
|
@@ -8605,19 +8583,26 @@ var actionSchema = z.object({
|
|
|
8605
8583
|
timeout: z.number().optional(),
|
|
8606
8584
|
skipValidation: z.boolean().optional()
|
|
8607
8585
|
});
|
|
8608
|
-
var
|
|
8586
|
+
var markdownLayoutSchema = z.object({
|
|
8587
|
+
type: z.literal("markdown"),
|
|
8588
|
+
content: z.string(),
|
|
8589
|
+
align: alignSchema.optional(),
|
|
8590
|
+
control: z.string().optional(),
|
|
8591
|
+
margin: sizeSchema.optional()
|
|
8592
|
+
});
|
|
8593
|
+
var searchLayoutSchema = z.object({
|
|
8594
|
+
type: z.literal("search"),
|
|
8609
8595
|
title: z.string(),
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8596
|
+
method: httpMethodSchema,
|
|
8597
|
+
url: z.string(),
|
|
8598
|
+
param: z.string(),
|
|
8599
|
+
emptyMessage: z.string().optional(),
|
|
8600
|
+
control: z.string().optional(),
|
|
8601
|
+
margin: sizeSchema.optional()
|
|
8613
8602
|
});
|
|
8614
|
-
var
|
|
8615
|
-
action: actionSchema,
|
|
8603
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
8616
8604
|
title: z.string(),
|
|
8617
|
-
|
|
8618
|
-
disabled: z.boolean().optional(),
|
|
8619
|
-
icon: iconSchema.optional(),
|
|
8620
|
-
image: imageLayoutSchema.optional()
|
|
8605
|
+
action: actionSchema
|
|
8621
8606
|
});
|
|
8622
8607
|
var instructionsLayoutSchema = z.object({
|
|
8623
8608
|
type: z.literal("instructions"),
|
|
@@ -8626,26 +8611,38 @@ var instructionsLayoutSchema = z.object({
|
|
|
8626
8611
|
control: z.string().optional(),
|
|
8627
8612
|
margin: sizeSchema.optional()
|
|
8628
8613
|
});
|
|
8614
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
8629
8615
|
var behaviorSchema = z.object({
|
|
8630
8616
|
action: actionSchema.optional(),
|
|
8631
8617
|
link: linkSchema.optional()
|
|
8632
8618
|
});
|
|
8633
|
-
var
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8619
|
+
var reviewLayoutFieldSchema = z.object({
|
|
8620
|
+
label: z.string(),
|
|
8621
|
+
value: z.string(),
|
|
8622
|
+
rawValue: z.string().optional(),
|
|
8623
|
+
help: helpSchema.optional()
|
|
8624
|
+
});
|
|
8625
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
8626
|
+
title: z.string(),
|
|
8627
|
+
accessibilityDescription: z.string().optional(),
|
|
8628
|
+
behavior: behaviorSchema
|
|
8629
|
+
});
|
|
8630
|
+
var summarySummariserSchema = z.object({
|
|
8631
|
+
defaultTitle: z.string().optional(),
|
|
8632
|
+
defaultDescription: z.string().optional(),
|
|
8633
|
+
defaultIcon: iconSchema.optional(),
|
|
8634
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
8635
|
+
providesTitle: z.boolean().optional(),
|
|
8636
|
+
providesDescription: z.boolean().optional(),
|
|
8637
|
+
providesIcon: z.boolean().optional(),
|
|
8638
|
+
providesImage: z.boolean().optional()
|
|
8643
8639
|
});
|
|
8644
|
-
var
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8640
|
+
var linkHandlerSchema = z.object({
|
|
8641
|
+
regexPattern: z.string(),
|
|
8642
|
+
action: actionSchema
|
|
8643
|
+
});
|
|
8644
|
+
var actionResponseBodySchema = z.object({
|
|
8645
|
+
action: actionSchema
|
|
8649
8646
|
});
|
|
8650
8647
|
var searchResultSearchSchema = z.object({
|
|
8651
8648
|
type: z.literal("search"),
|
|
@@ -8663,20 +8660,6 @@ var searchResultActionSchema = z.object({
|
|
|
8663
8660
|
image: imageLayoutSchema.optional(),
|
|
8664
8661
|
value: actionSchema
|
|
8665
8662
|
});
|
|
8666
|
-
var actionResponseBodySchema = z.object({
|
|
8667
|
-
action: actionSchema
|
|
8668
|
-
});
|
|
8669
|
-
var errorResponseBodySchema = z.object({
|
|
8670
|
-
refreshFormUrl: z.string().optional(),
|
|
8671
|
-
analytics: z.record(z.string()).optional(),
|
|
8672
|
-
error: z.string().optional(),
|
|
8673
|
-
validation: jsonElementSchema.optional(),
|
|
8674
|
-
refreshUrl: z.string().optional()
|
|
8675
|
-
});
|
|
8676
|
-
var linkHandlerSchema = z.object({
|
|
8677
|
-
regexPattern: z.string(),
|
|
8678
|
-
action: actionSchema
|
|
8679
|
-
});
|
|
8680
8663
|
var pollingOnErrorSchema = z.object({
|
|
8681
8664
|
action: actionSchema
|
|
8682
8665
|
});
|
|
@@ -8684,33 +8667,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
8684
8667
|
title: z.string().optional(),
|
|
8685
8668
|
action: actionSchema
|
|
8686
8669
|
});
|
|
8687
|
-
var
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
8692
|
-
title: z.string(),
|
|
8693
|
-
accessibilityDescription: z.string().optional(),
|
|
8694
|
-
behavior: behaviorSchema
|
|
8695
|
-
});
|
|
8696
|
-
var listLayoutSchema = z.object({
|
|
8697
|
-
type: z.literal("list"),
|
|
8698
|
-
items: z.array(listLayoutItemSchema),
|
|
8699
|
-
title: z.string().optional(),
|
|
8700
|
-
control: z.string().optional(),
|
|
8701
|
-
margin: sizeSchema.optional()
|
|
8702
|
-
});
|
|
8703
|
-
var decisionLayoutSchema = z.object({
|
|
8704
|
-
type: z.literal("decision"),
|
|
8670
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
8671
|
+
var buttonLayoutSchema = z.object({
|
|
8672
|
+
type: z.literal("button"),
|
|
8673
|
+
size: sizeSchema.optional(),
|
|
8705
8674
|
title: z.string().optional(),
|
|
8706
|
-
|
|
8675
|
+
action: actionSchema,
|
|
8676
|
+
context: contextSchema.optional(),
|
|
8677
|
+
disabled: z.boolean().optional(),
|
|
8678
|
+
pinOrder: z.number().optional(),
|
|
8707
8679
|
control: z.string().optional(),
|
|
8708
8680
|
margin: sizeSchema.optional()
|
|
8709
8681
|
});
|
|
8710
|
-
var
|
|
8682
|
+
var decisionLayoutOptionSchema = z.object({
|
|
8683
|
+
action: actionSchema,
|
|
8711
8684
|
title: z.string(),
|
|
8712
|
-
|
|
8713
|
-
|
|
8685
|
+
description: z.string().optional(),
|
|
8686
|
+
disabled: z.boolean().optional(),
|
|
8687
|
+
icon: iconSchema.optional(),
|
|
8688
|
+
image: imageLayoutSchema.optional()
|
|
8689
|
+
});
|
|
8690
|
+
var alertLayoutSchema = z.object({
|
|
8691
|
+
type: z.literal("alert"),
|
|
8692
|
+
markdown: z.string(),
|
|
8693
|
+
context: contextSchema.optional(),
|
|
8694
|
+
control: z.string().optional(),
|
|
8695
|
+
margin: sizeSchema.optional(),
|
|
8696
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
8714
8697
|
});
|
|
8715
8698
|
var reviewLayoutSchema = z.object({
|
|
8716
8699
|
type: z.literal("review"),
|
|
@@ -8722,27 +8705,16 @@ var reviewLayoutSchema = z.object({
|
|
|
8722
8705
|
control: z.string().optional(),
|
|
8723
8706
|
margin: sizeSchema.optional()
|
|
8724
8707
|
});
|
|
8725
|
-
var
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
timeout: z.number().optional(),
|
|
8731
|
-
maxAttempts: z.number(),
|
|
8732
|
-
onError: pollingOnErrorSchema
|
|
8733
|
-
});
|
|
8734
|
-
var navigationSchema = z.object({
|
|
8735
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
8736
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
8737
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
8708
|
+
var listLayoutItemSchema = z.object({
|
|
8709
|
+
title: z.string(),
|
|
8710
|
+
description: z.string().optional(),
|
|
8711
|
+
icon: iconSchema,
|
|
8712
|
+
status: listLayoutStatusSchema.optional()
|
|
8738
8713
|
});
|
|
8739
|
-
var
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
control: z.string().optional(),
|
|
8744
|
-
margin: sizeSchema.optional(),
|
|
8745
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
8714
|
+
var itemCallToActionSchema = z.object({
|
|
8715
|
+
title: z.string(),
|
|
8716
|
+
accessibilityDescription: z.string().optional(),
|
|
8717
|
+
behavior: behaviorSchema
|
|
8746
8718
|
});
|
|
8747
8719
|
var statusListLayoutItemSchema = z.object({
|
|
8748
8720
|
title: z.string(),
|
|
@@ -8751,9 +8723,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
8751
8723
|
status: statusListLayoutStatusSchema.optional(),
|
|
8752
8724
|
callToAction: itemCallToActionSchema.optional()
|
|
8753
8725
|
});
|
|
8754
|
-
var searchResponseBodySchema = z.object({
|
|
8755
|
-
results: z.array(searchResultSchema)
|
|
8756
|
-
});
|
|
8757
8726
|
var blobSchemaSchema = z.object({
|
|
8758
8727
|
type: z.literal("blob"),
|
|
8759
8728
|
promoted: z.boolean().optional(),
|
|
@@ -8792,6 +8761,34 @@ var constSchemaSchema = z.object({
|
|
|
8792
8761
|
analyticsId: z.string().optional(),
|
|
8793
8762
|
disabled: z.boolean().optional()
|
|
8794
8763
|
});
|
|
8764
|
+
var pollingSchema = z.object({
|
|
8765
|
+
url: z.string(),
|
|
8766
|
+
interval: z.number().optional(),
|
|
8767
|
+
delay: z.number().optional(),
|
|
8768
|
+
timeout: z.number().optional(),
|
|
8769
|
+
maxAttempts: z.number(),
|
|
8770
|
+
onError: pollingOnErrorSchema
|
|
8771
|
+
});
|
|
8772
|
+
var navigationSchema = z.object({
|
|
8773
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
8774
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
8775
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
8776
|
+
});
|
|
8777
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
8778
|
+
var decisionLayoutSchema = z.object({
|
|
8779
|
+
type: z.literal("decision"),
|
|
8780
|
+
title: z.string().optional(),
|
|
8781
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
8782
|
+
control: z.string().optional(),
|
|
8783
|
+
margin: sizeSchema.optional()
|
|
8784
|
+
});
|
|
8785
|
+
var listLayoutSchema = z.object({
|
|
8786
|
+
type: z.literal("list"),
|
|
8787
|
+
items: z.array(listLayoutItemSchema),
|
|
8788
|
+
title: z.string().optional(),
|
|
8789
|
+
control: z.string().optional(),
|
|
8790
|
+
margin: sizeSchema.optional()
|
|
8791
|
+
});
|
|
8795
8792
|
var statusListLayoutSchema = z.object({
|
|
8796
8793
|
type: z.literal("status-list"),
|
|
8797
8794
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -8799,6 +8796,19 @@ var statusListLayoutSchema = z.object({
|
|
|
8799
8796
|
control: z.string().optional(),
|
|
8800
8797
|
margin: sizeSchema.optional()
|
|
8801
8798
|
});
|
|
8799
|
+
var searchResponseBodySchema = z.object({
|
|
8800
|
+
results: z.array(searchResultSchema)
|
|
8801
|
+
});
|
|
8802
|
+
var columnsLayoutSchema = z.lazy(
|
|
8803
|
+
() => z.object({
|
|
8804
|
+
type: z.literal("columns"),
|
|
8805
|
+
left: z.array(layoutSchema),
|
|
8806
|
+
right: z.array(layoutSchema),
|
|
8807
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
8808
|
+
control: z.string().optional(),
|
|
8809
|
+
margin: sizeSchema.optional()
|
|
8810
|
+
})
|
|
8811
|
+
);
|
|
8802
8812
|
var layoutSchema = z.lazy(
|
|
8803
8813
|
() => z.union([
|
|
8804
8814
|
alertLayoutSchema,
|
|
@@ -8822,26 +8832,6 @@ var layoutSchema = z.lazy(
|
|
|
8822
8832
|
statusListLayoutSchema
|
|
8823
8833
|
])
|
|
8824
8834
|
);
|
|
8825
|
-
var boxLayoutSchema = z.lazy(
|
|
8826
|
-
() => z.object({
|
|
8827
|
-
type: z.literal("box"),
|
|
8828
|
-
components: z.array(layoutSchema),
|
|
8829
|
-
width: sizeSchema.optional(),
|
|
8830
|
-
border: z.boolean().optional(),
|
|
8831
|
-
control: z.string().optional(),
|
|
8832
|
-
margin: sizeSchema.optional()
|
|
8833
|
-
})
|
|
8834
|
-
);
|
|
8835
|
-
var columnsLayoutSchema = z.lazy(
|
|
8836
|
-
() => z.object({
|
|
8837
|
-
type: z.literal("columns"),
|
|
8838
|
-
left: z.array(layoutSchema),
|
|
8839
|
-
right: z.array(layoutSchema),
|
|
8840
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
8841
|
-
control: z.string().optional(),
|
|
8842
|
-
margin: sizeSchema.optional()
|
|
8843
|
-
})
|
|
8844
|
-
);
|
|
8845
8835
|
var modalLayoutSchema = z.lazy(
|
|
8846
8836
|
() => z.object({
|
|
8847
8837
|
type: z.literal("modal"),
|
|
@@ -8857,25 +8847,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
8857
8847
|
components: z.array(layoutSchema)
|
|
8858
8848
|
})
|
|
8859
8849
|
);
|
|
8860
|
-
var
|
|
8850
|
+
var boxLayoutSchema = z.lazy(
|
|
8861
8851
|
() => z.object({
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
schemas: z.array(schemaSchema),
|
|
8869
|
-
layout: z.array(layoutSchema),
|
|
8870
|
-
description: z.string().optional(),
|
|
8871
|
-
model: jsonElementSchema.optional(),
|
|
8872
|
-
external: externalSchema.optional(),
|
|
8873
|
-
polling: pollingSchema.optional(),
|
|
8874
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
8875
|
-
analytics: z.record(z.string()).optional(),
|
|
8876
|
-
errors: stepErrorSchema.optional(),
|
|
8877
|
-
navigation: navigationSchema.optional(),
|
|
8878
|
-
refreshUrl: z.string().optional()
|
|
8852
|
+
type: z.literal("box"),
|
|
8853
|
+
components: z.array(layoutSchema),
|
|
8854
|
+
width: sizeSchema.optional(),
|
|
8855
|
+
border: z.boolean().optional(),
|
|
8856
|
+
control: z.string().optional(),
|
|
8857
|
+
margin: sizeSchema.optional()
|
|
8879
8858
|
})
|
|
8880
8859
|
);
|
|
8881
8860
|
var schemaSchema = z.lazy(
|
|
@@ -9101,17 +9080,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
9101
9080
|
help: helpSchema.optional()
|
|
9102
9081
|
})
|
|
9103
9082
|
);
|
|
9104
|
-
var
|
|
9083
|
+
var persistAsyncSchema = z.lazy(
|
|
9084
|
+
() => z.object({
|
|
9085
|
+
param: z.string(),
|
|
9086
|
+
idProperty: z.string(),
|
|
9087
|
+
schema: schemaSchema,
|
|
9088
|
+
url: z.string(),
|
|
9089
|
+
method: httpMethodSchema
|
|
9090
|
+
})
|
|
9091
|
+
);
|
|
9092
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
9105
9093
|
() => z.object({
|
|
9106
9094
|
type: z.literal("array"),
|
|
9107
9095
|
promoted: z.boolean().optional(),
|
|
9108
9096
|
$id: z.string().optional(),
|
|
9109
|
-
items: schemaSchema,
|
|
9110
|
-
addItemTitle: z.string(),
|
|
9111
|
-
editItemTitle: z.string(),
|
|
9112
|
-
minItems: z.number().optional(),
|
|
9113
|
-
maxItems: z.number().optional(),
|
|
9114
|
-
placeholder: z.string().optional(),
|
|
9097
|
+
items: z.array(schemaSchema),
|
|
9115
9098
|
title: z.string().optional(),
|
|
9116
9099
|
description: z.string().optional(),
|
|
9117
9100
|
control: z.string().optional(),
|
|
@@ -9119,30 +9102,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
9119
9102
|
icon: iconSchema.optional(),
|
|
9120
9103
|
image: imageSchema.optional(),
|
|
9121
9104
|
keywords: z.array(z.string()).optional(),
|
|
9122
|
-
summary:
|
|
9105
|
+
summary: summaryProviderSchema.optional(),
|
|
9123
9106
|
analyticsId: z.string().optional(),
|
|
9124
9107
|
persistAsync: persistAsyncSchema.optional(),
|
|
9125
9108
|
validationAsync: validateAsyncSchema.optional(),
|
|
9126
|
-
alert: alertLayoutSchema.optional()
|
|
9127
|
-
validationMessages: z.record(z.string()).optional(),
|
|
9128
|
-
disabled: z.boolean().optional()
|
|
9129
|
-
})
|
|
9130
|
-
);
|
|
9131
|
-
var persistAsyncSchema = z.lazy(
|
|
9132
|
-
() => z.object({
|
|
9133
|
-
param: z.string(),
|
|
9134
|
-
idProperty: z.string(),
|
|
9135
|
-
schema: schemaSchema,
|
|
9136
|
-
url: z.string(),
|
|
9137
|
-
method: httpMethodSchema
|
|
9109
|
+
alert: alertLayoutSchema.optional()
|
|
9138
9110
|
})
|
|
9139
9111
|
);
|
|
9140
|
-
var
|
|
9112
|
+
var arraySchemaListSchema = z.lazy(
|
|
9141
9113
|
() => z.object({
|
|
9142
9114
|
type: z.literal("array"),
|
|
9143
9115
|
promoted: z.boolean().optional(),
|
|
9144
9116
|
$id: z.string().optional(),
|
|
9145
|
-
items:
|
|
9117
|
+
items: schemaSchema,
|
|
9118
|
+
addItemTitle: z.string(),
|
|
9119
|
+
editItemTitle: z.string(),
|
|
9120
|
+
minItems: z.number().optional(),
|
|
9121
|
+
maxItems: z.number().optional(),
|
|
9122
|
+
placeholder: z.string().optional(),
|
|
9146
9123
|
title: z.string().optional(),
|
|
9147
9124
|
description: z.string().optional(),
|
|
9148
9125
|
control: z.string().optional(),
|
|
@@ -9150,11 +9127,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
9150
9127
|
icon: iconSchema.optional(),
|
|
9151
9128
|
image: imageSchema.optional(),
|
|
9152
9129
|
keywords: z.array(z.string()).optional(),
|
|
9153
|
-
summary:
|
|
9130
|
+
summary: summarySummariserSchema.optional(),
|
|
9154
9131
|
analyticsId: z.string().optional(),
|
|
9155
9132
|
persistAsync: persistAsyncSchema.optional(),
|
|
9156
9133
|
validationAsync: validateAsyncSchema.optional(),
|
|
9157
|
-
alert: alertLayoutSchema.optional()
|
|
9134
|
+
alert: alertLayoutSchema.optional(),
|
|
9135
|
+
validationMessages: z.record(z.string()).optional(),
|
|
9136
|
+
disabled: z.boolean().optional()
|
|
9137
|
+
})
|
|
9138
|
+
);
|
|
9139
|
+
var stepSchema = z.lazy(
|
|
9140
|
+
() => z.object({
|
|
9141
|
+
key: z.string().optional(),
|
|
9142
|
+
type: z.string().optional(),
|
|
9143
|
+
actions: z.array(actionSchema).optional(),
|
|
9144
|
+
refreshFormUrl: z.string().optional(),
|
|
9145
|
+
id: z.string(),
|
|
9146
|
+
title: z.string(),
|
|
9147
|
+
schemas: z.array(schemaSchema),
|
|
9148
|
+
layout: z.array(layoutSchema),
|
|
9149
|
+
description: z.string().optional(),
|
|
9150
|
+
model: jsonElementSchema.optional(),
|
|
9151
|
+
external: externalSchema.optional(),
|
|
9152
|
+
polling: pollingSchema.optional(),
|
|
9153
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
9154
|
+
analytics: z.record(z.string()).optional(),
|
|
9155
|
+
errors: stepErrorSchema.optional(),
|
|
9156
|
+
navigation: navigationSchema.optional(),
|
|
9157
|
+
refreshUrl: z.string().optional()
|
|
9158
9158
|
})
|
|
9159
9159
|
);
|
|
9160
9160
|
var validateStep = (step) => validate(step, stepSchema);
|