@wise/dynamic-flow-client 3.14.0 → 3.15.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.
@@ -62,6 +62,7 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
62
62
  disabled: boolean;
63
63
  displayPattern: null;
64
64
  id: null;
65
+ invalid: boolean;
65
66
  label: string;
66
67
  max: null;
67
68
  maxDate: null;
@@ -113,6 +114,7 @@ type FormControlProps = {
113
114
  disabled?: boolean;
114
115
  displayPattern?: string;
115
116
  id: string;
117
+ invalid?: boolean;
116
118
  label?: string;
117
119
  description?: string;
118
120
  max?: number;
@@ -23,6 +23,7 @@ export type SchemaFormControlProps = {
23
23
  onSearchChange?: (searchValue: string) => void;
24
24
  disabled?: boolean;
25
25
  describedBy?: string | undefined;
26
+ invalid?: boolean;
26
27
  required?: boolean;
27
28
  };
28
29
  export default SchemaFormControl;
@@ -3,6 +3,7 @@ import type { LayoutComponent } from '../types';
3
3
  export type DecisionComponent = LayoutComponent & {
4
4
  type: 'decision';
5
5
  options: DecisionOption[];
6
+ title?: string;
6
7
  };
7
8
  export type DecisionOption = {
8
9
  description?: string;
@@ -12,4 +13,4 @@ export type DecisionOption = {
12
13
  title: string;
13
14
  onClick: () => void;
14
15
  };
15
- export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, 'uid' | 'control' | 'margin' | 'options'>) => DecisionComponent;
16
+ export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, 'uid' | 'control' | 'margin' | 'options' | 'title'>) => DecisionComponent;
@@ -1,3 +1,3 @@
1
1
  import type { DecisionLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps } from '../schema/types';
3
- export declare const decisionLayoutToComponent: (uid: string, { control, margin, options }: DecisionLayout, { onAction, step }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
3
+ export declare const decisionLayoutToComponent: (uid: string, { control, margin, options, title }: DecisionLayout, { onAction, step }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
@@ -1,3 +1,3 @@
1
1
  import type { DecisionComponent } from '../../domain/components/DecisionComponent';
2
2
  import type { DecisionRendererProps } from '@wise/dynamic-flow-renderers';
3
- export declare const decisionComponentToProps: ({ options, margin, }: DecisionComponent) => DecisionRendererProps;
3
+ export declare const decisionComponentToProps: ({ options, margin, title, }: DecisionComponent) => DecisionRendererProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "3.14.0",
3
+ "version": "3.15.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -52,17 +52,17 @@
52
52
  "@testing-library/react": "14.3.1",
53
53
  "@testing-library/react-hooks": "8.0.1",
54
54
  "@testing-library/user-event": "14.5.2",
55
- "@transferwise/components": "46.37.0",
55
+ "@transferwise/components": "46.51.0",
56
56
  "@transferwise/formatting": "^2.13.0",
57
57
  "@transferwise/icons": "3.13.0",
58
- "@transferwise/neptune-css": "14.10.0",
58
+ "@transferwise/neptune-css": "14.12.1",
59
59
  "@types/enzyme": "^3.10.18",
60
60
  "@types/jest": "29.5.12",
61
61
  "@types/react": "18.3.3",
62
62
  "@types/react-dom": "18.3.0",
63
63
  "@types/react-intl": "3.0.0",
64
- "@wise/art": "2.7.0",
65
- "@wise/components-theming": "^1.3.0",
64
+ "@wise/art": "2.14.0",
65
+ "@wise/components-theming": "^1.5.0",
66
66
  "babel-jest": "29.7.0",
67
67
  "enzyme": "^3.11.0",
68
68
  "esbuild": "0.20.2",
@@ -71,7 +71,7 @@
71
71
  "jest-fetch-mock": "^3.0.3",
72
72
  "jest-watch-typeahead": "^2.2.2",
73
73
  "nanoid": "5.0.7",
74
- "npm-run-all2": "5.0.2",
74
+ "npm-run-all2": "6.2.2",
75
75
  "postcss": "^8.4.38",
76
76
  "postcss-cli": "^11.0.0",
77
77
  "postcss-import": "^15.1.0",
@@ -86,8 +86,8 @@
86
86
  "tsx": "4.15.6",
87
87
  "typescript": "5.4.5",
88
88
  "webpack": "5.92.0",
89
- "@wise/dynamic-flow-renderers": "0.0.0",
90
- "@wise/dynamic-flow-fixtures": "0.0.1"
89
+ "@wise/dynamic-flow-fixtures": "0.0.1",
90
+ "@wise/dynamic-flow-renderers": "0.0.0"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@transferwise/components": "^46.31",