@wise/dynamic-flow-types 3.15.0 → 3.16.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 (60) hide show
  1. package/build/main.js +88 -43
  2. package/build/main.mjs +88 -43
  3. package/build/next/feature/SuggestionsValue.d.ts +5 -0
  4. package/build/next/feature/toolbar/Toolbar.d.ts +4 -0
  5. package/build/next/feature/toolbar/ToolbarButton.d.ts +4 -0
  6. package/build/next/layout/AlertLayout.d.ts +4 -0
  7. package/build/next/layout/BoxLayout.d.ts +4 -0
  8. package/build/next/layout/ButtonLayout.d.ts +4 -0
  9. package/build/next/layout/ColumnsLayout.d.ts +4 -0
  10. package/build/next/layout/DecisionLayout.d.ts +4 -0
  11. package/build/next/layout/DecisionLayoutOption.d.ts +6 -1
  12. package/build/next/layout/DividerLayout.d.ts +4 -0
  13. package/build/next/layout/FormLayout.d.ts +4 -0
  14. package/build/next/layout/HeadingLayout.d.ts +4 -0
  15. package/build/next/layout/ImageLayout.d.ts +4 -0
  16. package/build/next/layout/InfoLayout.d.ts +4 -0
  17. package/build/next/layout/InstructionsLayout.d.ts +4 -0
  18. package/build/next/layout/InstructionsLayoutItem.d.ts +5 -0
  19. package/build/next/layout/ListLayout.d.ts +4 -0
  20. package/build/next/layout/ListLayoutItem.d.ts +10 -0
  21. package/build/next/layout/LoadingIndicatorLayout.d.ts +4 -0
  22. package/build/next/layout/MarkdownLayout.d.ts +4 -0
  23. package/build/next/layout/ModalLayout.d.ts +4 -0
  24. package/build/next/layout/ParagraphLayout.d.ts +4 -0
  25. package/build/next/layout/ProgressLayout.d.ts +4 -0
  26. package/build/next/layout/ReviewLayout.d.ts +4 -0
  27. package/build/next/layout/ReviewLayoutField.d.ts +5 -0
  28. package/build/next/layout/SearchLayout.d.ts +4 -0
  29. package/build/next/layout/SectionLayout.d.ts +4 -0
  30. package/build/next/layout/StatusListLayout.d.ts +4 -0
  31. package/build/next/layout/StatusListLayoutItem.d.ts +5 -0
  32. package/build/next/layout/TabsLayout.d.ts +4 -0
  33. package/build/next/layout/TabsLayoutTab.d.ts +5 -0
  34. package/build/next/schema/AllOfSchema.d.ts +4 -0
  35. package/build/next/schema/ArraySchemaList.d.ts +4 -0
  36. package/build/next/schema/ArraySchemaTuple.d.ts +4 -0
  37. package/build/next/schema/BlobSchema.d.ts +4 -0
  38. package/build/next/schema/BooleanSchema.d.ts +4 -0
  39. package/build/next/schema/ConstSchema.d.ts +4 -0
  40. package/build/next/schema/IntegerSchema.d.ts +4 -0
  41. package/build/next/schema/NumberSchema.d.ts +4 -0
  42. package/build/next/schema/ObjectSchema.d.ts +4 -0
  43. package/build/next/schema/OneOfSchema.d.ts +4 -0
  44. package/build/next/schema/StringSchema.d.ts +4 -0
  45. package/build/next/step/Step.d.ts +4 -0
  46. package/build/renderers/DecisionRendererProps.d.ts +2 -0
  47. package/build/renderers/InstructionsRendererProps.d.ts +2 -0
  48. package/build/renderers/ListRendererProps.d.ts +3 -0
  49. package/build/renderers/RendererProps.d.ts +1 -0
  50. package/build/renderers/RepeatableRendererProps.d.ts +1 -0
  51. package/build/renderers/ReviewRendererProps.d.ts +2 -0
  52. package/build/renderers/SelectInputRendererProps.d.ts +1 -0
  53. package/build/renderers/StatusListRendererProps.d.ts +2 -0
  54. package/build/renderers/StepRendererProps.d.ts +3 -0
  55. package/build/renderers/Suggestions.d.ts +2 -0
  56. package/build/renderers/TabsRendererProps.d.ts +2 -0
  57. package/build/zod/schemas.d.ts +49 -0
  58. package/build/zod/schemas.ts +570 -526
  59. package/package.json +5 -3
  60. /package/build/{zod/json.type.d.ts → json.type.d.ts} +0 -0
@@ -45,4 +45,8 @@ export type ProgressLayout = {
45
45
  * An optional identifier to be used in analytics tracking.
46
46
  */
47
47
  analyticsId?: string;
48
+ /**
49
+ * An optional list of identifiers used to configure renderers.
50
+ */
51
+ tags?: string[];
48
52
  };
@@ -42,4 +42,8 @@ export type ReviewLayout = {
42
42
  * An optional identifier to be used in analytics tracking.
43
43
  */
44
44
  analyticsId?: string;
45
+ /**
46
+ * An optional list of identifiers used to configure renderers.
47
+ */
48
+ tags?: string[];
45
49
  };
@@ -30,6 +30,7 @@ export type ReviewLayoutField = {
30
30
  help?: Help;
31
31
  /**
32
32
  * An optional identifier to be used in custom renderers.
33
+ * @deprecated Please use 'tags' instead
33
34
  */
34
35
  tag?: string;
35
36
  /**
@@ -60,4 +61,8 @@ export type ReviewLayoutField = {
60
61
  * An optional identifier to be used in analytics tracking.
61
62
  */
62
63
  analyticsId?: string;
64
+ /**
65
+ * An optional list of identifiers used to configure renderers.
66
+ */
67
+ tags?: string[];
63
68
  };
@@ -42,4 +42,8 @@ export type SearchLayout = {
42
42
  * An optional identifier to be used in analytics tracking.
43
43
  */
44
44
  analyticsId?: string;
45
+ /**
46
+ * An optional list of identifiers used to configure renderers.
47
+ */
48
+ tags?: string[];
45
49
  };
@@ -33,4 +33,8 @@ export type SectionLayout = {
33
33
  * An optional identifier to be used in analytics tracking.
34
34
  */
35
35
  analyticsId?: string;
36
+ /**
37
+ * An optional list of identifiers used to configure renderers.
38
+ */
39
+ tags?: string[];
36
40
  };
@@ -28,4 +28,8 @@ export type StatusListLayout = {
28
28
  * An optional identifier to be used in analytics tracking.
29
29
  */
30
30
  analyticsId?: string;
31
+ /**
32
+ * An optional list of identifiers used to configure renderers.
33
+ */
34
+ tags?: string[];
31
35
  };
@@ -27,10 +27,15 @@ export type StatusListLayoutItem = {
27
27
  callToAction?: ItemCallToAction;
28
28
  /**
29
29
  * An optional identifier to be used in custom renderers.
30
+ * @deprecated Please use 'tags' instead
30
31
  */
31
32
  tag?: string;
32
33
  /**
33
34
  * An optional identifier to be used in analytics tracking.
34
35
  */
35
36
  analyticsId?: string;
37
+ /**
38
+ * An optional list of identifiers used to configure renderers.
39
+ */
40
+ tags?: string[];
36
41
  };
@@ -24,4 +24,8 @@ export type TabsLayout = {
24
24
  * An optional identifier to be used in analytics tracking.
25
25
  */
26
26
  analyticsId?: string;
27
+ /**
28
+ * An optional list of identifiers used to configure renderers.
29
+ */
30
+ tags?: string[];
27
31
  };
@@ -13,10 +13,15 @@ export type TabsLayoutTab = {
13
13
  components: Layout[];
14
14
  /**
15
15
  * An optional identifier to be used in custom renderers.
16
+ * @deprecated Please use 'tags' instead
16
17
  */
17
18
  tag?: string;
18
19
  /**
19
20
  * An optional identifier to be used in analytics tracking.
20
21
  */
21
22
  analyticsId?: string;
23
+ /**
24
+ * An optional list of identifiers used to configure renderers.
25
+ */
26
+ tags?: string[];
22
27
  };
@@ -78,4 +78,8 @@ export type AllOfSchema = {
78
78
  * A media object which the client can use to represent this entity.
79
79
  */
80
80
  media?: Media;
81
+ /**
82
+ * An optional list of identifiers used to configure renderers.
83
+ */
84
+ tags?: string[];
81
85
  };
@@ -117,4 +117,8 @@ export type ArraySchemaList = {
117
117
  * A media object which the client can use to represent this entity.
118
118
  */
119
119
  media?: Media;
120
+ /**
121
+ * An optional list of identifiers used to configure renderers.
122
+ */
123
+ tags?: string[];
120
124
  };
@@ -86,4 +86,8 @@ export type ArraySchemaTuple = {
86
86
  * A media object which the client can use to represent this entity.
87
87
  */
88
88
  media?: Media;
89
+ /**
90
+ * An optional list of identifiers used to configure renderers.
91
+ */
92
+ tags?: string[];
89
93
  };
@@ -106,4 +106,8 @@ export type BlobSchema = {
106
106
  * A media object which the client can use to represent this entity.
107
107
  */
108
108
  media?: Media;
109
+ /**
110
+ * An optional list of identifiers used to configure renderers.
111
+ */
112
+ tags?: string[];
109
113
  };
@@ -139,4 +139,8 @@ export type BooleanSchema = {
139
139
  * A media object which the client can use to represent this entity.
140
140
  */
141
141
  media?: Media;
142
+ /**
143
+ * An optional list of identifiers used to configure renderers.
144
+ */
145
+ tags?: string[];
142
146
  };
@@ -19,6 +19,10 @@ export type ConstSchema = {
19
19
  */
20
20
  control?: string;
21
21
  /**
22
+ * An optional list of identifiers used to configure renderers.
23
+ */
24
+ tags?: string[];
25
+ /**
22
26
  * @deprecated Please use nested oneOf schemas instead.
23
27
  */
24
28
  promoted?: boolean;
@@ -165,4 +165,8 @@ export type IntegerSchema = {
165
165
  * A media object which the client can use to represent this entity.
166
166
  */
167
167
  media?: Media;
168
+ /**
169
+ * An optional list of identifiers used to configure renderers.
170
+ */
171
+ tags?: string[];
168
172
  };
@@ -166,4 +166,8 @@ export type NumberSchema = {
166
166
  * A media object which the client can use to represent this entity.
167
167
  */
168
168
  media?: Media;
169
+ /**
170
+ * An optional list of identifiers used to configure renderers.
171
+ */
172
+ tags?: string[];
169
173
  };
@@ -98,4 +98,8 @@ export type ObjectSchema = {
98
98
  * A media object which the client can use to represent this entity.
99
99
  */
100
100
  media?: Media;
101
+ /**
102
+ * An optional list of identifiers used to configure renderers.
103
+ */
104
+ tags?: string[];
101
105
  };
@@ -219,4 +219,8 @@ export type OneOfSchema = {
219
219
  * A media object which the client can use to represent this entity.
220
220
  */
221
221
  media?: Media;
222
+ /**
223
+ * An optional list of identifiers used to configure renderers.
224
+ */
225
+ tags?: string[];
222
226
  };
@@ -228,4 +228,8 @@ export type StringSchema = {
228
228
  * Media can be shown inside text input fields.
229
229
  */
230
230
  media?: Media;
231
+ /**
232
+ * An optional list of identifiers used to configure renderers.
233
+ */
234
+ tags?: string[];
231
235
  };
@@ -104,4 +104,8 @@ export type Step = {
104
104
  * See [com.wise.dynamicflow.feature.toolbar.Toolbar].
105
105
  */
106
106
  toolbar?: Toolbar;
107
+ /**
108
+ * An optional list of identifiers used to configure renderers.
109
+ */
110
+ tags?: string[];
107
111
  };
@@ -19,7 +19,9 @@ export type DecisionOption = {
19
19
  image?: Image;
20
20
  keywords?: string[];
21
21
  media?: Media;
22
+ /** @deprecated Please use `tags` instead. */
22
23
  tag?: string;
24
+ tags?: string[];
23
25
  title: string;
24
26
  /** @experimental This feature may be changed in the future without notice. */
25
27
  additionalText?: string;
@@ -10,5 +10,7 @@ export type InstructionsRendererProps = BaseRendererProps & {
10
10
  export type InstructionItem = {
11
11
  context: Context;
12
12
  text: string;
13
+ /** @deprecated Please use `tags` instead. */
13
14
  tag?: string;
15
+ tags?: string[];
14
16
  };
@@ -26,11 +26,14 @@ export type ListItem = {
26
26
  value?: string;
27
27
  /** @deprecated Use `supportedValues` instead. */
28
28
  subvalue?: string;
29
+ /** @deprecated Please use `tags` instead. */
29
30
  tag?: string;
31
+ tags?: string[];
30
32
  /** @experimental This feature may be changed in the future without notice. */
31
33
  supportingValues?: SupportingValues;
32
34
  /** @experimental This feature may be changed in the future without notice. */
33
35
  additionalInfo?: AdditionalInfo;
34
36
  /** @experimental This feature may be changed in the future without notice. */
35
37
  inlineAlert?: InlineAlert;
38
+ callToAction?: CallToAction;
36
39
  };
@@ -54,4 +54,5 @@ export type BaseRendererProps = {
54
54
  httpClient: typeof fetch;
55
55
  trackEvent: AnalyticsEventDispatcher;
56
56
  stepLoadingState: LoadingState;
57
+ tags?: string[];
57
58
  };
@@ -34,4 +34,5 @@ export type RepeatableItemRendererProps = {
34
34
  image?: Image;
35
35
  media?: Media;
36
36
  title?: string;
37
+ tags?: string[];
37
38
  };
@@ -18,7 +18,9 @@ export type ReviewField = {
18
18
  label: string;
19
19
  value: string;
20
20
  rawValue?: string;
21
+ /** @deprecated Please use `tags` instead. */
21
22
  tag?: string;
23
+ tags?: string[];
22
24
  /** @experimental This feature may be changed in the future without notice. */
23
25
  additionalInfo?: AdditionalInfo;
24
26
  /** @experimental This feature may be changed in the future without notice. */
@@ -21,4 +21,5 @@ export type SelectInputRendererOption = {
21
21
  media?: Media;
22
22
  keywords: string[];
23
23
  title: string;
24
+ tags?: string[];
24
25
  };
@@ -15,6 +15,8 @@ export type StatusListItem = {
15
15
  status?: 'done' | 'not-done' | 'pending';
16
16
  title: string;
17
17
  callToAction?: CallToAction;
18
+ /** @deprecated Please use `tags` instead. */
18
19
  tag?: string;
20
+ tags?: string[];
19
21
  };
20
22
  export type StatusListItemStatus = 'done' | 'not-done' | 'pending';
@@ -32,6 +32,7 @@ export type StepRendererProps = BaseRendererProps & {
32
32
  */
33
33
  loadingState: LoadingState;
34
34
  title?: string;
35
+ tags?: string[];
35
36
  /**
36
37
  * @experimental Please do not use this property. It is only here to support a legacy camera step.
37
38
  * @deprecated Please use childrenProps instead.
@@ -49,6 +50,7 @@ type Toolbar = {
49
50
  type: 'toolbar';
50
51
  control?: string;
51
52
  items: ToolbarItem[];
53
+ tags?: string[];
52
54
  };
53
55
  type ToolbarItem = ToolbarButton;
54
56
  type ToolbarButton = {
@@ -60,6 +62,7 @@ type ToolbarButton = {
60
62
  context?: Context;
61
63
  disabled: boolean;
62
64
  analyticsId?: string;
65
+ tags?: string[];
63
66
  onClick?: () => void;
64
67
  };
65
68
  export {};
@@ -11,5 +11,7 @@ export type SuggestionValue = {
11
11
  icon?: Icon;
12
12
  image?: Image;
13
13
  media?: Media;
14
+ /** @deprecated Please use `tags` instead. */
14
15
  tag?: string;
16
+ tags?: string[];
15
17
  };
@@ -11,5 +11,7 @@ export type Tab = {
11
11
  title: string;
12
12
  children: ReactNode;
13
13
  childrenProps: RendererProps[];
14
+ /** @deprecated Please use `tags` instead. */
14
15
  tag?: string;
16
+ tags?: string[];
15
17
  };