@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.
@@ -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 listLayoutSchema = z.object({
476
- type: z.literal('list'),
477
- items: z.array(listLayoutItemSchema),
478
- title: z.string().optional(),
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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {