@wise/dynamic-flow-client 3.14.1 → 3.15.0
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 +997 -926
- package/build/main.min.js +1 -1
- package/build/main.mjs +363 -292
- package/build/types/revamp/domain/components/DecisionComponent.d.ts +2 -1
- package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/decisionComponentToProps.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import type { LayoutComponent } from '../types';
|
|
|
3
3
|
export type DecisionComponent = LayoutComponent & {
|
|
4
4
|
type: 'decision';
|
|
5
5
|
options: DecisionOption[];
|
|
6
|
+
title?: string;
|
|
6
7
|
};
|
|
7
8
|
export type DecisionOption = {
|
|
8
9
|
description?: string;
|
|
@@ -12,4 +13,4 @@ export type DecisionOption = {
|
|
|
12
13
|
title: string;
|
|
13
14
|
onClick: () => void;
|
|
14
15
|
};
|
|
15
|
-
export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, 'uid' | 'control' | 'margin' | 'options'>) => DecisionComponent;
|
|
16
|
+
export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, 'uid' | 'control' | 'margin' | 'options' | 'title'>) => DecisionComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DecisionLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const decisionLayoutToComponent: (uid: string, { control, margin, options }: DecisionLayout, { onAction, step }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
|
|
3
|
+
export declare const decisionLayoutToComponent: (uid: string, { control, margin, options, title }: DecisionLayout, { onAction, step }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DecisionComponent } from '../../domain/components/DecisionComponent';
|
|
2
2
|
import type { DecisionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
3
|
-
export declare const decisionComponentToProps: ({ options, margin, }: DecisionComponent) => DecisionRendererProps;
|
|
3
|
+
export declare const decisionComponentToProps: ({ options, margin, title, }: DecisionComponent) => DecisionRendererProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/react": "18.3.3",
|
|
62
62
|
"@types/react-dom": "18.3.0",
|
|
63
63
|
"@types/react-intl": "3.0.0",
|
|
64
|
-
"@wise/art": "2.
|
|
64
|
+
"@wise/art": "2.14.0",
|
|
65
65
|
"@wise/components-theming": "^1.5.0",
|
|
66
66
|
"babel-jest": "29.7.0",
|
|
67
67
|
"enzyme": "^3.11.0",
|