@wise/dynamic-flow-types 2.17.0 → 2.18.0
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 +58 -45
- package/build/main.min.js +1 -1
- package/build/main.mjs +58 -45
- package/build/next/feature/Behavior.d.ts +17 -0
- package/build/next/feature/Link.d.ts +9 -0
- package/build/next/index.d.ts +1 -0
- package/build/next/layout/AlertLayout.d.ts +6 -0
- package/build/next/layout/AlertLayoutCallToAction.d.ts +18 -0
- package/build/renderers/index.d.ts +13 -0
- package/build/spec/LayoutComponent.d.ts +9 -3
- package/build/spec/core.d.ts +8 -0
- package/build/zod/schemas.d.ts +1470 -573
- package/build/zod/schemas.ts +62 -46
- package/package.json +1 -1
package/build/zod/schemas.ts
CHANGED
|
@@ -92,14 +92,6 @@ export const headingLayoutSchema = z.object({
|
|
|
92
92
|
margin: sizeSchema.optional(),
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export const alertLayoutSchema = z.object({
|
|
96
|
-
type: z.literal('alert'),
|
|
97
|
-
markdown: z.string(),
|
|
98
|
-
context: contextSchema.optional(),
|
|
99
|
-
control: z.string().optional(),
|
|
100
|
-
margin: sizeSchema.optional(),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
95
|
export const formLayoutSchema = z.object({
|
|
104
96
|
type: z.literal('form'),
|
|
105
97
|
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
@@ -289,6 +281,10 @@ export const navigationStackBehaviorSchema = z.union([
|
|
|
289
281
|
z.literal('replace-current'),
|
|
290
282
|
]);
|
|
291
283
|
|
|
284
|
+
export const linkSchema = z.object({
|
|
285
|
+
url: z.string(),
|
|
286
|
+
});
|
|
287
|
+
|
|
292
288
|
export const actionTypeSchema = z.union([
|
|
293
289
|
z.literal('primary'),
|
|
294
290
|
z.literal('secondary'),
|
|
@@ -368,44 +364,9 @@ export const statusListLayoutItemSchema = z.object({
|
|
|
368
364
|
status: statusListLayoutStatusSchema.optional(),
|
|
369
365
|
});
|
|
370
366
|
|
|
371
|
-
export const
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
$id: z.string().optional(),
|
|
375
|
-
title: z.string().optional(),
|
|
376
|
-
description: z.string().optional(),
|
|
377
|
-
control: z.string().optional(),
|
|
378
|
-
hidden: z.boolean().optional(),
|
|
379
|
-
icon: iconSchema.optional(),
|
|
380
|
-
image: imageSchema.optional(),
|
|
381
|
-
keywords: z.array(z.string()).optional(),
|
|
382
|
-
summary: summaryProviderSchema.optional(),
|
|
383
|
-
analyticsId: z.string().optional(),
|
|
384
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
385
|
-
validationMessages: z.record(z.string()).optional(),
|
|
386
|
-
alert: alertLayoutSchema.optional(),
|
|
387
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
388
|
-
accepts: z.array(z.string()).optional(),
|
|
389
|
-
maxSize: z.number().optional(),
|
|
390
|
-
source: uploadSourceSchema.optional(),
|
|
391
|
-
disabled: z.boolean().optional(),
|
|
392
|
-
});
|
|
393
|
-
|
|
394
|
-
export const constSchemaSchema = z.object({
|
|
395
|
-
hidden: z.boolean().optional(),
|
|
396
|
-
alert: alertLayoutSchema.optional(),
|
|
397
|
-
control: z.string().optional(),
|
|
398
|
-
promoted: z.boolean().optional(),
|
|
399
|
-
$id: z.string().optional(),
|
|
400
|
-
const: jsonElementSchema,
|
|
401
|
-
title: z.string().optional(),
|
|
402
|
-
description: z.string().optional(),
|
|
403
|
-
icon: iconSchema.optional(),
|
|
404
|
-
image: imageSchema.optional(),
|
|
405
|
-
keywords: z.array(z.string()).optional(),
|
|
406
|
-
summary: summaryProviderSchema.optional(),
|
|
407
|
-
analyticsId: z.string().optional(),
|
|
408
|
-
disabled: z.boolean().optional(),
|
|
367
|
+
export const behaviorSchema = z.object({
|
|
368
|
+
action: actionSchema.optional(),
|
|
369
|
+
link: linkSchema.optional(),
|
|
409
370
|
});
|
|
410
371
|
|
|
411
372
|
export const summarySummariserSchema = z.object({
|
|
@@ -504,6 +465,12 @@ export const listLayoutItemSchema = z.object({
|
|
|
504
465
|
status: listLayoutStatusSchema.optional(),
|
|
505
466
|
});
|
|
506
467
|
|
|
468
|
+
export const alertLayoutCallToActionSchema = z.object({
|
|
469
|
+
title: z.string(),
|
|
470
|
+
accessibilityDescription: z.string().optional(),
|
|
471
|
+
behavior: behaviorSchema,
|
|
472
|
+
});
|
|
473
|
+
|
|
507
474
|
export const pollingSchema = z.object({
|
|
508
475
|
url: z.string(),
|
|
509
476
|
interval: z.number(),
|
|
@@ -527,6 +494,15 @@ export const decisionLayoutSchema = z.object({
|
|
|
527
494
|
margin: sizeSchema.optional(),
|
|
528
495
|
});
|
|
529
496
|
|
|
497
|
+
export const alertLayoutSchema = z.object({
|
|
498
|
+
type: z.literal('alert'),
|
|
499
|
+
markdown: z.string(),
|
|
500
|
+
context: contextSchema.optional(),
|
|
501
|
+
control: z.string().optional(),
|
|
502
|
+
margin: sizeSchema.optional(),
|
|
503
|
+
callToAction: alertLayoutCallToActionSchema.optional(),
|
|
504
|
+
});
|
|
505
|
+
|
|
530
506
|
export const listLayoutSchema = z.object({
|
|
531
507
|
type: z.literal('list'),
|
|
532
508
|
items: z.array(listLayoutItemSchema),
|
|
@@ -535,6 +511,46 @@ export const listLayoutSchema = z.object({
|
|
|
535
511
|
margin: sizeSchema.optional(),
|
|
536
512
|
});
|
|
537
513
|
|
|
514
|
+
export const blobSchemaSchema = z.object({
|
|
515
|
+
type: z.literal('blob'),
|
|
516
|
+
promoted: z.boolean().optional(),
|
|
517
|
+
$id: z.string().optional(),
|
|
518
|
+
title: z.string().optional(),
|
|
519
|
+
description: z.string().optional(),
|
|
520
|
+
control: z.string().optional(),
|
|
521
|
+
hidden: z.boolean().optional(),
|
|
522
|
+
icon: iconSchema.optional(),
|
|
523
|
+
image: imageSchema.optional(),
|
|
524
|
+
keywords: z.array(z.string()).optional(),
|
|
525
|
+
summary: summaryProviderSchema.optional(),
|
|
526
|
+
analyticsId: z.string().optional(),
|
|
527
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
528
|
+
validationMessages: z.record(z.string()).optional(),
|
|
529
|
+
alert: alertLayoutSchema.optional(),
|
|
530
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
531
|
+
accepts: z.array(z.string()).optional(),
|
|
532
|
+
maxSize: z.number().optional(),
|
|
533
|
+
source: uploadSourceSchema.optional(),
|
|
534
|
+
disabled: z.boolean().optional(),
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
export const constSchemaSchema = z.object({
|
|
538
|
+
hidden: z.boolean().optional(),
|
|
539
|
+
alert: alertLayoutSchema.optional(),
|
|
540
|
+
control: z.string().optional(),
|
|
541
|
+
promoted: z.boolean().optional(),
|
|
542
|
+
$id: z.string().optional(),
|
|
543
|
+
const: jsonElementSchema,
|
|
544
|
+
title: z.string().optional(),
|
|
545
|
+
description: z.string().optional(),
|
|
546
|
+
icon: iconSchema.optional(),
|
|
547
|
+
image: imageSchema.optional(),
|
|
548
|
+
keywords: z.array(z.string()).optional(),
|
|
549
|
+
summary: summaryProviderSchema.optional(),
|
|
550
|
+
analyticsId: z.string().optional(),
|
|
551
|
+
disabled: z.boolean().optional(),
|
|
552
|
+
});
|
|
553
|
+
|
|
538
554
|
export const searchResponseBodySchema = z.object({
|
|
539
555
|
results: z.array(searchResultSchema),
|
|
540
556
|
});
|