@wise/dynamic-flow-client 3.28.6 → 3.28.9
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.
- package/build/main.js +11921 -12074
- package/build/main.min.js +1 -1
- package/build/main.mjs +11889 -12042
- package/build/types/legacy/layout/button/utils.d.ts +1 -1
- package/build/types/legacy/layout/search/useSearch.d.ts +1 -1
- package/build/types/revamp/DynamicFlowViewRoot.d.ts +7 -0
- package/build/types/revamp/renderers/mappers/alertComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/boxComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/decisionComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/dividerComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/headingComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/imageComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/loadingIndicatorComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/markdownComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/paragraphComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/reviewComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/statusListComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/tupleComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/utils/pick.d.ts +1 -0
- package/build/types/revamp/renderers/stepComponentToProps.d.ts +1 -1
- package/package.json +5 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Action, Size } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare const getButtonPriority: (control: "primary" | "secondary" | "tertiary" |
|
|
2
|
+
export declare const getButtonPriority: (control: "primary" | "secondary" | "tertiary" | undefined, action: Action | undefined) => "primary" | "secondary" | "tertiary";
|
|
3
3
|
export declare const getButtonType: (context: "positive" | "negative" | "neutral" | undefined, action: Action | undefined) => "positive" | "negative" | "accent";
|
|
4
4
|
export declare const getButtonTypeFromContext: (context: "positive" | "negative" | "neutral" | undefined) => "positive" | "negative" | "accent";
|
|
5
5
|
export declare const getButtonSize: (size: Size | undefined) => "sm" | "md" | "lg";
|
|
@@ -10,7 +10,7 @@ export type SearchState = {
|
|
|
10
10
|
status: 'error';
|
|
11
11
|
};
|
|
12
12
|
export declare const useSearch: (defaultSearchConfig: SearchConfig) => {
|
|
13
|
-
status: "error" | "
|
|
13
|
+
status: "error" | "idle" | "success" | "loading";
|
|
14
14
|
results: SearchResult[];
|
|
15
15
|
search: (query: string, { url, method, param }?: SearchConfig) => Promise<void>;
|
|
16
16
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StepDomainComponent } from './domain/components/StepDomainComponent';
|
|
2
|
+
import type { DynamicFlowCoreProps } from './types';
|
|
3
|
+
type DynamicFlowViewRootProps = Pick<DynamicFlowCoreProps, 'httpClient' | 'renderers' | 'onEvent' | 'onError'> & {
|
|
4
|
+
stepComponent: StepDomainComponent | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function DynamicFlowViewRoot(props: DynamicFlowViewRootProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AlertComponent } from '../../domain/components/AlertComponent';
|
|
2
2
|
import type { AlertRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const alertComponentToProps: (
|
|
3
|
+
export declare const alertComponentToProps: (component: AlertComponent) => AlertRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { AllOfComponent } from '../../domain/components/AllOfComponent';
|
|
3
3
|
import type { FormSectionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
export declare const allOfComponentToProps: (
|
|
4
|
+
export declare const allOfComponentToProps: (component: AllOfComponent, children: ReactNode) => FormSectionRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BoxComponent } from '../../domain/components/BoxComponent';
|
|
3
2
|
import type { BoxRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
|
|
3
|
+
import type { BoxComponent } from '../../domain/components/BoxComponent';
|
|
4
|
+
export declare const boxComponentToProps: (component: BoxComponent, children: ReactNode) => BoxRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DecisionComponent } from '../../domain/components/DecisionComponent';
|
|
2
1
|
import type { DecisionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
|
|
2
|
+
import type { DecisionComponent } from '../../domain/components/DecisionComponent';
|
|
3
|
+
export declare const decisionComponentToProps: (component: DecisionComponent) => DecisionRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DividerComponent } from '../../domain/components/DividerComponent';
|
|
2
2
|
import type { DividerRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const dividerComponentToProps: (
|
|
3
|
+
export declare const dividerComponentToProps: (component: DividerComponent) => DividerRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { HeadingComponent } from '../../domain/components/HeadingComponent';
|
|
2
2
|
import type { HeadingRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const headingComponentToProps: (
|
|
3
|
+
export declare const headingComponentToProps: (component: HeadingComponent) => HeadingRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ImageComponent } from '../../domain/components/ImageComponent';
|
|
2
2
|
import type { ImageRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const imageComponentToProps: (
|
|
3
|
+
export declare const imageComponentToProps: (component: ImageComponent) => ImageRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { InstructionsComponent } from '../../domain/components/InstructionsComponent';
|
|
2
2
|
import type { InstructionsRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const instructionsComponentToProps: (
|
|
3
|
+
export declare const instructionsComponentToProps: (component: InstructionsComponent) => InstructionsRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LoadingIndicatorComponent } from '../../domain/components/LoadingIndicatorComponent';
|
|
2
2
|
import type { LoadingIndicatorRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const loadingIndicatorComponentToProps: (
|
|
3
|
+
export declare const loadingIndicatorComponentToProps: (component: LoadingIndicatorComponent) => LoadingIndicatorRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { MarkdownComponent } from '../../domain/components/MarkdownComponent';
|
|
2
2
|
import type { MarkdownRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const markdownComponentToProps: (
|
|
3
|
+
export declare const markdownComponentToProps: (control: MarkdownComponent) => MarkdownRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ObjectComponent } from '../../domain/components/ObjectComponent';
|
|
3
2
|
import type { FormSectionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
|
|
3
|
+
import type { ObjectComponent } from '../../domain/components/ObjectComponent';
|
|
4
|
+
export declare const objectComponentToProps: (component: ObjectComponent, children: ReactNode) => FormSectionRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ParagraphComponent } from '../../domain/components/ParagraphComponent';
|
|
2
2
|
import type { ParagraphRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const paragraphComponentToProps: (
|
|
3
|
+
export declare const paragraphComponentToProps: (component: ParagraphComponent) => ParagraphRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ReviewComponent } from '../../domain/components/ReviewComponent';
|
|
2
1
|
import type { ReviewRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
|
|
2
|
+
import type { ReviewComponent } from '../../domain/components/ReviewComponent';
|
|
3
|
+
export declare const reviewComponentToProps: (component: ReviewComponent) => ReviewRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { StatusListComponent } from '../../domain/components/StatusListComponent';
|
|
2
1
|
import type { StatusListRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
|
|
2
|
+
import type { StatusListComponent } from '../../domain/components/StatusListComponent';
|
|
3
|
+
export declare const statusListComponentToProps: (component: StatusListComponent) => StatusListRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { TupleComponent } from '../../domain/components/TupleComponent';
|
|
3
3
|
import { FormSectionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
export declare const tupleComponentToProps: (
|
|
4
|
+
export declare const tupleComponentToProps: (component: TupleComponent, children: ReactNode) => FormSectionRendererProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pick<T extends {}, K extends keyof T>(obj: T, ...keys: K[]): Pick<T, K>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { StepDomainComponent } from '../domain/components/StepDomainComponent';
|
|
3
3
|
import type { StepRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
export declare const stepComponentToProps: (
|
|
4
|
+
export declare const stepComponentToProps: (component: StepDomainComponent, children: ReactNode) => StepRendererProps;
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.28.
|
|
3
|
+
"version": "3.28.9",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
7
7
|
"module": "./build/main.mjs",
|
|
8
8
|
"types": "./build/types/index.d.ts",
|
|
9
9
|
"style": "./build/main.css",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"registry": "https://registry.npmjs.org/"
|
|
12
|
+
},
|
|
10
13
|
"exports": {
|
|
11
14
|
".": {
|
|
12
15
|
"types": "./build/types/index.d.ts",
|
|
@@ -67,7 +70,6 @@
|
|
|
67
70
|
"jest-environment-jsdom": "29.7.0",
|
|
68
71
|
"jest-fetch-mock": "^3.0.3",
|
|
69
72
|
"jest-watch-typeahead": "^2.2.2",
|
|
70
|
-
"nanoid": "5.0.9",
|
|
71
73
|
"npm-run-all2": "7.0.1",
|
|
72
74
|
"postcss": "^8.4.49",
|
|
73
75
|
"postcss-cli": "^11.0.0",
|
|
@@ -98,10 +100,9 @@
|
|
|
98
100
|
},
|
|
99
101
|
"dependencies": {
|
|
100
102
|
"classnames": "2.5.1",
|
|
101
|
-
"nanoid": "5.0.9",
|
|
102
103
|
"react-webcam": "^7.2.0",
|
|
103
104
|
"screenfull": "^5.2.0",
|
|
104
|
-
"@wise/dynamic-flow-types": "2.28.
|
|
105
|
+
"@wise/dynamic-flow-types": "2.28.3"
|
|
105
106
|
},
|
|
106
107
|
"scripts": {
|
|
107
108
|
"dev": "pnpm build:visual-tests && storybook dev -p 3003",
|