@wise/dynamic-flow-client 3.11.5 → 3.11.7

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 (138) hide show
  1. package/build/main.js +410 -231
  2. package/build/main.min.js +1 -1
  3. package/build/main.mjs +410 -231
  4. package/build/types/common/cameraCapture/CameraCapture.d.ts +16 -0
  5. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/bottomBar/BottomBar.d.ts +2 -2
  6. package/build/types/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +2 -0
  7. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +2 -2
  8. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/overlay/Overlay.d.ts +1 -1
  9. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.d.ts +1 -1
  10. package/build/types/common/cameraCapture/tracking/index.d.ts +8 -0
  11. package/build/types/common/errorBoundary/ErrorBoundary.d.ts +1 -1
  12. package/build/types/common/errorBoundary/ErrorBoundaryAlert.d.ts +1 -1
  13. package/build/types/common/httpClientContext/HttpClientContext.d.ts +2 -2
  14. package/build/types/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +1 -1
  15. package/build/types/legacy/common/contexts/eventsContext/EventsContext.d.ts +1 -1
  16. package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +1 -1
  17. package/build/types/legacy/common/contexts/logContext/LogContext.d.ts +1 -1
  18. package/build/types/legacy/common/utils/index.d.ts +5 -5
  19. package/build/types/legacy/dynamic-flow-types.d.ts +2 -1
  20. package/build/types/legacy/dynamicFlow/BackButton.d.ts +1 -1
  21. package/build/types/legacy/dynamicFlow/DynamicFlow.d.ts +1 -1
  22. package/build/types/legacy/dynamicFlow/DynamicFlowStep.d.ts +1 -1
  23. package/build/types/legacy/dynamicFlow/utils/useLoader.d.ts +1 -1
  24. package/build/types/legacy/formControl/FormControl.d.ts +1 -1
  25. package/build/types/legacy/jsonSchemaForm/JsonSchemaForm.d.ts +1 -1
  26. package/build/types/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +1 -1
  27. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +1 -1
  28. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +1 -1
  29. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.d.ts +1 -1
  30. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +1 -1
  31. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts +1 -1
  32. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +1 -1
  33. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +1 -1
  34. package/build/types/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +1 -1
  35. package/build/types/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +1 -1
  36. package/build/types/legacy/jsonSchemaForm/genericSchema/GenericSchema.d.ts +1 -1
  37. package/build/types/legacy/jsonSchemaForm/help/Help.d.ts +1 -1
  38. package/build/types/legacy/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +1 -1
  39. package/build/types/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +1 -1
  40. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +1 -1
  41. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +1 -1
  42. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +1 -1
  43. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +1 -1
  44. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +1 -1
  45. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +1 -1
  46. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +1 -1
  47. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +1 -1
  48. package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +1 -1
  49. package/build/types/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +1 -1
  50. package/build/types/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +5 -5
  51. package/build/types/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +1 -1
  52. package/build/types/legacy/layout/DynamicLayout.d.ts +1 -1
  53. package/build/types/legacy/layout/alert/DynamicAlert.d.ts +1 -1
  54. package/build/types/legacy/layout/box/DynamicBox.d.ts +1 -1
  55. package/build/types/legacy/layout/button/DynamicButton.d.ts +1 -1
  56. package/build/types/legacy/layout/columns/DynamicColumns.d.ts +1 -1
  57. package/build/types/legacy/layout/decision/DynamicDecision.d.ts +1 -1
  58. package/build/types/legacy/layout/divider/DynamicDivider.d.ts +1 -1
  59. package/build/types/legacy/layout/external/DynamicExternal.d.ts +1 -1
  60. package/build/types/legacy/layout/form/DynamicForm.d.ts +1 -1
  61. package/build/types/legacy/layout/heading/DynamicHeading.d.ts +1 -1
  62. package/build/types/legacy/layout/icon/DynamicIcon.d.ts +1 -1
  63. package/build/types/legacy/layout/icon/FlagIcon.d.ts +1 -1
  64. package/build/types/legacy/layout/icon/NamedIcon.d.ts +1 -1
  65. package/build/types/legacy/layout/image/DynamicImage.d.ts +1 -1
  66. package/build/types/legacy/layout/instructions/DynamicInstructions.d.ts +1 -1
  67. package/build/types/legacy/layout/list/DynamicStatusList.d.ts +1 -1
  68. package/build/types/legacy/layout/loadingIndicator/DynamicLoadingIndicator.d.ts +1 -1
  69. package/build/types/legacy/layout/markdown/DynamicMarkdown.d.ts +2 -2
  70. package/build/types/legacy/layout/modal/DynamicModal.d.ts +1 -1
  71. package/build/types/legacy/layout/paragraph/DynamicParagraph.d.ts +1 -1
  72. package/build/types/legacy/layout/review/DynamicReview.d.ts +1 -1
  73. package/build/types/legacy/layout/search/DynamicSearch.d.ts +1 -1
  74. package/build/types/legacy/layout/search/SearchInput.d.ts +1 -1
  75. package/build/types/legacy/layout/search/SearchResults.d.ts +2 -2
  76. package/build/types/legacy/layout/utils/getNavigationOptionMedia.d.ts +3 -3
  77. package/build/types/legacy/step/cameraStep/CameraStep.d.ts +1 -1
  78. package/build/types/legacy/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +1 -1
  79. package/build/types/legacy/step/layoutStep/LayoutStep.d.ts +1 -1
  80. package/build/types/legacy/test-utils/DynamicFlowProviders.d.ts +1 -1
  81. package/build/types/legacy/test-utils/legacy-utils.d.ts +1 -1
  82. package/build/types/revamp/DynamicFlowCore.d.ts +1 -1
  83. package/build/types/revamp/DynamicFlowWise.d.ts +1 -1
  84. package/build/types/revamp/domain/components/AllOfComponent.d.ts +2 -2
  85. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
  86. package/build/types/revamp/domain/components/ConstComponent.d.ts +1 -1
  87. package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
  88. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
  89. package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -1
  90. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
  91. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
  92. package/build/types/revamp/domain/components/ObjectComponent.d.ts +2 -2
  93. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -1
  94. package/build/types/revamp/domain/components/StepDomainComponent.d.ts +2 -2
  95. package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
  96. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
  97. package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +3 -3
  98. package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +1 -1
  99. package/build/types/revamp/domain/features/validationAsync/getPerformValidationAsync.d.ts +1 -1
  100. package/build/types/revamp/flow/executeRefresh.d.ts +1 -1
  101. package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +3 -3
  102. package/build/types/revamp/wise/renderers/MultiSelectInputRenderer.d.ts +1 -1
  103. package/build/types/revamp/wise/renderers/SearchRenderer/BlockSearchRendererComponent.d.ts +2 -2
  104. package/build/types/revamp/wise/renderers/SearchRenderer/ErrorResult.d.ts +1 -1
  105. package/build/types/revamp/wise/renderers/SearchRenderer/InlineSearchRendererComponent.d.ts +1 -1
  106. package/build/types/revamp/wise/renderers/SelectInputRenderer/OptionMedia.d.ts +1 -1
  107. package/build/types/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.d.ts +1 -1
  108. package/build/types/revamp/wise/renderers/SelectInputRenderer/SegmentedInputRendererComponent.d.ts +1 -1
  109. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.d.ts +1 -1
  110. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.d.ts +1 -1
  111. package/build/types/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.d.ts +1 -1
  112. package/build/types/revamp/wise/renderers/components/FieldInput.d.ts +1 -1
  113. package/build/types/revamp/wise/renderers/components/Help.d.ts +1 -1
  114. package/build/types/revamp/wise/renderers/components/LabelContentWithHelp.d.ts +1 -1
  115. package/build/types/revamp/wise/renderers/components/UploadFieldInput.d.ts +1 -1
  116. package/build/types/revamp/wise/renderers/components/VariableDateInput.d.ts +1 -1
  117. package/build/types/revamp/wise/renderers/components/VariableTextInput.d.ts +1 -1
  118. package/build/types/revamp/wise/renderers/components/icon/DynamicIcon.d.ts +1 -1
  119. package/build/types/revamp/wise/renderers/components/icon/FlagIcon.d.ts +1 -1
  120. package/build/types/revamp/wise/renderers/components/icon/NamedIcon.d.ts +1 -1
  121. package/build/types/revamp/wise/renderers/components/icon/NavigationOptionMedia.d.ts +1 -1
  122. package/build/types/revamp/wise/renderers/step/BackButton.d.ts +1 -1
  123. package/build/types/revamp/wise/renderers/step/ExternalConfirmationDialog.d.ts +1 -1
  124. package/build/types/test-utils/NeptuneProviders.d.ts +1 -1
  125. package/package.json +39 -33
  126. package/build/types/legacy/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
  127. package/build/types/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +0 -2
  128. package/build/types/legacy/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -8
  129. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/CameraCapture.messages.d.ts +0 -0
  130. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/index.d.ts +0 -0
  131. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +0 -0
  132. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useVideoConstraints.d.ts +0 -0
  133. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/index.d.ts +0 -0
  134. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/screens/index.d.ts +0 -0
  135. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/types/index.d.ts +0 -0
  136. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/utils/index.d.ts +0 -0
  137. /package/build/types/{legacy/common → common/cameraCapture}/utils/mobile-utils.d.ts +0 -0
  138. /package/build/types/{legacy/common → common}/utils/debounce.d.ts +0 -0
@@ -0,0 +1,16 @@
1
+ import type { CameraDirection } from '@wise/dynamic-flow-types';
2
+ export type CameraEventName = 'Dynamic Flow - Camera Permission Denied' | 'Dynamic Flow - Camera Feed Started' | 'Dynamic Flow - Camera Not Supported' | 'Dynamic Flow - Camera Not Accessible' | 'Dynamic Flow - Camera Orientation Locked' | 'Dynamic Flow - Camera Orientation Lock Overlay Shown';
3
+ export type CameraEventHandler = (eventName: CameraEventName, properties: Record<string, unknown>) => void;
4
+ type Props = {
5
+ direction?: CameraDirection;
6
+ overlay?: string;
7
+ outline?: string;
8
+ imageUrl?: string;
9
+ title?: string;
10
+ instructions?: string;
11
+ showReview?: boolean;
12
+ onCapture: BlobCallback;
13
+ onEvent?: CameraEventHandler;
14
+ };
15
+ declare function CameraCapture({ direction, overlay, outline, imageUrl, title, instructions, showReview, onCapture, onEvent, }: Props): import("react/jsx-runtime").JSX.Element;
16
+ export default CameraCapture;
@@ -1,7 +1,7 @@
1
1
  export declare const CaptureBottomBar: ({ onCapture }: {
2
2
  onCapture: () => void;
3
- }) => JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const ReviewBottomBar: ({ onSubmit, onRetry, }: {
5
5
  onSubmit: () => void;
6
6
  onRetry: () => void;
7
- }) => JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare function OrientationLockOverlay(): import("react/jsx-runtime").JSX.Element;
2
+ export default OrientationLockOverlay;
@@ -1,5 +1,5 @@
1
- import type { EventHandler } from '../../../../dynamic-flow-types';
2
- export declare const useFullScreenOrientationLock: (shouldLockOrientation: boolean, onEvent: EventHandler | undefined) => {
1
+ import type { CameraEventHandler } from '../CameraCapture';
2
+ export declare const useFullScreenOrientationLock: (shouldLockOrientation: boolean, onEvent: CameraEventHandler | undefined) => {
3
3
  enterFullScreen: () => void;
4
4
  exitFullScreen: () => void;
5
5
  };
@@ -6,5 +6,5 @@ type Props = {
6
6
  instructions?: string;
7
7
  reviewInstructions?: string;
8
8
  };
9
- declare function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstructions }: Props): JSX.Element;
9
+ declare function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstructions }: Props): import("react/jsx-runtime").JSX.Element;
10
10
  export default Overlay;
@@ -1,3 +1,3 @@
1
1
  import type { CameraError } from '../../types';
2
- declare function CameraErrorScreen({ title, description, actionButton, onAction }: CameraError): JSX.Element;
2
+ declare function CameraErrorScreen({ title, description, actionButton, onAction }: CameraError): import("react/jsx-runtime").JSX.Element;
3
3
  export default CameraErrorScreen;
@@ -0,0 +1,8 @@
1
+ import type { CameraDirection } from '@wise/dynamic-flow-types';
2
+ import type { CameraEventHandler, CameraEventName } from '../CameraCapture';
3
+ export declare const trackCameraError: (message: CameraEventName, onEvent: CameraEventHandler | undefined, error: string | DOMException) => void | undefined;
4
+ export declare const trackCameraFeedStarted: (onEvent: CameraEventHandler | undefined, props: {
5
+ direction?: CameraDirection;
6
+ }, stream: MediaStream) => Promise<void | undefined>;
7
+ export declare const trackCameraOrientationLandscape: (onEvent: CameraEventHandler | undefined) => void;
8
+ export declare const trackCameraOrientationLocked: (onEvent: CameraEventHandler | undefined) => void;
@@ -15,6 +15,6 @@ declare class ErrorBoundary extends Component<Props, State> {
15
15
  constructor(props: Props);
16
16
  componentDidCatch(error: Error): void;
17
17
  handleErrorReset: () => void;
18
- render(): JSX.Element;
18
+ render(): import("react/jsx-runtime").JSX.Element;
19
19
  }
20
20
  export default ErrorBoundary;
@@ -1,5 +1,5 @@
1
1
  type Props = {
2
2
  onDismiss: () => void;
3
3
  };
4
- export declare function ErrorBoundaryAlert({ onDismiss }: Props): JSX.Element;
4
+ export declare function ErrorBoundaryAlert({ onDismiss }: Props): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -4,12 +4,12 @@ type ProviderProps = {
4
4
  httpClient: HttpClient;
5
5
  children: React.ReactNode;
6
6
  };
7
- export declare function HttpClientProvider({ httpClient, children }: ProviderProps): JSX.Element;
7
+ export declare function HttpClientProvider({ httpClient, children }: ProviderProps): import("react/jsx-runtime").JSX.Element;
8
8
  type ProviderFromBaseUrlProps = {
9
9
  baseUrl: string;
10
10
  children: React.ReactNode;
11
11
  };
12
- export declare function HttpClientProviderFromBaseUrl({ baseUrl, children }: ProviderFromBaseUrlProps): JSX.Element;
12
+ export declare function HttpClientProviderFromBaseUrl({ baseUrl, children }: ProviderFromBaseUrlProps): import("react/jsx-runtime").JSX.Element;
13
13
  /**
14
14
  * Provides the fetch(er) function for dynamic flows asynchronous operations.
15
15
  */
@@ -3,7 +3,7 @@ type Props = {
3
3
  loading: boolean;
4
4
  children: React.ReactNode;
5
5
  };
6
- export declare const DynamicFlowProvider: ({ loading, children }: Props) => JSX.Element;
6
+ export declare const DynamicFlowProvider: ({ loading, children }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const useDynamicFlow: () => {
8
8
  loading: boolean;
9
9
  registerPersistAsyncPromise: (promise: Promise<unknown>) => void;
@@ -8,7 +8,7 @@ type Props = {
8
8
  children: React.ReactNode;
9
9
  onEvent: EventHandler;
10
10
  };
11
- export declare function EventsContextProvider({ metadata, children, onEvent }: Props): JSX.Element;
11
+ export declare function EventsContextProvider({ metadata, children, onEvent }: Props): import("react/jsx-runtime").JSX.Element;
12
12
  export declare function useEventDispatcher(): EventHandler;
13
13
  export declare const getEventDispatcher: (onEvent: EventHandler, metadata?: Record<string, unknown>) => EventHandler;
14
14
  export {};
@@ -5,6 +5,6 @@ type FeatureContextProviderProps = {
5
5
  features: Feature[] | undefined;
6
6
  children: React.ReactNode;
7
7
  };
8
- export declare function FeatureContextProvider({ features, children }: FeatureContextProviderProps): JSX.Element;
8
+ export declare function FeatureContextProvider({ features, children }: FeatureContextProviderProps): import("react/jsx-runtime").JSX.Element;
9
9
  export declare const useFeatureFlag: (featureName: FeatureName) => Feature | undefined;
10
10
  export {};
@@ -9,7 +9,7 @@ type LogProviderProps = {
9
9
  children: React.ReactNode;
10
10
  onLog: LogEventHandler;
11
11
  };
12
- export declare function LogProvider({ flowId, stepId, children, onLog }: LogProviderProps): JSX.Element;
12
+ export declare function LogProvider({ flowId, stepId, children, onLog }: LogProviderProps): import("react/jsx-runtime").JSX.Element;
13
13
  export declare const useLogger: () => {
14
14
  debug: LogFunction;
15
15
  info: LogFunction;
@@ -1,11 +1,11 @@
1
+ export * from '../../../common/cameraCapture/utils/mobile-utils';
2
+ export * from '../../../common/utils/debounce';
1
3
  export * from './api-utils';
2
4
  export * from './date-utils';
3
- export * from './debounce';
4
- export * from './is-equal';
5
5
  export * from './file-utils';
6
6
  export * from './id-utils';
7
- export * from './step-utils';
8
- export * from './model-utils';
7
+ export * from './is-equal';
9
8
  export * from './misc-utils';
9
+ export * from './model-utils';
10
10
  export * from './schema-utils';
11
- export * from './mobile-utils';
11
+ export * from './step-utils';
@@ -1,4 +1,5 @@
1
1
  import type { Size, Step } from '@wise/dynamic-flow-types';
2
+ import type { CameraEventName } from '../common/cameraCapture/CameraCapture';
2
3
  export type DynamicFlowProps = DynamicFlowPropsWithInitialAction | DynamicFlowPropsWithInitialStep;
3
4
  export type DynamicFlowPropsWithInitialAction = DynamicFlowPropsBasic & {
4
5
  initialAction: InitialAction;
@@ -10,7 +11,7 @@ export type DynamicFlowPropsWithInitialStep = DynamicFlowPropsBasic & {
10
11
  };
11
12
  export type HttpClient = typeof fetch;
12
13
  export type EventHandler = (eventName: EventName, properties: Record<string, unknown>) => void;
13
- export type EventName = 'Dynamic Flow - Flow Started' | 'Dynamic Flow - Flow Finished' | 'Dynamic Flow - Step Started' | 'Dynamic Flow - Step Submitted' | 'Dynamic Flow - Step Refreshed' | 'Dynamic Flow - OneOf Selected' | 'Dynamic Flow - PersistAsync' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Camera Permission Denied' | 'Dynamic Flow - Camera Feed Started' | 'Dynamic Flow - Camera Not Supported' | 'Dynamic Flow - Camera Not Accessible' | 'Dynamic Flow - Camera Orientation Locked' | 'Dynamic Flow - Camera Orientation Lock Overlay Shown' | 'Dynamic Flow - Search Started' | 'Dynamic Flow - Search Result Selected' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched';
14
+ export type EventName = 'Dynamic Flow - Flow Started' | 'Dynamic Flow - Flow Finished' | 'Dynamic Flow - Step Started' | 'Dynamic Flow - Step Submitted' | 'Dynamic Flow - Step Refreshed' | 'Dynamic Flow - OneOf Selected' | 'Dynamic Flow - PersistAsync' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Search Started' | 'Dynamic Flow - Search Result Selected' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched' | CameraEventName;
14
15
  export type LogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
15
16
  export type LogEventHandler = (level: LogLevel, message: string, extra: Record<string, unknown>) => void;
16
17
  export type Feature = {
@@ -5,5 +5,5 @@ type BackButtonProps = {
5
5
  action: Action;
6
6
  onAction: OnAction;
7
7
  };
8
- declare function BackButton({ title, action, onAction }: BackButtonProps): JSX.Element;
8
+ declare function BackButton({ title, action, onAction }: BackButtonProps): import("react/jsx-runtime").JSX.Element;
9
9
  export default BackButton;
@@ -1,3 +1,3 @@
1
1
  import type { DynamicFlowProps } from '../dynamic-flow-types';
2
- declare function DynamicFlow(props: DynamicFlowProps): JSX.Element;
2
+ declare function DynamicFlow(props: DynamicFlowProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default DynamicFlow;
@@ -4,5 +4,5 @@ type DynamicFlowStepProps = Omit<LayoutStepProps, 'stepSpecification'> & {
4
4
  step: Step | undefined;
5
5
  globalError: GlobalError;
6
6
  };
7
- export declare function DynamicFlowStep(props: DynamicFlowStepProps): JSX.Element | null;
7
+ export declare function DynamicFlowStep(props: DynamicFlowStepProps): import("react/jsx-runtime").JSX.Element | null;
8
8
  export {};
@@ -4,6 +4,6 @@ type LoadingState = 'idle' | 'initial' | 'refresh' | 'submission';
4
4
  export declare function useLoader(loaderConfig: DynamicFlowProps['loaderConfig'], initialState: LoadingState): {
5
5
  isLoading: boolean;
6
6
  setLoadingState: import("react").Dispatch<import("react").SetStateAction<"idle" | "submission" | "refresh" | "initial">>;
7
- loader: JSX.Element | null;
7
+ loader: import("react/jsx-runtime").JSX.Element | null;
8
8
  };
9
9
  export {};
@@ -55,7 +55,7 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
55
55
  handleOnBlur: () => void;
56
56
  getSelectedOption: (options: FormControlOption[]) => FormControlOption | undefined;
57
57
  mapOption: (option: FormControlOption) => RadioGroupRadios;
58
- render(): JSX.Element;
58
+ render(): import("react/jsx-runtime").JSX.Element;
59
59
  static defaultProps: {
60
60
  autoComplete: boolean;
61
61
  countryCode: null;
@@ -1,7 +1,7 @@
1
1
  import type { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
2
2
  import type { EventHandler, LogEventHandler } from '../dynamic-flow-types';
3
3
  import type { OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
4
- declare function JsonSchemaForm(props: JsonSchemaFormProps): JSX.Element;
4
+ declare function JsonSchemaForm(props: JsonSchemaFormProps): import("react/jsx-runtime").JSX.Element;
5
5
  export type OnChange = (parameters: OnChangeProps) => void;
6
6
  export type OnChangeProps = {
7
7
  model: Model;
@@ -1,6 +1,6 @@
1
1
  import type { AllOfSchema as AllOfSchemaType, ObjectModel } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
- declare function AllOfSchema(props: AllOfSchemaProps): JSX.Element;
3
+ declare function AllOfSchema(props: AllOfSchemaProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace AllOfSchema {
5
5
  var defaultProps: {
6
6
  disabled: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ArrayModel, ArraySchema as ArraySchemaType } from '@wise/dynamic-flow-types';
2
2
  import { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
3
  declare const ArraySchema: {
4
- (props: ArraySchemaProps): JSX.Element;
4
+ (props: ArraySchemaProps): import("react/jsx-runtime").JSX.Element;
5
5
  defaultProps: {
6
6
  required: boolean;
7
7
  };
@@ -5,7 +5,7 @@ type ArrayListSchemaProps = GenericSchemaProps & {
5
5
  errors?: string | null;
6
6
  model: ArrayModel | null;
7
7
  };
8
- declare function ArrayListSchema(props: ArrayListSchemaProps): JSX.Element;
8
+ declare function ArrayListSchema(props: ArrayListSchemaProps): import("react/jsx-runtime").JSX.Element;
9
9
  declare namespace ArrayListSchema {
10
10
  var defaultProps: {
11
11
  errors: null;
@@ -6,4 +6,4 @@ export type MultiSelectSchemaProps = Omit<GenericSchemaProps, 'model'> & {
6
6
  required?: boolean;
7
7
  errors?: string | null;
8
8
  };
9
- export declare function MultiSelectSchema({ schema, model, submitted, required, errors, onChange, }: MultiSelectSchemaProps): JSX.Element;
9
+ export declare function MultiSelectSchema({ schema, model, submitted, required, errors, onChange, }: MultiSelectSchemaProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import type { ArrayModel, MultipleFileUploadSchema as MultipleFileUploadSchemaType } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
3
- declare function MultipleFileUploadSchema(props: Props): JSX.Element;
3
+ declare function MultipleFileUploadSchema(props: Props): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace MultipleFileUploadSchema {
5
5
  var defaultProps: {
6
6
  errors: null;
@@ -9,4 +9,4 @@ export type ItemSummary = {
9
9
  export declare function ItemSummaryOption({ item, onClick }: {
10
10
  item: ItemSummary;
11
11
  onClick: () => void;
12
- }): JSX.Element;
12
+ }): import("react/jsx-runtime").JSX.Element;
@@ -5,5 +5,5 @@ type RepeatableSchemaProps = Omit<GenericSchemaProps, 'model' | 'onPersistAsync'
5
5
  model: ArrayModel | null;
6
6
  required?: boolean;
7
7
  };
8
- declare function RepeatableSchema({ schema, model, errors, submitted, required, onChange, }: RepeatableSchemaProps): JSX.Element;
8
+ declare function RepeatableSchema({ schema, model, errors, submitted, required, onChange, }: RepeatableSchemaProps): import("react/jsx-runtime").JSX.Element;
9
9
  export default RepeatableSchema;
@@ -10,5 +10,5 @@ type RepeatableSchemaStepProps = {
10
10
  onModelChange: OnModelChange;
11
11
  onAction: (actionType: RepeatableActionType, summaryText?: string) => void;
12
12
  };
13
- declare function RepeatableSchemaStep({ type, schema, model, errors, submitted, onModelChange, onAction, }: RepeatableSchemaStepProps): JSX.Element;
13
+ declare function RepeatableSchemaStep({ type, schema, model, errors, submitted, onModelChange, onAction, }: RepeatableSchemaStepProps): import("react/jsx-runtime").JSX.Element;
14
14
  export default RepeatableSchemaStep;
@@ -2,7 +2,7 @@ import { BasicModel, BasicSchema } from '@wise/dynamic-flow-types';
2
2
  import { OnChange } from '../JsonSchemaForm';
3
3
  import { GenericSchemaProps } from '../genericSchema/GenericSchema';
4
4
  declare const BasicTypeSchema: {
5
- (props: BasicTypeSchemaProps): JSX.Element | null;
5
+ (props: BasicTypeSchemaProps): import("react/jsx-runtime").JSX.Element | null;
6
6
  defaultProps: {
7
7
  required: boolean;
8
8
  disabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { Schema } from '@wise/dynamic-flow-types';
2
- declare function ControlFeedback(props: ControlFeedbackProps): JSX.Element;
2
+ declare function ControlFeedback(props: ControlFeedbackProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace ControlFeedback {
4
4
  var defaultProps: {
5
5
  errors: string;
@@ -1,7 +1,7 @@
1
1
  import type { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
2
2
  import type { OnPersistAsync } from '../../dynamicFlow/DynamicFlowTypes';
3
3
  import type { OnChange } from '../JsonSchemaForm';
4
- declare function GenericSchemaForm(props: GenericSchemaFormProps): JSX.Element;
4
+ declare function GenericSchemaForm(props: GenericSchemaFormProps): import("react/jsx-runtime").JSX.Element;
5
5
  export type GenericSchemaProps = {
6
6
  schema: Schema;
7
7
  model: Model;
@@ -3,5 +3,5 @@ type Props = {
3
3
  markdown: string;
4
4
  };
5
5
  };
6
- declare function Help(props: Props): JSX.Element;
6
+ declare function Help(props: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export default Help;
@@ -1,6 +1,6 @@
1
1
  import type { ObjectModel, ObjectSchema as ObjectSchemaType } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
- declare function ObjectSchema(props: ObjectSchemaProps): JSX.Element;
3
+ declare function ObjectSchema(props: ObjectSchemaProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace ObjectSchema {
5
5
  var defaultProps: {
6
6
  hideTitle: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { OneOfSchema as OneOfSchemaType } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
- declare function OneOfSchema(props: OneOfSchemaProps): JSX.Element | null;
3
+ declare function OneOfSchema(props: OneOfSchemaProps): import("react/jsx-runtime").JSX.Element | null;
4
4
  declare namespace OneOfSchema {
5
5
  var defaultProps: {
6
6
  required: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { PersistAsyncSchema as PersistAsyncSchemaType } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
- declare function PersistAsyncSchema(props: PersistAsyncSchemaProps): JSX.Element;
3
+ declare function PersistAsyncSchema(props: PersistAsyncSchemaProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace PersistAsyncSchema {
5
5
  var defaultProps: {
6
6
  required: boolean;
@@ -4,7 +4,7 @@ export declare const getIdFromResponse: (idProperty: string, response: Record<st
4
4
  export declare const getErrorFromResponse: (errorProperty: string, response: {
5
5
  validation?: Record<string, unknown>;
6
6
  }) => unknown;
7
- declare function PersistAsyncBasicSchema(props: PersistAsyncBasicSchemaProps): JSX.Element;
7
+ declare function PersistAsyncBasicSchema(props: PersistAsyncBasicSchemaProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare namespace PersistAsyncBasicSchema {
9
9
  var defaultProps: {
10
10
  required: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { BlobSchema, PersistAsync, Schema } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../../genericSchema/GenericSchema';
3
- declare function PersistAsyncBlobSchema(props: PersistAsyncBlobSchemaProps): JSX.Element;
3
+ declare function PersistAsyncBlobSchema(props: PersistAsyncBlobSchemaProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace PersistAsyncBlobSchema {
5
5
  var defaultProps: {
6
6
  required: boolean;
@@ -12,5 +12,5 @@ type Props = UploadProps & {
12
12
  fileInputName?: string;
13
13
  };
14
14
  };
15
- export declare function UploadInputAdapter(props: Props): JSX.Element;
15
+ export declare function UploadInputAdapter(props: Props): import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ObjectModel, OneOfObjectSchema } from '@wise/dynamic-flow-types';
2
2
  import { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
- declare const PromotedOneOfSchema: (props: PromotedOneOfSchemaProps) => JSX.Element;
3
+ declare const PromotedOneOfSchema: (props: PromotedOneOfSchemaProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export type PromotedOneOfSchemaProps = Omit<GenericSchemaProps, 'schema' | 'model'> & {
5
5
  schema: OneOfObjectSchema;
6
6
  model: ObjectModel | null;
@@ -1,6 +1,6 @@
1
1
  import { PromotedOneOfControlProps } from './PromotedOneOfControl';
2
2
  declare const PromotedOneOfCheckboxControl: {
3
- (props: PromotedOneOfControlProps): JSX.Element;
3
+ (props: PromotedOneOfControlProps): import("react/jsx-runtime").JSX.Element;
4
4
  defaultProps: {};
5
5
  };
6
6
  export default PromotedOneOfCheckboxControl;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { Icon, Image, Promotion } from '@wise/dynamic-flow-types';
3
- declare function PromotedOneOfControl(props: PromotedOneOfControlProps): JSX.Element;
3
+ declare function PromotedOneOfControl(props: PromotedOneOfControlProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace PromotedOneOfControl {
5
5
  var defaultProps: {
6
6
  id: string;
@@ -1,5 +1,5 @@
1
1
  import type { PromotedOneOfControlProps } from './PromotedOneOfControl';
2
- declare function PromotedOneOfRadioControl(props: PromotedOneOfControlProps): JSX.Element;
2
+ declare function PromotedOneOfRadioControl(props: PromotedOneOfControlProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace PromotedOneOfRadioControl {
4
4
  var defaultProps: {
5
5
  title: undefined;
@@ -3,5 +3,5 @@ type ReadOnlySchemaProps = {
3
3
  schema: Schema;
4
4
  model: Model;
5
5
  };
6
- declare function ReadOnlySchema({ schema, model }: ReadOnlySchemaProps): JSX.Element;
6
+ declare function ReadOnlySchema({ schema, model }: ReadOnlySchemaProps): import("react/jsx-runtime").JSX.Element;
7
7
  export default ReadOnlySchema;
@@ -3,7 +3,7 @@ import { FormControlType } from '../../common/constants';
3
3
  import type { OnChangeProps } from '../JsonSchemaForm';
4
4
  export declare const getControlType: (schema: Schema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
5
5
  export declare const getStringSchemaControlType: ({ format, control, }: StringSchema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
6
- declare function SchemaFormControl(props: SchemaFormControlProps): JSX.Element;
6
+ declare function SchemaFormControl(props: SchemaFormControlProps): import("react/jsx-runtime").JSX.Element;
7
7
  declare namespace SchemaFormControl {
8
8
  var defaultProps: {
9
9
  value: null;
@@ -1,5 +1,5 @@
1
1
  import type { Icon, Image, Schema } from '@wise/dynamic-flow-types';
2
- declare const mapConstSchemaToOption: <ControlType extends string>(schema: Schema, controlType?: ControlType | undefined) => ControlType extends "select" ? SelectOption : RadioOption;
2
+ declare const mapConstSchemaToOption: <ControlType extends string>(schema: Schema, controlType?: ControlType) => ControlType extends 'select' ? SelectOption : RadioOption;
3
3
  type RadioOption = {
4
4
  disabled?: boolean | undefined;
5
5
  avatar?: JSX.Element | undefined;
@@ -19,13 +19,13 @@ type SelectOption = {
19
19
  value: string;
20
20
  };
21
21
  declare const getAvatarPropertyForRadioOption: ({ image, icon }: {
22
- image?: Image | undefined;
23
- icon?: Icon | undefined;
22
+ image?: Image;
23
+ icon?: Icon;
24
24
  }) => {
25
- avatar: JSX.Element;
25
+ avatar: import("react/jsx-runtime").JSX.Element;
26
26
  } | null;
27
27
  declare const mapSchemaToUploadOptions: ({ accepts }: {
28
- accepts?: string[] | undefined;
28
+ accepts?: string[];
29
29
  }) => {
30
30
  usAccept?: string | undefined;
31
31
  };
@@ -1,6 +1,6 @@
1
1
  import type { BasicModel, ValidationAsyncSchema as ValidationAsyncSchemaType } from '@wise/dynamic-flow-types';
2
2
  import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
- declare function ValidationAsyncSchema(props: ValidationAsyncSchemaProps): JSX.Element;
3
+ declare function ValidationAsyncSchema(props: ValidationAsyncSchemaProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace ValidationAsyncSchema {
5
5
  var defaultProps: {
6
6
  required: boolean;
@@ -12,5 +12,5 @@ export type CommonLayoutProps = {
12
12
  type DynamicLayoutProps = {
13
13
  components: LayoutComponent[];
14
14
  } & CommonLayoutProps;
15
- declare function DynamicLayout(props: DynamicLayoutProps): JSX.Element;
15
+ declare function DynamicLayout(props: DynamicLayoutProps): import("react/jsx-runtime").JSX.Element;
16
16
  export default DynamicLayout;
@@ -1,5 +1,5 @@
1
1
  import { Alert as AlertType } from '@wise/dynamic-flow-types';
2
2
  declare const DynamicAlert: (props: {
3
3
  component: AlertType;
4
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default DynamicAlert;
@@ -3,5 +3,5 @@ import { CommonLayoutProps } from '../DynamicLayout';
3
3
  type Props = CommonLayoutProps & {
4
4
  component: BoxLayout;
5
5
  };
6
- declare const DynamicBox: (props: Props) => JSX.Element;
6
+ declare const DynamicBox: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default DynamicBox;
@@ -3,5 +3,5 @@ import type { CommonLayoutProps } from '../DynamicLayout';
3
3
  type Props = Omit<CommonLayoutProps, 'submitted' | 'onModelChange' | 'onPersistAsync'> & {
4
4
  component: ButtonLayout;
5
5
  };
6
- declare function DynamicButton(props: Props): JSX.Element;
6
+ declare function DynamicButton(props: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export default DynamicButton;
@@ -3,5 +3,5 @@ import { CommonLayoutProps } from '../DynamicLayout';
3
3
  type Props = CommonLayoutProps & {
4
4
  component: ColumnsLayout;
5
5
  };
6
- declare const DynamicColumns: (props: Props) => JSX.Element;
6
+ declare const DynamicColumns: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default DynamicColumns;
@@ -4,5 +4,5 @@ type Props = {
4
4
  component: DecisionLayout;
5
5
  onAction: OnAction;
6
6
  };
7
- declare function DynamicDecision({ component, onAction }: Props): JSX.Element;
7
+ declare function DynamicDecision({ component, onAction }: Props): import("react/jsx-runtime").JSX.Element;
8
8
  export default DynamicDecision;
@@ -2,5 +2,5 @@ import { DividerLayout } from '@wise/dynamic-flow-types';
2
2
  type Props = {
3
3
  component: DividerLayout;
4
4
  };
5
- declare const DynamicDivider: ({ component }: Props) => JSX.Element;
5
+ declare const DynamicDivider: ({ component }: Props) => import("react/jsx-runtime").JSX.Element;
6
6
  export default DynamicDivider;
@@ -4,5 +4,5 @@ type Props = {
4
4
  onAction: (action: Action) => void;
5
5
  };
6
6
  /** @deprecated - No longer supported, use the external feature instead */
7
- declare const DynamicExternal: ({ component, onAction }: Props) => JSX.Element;
7
+ declare const DynamicExternal: ({ component, onAction }: Props) => import("react/jsx-runtime").JSX.Element;
8
8
  export default DynamicExternal;
@@ -3,5 +3,5 @@ import type { CommonLayoutProps } from '../DynamicLayout';
3
3
  type Props = Omit<CommonLayoutProps, 'onAction'> & {
4
4
  component: FormLayout;
5
5
  };
6
- declare function DynamicForm({ component, model, errors, submitted, onModelChange, onPersistAsync, }: Props): JSX.Element;
6
+ declare function DynamicForm({ component, model, errors, submitted, onModelChange, onPersistAsync, }: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export default DynamicForm;
@@ -1,5 +1,5 @@
1
1
  import { HeadingLayout } from '@wise/dynamic-flow-types';
2
2
  declare const DynamicHeading: (props: {
3
3
  component: HeadingLayout;
4
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default DynamicHeading;
@@ -1,6 +1,6 @@
1
1
  export type Props = {
2
2
  type: string;
3
3
  };
4
- declare function DynamicIcon({ type }: Props): JSX.Element | null;
4
+ declare function DynamicIcon({ type }: Props): import("react/jsx-runtime").JSX.Element | null;
5
5
  export declare function isValidIconName(name: string): boolean;
6
6
  export default DynamicIcon;
@@ -2,5 +2,5 @@ type Props = {
2
2
  name: string;
3
3
  };
4
4
  export declare const isFlagIcon: (name: string) => boolean;
5
- export declare function FlagIcon({ name }: Props): JSX.Element | null;
5
+ export declare function FlagIcon({ name }: Props): import("react/jsx-runtime").JSX.Element | null;
6
6
  export {};
@@ -2,5 +2,5 @@ type Props = {
2
2
  name: string;
3
3
  };
4
4
  export declare const isNamedIcon: (name: string) => boolean;
5
- export declare function NamedIcon({ name }: Props): JSX.Element | null;
5
+ export declare function NamedIcon({ name }: Props): import("react/jsx-runtime").JSX.Element | null;
6
6
  export {};
@@ -2,5 +2,5 @@ import type { ImageLayout } from '@wise/dynamic-flow-types';
2
2
  type DynamicImageProps = {
3
3
  component: ImageLayout;
4
4
  };
5
- declare function DynamicImage({ component: image }: DynamicImageProps): JSX.Element | null;
5
+ declare function DynamicImage({ component: image }: DynamicImageProps): import("react/jsx-runtime").JSX.Element | null;
6
6
  export default DynamicImage;