@wise/dynamic-flow-types 2.31.0 → 2.32.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 +35 -25
- package/build/main.min.js +1 -1
- package/build/main.mjs +35 -25
- package/build/next/index.d.ts +1 -0
- package/build/next/layout/ListLayout.d.ts +11 -6
- package/build/next/layout/ListLayoutCallToAction.d.ts +18 -0
- package/build/next/layout/ListLayoutItem.d.ts +26 -8
- package/build/next/layout/ListLayoutStatus.d.ts +2 -2
- package/build/renderers/DecisionRendererProps.d.ts +1 -0
- package/build/renderers/Image.d.ts +22 -1
- package/build/renderers/ListRendererProps.d.ts +33 -0
- package/build/renderers/RendererProps.d.ts +3 -2
- package/build/renderers/SearchRendererProps.d.ts +5 -2
- package/build/renderers/index.d.ts +1 -0
- package/build/spec/LayoutComponent.d.ts +16 -1
- package/build/zod/schemas.d.ts +1331 -923
- package/build/zod/schemas.ts +19 -8
- package/package.json +1 -1
package/build/zod/schemas.ts
CHANGED
|
@@ -381,10 +381,14 @@ export const linkHandlerSchema = z.object({
|
|
|
381
381
|
});
|
|
382
382
|
|
|
383
383
|
export const listLayoutItemSchema = z.object({
|
|
384
|
-
title: z.string(),
|
|
385
384
|
description: z.string().optional(),
|
|
386
|
-
icon: iconSchema,
|
|
387
385
|
status: listLayoutStatusSchema.optional(),
|
|
386
|
+
icon: iconSchema.optional(),
|
|
387
|
+
image: imageSchema.optional(),
|
|
388
|
+
title: z.string(),
|
|
389
|
+
subtitle: z.string().optional(),
|
|
390
|
+
value: z.string().optional(),
|
|
391
|
+
subvalue: z.string().optional(),
|
|
388
392
|
});
|
|
389
393
|
|
|
390
394
|
export const decisionLayoutOptionSchema = z.object({
|
|
@@ -472,12 +476,10 @@ export const navigationSchema = z.object({
|
|
|
472
476
|
stackBehavior: navigationStackBehaviorSchema.optional(),
|
|
473
477
|
});
|
|
474
478
|
|
|
475
|
-
export const
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
control: z.string().optional(),
|
|
480
|
-
margin: sizeSchema.optional(),
|
|
479
|
+
export const listLayoutCallToActionSchema = z.object({
|
|
480
|
+
title: z.string(),
|
|
481
|
+
accessibilityDescription: z.string().optional(),
|
|
482
|
+
behavior: behaviorSchema,
|
|
481
483
|
});
|
|
482
484
|
|
|
483
485
|
export const alertLayoutCallToActionSchema = z.object({
|
|
@@ -515,6 +517,15 @@ export const statusListLayoutItemSchema = z.object({
|
|
|
515
517
|
callToAction: itemCallToActionSchema.optional(),
|
|
516
518
|
});
|
|
517
519
|
|
|
520
|
+
export const listLayoutSchema = z.object({
|
|
521
|
+
type: z.literal('list'),
|
|
522
|
+
title: z.string().optional(),
|
|
523
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
524
|
+
items: z.array(listLayoutItemSchema),
|
|
525
|
+
control: z.string().optional(),
|
|
526
|
+
margin: sizeSchema.optional(),
|
|
527
|
+
});
|
|
528
|
+
|
|
518
529
|
export const alertLayoutSchema = z.object({
|
|
519
530
|
type: z.literal('alert'),
|
|
520
531
|
markdown: z.string(),
|