@wise/dynamic-flow-client 2.9.3 → 2.9.5

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 (95) hide show
  1. package/build/i18n/pt.json +1 -1
  2. package/build/i18n/th.json +3 -3
  3. package/build/main.css +2 -2
  4. package/build/main.js +20 -11
  5. package/build/main.min.js +1 -1
  6. package/build/types/legacy/formControl/utils/getAutocompleteString.d.ts +1 -1
  7. package/build/types/legacy/layout/modal/DynamicModal.d.ts +3 -3
  8. package/build/types/revamp/DynamicFlowCore.d.ts +2 -3
  9. package/build/types/revamp/DynamicFlowWise.d.ts +1 -1
  10. package/build/types/revamp/domain/components/AllOfComponent.d.ts +3 -2
  11. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +8 -4
  12. package/build/types/revamp/domain/components/ConstComponent.d.ts +3 -2
  13. package/build/types/revamp/domain/components/ContainerComponent.d.ts +3 -3
  14. package/build/types/revamp/domain/components/DateInputComponent.d.ts +7 -3
  15. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +7 -3
  16. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +21 -0
  17. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +7 -3
  18. package/build/types/revamp/domain/components/ObjectComponent.d.ts +4 -9
  19. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +10 -7
  20. package/build/types/revamp/domain/components/TextInputComponent.d.ts +7 -3
  21. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +9 -4
  22. package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +9 -13
  23. package/build/types/revamp/domain/components/utils/file-utils.d.ts +1 -0
  24. package/build/types/revamp/domain/components/utils/isPartialLocalValueMatch.d.ts +2 -0
  25. package/build/types/revamp/domain/features/events/getAnalyticsEventDispatcher.d.ts +1 -1
  26. package/build/types/revamp/domain/features/persistAsync/getComponentPersistAsync.d.ts +7 -1
  27. package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +4 -4
  28. package/build/types/revamp/domain/features/persistAsync/persist-async-utils.d.ts +3 -2
  29. package/build/types/revamp/domain/features/refresh/getPerformRefresh.d.ts +5 -0
  30. package/build/types/revamp/domain/features/search/getPerformSearchFunction.d.ts +1 -1
  31. package/build/types/revamp/domain/features/summary/summary-utils.d.ts +2 -2
  32. package/build/types/revamp/domain/features/validation/spec-utils.d.ts +2 -0
  33. package/build/types/revamp/domain/features/validation/validation-functions.d.ts +3 -3
  34. package/build/types/revamp/domain/features/validation/value-checks.d.ts +9 -6
  35. package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +1 -1
  36. package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +1 -1
  37. package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +1 -1
  38. package/build/types/revamp/domain/mappers/layout/columnsLayoutToComponent.d.ts +1 -1
  39. package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +1 -1
  40. package/build/types/revamp/domain/mappers/layout/dividerLayoutToComponent.d.ts +1 -1
  41. package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +1 -1
  42. package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +1 -1
  43. package/build/types/revamp/domain/mappers/layout/imageLayoutToComponent.d.ts +1 -1
  44. package/build/types/revamp/domain/mappers/layout/infoLayoutToComponent.d.ts +1 -1
  45. package/build/types/revamp/domain/mappers/layout/instructionsLayoutToComponent.d.ts +1 -1
  46. package/build/types/revamp/domain/mappers/layout/listLayoutToComponent.d.ts +1 -1
  47. package/build/types/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +1 -1
  48. package/build/types/revamp/domain/mappers/layout/markdownLayoutToComponent.d.ts +1 -1
  49. package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +1 -1
  50. package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +1 -1
  51. package/build/types/revamp/domain/mappers/layout/reviewLayoutToComponent.d.ts +1 -1
  52. package/build/types/revamp/domain/mappers/layout/searchLayoutToComponent.d.ts +1 -1
  53. package/build/types/revamp/domain/mappers/layout/statusListLayoutToComponent.d.ts +1 -1
  54. package/build/types/revamp/domain/mappers/mapLayoutToComponent.d.ts +1 -1
  55. package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToComponent.d.ts +1 -1
  56. package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiUploadComponent.d.ts +9 -0
  57. package/build/types/revamp/domain/mappers/schema/blobSchemaToComponent.d.ts +5 -0
  58. package/build/types/revamp/domain/mappers/schema/booleanSchemaToComponent.d.ts +1 -1
  59. package/build/types/revamp/domain/mappers/schema/constSchemaToComponent.d.ts +1 -1
  60. package/build/types/revamp/domain/mappers/schema/integerSchemaToComponent.d.ts +1 -1
  61. package/build/types/revamp/domain/mappers/schema/numberSchemaToComponent.d.ts +1 -1
  62. package/build/types/revamp/domain/mappers/schema/tests/test-utils.d.ts +4 -0
  63. package/build/types/revamp/domain/mappers/schema/types.d.ts +6 -2
  64. package/build/types/revamp/domain/mappers/schema/utils/getPersistAsyncInitialState.d.ts +5 -0
  65. package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +3 -4
  66. package/build/types/revamp/domain/mappers/types.d.ts +2 -0
  67. package/build/types/revamp/domain/types.d.ts +27 -18
  68. package/build/types/revamp/flow/executeRefresh.d.ts +19 -0
  69. package/build/types/revamp/flow/executeSubmission.d.ts +20 -0
  70. package/build/types/revamp/flow/getResponseType.d.ts +10 -0
  71. package/build/types/revamp/flow/response-utils.d.ts +6 -0
  72. package/build/types/revamp/renderers/CoreContainerRenderer.d.ts +2 -2
  73. package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +2 -7
  74. package/build/types/revamp/renderers/mappers/multiUploadInputComponentToProps.d.ts +3 -0
  75. package/build/types/revamp/renderers/mappers/repeatableComponentToProps.d.ts +1 -1
  76. package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +3 -3
  77. package/build/types/revamp/renderers/types.d.ts +113 -66
  78. package/build/types/revamp/step/Step.d.ts +11 -4
  79. package/build/types/revamp/step/utils/getRenderFunction.d.ts +2 -2
  80. package/build/types/revamp/test-utils/step-utils.d.ts +2 -0
  81. package/build/types/revamp/types.d.ts +41 -0
  82. package/build/types/revamp/utils/component-utils.d.ts +3 -2
  83. package/build/types/revamp/utils/findComponent.d.ts +1 -1
  84. package/build/types/revamp/utils/type-utils.d.ts +13 -2
  85. package/build/types/revamp/utils/type-validators.d.ts +1 -0
  86. package/build/types/revamp/wise/renderers/MultiUploadInputRenderer.d.ts +3 -0
  87. package/build/types/revamp/wise/renderers/components/LabelContentWithHelp.d.ts +4 -0
  88. package/build/types/revamp/wise/renderers/components/UploadFieldInput.d.ts +11 -0
  89. package/build/types/revamp/wise/renderers/getWiseRenderers.d.ts +1 -2
  90. package/build/types/revamp/wise/renderers/utils/file-utils.d.ts +3 -0
  91. package/build/types/revamp/wise/renderers/utils/getRandomId.d.ts +1 -0
  92. package/package.json +24 -25
  93. package/build/types/revamp/domain/components/utils/isModelPartialOf.d.ts +0 -2
  94. package/build/types/revamp/dynamic-flow-types.d.ts +0 -38
  95. /package/build/types/{legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts → common/messages/multi-file-upload.messages.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import { AutocompleteToken } from '@wise/dynamic-flow-types';
1
+ import type { AutocompleteToken } from '@wise/dynamic-flow-types';
2
2
  export declare const getAutocompleteString: (hints: AutocompleteToken[]) => string;
@@ -1,7 +1,7 @@
1
- import { ModalLayout } from '@wise/dynamic-flow-types';
2
- import { CommonLayoutProps } from '../DynamicLayout';
1
+ import type { ModalLayout } from '@wise/dynamic-flow-types';
2
+ import { type CommonLayoutProps } from '../DynamicLayout';
3
3
  type DynamicMarkdownProps = CommonLayoutProps & {
4
4
  component: ModalLayout;
5
5
  };
6
- declare const DynamicModal: (props: DynamicMarkdownProps) => JSX.Element;
6
+ declare function DynamicModal(props: DynamicMarkdownProps): JSX.Element;
7
7
  export default DynamicModal;
@@ -1,7 +1,6 @@
1
- import type { DynamicFlowProps } from './dynamic-flow-types';
2
- import type { Renderer, RendererProps } from './renderers/types';
1
+ import type { DynamicFlowProps, Renderers } from './types';
3
2
  type DynamicFlowCoreProps = DynamicFlowProps & {
4
- renderers: Renderer<RendererProps>[];
3
+ renderers: Renderers;
5
4
  };
6
5
  export declare function DynamicFlowCore(props: DynamicFlowCoreProps): JSX.Element;
7
6
  export {};
@@ -1,3 +1,3 @@
1
- import type { DynamicFlowProps } from './dynamic-flow-types';
1
+ import type { DynamicFlowProps } from './types';
2
2
  declare function DynamicFlowWise(props: DynamicFlowProps): JSX.Element;
3
3
  export default DynamicFlowWise;
@@ -1,6 +1,6 @@
1
1
  import type { Model } from '@wise/dynamic-flow-types/build/next';
2
- import type { BaseComponent, RepeatableSummary, StepComponent } from '../types';
3
- export type AllOfComponent = BaseComponent<Model> & {
2
+ import type { BaseComponent, LocalValue, RepeatableSummary, StepComponent } from '../types';
3
+ export type AllOfComponent = BaseComponent & {
4
4
  type: 'all-of';
5
5
  components: StepComponent[];
6
6
  control?: string;
@@ -9,6 +9,7 @@ export type AllOfComponent = BaseComponent<Model> & {
9
9
  hidden: boolean;
10
10
  title?: string;
11
11
  getChildren: () => StepComponent[];
12
+ getLocalValue: () => LocalValue;
12
13
  };
13
14
  export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent, "description" | "help" | "hidden" | "title" | "control" | "components"> & {
14
15
  uid: string;
@@ -1,11 +1,15 @@
1
- import type { InputComponent, RepeatableSummary, UpdateComponent } from '../types';
1
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
4
5
  export type BooleanInputComponent = InputComponent<boolean> & {
5
6
  type: 'boolean';
7
+ persistedState: PersistedState;
8
+ onChange: (value: boolean) => void;
6
9
  };
7
- export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "control" | "id" | "errors" | "required" | "value" | "uid"> & {
8
- checks: IsInvalidCheck<boolean | null>[];
10
+ export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "control" | "id" | "errors" | "required" | "value" | "uid" | "persistedState"> & {
11
+ checks: IsInvalidCheck<boolean>[];
9
12
  performPersistAsync: PerformPersistAsync | undefined;
10
- summariser: (value: boolean | null) => RepeatableSummary;
13
+ performRefresh?: PerformRefresh | undefined;
14
+ summariser: (value: boolean) => RepeatableSummary;
11
15
  }, updateComponent: UpdateComponent) => BooleanInputComponent;
@@ -1,7 +1,8 @@
1
1
  import type { Model } from '@wise/dynamic-flow-types/build/next';
2
- import type { BaseComponent, RepeatableSummary } from '../types';
3
- export type ConstComponent = BaseComponent<Model> & {
2
+ import type { BaseComponent, LocalValue, RepeatableSummary } from '../types';
3
+ export type ConstComponent = BaseComponent & {
4
4
  type: 'const';
5
+ getLocalValue: () => LocalValue;
5
6
  };
6
7
  export declare const createConstComponent: (hiddenProps: Pick<ConstComponent, "analyticsId" | "uid"> & {
7
8
  value: Model;
@@ -1,9 +1,9 @@
1
- import type { Model } from '@wise/dynamic-flow-types';
2
- import type { BaseComponent, StepComponent } from '../types';
3
- export type ContainerComponent = BaseComponent<Model> & {
1
+ import type { BaseComponent, LocalValue, StepComponent } from '../types';
2
+ export type ContainerComponent = BaseComponent & {
4
3
  type: 'container';
5
4
  components: StepComponent[];
6
5
  getChildren: () => StepComponent[];
6
+ getLocalValue: () => LocalValue;
7
7
  };
8
8
  export declare const createContainerComponent: (containerProps: {
9
9
  uid: string;
@@ -1,13 +1,17 @@
1
1
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
- import type { InputComponent, RepeatableSummary, UpdateComponent } from '../types';
4
- export type DateInputComponent = InputComponent<string> & {
3
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
4
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ export type DateInputComponent = InputComponent<string | null> & {
5
6
  type: 'date';
6
7
  minimumDate?: string;
7
8
  maximumDate?: string;
9
+ persistedState: PersistedState;
10
+ onChange: (value: string | null) => void;
8
11
  };
9
- export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "minimumDate" | "maximumDate" | "uid"> & {
12
+ export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "minimumDate" | "maximumDate" | "uid" | "persistedState"> & {
10
13
  checks: IsInvalidCheck<string | null>[];
11
14
  performPersistAsync: PerformPersistAsync | undefined;
15
+ performRefresh?: PerformRefresh | undefined;
12
16
  summariser: (value: string | null) => RepeatableSummary;
13
17
  }, updateComponent: UpdateComponent) => DateInputComponent;
@@ -1,11 +1,15 @@
1
- import type { InputComponent, RepeatableSummary, UpdateComponent } from '../types';
1
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
- export type IntegerInputComponent = InputComponent<number> & {
4
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ export type IntegerInputComponent = InputComponent<number | null> & {
5
6
  type: 'integer';
7
+ persistedState: PersistedState;
8
+ onChange: (value: number | null) => void;
6
9
  };
7
- export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid"> & {
10
+ export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
8
11
  checks: IsInvalidCheck<number | null>[];
9
12
  performPersistAsync: PerformPersistAsync | undefined;
13
+ performRefresh?: PerformRefresh | undefined;
10
14
  summariser: (value: number | null) => RepeatableSummary;
11
15
  }, updateComponent: UpdateComponent) => IntegerInputComponent;
@@ -0,0 +1,21 @@
1
+ import type { IsInvalidCheck } from '../features/validation/value-checks';
2
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
3
+ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
+ export type MultiUploadInputComponent = InputComponent<File[]> & {
5
+ type: 'multi-upload';
6
+ accepts?: string[];
7
+ fileMap: Record<string, File>;
8
+ format: 'blob' | 'base64';
9
+ maxItems?: number;
10
+ maxSize?: number;
11
+ minItems?: number;
12
+ persistedState: PersistedState[];
13
+ uploadLabel?: string;
14
+ onDelete: (fileId: string) => Promise<void>;
15
+ onUpload: (file: File, fileId: string) => Promise<void>;
16
+ };
17
+ export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "analyticsId" | "description" | "disabled" | "format" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "maxItems" | "minItems" | "value" | "accepts" | "maxSize" | "autoComplete" | "uid" | "persistedState" | "uploadLabel"> & {
18
+ checks: IsInvalidCheck<File[]>[];
19
+ performPersistAsync: PerformPersistAsync | undefined;
20
+ summariser: (value: string[]) => RepeatableSummary;
21
+ }, updateComponent: UpdateComponent) => MultiUploadInputComponent;
@@ -1,11 +1,15 @@
1
- import type { InputComponent, RepeatableSummary, UpdateComponent } from '../types';
1
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
- export type NumberInputComponent = InputComponent<number> & {
4
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ export type NumberInputComponent = InputComponent<number | null> & {
5
6
  type: 'number';
7
+ persistedState: PersistedState;
8
+ onChange: (value: number | null) => void;
6
9
  };
7
- export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid"> & {
10
+ export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
8
11
  checks: IsInvalidCheck<number | null>[];
9
12
  performPersistAsync: PerformPersistAsync | undefined;
13
+ performRefresh?: PerformRefresh | undefined;
10
14
  summariser: (value: number | null) => RepeatableSummary;
11
15
  }, updateComponent: UpdateComponent) => NumberInputComponent;
@@ -1,18 +1,13 @@
1
- import type { Model } from '@wise/dynamic-flow-types/build/next';
2
- import type { BaseComponent, RepeatableSummary, StepComponent } from '../types';
3
- export type ObjectComponent = BaseComponent<Record<string, Model>> & {
1
+ import type { ComponentWithTitle, LocalValue, LocalValueObject, RepeatableSummary, StepComponent } from '../types';
2
+ export type ObjectComponent = ComponentWithTitle & {
4
3
  type: 'object';
5
4
  componentMap: Record<string, StepComponent>;
6
- control?: string;
7
- description?: string;
8
- help?: string;
9
- hidden: boolean;
10
- title?: string;
11
5
  getChildren: () => StepComponent[];
6
+ getLocalValue: () => LocalValueObject;
12
7
  };
13
8
  export declare const createObjectComponent: (objectProps: Pick<ObjectComponent, "description" | "help" | "hidden" | "title" | "control" | "componentMap"> & {
14
9
  uid: string;
15
10
  analyticsId?: string | undefined;
16
11
  displayOrder: string[];
17
- summariser: (value: Model | null) => RepeatableSummary;
12
+ summariser: (value: LocalValue | null) => RepeatableSummary;
18
13
  }) => ObjectComponent;
@@ -1,13 +1,15 @@
1
- import type { Icon, Image, Model } from '@wise/dynamic-flow-types/build/next';
2
- import type { InputComponent, RepeatableSummary, StepComponent, UpdateComponent } from '../types';
1
+ import type { Icon, Image } from '@wise/dynamic-flow-types/build/next';
2
+ import type { InputComponent, LocalValue, PersistedState, RepeatableSummary, StepComponent, UpdateComponent } from '../types';
3
3
  import type { IsInvalidCheck } from '../features/validation/value-checks';
4
4
  import type { AnalyticsEventDispatcher } from '../features/events';
5
5
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
6
- export type SelectInputComponent = Omit<InputComponent<Model>, 'onChange'> & {
6
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
7
+ export type SelectInputComponent = InputComponent<LocalValue | null> & {
7
8
  type: 'select';
8
9
  selectedIndex: number | null;
9
10
  options: SelectInputOption[];
10
11
  children: StepComponent[];
12
+ persistedState: PersistedState;
11
13
  onSelect: (index: number | null) => void;
12
14
  getChildren: () => StepComponent[];
13
15
  getSelectedChild: () => StepComponent | null;
@@ -20,13 +22,14 @@ export type SelectInputOption = {
20
22
  keywords?: string[];
21
23
  disabled: boolean;
22
24
  };
23
- export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "autoComplete" | "uid"> & {
24
- initialValue: Model;
25
+ export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "autoComplete" | "uid" | "persistedState"> & {
26
+ initialValue: LocalValue;
25
27
  options: (SelectInputOption & {
26
28
  component: StepComponent;
27
29
  })[];
28
- checks: IsInvalidCheck<Model>[];
30
+ checks: IsInvalidCheck<LocalValue>[];
29
31
  performPersistAsync: PerformPersistAsync | undefined;
30
- summariser: (value: Model | null) => RepeatableSummary;
32
+ performRefresh?: PerformRefresh | undefined;
33
+ summariser: (value: LocalValue | null) => RepeatableSummary;
31
34
  trackEvent: AnalyticsEventDispatcher;
32
35
  }, updateComponent: UpdateComponent) => SelectInputComponent;
@@ -1,12 +1,16 @@
1
1
  import type { IsInvalidCheck } from '../features/validation/value-checks';
2
- import type { InputComponent, RepeatableSummary, UpdateComponent } from '../types';
2
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
- export type TextInputComponent = InputComponent<string> & {
4
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ export type TextInputComponent = InputComponent<string | null> & {
5
6
  type: 'text';
6
7
  displayFormat?: string;
8
+ persistedState: PersistedState;
9
+ onChange: (value: string | null) => void;
7
10
  };
8
- export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "displayFormat" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid"> & {
11
+ export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "displayFormat" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
9
12
  checks: IsInvalidCheck<string | null>[];
10
13
  performPersistAsync: PerformPersistAsync | undefined;
14
+ performRefresh?: PerformRefresh | undefined;
11
15
  summariser: (value: string | null) => RepeatableSummary;
12
16
  }, updateComponent: UpdateComponent) => TextInputComponent;
@@ -1,13 +1,18 @@
1
1
  import type { IsInvalidCheck } from '../features/validation/value-checks';
2
- import type { InputComponent, RepeatableSummary, UpdateComponent } from '../types';
2
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
- export type UploadInputComponent = InputComponent<string> & {
4
+ import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ export type UploadInputComponent = InputComponent<File | null> & {
5
6
  type: 'upload';
7
+ format: 'blob' | 'base64';
6
8
  maxSize?: number;
7
9
  accepts?: string[];
10
+ persistedState: PersistedState;
11
+ onUpload: (value: File | null) => Promise<void>;
8
12
  };
9
- export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "accepts" | "maxSize" | "autoComplete" | "uid"> & {
10
- checks: IsInvalidCheck<string | null>[];
13
+ export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "analyticsId" | "description" | "disabled" | "format" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "accepts" | "maxSize" | "autoComplete" | "uid" | "persistedState"> & {
14
+ checks: IsInvalidCheck<File | null>[];
11
15
  performPersistAsync: PerformPersistAsync | undefined;
16
+ performRefresh?: PerformRefresh | undefined;
12
17
  summariser: (value: string | null) => RepeatableSummary;
13
18
  }, updateComponent: UpdateComponent) => UploadInputComponent;
@@ -1,31 +1,27 @@
1
- import type { Model } from '@wise/dynamic-flow-types';
2
1
  import type { SummarySummariser } from '@wise/dynamic-flow-types/build/next/feature/SummarySummariser';
3
- import type { BaseComponent, RepeatableSummary, StepComponent, UpdateComponent } from '../../types';
2
+ import type { ComponentWithTitle, LocalValue, LocalValueArray, RepeatableSummary, StepComponent, UpdateComponent } from '../../types';
4
3
  import type { IsInvalidCheck } from '../../features/validation/value-checks';
5
- export type RepeatableComponent = BaseComponent<Model[]> & {
6
- id?: string;
4
+ export type RepeatableComponent = ComponentWithTitle & {
7
5
  type: 'repeatable';
8
- addItemTitle: string;
6
+ id?: string;
9
7
  components: StepComponent[];
10
- control?: string;
11
- description?: string;
8
+ addItemTitle: string;
12
9
  editableComponent: StepComponent | null;
13
10
  editableIndex: number | null;
14
11
  editItemTitle: string;
15
12
  errors: string[];
16
13
  summaryDefaults: RepeatableSummary;
17
- title?: string;
18
14
  getChildren: () => StepComponent[];
19
- getLocalValue: () => Model[] | null;
15
+ getLocalValue: () => LocalValueArray;
20
16
  onAdd: () => void;
21
17
  onEdit: (itemIndex: number) => void;
22
18
  onRemove: () => void;
23
19
  onSave: () => boolean;
24
20
  };
25
- export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "description" | "title" | "control" | "id" | "errors" | "components" | "addItemTitle" | "editItemTitle" | "uid"> & {
21
+ export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "description" | "hidden" | "title" | "control" | "id" | "errors" | "components" | "addItemTitle" | "editItemTitle" | "uid"> & {
26
22
  analyticsId?: string | undefined;
27
- checks: IsInvalidCheck<Model[] | null>[];
23
+ checks: IsInvalidCheck<LocalValueArray | null>[];
28
24
  summary?: SummarySummariser | undefined;
29
- summariser: (value: Model[] | null) => RepeatableSummary;
30
- createEditableComponent: (model: Model) => StepComponent;
25
+ summariser: (value: LocalValueArray | null) => RepeatableSummary;
26
+ createEditableComponent: (value: LocalValue) => StepComponent;
31
27
  }, updateComponent: UpdateComponent) => RepeatableComponent;
@@ -0,0 +1 @@
1
+ export declare const toBase64: (file: Blob) => Promise<string>;
@@ -0,0 +1,2 @@
1
+ import type { LocalValue } from '../../types';
2
+ export declare const isPartialLocalValueMatch: (partialValue: LocalValue, value: LocalValue) => boolean;
@@ -6,4 +6,4 @@ export declare const getAnalyticsEventDispatcher: ({ flowId, step, onEvent, }: {
6
6
  step?: Step | null | undefined;
7
7
  onEvent?: AnalyticsEventHandler | undefined;
8
8
  }) => AnalyticsEventDispatcher;
9
- export type EventName = 'Flow Started' | 'Flow Completed' | 'Step Shown' | 'Action Triggered' | 'Action Succeeded' | 'Action Failed' | 'Refresh Triggered' | 'Refresh Succeeded' | 'Refresh Failed' | 'OneOf Selected' | 'PersistAsync Triggered' | 'PersistAsync Succeeded' | 'PersistAsync Failed' | 'ValidationAsync Triggered' | 'ValidationAsync Succeeded' | 'ValidationAsync Failed' | 'Search Started' | 'Search Result Selected';
9
+ export type EventName = 'Flow Started' | 'Flow Succeeded' | 'Flow Failed' | 'Step Shown' | 'Action Triggered' | 'Action Succeeded' | 'Action Aborted' | 'Action Failed' | 'Refresh Triggered' | 'Refresh Succeeded' | 'Refresh Aborted' | 'Refresh Failed' | 'OneOf Selected' | 'PersistAsync Triggered' | 'PersistAsync Succeeded' | 'PersistAsync Failed' | 'ValidationAsync Triggered' | 'ValidationAsync Succeeded' | 'ValidationAsync Failed' | 'Search Started' | 'Search Result Selected';
@@ -7,9 +7,15 @@ import type { NumberInputComponent } from '../../components/NumberInputComponent
7
7
  import type { SelectInputComponent } from '../../components/SelectInputComponent';
8
8
  import type { TextInputComponent } from '../../components/TextInputComponent';
9
9
  import type { UploadInputComponent } from '../../components/UploadInputComponent';
10
+ import type { MultiUploadInputComponent } from '../../components/MultiUploadInputComponent';
11
+ import type { LocalValue, PersistedState } from '../../types';
10
12
  type Persistable = BooleanInputComponent | DateInputComponent | IntegerInputComponent | NumberInputComponent | SelectInputComponent | TextInputComponent | UploadInputComponent;
11
13
  /**
12
14
  * Creates an onPersistAsync handler for a component.
13
15
  */
14
- export declare const getComponentPersistAsync: <C extends Persistable>(update: (updateFn: (component: C) => void) => void, performPersistAsync: PerformPersistAsync) => (component: C) => Promise<import("@wise/dynamic-flow-types/build/next").JsonElement>;
16
+ export declare const getComponentPersistAsync: (update: ReturnType<typeof getInputUpdateFunction<Persistable>>, performPersistAsync: PerformPersistAsync) => (persistedState: PersistedState, currentValue: LocalValue) => Promise<import("@wise/dynamic-flow-types/build/next").JsonElement>;
17
+ /**
18
+ * Creates an onPersistAsync handler for a component.
19
+ */
20
+ export declare const getComponentMultiPersistAsync: (update: ReturnType<typeof getInputUpdateFunction<MultiUploadInputComponent>>, performPersistAsync: PerformPersistAsync) => (value: LocalValue, id: string) => Promise<import("@wise/dynamic-flow-types/build/next").JsonElement>;
15
21
  export {};
@@ -1,11 +1,11 @@
1
- import type { JsonElement, Model } from '@wise/dynamic-flow-types/build/next';
1
+ import type { JsonElement } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { PersistAsyncConfig } from '../../mappers/types';
3
- import type { HttpClient } from '../../../dynamic-flow-types';
3
+ import type { HttpClient } from '../../../types';
4
4
  import type { AnalyticsEventDispatcher, LoggingEventDispatcher } from '../events';
5
+ import type { LocalValue } from '../../types';
5
6
  export type PerformPersistAsync = (props: PersistAsyncProps) => Promise<JsonElement>;
6
- type PersistAsyncModel = Model | Blob;
7
7
  type PersistAsyncProps = {
8
- value: PersistAsyncModel;
8
+ value: LocalValue;
9
9
  signal: AbortSignal;
10
10
  };
11
11
  /**
@@ -1,2 +1,3 @@
1
- import type { PersistedState } from '../../types';
2
- export declare const getInitialPersistedState: <M extends import("@wise/dynamic-flow-types/build/next").JsonElement>() => PersistedState<M>;
1
+ import type { JsonElement } from '@wise/dynamic-flow-types/build/next';
2
+ import type { LocalValue, PersistedState } from '../../types';
3
+ export declare const getInitialPersistedState: (lastSubmitted?: LocalValue, model?: JsonElement) => PersistedState;
@@ -0,0 +1,5 @@
1
+ import type { Schema } from '@wise/dynamic-flow-types/build/next';
2
+ import type { OnRefresh } from '../../types';
3
+ export type PerformRefresh = () => void;
4
+ export declare const getPerformRefresh: (schema: Schema, onRefresh: OnRefresh) => (() => Promise<void>) | undefined;
5
+ export declare const getDebouncedPerformRefresh: (schema: Schema, onRefresh: OnRefresh) => (() => Promise<void>) | undefined;
@@ -1,3 +1,3 @@
1
1
  import type { SearchConfig, PerformSearch } from '../../components/searchComponent/SearchComponent';
2
- import type { HttpClient } from '../../../dynamic-flow-types';
2
+ import type { HttpClient } from '../../../types';
3
3
  export declare const getPerformSearchFunction: (httpClient: HttpClient, defaultConfig: SearchConfig) => PerformSearch;
@@ -1,7 +1,7 @@
1
1
  import type { Icon, Image, Model, Schema } from '@wise/dynamic-flow-types/build/next';
2
- import type { RepeatableSummary, StepComponent } from '../../types';
2
+ import type { LocalValue, RepeatableSummary, StepComponent } from '../../types';
3
3
  /** A summariser that accepts a schema and returns a function that can form a summary based on a value. */
4
- export declare const getSummariser: <S extends Schema>(schema: S) => (model: Model | null) => {
4
+ export declare const getSummariser: <S extends Schema>(schema: S) => (value: LocalValue | null) => {
5
5
  title?: undefined;
6
6
  description?: undefined;
7
7
  icon?: undefined;
@@ -6,6 +6,8 @@ export declare const mockErrorMessageFunctions: {
6
6
  maximumDate: jest.Mock<any, any, any>;
7
7
  minLength: jest.Mock<any, any, any>;
8
8
  maxLength: jest.Mock<any, any, any>;
9
+ minFiles: jest.Mock<any, any, any>;
10
+ maxFiles: jest.Mock<any, any, any>;
9
11
  minItems: jest.Mock<any, any, any>;
10
12
  maxItems: jest.Mock<any, any, any>;
11
13
  pattern: jest.Mock<any, any, any>;
@@ -1,7 +1,7 @@
1
- import type { StepComponent } from '../../types';
1
+ import type { LocalValue, StepComponent } from '../../types';
2
2
  import type { IsInvalidCheck } from './value-checks';
3
3
  export declare const validateComponents: (components: StepComponent[]) => boolean;
4
4
  /**
5
- * Returns a function that takes a model and returns an array of validation errors
5
+ * Returns a function that takes a local value and returns an array of validation errors
6
6
  */
7
- export declare const getModelValidator: <M extends import("@wise/dynamic-flow-types/build/next").JsonElement>(checks: IsInvalidCheck<M>[]) => (currentValue: M) => string[];
7
+ export declare const getLocalValueValidator: <V extends LocalValue>(checks: IsInvalidCheck<V>[]) => (currentValue: V) => string[];
@@ -1,9 +1,12 @@
1
- import type { ArraySchemaList, IntegerSchema, Model, NumberSchema, Schema, StringSchema } from '@wise/dynamic-flow-types/build/next';
1
+ import type { ArraySchemaList, IntegerSchema, NumberSchema, Schema, StringSchema } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { ErrorMessageFunctions } from '../../mappers/types';
3
- export type IsInvalidCheck<M extends Model> = (model: M | null) => string | null;
4
- type GetIsInvalidCheck<S extends Schema, M extends Model> = (schema: S, messageFunctions: ErrorMessageFunctions) => IsInvalidCheck<M>;
5
- export declare const getAboveMaxItemsCheck: GetIsInvalidCheck<ArraySchemaList, Model[] | null>;
6
- export declare const getBelowMinItemsCheck: GetIsInvalidCheck<ArraySchemaList, Model[] | null>;
3
+ import type { LocalValue, LocalValueArray } from '../../types';
4
+ export type IsInvalidCheck<V extends LocalValue> = (value: V | null) => string | null;
5
+ type GetIsInvalidCheck<S extends Schema, V extends LocalValue> = (schema: S, messageFunctions: ErrorMessageFunctions) => IsInvalidCheck<V>;
6
+ export declare const getAboveMaxItemsCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
7
+ export declare const getBelowMinFilesCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
8
+ export declare const getAboveMaxFilesCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
9
+ export declare const getBelowMinItemsCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
7
10
  export declare const getAboveMaxLengthCheck: GetIsInvalidCheck<StringSchema, string | null>;
8
11
  export declare const getBelowMinLengthCheck: GetIsInvalidCheck<StringSchema, string | null>;
9
12
  export declare const getAboveMaximumCheck: GetIsInvalidCheck<NumberSchema | IntegerSchema, number | null>;
@@ -11,5 +14,5 @@ export declare const getBelowMinimumCheck: GetIsInvalidCheck<NumberSchema | Inte
11
14
  export declare const getAboveMaximumDateCheck: GetIsInvalidCheck<StringSchema, string | null>;
12
15
  export declare const getBelowMinimumDateCheck: GetIsInvalidCheck<StringSchema, string | null>;
13
16
  export declare const getNotAdheringToPatternCheck: GetIsInvalidCheck<StringSchema, string | null>;
14
- export declare const getRequiredCheck: (required: boolean, messageFunctions: ErrorMessageFunctions) => IsInvalidCheck<Model | null>;
17
+ export declare const getRequiredCheck: (required: boolean, messageFunctions: ErrorMessageFunctions) => IsInvalidCheck<LocalValue | null>;
15
18
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { AlertLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const alertLayoutToComponent: ({ control, markdown, margin, context, }: AlertLayout) => import("../../components/AlertComponent").AlertComponent;
2
+ export declare const alertLayoutToComponent: (uid: string, { control, markdown, margin, context }: AlertLayout) => import("../../components/AlertComponent").AlertComponent;
@@ -1,4 +1,4 @@
1
1
  import type { BoxLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import { type BoxComponent } from '../../components/BoxComponent';
3
3
  import type { MapperProps } from '../schema/types';
4
- export declare const boxLayoutToComponent: ({ border, components, control, margin, width }: BoxLayout, mapperProps: MapperProps) => BoxComponent;
4
+ export declare const boxLayoutToComponent: (uid: string, { border, components, control, margin, width }: BoxLayout, mapperProps: MapperProps) => BoxComponent;
@@ -1,3 +1,3 @@
1
1
  import type { ButtonLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps } from '../schema/types';
3
- export declare const buttonLayoutToComponent: ({ action, context, control, disabled, margin, pinOrder, size, title }: ButtonLayout, { onAction }: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
3
+ export declare const buttonLayoutToComponent: (uid: string, { action, context, control, disabled, margin, pinOrder, size, title }: ButtonLayout, { onAction }: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
@@ -1,4 +1,4 @@
1
1
  import type { ColumnsLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps } from '../schema/types';
3
3
  import { type ColumnsComponent } from '../../components/ColumnsComponent';
4
- export declare const columnsLayoutToComponent: ({ control, left, right, bias, margin }: ColumnsLayout, mapperProps: MapperProps) => ColumnsComponent;
4
+ export declare const columnsLayoutToComponent: (uid: string, { control, left, right, bias, margin }: ColumnsLayout, mapperProps: MapperProps) => ColumnsComponent;
@@ -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: ({ control, margin, options }: DecisionLayout, { onAction }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
3
+ export declare const decisionLayoutToComponent: (uid: string, { control, margin, options }: DecisionLayout, { onAction }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
@@ -1,2 +1,2 @@
1
1
  import { DividerLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const dividerLayoutToComponent: ({ control, margin }: DividerLayout) => import("../../components/DividerComponent").DividerComponent;
2
+ export declare const dividerLayoutToComponent: (uid: string, { control, margin }: DividerLayout) => import("../../components/DividerComponent").DividerComponent;
@@ -1,4 +1,4 @@
1
1
  import type { FormLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { StepComponent } from '../../types';
3
3
  import type { MapperProps } from '../schema/types';
4
- export declare const formLayoutToComponent: ({ schemaId, control, margin }: FormLayout, mapperProps: MapperProps) => StepComponent;
4
+ export declare const formLayoutToComponent: (uid: string, { schemaId, control, margin }: FormLayout, mapperProps: MapperProps) => StepComponent;
@@ -1,2 +1,2 @@
1
1
  import type { HeadingLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const headingLayoutToComponent: ({ align, margin, size, control, text, }: HeadingLayout) => import("../../components/HeadingComponent").HeadingComponent;
2
+ export declare const headingLayoutToComponent: (uid: string, { align, margin, size, control, text }: HeadingLayout) => import("../../components/HeadingComponent").HeadingComponent;
@@ -1,2 +1,2 @@
1
1
  import type { ImageLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const imageLayoutToComponent: ({ accessibilityDescription, control, margin, size, text, url, }: ImageLayout) => import("../../components/ImageComponent").ImageComponent;
2
+ export declare const imageLayoutToComponent: (uid: string, { accessibilityDescription, control, margin, size, text, url }: ImageLayout) => import("../../components/ImageComponent").ImageComponent;
@@ -1,2 +1,2 @@
1
1
  import type { InfoLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const infoLayoutToComponent: ({ align, control, margin, markdown: content, }: InfoLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
2
+ export declare const infoLayoutToComponent: (uid: string, { align, control, margin, markdown: content }: InfoLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
@@ -1,2 +1,2 @@
1
1
  import type { InstructionsLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const instructionsLayoutToComponent: ({ control, items, margin, title, }: InstructionsLayout) => import("../../components/InstructionsComponent").InstructionsComponent;
2
+ export declare const instructionsLayoutToComponent: (uid: string, { control, items, margin, title }: InstructionsLayout) => import("../../components/InstructionsComponent").InstructionsComponent;
@@ -1,2 +1,2 @@
1
1
  import type { ListLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const listLayoutToComponent: ({ control, items, margin, title }: ListLayout) => import("../../components/StatusListComponent").StatusListComponent;
2
+ export declare const listLayoutToComponent: (uid: string, { control, items, margin, title }: ListLayout) => import("../../components/StatusListComponent").StatusListComponent;
@@ -1,2 +1,2 @@
1
1
  import type { LoadingIndicatorLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const loadingIndicatorLayoutToComponent: ({ size, margin, control, }: LoadingIndicatorLayout) => import("../../components/LoadingIndicatorComponent").LoadingIndicatorComponent;
2
+ export declare const loadingIndicatorLayoutToComponent: (uid: string, { size, margin, control }: LoadingIndicatorLayout) => import("../../components/LoadingIndicatorComponent").LoadingIndicatorComponent;
@@ -1,2 +1,2 @@
1
1
  import type { MarkdownLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const markdownLayoutToComponent: ({ align, margin, control, content, }: MarkdownLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
2
+ export declare const markdownLayoutToComponent: (uid: string, { align, margin, control, content }: MarkdownLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
@@ -1,3 +1,3 @@
1
1
  import type { ModalLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps } from '../schema/types';
3
- export declare const modalLayoutToComponent: ({ content, control, margin, trigger }: ModalLayout, mapperProps: MapperProps) => import("../../components/ModalComponent").ModalComponent;
3
+ export declare const modalLayoutToComponent: (uid: string, { content, control, margin, trigger }: ModalLayout, mapperProps: MapperProps) => import("../../components/ModalComponent").ModalComponent;
@@ -1,2 +1,2 @@
1
1
  import type { ParagraphLayout } from '@wise/dynamic-flow-types/build/next';
2
- export declare const paragraphLayoutToComponent: ({ align, control, margin, text, }: ParagraphLayout) => import("../../components/ParagraphComponent").ParagraphComponent;
2
+ export declare const paragraphLayoutToComponent: (uid: string, { align, control, margin, text }: ParagraphLayout) => import("../../components/ParagraphComponent").ParagraphComponent;
@@ -1,3 +1,3 @@
1
1
  import type { ReviewLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps } from '../schema/types';
3
- export declare const reviewLayoutToComponent: ({ fields, title, callToAction, control, margin, orientation, action }: ReviewLayout, { onAction }: MapperProps) => import("../../components/ReviewComponent").ReviewComponent;
3
+ export declare const reviewLayoutToComponent: (uid: string, { fields, title, callToAction, control, margin, orientation, action }: ReviewLayout, { onAction }: MapperProps) => import("../../components/ReviewComponent").ReviewComponent;