@wise/dynamic-flow-client 4.5.3-experimental-sca-error-handling-8133bb0 → 4.5.3

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 (33) hide show
  1. package/build/i18n/cs.json +12 -12
  2. package/build/types/revamp/domain/components/AlertComponent.d.ts +2 -2
  3. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +2 -2
  4. package/build/types/revamp/domain/components/BoxComponent.d.ts +2 -2
  5. package/build/types/revamp/domain/components/ButtonComponent.d.ts +2 -2
  6. package/build/types/revamp/domain/components/ColumnsComponent.d.ts +2 -2
  7. package/build/types/revamp/domain/components/DateInputComponent.d.ts +2 -2
  8. package/build/types/revamp/domain/components/DecisionComponent.d.ts +2 -2
  9. package/build/types/revamp/domain/components/DividerComponent.d.ts +2 -2
  10. package/build/types/revamp/domain/components/FormComponent.d.ts +2 -2
  11. package/build/types/revamp/domain/components/HeadingComponent.d.ts +2 -2
  12. package/build/types/revamp/domain/components/ImageComponent.d.ts +2 -2
  13. package/build/types/revamp/domain/components/InstructionsComponent.d.ts +2 -2
  14. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +2 -2
  15. package/build/types/revamp/domain/components/ListComponent.d.ts +2 -2
  16. package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +2 -2
  17. package/build/types/revamp/domain/components/MarkdownComponent.d.ts +2 -2
  18. package/build/types/revamp/domain/components/ModalComponent.d.ts +2 -2
  19. package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +2 -2
  20. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +2 -2
  21. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +2 -2
  22. package/build/types/revamp/domain/components/ParagraphComponent.d.ts +2 -2
  23. package/build/types/revamp/domain/components/ReviewComponent.d.ts +2 -2
  24. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +2 -2
  25. package/build/types/revamp/domain/components/StatusListComponent.d.ts +2 -2
  26. package/build/types/revamp/domain/components/TextInputComponent.d.ts +2 -2
  27. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +2 -2
  28. package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +2 -2
  29. package/build/types/revamp/domain/mappers/mapSchemaToComponent.d.ts +2 -2
  30. package/build/types/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +1 -1
  31. package/build/types/revamp/domain/types.d.ts +8 -6
  32. package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +2 -2
  33. package/package.json +20 -20
@@ -4,9 +4,9 @@
4
4
  "dynamicFlows.ArraySchema.editItem": "Uložit",
5
5
  "dynamicFlows.ArraySchema.maxItemsError": "Přidejte {maxItems} nebo méně.",
6
6
  "dynamicFlows.ArraySchema.minItemsError": "Přidejte alespoň {minItems}.",
7
- "dynamicFlows.ArraySchema.removeItem": "Odstranit",
7
+ "dynamicFlows.ArraySchema.removeItem": "Odebrat",
8
8
  "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Zkuste to znovu",
9
- "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Zkontrolujte, jestli je připojená a zkuste to znovu.",
9
+ "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Zkontrolujte, jestli je připojený a zkuste to znovu.",
10
10
  "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Nemůžeme získat přístup k vašemu fotoaparátu",
11
11
  "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Prohlížeč, který používáte, nepodporuje fotoaparát. Zkuste jiný prohlížeč, jiné zařízení, nebo si stáhněte naši mobilní aplikaci.",
12
12
  "dynamicFlows.CameraCapture.CameraNotSupported.title": "Fotoaparát není podporovaný",
@@ -14,15 +14,15 @@
14
14
  "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Abyste mohli pokračovat, povolte v nastavení prohlížeče přístup k fotoaparátu.",
15
15
  "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nemůžeme získat přístup k vašemu fotoaparátu",
16
16
  "dynamicFlows.CameraCapture.reviewInstructions": "Je vaše fotka jasná, zřetelná a úplná?",
17
- "dynamicFlows.CameraCapture.reviewRetry": "Ne, zkusíme to znovu",
17
+ "dynamicFlows.CameraCapture.reviewRetry": "Ne, zkuste to znovu",
18
18
  "dynamicFlows.CameraCapture.reviewSubmit": "Ano, odeslat",
19
19
  "dynamicFlows.CameraCapture.rotatePhone.text": "Otočte telefon do svislé polohy a pořiďte fotku",
20
20
  "dynamicFlows.ControlFeedback.maxLength": "Zadejte {maxLength} nebo méně znaků.",
21
21
  "dynamicFlows.ControlFeedback.maximum": "Zadejte číslo, které je {maximum} nebo menší.",
22
- "dynamicFlows.ControlFeedback.maximumDate": "Zadejte datum, které je v den nebo před {maximum}.",
23
- "dynamicFlows.ControlFeedback.minLength": "Zadejte alespoň {minLength} znaků.",
24
- "dynamicFlows.ControlFeedback.minimum": "Zadejte číslo, které je {minimum} nebo více.",
25
- "dynamicFlows.ControlFeedback.minimumDate": "Zadejte datum, které je v den nebo po {minimum}.",
22
+ "dynamicFlows.ControlFeedback.maximumDate": "Zadejte datum, které je {maximum} nebo předtím.",
23
+ "dynamicFlows.ControlFeedback.minLength": "Zadejte alespoň následující počet znaků: {minLength}.",
24
+ "dynamicFlows.ControlFeedback.minimum": "Zadejte číslo, které je {minimum} nebo vyšší.",
25
+ "dynamicFlows.ControlFeedback.minimumDate": "Zadejte datum, které je {minimum} nebo potom.",
26
26
  "dynamicFlows.ControlFeedback.pattern": "Zadejte to prosím ve správném formátu.",
27
27
  "dynamicFlows.ControlFeedback.patternDate": "Zadejte prosím datum ve správném formátu.",
28
28
  "dynamicFlows.ControlFeedback.required": "Vyplňte prosím toto pole.",
@@ -37,14 +37,14 @@
37
37
  "dynamicFlows.ExternalConfirmation.description": "Potvrďte, že chcete otevřít **{origin}** v nové kartě prohlížeče.",
38
38
  "dynamicFlows.ExternalConfirmation.open": "Otevřít v nové kartě",
39
39
  "dynamicFlows.ExternalConfirmation.title": "Potvrďte",
40
- "dynamicFlows.FileUploadSchema.maxFileSizeError": "Pardon, tento soubor je příliš velký. Nahrajte prosím menší soubor.",
40
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Je nám líto, ale tento soubor je příliš velký. Nahrajte prosím menší soubor.",
41
41
  "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Je nám líto, tento formát souboru není podporován. Nahrajte jiný soubor.",
42
42
  "dynamicFlows.Help.ariaLabel": "Pro více informací klikněte sem.",
43
- "dynamicFlows.MultiSelect.summary": "{first} a {count} více",
44
- "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Pardon, tento soubor je příliš velký. Nahrajte prosím menší soubor.",
43
+ "dynamicFlows.MultiSelect.summary": "{first} a {count} další(ch)",
44
+ "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Je nám líto, ale tento soubor je příliš velký. Nahrajte prosím menší soubor.",
45
45
  "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Nahrajte {maxItems} nebo méně souborů.",
46
- "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Nahrajte prosím alespoň {minItems} soubor(y).",
47
- "dynamicFlows.PersistAsyncSchema.genericError": "Něco se pokazilo. Prosím, zkuste to znovu.",
46
+ "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Nahrajte prosím alespoň následující počet souborů: {minItems}.",
47
+ "dynamicFlows.PersistAsyncSchema.genericError": "Něco se pokazilo. Zkuste to prosím znovu.",
48
48
  "dynamicFlows.ReadOnlySchema.no": "Ne",
49
49
  "dynamicFlows.ReadOnlySchema.yes": "Ano",
50
50
  "dynamicFlows.SearchLayout.loading": "Načítání..."
@@ -1,5 +1,5 @@
1
- import type { CallToAction, Context, LayoutComponent } from '../types';
2
- export type AlertComponent = LayoutComponent & {
1
+ import type { CallToAction, Context, BaseLayoutComponent } from '../types';
2
+ export type AlertComponent = BaseLayoutComponent & {
3
3
  type: 'alert';
4
4
  markdown: string;
5
5
  context: Context;
@@ -1,8 +1,8 @@
1
1
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
2
2
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
3
3
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
4
- import type { InputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, ValidationAsyncState } from '../types';
5
- export type BooleanInputComponent = InputComponent<boolean> & {
4
+ import type { BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, ValidationAsyncState } from '../types';
5
+ export type BooleanInputComponent = BaseInputComponent<boolean> & {
6
6
  type: 'boolean';
7
7
  persistedState: PersistedState;
8
8
  validationAsyncState: ValidationAsyncState;
@@ -1,6 +1,6 @@
1
1
  import type { Size } from '@wise/dynamic-flow-types/build/next';
2
- import type { LayoutComponent, DomainComponent } from '../types';
3
- export type BoxComponent = LayoutComponent & {
2
+ import type { BaseLayoutComponent, DomainComponent } from '../types';
3
+ export type BoxComponent = BaseLayoutComponent & {
4
4
  type: 'box';
5
5
  border: boolean;
6
6
  width: Size;
@@ -1,6 +1,6 @@
1
1
  import type { Size } from '@wise/dynamic-flow-types/build/next';
2
- import type { LayoutComponent, Context } from '../types';
3
- export type ButtonComponent = LayoutComponent & {
2
+ import type { BaseLayoutComponent, Context } from '../types';
3
+ export type ButtonComponent = BaseLayoutComponent & {
4
4
  type: 'button';
5
5
  context: Context;
6
6
  disabled: boolean;
@@ -1,5 +1,5 @@
1
- import type { Bias, LayoutComponent, DomainComponent } from '../types';
2
- export type ColumnsComponent = LayoutComponent & {
1
+ import type { Bias, BaseLayoutComponent, DomainComponent } from '../types';
2
+ export type ColumnsComponent = BaseLayoutComponent & {
3
3
  type: 'columns';
4
4
  bias: Bias;
5
5
  startComponents: DomainComponent[];
@@ -2,8 +2,8 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
2
2
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
3
3
  import type { IsInvalidCheck } from '../features/validation/value-checks';
4
4
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
- import type { InputComponent, OnValueChange, PersistedState, RepeatableSummary, Suggestions, UpdateComponent, ValidationAsyncState } from '../types';
6
- export type DateInputComponent = InputComponent<string | null> & {
5
+ import type { BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, Suggestions, UpdateComponent, ValidationAsyncState } from '../types';
6
+ export type DateInputComponent = BaseInputComponent<string | null> & {
7
7
  type: 'date';
8
8
  minimumDate?: string;
9
9
  maximumDate?: string;
@@ -1,6 +1,6 @@
1
1
  import type { Icon } from '@wise/dynamic-flow-types/build/next';
2
- import type { Image, InlineAlert, LayoutComponent, SupportingValues } from '../types';
3
- export type DecisionComponent = LayoutComponent & {
2
+ import type { Image, InlineAlert, BaseLayoutComponent, SupportingValues } from '../types';
3
+ export type DecisionComponent = BaseLayoutComponent & {
4
4
  type: 'decision';
5
5
  options: DecisionOption[];
6
6
  title?: string;
@@ -1,5 +1,5 @@
1
- import type { LayoutComponent } from '../types';
2
- export type DividerComponent = LayoutComponent & {
1
+ import type { BaseLayoutComponent } from '../types';
2
+ export type DividerComponent = BaseLayoutComponent & {
3
3
  type: 'divider';
4
4
  };
5
5
  export declare const createDividerComponent: (props: Pick<DividerComponent, "uid" | "control" | "margin">) => DividerComponent;
@@ -1,5 +1,5 @@
1
- import type { LayoutComponent, DomainComponent } from '../types';
2
- export type FormComponent = LayoutComponent & {
1
+ import type { BaseLayoutComponent, DomainComponent } from '../types';
2
+ export type FormComponent = BaseLayoutComponent & {
3
3
  type: 'form';
4
4
  components: DomainComponent[];
5
5
  getChildren: () => DomainComponent[];
@@ -1,6 +1,6 @@
1
1
  import type { Size } from '@wise/dynamic-flow-types/build/next';
2
- import type { LayoutComponent, Align } from '../types';
3
- export type HeadingComponent = LayoutComponent & {
2
+ import type { BaseLayoutComponent, Align } from '../types';
3
+ export type HeadingComponent = BaseLayoutComponent & {
4
4
  type: 'heading';
5
5
  text: string;
6
6
  align: Align;
@@ -1,6 +1,6 @@
1
1
  import type { Size } from '@wise/dynamic-flow-types/build/next';
2
- import type { Align, LayoutComponent } from '../types';
3
- export type ImageComponent = LayoutComponent & {
2
+ import type { Align, BaseLayoutComponent } from '../types';
3
+ export type ImageComponent = BaseLayoutComponent & {
4
4
  type: 'image';
5
5
  align: Align;
6
6
  content: ImageContent;
@@ -1,5 +1,5 @@
1
- import type { Context, LayoutComponent } from '../types';
2
- export type InstructionsComponent = LayoutComponent & {
1
+ import type { Context, BaseLayoutComponent } from '../types';
2
+ export type InstructionsComponent = BaseLayoutComponent & {
3
3
  type: 'instructions';
4
4
  items: InstructionItem[];
5
5
  title?: string;
@@ -2,8 +2,8 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
2
2
  import { type PerformRefresh } from '../features/refresh/getPerformRefresh';
3
3
  import type { IsInvalidCheck } from '../features/validation/value-checks';
4
4
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
- import type { InputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, ValidationAsyncState } from '../types';
6
- export type IntegerInputComponent = InputComponent<number | null> & {
5
+ import type { BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, ValidationAsyncState } from '../types';
6
+ export type IntegerInputComponent = BaseInputComponent<number | null> & {
7
7
  type: 'integer';
8
8
  maximum?: number;
9
9
  minimum?: number;
@@ -1,6 +1,6 @@
1
1
  import { Icon } from '@wise/dynamic-flow-types/build/next';
2
- import { AdditionalInfo, CallToAction, Image, InlineAlert, LayoutComponent, SupportingValues } from '../types';
3
- export type ListComponent = LayoutComponent & {
2
+ import { AdditionalInfo, CallToAction, Image, InlineAlert, BaseLayoutComponent, SupportingValues } from '../types';
3
+ export type ListComponent = BaseLayoutComponent & {
4
4
  type: 'list';
5
5
  items: ListItem[];
6
6
  title?: string;
@@ -1,6 +1,6 @@
1
1
  import type { Size } from '@wise/dynamic-flow-types/build/next';
2
- import type { LayoutComponent } from '../types';
3
- export type LoadingIndicatorComponent = LayoutComponent & {
2
+ import type { BaseLayoutComponent } from '../types';
3
+ export type LoadingIndicatorComponent = BaseLayoutComponent & {
4
4
  type: 'loading-indicator';
5
5
  control?: string;
6
6
  size: Size;
@@ -1,5 +1,5 @@
1
- import type { LayoutComponent, Align } from '../types';
2
- export type MarkdownComponent = LayoutComponent & {
1
+ import type { BaseLayoutComponent, Align } from '../types';
2
+ export type MarkdownComponent = BaseLayoutComponent & {
3
3
  type: 'markdown';
4
4
  align: Align;
5
5
  content: string;
@@ -1,6 +1,6 @@
1
1
  import type { ModalLayoutTrigger } from '@wise/dynamic-flow-types/build/next/layout/ModalLayoutTrigger';
2
- import type { LayoutComponent, DomainComponent } from '../types';
3
- export type ModalComponent = LayoutComponent & {
2
+ import type { BaseLayoutComponent, DomainComponent } from '../types';
3
+ export type ModalComponent = BaseLayoutComponent & {
4
4
  type: 'modal';
5
5
  content: ModalContent;
6
6
  trigger: ModalLayoutTrigger;
@@ -1,9 +1,9 @@
1
1
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
3
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
4
- import type { DomainComponent, InputComponent, LocalValue, LocalValueArray, OnValueChange, UpdateComponent, ValidationAsyncState } from '../types';
4
+ import type { DomainComponent, BaseInputComponent, LocalValue, LocalValueArray, OnValueChange, UpdateComponent, ValidationAsyncState } from '../types';
5
5
  import type { SelectInputOption } from './SelectInputComponent';
6
- export type MultiSelectComponent = InputComponent<LocalValueArray | null> & {
6
+ export type MultiSelectComponent = BaseInputComponent<LocalValueArray | null> & {
7
7
  type: 'multi-select';
8
8
  children: DomainComponent[];
9
9
  maxItems?: number;
@@ -1,8 +1,8 @@
1
1
  import { JsonElement } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
3
3
  import type { IsInvalidCheck } from '../features/validation/value-checks';
4
- import type { InputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, UploadSource } from '../types';
5
- export type MultiUploadInputComponent = InputComponent<File[]> & {
4
+ import type { BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, UploadSource } from '../types';
5
+ export type MultiUploadInputComponent = BaseInputComponent<File[]> & {
6
6
  type: 'multi-upload';
7
7
  accepts?: string[];
8
8
  cameraConfig?: JsonElement;
@@ -2,8 +2,8 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
2
2
  import { type PerformRefresh } from '../features/refresh/getPerformRefresh';
3
3
  import type { IsInvalidCheck } from '../features/validation/value-checks';
4
4
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
- import type { InputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, ValidationAsyncState } from '../types';
6
- export type NumberInputComponent = InputComponent<number | null> & {
5
+ import type { BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, ValidationAsyncState } from '../types';
6
+ export type NumberInputComponent = BaseInputComponent<number | null> & {
7
7
  type: 'number';
8
8
  maximum?: number;
9
9
  minimum?: number;
@@ -1,5 +1,5 @@
1
- import type { Align, LayoutComponent } from '../types';
2
- export type ParagraphComponent = LayoutComponent & {
1
+ import type { Align, BaseLayoutComponent } from '../types';
2
+ export type ParagraphComponent = BaseLayoutComponent & {
3
3
  type: 'paragraph';
4
4
  align: Align;
5
5
  text: string;
@@ -1,6 +1,6 @@
1
1
  import { Icon } from '@wise/dynamic-flow-types/build/next';
2
- import type { AdditionalInfo, CallToAction, Image, InlineAlert, LayoutComponent } from '../types';
3
- export type ReviewComponent = LayoutComponent & {
2
+ import type { AdditionalInfo, CallToAction, Image, InlineAlert, BaseLayoutComponent } from '../types';
3
+ export type ReviewComponent = BaseLayoutComponent & {
4
4
  type: 'review';
5
5
  fields: ReviewField[];
6
6
  title?: string;
@@ -2,8 +2,8 @@ import type { Icon, Model } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { AnalyticsEventDispatcher } from '../features/events';
3
3
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
4
4
  import type { IsInvalidCheck } from '../features/validation/value-checks';
5
- import type { DomainComponent, Image, InputComponent, LocalValue, OnValueChange, RepeatableSummary, UpdateComponent } from '../types';
6
- export type SelectInputComponent = InputComponent<LocalValue | null> & {
5
+ import type { DomainComponent, Image, BaseInputComponent, LocalValue, OnValueChange, RepeatableSummary, UpdateComponent } from '../types';
6
+ export type SelectInputComponent = BaseInputComponent<LocalValue | null> & {
7
7
  type: 'select';
8
8
  selectedIndex: number | null;
9
9
  options: SelectInputOption[];
@@ -1,5 +1,5 @@
1
- import type { LayoutComponent } from '../types';
2
- export type StatusListComponent = LayoutComponent & {
1
+ import type { BaseLayoutComponent } from '../types';
2
+ export type StatusListComponent = BaseLayoutComponent & {
3
3
  type: 'status-list';
4
4
  items: StatusListItem[];
5
5
  title?: string;
@@ -2,8 +2,8 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
2
2
  import { type PerformRefresh } from '../features/refresh/getPerformRefresh';
3
3
  import type { IsInvalidCheck } from '../features/validation/value-checks';
4
4
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
- import type { Autocapitalization, InputComponent, OnValueChange, PersistedState, RepeatableSummary, Suggestions, UpdateComponent, ValidationAsyncState } from '../types';
6
- export type TextInputComponent = InputComponent<string | null> & {
5
+ import type { Autocapitalization, BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, Suggestions, UpdateComponent, ValidationAsyncState } from '../types';
6
+ export type TextInputComponent = BaseInputComponent<string | null> & {
7
7
  type: 'text';
8
8
  autocapitalization?: Autocapitalization;
9
9
  displayFormat?: string;
@@ -2,8 +2,8 @@ import { JsonElement } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
3
3
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
4
4
  import type { IsInvalidCheck } from '../features/validation/value-checks';
5
- import type { InputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, UploadSource } from '../types';
6
- export type UploadInputComponent = InputComponent<File | null> & {
5
+ import type { BaseInputComponent, OnValueChange, PersistedState, RepeatableSummary, UpdateComponent, UploadSource } from '../types';
6
+ export type UploadInputComponent = BaseInputComponent<File | null> & {
7
7
  type: 'upload';
8
8
  format: 'blob' | 'base64';
9
9
  cameraConfig?: JsonElement;
@@ -1,5 +1,5 @@
1
1
  import type { SearchResult } from '@wise/dynamic-flow-types/build/next';
2
- import type { LayoutComponent, OnBehavior, UpdateComponent } from '../../types';
2
+ import type { BaseLayoutComponent, OnBehavior, UpdateComponent } from '../../types';
3
3
  export type SearchConfig = {
4
4
  method: string;
5
5
  param: string;
@@ -11,7 +11,7 @@ export type SearchProps = {
11
11
  signal: AbortSignal;
12
12
  };
13
13
  export type PerformSearch = (props: SearchProps) => Promise<SearchResult[]>;
14
- export type SearchComponent = LayoutComponent & {
14
+ export type SearchComponent = BaseLayoutComponent & {
15
15
  type: 'search';
16
16
  emptyMessage: string;
17
17
  isLoading: boolean;
@@ -1,3 +1,3 @@
1
- import type { DomainComponent } from '../types';
1
+ import type { InputComponent } from '../types';
2
2
  import type { MapperProps, SchemaMapperProps } from './schema/types';
3
- export declare const mapSchemaToComponent: (schemaMapperProps: SchemaMapperProps, mapperProps: MapperProps) => DomainComponent;
3
+ export declare const mapSchemaToComponent: (schemaMapperProps: SchemaMapperProps, mapperProps: MapperProps) => InputComponent;
@@ -2,4 +2,4 @@ import type { OneOfSchema } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps, SchemaMapperProps } from '../types';
3
3
  export declare const oneOfSchemaToComponent: (schemaMapperProps: SchemaMapperProps & {
4
4
  schema: OneOfSchema;
5
- }, mapperProps: MapperProps) => import("../../../types").DomainComponent;
5
+ }, mapperProps: MapperProps) => import("../../../types").InputComponent;
@@ -1,4 +1,4 @@
1
- import type { Action, Icon, JsonElement, Margin, Model, ActionBehavior, LinkBehavior, DismissBehavior, ModalBehavior } from '@wise/dynamic-flow-types/build/next';
1
+ import type { Action, ActionBehavior, DismissBehavior, Icon, JsonElement, LinkBehavior, Margin, ModalBehavior, Model } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { AlertComponent } from './components/AlertComponent';
3
3
  import type { AllOfComponent } from './components/AllOfComponent';
4
4
  import type { BooleanInputComponent } from './components/BooleanInputComponent';
@@ -19,6 +19,7 @@ import type { ListComponent } from './components/ListComponent';
19
19
  import type { LoadingIndicatorComponent } from './components/LoadingIndicatorComponent';
20
20
  import type { MarkdownComponent } from './components/MarkdownComponent';
21
21
  import type { ModalComponent } from './components/ModalComponent';
22
+ import type { ModalContentComponent } from './components/ModalContentComponent';
22
23
  import type { MultiSelectComponent } from './components/MultiSelectInputComponent';
23
24
  import type { MultiUploadInputComponent } from './components/MultiUploadInputComponent';
24
25
  import type { NumberInputComponent } from './components/NumberInputComponent';
@@ -30,13 +31,14 @@ import type { RootDomainComponent } from './components/RootDomainComponent';
30
31
  import type { SearchComponent } from './components/searchComponent/SearchComponent';
31
32
  import type { SelectInputComponent } from './components/SelectInputComponent';
32
33
  import type { StatusListComponent } from './components/StatusListComponent';
34
+ import type { ExternalConfirmationComponent } from './components/step/ExternalConfirmationComponent';
33
35
  import type { StepDomainComponent } from './components/step/StepDomainComponent';
34
36
  import type { TextInputComponent } from './components/TextInputComponent';
35
37
  import type { TupleComponent } from './components/TupleComponent';
36
38
  import type { UploadInputComponent } from './components/UploadInputComponent';
37
- import { ModalContentComponent } from './components/ModalContentComponent';
38
- import { ExternalConfirmationComponent } from './components/step/ExternalConfirmationComponent';
39
- export type DomainComponent = RootDomainComponent | StepDomainComponent | AlertComponent | AllOfComponent | BooleanInputComponent | BoxComponent | ButtonComponent | ColumnsComponent | ConstComponent | ContainerComponent | DateInputComponent | DecisionComponent | DividerComponent | ExternalConfirmationComponent | FormComponent | HeadingComponent | ImageComponent | InstructionsComponent | IntegerInputComponent | ListComponent | LoadingIndicatorComponent | MarkdownComponent | ModalComponent | ModalContentComponent | MultiSelectComponent | MultiUploadInputComponent | NumberInputComponent | ObjectComponent | ParagraphComponent | RepeatableComponent | ReviewComponent | SearchComponent | SelectInputComponent | StatusListComponent | TextInputComponent | TupleComponent | UploadInputComponent;
39
+ export type DomainComponent = InputComponent | LayoutComponent;
40
+ export type InputComponent = AllOfComponent | BooleanInputComponent | ConstComponent | DateInputComponent | IntegerInputComponent | MultiSelectComponent | MultiUploadInputComponent | NumberInputComponent | ObjectComponent | RepeatableComponent | SelectInputComponent | TextInputComponent | TupleComponent | UploadInputComponent;
41
+ export type LayoutComponent = RootDomainComponent | StepDomainComponent | AlertComponent | BoxComponent | ButtonComponent | ColumnsComponent | ContainerComponent | DecisionComponent | DividerComponent | ExternalConfirmationComponent | FormComponent | HeadingComponent | ImageComponent | InstructionsComponent | ListComponent | LoadingIndicatorComponent | MarkdownComponent | ModalComponent | ModalContentComponent | ParagraphComponent | ReviewComponent | SearchComponent | StatusListComponent;
40
42
  export type LocalValue = LocalValuePrimitive | LocalValueObject | LocalValueArray;
41
43
  export type LocalValuePrimitive = string | number | boolean | File | null;
42
44
  export interface LocalValueObject extends Record<string, LocalValuePrimitive | LocalValueObject | LocalValueArray> {
@@ -69,7 +71,7 @@ export type BaseComponent = {
69
71
  getSummary: () => RepeatableSummary;
70
72
  validate: () => boolean;
71
73
  };
72
- export type LayoutComponent = BaseComponent & {
74
+ export type BaseLayoutComponent = BaseComponent & {
73
75
  control?: string;
74
76
  margin: Margin;
75
77
  getLocalValue: () => LocalValue;
@@ -87,7 +89,7 @@ export type ComponentWithTitle = BaseComponent & {
87
89
  image?: Image;
88
90
  title?: string;
89
91
  };
90
- export type InputComponent<V extends LocalValue> = ComponentWithTitle & {
92
+ export type BaseInputComponent<V extends LocalValue> = ComponentWithTitle & {
91
93
  id: string;
92
94
  autoComplete: string;
93
95
  disabled: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ValidationResult } from '@wise/dynamic-flow-types/build/renderers';
2
- import type { InputComponent, LocalValue } from '../../../domain/types';
3
- export declare const inputComponentToProps: <T extends string, V extends LocalValue>(component: InputComponent<V>, type: T) => {
2
+ import type { BaseInputComponent, LocalValue } from '../../../domain/types';
3
+ export declare const inputComponentToProps: <T extends string, V extends LocalValue>(component: BaseInputComponent<V>, type: T) => {
4
4
  uid: string;
5
5
  type: T;
6
6
  control: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.5.3-experimental-sca-error-handling-8133bb0",
3
+ "version": "4.5.3",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -30,14 +30,14 @@
30
30
  "url": "git+https://github.com/transferwise/dynamic-flow.git"
31
31
  },
32
32
  "devDependencies": {
33
- "@babel/core": "7.26.10",
34
- "@babel/plugin-syntax-flow": "7.26.0",
35
- "@babel/plugin-transform-react-jsx": "7.25.9",
36
- "@babel/preset-env": "7.26.9",
37
- "@babel/preset-react": "7.26.3",
38
- "@babel/preset-typescript": "7.27.0",
33
+ "@babel/core": "7.27.1",
34
+ "@babel/plugin-syntax-flow": "7.27.1",
35
+ "@babel/plugin-transform-react-jsx": "7.27.1",
36
+ "@babel/preset-env": "7.27.2",
37
+ "@babel/preset-react": "7.27.1",
38
+ "@babel/preset-typescript": "7.27.1",
39
39
  "@chromatic-com/storybook": "3.2.6",
40
- "@formatjs/cli": "^6.6.4",
40
+ "@formatjs/cli": "^6.7.1",
41
41
  "@storybook/addon-a11y": "^8.6.12",
42
42
  "@storybook/addon-actions": "^8.6.12",
43
43
  "@storybook/addon-essentials": "^8.6.12",
@@ -53,19 +53,19 @@
53
53
  "@testing-library/jest-dom": "6.6.3",
54
54
  "@testing-library/react": "16.3.0",
55
55
  "@testing-library/user-event": "14.6.1",
56
- "@transferwise/components": "46.97.0",
56
+ "@transferwise/components": "46.97.2",
57
57
  "@transferwise/formatting": "^2.13.1",
58
58
  "@transferwise/icons": "3.21.0",
59
- "@transferwise/neptune-css": "14.24.3",
60
- "@types/node": "22.15.3",
59
+ "@transferwise/neptune-css": "14.24.4",
60
+ "@types/node": "22.15.18",
61
61
  "@types/jest": "29.5.14",
62
- "@types/react": "18.3.20",
63
- "@types/react-dom": "18.3.6",
62
+ "@types/react": "18.3.21",
63
+ "@types/react-dom": "18.3.7",
64
64
  "@types/react-intl": "3.0.0",
65
- "@wise/art": "2.20.1",
65
+ "@wise/art": "2.20.2",
66
66
  "@wise/components-theming": "^1.6.2",
67
67
  "babel-jest": "29.7.0",
68
- "esbuild": "0.25.3",
68
+ "esbuild": "0.25.4",
69
69
  "jest": "29.7.0",
70
70
  "jest-environment-jsdom": "29.7.0",
71
71
  "jest-fetch-mock": "^3.0.3",
@@ -82,11 +82,11 @@
82
82
  "stylelint-config-standard": "36.0.1",
83
83
  "stylelint-no-unsupported-browser-features": "8.0.4",
84
84
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
85
- "tsx": "4.19.3",
85
+ "tsx": "4.19.4",
86
86
  "typescript": "5.8.3",
87
- "webpack": "5.99.7",
88
- "@wise/dynamic-flow-renderers": "0.0.0",
89
- "@wise/dynamic-flow-fixtures": "0.0.1"
87
+ "webpack": "5.99.8",
88
+ "@wise/dynamic-flow-fixtures": "0.0.1",
89
+ "@wise/dynamic-flow-renderers": "0.0.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@transferwise/components": "^46.92.0",
@@ -102,7 +102,7 @@
102
102
  "classnames": "2.5.1",
103
103
  "react-webcam": "^7.2.0",
104
104
  "screenfull": "^5.2.0",
105
- "@wise/dynamic-flow-types": "3.3.1"
105
+ "@wise/dynamic-flow-types": "3.3.2"
106
106
  },
107
107
  "scripts": {
108
108
  "dev": "pnpm build:visual-tests && storybook dev -p 3003",