@wise/dynamic-flow-types 3.6.3 → 3.7.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.
Files changed (43) hide show
  1. package/build/main.js +78 -28
  2. package/build/main.mjs +78 -28
  3. package/build/next/feature/SuggestionsValue.d.ts +4 -0
  4. package/build/next/layout/AlertLayout.d.ts +4 -0
  5. package/build/next/layout/BoxLayout.d.ts +4 -0
  6. package/build/next/layout/ButtonLayout.d.ts +4 -0
  7. package/build/next/layout/ColumnsLayout.d.ts +4 -0
  8. package/build/next/layout/DecisionLayout.d.ts +4 -0
  9. package/build/next/layout/DecisionLayoutOption.d.ts +4 -0
  10. package/build/next/layout/DividerLayout.d.ts +4 -0
  11. package/build/next/layout/FormLayout.d.ts +4 -0
  12. package/build/next/layout/HeadingLayout.d.ts +4 -0
  13. package/build/next/layout/ImageLayout.d.ts +4 -0
  14. package/build/next/layout/InfoLayout.d.ts +4 -0
  15. package/build/next/layout/InstructionsLayout.d.ts +4 -0
  16. package/build/next/layout/InstructionsLayoutItem.d.ts +4 -0
  17. package/build/next/layout/ListLayout.d.ts +4 -0
  18. package/build/next/layout/ListLayoutItem.d.ts +4 -0
  19. package/build/next/layout/LoadingIndicatorLayout.d.ts +4 -0
  20. package/build/next/layout/MarkdownLayout.d.ts +4 -0
  21. package/build/next/layout/ModalLayout.d.ts +4 -0
  22. package/build/next/layout/ParagraphLayout.d.ts +4 -0
  23. package/build/next/layout/ReviewLayout.d.ts +4 -0
  24. package/build/next/layout/ReviewLayoutField.d.ts +4 -0
  25. package/build/next/layout/SearchLayout.d.ts +4 -0
  26. package/build/next/layout/SectionLayout.d.ts +4 -0
  27. package/build/next/layout/StatusListLayout.d.ts +4 -0
  28. package/build/next/layout/StatusListLayoutItem.d.ts +4 -0
  29. package/build/next/layout/TabsLayout.d.ts +4 -0
  30. package/build/next/layout/TabsLayoutTab.d.ts +4 -0
  31. package/build/next/misc/media/AvatarContent.d.ts +6 -0
  32. package/build/next/misc/media/AvatarTextContent.d.ts +17 -0
  33. package/build/next/misc/media/AvatarUriContent.d.ts +17 -0
  34. package/build/next/misc/media/Media.d.ts +6 -0
  35. package/build/next/misc/media/MediaAvatar.d.ts +18 -0
  36. package/build/next/misc/media/MediaImage.d.ts +17 -0
  37. package/build/renderers/DecisionRendererProps.d.ts +1 -0
  38. package/build/renderers/ListRendererProps.d.ts +1 -0
  39. package/build/renderers/RendererProps.d.ts +1 -0
  40. package/build/renderers/ReviewRendererProps.d.ts +1 -0
  41. package/build/zod/schemas.d.ts +228 -0
  42. package/build/zod/schemas.ts +56 -0
  43. package/package.json +1 -1
@@ -88,6 +88,7 @@ export const headingLayoutSchema = z.object({
88
88
  align: alignSchema.optional(),
89
89
  control: z.string().optional(),
90
90
  margin: sizeSchema.optional(),
91
+ analyticsId: z.string().optional(),
91
92
  });
92
93
 
93
94
  export const columnsLayoutBiasSchema = z.union([
@@ -113,6 +114,7 @@ export const markdownLayoutSchema = z.object({
113
114
  align: alignSchema.optional(),
114
115
  control: z.string().optional(),
115
116
  margin: sizeSchema.optional(),
117
+ analyticsId: z.string().optional(),
116
118
  });
117
119
 
118
120
  export const imageLayoutSchema = z.object({
@@ -125,6 +127,7 @@ export const imageLayoutSchema = z.object({
125
127
  control: z.string().optional(),
126
128
  margin: sizeSchema.optional(),
127
129
  align: alignSchema.optional(),
130
+ analyticsId: z.string().optional(),
128
131
  });
129
132
 
130
133
  export const modalLayoutTriggerSchema = z.object({
@@ -142,6 +145,7 @@ export const loadingIndicatorLayoutSchema = z.object({
142
145
  size: sizeSchema.optional(),
143
146
  control: z.string().optional(),
144
147
  margin: sizeSchema.optional(),
148
+ analyticsId: z.string().optional(),
145
149
  });
146
150
 
147
151
  export const helpSchema = z.object({
@@ -152,6 +156,7 @@ export const dividerLayoutSchema = z.object({
152
156
  type: z.literal('divider'),
153
157
  control: z.string().optional(),
154
158
  margin: sizeSchema.optional(),
159
+ analyticsId: z.string().optional(),
155
160
  });
156
161
 
157
162
  export const paragraphLayoutSchema = z.object({
@@ -160,6 +165,7 @@ export const paragraphLayoutSchema = z.object({
160
165
  align: alignSchema.optional(),
161
166
  control: z.string().optional(),
162
167
  margin: sizeSchema.optional(),
168
+ analyticsId: z.string().optional(),
163
169
  });
164
170
 
165
171
  export const httpMethodSchema = z.union([
@@ -343,12 +349,31 @@ export const iconNamedSchema = z.object({
343
349
  name: z.string(),
344
350
  });
345
351
 
352
+ export const mediaImageSchema = z.object({
353
+ type: z.literal('image'),
354
+ uri: z.string(),
355
+ accessibilityDescription: z.string().optional(),
356
+ });
357
+
358
+ export const avatarTextContentSchema = z.object({
359
+ type: z.literal('text'),
360
+ text: z.string(),
361
+ badgeUri: z.string().optional(),
362
+ });
363
+
364
+ export const avatarUriContentSchema = z.object({
365
+ type: z.literal('uri'),
366
+ uri: z.string(),
367
+ badgeUri: z.string().optional(),
368
+ });
369
+
346
370
  export const infoLayoutSchema = z.object({
347
371
  type: z.literal('info'),
348
372
  markdown: z.string(),
349
373
  align: alignSchema.optional(),
350
374
  control: z.string().optional(),
351
375
  margin: sizeSchema.optional(),
376
+ analyticsId: z.string().optional(),
352
377
  });
353
378
 
354
379
  export const formLayoutSchema = z.object({
@@ -357,6 +382,7 @@ export const formLayoutSchema = z.object({
357
382
  schemaId: z.string(),
358
383
  control: z.string().optional(),
359
384
  margin: sizeSchema.optional(),
385
+ analyticsId: z.string().optional(),
360
386
  });
361
387
 
362
388
  export const actionSchema = z.object({
@@ -386,6 +412,7 @@ export const instructionsLayoutItemSchema = z.object({
386
412
  text: z.string(),
387
413
  context: contextSchema,
388
414
  tag: z.string().optional(),
415
+ analyticsId: z.string().optional(),
389
416
  });
390
417
 
391
418
  export const searchLayoutSchema = z.object({
@@ -397,6 +424,7 @@ export const searchLayoutSchema = z.object({
397
424
  emptyMessage: z.string().optional(),
398
425
  control: z.string().optional(),
399
426
  margin: sizeSchema.optional(),
427
+ analyticsId: z.string().optional(),
400
428
  });
401
429
 
402
430
  export const summarySummariserSchema = z.object({
@@ -426,6 +454,7 @@ export const suggestionsValueSchema = z.object({
426
454
  icon: iconSchema.optional(),
427
455
  image: imageSchema.optional(),
428
456
  tag: z.string().optional(),
457
+ analyticsId: z.string().optional(),
429
458
  });
430
459
 
431
460
  export const actionBehaviorSchema = z.object({
@@ -459,12 +488,15 @@ export const searchResultSearchSchema = z.object({
459
488
  value: searchSearchRequestSchema,
460
489
  });
461
490
 
491
+ export const avatarContentSchema = z.union([avatarTextContentSchema, avatarUriContentSchema]);
492
+
462
493
  export const instructionsLayoutSchema = z.object({
463
494
  type: z.literal('instructions'),
464
495
  title: z.string().optional(),
465
496
  items: z.array(instructionsLayoutItemSchema),
466
497
  control: z.string().optional(),
467
498
  margin: sizeSchema.optional(),
499
+ analyticsId: z.string().optional(),
468
500
  });
469
501
 
470
502
  export const navigationSchema = z.object({
@@ -481,6 +513,14 @@ export const searchResponseBodySchema = z.object({
481
513
  results: z.array(searchResultSchema),
482
514
  });
483
515
 
516
+ export const mediaAvatarSchema = z.object({
517
+ type: z.literal('avatar'),
518
+ content: z.array(avatarContentSchema),
519
+ accessibilityDescription: z.string().optional(),
520
+ });
521
+
522
+ export const mediaSchema = z.union([mediaAvatarSchema, mediaImageSchema]);
523
+
484
524
  export const decisionLayoutOptionSchema: z.ZodSchema<DecisionLayoutOption> = z.lazy(() =>
485
525
  z.object({
486
526
  action: actionSchema.optional(),
@@ -494,6 +534,7 @@ export const decisionLayoutOptionSchema: z.ZodSchema<DecisionLayoutOption> = z.l
494
534
  additionalText: z.string().optional(),
495
535
  supportingValues: supportingValuesSchema.optional(),
496
536
  inlineAlert: inlineAlertSchema.optional(),
537
+ analyticsId: z.string().optional(),
497
538
  }),
498
539
  );
499
540
 
@@ -549,6 +590,7 @@ export const alertLayoutSchema: z.ZodSchema<AlertLayout> = z.lazy(() =>
549
590
  control: z.string().optional(),
550
591
  margin: sizeSchema.optional(),
551
592
  callToAction: alertLayoutCallToActionSchema.optional(),
593
+ analyticsId: z.string().optional(),
552
594
  }),
553
595
  );
554
596
 
@@ -568,6 +610,7 @@ export const listLayoutSchema: z.ZodSchema<ListLayout> = z.lazy(() =>
568
610
  items: z.array(listLayoutItemSchema),
569
611
  control: z.string().optional(),
570
612
  margin: sizeSchema.optional(),
613
+ analyticsId: z.string().optional(),
571
614
  }),
572
615
  );
573
616
 
@@ -593,6 +636,7 @@ export const listLayoutItemSchema: z.ZodSchema<ListLayoutItem> = z.lazy(() =>
593
636
  supportingValues: supportingValuesSchema.optional(),
594
637
  inlineAlert: inlineAlertSchema.optional(),
595
638
  description: z.string().optional(),
639
+ analyticsId: z.string().optional(),
596
640
  }),
597
641
  );
598
642
 
@@ -611,6 +655,7 @@ export const statusListLayoutSchema: z.ZodSchema<StatusListLayout> = z.lazy(() =
611
655
  title: z.string().optional(),
612
656
  control: z.string().optional(),
613
657
  margin: sizeSchema.optional(),
658
+ analyticsId: z.string().optional(),
614
659
  }),
615
660
  );
616
661
 
@@ -622,6 +667,7 @@ export const statusListLayoutItemSchema: z.ZodSchema<StatusListLayoutItem> = z.l
622
667
  status: statusListLayoutStatusSchema.optional(),
623
668
  callToAction: itemCallToActionSchema.optional(),
624
669
  tag: z.string().optional(),
670
+ analyticsId: z.string().optional(),
625
671
  }),
626
672
  );
627
673
 
@@ -630,6 +676,7 @@ export const tabsLayoutTabSchema: z.ZodSchema<TabsLayoutTab> = z.lazy(() =>
630
676
  title: z.string(),
631
677
  components: z.array(layoutSchema),
632
678
  tag: z.string().optional(),
679
+ analyticsId: z.string().optional(),
633
680
  }),
634
681
  );
635
682
 
@@ -641,6 +688,7 @@ export const boxLayoutSchema: z.ZodSchema<BoxLayout> = z.lazy(() =>
641
688
  border: z.boolean().optional(),
642
689
  control: z.string().optional(),
643
690
  margin: sizeSchema.optional(),
691
+ analyticsId: z.string().optional(),
644
692
  }),
645
693
  );
646
694
 
@@ -652,6 +700,7 @@ export const sectionLayoutSchema: z.ZodSchema<SectionLayout> = z.lazy(() =>
652
700
  callToAction: sectionLayoutCallToActionSchema.optional(),
653
701
  control: z.string().optional(),
654
702
  margin: sizeSchema.optional(),
703
+ analyticsId: z.string().optional(),
655
704
  }),
656
705
  );
657
706
 
@@ -665,6 +714,7 @@ export const reviewLayoutSchema: z.ZodSchema<ReviewLayout> = z.lazy(() =>
665
714
  callToAction: reviewLayoutCallToActionSchema.optional(),
666
715
  control: z.string().optional(),
667
716
  margin: sizeSchema.optional(),
717
+ analyticsId: z.string().optional(),
668
718
  }),
669
719
  );
670
720
 
@@ -680,6 +730,7 @@ export const reviewLayoutFieldSchema: z.ZodSchema<ReviewLayoutField> = z.lazy(()
680
730
  additionalInfo: additionalInfoSchema.optional(),
681
731
  inlineAlert: inlineAlertSchema.optional(),
682
732
  callToAction: reviewLayoutCallToActionSchema.optional(),
733
+ analyticsId: z.string().optional(),
683
734
  }),
684
735
  );
685
736
 
@@ -704,6 +755,7 @@ export const buttonLayoutSchema: z.ZodSchema<ButtonLayout> = z.lazy(() =>
704
755
  pinOrder: z.number().optional(),
705
756
  control: z.string().optional(),
706
757
  margin: sizeSchema.optional(),
758
+ analyticsId: z.string().optional(),
707
759
  }),
708
760
  );
709
761
 
@@ -722,6 +774,7 @@ export const decisionLayoutSchema: z.ZodSchema<DecisionLayout> = z.lazy(() =>
722
774
  options: z.array(decisionLayoutOptionSchema),
723
775
  control: z.string().optional(),
724
776
  margin: sizeSchema.optional(),
777
+ analyticsId: z.string().optional(),
725
778
  }),
726
779
  );
727
780
 
@@ -741,6 +794,7 @@ export const columnsLayoutSchema: z.ZodSchema<ColumnsLayout> = z.lazy(() =>
741
794
  bias: columnsLayoutBiasSchema.optional(),
742
795
  control: z.string().optional(),
743
796
  margin: sizeSchema.optional(),
797
+ analyticsId: z.string().optional(),
744
798
  }),
745
799
  );
746
800
 
@@ -751,6 +805,7 @@ export const modalLayoutSchema: z.ZodSchema<ModalLayout> = z.lazy(() =>
751
805
  margin: sizeSchema.optional(),
752
806
  trigger: modalLayoutTriggerSchema,
753
807
  content: modalLayoutContentSchema,
808
+ analyticsId: z.string().optional(),
754
809
  }),
755
810
  );
756
811
 
@@ -760,6 +815,7 @@ export const tabsLayoutSchema: z.ZodSchema<TabsLayout> = z.lazy(() =>
760
815
  tabs: z.array(tabsLayoutTabSchema),
761
816
  control: z.string().optional(),
762
817
  margin: sizeSchema.optional(),
818
+ analyticsId: z.string().optional(),
763
819
  }),
764
820
  );
765
821
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "3.6.3",
3
+ "version": "3.7.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {