@wise/dynamic-flow-client 3.0.0 → 3.0.2

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 (25) hide show
  1. package/build/main.js +138 -77
  2. package/build/main.min.js +1 -1
  3. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +2 -1
  4. package/build/types/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +2 -0
  5. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +6 -5
  6. package/build/types/revamp/domain/components/DateInputComponent.d.ts +6 -3
  7. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +6 -3
  8. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +6 -3
  9. package/build/types/revamp/domain/components/TextInputComponent.d.ts +6 -3
  10. package/build/types/revamp/domain/features/events/getAnalyticsEventDispatcher.d.ts +3 -2
  11. package/build/types/revamp/domain/features/utils/http-utils.d.ts +18 -0
  12. package/build/types/revamp/domain/features/validation/spec-utils.d.ts +2 -16
  13. package/build/types/revamp/domain/features/validationAsync/getComponentValidationAsync.d.ts +14 -0
  14. package/build/types/revamp/domain/features/validationAsync/getInitialValidationState.d.ts +2 -0
  15. package/build/types/revamp/domain/features/validationAsync/getPerformValidationAsync.d.ts +20 -0
  16. package/build/types/revamp/domain/mappers/schema/utils/getValidationAsyncInitialState.d.ts +5 -0
  17. package/build/types/revamp/domain/mappers/types.d.ts +2 -1
  18. package/build/types/revamp/domain/types.d.ts +8 -0
  19. package/build/types/revamp/flow/executeRefresh.d.ts +5 -2
  20. package/build/types/revamp/flow/executeSubmission.d.ts +12 -3
  21. package/build/types/revamp/flow/response-utils.d.ts +1 -0
  22. package/build/types/revamp/step/Step.d.ts +4 -2
  23. package/build/types/test-utils/fetch-utils.d.ts +1 -1
  24. package/package.json +2 -2
  25. /package/build/types/revamp/domain/features/persistAsync/{persist-async-utils.d.ts → getInitialPersistedState.d.ts} +0 -0
@@ -3,6 +3,7 @@ import type { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
3
3
  type RepeatableSchemaProps = Omit<GenericSchemaProps, 'model' | 'onPersistAsync'> & {
4
4
  schema: ListArraySchema;
5
5
  model: ArrayModel | null;
6
+ required?: boolean;
6
7
  };
7
- declare function RepeatableSchema({ schema, model, errors, submitted, onChange }: RepeatableSchemaProps): JSX.Element;
8
+ declare function RepeatableSchema({ schema, model, errors, submitted, required, onChange, }: RepeatableSchemaProps): JSX.Element;
8
9
  export default RepeatableSchema;
@@ -13,6 +13,8 @@ type ValidationMessages = {
13
13
  maximum?: string;
14
14
  minLength?: string;
15
15
  maxLength?: string;
16
+ minItems?: string;
17
+ maxItems?: string;
16
18
  pattern?: string;
17
19
  required?: string;
18
20
  };
@@ -1,15 +1,16 @@
1
- import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
2
- import type { IsInvalidCheck } from '../features/validation/value-checks';
1
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
3
2
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
3
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
4
+ import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
5
  export type BooleanInputComponent = InputComponent<boolean> & {
6
6
  type: 'boolean';
7
7
  persistedState: PersistedState;
8
+ validationState: ValidationState;
8
9
  onChange: (value: boolean) => void;
9
10
  };
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>[];
11
+ export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "control" | "id" | "errors" | "required" | "value" | "uid" | "persistedState" | "validationState"> & {
12
12
  performPersistAsync: PerformPersistAsync | undefined;
13
- performRefresh?: PerformRefresh | undefined;
13
+ performRefresh: PerformRefresh | undefined;
14
+ performValidationAsync: PerformValidationAsync | undefined;
14
15
  summariser: (value: boolean) => RepeatableSummary;
15
16
  }, updateComponent: UpdateComponent) => BooleanInputComponent;
@@ -1,17 +1,20 @@
1
1
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
- import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
3
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
4
4
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
6
  export type DateInputComponent = InputComponent<string | null> & {
6
7
  type: 'date';
7
8
  minimumDate?: string;
8
9
  maximumDate?: string;
9
10
  persistedState: PersistedState;
11
+ validationState: ValidationState;
10
12
  onChange: (value: string | null) => void;
11
13
  };
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"> & {
14
+ export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "minimumDate" | "maximumDate" | "uid" | "persistedState" | "validationState"> & {
13
15
  checks: IsInvalidCheck<string | null>[];
14
16
  performPersistAsync: PerformPersistAsync | undefined;
15
- performRefresh?: PerformRefresh | undefined;
17
+ performRefresh: PerformRefresh | undefined;
18
+ performValidationAsync: PerformValidationAsync | undefined;
16
19
  summariser: (value: string | null) => RepeatableSummary;
17
20
  }, updateComponent: UpdateComponent) => DateInputComponent;
@@ -1,15 +1,18 @@
1
- import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
1
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
4
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
6
  export type IntegerInputComponent = InputComponent<number | null> & {
6
7
  type: 'integer';
7
8
  persistedState: PersistedState;
9
+ validationState: ValidationState;
8
10
  onChange: (value: number | null) => void;
9
11
  };
10
- export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
12
+ export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState" | "validationState"> & {
11
13
  checks: IsInvalidCheck<number | null>[];
12
14
  performPersistAsync: PerformPersistAsync | undefined;
13
- performRefresh?: PerformRefresh | undefined;
15
+ performRefresh: PerformRefresh | undefined;
16
+ performValidationAsync: PerformValidationAsync | undefined;
14
17
  summariser: (value: number | null) => RepeatableSummary;
15
18
  }, updateComponent: UpdateComponent) => IntegerInputComponent;
@@ -1,15 +1,18 @@
1
- import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
1
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
2
2
  import type { IsInvalidCheck } from '../features/validation/value-checks';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
4
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
6
  export type NumberInputComponent = InputComponent<number | null> & {
6
7
  type: 'number';
7
8
  persistedState: PersistedState;
9
+ validationState: ValidationState;
8
10
  onChange: (value: number | null) => void;
9
11
  };
10
- export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
12
+ export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState" | "validationState"> & {
11
13
  checks: IsInvalidCheck<number | null>[];
12
14
  performPersistAsync: PerformPersistAsync | undefined;
13
- performRefresh?: PerformRefresh | undefined;
15
+ performRefresh: PerformRefresh | undefined;
16
+ performValidationAsync: PerformValidationAsync | undefined;
14
17
  summariser: (value: number | null) => RepeatableSummary;
15
18
  }, updateComponent: UpdateComponent) => NumberInputComponent;
@@ -1,16 +1,19 @@
1
1
  import type { IsInvalidCheck } from '../features/validation/value-checks';
2
- import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent } from '../types';
2
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
3
3
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
4
4
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
5
+ import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
5
6
  export type TextInputComponent = InputComponent<string | null> & {
6
7
  type: 'text';
7
8
  displayFormat?: string;
8
9
  persistedState: PersistedState;
10
+ validationState: ValidationState;
9
11
  onChange: (value: string | null) => void;
10
12
  };
11
- export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "displayFormat" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
13
+ export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "analyticsId" | "description" | "disabled" | "help" | "hidden" | "title" | "placeholder" | "control" | "displayFormat" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState" | "validationState"> & {
12
14
  checks: IsInvalidCheck<string | null>[];
13
15
  performPersistAsync: PerformPersistAsync | undefined;
14
- performRefresh?: PerformRefresh | undefined;
16
+ performValidationAsync: PerformValidationAsync | undefined;
17
+ performRefresh: PerformRefresh | undefined;
15
18
  summariser: (value: string | null) => RepeatableSummary;
16
19
  }, updateComponent: UpdateComponent) => TextInputComponent;
@@ -1,9 +1,10 @@
1
1
  import type { Step } from '@wise/dynamic-flow-types/build/next';
2
2
  export type AnalyticsEventHandler = (eventName: string, properties?: Record<string, unknown>) => void;
3
3
  export type AnalyticsEventDispatcher = (eventName: EventName, properties?: Record<string, unknown>) => void;
4
- export declare const getAnalyticsEventDispatcher: ({ flowId, step, onEvent, }: {
4
+ export declare const getAnalyticsEventDispatcher: ({ flowId, stepId, analytics, onEvent, }: {
5
5
  flowId: string;
6
- step?: Step | null | undefined;
6
+ stepId?: string | undefined;
7
+ analytics?: Step['analytics'];
7
8
  onEvent?: AnalyticsEventHandler | undefined;
8
9
  }) => AnalyticsEventDispatcher;
9
10
  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';
@@ -0,0 +1,18 @@
1
+ import type { LocalValue } from '../../types';
2
+ import type { HttpMethod } from '@wise/dynamic-flow-types';
3
+ export declare function constructPayload({ value, signal, requestConfig, }: {
4
+ value: LocalValue;
5
+ signal: AbortSignal;
6
+ requestConfig: {
7
+ method: HttpMethod;
8
+ param: string;
9
+ };
10
+ }): {
11
+ method: HttpMethod;
12
+ headers: {
13
+ 'Content-Type'?: string | undefined;
14
+ };
15
+ body: string | FormData;
16
+ signal: AbortSignal;
17
+ };
18
+ export declare const abortAndResetController: (abortController: AbortController) => AbortController;
@@ -1,16 +1,2 @@
1
- /// <reference types="jest" />
2
- export declare const mockErrorMessageFunctions: {
3
- minimum: jest.Mock<any, any, any>;
4
- maximum: jest.Mock<any, any, any>;
5
- minimumDate: jest.Mock<any, any, any>;
6
- maximumDate: jest.Mock<any, any, any>;
7
- minLength: jest.Mock<any, any, any>;
8
- maxLength: jest.Mock<any, any, any>;
9
- minFiles: jest.Mock<any, any, any>;
10
- maxFiles: jest.Mock<any, any, any>;
11
- minItems: jest.Mock<any, any, any>;
12
- maxItems: jest.Mock<any, any, any>;
13
- pattern: jest.Mock<any, any, any>;
14
- required: jest.Mock<any, any, any>;
15
- persistAsyncError: jest.Mock<any, any, any>;
16
- };
1
+ import type { ErrorMessageFunctions } from '../../mappers/types';
2
+ export declare const mockErrorMessageFunctions: ErrorMessageFunctions;
@@ -0,0 +1,14 @@
1
+ import type { getInputUpdateFunction } from '../../components/utils/component-utils';
2
+ import type { PerformValidationAsync } from './getPerformValidationAsync';
3
+ import type { BooleanInputComponent } from '../../components/BooleanInputComponent';
4
+ import type { DateInputComponent } from '../../components/DateInputComponent';
5
+ import type { IntegerInputComponent } from '../../components/IntegerInputComponent';
6
+ import type { NumberInputComponent } from '../../components/NumberInputComponent';
7
+ import type { TextInputComponent } from '../../components/TextInputComponent';
8
+ import type { LocalValue, ValidationState } from '../../types';
9
+ type Validatable = BooleanInputComponent | DateInputComponent | IntegerInputComponent | NumberInputComponent | TextInputComponent;
10
+ /**
11
+ * Creates an onValidateAsync handler for a component.
12
+ */
13
+ export declare const getComponentValidationAsync: (update: ReturnType<typeof getInputUpdateFunction<Validatable>>, performValidationAsync: PerformValidationAsync) => (validationState: ValidationState, currentValue: LocalValue) => Promise<string | null | undefined>;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ValidationState } from '../../types';
2
+ export declare const getInitialValidationState: () => ValidationState;
@@ -0,0 +1,20 @@
1
+ import type { ValidateAsync } from '@wise/dynamic-flow-types/build/next/feature/ValidateAsync';
2
+ import type { HttpClient } from '../../../types';
3
+ import type { AnalyticsEventDispatcher } from '../events';
4
+ import type { LocalValue } from '../../types';
5
+ export type PerformValidationAsync = (props: ValidationAsyncProps) => Promise<string | null>;
6
+ type ValidationAsyncProps = {
7
+ value: LocalValue;
8
+ signal: AbortSignal;
9
+ };
10
+ /**
11
+ * Takes an httpClient and schema validation async config and returns a function that can
12
+ * execute a validation async request.
13
+ */
14
+ export declare const getPerformValidationAsync: ({ httpClient, validationAsyncConfig, schemaId, trackEvent, }: {
15
+ httpClient: HttpClient;
16
+ validationAsyncConfig: ValidateAsync;
17
+ schemaId?: string | undefined;
18
+ trackEvent: AnalyticsEventDispatcher;
19
+ }) => PerformValidationAsync;
20
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { MapperProps, SchemaMapperProps } from '../types';
2
+ export declare const getValidationAsyncInitialState: (schemaMapperProps: SchemaMapperProps, mapperProps: MapperProps) => {
3
+ performValidationAsync: import("../../../features/validationAsync/getPerformValidationAsync").PerformValidationAsync | undefined;
4
+ validationState: import("../../../types").ValidationState;
5
+ };
@@ -14,6 +14,7 @@ export type ErrorMessageFunctions = {
14
14
  minItems: (minItems: number) => string;
15
15
  pattern: () => string;
16
16
  required: () => string;
17
- persistAsyncError: () => string;
17
+ genericError: () => string;
18
+ genericErrorWithRetry: () => string;
18
19
  };
19
20
  export type PersistAsyncConfig = Pick<PersistAsync, 'idProperty' | 'method' | 'param' | 'url'>;
@@ -86,3 +86,11 @@ export type PersistedState = {
86
86
  lastSubmitted: LocalValue;
87
87
  submission: Promise<JsonElement | null>;
88
88
  };
89
+ export type ValidationState = {
90
+ abortController: AbortController;
91
+ lastSubmitted: LocalValue;
92
+ messages: {
93
+ success?: string;
94
+ error?: string;
95
+ };
96
+ };
@@ -1,4 +1,4 @@
1
- import type { Model, Step } from '@wise/dynamic-flow-types/build/next';
1
+ import type { Model, Step, ErrorResponseBody } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { AnalyticsEventDispatcher } from '../domain/features/events';
3
3
  type Command = {
4
4
  type: 'refresh-step';
@@ -6,12 +6,15 @@ type Command = {
6
6
  etag: string | null;
7
7
  } | {
8
8
  type: 'noop';
9
+ } | {
10
+ type: 'error';
11
+ body: ErrorResponseBody;
9
12
  };
10
13
  export declare const executeRefresh: (props: {
11
14
  abortSignal: AbortSignal;
12
15
  url: string;
13
16
  model: Model;
14
- schemaId: string | undefined;
17
+ schemaId?: string | undefined;
15
18
  etag: string | null;
16
19
  httpClient: typeof fetch;
17
20
  trackEvent: AnalyticsEventDispatcher;
@@ -1,4 +1,4 @@
1
- import type { Action, Model, Step, ErrorResponseBody } from '@wise/dynamic-flow-types/build/next';
1
+ import type { Action, ErrorResponseBody, Model, Step } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { AnalyticsEventDispatcher } from '../domain/features/events';
3
3
  type Command = {
4
4
  type: 'complete';
@@ -8,8 +8,17 @@ type Command = {
8
8
  step: Step;
9
9
  etag: string | null;
10
10
  } | {
11
- type: 'errors';
12
- errors: ErrorResponseBody;
11
+ type: 'error';
12
+ body: {
13
+ analytics?: ErrorResponseBody['analytics'];
14
+ errors?: Step['errors'];
15
+ };
16
+ } | {
17
+ type: 'refresh';
18
+ body: {
19
+ refreshUrl: string;
20
+ errors?: Step['errors'];
21
+ };
13
22
  };
14
23
  export declare const executeSubmission: (props: {
15
24
  action: Action;
@@ -2,5 +2,6 @@ import type { ActionResponseBody, ErrorResponseBody, JsonElement, Step } from '@
2
2
  export declare const assertResponseIsValid: (response: unknown) => void;
3
3
  export declare const parseResponseBodyAsJsonElement: (response: Response) => Promise<JsonElement>;
4
4
  export declare function assertActionResponseBody(body: unknown): asserts body is ActionResponseBody;
5
+ export declare function isErrorResponseBody(body: unknown): body is ErrorResponseBody;
5
6
  export declare function assertErrorResponseBody(body: unknown): asserts body is ErrorResponseBody;
6
7
  export declare function assertStepResponseBody(body: unknown): asserts body is Step;
@@ -1,16 +1,18 @@
1
1
  import type { Action, Step as DFStep, Model } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { LocalValue, StepComponent } from '../domain/types';
3
3
  import type { AnalyticsEventDispatcher, LoggingEventDispatcher } from '../domain/features/events';
4
+ import type { GetErrorMessageFunctions } from '../domain/mappers/types';
4
5
  import type { HttpClient } from '../types';
5
6
  type StepProps = {
6
7
  localValue: LocalValue;
7
8
  step: DFStep;
8
9
  displayStepTitle?: boolean;
10
+ getErrorMessageFunctions: GetErrorMessageFunctions;
9
11
  render: (component: StepComponent) => JSX.Element;
10
12
  httpClient: HttpClient;
11
13
  trackEvent: AnalyticsEventDispatcher;
12
14
  logEvent: LoggingEventDispatcher;
13
- triggerSubmission: (action: Action, model: Model) => Promise<void>;
15
+ triggerSubmission: (action: Action, model: Model, localValue: LocalValue) => Promise<void>;
14
16
  triggerRefresh: (props: {
15
17
  refreshUrl: string;
16
18
  model: Model;
@@ -18,5 +20,5 @@ type StepProps = {
18
20
  schemaId: string | undefined;
19
21
  }) => Promise<void>;
20
22
  };
21
- declare function Step({ localValue, step, displayStepTitle, render, httpClient, trackEvent, logEvent, triggerSubmission, triggerRefresh, }: StepProps): JSX.Element;
23
+ declare function Step({ localValue: initialLocalValue, step, displayStepTitle, getErrorMessageFunctions, render, httpClient, trackEvent, logEvent, triggerSubmission, triggerRefresh, }: StepProps): JSX.Element;
22
24
  export default Step;
@@ -16,5 +16,5 @@ export declare const respondWithDelay: (data: unknown, delayMs: number, init?: R
16
16
  export declare const respondWithEtag: (step: Step) => Promise<Response>;
17
17
  export declare const respondWithEmptyOk: () => Promise<Response>;
18
18
  export declare const respondWithEmptyAndEtag: (step: Step) => Promise<Response>;
19
- export declare const abortableDelay: (delayMs: number, signal: AbortSignal | null | undefined) => Promise<unknown>;
19
+ export declare const abortableDelay: (delayMs: number, signal: AbortSignal | null | undefined) => Promise<void>;
20
20
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -91,7 +91,7 @@
91
91
  "classnames": "2.5.1",
92
92
  "react-webcam": "^7.2.0",
93
93
  "screenfull": "^5.2.0",
94
- "@wise/dynamic-flow-types": "2.6.7"
94
+ "@wise/dynamic-flow-types": "2.7.0"
95
95
  },
96
96
  "scripts": {
97
97
  "dev": "storybook dev -p 3003",