@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.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"),
|
|
@@ -5509,178 +5650,33 @@ var autocompleteTokenSchema = z.union([
|
|
|
5509
5650
|
z.literal("billing"),
|
|
5510
5651
|
z.literal("home"),
|
|
5511
5652
|
z.literal("work"),
|
|
5512
|
-
z.literal("mobile"),
|
|
5513
|
-
z.literal("fax"),
|
|
5514
|
-
z.literal("pager")
|
|
5515
|
-
]);
|
|
5516
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
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
|
-
});
|
|
5552
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5553
|
-
z.literal("not-done"),
|
|
5554
|
-
z.literal("pending"),
|
|
5555
|
-
z.literal("done")
|
|
5556
|
-
]);
|
|
5557
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5558
|
-
text: z.string(),
|
|
5559
|
-
context: contextSchema,
|
|
5560
|
-
tag: z.string().optional()
|
|
5561
|
-
});
|
|
5562
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5563
|
-
title: z.string()
|
|
5564
|
-
});
|
|
5565
|
-
var searchLayoutSchema = z.object({
|
|
5566
|
-
type: z.literal("search"),
|
|
5567
|
-
title: z.string(),
|
|
5568
|
-
method: httpMethodSchema,
|
|
5569
|
-
url: z.string(),
|
|
5570
|
-
param: z.string(),
|
|
5571
|
-
emptyMessage: z.string().optional(),
|
|
5572
|
-
control: z.string().optional(),
|
|
5573
|
-
margin: sizeSchema.optional()
|
|
5574
|
-
});
|
|
5575
|
-
var infoLayoutSchema = z.object({
|
|
5576
|
-
type: z.literal("info"),
|
|
5577
|
-
markdown: z.string(),
|
|
5578
|
-
align: alignSchema.optional(),
|
|
5579
|
-
control: z.string().optional(),
|
|
5580
|
-
margin: sizeSchema.optional()
|
|
5581
|
-
});
|
|
5582
|
-
var formLayoutSchema = z.object({
|
|
5583
|
-
type: z.literal("form"),
|
|
5584
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5585
|
-
schemaId: z.string(),
|
|
5586
|
-
control: z.string().optional(),
|
|
5587
|
-
margin: sizeSchema.optional()
|
|
5588
|
-
});
|
|
5589
|
-
var headingLayoutSchema = z.object({
|
|
5590
|
-
type: z.literal("heading"),
|
|
5591
|
-
text: z.string(),
|
|
5592
|
-
size: sizeSchema.optional(),
|
|
5593
|
-
align: alignSchema.optional(),
|
|
5594
|
-
control: z.string().optional(),
|
|
5595
|
-
margin: sizeSchema.optional()
|
|
5596
|
-
});
|
|
5597
|
-
var markdownLayoutSchema = z.object({
|
|
5598
|
-
type: z.literal("markdown"),
|
|
5599
|
-
content: z.string(),
|
|
5600
|
-
align: alignSchema.optional(),
|
|
5601
|
-
control: z.string().optional(),
|
|
5602
|
-
margin: sizeSchema.optional()
|
|
5603
|
-
});
|
|
5604
|
-
var columnsLayoutBiasSchema = z.union([
|
|
5605
|
-
z.literal("none"),
|
|
5606
|
-
z.literal("left"),
|
|
5607
|
-
z.literal("right")
|
|
5608
|
-
]);
|
|
5609
|
-
var helpSchema = z.object({
|
|
5610
|
-
markdown: z.string()
|
|
5611
|
-
});
|
|
5612
|
-
var searchSearchRequestSchema = z.object({
|
|
5613
|
-
url: z.string(),
|
|
5614
|
-
method: httpMethodSchema,
|
|
5615
|
-
param: z.string(),
|
|
5616
|
-
query: z.string()
|
|
5617
|
-
});
|
|
5618
|
-
var jsonElementSchema = z.lazy(
|
|
5619
|
-
() => z.union([
|
|
5620
|
-
z.string(),
|
|
5621
|
-
z.number(),
|
|
5622
|
-
z.boolean(),
|
|
5623
|
-
z.record(jsonElementSchema),
|
|
5624
|
-
z.array(jsonElementSchema)
|
|
5625
|
-
]).nullable()
|
|
5626
|
-
);
|
|
5627
|
-
var externalSchema = z.object({
|
|
5628
|
-
url: z.string()
|
|
5629
|
-
});
|
|
5630
|
-
var stepErrorSchema = z.object({
|
|
5631
|
-
error: z.string().optional(),
|
|
5632
|
-
validation: jsonElementSchema.optional()
|
|
5633
|
-
});
|
|
5634
|
-
var stringSchemaFormatSchema = z.union([
|
|
5635
|
-
z.literal("date"),
|
|
5636
|
-
z.literal("email"),
|
|
5637
|
-
z.literal("numeric"),
|
|
5638
|
-
z.literal("password"),
|
|
5639
|
-
z.literal("phone-number"),
|
|
5640
|
-
z.literal("base64url")
|
|
5641
|
-
]);
|
|
5642
|
-
var summarySummariserSchema = z.object({
|
|
5643
|
-
defaultTitle: z.string().optional(),
|
|
5644
|
-
defaultDescription: z.string().optional(),
|
|
5645
|
-
defaultIcon: iconSchema.optional(),
|
|
5646
|
-
defaultImage: imageSchema.optional(),
|
|
5647
|
-
providesTitle: z.boolean().optional(),
|
|
5648
|
-
providesDescription: z.boolean().optional(),
|
|
5649
|
-
providesIcon: z.boolean().optional(),
|
|
5650
|
-
providesImage: z.boolean().optional()
|
|
5651
|
-
});
|
|
5652
|
-
var validateAsyncSchema = z.object({
|
|
5653
|
-
param: z.string(),
|
|
5654
|
-
method: httpMethodSchema,
|
|
5655
|
-
url: z.string()
|
|
5656
|
-
});
|
|
5657
|
-
var summaryProviderSchema = z.object({
|
|
5658
|
-
providesTitle: z.boolean().optional(),
|
|
5659
|
-
providesDescription: z.boolean().optional(),
|
|
5660
|
-
providesIcon: z.boolean().optional(),
|
|
5661
|
-
providesImage: z.boolean().optional()
|
|
5662
|
-
});
|
|
5663
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5664
|
-
var navigationStackBehaviorSchema = z.union([
|
|
5665
|
-
z.literal("default"),
|
|
5666
|
-
z.literal("remove-previous"),
|
|
5667
|
-
z.literal("remove-all"),
|
|
5668
|
-
z.literal("replace-current")
|
|
5669
|
-
]);
|
|
5670
|
-
var actionTypeSchema = z.union([
|
|
5671
|
-
z.literal("primary"),
|
|
5672
|
-
z.literal("secondary"),
|
|
5673
|
-
z.literal("link"),
|
|
5674
|
-
z.literal("positive"),
|
|
5675
|
-
z.literal("negative")
|
|
5653
|
+
z.literal("mobile"),
|
|
5654
|
+
z.literal("fax"),
|
|
5655
|
+
z.literal("pager")
|
|
5676
5656
|
]);
|
|
5677
|
-
var
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5657
|
+
var autocapitalizationTypeSchema = z.union([
|
|
5658
|
+
z.literal("none"),
|
|
5659
|
+
z.literal("characters"),
|
|
5660
|
+
z.literal("sentences"),
|
|
5661
|
+
z.literal("words")
|
|
5662
|
+
]);
|
|
5663
|
+
var iconNamedSchema = z.object({
|
|
5664
|
+
name: z.string()
|
|
5681
5665
|
});
|
|
5682
|
-
var
|
|
5683
|
-
|
|
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()
|
|
5684
5680
|
});
|
|
5685
5681
|
var actionSchema = z.object({
|
|
5686
5682
|
title: z.string().optional(),
|
|
@@ -5697,6 +5693,31 @@ var actionSchema = z.object({
|
|
|
5697
5693
|
timeout: z.number().optional(),
|
|
5698
5694
|
skipValidation: z.boolean().optional()
|
|
5699
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
|
+
});
|
|
5700
5721
|
var listLayoutItemSchema = z.object({
|
|
5701
5722
|
description: z.string().optional(),
|
|
5702
5723
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -5708,72 +5729,77 @@ var listLayoutItemSchema = z.object({
|
|
|
5708
5729
|
subvalue: z.string().optional(),
|
|
5709
5730
|
tag: z.string().optional()
|
|
5710
5731
|
});
|
|
5711
|
-
var
|
|
5712
|
-
|
|
5713
|
-
title: z.string().optional(),
|
|
5714
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
5715
|
-
control: z.string().optional(),
|
|
5716
|
-
margin: sizeSchema.optional()
|
|
5717
|
-
});
|
|
5718
|
-
var reviewLayoutFieldSchema = z.object({
|
|
5719
|
-
label: z.string(),
|
|
5720
|
-
value: z.string(),
|
|
5721
|
-
rawValue: z.string().optional(),
|
|
5722
|
-
help: helpSchema.optional(),
|
|
5723
|
-
tag: z.string().optional()
|
|
5732
|
+
var actionResponseBodySchema = z.object({
|
|
5733
|
+
action: actionSchema
|
|
5724
5734
|
});
|
|
5725
|
-
var
|
|
5726
|
-
type: z.literal("
|
|
5735
|
+
var searchResultActionSchema = z.object({
|
|
5736
|
+
type: z.literal("action"),
|
|
5727
5737
|
title: z.string(),
|
|
5728
5738
|
description: z.string().optional(),
|
|
5729
5739
|
icon: iconSchema.optional(),
|
|
5730
5740
|
image: imageSchema.optional(),
|
|
5731
|
-
value:
|
|
5741
|
+
value: actionSchema
|
|
5732
5742
|
});
|
|
5733
|
-
var
|
|
5734
|
-
type: z.literal("
|
|
5743
|
+
var searchResultSearchSchema = z.object({
|
|
5744
|
+
type: z.literal("search"),
|
|
5735
5745
|
title: z.string(),
|
|
5736
5746
|
description: z.string().optional(),
|
|
5737
5747
|
icon: iconSchema.optional(),
|
|
5738
5748
|
image: imageSchema.optional(),
|
|
5739
|
-
value:
|
|
5749
|
+
value: searchSearchRequestSchema
|
|
5740
5750
|
});
|
|
5741
|
-
var
|
|
5751
|
+
var actionBehaviorSchema = z.object({
|
|
5752
|
+
type: z.literal("action"),
|
|
5742
5753
|
action: actionSchema
|
|
5743
5754
|
});
|
|
5744
|
-
var
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
error: z.string().optional(),
|
|
5748
|
-
validation: jsonElementSchema.optional(),
|
|
5749
|
-
refreshUrl: z.string().optional()
|
|
5755
|
+
var containerBehaviorSchema = z.object({
|
|
5756
|
+
action: actionSchema.optional(),
|
|
5757
|
+
link: linkSchema.optional()
|
|
5750
5758
|
});
|
|
5751
5759
|
var navigationBackBehaviorSchema = z.object({
|
|
5752
5760
|
title: z.string().optional(),
|
|
5753
5761
|
action: actionSchema
|
|
5754
5762
|
});
|
|
5755
|
-
var
|
|
5756
|
-
|
|
5757
|
-
|
|
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()
|
|
5758
5769
|
});
|
|
5759
|
-
var
|
|
5760
|
-
|
|
5761
|
-
|
|
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)
|
|
5762
5777
|
});
|
|
5763
5778
|
var behaviorSchema = z.union([
|
|
5764
5779
|
actionBehaviorSchema,
|
|
5765
5780
|
containerBehaviorSchema,
|
|
5766
5781
|
linkBehaviorSchema
|
|
5767
5782
|
]);
|
|
5768
|
-
var
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5783
|
+
var navigationSchema = z.object({
|
|
5784
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
5785
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
5786
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5772
5787
|
});
|
|
5773
|
-
var
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
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
|
|
5777
5803
|
});
|
|
5778
5804
|
var decisionLayoutOptionSchema = z.object({
|
|
5779
5805
|
action: actionSchema.optional(),
|
|
@@ -5785,11 +5811,6 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5785
5811
|
behavior: behaviorSchema.optional(),
|
|
5786
5812
|
tag: z.string().optional()
|
|
5787
5813
|
});
|
|
5788
|
-
var itemCallToActionSchema = z.object({
|
|
5789
|
-
title: z.string(),
|
|
5790
|
-
accessibilityDescription: z.string().optional(),
|
|
5791
|
-
behavior: behaviorSchema
|
|
5792
|
-
});
|
|
5793
5814
|
var buttonLayoutSchema = z.object({
|
|
5794
5815
|
type: z.literal("button"),
|
|
5795
5816
|
action: actionSchema.optional(),
|
|
@@ -5802,26 +5823,22 @@ var buttonLayoutSchema = z.object({
|
|
|
5802
5823
|
control: z.string().optional(),
|
|
5803
5824
|
margin: sizeSchema.optional()
|
|
5804
5825
|
});
|
|
5805
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5806
|
-
var linkHandlerSchema = z.object({
|
|
5807
|
-
regexPattern: z.string(),
|
|
5808
|
-
behavior: behaviorSchema.optional()
|
|
5809
|
-
});
|
|
5810
|
-
var navigationSchema = z.object({
|
|
5811
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
5812
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
5813
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5814
|
-
});
|
|
5815
|
-
var pollingOnErrorSchema = z.object({
|
|
5816
|
-
action: actionSchema.optional(),
|
|
5817
|
-
behavior: behaviorSchema.optional()
|
|
5818
|
-
});
|
|
5819
5826
|
var reviewLayoutCallToActionSchema = z.object({
|
|
5820
5827
|
action: actionSchema.optional(),
|
|
5821
5828
|
title: z.string(),
|
|
5822
5829
|
accessibilityDescription: z.string().optional(),
|
|
5823
5830
|
behavior: behaviorSchema.optional()
|
|
5824
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
|
+
});
|
|
5825
5842
|
var alertLayoutSchema = z.object({
|
|
5826
5843
|
type: z.literal("alert"),
|
|
5827
5844
|
markdown: z.string(),
|
|
@@ -5830,13 +5847,10 @@ var alertLayoutSchema = z.object({
|
|
|
5830
5847
|
margin: sizeSchema.optional(),
|
|
5831
5848
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5832
5849
|
});
|
|
5833
|
-
var
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
items: z.array(listLayoutItemSchema),
|
|
5838
|
-
control: z.string().optional(),
|
|
5839
|
-
margin: sizeSchema.optional()
|
|
5850
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5851
|
+
title: z.string(),
|
|
5852
|
+
accessibilityDescription: z.string().optional(),
|
|
5853
|
+
behavior: behaviorSchema
|
|
5840
5854
|
});
|
|
5841
5855
|
var decisionLayoutSchema = z.object({
|
|
5842
5856
|
type: z.literal("decision"),
|
|
@@ -5845,34 +5859,29 @@ var decisionLayoutSchema = z.object({
|
|
|
5845
5859
|
control: z.string().optional(),
|
|
5846
5860
|
margin: sizeSchema.optional()
|
|
5847
5861
|
});
|
|
5848
|
-
var
|
|
5849
|
-
|
|
5850
|
-
description: z.string().optional(),
|
|
5851
|
-
icon: iconSchema,
|
|
5852
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
5853
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
5854
|
-
tag: z.string().optional()
|
|
5855
|
-
});
|
|
5856
|
-
var reviewLayoutSchema = z.object({
|
|
5857
|
-
type: z.literal("review"),
|
|
5858
|
-
orientation: z.string().optional(),
|
|
5859
|
-
action: actionSchema.optional(),
|
|
5860
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5862
|
+
var listLayoutSchema = z.object({
|
|
5863
|
+
type: z.literal("list"),
|
|
5861
5864
|
title: z.string().optional(),
|
|
5862
|
-
callToAction:
|
|
5865
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
5866
|
+
items: z.array(listLayoutItemSchema),
|
|
5863
5867
|
control: z.string().optional(),
|
|
5864
5868
|
margin: sizeSchema.optional()
|
|
5865
5869
|
});
|
|
5866
|
-
var
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
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()
|
|
5876
5885
|
});
|
|
5877
5886
|
var blobSchemaSchema = z.object({
|
|
5878
5887
|
type: z.literal("blob"),
|
|
@@ -5896,21 +5905,23 @@ var blobSchemaSchema = z.object({
|
|
|
5896
5905
|
source: uploadSourceSchema.optional(),
|
|
5897
5906
|
disabled: z.boolean().optional()
|
|
5898
5907
|
});
|
|
5899
|
-
var
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
$id: z.string().optional(),
|
|
5905
|
-
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),
|
|
5906
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(),
|
|
5907
5920
|
description: z.string().optional(),
|
|
5908
|
-
icon: iconSchema
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
analyticsId: z.string().optional(),
|
|
5913
|
-
disabled: z.boolean().optional()
|
|
5921
|
+
icon: iconSchema,
|
|
5922
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5923
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5924
|
+
tag: z.string().optional()
|
|
5914
5925
|
});
|
|
5915
5926
|
var statusListLayoutSchema = z.object({
|
|
5916
5927
|
type: z.literal("status-list"),
|
|
@@ -5919,6 +5930,39 @@ var statusListLayoutSchema = z.object({
|
|
|
5919
5930
|
control: z.string().optional(),
|
|
5920
5931
|
margin: sizeSchema.optional()
|
|
5921
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
|
+
);
|
|
5922
5966
|
var layoutSchema = z.lazy(
|
|
5923
5967
|
() => z.union([
|
|
5924
5968
|
alertLayoutSchema,
|
|
@@ -5942,6 +5986,12 @@ var layoutSchema = z.lazy(
|
|
|
5942
5986
|
statusListLayoutSchema
|
|
5943
5987
|
])
|
|
5944
5988
|
);
|
|
5989
|
+
var modalLayoutContentSchema = z.lazy(
|
|
5990
|
+
() => z.object({
|
|
5991
|
+
title: z.string().optional(),
|
|
5992
|
+
components: z.array(layoutSchema)
|
|
5993
|
+
})
|
|
5994
|
+
);
|
|
5945
5995
|
var boxLayoutSchema = z.lazy(
|
|
5946
5996
|
() => z.object({
|
|
5947
5997
|
type: z.literal("box"),
|
|
@@ -5952,16 +6002,6 @@ var boxLayoutSchema = z.lazy(
|
|
|
5952
6002
|
margin: sizeSchema.optional()
|
|
5953
6003
|
})
|
|
5954
6004
|
);
|
|
5955
|
-
var columnsLayoutSchema = z.lazy(
|
|
5956
|
-
() => z.object({
|
|
5957
|
-
type: z.literal("columns"),
|
|
5958
|
-
left: z.array(layoutSchema),
|
|
5959
|
-
right: z.array(layoutSchema),
|
|
5960
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
5961
|
-
control: z.string().optional(),
|
|
5962
|
-
margin: sizeSchema.optional()
|
|
5963
|
-
})
|
|
5964
|
-
);
|
|
5965
6005
|
var modalLayoutSchema = z.lazy(
|
|
5966
6006
|
() => z.object({
|
|
5967
6007
|
type: z.literal("modal"),
|
|
@@ -5971,12 +6011,6 @@ var modalLayoutSchema = z.lazy(
|
|
|
5971
6011
|
content: modalLayoutContentSchema
|
|
5972
6012
|
})
|
|
5973
6013
|
);
|
|
5974
|
-
var modalLayoutContentSchema = z.lazy(
|
|
5975
|
-
() => z.object({
|
|
5976
|
-
title: z.string().optional(),
|
|
5977
|
-
components: z.array(layoutSchema)
|
|
5978
|
-
})
|
|
5979
|
-
);
|
|
5980
6014
|
var stepSchema = z.lazy(
|
|
5981
6015
|
() => z.object({
|
|
5982
6016
|
key: z.string().optional(),
|
|
@@ -5996,57 +6030,33 @@ var stepSchema = z.lazy(
|
|
|
5996
6030
|
errors: stepErrorSchema.optional(),
|
|
5997
6031
|
navigation: navigationSchema.optional(),
|
|
5998
6032
|
refreshUrl: z.string().optional(),
|
|
5999
|
-
control: z.string().optional()
|
|
6000
|
-
})
|
|
6001
|
-
);
|
|
6002
|
-
var schemaSchema = z.lazy(
|
|
6003
|
-
() => z.union([
|
|
6004
|
-
allOfSchemaSchema,
|
|
6005
|
-
arraySchemaSchema,
|
|
6006
|
-
blobSchemaSchema,
|
|
6007
|
-
booleanSchemaSchema,
|
|
6008
|
-
constSchemaSchema,
|
|
6009
|
-
integerSchemaSchema,
|
|
6010
|
-
numberSchemaSchema,
|
|
6011
|
-
objectSchemaSchema,
|
|
6012
|
-
oneOfSchemaSchema,
|
|
6013
|
-
stringSchemaSchema
|
|
6014
|
-
])
|
|
6015
|
-
);
|
|
6016
|
-
var allOfSchemaSchema = z.lazy(
|
|
6017
|
-
() => z.object({
|
|
6018
|
-
disabled: z.boolean().optional(),
|
|
6019
|
-
promoted: z.boolean().optional(),
|
|
6020
|
-
allOf: z.array(schemaSchema),
|
|
6021
|
-
$id: z.string().optional(),
|
|
6022
|
-
title: z.string().optional(),
|
|
6023
|
-
description: z.string().optional(),
|
|
6024
6033
|
control: z.string().optional(),
|
|
6025
|
-
|
|
6026
|
-
icon: iconSchema.optional(),
|
|
6027
|
-
image: imageSchema.optional(),
|
|
6028
|
-
keywords: z.array(z.string()).optional(),
|
|
6029
|
-
summary: summaryProviderSchema.optional(),
|
|
6030
|
-
analyticsId: z.string().optional(),
|
|
6031
|
-
alert: alertLayoutSchema.optional()
|
|
6034
|
+
refreshAfter: z.string().optional()
|
|
6032
6035
|
})
|
|
6033
6036
|
);
|
|
6034
|
-
var
|
|
6035
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6036
|
-
);
|
|
6037
|
-
var booleanSchemaSchema = z.lazy(
|
|
6037
|
+
var stringSchemaSchema = z.lazy(
|
|
6038
6038
|
() => z.object({
|
|
6039
|
-
type: z.literal("
|
|
6039
|
+
type: z.literal("string"),
|
|
6040
6040
|
autofillProvider: z.string().optional(),
|
|
6041
6041
|
promoted: z.boolean().optional(),
|
|
6042
6042
|
refreshFormOnChange: z.boolean().optional(),
|
|
6043
6043
|
refreshUrl: z.string().optional(),
|
|
6044
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(),
|
|
6045
6055
|
$id: z.string().optional(),
|
|
6046
6056
|
title: z.string().optional(),
|
|
6047
6057
|
description: z.string().optional(),
|
|
6048
6058
|
control: z.string().optional(),
|
|
6049
|
-
default: z.
|
|
6059
|
+
default: z.string().optional(),
|
|
6050
6060
|
hidden: z.boolean().optional(),
|
|
6051
6061
|
disabled: z.boolean().optional(),
|
|
6052
6062
|
icon: iconSchema.optional(),
|
|
@@ -6057,42 +6067,46 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6057
6067
|
persistAsync: persistAsyncSchema.optional(),
|
|
6058
6068
|
refreshStepOnChange: z.boolean().optional(),
|
|
6059
6069
|
validationAsync: validateAsyncSchema.optional(),
|
|
6070
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6060
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(),
|
|
6061
6077
|
autofillKey: z.string().optional(),
|
|
6062
|
-
help: helpSchema.optional()
|
|
6078
|
+
help: helpSchema.optional(),
|
|
6079
|
+
suggestions: suggestionsSchema.optional()
|
|
6063
6080
|
})
|
|
6064
6081
|
);
|
|
6065
|
-
var
|
|
6082
|
+
var oneOfSchemaSchema = z.lazy(
|
|
6066
6083
|
() => z.object({
|
|
6067
|
-
type: z.literal("integer"),
|
|
6068
6084
|
autofillProvider: z.string().optional(),
|
|
6069
6085
|
promoted: z.boolean().optional(),
|
|
6070
6086
|
refreshFormOnChange: z.boolean().optional(),
|
|
6071
6087
|
refreshUrl: z.string().optional(),
|
|
6072
6088
|
refreshFormUrl: z.string().optional(),
|
|
6089
|
+
promotion: jsonElementSchema.optional(),
|
|
6090
|
+
oneOf: z.array(schemaSchema),
|
|
6073
6091
|
placeholder: z.string().optional(),
|
|
6074
|
-
minimum: z.number().optional(),
|
|
6075
|
-
maximum: z.number().optional(),
|
|
6076
6092
|
$id: z.string().optional(),
|
|
6077
6093
|
title: z.string().optional(),
|
|
6078
6094
|
description: z.string().optional(),
|
|
6079
6095
|
control: z.string().optional(),
|
|
6080
|
-
default:
|
|
6096
|
+
default: jsonElementSchema.optional(),
|
|
6081
6097
|
hidden: z.boolean().optional(),
|
|
6082
|
-
disabled: z.boolean().optional(),
|
|
6083
6098
|
icon: iconSchema.optional(),
|
|
6084
6099
|
image: imageSchema.optional(),
|
|
6085
6100
|
keywords: z.array(z.string()).optional(),
|
|
6086
6101
|
summary: summaryProviderSchema.optional(),
|
|
6087
6102
|
analyticsId: z.string().optional(),
|
|
6088
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
6089
6103
|
refreshStepOnChange: z.boolean().optional(),
|
|
6090
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6091
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6092
6104
|
alert: alertLayoutSchema.optional(),
|
|
6105
|
+
help: helpSchema.optional(),
|
|
6093
6106
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6094
6107
|
autofillKey: z.string().optional(),
|
|
6095
|
-
|
|
6108
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6109
|
+
disabled: z.boolean().optional()
|
|
6096
6110
|
})
|
|
6097
6111
|
);
|
|
6098
6112
|
var numberSchemaSchema = z.lazy(
|
|
@@ -6128,16 +6142,12 @@ var numberSchemaSchema = z.lazy(
|
|
|
6128
6142
|
help: helpSchema.optional()
|
|
6129
6143
|
})
|
|
6130
6144
|
);
|
|
6131
|
-
var
|
|
6145
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6132
6146
|
() => z.object({
|
|
6133
|
-
type: z.literal("
|
|
6134
|
-
disabled: z.boolean().optional(),
|
|
6147
|
+
type: z.literal("array"),
|
|
6135
6148
|
promoted: z.boolean().optional(),
|
|
6136
|
-
help: helpSchema.optional(),
|
|
6137
|
-
properties: z.record(schemaSchema),
|
|
6138
|
-
displayOrder: z.array(z.string()),
|
|
6139
|
-
required: z.array(z.string()).optional(),
|
|
6140
6149
|
$id: z.string().optional(),
|
|
6150
|
+
items: z.array(schemaSchema),
|
|
6141
6151
|
title: z.string().optional(),
|
|
6142
6152
|
description: z.string().optional(),
|
|
6143
6153
|
control: z.string().optional(),
|
|
@@ -6147,62 +6157,27 @@ var objectSchemaSchema = z.lazy(
|
|
|
6147
6157
|
keywords: z.array(z.string()).optional(),
|
|
6148
6158
|
summary: summaryProviderSchema.optional(),
|
|
6149
6159
|
analyticsId: z.string().optional(),
|
|
6160
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6161
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6150
6162
|
alert: alertLayoutSchema.optional()
|
|
6151
6163
|
})
|
|
6152
6164
|
);
|
|
6153
|
-
var
|
|
6154
|
-
() => z.object({
|
|
6155
|
-
autofillProvider: z.string().optional(),
|
|
6156
|
-
promoted: z.boolean().optional(),
|
|
6157
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
6158
|
-
refreshUrl: z.string().optional(),
|
|
6159
|
-
refreshFormUrl: z.string().optional(),
|
|
6160
|
-
promotion: jsonElementSchema.optional(),
|
|
6161
|
-
oneOf: z.array(schemaSchema),
|
|
6162
|
-
placeholder: z.string().optional(),
|
|
6163
|
-
$id: z.string().optional(),
|
|
6164
|
-
title: z.string().optional(),
|
|
6165
|
-
description: z.string().optional(),
|
|
6166
|
-
control: z.string().optional(),
|
|
6167
|
-
default: jsonElementSchema.optional(),
|
|
6168
|
-
hidden: z.boolean().optional(),
|
|
6169
|
-
icon: iconSchema.optional(),
|
|
6170
|
-
image: imageSchema.optional(),
|
|
6171
|
-
keywords: z.array(z.string()).optional(),
|
|
6172
|
-
summary: summaryProviderSchema.optional(),
|
|
6173
|
-
analyticsId: z.string().optional(),
|
|
6174
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
6175
|
-
alert: alertLayoutSchema.optional(),
|
|
6176
|
-
help: helpSchema.optional(),
|
|
6177
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6178
|
-
autofillKey: z.string().optional(),
|
|
6179
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6180
|
-
disabled: z.boolean().optional()
|
|
6181
|
-
})
|
|
6182
|
-
);
|
|
6183
|
-
var stringSchemaSchema = z.lazy(
|
|
6165
|
+
var integerSchemaSchema = z.lazy(
|
|
6184
6166
|
() => z.object({
|
|
6185
|
-
type: z.literal("
|
|
6167
|
+
type: z.literal("integer"),
|
|
6186
6168
|
autofillProvider: z.string().optional(),
|
|
6187
6169
|
promoted: z.boolean().optional(),
|
|
6188
6170
|
refreshFormOnChange: z.boolean().optional(),
|
|
6189
6171
|
refreshUrl: z.string().optional(),
|
|
6190
6172
|
refreshFormUrl: z.string().optional(),
|
|
6191
|
-
format: stringSchemaFormatSchema.optional(),
|
|
6192
|
-
displayFormat: z.string().optional(),
|
|
6193
6173
|
placeholder: z.string().optional(),
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
minimum: z.string().optional(),
|
|
6197
|
-
maximum: z.string().optional(),
|
|
6198
|
-
pattern: z.string().optional(),
|
|
6199
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6200
|
-
autocorrect: z.boolean().optional(),
|
|
6174
|
+
minimum: z.number().optional(),
|
|
6175
|
+
maximum: z.number().optional(),
|
|
6201
6176
|
$id: z.string().optional(),
|
|
6202
6177
|
title: z.string().optional(),
|
|
6203
6178
|
description: z.string().optional(),
|
|
6204
6179
|
control: z.string().optional(),
|
|
6205
|
-
default: z.
|
|
6180
|
+
default: z.number().optional(),
|
|
6206
6181
|
hidden: z.boolean().optional(),
|
|
6207
6182
|
disabled: z.boolean().optional(),
|
|
6208
6183
|
icon: iconSchema.optional(),
|
|
@@ -6215,15 +6190,14 @@ var stringSchemaSchema = z.lazy(
|
|
|
6215
6190
|
validationAsync: validateAsyncSchema.optional(),
|
|
6216
6191
|
validationMessages: z.record(z.string()).optional(),
|
|
6217
6192
|
alert: alertLayoutSchema.optional(),
|
|
6218
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
6219
|
-
accepts: z.array(z.string()).optional(),
|
|
6220
|
-
maxSize: z.number().optional(),
|
|
6221
|
-
source: uploadSourceSchema.optional(),
|
|
6222
6193
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6223
6194
|
autofillKey: z.string().optional(),
|
|
6224
6195
|
help: helpSchema.optional()
|
|
6225
6196
|
})
|
|
6226
6197
|
);
|
|
6198
|
+
var arraySchemaSchema = z.lazy(
|
|
6199
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6200
|
+
);
|
|
6227
6201
|
var arraySchemaListSchema = z.lazy(
|
|
6228
6202
|
() => z.object({
|
|
6229
6203
|
type: z.literal("array"),
|
|
@@ -6251,32 +6225,71 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6251
6225
|
disabled: z.boolean().optional()
|
|
6252
6226
|
})
|
|
6253
6227
|
);
|
|
6254
|
-
var
|
|
6228
|
+
var allOfSchemaSchema = z.lazy(
|
|
6255
6229
|
() => z.object({
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
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()
|
|
6261
6244
|
})
|
|
6262
6245
|
);
|
|
6263
|
-
var
|
|
6246
|
+
var booleanSchemaSchema = z.lazy(
|
|
6264
6247
|
() => z.object({
|
|
6265
|
-
type: z.literal("
|
|
6248
|
+
type: z.literal("boolean"),
|
|
6249
|
+
autofillProvider: z.string().optional(),
|
|
6266
6250
|
promoted: z.boolean().optional(),
|
|
6251
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
6252
|
+
refreshUrl: z.string().optional(),
|
|
6253
|
+
refreshFormUrl: z.string().optional(),
|
|
6267
6254
|
$id: z.string().optional(),
|
|
6268
|
-
items: z.array(schemaSchema),
|
|
6269
6255
|
title: z.string().optional(),
|
|
6270
6256
|
description: z.string().optional(),
|
|
6271
6257
|
control: z.string().optional(),
|
|
6258
|
+
default: z.boolean().optional(),
|
|
6272
6259
|
hidden: z.boolean().optional(),
|
|
6260
|
+
disabled: z.boolean().optional(),
|
|
6273
6261
|
icon: iconSchema.optional(),
|
|
6274
6262
|
image: imageSchema.optional(),
|
|
6275
6263
|
keywords: z.array(z.string()).optional(),
|
|
6276
6264
|
summary: summaryProviderSchema.optional(),
|
|
6277
6265
|
analyticsId: z.string().optional(),
|
|
6278
6266
|
persistAsync: persistAsyncSchema.optional(),
|
|
6267
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6279
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(),
|
|
6280
6293
|
alert: alertLayoutSchema.optional()
|
|
6281
6294
|
})
|
|
6282
6295
|
);
|
|
@@ -7187,6 +7200,9 @@ var getComponentValidationAsync = (update, performValidationAsync) => (
|
|
|
7187
7200
|
}
|
|
7188
7201
|
);
|
|
7189
7202
|
|
|
7203
|
+
// src/revamp/domain/components/utils/isOrWasValid.ts
|
|
7204
|
+
var isOrWasValid = (getErrors, previous, current) => getErrors(previous).length === 0 || getErrors(current).length === 0;
|
|
7205
|
+
|
|
7190
7206
|
// src/revamp/domain/components/NumberInputComponent.ts
|
|
7191
7207
|
var createNumberInputComponent = (numberInputProps, updateComponent) => {
|
|
7192
7208
|
const _a = numberInputProps, {
|
|
@@ -7230,12 +7246,15 @@ var createNumberInputComponent = (numberInputProps, updateComponent) => {
|
|
|
7230
7246
|
},
|
|
7231
7247
|
// Noop
|
|
7232
7248
|
onChange(updatedValue) {
|
|
7249
|
+
const prevValue = this.value;
|
|
7233
7250
|
update((draft) => {
|
|
7234
7251
|
draft.errors = [];
|
|
7235
7252
|
draft.validationAsyncState.messages = {};
|
|
7236
7253
|
draft.value = updatedValue;
|
|
7237
7254
|
});
|
|
7238
|
-
|
|
7255
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
7256
|
+
performDebouncedRefresh == null ? void 0 : performDebouncedRefresh();
|
|
7257
|
+
}
|
|
7239
7258
|
onValueChange();
|
|
7240
7259
|
},
|
|
7241
7260
|
async getSubmittableValue() {
|
|
@@ -8019,12 +8038,15 @@ var createIntegerInputComponent = (integerInputProps, updateComponent) => {
|
|
|
8019
8038
|
},
|
|
8020
8039
|
// Noop
|
|
8021
8040
|
onChange(updatedValue) {
|
|
8041
|
+
const prevValue = this.value;
|
|
8022
8042
|
update((draft) => {
|
|
8023
8043
|
draft.errors = [];
|
|
8024
8044
|
draft.validationAsyncState.messages = {};
|
|
8025
8045
|
draft.value = updatedValue;
|
|
8026
8046
|
});
|
|
8027
|
-
|
|
8047
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
8048
|
+
performDebouncedRefresh == null ? void 0 : performDebouncedRefresh();
|
|
8049
|
+
}
|
|
8028
8050
|
onValueChange();
|
|
8029
8051
|
},
|
|
8030
8052
|
async getSubmittableValue() {
|
|
@@ -8326,12 +8348,15 @@ var createDateInputComponent = (textInputProps, updateComponent) => {
|
|
|
8326
8348
|
},
|
|
8327
8349
|
// Noop
|
|
8328
8350
|
onChange(updatedValue) {
|
|
8351
|
+
const prevValue = this.value;
|
|
8329
8352
|
update((draft) => {
|
|
8330
8353
|
draft.errors = [];
|
|
8331
8354
|
draft.validationAsyncState.messages = {};
|
|
8332
8355
|
draft.value = updatedValue;
|
|
8333
8356
|
});
|
|
8334
|
-
|
|
8357
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
8358
|
+
performRefresh == null ? void 0 : performRefresh();
|
|
8359
|
+
}
|
|
8335
8360
|
onValueChange();
|
|
8336
8361
|
},
|
|
8337
8362
|
async getSubmittableValue() {
|
|
@@ -8640,12 +8665,15 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
|
|
|
8640
8665
|
},
|
|
8641
8666
|
// Noop
|
|
8642
8667
|
onChange(updatedValue) {
|
|
8668
|
+
const prevValue = this.value;
|
|
8643
8669
|
update((draft) => {
|
|
8644
8670
|
draft.errors = [];
|
|
8645
8671
|
draft.validationAsyncState.messages = {};
|
|
8646
8672
|
draft.value = updatedValue;
|
|
8647
8673
|
});
|
|
8648
|
-
|
|
8674
|
+
if (isOrWasValid(getValidationErrors, prevValue, updatedValue)) {
|
|
8675
|
+
performDebouncedRefresh == null ? void 0 : performDebouncedRefresh();
|
|
8676
|
+
}
|
|
8649
8677
|
onValueChange();
|
|
8650
8678
|
},
|
|
8651
8679
|
async getSubmittableValue() {
|
|
@@ -11699,8 +11727,10 @@ var stepComponentToProps = ({
|
|
|
11699
11727
|
error,
|
|
11700
11728
|
external,
|
|
11701
11729
|
loadingState,
|
|
11730
|
+
step,
|
|
11702
11731
|
title,
|
|
11703
|
-
components
|
|
11732
|
+
components,
|
|
11733
|
+
onAction
|
|
11704
11734
|
}, rendererMapperProps) => {
|
|
11705
11735
|
const childrenProps = components.map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
11706
11736
|
return __spreadValues({
|
|
@@ -11712,9 +11742,11 @@ var stepComponentToProps = ({
|
|
|
11712
11742
|
error,
|
|
11713
11743
|
external,
|
|
11714
11744
|
loadingState,
|
|
11745
|
+
step,
|
|
11715
11746
|
title,
|
|
11716
11747
|
children: childrenProps.map(rendererMapperProps.render),
|
|
11717
|
-
childrenProps
|
|
11748
|
+
childrenProps,
|
|
11749
|
+
onAction
|
|
11718
11750
|
}, rendererMapperProps);
|
|
11719
11751
|
};
|
|
11720
11752
|
|