@wise/dynamic-flow-client 4.0.3 → 4.0.4-experimental-df596b9
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 +437 -433
- package/build/main.mjs +437 -433
- package/build/types/revamp/renderers/stepComponentToProps.d.ts +1 -1
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -5404,11 +5404,37 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5404
5404
|
quotelessJson,
|
|
5405
5405
|
ZodError
|
|
5406
5406
|
});
|
|
5407
|
-
var
|
|
5408
|
-
|
|
5409
|
-
url: z.string()
|
|
5410
|
-
|
|
5411
|
-
|
|
5407
|
+
var linkBehaviorSchema = z.object({
|
|
5408
|
+
type: z.literal("link"),
|
|
5409
|
+
url: z.string()
|
|
5410
|
+
});
|
|
5411
|
+
var navigationStackBehaviorSchema = z.union([
|
|
5412
|
+
z.literal("default"),
|
|
5413
|
+
z.literal("remove-previous"),
|
|
5414
|
+
z.literal("remove-all"),
|
|
5415
|
+
z.literal("replace-current")
|
|
5416
|
+
]);
|
|
5417
|
+
var jsonElementSchema = z.lazy(
|
|
5418
|
+
() => z.union([
|
|
5419
|
+
z.string(),
|
|
5420
|
+
z.number(),
|
|
5421
|
+
z.boolean(),
|
|
5422
|
+
z.record(jsonElementSchema),
|
|
5423
|
+
z.array(jsonElementSchema)
|
|
5424
|
+
]).nullable()
|
|
5425
|
+
);
|
|
5426
|
+
var helpSchema = z.object({
|
|
5427
|
+
markdown: z.string()
|
|
5428
|
+
});
|
|
5429
|
+
var actionTypeSchema = z.union([
|
|
5430
|
+
z.literal("primary"),
|
|
5431
|
+
z.literal("secondary"),
|
|
5432
|
+
z.literal("link"),
|
|
5433
|
+
z.literal("positive"),
|
|
5434
|
+
z.literal("negative")
|
|
5435
|
+
]);
|
|
5436
|
+
var linkSchema = z.object({
|
|
5437
|
+
url: z.string()
|
|
5412
5438
|
});
|
|
5413
5439
|
var httpMethodSchema = z.union([
|
|
5414
5440
|
z.literal("GET"),
|
|
@@ -5417,8 +5443,54 @@ var httpMethodSchema = z.union([
|
|
|
5417
5443
|
z.literal("PATCH"),
|
|
5418
5444
|
z.literal("DELETE")
|
|
5419
5445
|
]);
|
|
5420
|
-
var
|
|
5421
|
-
|
|
5446
|
+
var imageSchema = z.object({
|
|
5447
|
+
text: z.string().optional(),
|
|
5448
|
+
url: z.string().optional(),
|
|
5449
|
+
uri: z.string().optional(),
|
|
5450
|
+
accessibilityDescription: z.string().optional()
|
|
5451
|
+
});
|
|
5452
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5453
|
+
var validateAsyncSchema = z.object({
|
|
5454
|
+
param: z.string(),
|
|
5455
|
+
method: httpMethodSchema,
|
|
5456
|
+
url: z.string()
|
|
5457
|
+
});
|
|
5458
|
+
var summaryProviderSchema = z.object({
|
|
5459
|
+
providesTitle: z.boolean().optional(),
|
|
5460
|
+
providesDescription: z.boolean().optional(),
|
|
5461
|
+
providesIcon: z.boolean().optional(),
|
|
5462
|
+
providesImage: z.boolean().optional()
|
|
5463
|
+
});
|
|
5464
|
+
var externalSchema = z.object({
|
|
5465
|
+
url: z.string()
|
|
5466
|
+
});
|
|
5467
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5468
|
+
z.literal("none"),
|
|
5469
|
+
z.literal("left"),
|
|
5470
|
+
z.literal("right")
|
|
5471
|
+
]);
|
|
5472
|
+
var sizeSchema = z.union([
|
|
5473
|
+
z.literal("xs"),
|
|
5474
|
+
z.literal("sm"),
|
|
5475
|
+
z.literal("md"),
|
|
5476
|
+
z.literal("lg"),
|
|
5477
|
+
z.literal("xl")
|
|
5478
|
+
]);
|
|
5479
|
+
var dividerLayoutSchema = z.object({
|
|
5480
|
+
type: z.literal("divider"),
|
|
5481
|
+
control: z.string().optional(),
|
|
5482
|
+
margin: sizeSchema.optional()
|
|
5483
|
+
});
|
|
5484
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5485
|
+
z.literal("not-done"),
|
|
5486
|
+
z.literal("pending"),
|
|
5487
|
+
z.literal("done")
|
|
5488
|
+
]);
|
|
5489
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5490
|
+
type: z.literal("loading-indicator"),
|
|
5491
|
+
size: sizeSchema.optional(),
|
|
5492
|
+
control: z.string().optional(),
|
|
5493
|
+
margin: sizeSchema.optional()
|
|
5422
5494
|
});
|
|
5423
5495
|
var contextSchema = z.union([
|
|
5424
5496
|
z.literal("positive"),
|
|
@@ -5430,24 +5502,93 @@ var contextSchema = z.union([
|
|
|
5430
5502
|
z.literal("info"),
|
|
5431
5503
|
z.literal("primary")
|
|
5432
5504
|
]);
|
|
5433
|
-
var
|
|
5434
|
-
text: z.string()
|
|
5505
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5506
|
+
text: z.string(),
|
|
5507
|
+
context: contextSchema,
|
|
5508
|
+
tag: z.string().optional()
|
|
5509
|
+
});
|
|
5510
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5511
|
+
$ref: z.string()
|
|
5512
|
+
});
|
|
5513
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5514
|
+
title: z.string()
|
|
5515
|
+
});
|
|
5516
|
+
var instructionsLayoutSchema = z.object({
|
|
5517
|
+
type: z.literal("instructions"),
|
|
5518
|
+
title: z.string().optional(),
|
|
5519
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
5520
|
+
control: z.string().optional(),
|
|
5521
|
+
margin: sizeSchema.optional()
|
|
5522
|
+
});
|
|
5523
|
+
var reviewLayoutFieldSchema = z.object({
|
|
5524
|
+
label: z.string(),
|
|
5525
|
+
value: z.string(),
|
|
5526
|
+
rawValue: z.string().optional(),
|
|
5527
|
+
help: helpSchema.optional(),
|
|
5528
|
+
tag: z.string().optional()
|
|
5435
5529
|
});
|
|
5436
|
-
var sizeSchema = z.union([
|
|
5437
|
-
z.literal("xs"),
|
|
5438
|
-
z.literal("sm"),
|
|
5439
|
-
z.literal("md"),
|
|
5440
|
-
z.literal("lg"),
|
|
5441
|
-
z.literal("xl")
|
|
5442
|
-
]);
|
|
5443
|
-
var autocapitalizationTypeSchema = z.union([
|
|
5444
|
-
z.literal("none"),
|
|
5445
|
-
z.literal("characters"),
|
|
5446
|
-
z.literal("sentences"),
|
|
5447
|
-
z.literal("words")
|
|
5448
|
-
]);
|
|
5449
5530
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5450
|
-
var
|
|
5531
|
+
var searchLayoutSchema = z.object({
|
|
5532
|
+
type: z.literal("search"),
|
|
5533
|
+
title: z.string(),
|
|
5534
|
+
method: httpMethodSchema,
|
|
5535
|
+
url: z.string(),
|
|
5536
|
+
param: z.string(),
|
|
5537
|
+
emptyMessage: z.string().optional(),
|
|
5538
|
+
control: z.string().optional(),
|
|
5539
|
+
margin: sizeSchema.optional()
|
|
5540
|
+
});
|
|
5541
|
+
var headingLayoutSchema = z.object({
|
|
5542
|
+
type: z.literal("heading"),
|
|
5543
|
+
text: z.string(),
|
|
5544
|
+
size: sizeSchema.optional(),
|
|
5545
|
+
align: alignSchema.optional(),
|
|
5546
|
+
control: z.string().optional(),
|
|
5547
|
+
margin: sizeSchema.optional()
|
|
5548
|
+
});
|
|
5549
|
+
var imageLayoutSchema = z.object({
|
|
5550
|
+
type: z.literal("image"),
|
|
5551
|
+
text: z.string().optional(),
|
|
5552
|
+
url: z.string().optional(),
|
|
5553
|
+
accessibilityDescription: z.string().optional(),
|
|
5554
|
+
content: imageSchema.optional(),
|
|
5555
|
+
size: sizeSchema.optional(),
|
|
5556
|
+
control: z.string().optional(),
|
|
5557
|
+
margin: sizeSchema.optional(),
|
|
5558
|
+
align: alignSchema.optional()
|
|
5559
|
+
});
|
|
5560
|
+
var markdownLayoutSchema = z.object({
|
|
5561
|
+
type: z.literal("markdown"),
|
|
5562
|
+
content: z.string(),
|
|
5563
|
+
align: alignSchema.optional(),
|
|
5564
|
+
control: z.string().optional(),
|
|
5565
|
+
margin: sizeSchema.optional()
|
|
5566
|
+
});
|
|
5567
|
+
var paragraphLayoutSchema = z.object({
|
|
5568
|
+
type: z.literal("paragraph"),
|
|
5569
|
+
text: z.string(),
|
|
5570
|
+
align: alignSchema.optional(),
|
|
5571
|
+
control: z.string().optional(),
|
|
5572
|
+
margin: sizeSchema.optional()
|
|
5573
|
+
});
|
|
5574
|
+
var listLayoutStatusSchema = z.union([
|
|
5575
|
+
z.literal("warning"),
|
|
5576
|
+
z.literal("neutral"),
|
|
5577
|
+
z.literal("positive")
|
|
5578
|
+
]);
|
|
5579
|
+
var errorResponseBodySchema = z.object({
|
|
5580
|
+
refreshFormUrl: z.string().optional(),
|
|
5581
|
+
analytics: z.record(z.string()).optional(),
|
|
5582
|
+
error: z.string().optional(),
|
|
5583
|
+
validation: jsonElementSchema.optional(),
|
|
5584
|
+
refreshUrl: z.string().optional()
|
|
5585
|
+
});
|
|
5586
|
+
var searchSearchRequestSchema = z.object({
|
|
5587
|
+
url: z.string(),
|
|
5588
|
+
method: httpMethodSchema,
|
|
5589
|
+
param: z.string(),
|
|
5590
|
+
query: z.string()
|
|
5591
|
+
});
|
|
5451
5592
|
var autocompleteTokenSchema = z.union([
|
|
5452
5593
|
z.literal("on"),
|
|
5453
5594
|
z.literal("name"),
|
|
@@ -5513,182 +5654,29 @@ var autocompleteTokenSchema = z.union([
|
|
|
5513
5654
|
z.literal("fax"),
|
|
5514
5655
|
z.literal("pager")
|
|
5515
5656
|
]);
|
|
5516
|
-
var
|
|
5517
|
-
type: z.literal("loading-indicator"),
|
|
5518
|
-
size: sizeSchema.optional(),
|
|
5519
|
-
control: z.string().optional(),
|
|
5520
|
-
margin: sizeSchema.optional()
|
|
5521
|
-
});
|
|
5522
|
-
var paragraphLayoutSchema = z.object({
|
|
5523
|
-
type: z.literal("paragraph"),
|
|
5524
|
-
text: z.string(),
|
|
5525
|
-
align: alignSchema.optional(),
|
|
5526
|
-
control: z.string().optional(),
|
|
5527
|
-
margin: sizeSchema.optional()
|
|
5528
|
-
});
|
|
5529
|
-
var dividerLayoutSchema = z.object({
|
|
5530
|
-
type: z.literal("divider"),
|
|
5531
|
-
control: z.string().optional(),
|
|
5532
|
-
margin: sizeSchema.optional()
|
|
5533
|
-
});
|
|
5534
|
-
var listLayoutStatusSchema = z.union([
|
|
5535
|
-
z.literal("warning"),
|
|
5536
|
-
z.literal("neutral"),
|
|
5537
|
-
z.literal("positive")
|
|
5538
|
-
]);
|
|
5539
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5540
|
-
$ref: z.string()
|
|
5541
|
-
});
|
|
5542
|
-
var imageLayoutSchema = z.object({
|
|
5543
|
-
type: z.literal("image"),
|
|
5544
|
-
text: z.string().optional(),
|
|
5545
|
-
url: z.string().optional(),
|
|
5546
|
-
accessibilityDescription: z.string().optional(),
|
|
5547
|
-
content: imageSchema.optional(),
|
|
5548
|
-
size: sizeSchema.optional(),
|
|
5549
|
-
control: z.string().optional(),
|
|
5550
|
-
margin: sizeSchema.optional(),
|
|
5551
|
-
align: alignSchema.optional()
|
|
5552
|
-
});
|
|
5553
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5554
|
-
z.literal("not-done"),
|
|
5555
|
-
z.literal("pending"),
|
|
5556
|
-
z.literal("done")
|
|
5557
|
-
]);
|
|
5558
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5559
|
-
text: z.string(),
|
|
5560
|
-
context: contextSchema,
|
|
5561
|
-
tag: z.string().optional()
|
|
5562
|
-
});
|
|
5563
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5564
|
-
title: z.string()
|
|
5565
|
-
});
|
|
5566
|
-
var searchLayoutSchema = z.object({
|
|
5567
|
-
type: z.literal("search"),
|
|
5568
|
-
title: z.string(),
|
|
5569
|
-
method: httpMethodSchema,
|
|
5570
|
-
url: z.string(),
|
|
5571
|
-
param: z.string(),
|
|
5572
|
-
emptyMessage: z.string().optional(),
|
|
5573
|
-
control: z.string().optional(),
|
|
5574
|
-
margin: sizeSchema.optional()
|
|
5575
|
-
});
|
|
5576
|
-
var infoLayoutSchema = z.object({
|
|
5577
|
-
type: z.literal("info"),
|
|
5578
|
-
markdown: z.string(),
|
|
5579
|
-
align: alignSchema.optional(),
|
|
5580
|
-
control: z.string().optional(),
|
|
5581
|
-
margin: sizeSchema.optional()
|
|
5582
|
-
});
|
|
5583
|
-
var formLayoutSchema = z.object({
|
|
5584
|
-
type: z.literal("form"),
|
|
5585
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5586
|
-
schemaId: z.string(),
|
|
5587
|
-
control: z.string().optional(),
|
|
5588
|
-
margin: sizeSchema.optional()
|
|
5589
|
-
});
|
|
5590
|
-
var headingLayoutSchema = z.object({
|
|
5591
|
-
type: z.literal("heading"),
|
|
5592
|
-
text: z.string(),
|
|
5593
|
-
size: sizeSchema.optional(),
|
|
5594
|
-
align: alignSchema.optional(),
|
|
5595
|
-
control: z.string().optional(),
|
|
5596
|
-
margin: sizeSchema.optional()
|
|
5597
|
-
});
|
|
5598
|
-
var markdownLayoutSchema = z.object({
|
|
5599
|
-
type: z.literal("markdown"),
|
|
5600
|
-
content: z.string(),
|
|
5601
|
-
align: alignSchema.optional(),
|
|
5602
|
-
control: z.string().optional(),
|
|
5603
|
-
margin: sizeSchema.optional()
|
|
5604
|
-
});
|
|
5605
|
-
var columnsLayoutBiasSchema = z.union([
|
|
5657
|
+
var autocapitalizationTypeSchema = z.union([
|
|
5606
5658
|
z.literal("none"),
|
|
5607
|
-
z.literal("
|
|
5608
|
-
z.literal("
|
|
5609
|
-
|
|
5610
|
-
var helpSchema = z.object({
|
|
5611
|
-
markdown: z.string()
|
|
5612
|
-
});
|
|
5613
|
-
var searchSearchRequestSchema = z.object({
|
|
5614
|
-
url: z.string(),
|
|
5615
|
-
method: httpMethodSchema,
|
|
5616
|
-
param: z.string(),
|
|
5617
|
-
query: z.string()
|
|
5618
|
-
});
|
|
5619
|
-
var jsonElementSchema = z.lazy(
|
|
5620
|
-
() => z.union([
|
|
5621
|
-
z.string(),
|
|
5622
|
-
z.number(),
|
|
5623
|
-
z.boolean(),
|
|
5624
|
-
z.record(jsonElementSchema),
|
|
5625
|
-
z.array(jsonElementSchema)
|
|
5626
|
-
]).nullable()
|
|
5627
|
-
);
|
|
5628
|
-
var externalSchema = z.object({
|
|
5629
|
-
url: z.string()
|
|
5630
|
-
});
|
|
5631
|
-
var stepErrorSchema = z.object({
|
|
5632
|
-
error: z.string().optional(),
|
|
5633
|
-
validation: jsonElementSchema.optional()
|
|
5634
|
-
});
|
|
5635
|
-
var stringSchemaFormatSchema = z.union([
|
|
5636
|
-
z.literal("date"),
|
|
5637
|
-
z.literal("email"),
|
|
5638
|
-
z.literal("numeric"),
|
|
5639
|
-
z.literal("password"),
|
|
5640
|
-
z.literal("phone-number"),
|
|
5641
|
-
z.literal("base64url")
|
|
5642
|
-
]);
|
|
5643
|
-
var summarySummariserSchema = z.object({
|
|
5644
|
-
defaultTitle: z.string().optional(),
|
|
5645
|
-
defaultDescription: z.string().optional(),
|
|
5646
|
-
defaultIcon: iconSchema.optional(),
|
|
5647
|
-
defaultImage: imageSchema.optional(),
|
|
5648
|
-
providesTitle: z.boolean().optional(),
|
|
5649
|
-
providesDescription: z.boolean().optional(),
|
|
5650
|
-
providesIcon: z.boolean().optional(),
|
|
5651
|
-
providesImage: z.boolean().optional()
|
|
5652
|
-
});
|
|
5653
|
-
var validateAsyncSchema = z.object({
|
|
5654
|
-
param: z.string(),
|
|
5655
|
-
method: httpMethodSchema,
|
|
5656
|
-
url: z.string()
|
|
5657
|
-
});
|
|
5658
|
-
var summaryProviderSchema = z.object({
|
|
5659
|
-
providesTitle: z.boolean().optional(),
|
|
5660
|
-
providesDescription: z.boolean().optional(),
|
|
5661
|
-
providesIcon: z.boolean().optional(),
|
|
5662
|
-
providesImage: z.boolean().optional()
|
|
5663
|
-
});
|
|
5664
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5665
|
-
var suggestionsValueSchema = z.object({
|
|
5666
|
-
label: z.string(),
|
|
5667
|
-
value: jsonElementSchema.optional(),
|
|
5668
|
-
icon: iconSchema.optional(),
|
|
5669
|
-
image: imageSchema.optional(),
|
|
5670
|
-
tag: z.string().optional()
|
|
5671
|
-
});
|
|
5672
|
-
var navigationStackBehaviorSchema = z.union([
|
|
5673
|
-
z.literal("default"),
|
|
5674
|
-
z.literal("remove-previous"),
|
|
5675
|
-
z.literal("remove-all"),
|
|
5676
|
-
z.literal("replace-current")
|
|
5677
|
-
]);
|
|
5678
|
-
var actionTypeSchema = z.union([
|
|
5679
|
-
z.literal("primary"),
|
|
5680
|
-
z.literal("secondary"),
|
|
5681
|
-
z.literal("link"),
|
|
5682
|
-
z.literal("positive"),
|
|
5683
|
-
z.literal("negative")
|
|
5659
|
+
z.literal("characters"),
|
|
5660
|
+
z.literal("sentences"),
|
|
5661
|
+
z.literal("words")
|
|
5684
5662
|
]);
|
|
5685
|
-
var
|
|
5686
|
-
|
|
5687
|
-
type: z.literal("link"),
|
|
5688
|
-
url: z.string()
|
|
5663
|
+
var iconNamedSchema = z.object({
|
|
5664
|
+
name: z.string()
|
|
5689
5665
|
});
|
|
5690
|
-
var
|
|
5691
|
-
|
|
5666
|
+
var iconTextSchema = z.object({
|
|
5667
|
+
text: z.string()
|
|
5668
|
+
});
|
|
5669
|
+
var stringSchemaFormatSchema = z.union([
|
|
5670
|
+
z.literal("date"),
|
|
5671
|
+
z.literal("email"),
|
|
5672
|
+
z.literal("numeric"),
|
|
5673
|
+
z.literal("password"),
|
|
5674
|
+
z.literal("phone-number"),
|
|
5675
|
+
z.literal("base64url")
|
|
5676
|
+
]);
|
|
5677
|
+
var stepErrorSchema = z.object({
|
|
5678
|
+
error: z.string().optional(),
|
|
5679
|
+
validation: jsonElementSchema.optional()
|
|
5692
5680
|
});
|
|
5693
5681
|
var actionSchema = z.object({
|
|
5694
5682
|
title: z.string().optional(),
|
|
@@ -5705,6 +5693,31 @@ var actionSchema = z.object({
|
|
|
5705
5693
|
timeout: z.number().optional(),
|
|
5706
5694
|
skipValidation: z.boolean().optional()
|
|
5707
5695
|
});
|
|
5696
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5697
|
+
var summarySummariserSchema = z.object({
|
|
5698
|
+
defaultTitle: z.string().optional(),
|
|
5699
|
+
defaultDescription: z.string().optional(),
|
|
5700
|
+
defaultIcon: iconSchema.optional(),
|
|
5701
|
+
defaultImage: imageSchema.optional(),
|
|
5702
|
+
providesTitle: z.boolean().optional(),
|
|
5703
|
+
providesDescription: z.boolean().optional(),
|
|
5704
|
+
providesIcon: z.boolean().optional(),
|
|
5705
|
+
providesImage: z.boolean().optional()
|
|
5706
|
+
});
|
|
5707
|
+
var formLayoutSchema = z.object({
|
|
5708
|
+
type: z.literal("form"),
|
|
5709
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5710
|
+
schemaId: z.string(),
|
|
5711
|
+
control: z.string().optional(),
|
|
5712
|
+
margin: sizeSchema.optional()
|
|
5713
|
+
});
|
|
5714
|
+
var infoLayoutSchema = z.object({
|
|
5715
|
+
type: z.literal("info"),
|
|
5716
|
+
markdown: z.string(),
|
|
5717
|
+
align: alignSchema.optional(),
|
|
5718
|
+
control: z.string().optional(),
|
|
5719
|
+
margin: sizeSchema.optional()
|
|
5720
|
+
});
|
|
5708
5721
|
var listLayoutItemSchema = z.object({
|
|
5709
5722
|
description: z.string().optional(),
|
|
5710
5723
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -5716,75 +5729,77 @@ var listLayoutItemSchema = z.object({
|
|
|
5716
5729
|
subvalue: z.string().optional(),
|
|
5717
5730
|
tag: z.string().optional()
|
|
5718
5731
|
});
|
|
5719
|
-
var
|
|
5720
|
-
|
|
5721
|
-
title: z.string().optional(),
|
|
5722
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
5723
|
-
control: z.string().optional(),
|
|
5724
|
-
margin: sizeSchema.optional()
|
|
5725
|
-
});
|
|
5726
|
-
var reviewLayoutFieldSchema = z.object({
|
|
5727
|
-
label: z.string(),
|
|
5728
|
-
value: z.string(),
|
|
5729
|
-
rawValue: z.string().optional(),
|
|
5730
|
-
help: helpSchema.optional(),
|
|
5731
|
-
tag: z.string().optional()
|
|
5732
|
+
var actionResponseBodySchema = z.object({
|
|
5733
|
+
action: actionSchema
|
|
5732
5734
|
});
|
|
5733
|
-
var
|
|
5734
|
-
type: z.literal("
|
|
5735
|
+
var searchResultActionSchema = z.object({
|
|
5736
|
+
type: z.literal("action"),
|
|
5735
5737
|
title: z.string(),
|
|
5736
5738
|
description: z.string().optional(),
|
|
5737
5739
|
icon: iconSchema.optional(),
|
|
5738
5740
|
image: imageSchema.optional(),
|
|
5739
|
-
value:
|
|
5741
|
+
value: actionSchema
|
|
5740
5742
|
});
|
|
5741
|
-
var
|
|
5742
|
-
type: z.literal("
|
|
5743
|
+
var searchResultSearchSchema = z.object({
|
|
5744
|
+
type: z.literal("search"),
|
|
5743
5745
|
title: z.string(),
|
|
5744
5746
|
description: z.string().optional(),
|
|
5745
5747
|
icon: iconSchema.optional(),
|
|
5746
5748
|
image: imageSchema.optional(),
|
|
5747
|
-
value:
|
|
5749
|
+
value: searchSearchRequestSchema
|
|
5748
5750
|
});
|
|
5749
|
-
var
|
|
5751
|
+
var actionBehaviorSchema = z.object({
|
|
5752
|
+
type: z.literal("action"),
|
|
5750
5753
|
action: actionSchema
|
|
5751
5754
|
});
|
|
5752
|
-
var
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
error: z.string().optional(),
|
|
5756
|
-
validation: jsonElementSchema.optional(),
|
|
5757
|
-
refreshUrl: z.string().optional()
|
|
5758
|
-
});
|
|
5759
|
-
var suggestionsSchema = z.object({
|
|
5760
|
-
values: z.array(suggestionsValueSchema)
|
|
5755
|
+
var containerBehaviorSchema = z.object({
|
|
5756
|
+
action: actionSchema.optional(),
|
|
5757
|
+
link: linkSchema.optional()
|
|
5761
5758
|
});
|
|
5762
5759
|
var navigationBackBehaviorSchema = z.object({
|
|
5763
5760
|
title: z.string().optional(),
|
|
5764
5761
|
action: actionSchema
|
|
5765
5762
|
});
|
|
5766
|
-
var
|
|
5767
|
-
|
|
5768
|
-
|
|
5763
|
+
var suggestionsValueSchema = z.object({
|
|
5764
|
+
label: z.string(),
|
|
5765
|
+
value: jsonElementSchema.optional(),
|
|
5766
|
+
icon: iconSchema.optional(),
|
|
5767
|
+
image: imageSchema.optional(),
|
|
5768
|
+
tag: z.string().optional()
|
|
5769
5769
|
});
|
|
5770
|
-
var
|
|
5771
|
-
|
|
5772
|
-
|
|
5770
|
+
var suggestionsSchema = z.object({
|
|
5771
|
+
values: z.array(suggestionsValueSchema)
|
|
5772
|
+
});
|
|
5773
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
5774
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5775
|
+
var searchResponseBodySchema = z.object({
|
|
5776
|
+
results: z.array(searchResultSchema)
|
|
5773
5777
|
});
|
|
5774
5778
|
var behaviorSchema = z.union([
|
|
5775
5779
|
actionBehaviorSchema,
|
|
5776
5780
|
containerBehaviorSchema,
|
|
5777
5781
|
linkBehaviorSchema
|
|
5778
5782
|
]);
|
|
5779
|
-
var
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
+
var navigationSchema = z.object({
|
|
5784
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
5785
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
5786
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5783
5787
|
});
|
|
5784
|
-
var
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
+
var linkHandlerSchema = z.object({
|
|
5789
|
+
regexPattern: z.string(),
|
|
5790
|
+
behavior: behaviorSchema.optional()
|
|
5791
|
+
});
|
|
5792
|
+
var pollingOnErrorSchema = z.object({
|
|
5793
|
+
action: actionSchema.optional(),
|
|
5794
|
+
behavior: behaviorSchema.optional()
|
|
5795
|
+
});
|
|
5796
|
+
var pollingSchema = z.object({
|
|
5797
|
+
interval: z.number().optional(),
|
|
5798
|
+
url: z.string(),
|
|
5799
|
+
delay: z.number().optional(),
|
|
5800
|
+
timeout: z.number().optional(),
|
|
5801
|
+
maxAttempts: z.number(),
|
|
5802
|
+
onError: pollingOnErrorSchema
|
|
5788
5803
|
});
|
|
5789
5804
|
var decisionLayoutOptionSchema = z.object({
|
|
5790
5805
|
action: actionSchema.optional(),
|
|
@@ -5796,11 +5811,6 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5796
5811
|
behavior: behaviorSchema.optional(),
|
|
5797
5812
|
tag: z.string().optional()
|
|
5798
5813
|
});
|
|
5799
|
-
var itemCallToActionSchema = z.object({
|
|
5800
|
-
title: z.string(),
|
|
5801
|
-
accessibilityDescription: z.string().optional(),
|
|
5802
|
-
behavior: behaviorSchema
|
|
5803
|
-
});
|
|
5804
5814
|
var buttonLayoutSchema = z.object({
|
|
5805
5815
|
type: z.literal("button"),
|
|
5806
5816
|
action: actionSchema.optional(),
|
|
@@ -5813,26 +5823,22 @@ var buttonLayoutSchema = z.object({
|
|
|
5813
5823
|
control: z.string().optional(),
|
|
5814
5824
|
margin: sizeSchema.optional()
|
|
5815
5825
|
});
|
|
5816
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5817
|
-
var linkHandlerSchema = z.object({
|
|
5818
|
-
regexPattern: z.string(),
|
|
5819
|
-
behavior: behaviorSchema.optional()
|
|
5820
|
-
});
|
|
5821
|
-
var navigationSchema = z.object({
|
|
5822
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
5823
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
5824
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5825
|
-
});
|
|
5826
|
-
var pollingOnErrorSchema = z.object({
|
|
5827
|
-
action: actionSchema.optional(),
|
|
5828
|
-
behavior: behaviorSchema.optional()
|
|
5829
|
-
});
|
|
5830
5826
|
var reviewLayoutCallToActionSchema = z.object({
|
|
5831
5827
|
action: actionSchema.optional(),
|
|
5832
5828
|
title: z.string(),
|
|
5833
5829
|
accessibilityDescription: z.string().optional(),
|
|
5834
5830
|
behavior: behaviorSchema.optional()
|
|
5835
5831
|
});
|
|
5832
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
5833
|
+
title: z.string(),
|
|
5834
|
+
accessibilityDescription: z.string().optional(),
|
|
5835
|
+
behavior: behaviorSchema
|
|
5836
|
+
});
|
|
5837
|
+
var itemCallToActionSchema = z.object({
|
|
5838
|
+
title: z.string(),
|
|
5839
|
+
accessibilityDescription: z.string().optional(),
|
|
5840
|
+
behavior: behaviorSchema
|
|
5841
|
+
});
|
|
5836
5842
|
var alertLayoutSchema = z.object({
|
|
5837
5843
|
type: z.literal("alert"),
|
|
5838
5844
|
markdown: z.string(),
|
|
@@ -5841,13 +5847,10 @@ var alertLayoutSchema = z.object({
|
|
|
5841
5847
|
margin: sizeSchema.optional(),
|
|
5842
5848
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5843
5849
|
});
|
|
5844
|
-
var
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
items: z.array(listLayoutItemSchema),
|
|
5849
|
-
control: z.string().optional(),
|
|
5850
|
-
margin: sizeSchema.optional()
|
|
5850
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5851
|
+
title: z.string(),
|
|
5852
|
+
accessibilityDescription: z.string().optional(),
|
|
5853
|
+
behavior: behaviorSchema
|
|
5851
5854
|
});
|
|
5852
5855
|
var decisionLayoutSchema = z.object({
|
|
5853
5856
|
type: z.literal("decision"),
|
|
@@ -5856,34 +5859,29 @@ var decisionLayoutSchema = z.object({
|
|
|
5856
5859
|
control: z.string().optional(),
|
|
5857
5860
|
margin: sizeSchema.optional()
|
|
5858
5861
|
});
|
|
5859
|
-
var
|
|
5860
|
-
|
|
5861
|
-
description: z.string().optional(),
|
|
5862
|
-
icon: iconSchema,
|
|
5863
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
5864
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
5865
|
-
tag: z.string().optional()
|
|
5866
|
-
});
|
|
5867
|
-
var reviewLayoutSchema = z.object({
|
|
5868
|
-
type: z.literal("review"),
|
|
5869
|
-
orientation: z.string().optional(),
|
|
5870
|
-
action: actionSchema.optional(),
|
|
5871
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5862
|
+
var listLayoutSchema = z.object({
|
|
5863
|
+
type: z.literal("list"),
|
|
5872
5864
|
title: z.string().optional(),
|
|
5873
|
-
callToAction:
|
|
5865
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
5866
|
+
items: z.array(listLayoutItemSchema),
|
|
5874
5867
|
control: z.string().optional(),
|
|
5875
5868
|
margin: sizeSchema.optional()
|
|
5876
5869
|
});
|
|
5877
|
-
var
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5870
|
+
var constSchemaSchema = z.object({
|
|
5871
|
+
hidden: z.boolean().optional(),
|
|
5872
|
+
alert: alertLayoutSchema.optional(),
|
|
5873
|
+
control: z.string().optional(),
|
|
5874
|
+
promoted: z.boolean().optional(),
|
|
5875
|
+
$id: z.string().optional(),
|
|
5876
|
+
const: jsonElementSchema,
|
|
5877
|
+
title: z.string().optional(),
|
|
5878
|
+
description: z.string().optional(),
|
|
5879
|
+
icon: iconSchema.optional(),
|
|
5880
|
+
image: imageSchema.optional(),
|
|
5881
|
+
keywords: z.array(z.string()).optional(),
|
|
5882
|
+
summary: summaryProviderSchema.optional(),
|
|
5883
|
+
analyticsId: z.string().optional(),
|
|
5884
|
+
disabled: z.boolean().optional()
|
|
5887
5885
|
});
|
|
5888
5886
|
var blobSchemaSchema = z.object({
|
|
5889
5887
|
type: z.literal("blob"),
|
|
@@ -5907,21 +5905,23 @@ var blobSchemaSchema = z.object({
|
|
|
5907
5905
|
source: uploadSourceSchema.optional(),
|
|
5908
5906
|
disabled: z.boolean().optional()
|
|
5909
5907
|
});
|
|
5910
|
-
var
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
$id: z.string().optional(),
|
|
5916
|
-
const: jsonElementSchema,
|
|
5908
|
+
var reviewLayoutSchema = z.object({
|
|
5909
|
+
type: z.literal("review"),
|
|
5910
|
+
orientation: z.string().optional(),
|
|
5911
|
+
action: actionSchema.optional(),
|
|
5912
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
5917
5913
|
title: z.string().optional(),
|
|
5914
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5915
|
+
control: z.string().optional(),
|
|
5916
|
+
margin: sizeSchema.optional()
|
|
5917
|
+
});
|
|
5918
|
+
var statusListLayoutItemSchema = z.object({
|
|
5919
|
+
title: z.string(),
|
|
5918
5920
|
description: z.string().optional(),
|
|
5919
|
-
icon: iconSchema
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
analyticsId: z.string().optional(),
|
|
5924
|
-
disabled: z.boolean().optional()
|
|
5921
|
+
icon: iconSchema,
|
|
5922
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5923
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5924
|
+
tag: z.string().optional()
|
|
5925
5925
|
});
|
|
5926
5926
|
var statusListLayoutSchema = z.object({
|
|
5927
5927
|
type: z.literal("status-list"),
|
|
@@ -5930,6 +5930,39 @@ var statusListLayoutSchema = z.object({
|
|
|
5930
5930
|
control: z.string().optional(),
|
|
5931
5931
|
margin: sizeSchema.optional()
|
|
5932
5932
|
});
|
|
5933
|
+
var persistAsyncSchema = z.lazy(
|
|
5934
|
+
() => z.object({
|
|
5935
|
+
param: z.string(),
|
|
5936
|
+
idProperty: z.string(),
|
|
5937
|
+
schema: schemaSchema,
|
|
5938
|
+
url: z.string(),
|
|
5939
|
+
method: httpMethodSchema
|
|
5940
|
+
})
|
|
5941
|
+
);
|
|
5942
|
+
var schemaSchema = z.lazy(
|
|
5943
|
+
() => z.union([
|
|
5944
|
+
allOfSchemaSchema,
|
|
5945
|
+
arraySchemaSchema,
|
|
5946
|
+
blobSchemaSchema,
|
|
5947
|
+
booleanSchemaSchema,
|
|
5948
|
+
constSchemaSchema,
|
|
5949
|
+
integerSchemaSchema,
|
|
5950
|
+
numberSchemaSchema,
|
|
5951
|
+
objectSchemaSchema,
|
|
5952
|
+
oneOfSchemaSchema,
|
|
5953
|
+
stringSchemaSchema
|
|
5954
|
+
])
|
|
5955
|
+
);
|
|
5956
|
+
var columnsLayoutSchema = z.lazy(
|
|
5957
|
+
() => z.object({
|
|
5958
|
+
type: z.literal("columns"),
|
|
5959
|
+
left: z.array(layoutSchema),
|
|
5960
|
+
right: z.array(layoutSchema),
|
|
5961
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
5962
|
+
control: z.string().optional(),
|
|
5963
|
+
margin: sizeSchema.optional()
|
|
5964
|
+
})
|
|
5965
|
+
);
|
|
5933
5966
|
var layoutSchema = z.lazy(
|
|
5934
5967
|
() => z.union([
|
|
5935
5968
|
alertLayoutSchema,
|
|
@@ -5953,6 +5986,12 @@ var layoutSchema = z.lazy(
|
|
|
5953
5986
|
statusListLayoutSchema
|
|
5954
5987
|
])
|
|
5955
5988
|
);
|
|
5989
|
+
var modalLayoutContentSchema = z.lazy(
|
|
5990
|
+
() => z.object({
|
|
5991
|
+
title: z.string().optional(),
|
|
5992
|
+
components: z.array(layoutSchema)
|
|
5993
|
+
})
|
|
5994
|
+
);
|
|
5956
5995
|
var boxLayoutSchema = z.lazy(
|
|
5957
5996
|
() => z.object({
|
|
5958
5997
|
type: z.literal("box"),
|
|
@@ -5963,16 +6002,6 @@ var boxLayoutSchema = z.lazy(
|
|
|
5963
6002
|
margin: sizeSchema.optional()
|
|
5964
6003
|
})
|
|
5965
6004
|
);
|
|
5966
|
-
var columnsLayoutSchema = z.lazy(
|
|
5967
|
-
() => z.object({
|
|
5968
|
-
type: z.literal("columns"),
|
|
5969
|
-
left: z.array(layoutSchema),
|
|
5970
|
-
right: z.array(layoutSchema),
|
|
5971
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
5972
|
-
control: z.string().optional(),
|
|
5973
|
-
margin: sizeSchema.optional()
|
|
5974
|
-
})
|
|
5975
|
-
);
|
|
5976
6005
|
var modalLayoutSchema = z.lazy(
|
|
5977
6006
|
() => z.object({
|
|
5978
6007
|
type: z.literal("modal"),
|
|
@@ -5982,12 +6011,6 @@ var modalLayoutSchema = z.lazy(
|
|
|
5982
6011
|
content: modalLayoutContentSchema
|
|
5983
6012
|
})
|
|
5984
6013
|
);
|
|
5985
|
-
var modalLayoutContentSchema = z.lazy(
|
|
5986
|
-
() => z.object({
|
|
5987
|
-
title: z.string().optional(),
|
|
5988
|
-
components: z.array(layoutSchema)
|
|
5989
|
-
})
|
|
5990
|
-
);
|
|
5991
6014
|
var stepSchema = z.lazy(
|
|
5992
6015
|
() => z.object({
|
|
5993
6016
|
key: z.string().optional(),
|
|
@@ -6011,54 +6034,29 @@ var stepSchema = z.lazy(
|
|
|
6011
6034
|
refreshAfter: z.string().optional()
|
|
6012
6035
|
})
|
|
6013
6036
|
);
|
|
6014
|
-
var
|
|
6015
|
-
() => z.union([
|
|
6016
|
-
allOfSchemaSchema,
|
|
6017
|
-
arraySchemaSchema,
|
|
6018
|
-
blobSchemaSchema,
|
|
6019
|
-
booleanSchemaSchema,
|
|
6020
|
-
constSchemaSchema,
|
|
6021
|
-
integerSchemaSchema,
|
|
6022
|
-
numberSchemaSchema,
|
|
6023
|
-
objectSchemaSchema,
|
|
6024
|
-
oneOfSchemaSchema,
|
|
6025
|
-
stringSchemaSchema
|
|
6026
|
-
])
|
|
6027
|
-
);
|
|
6028
|
-
var allOfSchemaSchema = z.lazy(
|
|
6029
|
-
() => z.object({
|
|
6030
|
-
disabled: z.boolean().optional(),
|
|
6031
|
-
promoted: z.boolean().optional(),
|
|
6032
|
-
allOf: z.array(schemaSchema),
|
|
6033
|
-
$id: z.string().optional(),
|
|
6034
|
-
title: z.string().optional(),
|
|
6035
|
-
description: z.string().optional(),
|
|
6036
|
-
control: z.string().optional(),
|
|
6037
|
-
hidden: z.boolean().optional(),
|
|
6038
|
-
icon: iconSchema.optional(),
|
|
6039
|
-
image: imageSchema.optional(),
|
|
6040
|
-
keywords: z.array(z.string()).optional(),
|
|
6041
|
-
summary: summaryProviderSchema.optional(),
|
|
6042
|
-
analyticsId: z.string().optional(),
|
|
6043
|
-
alert: alertLayoutSchema.optional()
|
|
6044
|
-
})
|
|
6045
|
-
);
|
|
6046
|
-
var arraySchemaSchema = z.lazy(
|
|
6047
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6048
|
-
);
|
|
6049
|
-
var booleanSchemaSchema = z.lazy(
|
|
6037
|
+
var stringSchemaSchema = z.lazy(
|
|
6050
6038
|
() => z.object({
|
|
6051
|
-
type: z.literal("
|
|
6039
|
+
type: z.literal("string"),
|
|
6052
6040
|
autofillProvider: z.string().optional(),
|
|
6053
6041
|
promoted: z.boolean().optional(),
|
|
6054
6042
|
refreshFormOnChange: z.boolean().optional(),
|
|
6055
6043
|
refreshUrl: z.string().optional(),
|
|
6056
6044
|
refreshFormUrl: z.string().optional(),
|
|
6045
|
+
format: stringSchemaFormatSchema.optional(),
|
|
6046
|
+
displayFormat: z.string().optional(),
|
|
6047
|
+
placeholder: z.string().optional(),
|
|
6048
|
+
minLength: z.number().optional(),
|
|
6049
|
+
maxLength: z.number().optional(),
|
|
6050
|
+
minimum: z.string().optional(),
|
|
6051
|
+
maximum: z.string().optional(),
|
|
6052
|
+
pattern: z.string().optional(),
|
|
6053
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6054
|
+
autocorrect: z.boolean().optional(),
|
|
6057
6055
|
$id: z.string().optional(),
|
|
6058
6056
|
title: z.string().optional(),
|
|
6059
6057
|
description: z.string().optional(),
|
|
6060
6058
|
control: z.string().optional(),
|
|
6061
|
-
default: z.
|
|
6059
|
+
default: z.string().optional(),
|
|
6062
6060
|
hidden: z.boolean().optional(),
|
|
6063
6061
|
disabled: z.boolean().optional(),
|
|
6064
6062
|
icon: iconSchema.optional(),
|
|
@@ -6069,42 +6067,46 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6069
6067
|
persistAsync: persistAsyncSchema.optional(),
|
|
6070
6068
|
refreshStepOnChange: z.boolean().optional(),
|
|
6071
6069
|
validationAsync: validateAsyncSchema.optional(),
|
|
6070
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6072
6071
|
alert: alertLayoutSchema.optional(),
|
|
6072
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6073
|
+
accepts: z.array(z.string()).optional(),
|
|
6074
|
+
maxSize: z.number().optional(),
|
|
6075
|
+
source: uploadSourceSchema.optional(),
|
|
6076
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6073
6077
|
autofillKey: z.string().optional(),
|
|
6074
|
-
help: helpSchema.optional()
|
|
6078
|
+
help: helpSchema.optional(),
|
|
6079
|
+
suggestions: suggestionsSchema.optional()
|
|
6075
6080
|
})
|
|
6076
6081
|
);
|
|
6077
|
-
var
|
|
6082
|
+
var oneOfSchemaSchema = z.lazy(
|
|
6078
6083
|
() => z.object({
|
|
6079
|
-
type: z.literal("integer"),
|
|
6080
6084
|
autofillProvider: z.string().optional(),
|
|
6081
6085
|
promoted: z.boolean().optional(),
|
|
6082
6086
|
refreshFormOnChange: z.boolean().optional(),
|
|
6083
6087
|
refreshUrl: z.string().optional(),
|
|
6084
6088
|
refreshFormUrl: z.string().optional(),
|
|
6089
|
+
promotion: jsonElementSchema.optional(),
|
|
6090
|
+
oneOf: z.array(schemaSchema),
|
|
6085
6091
|
placeholder: z.string().optional(),
|
|
6086
|
-
minimum: z.number().optional(),
|
|
6087
|
-
maximum: z.number().optional(),
|
|
6088
6092
|
$id: z.string().optional(),
|
|
6089
6093
|
title: z.string().optional(),
|
|
6090
6094
|
description: z.string().optional(),
|
|
6091
6095
|
control: z.string().optional(),
|
|
6092
|
-
default:
|
|
6096
|
+
default: jsonElementSchema.optional(),
|
|
6093
6097
|
hidden: z.boolean().optional(),
|
|
6094
|
-
disabled: z.boolean().optional(),
|
|
6095
6098
|
icon: iconSchema.optional(),
|
|
6096
6099
|
image: imageSchema.optional(),
|
|
6097
6100
|
keywords: z.array(z.string()).optional(),
|
|
6098
6101
|
summary: summaryProviderSchema.optional(),
|
|
6099
6102
|
analyticsId: z.string().optional(),
|
|
6100
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
6101
6103
|
refreshStepOnChange: z.boolean().optional(),
|
|
6102
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6103
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6104
6104
|
alert: alertLayoutSchema.optional(),
|
|
6105
|
+
help: helpSchema.optional(),
|
|
6105
6106
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6106
6107
|
autofillKey: z.string().optional(),
|
|
6107
|
-
|
|
6108
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6109
|
+
disabled: z.boolean().optional()
|
|
6108
6110
|
})
|
|
6109
6111
|
);
|
|
6110
6112
|
var numberSchemaSchema = z.lazy(
|
|
@@ -6140,16 +6142,12 @@ var numberSchemaSchema = z.lazy(
|
|
|
6140
6142
|
help: helpSchema.optional()
|
|
6141
6143
|
})
|
|
6142
6144
|
);
|
|
6143
|
-
var
|
|
6145
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6144
6146
|
() => z.object({
|
|
6145
|
-
type: z.literal("
|
|
6146
|
-
disabled: z.boolean().optional(),
|
|
6147
|
+
type: z.literal("array"),
|
|
6147
6148
|
promoted: z.boolean().optional(),
|
|
6148
|
-
help: helpSchema.optional(),
|
|
6149
|
-
properties: z.record(schemaSchema),
|
|
6150
|
-
displayOrder: z.array(z.string()),
|
|
6151
|
-
required: z.array(z.string()).optional(),
|
|
6152
6149
|
$id: z.string().optional(),
|
|
6150
|
+
items: z.array(schemaSchema),
|
|
6153
6151
|
title: z.string().optional(),
|
|
6154
6152
|
description: z.string().optional(),
|
|
6155
6153
|
control: z.string().optional(),
|
|
@@ -6159,62 +6157,27 @@ var objectSchemaSchema = z.lazy(
|
|
|
6159
6157
|
keywords: z.array(z.string()).optional(),
|
|
6160
6158
|
summary: summaryProviderSchema.optional(),
|
|
6161
6159
|
analyticsId: z.string().optional(),
|
|
6160
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6161
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6162
6162
|
alert: alertLayoutSchema.optional()
|
|
6163
6163
|
})
|
|
6164
6164
|
);
|
|
6165
|
-
var
|
|
6166
|
-
() => z.object({
|
|
6167
|
-
autofillProvider: z.string().optional(),
|
|
6168
|
-
promoted: z.boolean().optional(),
|
|
6169
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
6170
|
-
refreshUrl: z.string().optional(),
|
|
6171
|
-
refreshFormUrl: z.string().optional(),
|
|
6172
|
-
promotion: jsonElementSchema.optional(),
|
|
6173
|
-
oneOf: z.array(schemaSchema),
|
|
6174
|
-
placeholder: z.string().optional(),
|
|
6175
|
-
$id: z.string().optional(),
|
|
6176
|
-
title: z.string().optional(),
|
|
6177
|
-
description: z.string().optional(),
|
|
6178
|
-
control: z.string().optional(),
|
|
6179
|
-
default: jsonElementSchema.optional(),
|
|
6180
|
-
hidden: z.boolean().optional(),
|
|
6181
|
-
icon: iconSchema.optional(),
|
|
6182
|
-
image: imageSchema.optional(),
|
|
6183
|
-
keywords: z.array(z.string()).optional(),
|
|
6184
|
-
summary: summaryProviderSchema.optional(),
|
|
6185
|
-
analyticsId: z.string().optional(),
|
|
6186
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
6187
|
-
alert: alertLayoutSchema.optional(),
|
|
6188
|
-
help: helpSchema.optional(),
|
|
6189
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6190
|
-
autofillKey: z.string().optional(),
|
|
6191
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6192
|
-
disabled: z.boolean().optional()
|
|
6193
|
-
})
|
|
6194
|
-
);
|
|
6195
|
-
var stringSchemaSchema = z.lazy(
|
|
6165
|
+
var integerSchemaSchema = z.lazy(
|
|
6196
6166
|
() => z.object({
|
|
6197
|
-
type: z.literal("
|
|
6167
|
+
type: z.literal("integer"),
|
|
6198
6168
|
autofillProvider: z.string().optional(),
|
|
6199
6169
|
promoted: z.boolean().optional(),
|
|
6200
6170
|
refreshFormOnChange: z.boolean().optional(),
|
|
6201
6171
|
refreshUrl: z.string().optional(),
|
|
6202
6172
|
refreshFormUrl: z.string().optional(),
|
|
6203
|
-
format: stringSchemaFormatSchema.optional(),
|
|
6204
|
-
displayFormat: z.string().optional(),
|
|
6205
6173
|
placeholder: z.string().optional(),
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
minimum: z.string().optional(),
|
|
6209
|
-
maximum: z.string().optional(),
|
|
6210
|
-
pattern: z.string().optional(),
|
|
6211
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6212
|
-
autocorrect: z.boolean().optional(),
|
|
6174
|
+
minimum: z.number().optional(),
|
|
6175
|
+
maximum: z.number().optional(),
|
|
6213
6176
|
$id: z.string().optional(),
|
|
6214
6177
|
title: z.string().optional(),
|
|
6215
6178
|
description: z.string().optional(),
|
|
6216
6179
|
control: z.string().optional(),
|
|
6217
|
-
default: z.
|
|
6180
|
+
default: z.number().optional(),
|
|
6218
6181
|
hidden: z.boolean().optional(),
|
|
6219
6182
|
disabled: z.boolean().optional(),
|
|
6220
6183
|
icon: iconSchema.optional(),
|
|
@@ -6227,16 +6190,14 @@ var stringSchemaSchema = z.lazy(
|
|
|
6227
6190
|
validationAsync: validateAsyncSchema.optional(),
|
|
6228
6191
|
validationMessages: z.record(z.string()).optional(),
|
|
6229
6192
|
alert: alertLayoutSchema.optional(),
|
|
6230
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
6231
|
-
accepts: z.array(z.string()).optional(),
|
|
6232
|
-
maxSize: z.number().optional(),
|
|
6233
|
-
source: uploadSourceSchema.optional(),
|
|
6234
6193
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6235
6194
|
autofillKey: z.string().optional(),
|
|
6236
|
-
help: helpSchema.optional()
|
|
6237
|
-
suggestions: suggestionsSchema.optional()
|
|
6195
|
+
help: helpSchema.optional()
|
|
6238
6196
|
})
|
|
6239
6197
|
);
|
|
6198
|
+
var arraySchemaSchema = z.lazy(
|
|
6199
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6200
|
+
);
|
|
6240
6201
|
var arraySchemaListSchema = z.lazy(
|
|
6241
6202
|
() => z.object({
|
|
6242
6203
|
type: z.literal("array"),
|
|
@@ -6264,32 +6225,71 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6264
6225
|
disabled: z.boolean().optional()
|
|
6265
6226
|
})
|
|
6266
6227
|
);
|
|
6267
|
-
var
|
|
6228
|
+
var allOfSchemaSchema = z.lazy(
|
|
6268
6229
|
() => z.object({
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6230
|
+
disabled: z.boolean().optional(),
|
|
6231
|
+
promoted: z.boolean().optional(),
|
|
6232
|
+
allOf: z.array(schemaSchema),
|
|
6233
|
+
$id: z.string().optional(),
|
|
6234
|
+
title: z.string().optional(),
|
|
6235
|
+
description: z.string().optional(),
|
|
6236
|
+
control: z.string().optional(),
|
|
6237
|
+
hidden: z.boolean().optional(),
|
|
6238
|
+
icon: iconSchema.optional(),
|
|
6239
|
+
image: imageSchema.optional(),
|
|
6240
|
+
keywords: z.array(z.string()).optional(),
|
|
6241
|
+
summary: summaryProviderSchema.optional(),
|
|
6242
|
+
analyticsId: z.string().optional(),
|
|
6243
|
+
alert: alertLayoutSchema.optional()
|
|
6274
6244
|
})
|
|
6275
6245
|
);
|
|
6276
|
-
var
|
|
6246
|
+
var booleanSchemaSchema = z.lazy(
|
|
6277
6247
|
() => z.object({
|
|
6278
|
-
type: z.literal("
|
|
6248
|
+
type: z.literal("boolean"),
|
|
6249
|
+
autofillProvider: z.string().optional(),
|
|
6279
6250
|
promoted: z.boolean().optional(),
|
|
6251
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
6252
|
+
refreshUrl: z.string().optional(),
|
|
6253
|
+
refreshFormUrl: z.string().optional(),
|
|
6280
6254
|
$id: z.string().optional(),
|
|
6281
|
-
items: z.array(schemaSchema),
|
|
6282
6255
|
title: z.string().optional(),
|
|
6283
6256
|
description: z.string().optional(),
|
|
6284
6257
|
control: z.string().optional(),
|
|
6258
|
+
default: z.boolean().optional(),
|
|
6285
6259
|
hidden: z.boolean().optional(),
|
|
6260
|
+
disabled: z.boolean().optional(),
|
|
6286
6261
|
icon: iconSchema.optional(),
|
|
6287
6262
|
image: imageSchema.optional(),
|
|
6288
6263
|
keywords: z.array(z.string()).optional(),
|
|
6289
6264
|
summary: summaryProviderSchema.optional(),
|
|
6290
6265
|
analyticsId: z.string().optional(),
|
|
6291
6266
|
persistAsync: persistAsyncSchema.optional(),
|
|
6267
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6292
6268
|
validationAsync: validateAsyncSchema.optional(),
|
|
6269
|
+
alert: alertLayoutSchema.optional(),
|
|
6270
|
+
autofillKey: z.string().optional(),
|
|
6271
|
+
help: helpSchema.optional()
|
|
6272
|
+
})
|
|
6273
|
+
);
|
|
6274
|
+
var objectSchemaSchema = z.lazy(
|
|
6275
|
+
() => z.object({
|
|
6276
|
+
type: z.literal("object"),
|
|
6277
|
+
disabled: z.boolean().optional(),
|
|
6278
|
+
promoted: z.boolean().optional(),
|
|
6279
|
+
help: helpSchema.optional(),
|
|
6280
|
+
properties: z.record(schemaSchema),
|
|
6281
|
+
displayOrder: z.array(z.string()),
|
|
6282
|
+
required: z.array(z.string()).optional(),
|
|
6283
|
+
$id: z.string().optional(),
|
|
6284
|
+
title: z.string().optional(),
|
|
6285
|
+
description: z.string().optional(),
|
|
6286
|
+
control: z.string().optional(),
|
|
6287
|
+
hidden: z.boolean().optional(),
|
|
6288
|
+
icon: iconSchema.optional(),
|
|
6289
|
+
image: imageSchema.optional(),
|
|
6290
|
+
keywords: z.array(z.string()).optional(),
|
|
6291
|
+
summary: summaryProviderSchema.optional(),
|
|
6292
|
+
analyticsId: z.string().optional(),
|
|
6293
6293
|
alert: alertLayoutSchema.optional()
|
|
6294
6294
|
})
|
|
6295
6295
|
);
|
|
@@ -11727,8 +11727,10 @@ var stepComponentToProps = ({
|
|
|
11727
11727
|
error,
|
|
11728
11728
|
external,
|
|
11729
11729
|
loadingState,
|
|
11730
|
+
step,
|
|
11730
11731
|
title,
|
|
11731
|
-
components
|
|
11732
|
+
components,
|
|
11733
|
+
onAction
|
|
11732
11734
|
}, rendererMapperProps) => {
|
|
11733
11735
|
const childrenProps = components.map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
11734
11736
|
return __spreadValues({
|
|
@@ -11740,9 +11742,11 @@ var stepComponentToProps = ({
|
|
|
11740
11742
|
error,
|
|
11741
11743
|
external,
|
|
11742
11744
|
loadingState,
|
|
11745
|
+
step,
|
|
11743
11746
|
title,
|
|
11744
11747
|
children: childrenProps.map(rendererMapperProps.render),
|
|
11745
|
-
childrenProps
|
|
11748
|
+
childrenProps,
|
|
11749
|
+
onAction
|
|
11746
11750
|
}, rendererMapperProps);
|
|
11747
11751
|
};
|
|
11748
11752
|
|