@wise/dynamic-flow-client 2.4.0 → 2.6.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 (37) hide show
  1. package/build/i18n/tr.json +2 -2
  2. package/build/main.js +108 -24
  3. package/build/main.min.js +1 -1
  4. package/build/types/formControl/FormControl.d.ts +4 -6
  5. package/build/types/formControl/utils/getAutocompleteString.d.ts +2 -0
  6. package/build/types/formControl/utils/index.d.ts +1 -0
  7. package/build/types/revamp/domain/components/AlertComponent.d.ts +2 -0
  8. package/build/types/revamp/domain/components/ButtonComponent.d.ts +23 -0
  9. package/build/types/revamp/domain/components/HeadingComponent.d.ts +2 -0
  10. package/build/types/revamp/domain/components/ObjectComponent.d.ts +15 -7
  11. package/build/types/revamp/domain/components/ParagraphComponent.d.ts +2 -0
  12. package/build/types/revamp/domain/components/TextInputComponent.d.ts +4 -5
  13. package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +2 -1
  14. package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +3 -0
  15. package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +3 -2
  16. package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +2 -1
  17. package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +2 -1
  18. package/build/types/revamp/domain/mappers/mapSchemaToComponents.d.ts +2 -2
  19. package/build/types/revamp/domain/mappers/mapStepToComponents.d.ts +7 -2
  20. package/build/types/revamp/domain/mappers/schema/objectSchemaToComponent.d.ts +3 -0
  21. package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent.d.ts +2 -2
  22. package/build/types/revamp/domain/mappers/schema/types.d.ts +6 -2
  23. package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +2 -0
  24. package/build/types/revamp/domain/types.d.ts +12 -6
  25. package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +3 -0
  26. package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +2 -1
  27. package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +4 -0
  28. package/build/types/revamp/renderers/types.d.ts +15 -0
  29. package/build/types/revamp/step/utils/render-utils.d.ts +5 -0
  30. package/build/types/revamp/utils/findComponent.d.ts +2 -0
  31. package/build/types/revamp/utils/getSubmittableData.d.ts +3 -0
  32. package/build/types/revamp/utils/type-utils.d.ts +4 -0
  33. package/build/types/revamp/wise/renderers/ButtonRenderer.d.ts +3 -0
  34. package/build/types/revamp/wise/renderers/ObjectRenderer.d.ts +3 -0
  35. package/build/types/revamp/wise/renderers/utils/layout-utils.d.ts +1 -1
  36. package/package.json +29 -28
  37. package/build/types/revamp/domain/components/Step.d.ts +0 -9
@@ -1,5 +1,6 @@
1
1
  import { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
2
2
  import { UploadProps } from '@transferwise/components/build/types/upload/Upload';
3
+ import { AutocompleteHint } from '@wise/dynamic-flow-types';
3
4
  import { ReactNode } from 'react';
4
5
  import { PureComponent } from 'react';
5
6
  import { FormControlType } from '../common/constants';
@@ -43,12 +44,7 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
43
44
  prevValue: string | number | boolean | Date | null;
44
45
  value: string | number | boolean | Date | null;
45
46
  } | null;
46
- /**
47
- * autocomplete hides our form help so we need to disable it when help text
48
- * is present. Chrome ignores autocomplete=off, the only way to disable it is
49
- * to provide an 'invalid' value, for which 'disabled' serves.
50
- */
51
- getAutocompleteStatus: () => "on" | "disabled";
47
+ getAutocompleteValue: () => string;
52
48
  handleOnChange: (value: string | number | boolean | null) => void;
53
49
  handleInputOnChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
54
50
  handleOnFocus: () => void;
@@ -106,7 +102,9 @@ type FormControlSelectedOption = {
106
102
  type FormControlProps = {
107
103
  name: string;
108
104
  onChange: (value: string | number | boolean | null, type?: 'init' | 'user') => void;
105
+ /** @deprecated - Use autocompleteHint instead */
109
106
  autoComplete?: boolean;
107
+ autocompleteHint?: AutocompleteHint[];
110
108
  countryCode?: string;
111
109
  disabled?: boolean;
112
110
  displayPattern?: string;
@@ -0,0 +1,2 @@
1
+ import { AutocompleteHint } from '@wise/dynamic-flow-types';
2
+ export declare const getAutocompleteString: (hints: AutocompleteHint[]) => string;
@@ -1 +1,2 @@
1
1
  export * from './value-utils';
2
+ export { getAutocompleteString } from './getAutocompleteString';
@@ -4,8 +4,10 @@ export type AlertComponent = LayoutComponent & {
4
4
  type: 'alert';
5
5
  markdown: string;
6
6
  context: Context;
7
+ getValue: () => null;
7
8
  };
8
9
  export declare const createAlertComponent: (alertProps: {
10
+ uid: string;
9
11
  markdown: string;
10
12
  context: Context;
11
13
  margin: Margin;
@@ -0,0 +1,23 @@
1
+ import { Context, Margin } from '@wise/dynamic-flow-types';
2
+ import { LayoutComponent } from '../types';
3
+ export type ButtonComponent = LayoutComponent & {
4
+ type: 'button';
5
+ title: string;
6
+ context: Context;
7
+ control?: string;
8
+ disabled: boolean;
9
+ margin: Margin;
10
+ pinOrder?: number;
11
+ onClick: () => void;
12
+ getValue: () => null;
13
+ };
14
+ export declare const createButtonComponent: (buttonProps: {
15
+ uid: string;
16
+ title: string;
17
+ context: Context;
18
+ control?: string;
19
+ disabled: boolean;
20
+ pinOrder?: number;
21
+ margin: Margin;
22
+ onClick: () => void;
23
+ }) => ButtonComponent;
@@ -5,8 +5,10 @@ export type HeadingComponent = LayoutComponent & {
5
5
  text: string;
6
6
  align: Align;
7
7
  size: Size;
8
+ getValue: () => null;
8
9
  };
9
10
  export declare const createHeadingComponent: (headingProps: {
11
+ uid: string;
10
12
  text: string;
11
13
  align: Align;
12
14
  margin: Margin;
@@ -1,9 +1,17 @@
1
- import { SchemaMapperProps } from '../mappers/schema/types';
2
- import { StepComponent } from '../types';
3
- export type ObjectComponent = {
1
+ import { ObjectModel } from '@wise/dynamic-flow-types';
2
+ import { RenderableComponent, StepComponent } from '../types';
3
+ export type ObjectComponent = RenderableComponent & {
4
4
  type: 'object';
5
- uid?: string;
6
- propertyName?: string;
7
- childComponents: StepComponent[];
5
+ title?: string;
6
+ description?: string;
7
+ componentMap: Record<string, StepComponent>;
8
+ getChildren: () => StepComponent[];
9
+ getValue: () => ObjectModel;
8
10
  };
9
- export declare const createObjectComponent: (components: StepComponent[], mapperProps: SchemaMapperProps) => ObjectComponent;
11
+ export declare const createObjectComponent: (objectProps: {
12
+ uid: string;
13
+ title?: string | undefined;
14
+ description?: string | undefined;
15
+ displayOrder: string[];
16
+ components: Record<string, StepComponent>;
17
+ }) => ObjectComponent;
@@ -5,8 +5,10 @@ export type ParagraphComponent = LayoutComponent & {
5
5
  text: string;
6
6
  control?: 'copyable' | string;
7
7
  align: Align;
8
+ getValue: () => null;
8
9
  };
9
10
  export declare const createParagraphComponent: (paragraphProps: {
11
+ uid: string;
10
12
  text: string;
11
13
  control?: string | undefined;
12
14
  margin: Margin;
@@ -1,5 +1,5 @@
1
1
  import { StringSchema } from '@wise/dynamic-flow-types';
2
- import { InputComponent } from '../types';
2
+ import { InputComponent, UpdateComponent } from '../types';
3
3
  type TextInputFormat = 'text' | 'date';
4
4
  type TextInputControl = 'password' | 'textarea' | 'email' | 'numeric' | 'phone-number' | 'date-lookup' | string;
5
5
  export type TextInputComponent = InputComponent & {
@@ -11,7 +11,7 @@ export type TextInputComponent = InputComponent & {
11
11
  format: TextInputFormat;
12
12
  value: string | undefined;
13
13
  onChange: (value: string | undefined) => void;
14
- getValue: () => string | undefined;
14
+ getValue: () => string | null;
15
15
  };
16
16
  export declare const createTextInputComponent: (textInputProps: {
17
17
  uid: string;
@@ -19,9 +19,8 @@ export declare const createTextInputComponent: (textInputProps: {
19
19
  title?: string | undefined;
20
20
  description?: string | undefined;
21
21
  placeholder?: string | undefined;
22
- control: StringSchema['control'];
22
+ control?: StringSchema['control'];
23
23
  format: StringSchema['format'];
24
24
  value?: string | undefined;
25
- propertyName: string;
26
- }) => TextInputComponent;
25
+ }, updateComponent: UpdateComponent) => TextInputComponent;
27
26
  export {};
@@ -1,2 +1,3 @@
1
1
  import { AlertLayout } from '@wise/dynamic-flow-types';
2
- export declare const alertLayoutToComponent: ({ markdown, margin, context }: AlertLayout) => import("../../components/AlertComponent").AlertComponent;
2
+ import { MapperProps } from '../schema/types';
3
+ export declare const alertLayoutToComponent: ({ markdown, margin, context }: AlertLayout, { uid }: MapperProps) => import("../../components/AlertComponent").AlertComponent;
@@ -0,0 +1,3 @@
1
+ import { ButtonLayout } from '@wise/dynamic-flow-types';
2
+ import { MapperProps } from '../schema/types';
3
+ export declare const buttonLayoutToComponent: ({ title, action, context, disabled, control, margin }: ButtonLayout, { uid, onAction }: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
@@ -1,3 +1,4 @@
1
- import { FormLayout, Step as DFStep } from '@wise/dynamic-flow-types';
1
+ import { FormLayout } from '@wise/dynamic-flow-types';
2
2
  import { StepComponent } from '../../types';
3
- export declare const formLayoutToComponent: ({ schemaId }: FormLayout, uid: string, step: DFStep) => StepComponent;
3
+ import { MapperProps } from '../schema/types';
4
+ export declare const formLayoutToComponent: ({ schemaId }: FormLayout, mapperProps: MapperProps) => StepComponent;
@@ -1,2 +1,3 @@
1
1
  import { HeadingLayout } from '@wise/dynamic-flow-types';
2
- export declare const headingLayoutToComponent: ({ text, size, margin, align }: HeadingLayout) => import("../../components/HeadingComponent").HeadingComponent;
2
+ import { MapperProps } from '../schema/types';
3
+ export declare const headingLayoutToComponent: ({ text, size, margin, align }: HeadingLayout, { uid }: MapperProps) => import("../../components/HeadingComponent").HeadingComponent;
@@ -1,2 +1,3 @@
1
1
  import { ParagraphLayout } from '@wise/dynamic-flow-types';
2
- export declare const paragraphLayoutToComponent: ({ text, control, align, margin }: ParagraphLayout) => import("../../components/ParagraphComponent").ParagraphComponent;
2
+ import { MapperProps } from '../schema/types';
3
+ export declare const paragraphLayoutToComponent: ({ text, control, align, margin }: ParagraphLayout, { uid }: MapperProps) => import("../../components/ParagraphComponent").ParagraphComponent;
@@ -1,4 +1,4 @@
1
1
  import { Schema } from '@wise/dynamic-flow-types';
2
2
  import { StepComponent } from '../types';
3
- import { SchemaMapperProps } from './schema/types';
4
- export declare const mapSchemaToComponents: (schema: Schema, mapperProps: SchemaMapperProps) => StepComponent;
3
+ import { MapperProps } from './schema/types';
4
+ export declare const mapSchemaToComponents: (schema: Schema, mapperProps: MapperProps) => StepComponent;
@@ -1,4 +1,9 @@
1
1
  import { Step as DFStep } from '@wise/dynamic-flow-types';
2
- export declare const mapStepToComponents: ({ step }: {
2
+ import { OnAction, StepComponent, UpdateComponent } from '../types';
3
+ type MapStepToComponentsProps = {
3
4
  step: DFStep;
4
- }) => import("../components/Step").Step;
5
+ updateComponent: UpdateComponent;
6
+ onAction: OnAction;
7
+ };
8
+ export declare const mapStepToComponents: (mapStepToComponentsProps: MapStepToComponentsProps) => StepComponent[];
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ObjectSchema } from '@wise/dynamic-flow-types';
2
+ import { MapperProps } from './types';
3
+ export declare const objectSchemaToComponent: (schema: ObjectSchema, mapperProps: MapperProps) => import("../../components/ObjectComponent").ObjectComponent;
@@ -1,3 +1,3 @@
1
1
  import { StringSchema } from '@wise/dynamic-flow-types';
2
- import { SchemaMapperProps } from './types';
3
- export declare const stringSchemaToComponent: (schema: StringSchema, mapperProps: SchemaMapperProps) => import("../../components/TextInputComponent").TextInputComponent;
2
+ import { MapperProps } from './types';
3
+ export declare const stringSchemaToComponent: (schema: StringSchema, mapperProps: MapperProps) => import("../../components/TextInputComponent").TextInputComponent;
@@ -1,4 +1,8 @@
1
- export type SchemaMapperProps = {
1
+ import { Step as DFStep } from '@wise/dynamic-flow-types';
2
+ import { OnAction, UpdateComponent } from '../../types';
3
+ export type MapperProps = {
2
4
  uid: string;
3
- propertyName?: string;
5
+ step: DFStep;
6
+ onAction: OnAction;
7
+ updateComponent: UpdateComponent;
4
8
  };
@@ -0,0 +1,2 @@
1
+ import { Context, LegacyContext } from '@wise/dynamic-flow-types';
2
+ export declare const mapLegacyContext: (context: Context | LegacyContext) => "positive" | "negative" | "warning" | "neutral";
@@ -1,19 +1,25 @@
1
- import { Margin } from '@wise/dynamic-flow-types';
1
+ import { Action, Margin, Model } from '@wise/dynamic-flow-types';
2
2
  import { AlertComponent } from './components/AlertComponent';
3
+ import { ButtonComponent } from './components/ButtonComponent';
3
4
  import { HeadingComponent } from './components/HeadingComponent';
4
5
  import { ObjectComponent } from './components/ObjectComponent';
5
6
  import { ParagraphComponent } from './components/ParagraphComponent';
6
7
  import { TextInputComponent } from './components/TextInputComponent';
7
- export type StepComponent = AlertComponent | HeadingComponent | ParagraphComponent | ObjectComponent | TextInputComponent;
8
+ export type StepComponent = AlertComponent | HeadingComponent | ParagraphComponent | ObjectComponent | TextInputComponent | ButtonComponent;
9
+ export type ContainerComponent = ObjectComponent;
8
10
  export type BaseComponent = {
9
11
  type: string;
12
+ uid: string;
13
+ getValue: () => Model;
14
+ };
15
+ export type RenderableComponent = BaseComponent & {
10
16
  keyProp: string;
11
17
  };
12
- export type LayoutComponent = BaseComponent & {
18
+ export type LayoutComponent = RenderableComponent & {
13
19
  margin: Margin;
14
20
  };
15
- export type InputComponent = BaseComponent & {
16
- uid: string;
21
+ export type InputComponent = RenderableComponent & {
17
22
  id: string;
18
- propertyName: string;
19
23
  };
24
+ export type UpdateComponent = (id: string, update: (component: StepComponent) => void) => void;
25
+ export type OnAction = (action: Action) => void;
@@ -0,0 +1,3 @@
1
+ import { ButtonComponent } from '../../domain/components/ButtonComponent';
2
+ import { ButtonRendererProps } from '../types';
3
+ export declare const buttonComponentToProps: (component: ButtonComponent) => ButtonRendererProps;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { StepComponent } from '../../domain/types';
2
3
  import { RendererProps } from '../types';
3
- export declare const componentToRendererProps: (component: StepComponent) => RendererProps[];
4
+ export declare const componentToRendererProps: (component: StepComponent, children?: ReactNode) => RendererProps;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ import { ObjectComponent } from '../../domain/components/ObjectComponent';
3
+ import { ObjectRendererProps } from '../types';
4
+ export declare const objectComponentToProps: ({ keyProp, title, description }: ObjectComponent, children: ReactNode) => ObjectRendererProps;
@@ -33,6 +33,12 @@ export interface ParagraphRendererProps extends RendererProps {
33
33
  margin: Margin;
34
34
  align: Align;
35
35
  }
36
+ export interface ObjectRendererProps extends RendererProps {
37
+ type: 'object';
38
+ title?: string;
39
+ description?: string;
40
+ children: ReactNode;
41
+ }
36
42
  export interface TextInputRendererProps extends RendererProps {
37
43
  type: 'input-text';
38
44
  control?: 'password' | 'textarea' | 'email' | 'numeric' | 'phone-number' | 'date-lookup' | string;
@@ -45,3 +51,12 @@ export interface TextInputRendererProps extends RendererProps {
45
51
  value?: string;
46
52
  onChange: (value: string | undefined) => void;
47
53
  }
54
+ export interface ButtonRendererProps extends RendererProps {
55
+ type: 'button';
56
+ title: string;
57
+ control?: 'primary' | 'secondary' | 'tertiary' | string;
58
+ context: Context;
59
+ disabled: boolean;
60
+ margin: Margin;
61
+ onClick: () => void;
62
+ }
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ import { StepComponent } from '../../domain/types';
3
+ import { Renderer, RendererProps } from '../../renderers/types';
4
+ export declare const renderComponent: (component: StepComponent, render: (props: RendererProps) => ReactNode) => ReactNode;
5
+ export declare const getPropsRenderer: <P extends RendererProps>(renderers: Renderer<P>[]) => (props: P) => ReactNode;
@@ -0,0 +1,2 @@
1
+ import { StepComponent } from '../domain/types';
2
+ export declare const findComponent: (components: StepComponent[], id: string) => StepComponent | undefined;
@@ -0,0 +1,3 @@
1
+ import { Model } from '@wise/dynamic-flow-types';
2
+ import { StepComponent } from '../domain/types';
3
+ export declare const getSubmittableData: (components: StepComponent[]) => Model;
@@ -0,0 +1,4 @@
1
+ import { Model } from '@wise/dynamic-flow-types';
2
+ import { StepComponent } from '../domain/types';
3
+ export declare const isContainerComponent: (component: StepComponent) => component is import("../domain/components/ObjectComponent").ObjectComponent;
4
+ export declare const isObjectModel: (model: Model) => model is Record<string, Model>;
@@ -0,0 +1,3 @@
1
+ import { ButtonRendererProps, Renderer } from '../../renderers/types';
2
+ declare const ButtonRenderer: Renderer<ButtonRendererProps>;
3
+ export default ButtonRenderer;
@@ -0,0 +1,3 @@
1
+ import { ObjectRendererProps, Renderer } from '../../renderers/types';
2
+ declare const ObjectRenderer: Renderer<ObjectRendererProps>;
3
+ export default ObjectRenderer;
@@ -1,5 +1,5 @@
1
1
  import { Align, Size } from '../../../renderers/types';
2
- declare const getTopMargin: (size: Size) => "" | "m-t-2" | "m-t-0" | "m-t-1" | "m-t-3" | "m-t-5";
2
+ declare const getTopMargin: (size: Size) => "" | "m-t-1" | "m-t-2" | "m-t-0" | "m-t-3" | "m-t-5";
3
3
  declare const getTextAlignmentAndTopMargin: (component: {
4
4
  align: Align;
5
5
  margin: Size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -18,35 +18,35 @@
18
18
  "url": "git+https://github.com/transferwise/dynamic-flow.git"
19
19
  },
20
20
  "devDependencies": {
21
- "@babel/core": "7.23.2",
22
- "@babel/plugin-syntax-flow": "7.22.5",
21
+ "@babel/core": "7.23.3",
22
+ "@babel/plugin-syntax-flow": "7.23.3",
23
23
  "@babel/plugin-transform-react-jsx": "7.22.15",
24
- "@babel/preset-env": "7.23.2",
25
- "@babel/preset-react": "7.22.15",
26
- "@babel/preset-typescript": "7.23.2",
24
+ "@babel/preset-env": "7.23.3",
25
+ "@babel/preset-react": "7.23.3",
26
+ "@babel/preset-typescript": "7.23.3",
27
27
  "@cfaester/enzyme-adapter-react-18": "0.7.1",
28
- "@formatjs/cli": "^4.8.4",
29
- "@storybook/addon-a11y": "7.5.1",
30
- "@storybook/addon-actions": "7.5.1",
31
- "@storybook/addon-essentials": "7.5.1",
32
- "@storybook/addon-interactions": "7.5.1",
33
- "@storybook/addon-links": "7.5.1",
34
- "@storybook/react": "7.5.1",
35
- "@storybook/react-webpack5": "7.5.1",
28
+ "@formatjs/cli": "^6.2.3",
29
+ "@storybook/addon-a11y": "7.5.3",
30
+ "@storybook/addon-actions": "7.5.3",
31
+ "@storybook/addon-essentials": "7.5.3",
32
+ "@storybook/addon-interactions": "7.5.3",
33
+ "@storybook/addon-links": "7.5.3",
34
+ "@storybook/react": "7.5.3",
35
+ "@storybook/react-webpack5": "7.5.3",
36
36
  "@storybook/testing-library": "0.2.2",
37
37
  "@testing-library/dom": "9.3.3",
38
38
  "@testing-library/jest-dom": "6.1.4",
39
- "@testing-library/react": "14.0.0",
39
+ "@testing-library/react": "14.1.0",
40
40
  "@testing-library/react-hooks": "8.0.1",
41
41
  "@testing-library/user-event": "14.5.1",
42
- "@transferwise/components": "45.17.1",
42
+ "@transferwise/components": "45.20.0",
43
43
  "@transferwise/eslint-config": "8.2.0",
44
44
  "@transferwise/formatting": "^2.10.0",
45
- "@transferwise/icons": "3.10.0",
46
- "@transferwise/neptune-css": "14.6.1",
47
- "@transferwise/neptune-tokens": "8.5.1",
48
- "@types/enzyme": "^3.10.15",
49
- "@types/jest": "29.5.6",
45
+ "@transferwise/icons": "3.12.0",
46
+ "@transferwise/neptune-css": "14.6.2",
47
+ "@transferwise/neptune-tokens": "8.7.0",
48
+ "@types/enzyme": "^3.10.16",
49
+ "@types/jest": "29.5.8",
50
50
  "@types/react": "18",
51
51
  "@types/react-dom": "18",
52
52
  "@types/testing-library__jest-dom": "5.14.9",
@@ -57,21 +57,22 @@
57
57
  "currency-flags": "4.0.7",
58
58
  "enzyme": "^3.11.0",
59
59
  "esbuild": "0.19.5",
60
- "eslint": "8.52.0",
60
+ "eslint": "8.53.0",
61
61
  "eslint-plugin-storybook": "0.6.15",
62
+ "immer": "10.0.3",
62
63
  "jest": "29.7.0",
63
64
  "jest-environment-jsdom": "29.7.0",
64
65
  "jest-fetch-mock": "^3.0.3",
65
66
  "jest-watch-typeahead": "^2.2.2",
66
67
  "npm-run-all": "4.1.5",
67
- "postcss": "^8.4.21",
68
+ "postcss": "^8.4.31",
68
69
  "postcss-cli": "^10.1.0",
69
70
  "postcss-import": "^15.1.0",
70
- "prettier": "2.8.8",
71
+ "prettier": "3.1.0",
71
72
  "react": "18.2.0",
72
73
  "react-dom": "18.2.0",
73
- "react-intl": "6.5.1",
74
- "storybook": "7.5.1",
74
+ "react-intl": "6.5.4",
75
+ "storybook": "7.5.3",
75
76
  "stylelint": "14.16.1",
76
77
  "stylelint-config-standard": "25.0.0",
77
78
  "stylelint-no-unsupported-browser-features": "5.0.4",
@@ -91,9 +92,9 @@
91
92
  },
92
93
  "dependencies": {
93
94
  "classnames": "2.3.2",
94
- "react-webcam": "^7.1.1",
95
+ "react-webcam": "^7.2.0",
95
96
  "screenfull": "^5.2.0",
96
- "@wise/dynamic-flow-types": "2.1.0"
97
+ "@wise/dynamic-flow-types": "2.2.0"
97
98
  },
98
99
  "prettier": "@transferwise/eslint-config/.prettierrc.js",
99
100
  "scripts": {
@@ -1,9 +0,0 @@
1
- import { StepComponent } from '../types';
2
- export type Step = {
3
- id: string;
4
- components: StepComponent[];
5
- };
6
- export declare const createStep: ({ id, components, }: {
7
- id: string;
8
- components: StepComponent[];
9
- }) => Step;