@wise/dynamic-flow-types 3.10.0 → 3.11.1

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 CHANGED
@@ -565,7 +565,8 @@ var decisionLayoutOptionSchema = import_zod.z.lazy(
565
565
  supportingValues: supportingValuesSchema.optional(),
566
566
  inlineAlert: inlineAlertSchema.optional(),
567
567
  media: mediaSchema.optional(),
568
- analyticsId: import_zod.z.string().optional()
568
+ analyticsId: import_zod.z.string().optional(),
569
+ keywords: import_zod.z.array(import_zod.z.string()).optional()
569
570
  })
570
571
  );
571
572
  var sectionLayoutCallToActionSchema = import_zod.z.lazy(
package/build/main.mjs CHANGED
@@ -537,7 +537,8 @@ var decisionLayoutOptionSchema = z.lazy(
537
537
  supportingValues: supportingValuesSchema.optional(),
538
538
  inlineAlert: inlineAlertSchema.optional(),
539
539
  media: mediaSchema.optional(),
540
- analyticsId: z.string().optional()
540
+ analyticsId: z.string().optional(),
541
+ keywords: z.array(z.string()).optional()
541
542
  })
542
543
  );
543
544
  var sectionLayoutCallToActionSchema = z.lazy(
@@ -7,14 +7,11 @@ export type { Polling } from './feature/Polling';
7
7
  export type { PollingOnError } from './feature/PollingOnError';
8
8
  export type { ValidateAsync } from './feature/ValidateAsync';
9
9
  export type { ActionBehavior } from './feature/ActionBehavior';
10
- export type { CopyBehavior } from './feature/CopyBehavior';
11
10
  export type { Behavior } from './feature/Behavior';
11
+ export type { CopyBehavior } from './feature/CopyBehavior';
12
12
  export type { DismissBehavior } from './feature/DismissBehavior';
13
13
  export type { LinkBehavior } from './feature/LinkBehavior';
14
14
  export type { ModalBehavior } from './feature/ModalBehavior';
15
- export type { Toolbar } from './feature/toolbar/Toolbar';
16
- export type { ToolbarButton } from './feature/toolbar/ToolbarButton';
17
- export type { ToolbarItem } from './feature/toolbar/ToolbarItem';
18
15
  export type { LinkHandler } from './feature/LinkHandler';
19
16
  export type { AdditionalInfo } from './misc/AdditionalInfo';
20
17
  export type { Align } from './misc/Align';
@@ -84,6 +81,9 @@ export type { StringSchemaFormat } from './schema/StringSchemaFormat';
84
81
  export type { ActionResponseBody } from './responses/action/ActionResponseBody';
85
82
  export type { ErrorResponseBody } from './responses/error/ErrorResponseBody';
86
83
  export type { ModalResponseBody } from './responses/modal/ModalResponseBody';
84
+ export type { Toolbar } from './feature/toolbar/Toolbar';
85
+ export type { ToolbarButton } from './feature/toolbar/ToolbarButton';
86
+ export type { ToolbarItem } from './feature/toolbar/ToolbarItem';
87
87
  export type { Step } from './step/Step';
88
88
  export type { JsonArray, JsonElement, JsonObject, JsonPrimitive } from './JsonElement';
89
89
  export type Model = JsonElement;
@@ -63,4 +63,8 @@ export type DecisionLayoutOption = {
63
63
  * An optional identifier to be used in analytics tracking.
64
64
  */
65
65
  analyticsId?: string;
66
+ /**
67
+ * Keywords to look for when filtering decisions
68
+ */
69
+ keywords?: string[];
66
70
  };
@@ -17,9 +17,10 @@ export type DecisionOption = {
17
17
  href?: string;
18
18
  icon?: Icon;
19
19
  image?: Image;
20
+ keywords?: string[];
20
21
  media?: Media;
21
- title: string;
22
22
  tag?: string;
23
+ title: string;
23
24
  /** @experimental This feature may be changed in the future without notice. */
24
25
  additionalText?: string;
25
26
  /** @experimental This feature may be changed in the future without notice. */
@@ -1,5 +1,6 @@
1
- import type { Action, Step } from '../next';
2
1
  import type { ReactNode } from 'react';
2
+ import type { Context, Media } from '.';
3
+ import type { Action, Step } from '../next';
3
4
  import { BaseRendererProps, RendererProps } from './RendererProps';
4
5
  export type AnalyticsEventDispatcher = (eventName: string, properties?: Record<string, unknown>) => void;
5
6
  export type LoadingState = 'idle' | 'initial' | 'submitting' | 'refreshing';
@@ -23,6 +24,7 @@ export type StepRendererProps = BaseRendererProps & {
23
24
  external?: {
24
25
  url: string;
25
26
  };
27
+ toolbar?: Toolbar;
26
28
  /**
27
29
  * @deprecated Please use the stepLoadingState instead.
28
30
  */
@@ -41,3 +43,21 @@ export type StepRendererProps = BaseRendererProps & {
41
43
  children: ReactNode;
42
44
  childrenProps: RendererProps[];
43
45
  };
46
+ type Toolbar = {
47
+ type: 'toolbar';
48
+ control?: string;
49
+ items: ToolbarItem[];
50
+ };
51
+ type ToolbarItem = ToolbarButton;
52
+ type ToolbarButton = {
53
+ type: 'toolbar-button';
54
+ control?: string;
55
+ title: string;
56
+ accessibilityDescription?: string;
57
+ media?: Media;
58
+ context?: Context;
59
+ disabled: boolean;
60
+ analyticsId?: string;
61
+ onClick?: () => void;
62
+ };
63
+ export {};
@@ -1124,6 +1124,7 @@ export const decisionLayoutOptionSchema: z.ZodSchema<DecisionLayoutOption> = z.l
1124
1124
  inlineAlert: inlineAlertSchema.optional(),
1125
1125
  media: mediaSchema.optional(),
1126
1126
  analyticsId: z.string().optional(),
1127
+ keywords: z.array(z.string()).optional(),
1127
1128
  }),
1128
1129
  );
1129
1130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "3.10.0",
3
+ "version": "3.11.1",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {