@wise/dynamic-flow-client 4.0.0-experimental-764fef7 → 4.0.0-experimental-0d693ac
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +528 -463
- package/build/main.mjs +528 -463
- package/build/types/index.d.ts +1 -0
- package/build/types/revamp/renderers/utils.d.ts +6 -0
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -443,6 +443,8 @@ __export(index_exports, {
|
|
|
443
443
|
JsonSchemaForm: () => JsonSchemaForm_default,
|
|
444
444
|
Layout: () => DynamicLayout_default,
|
|
445
445
|
convertStepToLayout: () => convertStepToLayout,
|
|
446
|
+
find: () => find,
|
|
447
|
+
findType: () => findType,
|
|
446
448
|
inlineReferences: () => inlineReferences,
|
|
447
449
|
isValidSchema: () => isValidSchema,
|
|
448
450
|
makeHttpClient: () => makeHttpClient,
|
|
@@ -5408,10 +5410,46 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5408
5410
|
quotelessJson,
|
|
5409
5411
|
ZodError
|
|
5410
5412
|
});
|
|
5411
|
-
var
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5413
|
+
var linkSchema = z.object({
|
|
5414
|
+
url: z.string()
|
|
5415
|
+
});
|
|
5416
|
+
var navigationStackBehaviorSchema = z.union([
|
|
5417
|
+
z.literal("default"),
|
|
5418
|
+
z.literal("remove-previous"),
|
|
5419
|
+
z.literal("remove-all"),
|
|
5420
|
+
z.literal("replace-current")
|
|
5421
|
+
]);
|
|
5422
|
+
var jsonElementSchema = z.lazy(
|
|
5423
|
+
() => z.union([
|
|
5424
|
+
z.string(),
|
|
5425
|
+
z.number(),
|
|
5426
|
+
z.boolean(),
|
|
5427
|
+
z.record(jsonElementSchema),
|
|
5428
|
+
z.array(jsonElementSchema)
|
|
5429
|
+
]).nullable()
|
|
5430
|
+
);
|
|
5431
|
+
var helpSchema = z.object({
|
|
5432
|
+
markdown: z.string()
|
|
5433
|
+
});
|
|
5434
|
+
var actionTypeSchema = z.union([
|
|
5435
|
+
z.literal("primary"),
|
|
5436
|
+
z.literal("secondary"),
|
|
5437
|
+
z.literal("link"),
|
|
5438
|
+
z.literal("positive"),
|
|
5439
|
+
z.literal("negative")
|
|
5440
|
+
]);
|
|
5441
|
+
var httpMethodSchema = z.union([
|
|
5442
|
+
z.literal("GET"),
|
|
5443
|
+
z.literal("POST"),
|
|
5444
|
+
z.literal("PUT"),
|
|
5445
|
+
z.literal("PATCH"),
|
|
5446
|
+
z.literal("DELETE")
|
|
5447
|
+
]);
|
|
5448
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5449
|
+
var validateAsyncSchema = z.object({
|
|
5450
|
+
param: z.string(),
|
|
5451
|
+
method: httpMethodSchema,
|
|
5452
|
+
url: z.string()
|
|
5415
5453
|
});
|
|
5416
5454
|
var summaryProviderSchema = z.object({
|
|
5417
5455
|
providesTitle: z.boolean().optional(),
|
|
@@ -5419,6 +5457,128 @@ var summaryProviderSchema = z.object({
|
|
|
5419
5457
|
providesIcon: z.boolean().optional(),
|
|
5420
5458
|
providesImage: z.boolean().optional()
|
|
5421
5459
|
});
|
|
5460
|
+
var externalSchema = z.object({
|
|
5461
|
+
url: z.string()
|
|
5462
|
+
});
|
|
5463
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5464
|
+
z.literal("none"),
|
|
5465
|
+
z.literal("left"),
|
|
5466
|
+
z.literal("right")
|
|
5467
|
+
]);
|
|
5468
|
+
var sizeSchema = z.union([
|
|
5469
|
+
z.literal("xs"),
|
|
5470
|
+
z.literal("sm"),
|
|
5471
|
+
z.literal("md"),
|
|
5472
|
+
z.literal("lg"),
|
|
5473
|
+
z.literal("xl")
|
|
5474
|
+
]);
|
|
5475
|
+
var dividerLayoutSchema = z.object({
|
|
5476
|
+
type: z.literal("divider"),
|
|
5477
|
+
control: z.string().optional(),
|
|
5478
|
+
margin: sizeSchema.optional()
|
|
5479
|
+
});
|
|
5480
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5481
|
+
z.literal("not-done"),
|
|
5482
|
+
z.literal("pending"),
|
|
5483
|
+
z.literal("done")
|
|
5484
|
+
]);
|
|
5485
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5486
|
+
type: z.literal("loading-indicator"),
|
|
5487
|
+
size: sizeSchema.optional(),
|
|
5488
|
+
control: z.string().optional(),
|
|
5489
|
+
margin: sizeSchema.optional()
|
|
5490
|
+
});
|
|
5491
|
+
var contextSchema = z.union([
|
|
5492
|
+
z.literal("positive"),
|
|
5493
|
+
z.literal("neutral"),
|
|
5494
|
+
z.literal("warning"),
|
|
5495
|
+
z.literal("negative"),
|
|
5496
|
+
z.literal("success"),
|
|
5497
|
+
z.literal("failure"),
|
|
5498
|
+
z.literal("info"),
|
|
5499
|
+
z.literal("primary")
|
|
5500
|
+
]);
|
|
5501
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5502
|
+
text: z.string(),
|
|
5503
|
+
context: contextSchema,
|
|
5504
|
+
tag: z.string().optional()
|
|
5505
|
+
});
|
|
5506
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5507
|
+
$ref: z.string()
|
|
5508
|
+
});
|
|
5509
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5510
|
+
title: z.string()
|
|
5511
|
+
});
|
|
5512
|
+
var instructionsLayoutSchema = z.object({
|
|
5513
|
+
type: z.literal("instructions"),
|
|
5514
|
+
title: z.string().optional(),
|
|
5515
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
5516
|
+
control: z.string().optional(),
|
|
5517
|
+
margin: sizeSchema.optional()
|
|
5518
|
+
});
|
|
5519
|
+
var reviewLayoutFieldSchema = z.object({
|
|
5520
|
+
label: z.string(),
|
|
5521
|
+
value: z.string(),
|
|
5522
|
+
rawValue: z.string().optional(),
|
|
5523
|
+
help: helpSchema.optional(),
|
|
5524
|
+
tag: z.string().optional()
|
|
5525
|
+
});
|
|
5526
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5527
|
+
var searchLayoutSchema = z.object({
|
|
5528
|
+
type: z.literal("search"),
|
|
5529
|
+
title: z.string(),
|
|
5530
|
+
method: httpMethodSchema,
|
|
5531
|
+
url: z.string(),
|
|
5532
|
+
param: z.string(),
|
|
5533
|
+
emptyMessage: z.string().optional(),
|
|
5534
|
+
control: z.string().optional(),
|
|
5535
|
+
margin: sizeSchema.optional()
|
|
5536
|
+
});
|
|
5537
|
+
var headingLayoutSchema = z.object({
|
|
5538
|
+
type: z.literal("heading"),
|
|
5539
|
+
text: z.string(),
|
|
5540
|
+
size: sizeSchema.optional(),
|
|
5541
|
+
align: alignSchema.optional(),
|
|
5542
|
+
control: z.string().optional(),
|
|
5543
|
+
margin: sizeSchema.optional()
|
|
5544
|
+
});
|
|
5545
|
+
var markdownLayoutSchema = z.object({
|
|
5546
|
+
type: z.literal("markdown"),
|
|
5547
|
+
content: z.string(),
|
|
5548
|
+
align: alignSchema.optional(),
|
|
5549
|
+
control: z.string().optional(),
|
|
5550
|
+
margin: sizeSchema.optional()
|
|
5551
|
+
});
|
|
5552
|
+
var paragraphLayoutSchema = z.object({
|
|
5553
|
+
type: z.literal("paragraph"),
|
|
5554
|
+
text: z.string(),
|
|
5555
|
+
align: alignSchema.optional(),
|
|
5556
|
+
control: z.string().optional(),
|
|
5557
|
+
margin: sizeSchema.optional()
|
|
5558
|
+
});
|
|
5559
|
+
var listLayoutStatusSchema = z.union([
|
|
5560
|
+
z.literal("warning"),
|
|
5561
|
+
z.literal("neutral"),
|
|
5562
|
+
z.literal("positive")
|
|
5563
|
+
]);
|
|
5564
|
+
var imageSchema = z.object({
|
|
5565
|
+
text: z.string().optional(),
|
|
5566
|
+
url: z.string(),
|
|
5567
|
+
accessibilityDescription: z.string().optional()
|
|
5568
|
+
});
|
|
5569
|
+
var errorResponseBodySchema = z.object({
|
|
5570
|
+
refreshFormUrl: z.string().optional(),
|
|
5571
|
+
analytics: z.record(z.string()).optional(),
|
|
5572
|
+
error: z.string().optional(),
|
|
5573
|
+
validation: jsonElementSchema.optional(),
|
|
5574
|
+
refreshUrl: z.string().optional()
|
|
5575
|
+
});
|
|
5576
|
+
var searchSearchRequestSchema = z.object({
|
|
5577
|
+
url: z.string(),
|
|
5578
|
+
method: httpMethodSchema,
|
|
5579
|
+
param: z.string(),
|
|
5580
|
+
query: z.string()
|
|
5581
|
+
});
|
|
5422
5582
|
var autocompleteTokenSchema = z.union([
|
|
5423
5583
|
z.literal("on"),
|
|
5424
5584
|
z.literal("name"),
|
|
@@ -5484,215 +5644,26 @@ var autocompleteTokenSchema = z.union([
|
|
|
5484
5644
|
z.literal("fax"),
|
|
5485
5645
|
z.literal("pager")
|
|
5486
5646
|
]);
|
|
5487
|
-
var helpSchema = z.object({
|
|
5488
|
-
markdown: z.string()
|
|
5489
|
-
});
|
|
5490
|
-
var jsonElementSchema = z.lazy(
|
|
5491
|
-
() => z.union([
|
|
5492
|
-
z.string(),
|
|
5493
|
-
z.number(),
|
|
5494
|
-
z.boolean(),
|
|
5495
|
-
z.record(jsonElementSchema),
|
|
5496
|
-
z.array(jsonElementSchema)
|
|
5497
|
-
]).nullable()
|
|
5498
|
-
);
|
|
5499
|
-
var stringSchemaFormatSchema = z.union([
|
|
5500
|
-
z.literal("date"),
|
|
5501
|
-
z.literal("email"),
|
|
5502
|
-
z.literal("numeric"),
|
|
5503
|
-
z.literal("password"),
|
|
5504
|
-
z.literal("phone-number"),
|
|
5505
|
-
z.literal("base64url")
|
|
5506
|
-
]);
|
|
5507
5647
|
var autocapitalizationTypeSchema = z.union([
|
|
5508
5648
|
z.literal("none"),
|
|
5509
5649
|
z.literal("characters"),
|
|
5510
5650
|
z.literal("sentences"),
|
|
5511
5651
|
z.literal("words")
|
|
5512
5652
|
]);
|
|
5513
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5514
|
-
var externalSchema = z.object({
|
|
5515
|
-
url: z.string()
|
|
5516
|
-
});
|
|
5517
|
-
var stepErrorSchema = z.object({
|
|
5518
|
-
error: z.string().optional(),
|
|
5519
|
-
validation: jsonElementSchema.optional()
|
|
5520
|
-
});
|
|
5521
5653
|
var iconNamedSchema = z.object({
|
|
5522
5654
|
name: z.string()
|
|
5523
5655
|
});
|
|
5524
5656
|
var iconTextSchema = z.object({
|
|
5525
5657
|
text: z.string()
|
|
5526
5658
|
});
|
|
5527
|
-
var
|
|
5528
|
-
|
|
5529
|
-
z.literal("
|
|
5530
|
-
z.literal("
|
|
5531
|
-
z.literal("
|
|
5532
|
-
z.literal("
|
|
5533
|
-
z.literal("
|
|
5534
|
-
]);
|
|
5535
|
-
var sizeSchema = z.union([
|
|
5536
|
-
z.literal("xs"),
|
|
5537
|
-
z.literal("sm"),
|
|
5538
|
-
z.literal("md"),
|
|
5539
|
-
z.literal("lg"),
|
|
5540
|
-
z.literal("xl")
|
|
5541
|
-
]);
|
|
5542
|
-
var contextSchema = z.union([
|
|
5543
|
-
z.literal("positive"),
|
|
5544
|
-
z.literal("neutral"),
|
|
5545
|
-
z.literal("warning"),
|
|
5546
|
-
z.literal("negative"),
|
|
5547
|
-
z.literal("success"),
|
|
5548
|
-
z.literal("failure"),
|
|
5549
|
-
z.literal("info"),
|
|
5550
|
-
z.literal("primary")
|
|
5551
|
-
]);
|
|
5552
|
-
var imageLayoutSchema = z.object({
|
|
5553
|
-
type: z.literal("image"),
|
|
5554
|
-
text: z.string().optional(),
|
|
5555
|
-
url: z.string(),
|
|
5556
|
-
size: sizeSchema.optional(),
|
|
5557
|
-
accessibilityDescription: z.string().optional(),
|
|
5558
|
-
control: z.string().optional(),
|
|
5559
|
-
margin: sizeSchema.optional()
|
|
5560
|
-
});
|
|
5561
|
-
var searchSearchRequestSchema = z.object({
|
|
5562
|
-
url: z.string(),
|
|
5563
|
-
method: httpMethodSchema,
|
|
5564
|
-
param: z.string(),
|
|
5565
|
-
query: z.string()
|
|
5566
|
-
});
|
|
5567
|
-
var errorResponseBodySchema = z.object({
|
|
5568
|
-
refreshFormUrl: z.string().optional(),
|
|
5569
|
-
analytics: z.record(z.string()).optional(),
|
|
5570
|
-
error: z.string().optional(),
|
|
5571
|
-
validation: jsonElementSchema.optional(),
|
|
5572
|
-
refreshUrl: z.string().optional()
|
|
5573
|
-
});
|
|
5574
|
-
var paragraphLayoutSchema = z.object({
|
|
5575
|
-
type: z.literal("paragraph"),
|
|
5576
|
-
text: z.string(),
|
|
5577
|
-
align: alignSchema.optional(),
|
|
5578
|
-
control: z.string().optional(),
|
|
5579
|
-
margin: sizeSchema.optional()
|
|
5580
|
-
});
|
|
5581
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5582
|
-
text: z.string(),
|
|
5583
|
-
context: contextSchema,
|
|
5584
|
-
tag: z.string().optional()
|
|
5585
|
-
});
|
|
5586
|
-
var columnsLayoutBiasSchema = z.union([
|
|
5587
|
-
z.literal("none"),
|
|
5588
|
-
z.literal("left"),
|
|
5589
|
-
z.literal("right")
|
|
5590
|
-
]);
|
|
5591
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5592
|
-
$ref: z.string()
|
|
5593
|
-
});
|
|
5594
|
-
var headingLayoutSchema = z.object({
|
|
5595
|
-
type: z.literal("heading"),
|
|
5596
|
-
text: z.string(),
|
|
5597
|
-
size: sizeSchema.optional(),
|
|
5598
|
-
align: alignSchema.optional(),
|
|
5599
|
-
control: z.string().optional(),
|
|
5600
|
-
margin: sizeSchema.optional()
|
|
5601
|
-
});
|
|
5602
|
-
var dividerLayoutSchema = z.object({
|
|
5603
|
-
type: z.literal("divider"),
|
|
5604
|
-
control: z.string().optional(),
|
|
5605
|
-
margin: sizeSchema.optional()
|
|
5606
|
-
});
|
|
5607
|
-
var infoLayoutSchema = z.object({
|
|
5608
|
-
type: z.literal("info"),
|
|
5609
|
-
markdown: z.string(),
|
|
5610
|
-
align: alignSchema.optional(),
|
|
5611
|
-
control: z.string().optional(),
|
|
5612
|
-
margin: sizeSchema.optional()
|
|
5613
|
-
});
|
|
5614
|
-
var instructionsLayoutSchema = z.object({
|
|
5615
|
-
type: z.literal("instructions"),
|
|
5616
|
-
title: z.string().optional(),
|
|
5617
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
5618
|
-
control: z.string().optional(),
|
|
5619
|
-
margin: sizeSchema.optional()
|
|
5620
|
-
});
|
|
5621
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
5622
|
-
type: z.literal("loading-indicator"),
|
|
5623
|
-
size: sizeSchema.optional(),
|
|
5624
|
-
control: z.string().optional(),
|
|
5625
|
-
margin: sizeSchema.optional()
|
|
5626
|
-
});
|
|
5627
|
-
var markdownLayoutSchema = z.object({
|
|
5628
|
-
type: z.literal("markdown"),
|
|
5629
|
-
content: z.string(),
|
|
5630
|
-
align: alignSchema.optional(),
|
|
5631
|
-
control: z.string().optional(),
|
|
5632
|
-
margin: sizeSchema.optional()
|
|
5633
|
-
});
|
|
5634
|
-
var searchLayoutSchema = z.object({
|
|
5635
|
-
type: z.literal("search"),
|
|
5636
|
-
title: z.string(),
|
|
5637
|
-
method: httpMethodSchema,
|
|
5638
|
-
url: z.string(),
|
|
5639
|
-
param: z.string(),
|
|
5640
|
-
emptyMessage: z.string().optional(),
|
|
5641
|
-
control: z.string().optional(),
|
|
5642
|
-
margin: sizeSchema.optional()
|
|
5643
|
-
});
|
|
5644
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5645
|
-
title: z.string()
|
|
5646
|
-
});
|
|
5647
|
-
var listLayoutStatusSchema = z.union([
|
|
5648
|
-
z.literal("warning"),
|
|
5649
|
-
z.literal("neutral"),
|
|
5650
|
-
z.literal("positive")
|
|
5651
|
-
]);
|
|
5652
|
-
var reviewLayoutFieldSchema = z.object({
|
|
5653
|
-
label: z.string(),
|
|
5654
|
-
value: z.string(),
|
|
5655
|
-
rawValue: z.string().optional(),
|
|
5656
|
-
help: helpSchema.optional(),
|
|
5657
|
-
tag: z.string().optional()
|
|
5658
|
-
});
|
|
5659
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5660
|
-
z.literal("not-done"),
|
|
5661
|
-
z.literal("pending"),
|
|
5662
|
-
z.literal("done")
|
|
5663
|
-
]);
|
|
5664
|
-
var linkSchema = z.object({
|
|
5665
|
-
url: z.string()
|
|
5666
|
-
});
|
|
5667
|
-
var actionTypeSchema = z.union([
|
|
5668
|
-
z.literal("primary"),
|
|
5669
|
-
z.literal("secondary"),
|
|
5670
|
-
z.literal("link"),
|
|
5671
|
-
z.literal("positive"),
|
|
5672
|
-
z.literal("negative")
|
|
5673
|
-
]);
|
|
5674
|
-
var navigationStackBehaviorSchema = z.union([
|
|
5675
|
-
z.literal("default"),
|
|
5676
|
-
z.literal("remove-previous"),
|
|
5677
|
-
z.literal("remove-all"),
|
|
5678
|
-
z.literal("replace-current")
|
|
5659
|
+
var stringSchemaFormatSchema = z.union([
|
|
5660
|
+
z.literal("date"),
|
|
5661
|
+
z.literal("email"),
|
|
5662
|
+
z.literal("numeric"),
|
|
5663
|
+
z.literal("password"),
|
|
5664
|
+
z.literal("phone-number"),
|
|
5665
|
+
z.literal("base64url")
|
|
5679
5666
|
]);
|
|
5680
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5681
|
-
var validateAsyncSchema = z.object({
|
|
5682
|
-
param: z.string(),
|
|
5683
|
-
method: httpMethodSchema,
|
|
5684
|
-
url: z.string()
|
|
5685
|
-
});
|
|
5686
|
-
var summarySummariserSchema = z.object({
|
|
5687
|
-
defaultTitle: z.string().optional(),
|
|
5688
|
-
defaultDescription: z.string().optional(),
|
|
5689
|
-
defaultIcon: iconSchema.optional(),
|
|
5690
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
5691
|
-
providesTitle: z.boolean().optional(),
|
|
5692
|
-
providesDescription: z.boolean().optional(),
|
|
5693
|
-
providesIcon: z.boolean().optional(),
|
|
5694
|
-
providesImage: z.boolean().optional()
|
|
5695
|
-
});
|
|
5696
5667
|
var actionSchema = z.object({
|
|
5697
5668
|
title: z.string().optional(),
|
|
5698
5669
|
type: actionTypeSchema.optional(),
|
|
@@ -5708,37 +5679,36 @@ var actionSchema = z.object({
|
|
|
5708
5679
|
timeout: z.number().optional(),
|
|
5709
5680
|
skipValidation: z.boolean().optional()
|
|
5710
5681
|
});
|
|
5682
|
+
var navigationBackBehaviorSchema = z.object({
|
|
5683
|
+
title: z.string().optional(),
|
|
5684
|
+
action: actionSchema
|
|
5685
|
+
});
|
|
5711
5686
|
var linkHandlerSchema = z.object({
|
|
5712
5687
|
regexPattern: z.string(),
|
|
5713
5688
|
action: actionSchema
|
|
5714
5689
|
});
|
|
5715
|
-
var
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
description: z.string().optional(),
|
|
5719
|
-
icon: iconSchema.optional(),
|
|
5720
|
-
image: imageLayoutSchema.optional(),
|
|
5721
|
-
value: actionSchema
|
|
5722
|
-
});
|
|
5723
|
-
var searchResultSearchSchema = z.object({
|
|
5724
|
-
type: z.literal("search"),
|
|
5725
|
-
title: z.string(),
|
|
5726
|
-
description: z.string().optional(),
|
|
5727
|
-
icon: iconSchema.optional(),
|
|
5728
|
-
image: imageLayoutSchema.optional(),
|
|
5729
|
-
value: searchSearchRequestSchema
|
|
5690
|
+
var stepErrorSchema = z.object({
|
|
5691
|
+
error: z.string().optional(),
|
|
5692
|
+
validation: jsonElementSchema.optional()
|
|
5730
5693
|
});
|
|
5731
|
-
var
|
|
5694
|
+
var pollingOnErrorSchema = z.object({
|
|
5732
5695
|
action: actionSchema
|
|
5733
5696
|
});
|
|
5734
|
-
var
|
|
5735
|
-
|
|
5736
|
-
|
|
5697
|
+
var pollingSchema = z.object({
|
|
5698
|
+
url: z.string(),
|
|
5699
|
+
interval: z.number().optional(),
|
|
5700
|
+
delay: z.number().optional(),
|
|
5701
|
+
timeout: z.number().optional(),
|
|
5702
|
+
maxAttempts: z.number(),
|
|
5703
|
+
onError: pollingOnErrorSchema
|
|
5737
5704
|
});
|
|
5738
|
-
var
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5705
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5706
|
+
var imageLayoutSchema = z.object({
|
|
5707
|
+
type: z.literal("image"),
|
|
5708
|
+
text: z.string().optional(),
|
|
5709
|
+
url: z.string(),
|
|
5710
|
+
size: sizeSchema.optional(),
|
|
5711
|
+
accessibilityDescription: z.string().optional(),
|
|
5742
5712
|
control: z.string().optional(),
|
|
5743
5713
|
margin: sizeSchema.optional()
|
|
5744
5714
|
});
|
|
@@ -5751,10 +5721,6 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5751
5721
|
image: imageLayoutSchema.optional(),
|
|
5752
5722
|
tag: z.string().optional()
|
|
5753
5723
|
});
|
|
5754
|
-
var behaviorSchema = z.object({
|
|
5755
|
-
action: actionSchema.optional(),
|
|
5756
|
-
link: linkSchema.optional()
|
|
5757
|
-
});
|
|
5758
5724
|
var buttonLayoutSchema = z.object({
|
|
5759
5725
|
type: z.literal("button"),
|
|
5760
5726
|
size: sizeSchema.optional(),
|
|
@@ -5766,25 +5732,30 @@ var buttonLayoutSchema = z.object({
|
|
|
5766
5732
|
control: z.string().optional(),
|
|
5767
5733
|
margin: sizeSchema.optional()
|
|
5768
5734
|
});
|
|
5769
|
-
var
|
|
5770
|
-
type: z.literal("
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5774
|
-
title: z.string().optional(),
|
|
5775
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5735
|
+
var formLayoutSchema = z.object({
|
|
5736
|
+
type: z.literal("form"),
|
|
5737
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5738
|
+
schemaId: z.string(),
|
|
5776
5739
|
control: z.string().optional(),
|
|
5777
5740
|
margin: sizeSchema.optional()
|
|
5778
5741
|
});
|
|
5779
|
-
var
|
|
5742
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
5780
5743
|
title: z.string(),
|
|
5781
|
-
|
|
5782
|
-
behavior: behaviorSchema
|
|
5744
|
+
action: actionSchema
|
|
5783
5745
|
});
|
|
5784
|
-
var
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5746
|
+
var infoLayoutSchema = z.object({
|
|
5747
|
+
type: z.literal("info"),
|
|
5748
|
+
markdown: z.string(),
|
|
5749
|
+
align: alignSchema.optional(),
|
|
5750
|
+
control: z.string().optional(),
|
|
5751
|
+
margin: sizeSchema.optional()
|
|
5752
|
+
});
|
|
5753
|
+
var decisionLayoutSchema = z.object({
|
|
5754
|
+
type: z.literal("decision"),
|
|
5755
|
+
title: z.string().optional(),
|
|
5756
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
5757
|
+
control: z.string().optional(),
|
|
5758
|
+
margin: sizeSchema.optional()
|
|
5788
5759
|
});
|
|
5789
5760
|
var listLayoutItemSchema = z.object({
|
|
5790
5761
|
description: z.string().optional(),
|
|
@@ -5797,50 +5768,76 @@ var listLayoutItemSchema = z.object({
|
|
|
5797
5768
|
subvalue: z.string().optional(),
|
|
5798
5769
|
tag: z.string().optional()
|
|
5799
5770
|
});
|
|
5800
|
-
var
|
|
5771
|
+
var actionResponseBodySchema = z.object({
|
|
5772
|
+
action: actionSchema
|
|
5773
|
+
});
|
|
5774
|
+
var searchResultActionSchema = z.object({
|
|
5775
|
+
type: z.literal("action"),
|
|
5801
5776
|
title: z.string(),
|
|
5802
5777
|
description: z.string().optional(),
|
|
5803
|
-
icon: iconSchema,
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
tag: z.string().optional()
|
|
5807
|
-
});
|
|
5808
|
-
var pollingOnErrorSchema = z.object({
|
|
5809
|
-
action: actionSchema
|
|
5778
|
+
icon: iconSchema.optional(),
|
|
5779
|
+
image: imageLayoutSchema.optional(),
|
|
5780
|
+
value: actionSchema
|
|
5810
5781
|
});
|
|
5811
|
-
var
|
|
5812
|
-
|
|
5813
|
-
|
|
5782
|
+
var searchResultSearchSchema = z.object({
|
|
5783
|
+
type: z.literal("search"),
|
|
5784
|
+
title: z.string(),
|
|
5785
|
+
description: z.string().optional(),
|
|
5786
|
+
icon: iconSchema.optional(),
|
|
5787
|
+
image: imageLayoutSchema.optional(),
|
|
5788
|
+
value: searchSearchRequestSchema
|
|
5814
5789
|
});
|
|
5815
|
-
var
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
interval: z.number().optional(),
|
|
5819
|
-
delay: z.number().optional(),
|
|
5820
|
-
timeout: z.number().optional(),
|
|
5821
|
-
maxAttempts: z.number(),
|
|
5822
|
-
onError: pollingOnErrorSchema
|
|
5790
|
+
var behaviorSchema = z.object({
|
|
5791
|
+
action: actionSchema.optional(),
|
|
5792
|
+
link: linkSchema.optional()
|
|
5823
5793
|
});
|
|
5824
5794
|
var navigationSchema = z.object({
|
|
5825
5795
|
backButton: navigationBackBehaviorSchema.optional(),
|
|
5826
5796
|
back: navigationBackBehaviorSchema.optional(),
|
|
5827
5797
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5828
5798
|
});
|
|
5829
|
-
var
|
|
5830
|
-
|
|
5831
|
-
|
|
5799
|
+
var summarySummariserSchema = z.object({
|
|
5800
|
+
defaultTitle: z.string().optional(),
|
|
5801
|
+
defaultDescription: z.string().optional(),
|
|
5802
|
+
defaultIcon: iconSchema.optional(),
|
|
5803
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
5804
|
+
providesTitle: z.boolean().optional(),
|
|
5805
|
+
providesDescription: z.boolean().optional(),
|
|
5806
|
+
providesIcon: z.boolean().optional(),
|
|
5807
|
+
providesImage: z.boolean().optional()
|
|
5808
|
+
});
|
|
5809
|
+
var reviewLayoutSchema = z.object({
|
|
5810
|
+
type: z.literal("review"),
|
|
5811
|
+
orientation: z.string().optional(),
|
|
5812
|
+
action: actionSchema.optional(),
|
|
5813
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
5814
|
+
title: z.string().optional(),
|
|
5815
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5816
|
+
control: z.string().optional(),
|
|
5817
|
+
margin: sizeSchema.optional()
|
|
5832
5818
|
});
|
|
5833
5819
|
var alertLayoutCallToActionSchema = z.object({
|
|
5834
5820
|
title: z.string(),
|
|
5835
5821
|
accessibilityDescription: z.string().optional(),
|
|
5836
5822
|
behavior: behaviorSchema
|
|
5837
5823
|
});
|
|
5838
|
-
var
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5824
|
+
var itemCallToActionSchema = z.object({
|
|
5825
|
+
title: z.string(),
|
|
5826
|
+
accessibilityDescription: z.string().optional(),
|
|
5827
|
+
behavior: behaviorSchema
|
|
5828
|
+
});
|
|
5829
|
+
var alertLayoutSchema = z.object({
|
|
5830
|
+
type: z.literal("alert"),
|
|
5831
|
+
markdown: z.string(),
|
|
5832
|
+
context: contextSchema.optional(),
|
|
5842
5833
|
control: z.string().optional(),
|
|
5843
|
-
margin: sizeSchema.optional()
|
|
5834
|
+
margin: sizeSchema.optional(),
|
|
5835
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5836
|
+
});
|
|
5837
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5838
|
+
title: z.string(),
|
|
5839
|
+
accessibilityDescription: z.string().optional(),
|
|
5840
|
+
behavior: behaviorSchema
|
|
5844
5841
|
});
|
|
5845
5842
|
var listLayoutSchema = z.object({
|
|
5846
5843
|
type: z.literal("list"),
|
|
@@ -5850,20 +5847,9 @@ var listLayoutSchema = z.object({
|
|
|
5850
5847
|
control: z.string().optional(),
|
|
5851
5848
|
margin: sizeSchema.optional()
|
|
5852
5849
|
});
|
|
5853
|
-
var
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
title: z.string().optional(),
|
|
5857
|
-
control: z.string().optional(),
|
|
5858
|
-
margin: sizeSchema.optional()
|
|
5859
|
-
});
|
|
5860
|
-
var alertLayoutSchema = z.object({
|
|
5861
|
-
type: z.literal("alert"),
|
|
5862
|
-
markdown: z.string(),
|
|
5863
|
-
context: contextSchema.optional(),
|
|
5864
|
-
control: z.string().optional(),
|
|
5865
|
-
margin: sizeSchema.optional(),
|
|
5866
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5850
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5851
|
+
var searchResponseBodySchema = z.object({
|
|
5852
|
+
results: z.array(searchResultSchema)
|
|
5867
5853
|
});
|
|
5868
5854
|
var constSchemaSchema = z.object({
|
|
5869
5855
|
hidden: z.boolean().optional(),
|
|
@@ -5903,22 +5889,148 @@ var blobSchemaSchema = z.object({
|
|
|
5903
5889
|
source: uploadSourceSchema.optional(),
|
|
5904
5890
|
disabled: z.boolean().optional()
|
|
5905
5891
|
});
|
|
5906
|
-
var
|
|
5892
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
5893
|
+
var statusListLayoutItemSchema = z.object({
|
|
5894
|
+
title: z.string(),
|
|
5895
|
+
description: z.string().optional(),
|
|
5896
|
+
icon: iconSchema,
|
|
5897
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5898
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5899
|
+
tag: z.string().optional()
|
|
5900
|
+
});
|
|
5901
|
+
var statusListLayoutSchema = z.object({
|
|
5902
|
+
type: z.literal("status-list"),
|
|
5903
|
+
items: z.array(statusListLayoutItemSchema),
|
|
5904
|
+
title: z.string().optional(),
|
|
5905
|
+
control: z.string().optional(),
|
|
5906
|
+
margin: sizeSchema.optional()
|
|
5907
|
+
});
|
|
5908
|
+
var persistAsyncSchema = z.lazy(
|
|
5907
5909
|
() => z.object({
|
|
5908
|
-
|
|
5910
|
+
param: z.string(),
|
|
5911
|
+
idProperty: z.string(),
|
|
5912
|
+
schema: schemaSchema,
|
|
5913
|
+
url: z.string(),
|
|
5914
|
+
method: httpMethodSchema
|
|
5915
|
+
})
|
|
5916
|
+
);
|
|
5917
|
+
var schemaSchema = z.lazy(
|
|
5918
|
+
() => z.union([
|
|
5919
|
+
allOfSchemaSchema,
|
|
5920
|
+
arraySchemaSchema,
|
|
5921
|
+
blobSchemaSchema,
|
|
5922
|
+
booleanSchemaSchema,
|
|
5923
|
+
constSchemaSchema,
|
|
5924
|
+
integerSchemaSchema,
|
|
5925
|
+
numberSchemaSchema,
|
|
5926
|
+
objectSchemaSchema,
|
|
5927
|
+
oneOfSchemaSchema,
|
|
5928
|
+
stringSchemaSchema
|
|
5929
|
+
])
|
|
5930
|
+
);
|
|
5931
|
+
var columnsLayoutSchema = z.lazy(
|
|
5932
|
+
() => z.object({
|
|
5933
|
+
type: z.literal("columns"),
|
|
5934
|
+
left: z.array(layoutSchema),
|
|
5935
|
+
right: z.array(layoutSchema),
|
|
5936
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
5937
|
+
control: z.string().optional(),
|
|
5938
|
+
margin: sizeSchema.optional()
|
|
5939
|
+
})
|
|
5940
|
+
);
|
|
5941
|
+
var layoutSchema = z.lazy(
|
|
5942
|
+
() => z.union([
|
|
5943
|
+
alertLayoutSchema,
|
|
5944
|
+
boxLayoutSchema,
|
|
5945
|
+
buttonLayoutSchema,
|
|
5946
|
+
columnsLayoutSchema,
|
|
5947
|
+
decisionLayoutSchema,
|
|
5948
|
+
dividerLayoutSchema,
|
|
5949
|
+
formLayoutSchema,
|
|
5950
|
+
headingLayoutSchema,
|
|
5951
|
+
imageLayoutSchema,
|
|
5952
|
+
infoLayoutSchema,
|
|
5953
|
+
instructionsLayoutSchema,
|
|
5954
|
+
listLayoutSchema,
|
|
5955
|
+
loadingIndicatorLayoutSchema,
|
|
5956
|
+
markdownLayoutSchema,
|
|
5957
|
+
modalLayoutSchema,
|
|
5958
|
+
paragraphLayoutSchema,
|
|
5959
|
+
reviewLayoutSchema,
|
|
5960
|
+
searchLayoutSchema,
|
|
5961
|
+
statusListLayoutSchema
|
|
5962
|
+
])
|
|
5963
|
+
);
|
|
5964
|
+
var modalLayoutContentSchema = z.lazy(
|
|
5965
|
+
() => z.object({
|
|
5966
|
+
title: z.string().optional(),
|
|
5967
|
+
components: z.array(layoutSchema)
|
|
5968
|
+
})
|
|
5969
|
+
);
|
|
5970
|
+
var boxLayoutSchema = z.lazy(
|
|
5971
|
+
() => z.object({
|
|
5972
|
+
type: z.literal("box"),
|
|
5973
|
+
components: z.array(layoutSchema),
|
|
5974
|
+
width: sizeSchema.optional(),
|
|
5975
|
+
border: z.boolean().optional(),
|
|
5976
|
+
control: z.string().optional(),
|
|
5977
|
+
margin: sizeSchema.optional()
|
|
5978
|
+
})
|
|
5979
|
+
);
|
|
5980
|
+
var modalLayoutSchema = z.lazy(
|
|
5981
|
+
() => z.object({
|
|
5982
|
+
type: z.literal("modal"),
|
|
5983
|
+
control: z.string().optional(),
|
|
5984
|
+
margin: sizeSchema.optional(),
|
|
5985
|
+
trigger: modalLayoutTriggerSchema,
|
|
5986
|
+
content: modalLayoutContentSchema
|
|
5987
|
+
})
|
|
5988
|
+
);
|
|
5989
|
+
var stepSchema = z.lazy(
|
|
5990
|
+
() => z.object({
|
|
5991
|
+
key: z.string().optional(),
|
|
5992
|
+
type: z.string().optional(),
|
|
5993
|
+
actions: z.array(actionSchema).optional(),
|
|
5994
|
+
refreshFormUrl: z.string().optional(),
|
|
5995
|
+
id: z.string(),
|
|
5996
|
+
title: z.string(),
|
|
5997
|
+
schemas: z.array(schemaSchema),
|
|
5998
|
+
layout: z.array(layoutSchema),
|
|
5999
|
+
description: z.string().optional(),
|
|
6000
|
+
model: jsonElementSchema.optional(),
|
|
6001
|
+
external: externalSchema.optional(),
|
|
6002
|
+
polling: pollingSchema.optional(),
|
|
6003
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6004
|
+
analytics: z.record(z.string()).optional(),
|
|
6005
|
+
errors: stepErrorSchema.optional(),
|
|
6006
|
+
navigation: navigationSchema.optional(),
|
|
6007
|
+
refreshUrl: z.string().optional(),
|
|
6008
|
+
control: z.string().optional()
|
|
6009
|
+
})
|
|
6010
|
+
);
|
|
6011
|
+
var stringSchemaSchema = z.lazy(
|
|
6012
|
+
() => z.object({
|
|
6013
|
+
type: z.literal("string"),
|
|
5909
6014
|
autofillProvider: z.string().optional(),
|
|
5910
6015
|
promoted: z.boolean().optional(),
|
|
5911
6016
|
refreshFormOnChange: z.boolean().optional(),
|
|
5912
6017
|
refreshUrl: z.string().optional(),
|
|
5913
6018
|
refreshFormUrl: z.string().optional(),
|
|
6019
|
+
format: stringSchemaFormatSchema.optional(),
|
|
6020
|
+
displayFormat: z.string().optional(),
|
|
5914
6021
|
placeholder: z.string().optional(),
|
|
5915
|
-
|
|
5916
|
-
|
|
6022
|
+
minLength: z.number().optional(),
|
|
6023
|
+
maxLength: z.number().optional(),
|
|
6024
|
+
minimum: z.string().optional(),
|
|
6025
|
+
maximum: z.string().optional(),
|
|
6026
|
+
pattern: z.string().optional(),
|
|
6027
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6028
|
+
autocorrect: z.boolean().optional(),
|
|
5917
6029
|
$id: z.string().optional(),
|
|
5918
6030
|
title: z.string().optional(),
|
|
5919
6031
|
description: z.string().optional(),
|
|
5920
6032
|
control: z.string().optional(),
|
|
5921
|
-
default: z.
|
|
6033
|
+
default: z.string().optional(),
|
|
5922
6034
|
hidden: z.boolean().optional(),
|
|
5923
6035
|
disabled: z.boolean().optional(),
|
|
5924
6036
|
icon: iconSchema.optional(),
|
|
@@ -5931,67 +6043,61 @@ var numberSchemaSchema = z.lazy(
|
|
|
5931
6043
|
validationAsync: validateAsyncSchema.optional(),
|
|
5932
6044
|
validationMessages: z.record(z.string()).optional(),
|
|
5933
6045
|
alert: alertLayoutSchema.optional(),
|
|
6046
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6047
|
+
accepts: z.array(z.string()).optional(),
|
|
6048
|
+
maxSize: z.number().optional(),
|
|
6049
|
+
source: uploadSourceSchema.optional(),
|
|
5934
6050
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
5935
6051
|
autofillKey: z.string().optional(),
|
|
5936
6052
|
help: helpSchema.optional()
|
|
5937
6053
|
})
|
|
5938
6054
|
);
|
|
5939
|
-
var
|
|
5940
|
-
() => z.object({
|
|
5941
|
-
param: z.string(),
|
|
5942
|
-
idProperty: z.string(),
|
|
5943
|
-
schema: schemaSchema,
|
|
5944
|
-
url: z.string(),
|
|
5945
|
-
method: httpMethodSchema
|
|
5946
|
-
})
|
|
5947
|
-
);
|
|
5948
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
6055
|
+
var oneOfSchemaSchema = z.lazy(
|
|
5949
6056
|
() => z.object({
|
|
5950
|
-
|
|
6057
|
+
autofillProvider: z.string().optional(),
|
|
5951
6058
|
promoted: z.boolean().optional(),
|
|
6059
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
6060
|
+
refreshUrl: z.string().optional(),
|
|
6061
|
+
refreshFormUrl: z.string().optional(),
|
|
6062
|
+
promotion: jsonElementSchema.optional(),
|
|
6063
|
+
oneOf: z.array(schemaSchema),
|
|
6064
|
+
placeholder: z.string().optional(),
|
|
5952
6065
|
$id: z.string().optional(),
|
|
5953
|
-
items: z.array(schemaSchema),
|
|
5954
6066
|
title: z.string().optional(),
|
|
5955
6067
|
description: z.string().optional(),
|
|
5956
6068
|
control: z.string().optional(),
|
|
6069
|
+
default: jsonElementSchema.optional(),
|
|
5957
6070
|
hidden: z.boolean().optional(),
|
|
5958
6071
|
icon: iconSchema.optional(),
|
|
5959
6072
|
image: imageSchema.optional(),
|
|
5960
6073
|
keywords: z.array(z.string()).optional(),
|
|
5961
6074
|
summary: summaryProviderSchema.optional(),
|
|
5962
6075
|
analyticsId: z.string().optional(),
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
6076
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6077
|
+
alert: alertLayoutSchema.optional(),
|
|
6078
|
+
help: helpSchema.optional(),
|
|
6079
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6080
|
+
autofillKey: z.string().optional(),
|
|
6081
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6082
|
+
disabled: z.boolean().optional()
|
|
5966
6083
|
})
|
|
5967
6084
|
);
|
|
5968
|
-
var
|
|
5969
|
-
() => z.union([
|
|
5970
|
-
allOfSchemaSchema,
|
|
5971
|
-
arraySchemaSchema,
|
|
5972
|
-
blobSchemaSchema,
|
|
5973
|
-
booleanSchemaSchema,
|
|
5974
|
-
constSchemaSchema,
|
|
5975
|
-
integerSchemaSchema,
|
|
5976
|
-
numberSchemaSchema,
|
|
5977
|
-
objectSchemaSchema,
|
|
5978
|
-
oneOfSchemaSchema,
|
|
5979
|
-
stringSchemaSchema
|
|
5980
|
-
])
|
|
5981
|
-
);
|
|
5982
|
-
var booleanSchemaSchema = z.lazy(
|
|
6085
|
+
var numberSchemaSchema = z.lazy(
|
|
5983
6086
|
() => z.object({
|
|
5984
|
-
type: z.literal("
|
|
6087
|
+
type: z.literal("number"),
|
|
5985
6088
|
autofillProvider: z.string().optional(),
|
|
5986
6089
|
promoted: z.boolean().optional(),
|
|
5987
6090
|
refreshFormOnChange: z.boolean().optional(),
|
|
5988
6091
|
refreshUrl: z.string().optional(),
|
|
5989
6092
|
refreshFormUrl: z.string().optional(),
|
|
6093
|
+
placeholder: z.string().optional(),
|
|
6094
|
+
minimum: z.number().optional(),
|
|
6095
|
+
maximum: z.number().optional(),
|
|
5990
6096
|
$id: z.string().optional(),
|
|
5991
6097
|
title: z.string().optional(),
|
|
5992
6098
|
description: z.string().optional(),
|
|
5993
6099
|
control: z.string().optional(),
|
|
5994
|
-
default: z.
|
|
6100
|
+
default: z.number().optional(),
|
|
5995
6101
|
hidden: z.boolean().optional(),
|
|
5996
6102
|
disabled: z.boolean().optional(),
|
|
5997
6103
|
icon: iconSchema.optional(),
|
|
@@ -6002,17 +6108,19 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6002
6108
|
persistAsync: persistAsyncSchema.optional(),
|
|
6003
6109
|
refreshStepOnChange: z.boolean().optional(),
|
|
6004
6110
|
validationAsync: validateAsyncSchema.optional(),
|
|
6111
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6005
6112
|
alert: alertLayoutSchema.optional(),
|
|
6113
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6006
6114
|
autofillKey: z.string().optional(),
|
|
6007
6115
|
help: helpSchema.optional()
|
|
6008
6116
|
})
|
|
6009
6117
|
);
|
|
6010
|
-
var
|
|
6118
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6011
6119
|
() => z.object({
|
|
6012
|
-
|
|
6120
|
+
type: z.literal("array"),
|
|
6013
6121
|
promoted: z.boolean().optional(),
|
|
6014
|
-
allOf: z.array(schemaSchema),
|
|
6015
6122
|
$id: z.string().optional(),
|
|
6123
|
+
items: z.array(schemaSchema),
|
|
6016
6124
|
title: z.string().optional(),
|
|
6017
6125
|
description: z.string().optional(),
|
|
6018
6126
|
control: z.string().optional(),
|
|
@@ -6022,12 +6130,11 @@ var allOfSchemaSchema = z.lazy(
|
|
|
6022
6130
|
keywords: z.array(z.string()).optional(),
|
|
6023
6131
|
summary: summaryProviderSchema.optional(),
|
|
6024
6132
|
analyticsId: z.string().optional(),
|
|
6133
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6134
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6025
6135
|
alert: alertLayoutSchema.optional()
|
|
6026
6136
|
})
|
|
6027
6137
|
);
|
|
6028
|
-
var arraySchemaSchema = z.lazy(
|
|
6029
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6030
|
-
);
|
|
6031
6138
|
var integerSchemaSchema = z.lazy(
|
|
6032
6139
|
() => z.object({
|
|
6033
6140
|
type: z.literal("integer"),
|
|
@@ -6061,16 +6168,20 @@ var integerSchemaSchema = z.lazy(
|
|
|
6061
6168
|
help: helpSchema.optional()
|
|
6062
6169
|
})
|
|
6063
6170
|
);
|
|
6064
|
-
var
|
|
6171
|
+
var arraySchemaSchema = z.lazy(
|
|
6172
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6173
|
+
);
|
|
6174
|
+
var arraySchemaListSchema = z.lazy(
|
|
6065
6175
|
() => z.object({
|
|
6066
|
-
type: z.literal("
|
|
6067
|
-
disabled: z.boolean().optional(),
|
|
6176
|
+
type: z.literal("array"),
|
|
6068
6177
|
promoted: z.boolean().optional(),
|
|
6069
|
-
help: helpSchema.optional(),
|
|
6070
|
-
properties: z.record(schemaSchema),
|
|
6071
|
-
displayOrder: z.array(z.string()),
|
|
6072
|
-
required: z.array(z.string()).optional(),
|
|
6073
6178
|
$id: z.string().optional(),
|
|
6179
|
+
items: schemaSchema,
|
|
6180
|
+
addItemTitle: z.string(),
|
|
6181
|
+
editItemTitle: z.string(),
|
|
6182
|
+
minItems: z.number().optional(),
|
|
6183
|
+
maxItems: z.number().optional(),
|
|
6184
|
+
placeholder: z.string().optional(),
|
|
6074
6185
|
title: z.string().optional(),
|
|
6075
6186
|
description: z.string().optional(),
|
|
6076
6187
|
control: z.string().optional(),
|
|
@@ -6078,64 +6189,46 @@ var objectSchemaSchema = z.lazy(
|
|
|
6078
6189
|
icon: iconSchema.optional(),
|
|
6079
6190
|
image: imageSchema.optional(),
|
|
6080
6191
|
keywords: z.array(z.string()).optional(),
|
|
6081
|
-
summary:
|
|
6192
|
+
summary: summarySummariserSchema.optional(),
|
|
6082
6193
|
analyticsId: z.string().optional(),
|
|
6083
|
-
|
|
6194
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6195
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6196
|
+
alert: alertLayoutSchema.optional(),
|
|
6197
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6198
|
+
disabled: z.boolean().optional()
|
|
6084
6199
|
})
|
|
6085
6200
|
);
|
|
6086
|
-
var
|
|
6201
|
+
var allOfSchemaSchema = z.lazy(
|
|
6087
6202
|
() => z.object({
|
|
6088
|
-
|
|
6203
|
+
disabled: z.boolean().optional(),
|
|
6089
6204
|
promoted: z.boolean().optional(),
|
|
6090
|
-
|
|
6091
|
-
refreshUrl: z.string().optional(),
|
|
6092
|
-
refreshFormUrl: z.string().optional(),
|
|
6093
|
-
promotion: jsonElementSchema.optional(),
|
|
6094
|
-
oneOf: z.array(schemaSchema),
|
|
6095
|
-
placeholder: z.string().optional(),
|
|
6205
|
+
allOf: z.array(schemaSchema),
|
|
6096
6206
|
$id: z.string().optional(),
|
|
6097
6207
|
title: z.string().optional(),
|
|
6098
6208
|
description: z.string().optional(),
|
|
6099
6209
|
control: z.string().optional(),
|
|
6100
|
-
default: jsonElementSchema.optional(),
|
|
6101
6210
|
hidden: z.boolean().optional(),
|
|
6102
6211
|
icon: iconSchema.optional(),
|
|
6103
6212
|
image: imageSchema.optional(),
|
|
6104
6213
|
keywords: z.array(z.string()).optional(),
|
|
6105
6214
|
summary: summaryProviderSchema.optional(),
|
|
6106
6215
|
analyticsId: z.string().optional(),
|
|
6107
|
-
|
|
6108
|
-
alert: alertLayoutSchema.optional(),
|
|
6109
|
-
help: helpSchema.optional(),
|
|
6110
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6111
|
-
autofillKey: z.string().optional(),
|
|
6112
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6113
|
-
disabled: z.boolean().optional()
|
|
6216
|
+
alert: alertLayoutSchema.optional()
|
|
6114
6217
|
})
|
|
6115
6218
|
);
|
|
6116
|
-
var
|
|
6219
|
+
var booleanSchemaSchema = z.lazy(
|
|
6117
6220
|
() => z.object({
|
|
6118
|
-
type: z.literal("
|
|
6221
|
+
type: z.literal("boolean"),
|
|
6119
6222
|
autofillProvider: z.string().optional(),
|
|
6120
6223
|
promoted: z.boolean().optional(),
|
|
6121
6224
|
refreshFormOnChange: z.boolean().optional(),
|
|
6122
6225
|
refreshUrl: z.string().optional(),
|
|
6123
6226
|
refreshFormUrl: z.string().optional(),
|
|
6124
|
-
format: stringSchemaFormatSchema.optional(),
|
|
6125
|
-
displayFormat: z.string().optional(),
|
|
6126
|
-
placeholder: z.string().optional(),
|
|
6127
|
-
minLength: z.number().optional(),
|
|
6128
|
-
maxLength: z.number().optional(),
|
|
6129
|
-
minimum: z.string().optional(),
|
|
6130
|
-
maximum: z.string().optional(),
|
|
6131
|
-
pattern: z.string().optional(),
|
|
6132
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6133
|
-
autocorrect: z.boolean().optional(),
|
|
6134
6227
|
$id: z.string().optional(),
|
|
6135
6228
|
title: z.string().optional(),
|
|
6136
6229
|
description: z.string().optional(),
|
|
6137
6230
|
control: z.string().optional(),
|
|
6138
|
-
default: z.
|
|
6231
|
+
default: z.boolean().optional(),
|
|
6139
6232
|
hidden: z.boolean().optional(),
|
|
6140
6233
|
disabled: z.boolean().optional(),
|
|
6141
6234
|
icon: iconSchema.optional(),
|
|
@@ -6146,28 +6239,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6146
6239
|
persistAsync: persistAsyncSchema.optional(),
|
|
6147
6240
|
refreshStepOnChange: z.boolean().optional(),
|
|
6148
6241
|
validationAsync: validateAsyncSchema.optional(),
|
|
6149
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6150
6242
|
alert: alertLayoutSchema.optional(),
|
|
6151
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
6152
|
-
accepts: z.array(z.string()).optional(),
|
|
6153
|
-
maxSize: z.number().optional(),
|
|
6154
|
-
source: uploadSourceSchema.optional(),
|
|
6155
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6156
6243
|
autofillKey: z.string().optional(),
|
|
6157
6244
|
help: helpSchema.optional()
|
|
6158
6245
|
})
|
|
6159
6246
|
);
|
|
6160
|
-
var
|
|
6247
|
+
var objectSchemaSchema = z.lazy(
|
|
6161
6248
|
() => z.object({
|
|
6162
|
-
type: z.literal("
|
|
6249
|
+
type: z.literal("object"),
|
|
6250
|
+
disabled: z.boolean().optional(),
|
|
6163
6251
|
promoted: z.boolean().optional(),
|
|
6252
|
+
help: helpSchema.optional(),
|
|
6253
|
+
properties: z.record(schemaSchema),
|
|
6254
|
+
displayOrder: z.array(z.string()),
|
|
6255
|
+
required: z.array(z.string()).optional(),
|
|
6164
6256
|
$id: z.string().optional(),
|
|
6165
|
-
items: schemaSchema,
|
|
6166
|
-
addItemTitle: z.string(),
|
|
6167
|
-
editItemTitle: z.string(),
|
|
6168
|
-
minItems: z.number().optional(),
|
|
6169
|
-
maxItems: z.number().optional(),
|
|
6170
|
-
placeholder: z.string().optional(),
|
|
6171
6257
|
title: z.string().optional(),
|
|
6172
6258
|
description: z.string().optional(),
|
|
6173
6259
|
control: z.string().optional(),
|
|
@@ -6175,93 +6261,9 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6175
6261
|
icon: iconSchema.optional(),
|
|
6176
6262
|
image: imageSchema.optional(),
|
|
6177
6263
|
keywords: z.array(z.string()).optional(),
|
|
6178
|
-
summary:
|
|
6264
|
+
summary: summaryProviderSchema.optional(),
|
|
6179
6265
|
analyticsId: z.string().optional(),
|
|
6180
|
-
|
|
6181
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6182
|
-
alert: alertLayoutSchema.optional(),
|
|
6183
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6184
|
-
disabled: z.boolean().optional()
|
|
6185
|
-
})
|
|
6186
|
-
);
|
|
6187
|
-
var stepSchema = z.lazy(
|
|
6188
|
-
() => z.object({
|
|
6189
|
-
key: z.string().optional(),
|
|
6190
|
-
type: z.string().optional(),
|
|
6191
|
-
actions: z.array(actionSchema).optional(),
|
|
6192
|
-
refreshFormUrl: z.string().optional(),
|
|
6193
|
-
id: z.string(),
|
|
6194
|
-
title: z.string(),
|
|
6195
|
-
schemas: z.array(schemaSchema),
|
|
6196
|
-
layout: z.array(layoutSchema),
|
|
6197
|
-
description: z.string().optional(),
|
|
6198
|
-
model: jsonElementSchema.optional(),
|
|
6199
|
-
external: externalSchema.optional(),
|
|
6200
|
-
polling: pollingSchema.optional(),
|
|
6201
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6202
|
-
analytics: z.record(z.string()).optional(),
|
|
6203
|
-
errors: stepErrorSchema.optional(),
|
|
6204
|
-
navigation: navigationSchema.optional(),
|
|
6205
|
-
refreshUrl: z.string().optional(),
|
|
6206
|
-
control: z.string().optional()
|
|
6207
|
-
})
|
|
6208
|
-
);
|
|
6209
|
-
var layoutSchema = z.lazy(
|
|
6210
|
-
() => z.union([
|
|
6211
|
-
alertLayoutSchema,
|
|
6212
|
-
boxLayoutSchema,
|
|
6213
|
-
buttonLayoutSchema,
|
|
6214
|
-
columnsLayoutSchema,
|
|
6215
|
-
decisionLayoutSchema,
|
|
6216
|
-
dividerLayoutSchema,
|
|
6217
|
-
formLayoutSchema,
|
|
6218
|
-
headingLayoutSchema,
|
|
6219
|
-
imageLayoutSchema,
|
|
6220
|
-
infoLayoutSchema,
|
|
6221
|
-
instructionsLayoutSchema,
|
|
6222
|
-
listLayoutSchema,
|
|
6223
|
-
loadingIndicatorLayoutSchema,
|
|
6224
|
-
markdownLayoutSchema,
|
|
6225
|
-
modalLayoutSchema,
|
|
6226
|
-
paragraphLayoutSchema,
|
|
6227
|
-
reviewLayoutSchema,
|
|
6228
|
-
searchLayoutSchema,
|
|
6229
|
-
statusListLayoutSchema
|
|
6230
|
-
])
|
|
6231
|
-
);
|
|
6232
|
-
var columnsLayoutSchema = z.lazy(
|
|
6233
|
-
() => z.object({
|
|
6234
|
-
type: z.literal("columns"),
|
|
6235
|
-
left: z.array(layoutSchema),
|
|
6236
|
-
right: z.array(layoutSchema),
|
|
6237
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6238
|
-
control: z.string().optional(),
|
|
6239
|
-
margin: sizeSchema.optional()
|
|
6240
|
-
})
|
|
6241
|
-
);
|
|
6242
|
-
var modalLayoutContentSchema = z.lazy(
|
|
6243
|
-
() => z.object({
|
|
6244
|
-
title: z.string().optional(),
|
|
6245
|
-
components: z.array(layoutSchema)
|
|
6246
|
-
})
|
|
6247
|
-
);
|
|
6248
|
-
var boxLayoutSchema = z.lazy(
|
|
6249
|
-
() => z.object({
|
|
6250
|
-
type: z.literal("box"),
|
|
6251
|
-
components: z.array(layoutSchema),
|
|
6252
|
-
width: sizeSchema.optional(),
|
|
6253
|
-
border: z.boolean().optional(),
|
|
6254
|
-
control: z.string().optional(),
|
|
6255
|
-
margin: sizeSchema.optional()
|
|
6256
|
-
})
|
|
6257
|
-
);
|
|
6258
|
-
var modalLayoutSchema = z.lazy(
|
|
6259
|
-
() => z.object({
|
|
6260
|
-
type: z.literal("modal"),
|
|
6261
|
-
control: z.string().optional(),
|
|
6262
|
-
margin: sizeSchema.optional(),
|
|
6263
|
-
trigger: modalLayoutTriggerSchema,
|
|
6264
|
-
content: modalLayoutContentSchema
|
|
6266
|
+
alert: alertLayoutSchema.optional()
|
|
6265
6267
|
})
|
|
6266
6268
|
);
|
|
6267
6269
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -18904,6 +18906,69 @@ function JsonSchemaForm(props) {
|
|
|
18904
18906
|
var JsonSchemaForm_default = JsonSchemaForm;
|
|
18905
18907
|
var noop8 = () => {
|
|
18906
18908
|
};
|
|
18909
|
+
|
|
18910
|
+
// src/revamp/renderers/utils.ts
|
|
18911
|
+
function find(root, predicate) {
|
|
18912
|
+
if (isArray(root)) {
|
|
18913
|
+
return root.flatMap((child) => find(child, predicate));
|
|
18914
|
+
}
|
|
18915
|
+
return [
|
|
18916
|
+
...predicate(root) ? [root] : [],
|
|
18917
|
+
...getChildren(root).flatMap((child) => find(child, predicate))
|
|
18918
|
+
];
|
|
18919
|
+
}
|
|
18920
|
+
function findType(root, type, predicate = () => true) {
|
|
18921
|
+
if (isArray(root)) {
|
|
18922
|
+
return root.flatMap((child) => findType(child, type, predicate));
|
|
18923
|
+
}
|
|
18924
|
+
return [
|
|
18925
|
+
...isType(root, type) && predicate(root) ? [root] : [],
|
|
18926
|
+
...getChildren(root).flatMap((child) => findType(child, type, predicate))
|
|
18927
|
+
];
|
|
18928
|
+
}
|
|
18929
|
+
var isType = (node, type) => node.type === type;
|
|
18930
|
+
function getChildren(node) {
|
|
18931
|
+
switch (node.type) {
|
|
18932
|
+
case "box":
|
|
18933
|
+
case "container":
|
|
18934
|
+
case "form":
|
|
18935
|
+
case "section":
|
|
18936
|
+
case "step":
|
|
18937
|
+
return node.childrenProps;
|
|
18938
|
+
case "columns":
|
|
18939
|
+
return [...node.startChildrenProps, ...node.endChildrenProps];
|
|
18940
|
+
case "modal":
|
|
18941
|
+
return node.content.childrenProps;
|
|
18942
|
+
case "repeatable":
|
|
18943
|
+
return node.editableItemProps ? [node.editableItemProps] : [];
|
|
18944
|
+
case "input-select":
|
|
18945
|
+
return node.childrenProps ? [node.childrenProps] : [];
|
|
18946
|
+
case "alert":
|
|
18947
|
+
case "button":
|
|
18948
|
+
case "input-checkbox":
|
|
18949
|
+
case "input-date":
|
|
18950
|
+
case "decision":
|
|
18951
|
+
case "divider":
|
|
18952
|
+
case "heading":
|
|
18953
|
+
case "hidden":
|
|
18954
|
+
case "image":
|
|
18955
|
+
case "instructions":
|
|
18956
|
+
case "input-integer":
|
|
18957
|
+
case "list":
|
|
18958
|
+
case "loading-indicator":
|
|
18959
|
+
case "markdown":
|
|
18960
|
+
case "input-multi-select":
|
|
18961
|
+
case "input-upload-multi":
|
|
18962
|
+
case "input-number":
|
|
18963
|
+
case "paragraph":
|
|
18964
|
+
case "review":
|
|
18965
|
+
case "search":
|
|
18966
|
+
case "status-list":
|
|
18967
|
+
case "input-text":
|
|
18968
|
+
case "input-upload":
|
|
18969
|
+
return [];
|
|
18970
|
+
}
|
|
18971
|
+
}
|
|
18907
18972
|
/*! Bundled license information:
|
|
18908
18973
|
|
|
18909
18974
|
classnames/index.js:
|