@wise/dynamic-flow-client 4.0.2 → 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/i18n/nl.json +45 -45
- package/build/main.css +6 -2
- package/build/main.js +461 -429
- package/build/main.mjs +461 -429
- package/build/types/revamp/domain/components/utils/isOrWasValid.d.ts +2 -0
- package/build/types/revamp/renderers/stepComponentToProps.d.ts +1 -1
- package/build/types/revamp/test-utils/DynamicFlowWise.d.ts +6 -1
- package/package.json +21 -21
package/build/main.js
CHANGED
|
@@ -5427,11 +5427,37 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5427
5427
|
quotelessJson,
|
|
5428
5428
|
ZodError
|
|
5429
5429
|
});
|
|
5430
|
-
var
|
|
5431
|
-
|
|
5432
|
-
url: z.string()
|
|
5433
|
-
|
|
5434
|
-
|
|
5430
|
+
var linkBehaviorSchema = z.object({
|
|
5431
|
+
type: z.literal("link"),
|
|
5432
|
+
url: z.string()
|
|
5433
|
+
});
|
|
5434
|
+
var navigationStackBehaviorSchema = z.union([
|
|
5435
|
+
z.literal("default"),
|
|
5436
|
+
z.literal("remove-previous"),
|
|
5437
|
+
z.literal("remove-all"),
|
|
5438
|
+
z.literal("replace-current")
|
|
5439
|
+
]);
|
|
5440
|
+
var jsonElementSchema = z.lazy(
|
|
5441
|
+
() => z.union([
|
|
5442
|
+
z.string(),
|
|
5443
|
+
z.number(),
|
|
5444
|
+
z.boolean(),
|
|
5445
|
+
z.record(jsonElementSchema),
|
|
5446
|
+
z.array(jsonElementSchema)
|
|
5447
|
+
]).nullable()
|
|
5448
|
+
);
|
|
5449
|
+
var helpSchema = z.object({
|
|
5450
|
+
markdown: z.string()
|
|
5451
|
+
});
|
|
5452
|
+
var actionTypeSchema = z.union([
|
|
5453
|
+
z.literal("primary"),
|
|
5454
|
+
z.literal("secondary"),
|
|
5455
|
+
z.literal("link"),
|
|
5456
|
+
z.literal("positive"),
|
|
5457
|
+
z.literal("negative")
|
|
5458
|
+
]);
|
|
5459
|
+
var linkSchema = z.object({
|
|
5460
|
+
url: z.string()
|
|
5435
5461
|
});
|
|
5436
5462
|
var httpMethodSchema = z.union([
|
|
5437
5463
|
z.literal("GET"),
|
|
@@ -5440,8 +5466,54 @@ var httpMethodSchema = z.union([
|
|
|
5440
5466
|
z.literal("PATCH"),
|
|
5441
5467
|
z.literal("DELETE")
|
|
5442
5468
|
]);
|
|
5443
|
-
var
|
|
5444
|
-
|
|
5469
|
+
var imageSchema = z.object({
|
|
5470
|
+
text: z.string().optional(),
|
|
5471
|
+
url: z.string().optional(),
|
|
5472
|
+
uri: z.string().optional(),
|
|
5473
|
+
accessibilityDescription: z.string().optional()
|
|
5474
|
+
});
|
|
5475
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5476
|
+
var validateAsyncSchema = z.object({
|
|
5477
|
+
param: z.string(),
|
|
5478
|
+
method: httpMethodSchema,
|
|
5479
|
+
url: z.string()
|
|
5480
|
+
});
|
|
5481
|
+
var summaryProviderSchema = z.object({
|
|
5482
|
+
providesTitle: z.boolean().optional(),
|
|
5483
|
+
providesDescription: z.boolean().optional(),
|
|
5484
|
+
providesIcon: z.boolean().optional(),
|
|
5485
|
+
providesImage: z.boolean().optional()
|
|
5486
|
+
});
|
|
5487
|
+
var externalSchema = z.object({
|
|
5488
|
+
url: z.string()
|
|
5489
|
+
});
|
|
5490
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5491
|
+
z.literal("none"),
|
|
5492
|
+
z.literal("left"),
|
|
5493
|
+
z.literal("right")
|
|
5494
|
+
]);
|
|
5495
|
+
var sizeSchema = z.union([
|
|
5496
|
+
z.literal("xs"),
|
|
5497
|
+
z.literal("sm"),
|
|
5498
|
+
z.literal("md"),
|
|
5499
|
+
z.literal("lg"),
|
|
5500
|
+
z.literal("xl")
|
|
5501
|
+
]);
|
|
5502
|
+
var dividerLayoutSchema = z.object({
|
|
5503
|
+
type: z.literal("divider"),
|
|
5504
|
+
control: z.string().optional(),
|
|
5505
|
+
margin: sizeSchema.optional()
|
|
5506
|
+
});
|
|
5507
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5508
|
+
z.literal("not-done"),
|
|
5509
|
+
z.literal("pending"),
|
|
5510
|
+
z.literal("done")
|
|
5511
|
+
]);
|
|
5512
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5513
|
+
type: z.literal("loading-indicator"),
|
|
5514
|
+
size: sizeSchema.optional(),
|
|
5515
|
+
control: z.string().optional(),
|
|
5516
|
+
margin: sizeSchema.optional()
|
|
5445
5517
|
});
|
|
5446
5518
|
var contextSchema = z.union([
|
|
5447
5519
|
z.literal("positive"),
|
|
@@ -5453,24 +5525,93 @@ var contextSchema = z.union([
|
|
|
5453
5525
|
z.literal("info"),
|
|
5454
5526
|
z.literal("primary")
|
|
5455
5527
|
]);
|
|
5456
|
-
var
|
|
5457
|
-
text: z.string()
|
|
5528
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5529
|
+
text: z.string(),
|
|
5530
|
+
context: contextSchema,
|
|
5531
|
+
tag: z.string().optional()
|
|
5532
|
+
});
|
|
5533
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5534
|
+
$ref: z.string()
|
|
5535
|
+
});
|
|
5536
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5537
|
+
title: z.string()
|
|
5538
|
+
});
|
|
5539
|
+
var instructionsLayoutSchema = z.object({
|
|
5540
|
+
type: z.literal("instructions"),
|
|
5541
|
+
title: z.string().optional(),
|
|
5542
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
5543
|
+
control: z.string().optional(),
|
|
5544
|
+
margin: sizeSchema.optional()
|
|
5545
|
+
});
|
|
5546
|
+
var reviewLayoutFieldSchema = z.object({
|
|
5547
|
+
label: z.string(),
|
|
5548
|
+
value: z.string(),
|
|
5549
|
+
rawValue: z.string().optional(),
|
|
5550
|
+
help: helpSchema.optional(),
|
|
5551
|
+
tag: z.string().optional()
|
|
5458
5552
|
});
|
|
5459
|
-
var sizeSchema = z.union([
|
|
5460
|
-
z.literal("xs"),
|
|
5461
|
-
z.literal("sm"),
|
|
5462
|
-
z.literal("md"),
|
|
5463
|
-
z.literal("lg"),
|
|
5464
|
-
z.literal("xl")
|
|
5465
|
-
]);
|
|
5466
|
-
var autocapitalizationTypeSchema = z.union([
|
|
5467
|
-
z.literal("none"),
|
|
5468
|
-
z.literal("characters"),
|
|
5469
|
-
z.literal("sentences"),
|
|
5470
|
-
z.literal("words")
|
|
5471
|
-
]);
|
|
5472
5553
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5473
|
-
var
|
|
5554
|
+
var searchLayoutSchema = z.object({
|
|
5555
|
+
type: z.literal("search"),
|
|
5556
|
+
title: z.string(),
|
|
5557
|
+
method: httpMethodSchema,
|
|
5558
|
+
url: z.string(),
|
|
5559
|
+
param: z.string(),
|
|
5560
|
+
emptyMessage: z.string().optional(),
|
|
5561
|
+
control: z.string().optional(),
|
|
5562
|
+
margin: sizeSchema.optional()
|
|
5563
|
+
});
|
|
5564
|
+
var headingLayoutSchema = z.object({
|
|
5565
|
+
type: z.literal("heading"),
|
|
5566
|
+
text: z.string(),
|
|
5567
|
+
size: sizeSchema.optional(),
|
|
5568
|
+
align: alignSchema.optional(),
|
|
5569
|
+
control: z.string().optional(),
|
|
5570
|
+
margin: sizeSchema.optional()
|
|
5571
|
+
});
|
|
5572
|
+
var imageLayoutSchema = z.object({
|
|
5573
|
+
type: z.literal("image"),
|
|
5574
|
+
text: z.string().optional(),
|
|
5575
|
+
url: z.string().optional(),
|
|
5576
|
+
accessibilityDescription: z.string().optional(),
|
|
5577
|
+
content: imageSchema.optional(),
|
|
5578
|
+
size: sizeSchema.optional(),
|
|
5579
|
+
control: z.string().optional(),
|
|
5580
|
+
margin: sizeSchema.optional(),
|
|
5581
|
+
align: alignSchema.optional()
|
|
5582
|
+
});
|
|
5583
|
+
var markdownLayoutSchema = z.object({
|
|
5584
|
+
type: z.literal("markdown"),
|
|
5585
|
+
content: z.string(),
|
|
5586
|
+
align: alignSchema.optional(),
|
|
5587
|
+
control: z.string().optional(),
|
|
5588
|
+
margin: sizeSchema.optional()
|
|
5589
|
+
});
|
|
5590
|
+
var paragraphLayoutSchema = z.object({
|
|
5591
|
+
type: z.literal("paragraph"),
|
|
5592
|
+
text: z.string(),
|
|
5593
|
+
align: alignSchema.optional(),
|
|
5594
|
+
control: z.string().optional(),
|
|
5595
|
+
margin: sizeSchema.optional()
|
|
5596
|
+
});
|
|
5597
|
+
var listLayoutStatusSchema = z.union([
|
|
5598
|
+
z.literal("warning"),
|
|
5599
|
+
z.literal("neutral"),
|
|
5600
|
+
z.literal("positive")
|
|
5601
|
+
]);
|
|
5602
|
+
var errorResponseBodySchema = z.object({
|
|
5603
|
+
refreshFormUrl: z.string().optional(),
|
|
5604
|
+
analytics: z.record(z.string()).optional(),
|
|
5605
|
+
error: z.string().optional(),
|
|
5606
|
+
validation: jsonElementSchema.optional(),
|
|
5607
|
+
refreshUrl: z.string().optional()
|
|
5608
|
+
});
|
|
5609
|
+
var searchSearchRequestSchema = z.object({
|
|
5610
|
+
url: z.string(),
|
|
5611
|
+
method: httpMethodSchema,
|
|
5612
|
+
param: z.string(),
|
|
5613
|
+
query: z.string()
|
|
5614
|
+
});
|
|
5474
5615
|
var autocompleteTokenSchema = z.union([
|
|
5475
5616
|
z.literal("on"),
|
|
5476
5617
|
z.literal("name"),
|
|
@@ -5532,178 +5673,33 @@ var autocompleteTokenSchema = z.union([
|
|
|
5532
5673
|
z.literal("billing"),
|
|
5533
5674
|
z.literal("home"),
|
|
5534
5675
|
z.literal("work"),
|
|
5535
|
-
z.literal("mobile"),
|
|
5536
|
-
z.literal("fax"),
|
|
5537
|
-
z.literal("pager")
|
|
5538
|
-
]);
|
|
5539
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
5540
|
-
type: z.literal("loading-indicator"),
|
|
5541
|
-
size: sizeSchema.optional(),
|
|
5542
|
-
control: z.string().optional(),
|
|
5543
|
-
margin: sizeSchema.optional()
|
|
5544
|
-
});
|
|
5545
|
-
var paragraphLayoutSchema = z.object({
|
|
5546
|
-
type: z.literal("paragraph"),
|
|
5547
|
-
text: z.string(),
|
|
5548
|
-
align: alignSchema.optional(),
|
|
5549
|
-
control: z.string().optional(),
|
|
5550
|
-
margin: sizeSchema.optional()
|
|
5551
|
-
});
|
|
5552
|
-
var dividerLayoutSchema = z.object({
|
|
5553
|
-
type: z.literal("divider"),
|
|
5554
|
-
control: z.string().optional(),
|
|
5555
|
-
margin: sizeSchema.optional()
|
|
5556
|
-
});
|
|
5557
|
-
var listLayoutStatusSchema = z.union([
|
|
5558
|
-
z.literal("warning"),
|
|
5559
|
-
z.literal("neutral"),
|
|
5560
|
-
z.literal("positive")
|
|
5561
|
-
]);
|
|
5562
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5563
|
-
$ref: z.string()
|
|
5564
|
-
});
|
|
5565
|
-
var imageLayoutSchema = z.object({
|
|
5566
|
-
type: z.literal("image"),
|
|
5567
|
-
text: z.string().optional(),
|
|
5568
|
-
url: z.string().optional(),
|
|
5569
|
-
accessibilityDescription: z.string().optional(),
|
|
5570
|
-
content: imageSchema.optional(),
|
|
5571
|
-
size: sizeSchema.optional(),
|
|
5572
|
-
control: z.string().optional(),
|
|
5573
|
-
margin: sizeSchema.optional()
|
|
5574
|
-
});
|
|
5575
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5576
|
-
z.literal("not-done"),
|
|
5577
|
-
z.literal("pending"),
|
|
5578
|
-
z.literal("done")
|
|
5579
|
-
]);
|
|
5580
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5581
|
-
text: z.string(),
|
|
5582
|
-
context: contextSchema,
|
|
5583
|
-
tag: z.string().optional()
|
|
5584
|
-
});
|
|
5585
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5586
|
-
title: z.string()
|
|
5587
|
-
});
|
|
5588
|
-
var searchLayoutSchema = z.object({
|
|
5589
|
-
type: z.literal("search"),
|
|
5590
|
-
title: z.string(),
|
|
5591
|
-
method: httpMethodSchema,
|
|
5592
|
-
url: z.string(),
|
|
5593
|
-
param: z.string(),
|
|
5594
|
-
emptyMessage: z.string().optional(),
|
|
5595
|
-
control: z.string().optional(),
|
|
5596
|
-
margin: sizeSchema.optional()
|
|
5597
|
-
});
|
|
5598
|
-
var infoLayoutSchema = z.object({
|
|
5599
|
-
type: z.literal("info"),
|
|
5600
|
-
markdown: z.string(),
|
|
5601
|
-
align: alignSchema.optional(),
|
|
5602
|
-
control: z.string().optional(),
|
|
5603
|
-
margin: sizeSchema.optional()
|
|
5604
|
-
});
|
|
5605
|
-
var formLayoutSchema = z.object({
|
|
5606
|
-
type: z.literal("form"),
|
|
5607
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5608
|
-
schemaId: z.string(),
|
|
5609
|
-
control: z.string().optional(),
|
|
5610
|
-
margin: sizeSchema.optional()
|
|
5611
|
-
});
|
|
5612
|
-
var headingLayoutSchema = z.object({
|
|
5613
|
-
type: z.literal("heading"),
|
|
5614
|
-
text: z.string(),
|
|
5615
|
-
size: sizeSchema.optional(),
|
|
5616
|
-
align: alignSchema.optional(),
|
|
5617
|
-
control: z.string().optional(),
|
|
5618
|
-
margin: sizeSchema.optional()
|
|
5619
|
-
});
|
|
5620
|
-
var markdownLayoutSchema = z.object({
|
|
5621
|
-
type: z.literal("markdown"),
|
|
5622
|
-
content: z.string(),
|
|
5623
|
-
align: alignSchema.optional(),
|
|
5624
|
-
control: z.string().optional(),
|
|
5625
|
-
margin: sizeSchema.optional()
|
|
5626
|
-
});
|
|
5627
|
-
var columnsLayoutBiasSchema = z.union([
|
|
5628
|
-
z.literal("none"),
|
|
5629
|
-
z.literal("left"),
|
|
5630
|
-
z.literal("right")
|
|
5631
|
-
]);
|
|
5632
|
-
var helpSchema = z.object({
|
|
5633
|
-
markdown: z.string()
|
|
5634
|
-
});
|
|
5635
|
-
var searchSearchRequestSchema = z.object({
|
|
5636
|
-
url: z.string(),
|
|
5637
|
-
method: httpMethodSchema,
|
|
5638
|
-
param: z.string(),
|
|
5639
|
-
query: z.string()
|
|
5640
|
-
});
|
|
5641
|
-
var jsonElementSchema = z.lazy(
|
|
5642
|
-
() => z.union([
|
|
5643
|
-
z.string(),
|
|
5644
|
-
z.number(),
|
|
5645
|
-
z.boolean(),
|
|
5646
|
-
z.record(jsonElementSchema),
|
|
5647
|
-
z.array(jsonElementSchema)
|
|
5648
|
-
]).nullable()
|
|
5649
|
-
);
|
|
5650
|
-
var externalSchema = z.object({
|
|
5651
|
-
url: z.string()
|
|
5652
|
-
});
|
|
5653
|
-
var stepErrorSchema = z.object({
|
|
5654
|
-
error: z.string().optional(),
|
|
5655
|
-
validation: jsonElementSchema.optional()
|
|
5656
|
-
});
|
|
5657
|
-
var stringSchemaFormatSchema = z.union([
|
|
5658
|
-
z.literal("date"),
|
|
5659
|
-
z.literal("email"),
|
|
5660
|
-
z.literal("numeric"),
|
|
5661
|
-
z.literal("password"),
|
|
5662
|
-
z.literal("phone-number"),
|
|
5663
|
-
z.literal("base64url")
|
|
5664
|
-
]);
|
|
5665
|
-
var summarySummariserSchema = z.object({
|
|
5666
|
-
defaultTitle: z.string().optional(),
|
|
5667
|
-
defaultDescription: z.string().optional(),
|
|
5668
|
-
defaultIcon: iconSchema.optional(),
|
|
5669
|
-
defaultImage: imageSchema.optional(),
|
|
5670
|
-
providesTitle: z.boolean().optional(),
|
|
5671
|
-
providesDescription: z.boolean().optional(),
|
|
5672
|
-
providesIcon: z.boolean().optional(),
|
|
5673
|
-
providesImage: z.boolean().optional()
|
|
5674
|
-
});
|
|
5675
|
-
var validateAsyncSchema = z.object({
|
|
5676
|
-
param: z.string(),
|
|
5677
|
-
method: httpMethodSchema,
|
|
5678
|
-
url: z.string()
|
|
5679
|
-
});
|
|
5680
|
-
var summaryProviderSchema = z.object({
|
|
5681
|
-
providesTitle: z.boolean().optional(),
|
|
5682
|
-
providesDescription: z.boolean().optional(),
|
|
5683
|
-
providesIcon: z.boolean().optional(),
|
|
5684
|
-
providesImage: z.boolean().optional()
|
|
5685
|
-
});
|
|
5686
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5687
|
-
var navigationStackBehaviorSchema = z.union([
|
|
5688
|
-
z.literal("default"),
|
|
5689
|
-
z.literal("remove-previous"),
|
|
5690
|
-
z.literal("remove-all"),
|
|
5691
|
-
z.literal("replace-current")
|
|
5692
|
-
]);
|
|
5693
|
-
var actionTypeSchema = z.union([
|
|
5694
|
-
z.literal("primary"),
|
|
5695
|
-
z.literal("secondary"),
|
|
5696
|
-
z.literal("link"),
|
|
5697
|
-
z.literal("positive"),
|
|
5698
|
-
z.literal("negative")
|
|
5676
|
+
z.literal("mobile"),
|
|
5677
|
+
z.literal("fax"),
|
|
5678
|
+
z.literal("pager")
|
|
5699
5679
|
]);
|
|
5700
|
-
var
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5680
|
+
var autocapitalizationTypeSchema = z.union([
|
|
5681
|
+
z.literal("none"),
|
|
5682
|
+
z.literal("characters"),
|
|
5683
|
+
z.literal("sentences"),
|
|
5684
|
+
z.literal("words")
|
|
5685
|
+
]);
|
|
5686
|
+
var iconNamedSchema = z.object({
|
|
5687
|
+
name: z.string()
|
|
5704
5688
|
});
|
|
5705
|
-
var
|
|
5706
|
-
|
|
5689
|
+
var iconTextSchema = z.object({
|
|
5690
|
+
text: z.string()
|
|
5691
|
+
});
|
|
5692
|
+
var stringSchemaFormatSchema = z.union([
|
|
5693
|
+
z.literal("date"),
|
|
5694
|
+
z.literal("email"),
|
|
5695
|
+
z.literal("numeric"),
|
|
5696
|
+
z.literal("password"),
|
|
5697
|
+
z.literal("phone-number"),
|
|
5698
|
+
z.literal("base64url")
|
|
5699
|
+
]);
|
|
5700
|
+
var stepErrorSchema = z.object({
|
|
5701
|
+
error: z.string().optional(),
|
|
5702
|
+
validation: jsonElementSchema.optional()
|
|
5707
5703
|
});
|
|
5708
5704
|
var actionSchema = z.object({
|
|
5709
5705
|
title: z.string().optional(),
|
|
@@ -5720,6 +5716,31 @@ var actionSchema = z.object({
|
|
|
5720
5716
|
timeout: z.number().optional(),
|
|
5721
5717
|
skipValidation: z.boolean().optional()
|
|
5722
5718
|
});
|
|
5719
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5720
|
+
var summarySummariserSchema = z.object({
|
|
5721
|
+
defaultTitle: z.string().optional(),
|
|
5722
|
+
defaultDescription: z.string().optional(),
|
|
5723
|
+
defaultIcon: iconSchema.optional(),
|
|
5724
|
+
defaultImage: imageSchema.optional(),
|
|
5725
|
+
providesTitle: z.boolean().optional(),
|
|
5726
|
+
providesDescription: z.boolean().optional(),
|
|
5727
|
+
providesIcon: z.boolean().optional(),
|
|
5728
|
+
providesImage: z.boolean().optional()
|
|
5729
|
+
});
|
|
5730
|
+
var formLayoutSchema = z.object({
|
|
5731
|
+
type: z.literal("form"),
|
|
5732
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5733
|
+
schemaId: z.string(),
|
|
5734
|
+
control: z.string().optional(),
|
|
5735
|
+
margin: sizeSchema.optional()
|
|
5736
|
+
});
|
|
5737
|
+
var infoLayoutSchema = z.object({
|
|
5738
|
+
type: z.literal("info"),
|
|
5739
|
+
markdown: z.string(),
|
|
5740
|
+
align: alignSchema.optional(),
|
|
5741
|
+
control: z.string().optional(),
|
|
5742
|
+
margin: sizeSchema.optional()
|
|
5743
|
+
});
|
|
5723
5744
|
var listLayoutItemSchema = z.object({
|
|
5724
5745
|
description: z.string().optional(),
|
|
5725
5746
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -5731,72 +5752,77 @@ var listLayoutItemSchema = z.object({
|
|
|
5731
5752
|
subvalue: z.string().optional(),
|
|
5732
5753
|
tag: z.string().optional()
|
|
5733
5754
|
});
|
|
5734
|
-
var
|
|
5735
|
-
|
|
5736
|
-
title: z.string().optional(),
|
|
5737
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
5738
|
-
control: z.string().optional(),
|
|
5739
|
-
margin: sizeSchema.optional()
|
|
5740
|
-
});
|
|
5741
|
-
var reviewLayoutFieldSchema = z.object({
|
|
5742
|
-
label: z.string(),
|
|
5743
|
-
value: z.string(),
|
|
5744
|
-
rawValue: z.string().optional(),
|
|
5745
|
-
help: helpSchema.optional(),
|
|
5746
|
-
tag: z.string().optional()
|
|
5755
|
+
var actionResponseBodySchema = z.object({
|
|
5756
|
+
action: actionSchema
|
|
5747
5757
|
});
|
|
5748
|
-
var
|
|
5749
|
-
type: z.literal("
|
|
5758
|
+
var searchResultActionSchema = z.object({
|
|
5759
|
+
type: z.literal("action"),
|
|
5750
5760
|
title: z.string(),
|
|
5751
5761
|
description: z.string().optional(),
|
|
5752
5762
|
icon: iconSchema.optional(),
|
|
5753
5763
|
image: imageSchema.optional(),
|
|
5754
|
-
value:
|
|
5764
|
+
value: actionSchema
|
|
5755
5765
|
});
|
|
5756
|
-
var
|
|
5757
|
-
type: z.literal("
|
|
5766
|
+
var searchResultSearchSchema = z.object({
|
|
5767
|
+
type: z.literal("search"),
|
|
5758
5768
|
title: z.string(),
|
|
5759
5769
|
description: z.string().optional(),
|
|
5760
5770
|
icon: iconSchema.optional(),
|
|
5761
5771
|
image: imageSchema.optional(),
|
|
5762
|
-
value:
|
|
5772
|
+
value: searchSearchRequestSchema
|
|
5763
5773
|
});
|
|
5764
|
-
var
|
|
5774
|
+
var actionBehaviorSchema = z.object({
|
|
5775
|
+
type: z.literal("action"),
|
|
5765
5776
|
action: actionSchema
|
|
5766
5777
|
});
|
|
5767
|
-
var
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
error: z.string().optional(),
|
|
5771
|
-
validation: jsonElementSchema.optional(),
|
|
5772
|
-
refreshUrl: z.string().optional()
|
|
5778
|
+
var containerBehaviorSchema = z.object({
|
|
5779
|
+
action: actionSchema.optional(),
|
|
5780
|
+
link: linkSchema.optional()
|
|
5773
5781
|
});
|
|
5774
5782
|
var navigationBackBehaviorSchema = z.object({
|
|
5775
5783
|
title: z.string().optional(),
|
|
5776
5784
|
action: actionSchema
|
|
5777
5785
|
});
|
|
5778
|
-
var
|
|
5779
|
-
|
|
5780
|
-
|
|
5786
|
+
var suggestionsValueSchema = z.object({
|
|
5787
|
+
label: z.string(),
|
|
5788
|
+
value: jsonElementSchema.optional(),
|
|
5789
|
+
icon: iconSchema.optional(),
|
|
5790
|
+
image: imageSchema.optional(),
|
|
5791
|
+
tag: z.string().optional()
|
|
5781
5792
|
});
|
|
5782
|
-
var
|
|
5783
|
-
|
|
5784
|
-
|
|
5793
|
+
var suggestionsSchema = z.object({
|
|
5794
|
+
values: z.array(suggestionsValueSchema)
|
|
5795
|
+
});
|
|
5796
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
5797
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5798
|
+
var searchResponseBodySchema = z.object({
|
|
5799
|
+
results: z.array(searchResultSchema)
|
|
5785
5800
|
});
|
|
5786
5801
|
var behaviorSchema = z.union([
|
|
5787
5802
|
actionBehaviorSchema,
|
|
5788
5803
|
containerBehaviorSchema,
|
|
5789
5804
|
linkBehaviorSchema
|
|
5790
5805
|
]);
|
|
5791
|
-
var
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5806
|
+
var navigationSchema = z.object({
|
|
5807
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
5808
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
5809
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5795
5810
|
});
|
|
5796
|
-
var
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5811
|
+
var linkHandlerSchema = z.object({
|
|
5812
|
+
regexPattern: z.string(),
|
|
5813
|
+
behavior: behaviorSchema.optional()
|
|
5814
|
+
});
|
|
5815
|
+
var pollingOnErrorSchema = z.object({
|
|
5816
|
+
action: actionSchema.optional(),
|
|
5817
|
+
behavior: behaviorSchema.optional()
|
|
5818
|
+
});
|
|
5819
|
+
var pollingSchema = z.object({
|
|
5820
|
+
interval: z.number().optional(),
|
|
5821
|
+
url: z.string(),
|
|
5822
|
+
delay: z.number().optional(),
|
|
5823
|
+
timeout: z.number().optional(),
|
|
5824
|
+
maxAttempts: z.number(),
|
|
5825
|
+
onError: pollingOnErrorSchema
|
|
5800
5826
|
});
|
|
5801
5827
|
var decisionLayoutOptionSchema = z.object({
|
|
5802
5828
|
action: actionSchema.optional(),
|
|
@@ -5808,11 +5834,6 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5808
5834
|
behavior: behaviorSchema.optional(),
|
|
5809
5835
|
tag: z.string().optional()
|
|
5810
5836
|
});
|
|
5811
|
-
var itemCallToActionSchema = z.object({
|
|
5812
|
-
title: z.string(),
|
|
5813
|
-
accessibilityDescription: z.string().optional(),
|
|
5814
|
-
behavior: behaviorSchema
|
|
5815
|
-
});
|
|
5816
5837
|
var buttonLayoutSchema = z.object({
|
|
5817
5838
|
type: z.literal("button"),
|
|
5818
5839
|
action: actionSchema.optional(),
|
|
@@ -5825,26 +5846,22 @@ var buttonLayoutSchema = z.object({
|
|
|
5825
5846
|
control: z.string().optional(),
|
|
5826
5847
|
margin: sizeSchema.optional()
|
|
5827
5848
|
});
|
|
5828
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5829
|
-
var linkHandlerSchema = z.object({
|
|
5830
|
-
regexPattern: z.string(),
|
|
5831
|
-
behavior: behaviorSchema.optional()
|
|
5832
|
-
});
|
|
5833
|
-
var navigationSchema = z.object({
|
|
5834
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
5835
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
5836
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5837
|
-
});
|
|
5838
|
-
var pollingOnErrorSchema = z.object({
|
|
5839
|
-
action: actionSchema.optional(),
|
|
5840
|
-
behavior: behaviorSchema.optional()
|
|
5841
|
-
});
|
|
5842
5849
|
var reviewLayoutCallToActionSchema = z.object({
|
|
5843
5850
|
action: actionSchema.optional(),
|
|
5844
5851
|
title: z.string(),
|
|
5845
5852
|
accessibilityDescription: z.string().optional(),
|
|
5846
5853
|
behavior: behaviorSchema.optional()
|
|
5847
5854
|
});
|
|
5855
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
5856
|
+
title: z.string(),
|
|
5857
|
+
accessibilityDescription: z.string().optional(),
|
|
5858
|
+
behavior: behaviorSchema
|
|
5859
|
+
});
|
|
5860
|
+
var itemCallToActionSchema = z.object({
|
|
5861
|
+
title: z.string(),
|
|
5862
|
+
accessibilityDescription: z.string().optional(),
|
|
5863
|
+
behavior: behaviorSchema
|
|
5864
|
+
});
|
|
5848
5865
|
var alertLayoutSchema = z.object({
|
|
5849
5866
|
type: z.literal("alert"),
|
|
5850
5867
|
markdown: z.string(),
|
|
@@ -5853,13 +5870,10 @@ var alertLayoutSchema = z.object({
|
|
|
5853
5870
|
margin: sizeSchema.optional(),
|
|
5854
5871
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5855
5872
|
});
|
|
5856
|
-
var
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
items: z.array(listLayoutItemSchema),
|
|
5861
|
-
control: z.string().optional(),
|
|
5862
|
-
margin: sizeSchema.optional()
|
|
5873
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5874
|
+
title: z.string(),
|
|
5875
|
+
accessibilityDescription: z.string().optional(),
|
|
5876
|
+
behavior: behaviorSchema
|
|
5863
5877
|
});
|
|
5864
5878
|
var decisionLayoutSchema = z.object({
|
|
5865
5879
|
type: z.literal("decision"),
|
|
@@ -5868,34 +5882,29 @@ var decisionLayoutSchema = z.object({
|
|
|
5868
5882
|
control: z.string().optional(),
|
|
5869
5883
|
margin: sizeSchema.optional()
|
|
5870
5884
|
});
|
|
5871
|
-
var
|
|
5872
|
-
|
|
5873
|
-
description: z.string().optional(),
|
|
5874
|
-
icon: iconSchema,
|
|
5875
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
5876
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
5877
|
-
tag: z.string().optional()
|
|
5878
|
-
});
|
|
5879
|
-
var reviewLayoutSchema = z.object({
|
|
5880
|
-
type: z.literal("review"),
|
|
5881
|
-
orientation: z.string().optional(),
|
|
5882
|
-
action: actionSchema.optional(),
|
|
5883
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5885
|
+
var listLayoutSchema = z.object({
|
|
5886
|
+
type: z.literal("list"),
|
|
5884
5887
|
title: z.string().optional(),
|
|
5885
|
-
callToAction:
|
|
5888
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
5889
|
+
items: z.array(listLayoutItemSchema),
|
|
5886
5890
|
control: z.string().optional(),
|
|
5887
5891
|
margin: sizeSchema.optional()
|
|
5888
5892
|
});
|
|
5889
|
-
var
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5893
|
+
var constSchemaSchema = z.object({
|
|
5894
|
+
hidden: z.boolean().optional(),
|
|
5895
|
+
alert: alertLayoutSchema.optional(),
|
|
5896
|
+
control: z.string().optional(),
|
|
5897
|
+
promoted: z.boolean().optional(),
|
|
5898
|
+
$id: z.string().optional(),
|
|
5899
|
+
const: jsonElementSchema,
|
|
5900
|
+
title: z.string().optional(),
|
|
5901
|
+
description: z.string().optional(),
|
|
5902
|
+
icon: iconSchema.optional(),
|
|
5903
|
+
image: imageSchema.optional(),
|
|
5904
|
+
keywords: z.array(z.string()).optional(),
|
|
5905
|
+
summary: summaryProviderSchema.optional(),
|
|
5906
|
+
analyticsId: z.string().optional(),
|
|
5907
|
+
disabled: z.boolean().optional()
|
|
5899
5908
|
});
|
|
5900
5909
|
var blobSchemaSchema = z.object({
|
|
5901
5910
|
type: z.literal("blob"),
|
|
@@ -5919,21 +5928,23 @@ var blobSchemaSchema = z.object({
|
|
|
5919
5928
|
source: uploadSourceSchema.optional(),
|
|
5920
5929
|
disabled: z.boolean().optional()
|
|
5921
5930
|
});
|
|
5922
|
-
var
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
$id: z.string().optional(),
|
|
5928
|
-
const: jsonElementSchema,
|
|
5931
|
+
var reviewLayoutSchema = z.object({
|
|
5932
|
+
type: z.literal("review"),
|
|
5933
|
+
orientation: z.string().optional(),
|
|
5934
|
+
action: actionSchema.optional(),
|
|
5935
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
5929
5936
|
title: z.string().optional(),
|
|
5937
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5938
|
+
control: z.string().optional(),
|
|
5939
|
+
margin: sizeSchema.optional()
|
|
5940
|
+
});
|
|
5941
|
+
var statusListLayoutItemSchema = z.object({
|
|
5942
|
+
title: z.string(),
|
|
5930
5943
|
description: z.string().optional(),
|
|
5931
|
-
icon: iconSchema
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
analyticsId: z.string().optional(),
|
|
5936
|
-
disabled: z.boolean().optional()
|
|
5944
|
+
icon: iconSchema,
|
|
5945
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5946
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5947
|
+
tag: z.string().optional()
|
|
5937
5948
|
});
|
|
5938
5949
|
var statusListLayoutSchema = z.object({
|
|
5939
5950
|
type: z.literal("status-list"),
|
|
@@ -5942,6 +5953,39 @@ var statusListLayoutSchema = z.object({
|
|
|
5942
5953
|
control: z.string().optional(),
|
|
5943
5954
|
margin: sizeSchema.optional()
|
|
5944
5955
|
});
|
|
5956
|
+
var persistAsyncSchema = z.lazy(
|
|
5957
|
+
() => z.object({
|
|
5958
|
+
param: z.string(),
|
|
5959
|
+
idProperty: z.string(),
|
|
5960
|
+
schema: schemaSchema,
|
|
5961
|
+
url: z.string(),
|
|
5962
|
+
method: httpMethodSchema
|
|
5963
|
+
})
|
|
5964
|
+
);
|
|
5965
|
+
var schemaSchema = z.lazy(
|
|
5966
|
+
() => z.union([
|
|
5967
|
+
allOfSchemaSchema,
|
|
5968
|
+
arraySchemaSchema,
|
|
5969
|
+
blobSchemaSchema,
|
|
5970
|
+
booleanSchemaSchema,
|
|
5971
|
+
constSchemaSchema,
|
|
5972
|
+
integerSchemaSchema,
|
|
5973
|
+
numberSchemaSchema,
|
|
5974
|
+
objectSchemaSchema,
|
|
5975
|
+
oneOfSchemaSchema,
|
|
5976
|
+
stringSchemaSchema
|
|
5977
|
+
])
|
|
5978
|
+
);
|
|
5979
|
+
var columnsLayoutSchema = z.lazy(
|
|
5980
|
+
() => z.object({
|
|
5981
|
+
type: z.literal("columns"),
|
|
5982
|
+
left: z.array(layoutSchema),
|
|
5983
|
+
right: z.array(layoutSchema),
|
|
5984
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
5985
|
+
control: z.string().optional(),
|
|
5986
|
+
margin: sizeSchema.optional()
|
|
5987
|
+
})
|
|
5988
|
+
);
|
|
5945
5989
|
var layoutSchema = z.lazy(
|
|
5946
5990
|
() => z.union([
|
|
5947
5991
|
alertLayoutSchema,
|
|
@@ -5965,6 +6009,12 @@ var layoutSchema = z.lazy(
|
|
|
5965
6009
|
statusListLayoutSchema
|
|
5966
6010
|
])
|
|
5967
6011
|
);
|
|
6012
|
+
var modalLayoutContentSchema = z.lazy(
|
|
6013
|
+
() => z.object({
|
|
6014
|
+
title: z.string().optional(),
|
|
6015
|
+
components: z.array(layoutSchema)
|
|
6016
|
+
})
|
|
6017
|
+
);
|
|
5968
6018
|
var boxLayoutSchema = z.lazy(
|
|
5969
6019
|
() => z.object({
|
|
5970
6020
|
type: z.literal("box"),
|
|
@@ -5975,16 +6025,6 @@ var boxLayoutSchema = z.lazy(
|
|
|
5975
6025
|
margin: sizeSchema.optional()
|
|
5976
6026
|
})
|
|
5977
6027
|
);
|
|
5978
|
-
var columnsLayoutSchema = z.lazy(
|
|
5979
|
-
() => z.object({
|
|
5980
|
-
type: z.literal("columns"),
|
|
5981
|
-
left: z.array(layoutSchema),
|
|
5982
|
-
right: z.array(layoutSchema),
|
|
5983
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
5984
|
-
control: z.string().optional(),
|
|
5985
|
-
margin: sizeSchema.optional()
|
|
5986
|
-
})
|
|
5987
|
-
);
|
|
5988
6028
|
var modalLayoutSchema = z.lazy(
|
|
5989
6029
|
() => z.object({
|
|
5990
6030
|
type: z.literal("modal"),
|
|
@@ -5994,12 +6034,6 @@ var modalLayoutSchema = z.lazy(
|
|
|
5994
6034
|
content: modalLayoutContentSchema
|
|
5995
6035
|
})
|
|
5996
6036
|
);
|
|
5997
|
-
var modalLayoutContentSchema = z.lazy(
|
|
5998
|
-
() => z.object({
|
|
5999
|
-
title: z.string().optional(),
|
|
6000
|
-
components: z.array(layoutSchema)
|
|
6001
|
-
})
|
|
6002
|
-
);
|
|
6003
6037
|
var stepSchema = z.lazy(
|
|
6004
6038
|
() => z.object({
|
|
6005
6039
|
key: z.string().optional(),
|
|
@@ -6019,57 +6053,33 @@ var stepSchema = z.lazy(
|
|
|
6019
6053
|
errors: stepErrorSchema.optional(),
|
|
6020
6054
|
navigation: navigationSchema.optional(),
|
|
6021
6055
|
refreshUrl: z.string().optional(),
|
|
6022
|
-
control: z.string().optional()
|
|
6023
|
-
})
|
|
6024
|
-
);
|
|
6025
|
-
var schemaSchema = z.lazy(
|
|
6026
|
-
() => z.union([
|
|
6027
|
-
allOfSchemaSchema,
|
|
6028
|
-
arraySchemaSchema,
|
|
6029
|
-
blobSchemaSchema,
|
|
6030
|
-
booleanSchemaSchema,
|
|
6031
|
-
constSchemaSchema,
|
|
6032
|
-
integerSchemaSchema,
|
|
6033
|
-
numberSchemaSchema,
|
|
6034
|
-
objectSchemaSchema,
|
|
6035
|
-
oneOfSchemaSchema,
|
|
6036
|
-
stringSchemaSchema
|
|
6037
|
-
])
|
|
6038
|
-
);
|
|
6039
|
-
var allOfSchemaSchema = z.lazy(
|
|
6040
|
-
() => z.object({
|
|
6041
|
-
disabled: z.boolean().optional(),
|
|
6042
|
-
promoted: z.boolean().optional(),
|
|
6043
|
-
allOf: z.array(schemaSchema),
|
|
6044
|
-
$id: z.string().optional(),
|
|
6045
|
-
title: z.string().optional(),
|
|
6046
|
-
description: z.string().optional(),
|
|
6047
6056
|
control: z.string().optional(),
|
|
6048
|
-
|
|
6049
|
-
icon: iconSchema.optional(),
|
|
6050
|
-
image: imageSchema.optional(),
|
|
6051
|
-
keywords: z.array(z.string()).optional(),
|
|
6052
|
-
summary: summaryProviderSchema.optional(),
|
|
6053
|
-
analyticsId: z.string().optional(),
|
|
6054
|
-
alert: alertLayoutSchema.optional()
|
|
6057
|
+
refreshAfter: z.string().optional()
|
|
6055
6058
|
})
|
|
6056
6059
|
);
|
|
6057
|
-
var
|
|
6058
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6059
|
-
);
|
|
6060
|
-
var booleanSchemaSchema = z.lazy(
|
|
6060
|
+
var stringSchemaSchema = z.lazy(
|
|
6061
6061
|
() => z.object({
|
|
6062
|
-
type: z.literal("
|
|
6062
|
+
type: z.literal("string"),
|
|
6063
6063
|
autofillProvider: z.string().optional(),
|
|
6064
6064
|
promoted: z.boolean().optional(),
|
|
6065
6065
|
refreshFormOnChange: z.boolean().optional(),
|
|
6066
6066
|
refreshUrl: z.string().optional(),
|
|
6067
6067
|
refreshFormUrl: z.string().optional(),
|
|
6068
|
+
format: stringSchemaFormatSchema.optional(),
|
|
6069
|
+
displayFormat: z.string().optional(),
|
|
6070
|
+
placeholder: z.string().optional(),
|
|
6071
|
+
minLength: z.number().optional(),
|
|
6072
|
+
maxLength: z.number().optional(),
|
|
6073
|
+
minimum: z.string().optional(),
|
|
6074
|
+
maximum: z.string().optional(),
|
|
6075
|
+
pattern: z.string().optional(),
|
|
6076
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6077
|
+
autocorrect: z.boolean().optional(),
|
|
6068
6078
|
$id: z.string().optional(),
|
|
6069
6079
|
title: z.string().optional(),
|
|
6070
6080
|
description: z.string().optional(),
|
|
6071
6081
|
control: z.string().optional(),
|
|
6072
|
-
default: z.
|
|
6082
|
+
default: z.string().optional(),
|
|
6073
6083
|
hidden: z.boolean().optional(),
|
|
6074
6084
|
disabled: z.boolean().optional(),
|
|
6075
6085
|
icon: iconSchema.optional(),
|
|
@@ -6080,42 +6090,46 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6080
6090
|
persistAsync: persistAsyncSchema.optional(),
|
|
6081
6091
|
refreshStepOnChange: z.boolean().optional(),
|
|
6082
6092
|
validationAsync: validateAsyncSchema.optional(),
|
|
6093
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6083
6094
|
alert: alertLayoutSchema.optional(),
|
|
6095
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6096
|
+
accepts: z.array(z.string()).optional(),
|
|
6097
|
+
maxSize: z.number().optional(),
|
|
6098
|
+
source: uploadSourceSchema.optional(),
|
|
6099
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6084
6100
|
autofillKey: z.string().optional(),
|
|
6085
|
-
help: helpSchema.optional()
|
|
6101
|
+
help: helpSchema.optional(),
|
|
6102
|
+
suggestions: suggestionsSchema.optional()
|
|
6086
6103
|
})
|
|
6087
6104
|
);
|
|
6088
|
-
var
|
|
6105
|
+
var oneOfSchemaSchema = z.lazy(
|
|
6089
6106
|
() => z.object({
|
|
6090
|
-
type: z.literal("integer"),
|
|
6091
6107
|
autofillProvider: z.string().optional(),
|
|
6092
6108
|
promoted: z.boolean().optional(),
|
|
6093
6109
|
refreshFormOnChange: z.boolean().optional(),
|
|
6094
6110
|
refreshUrl: z.string().optional(),
|
|
6095
6111
|
refreshFormUrl: z.string().optional(),
|
|
6112
|
+
promotion: jsonElementSchema.optional(),
|
|
6113
|
+
oneOf: z.array(schemaSchema),
|
|
6096
6114
|
placeholder: z.string().optional(),
|
|
6097
|
-
minimum: z.number().optional(),
|
|
6098
|
-
maximum: z.number().optional(),
|
|
6099
6115
|
$id: z.string().optional(),
|
|
6100
6116
|
title: z.string().optional(),
|
|
6101
6117
|
description: z.string().optional(),
|
|
6102
6118
|
control: z.string().optional(),
|
|
6103
|
-
default:
|
|
6119
|
+
default: jsonElementSchema.optional(),
|
|
6104
6120
|
hidden: z.boolean().optional(),
|
|
6105
|
-
disabled: z.boolean().optional(),
|
|
6106
6121
|
icon: iconSchema.optional(),
|
|
6107
6122
|
image: imageSchema.optional(),
|
|
6108
6123
|
keywords: z.array(z.string()).optional(),
|
|
6109
6124
|
summary: summaryProviderSchema.optional(),
|
|
6110
6125
|
analyticsId: z.string().optional(),
|
|
6111
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
6112
6126
|
refreshStepOnChange: z.boolean().optional(),
|
|
6113
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6114
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6115
6127
|
alert: alertLayoutSchema.optional(),
|
|
6128
|
+
help: helpSchema.optional(),
|
|
6116
6129
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6117
6130
|
autofillKey: z.string().optional(),
|
|
6118
|
-
|
|
6131
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6132
|
+
disabled: z.boolean().optional()
|
|
6119
6133
|
})
|
|
6120
6134
|
);
|
|
6121
6135
|
var numberSchemaSchema = z.lazy(
|
|
@@ -6151,16 +6165,12 @@ var numberSchemaSchema = z.lazy(
|
|
|
6151
6165
|
help: helpSchema.optional()
|
|
6152
6166
|
})
|
|
6153
6167
|
);
|
|
6154
|
-
var
|
|
6168
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6155
6169
|
() => z.object({
|
|
6156
|
-
type: z.literal("
|
|
6157
|
-
disabled: z.boolean().optional(),
|
|
6170
|
+
type: z.literal("array"),
|
|
6158
6171
|
promoted: z.boolean().optional(),
|
|
6159
|
-
help: helpSchema.optional(),
|
|
6160
|
-
properties: z.record(schemaSchema),
|
|
6161
|
-
displayOrder: z.array(z.string()),
|
|
6162
|
-
required: z.array(z.string()).optional(),
|
|
6163
6172
|
$id: z.string().optional(),
|
|
6173
|
+
items: z.array(schemaSchema),
|
|
6164
6174
|
title: z.string().optional(),
|
|
6165
6175
|
description: z.string().optional(),
|
|
6166
6176
|
control: z.string().optional(),
|
|
@@ -6170,62 +6180,27 @@ var objectSchemaSchema = z.lazy(
|
|
|
6170
6180
|
keywords: z.array(z.string()).optional(),
|
|
6171
6181
|
summary: summaryProviderSchema.optional(),
|
|
6172
6182
|
analyticsId: z.string().optional(),
|
|
6183
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6184
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6173
6185
|
alert: alertLayoutSchema.optional()
|
|
6174
6186
|
})
|
|
6175
6187
|
);
|
|
6176
|
-
var
|
|
6177
|
-
() => z.object({
|
|
6178
|
-
autofillProvider: z.string().optional(),
|
|
6179
|
-
promoted: z.boolean().optional(),
|
|
6180
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
6181
|
-
refreshUrl: z.string().optional(),
|
|
6182
|
-
refreshFormUrl: z.string().optional(),
|
|
6183
|
-
promotion: jsonElementSchema.optional(),
|
|
6184
|
-
oneOf: z.array(schemaSchema),
|
|
6185
|
-
placeholder: z.string().optional(),
|
|
6186
|
-
$id: z.string().optional(),
|
|
6187
|
-
title: z.string().optional(),
|
|
6188
|
-
description: z.string().optional(),
|
|
6189
|
-
control: z.string().optional(),
|
|
6190
|
-
default: jsonElementSchema.optional(),
|
|
6191
|
-
hidden: z.boolean().optional(),
|
|
6192
|
-
icon: iconSchema.optional(),
|
|
6193
|
-
image: imageSchema.optional(),
|
|
6194
|
-
keywords: z.array(z.string()).optional(),
|
|
6195
|
-
summary: summaryProviderSchema.optional(),
|
|
6196
|
-
analyticsId: z.string().optional(),
|
|
6197
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
6198
|
-
alert: alertLayoutSchema.optional(),
|
|
6199
|
-
help: helpSchema.optional(),
|
|
6200
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6201
|
-
autofillKey: z.string().optional(),
|
|
6202
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6203
|
-
disabled: z.boolean().optional()
|
|
6204
|
-
})
|
|
6205
|
-
);
|
|
6206
|
-
var stringSchemaSchema = z.lazy(
|
|
6188
|
+
var integerSchemaSchema = z.lazy(
|
|
6207
6189
|
() => z.object({
|
|
6208
|
-
type: z.literal("
|
|
6190
|
+
type: z.literal("integer"),
|
|
6209
6191
|
autofillProvider: z.string().optional(),
|
|
6210
6192
|
promoted: z.boolean().optional(),
|
|
6211
6193
|
refreshFormOnChange: z.boolean().optional(),
|
|
6212
6194
|
refreshUrl: z.string().optional(),
|
|
6213
6195
|
refreshFormUrl: z.string().optional(),
|
|
6214
|
-
format: stringSchemaFormatSchema.optional(),
|
|
6215
|
-
displayFormat: z.string().optional(),
|
|
6216
6196
|
placeholder: z.string().optional(),
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
minimum: z.string().optional(),
|
|
6220
|
-
maximum: z.string().optional(),
|
|
6221
|
-
pattern: z.string().optional(),
|
|
6222
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6223
|
-
autocorrect: z.boolean().optional(),
|
|
6197
|
+
minimum: z.number().optional(),
|
|
6198
|
+
maximum: z.number().optional(),
|
|
6224
6199
|
$id: z.string().optional(),
|
|
6225
6200
|
title: z.string().optional(),
|
|
6226
6201
|
description: z.string().optional(),
|
|
6227
6202
|
control: z.string().optional(),
|
|
6228
|
-
default: z.
|
|
6203
|
+
default: z.number().optional(),
|
|
6229
6204
|
hidden: z.boolean().optional(),
|
|
6230
6205
|
disabled: z.boolean().optional(),
|
|
6231
6206
|
icon: iconSchema.optional(),
|
|
@@ -6238,15 +6213,14 @@ var stringSchemaSchema = z.lazy(
|
|
|
6238
6213
|
validationAsync: validateAsyncSchema.optional(),
|
|
6239
6214
|
validationMessages: z.record(z.string()).optional(),
|
|
6240
6215
|
alert: alertLayoutSchema.optional(),
|
|
6241
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
6242
|
-
accepts: z.array(z.string()).optional(),
|
|
6243
|
-
maxSize: z.number().optional(),
|
|
6244
|
-
source: uploadSourceSchema.optional(),
|
|
6245
6216
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6246
6217
|
autofillKey: z.string().optional(),
|
|
6247
6218
|
help: helpSchema.optional()
|
|
6248
6219
|
})
|
|
6249
6220
|
);
|
|
6221
|
+
var arraySchemaSchema = z.lazy(
|
|
6222
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6223
|
+
);
|
|
6250
6224
|
var arraySchemaListSchema = z.lazy(
|
|
6251
6225
|
() => z.object({
|
|
6252
6226
|
type: z.literal("array"),
|
|
@@ -6274,32 +6248,71 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6274
6248
|
disabled: z.boolean().optional()
|
|
6275
6249
|
})
|
|
6276
6250
|
);
|
|
6277
|
-
var
|
|
6251
|
+
var allOfSchemaSchema = z.lazy(
|
|
6278
6252
|
() => z.object({
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6253
|
+
disabled: z.boolean().optional(),
|
|
6254
|
+
promoted: z.boolean().optional(),
|
|
6255
|
+
allOf: z.array(schemaSchema),
|
|
6256
|
+
$id: z.string().optional(),
|
|
6257
|
+
title: z.string().optional(),
|
|
6258
|
+
description: z.string().optional(),
|
|
6259
|
+
control: z.string().optional(),
|
|
6260
|
+
hidden: z.boolean().optional(),
|
|
6261
|
+
icon: iconSchema.optional(),
|
|
6262
|
+
image: imageSchema.optional(),
|
|
6263
|
+
keywords: z.array(z.string()).optional(),
|
|
6264
|
+
summary: summaryProviderSchema.optional(),
|
|
6265
|
+
analyticsId: z.string().optional(),
|
|
6266
|
+
alert: alertLayoutSchema.optional()
|
|
6284
6267
|
})
|
|
6285
6268
|
);
|
|
6286
|
-
var
|
|
6269
|
+
var booleanSchemaSchema = z.lazy(
|
|
6287
6270
|
() => z.object({
|
|
6288
|
-
type: z.literal("
|
|
6271
|
+
type: z.literal("boolean"),
|
|
6272
|
+
autofillProvider: z.string().optional(),
|
|
6289
6273
|
promoted: z.boolean().optional(),
|
|
6274
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
6275
|
+
refreshUrl: z.string().optional(),
|
|
6276
|
+
refreshFormUrl: z.string().optional(),
|
|
6290
6277
|
$id: z.string().optional(),
|
|
6291
|
-
items: z.array(schemaSchema),
|
|
6292
6278
|
title: z.string().optional(),
|
|
6293
6279
|
description: z.string().optional(),
|
|
6294
6280
|
control: z.string().optional(),
|
|
6281
|
+
default: z.boolean().optional(),
|
|
6295
6282
|
hidden: z.boolean().optional(),
|
|
6283
|
+
disabled: z.boolean().optional(),
|
|
6296
6284
|
icon: iconSchema.optional(),
|
|
6297
6285
|
image: imageSchema.optional(),
|
|
6298
6286
|
keywords: z.array(z.string()).optional(),
|
|
6299
6287
|
summary: summaryProviderSchema.optional(),
|
|
6300
6288
|
analyticsId: z.string().optional(),
|
|
6301
6289
|
persistAsync: persistAsyncSchema.optional(),
|
|
6290
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6302
6291
|
validationAsync: validateAsyncSchema.optional(),
|
|
6292
|
+
alert: alertLayoutSchema.optional(),
|
|
6293
|
+
autofillKey: z.string().optional(),
|
|
6294
|
+
help: helpSchema.optional()
|
|
6295
|
+
})
|
|
6296
|
+
);
|
|
6297
|
+
var objectSchemaSchema = z.lazy(
|
|
6298
|
+
() => z.object({
|
|
6299
|
+
type: z.literal("object"),
|
|
6300
|
+
disabled: z.boolean().optional(),
|
|
6301
|
+
promoted: z.boolean().optional(),
|
|
6302
|
+
help: helpSchema.optional(),
|
|
6303
|
+
properties: z.record(schemaSchema),
|
|
6304
|
+
displayOrder: z.array(z.string()),
|
|
6305
|
+
required: z.array(z.string()).optional(),
|
|
6306
|
+
$id: z.string().optional(),
|
|
6307
|
+
title: z.string().optional(),
|
|
6308
|
+
description: z.string().optional(),
|
|
6309
|
+
control: z.string().optional(),
|
|
6310
|
+
hidden: z.boolean().optional(),
|
|
6311
|
+
icon: iconSchema.optional(),
|
|
6312
|
+
image: imageSchema.optional(),
|
|
6313
|
+
keywords: z.array(z.string()).optional(),
|
|
6314
|
+
summary: summaryProviderSchema.optional(),
|
|
6315
|
+
analyticsId: z.string().optional(),
|
|
6303
6316
|
alert: alertLayoutSchema.optional()
|
|
6304
6317
|
})
|
|
6305
6318
|
);
|
|
@@ -7210,6 +7223,9 @@ var getComponentValidationAsync = (update, performValidationAsync) => (
|
|
|
7210
7223
|
}
|
|
7211
7224
|
);
|
|
7212
7225
|
|
|
7226
|
+
// src/revamp/domain/components/utils/isOrWasValid.ts
|
|
7227
|
+
var isOrWasValid = (getErrors, previous, current) => getErrors(previous).length === 0 || getErrors(current).length === 0;
|
|
7228
|
+
|
|
7213
7229
|
// src/revamp/domain/components/NumberInputComponent.ts
|
|
7214
7230
|
var createNumberInputComponent = (numberInputProps, updateComponent) => {
|
|
7215
7231
|
const _a = numberInputProps, {
|
|
@@ -7253,12 +7269,15 @@ var createNumberInputComponent = (numberInputProps, updateComponent) => {
|
|
|
7253
7269
|
},
|
|
7254
7270
|
// Noop
|
|
7255
7271
|
onChange(updatedValue) {
|
|
7272
|
+
const prevValue = this.value;
|
|
7256
7273
|
update((draft) => {
|
|
7257
7274
|
draft.errors = [];
|
|
7258
7275
|
draft.validationAsyncState.messages = {};
|
|
7259
7276
|
draft.value = updatedValue;
|
|
7260
7277
|
});
|
|
7261
|
-
|
|
7278
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
7279
|
+
performDebouncedRefresh == null ? void 0 : performDebouncedRefresh();
|
|
7280
|
+
}
|
|
7262
7281
|
onValueChange();
|
|
7263
7282
|
},
|
|
7264
7283
|
async getSubmittableValue() {
|
|
@@ -8042,12 +8061,15 @@ var createIntegerInputComponent = (integerInputProps, updateComponent) => {
|
|
|
8042
8061
|
},
|
|
8043
8062
|
// Noop
|
|
8044
8063
|
onChange(updatedValue) {
|
|
8064
|
+
const prevValue = this.value;
|
|
8045
8065
|
update((draft) => {
|
|
8046
8066
|
draft.errors = [];
|
|
8047
8067
|
draft.validationAsyncState.messages = {};
|
|
8048
8068
|
draft.value = updatedValue;
|
|
8049
8069
|
});
|
|
8050
|
-
|
|
8070
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
8071
|
+
performDebouncedRefresh == null ? void 0 : performDebouncedRefresh();
|
|
8072
|
+
}
|
|
8051
8073
|
onValueChange();
|
|
8052
8074
|
},
|
|
8053
8075
|
async getSubmittableValue() {
|
|
@@ -8349,12 +8371,15 @@ var createDateInputComponent = (textInputProps, updateComponent) => {
|
|
|
8349
8371
|
},
|
|
8350
8372
|
// Noop
|
|
8351
8373
|
onChange(updatedValue) {
|
|
8374
|
+
const prevValue = this.value;
|
|
8352
8375
|
update((draft) => {
|
|
8353
8376
|
draft.errors = [];
|
|
8354
8377
|
draft.validationAsyncState.messages = {};
|
|
8355
8378
|
draft.value = updatedValue;
|
|
8356
8379
|
});
|
|
8357
|
-
|
|
8380
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
8381
|
+
performRefresh == null ? void 0 : performRefresh();
|
|
8382
|
+
}
|
|
8358
8383
|
onValueChange();
|
|
8359
8384
|
},
|
|
8360
8385
|
async getSubmittableValue() {
|
|
@@ -8663,12 +8688,15 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
|
|
|
8663
8688
|
},
|
|
8664
8689
|
// Noop
|
|
8665
8690
|
onChange(updatedValue) {
|
|
8691
|
+
const prevValue = this.value;
|
|
8666
8692
|
update((draft) => {
|
|
8667
8693
|
draft.errors = [];
|
|
8668
8694
|
draft.validationAsyncState.messages = {};
|
|
8669
8695
|
draft.value = updatedValue;
|
|
8670
8696
|
});
|
|
8671
|
-
|
|
8697
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
8698
|
+
performDebouncedRefresh == null ? void 0 : performDebouncedRefresh();
|
|
8699
|
+
}
|
|
8672
8700
|
onValueChange();
|
|
8673
8701
|
},
|
|
8674
8702
|
async getSubmittableValue() {
|
|
@@ -11722,8 +11750,10 @@ var stepComponentToProps = ({
|
|
|
11722
11750
|
error,
|
|
11723
11751
|
external,
|
|
11724
11752
|
loadingState,
|
|
11753
|
+
step,
|
|
11725
11754
|
title,
|
|
11726
|
-
components
|
|
11755
|
+
components,
|
|
11756
|
+
onAction
|
|
11727
11757
|
}, rendererMapperProps) => {
|
|
11728
11758
|
const childrenProps = components.map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
11729
11759
|
return __spreadValues({
|
|
@@ -11735,9 +11765,11 @@ var stepComponentToProps = ({
|
|
|
11735
11765
|
error,
|
|
11736
11766
|
external,
|
|
11737
11767
|
loadingState,
|
|
11768
|
+
step,
|
|
11738
11769
|
title,
|
|
11739
11770
|
children: childrenProps.map(rendererMapperProps.render),
|
|
11740
|
-
childrenProps
|
|
11771
|
+
childrenProps,
|
|
11772
|
+
onAction
|
|
11741
11773
|
}, rendererMapperProps);
|
|
11742
11774
|
};
|
|
11743
11775
|
|