@wise/dynamic-flow-client 5.4.1 → 5.5.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
CHANGED
|
@@ -1389,6 +1389,7 @@ var buttonComponentToProps = (component, rendererMapperProps) => {
|
|
|
1389
1389
|
"control",
|
|
1390
1390
|
"context",
|
|
1391
1391
|
"margin",
|
|
1392
|
+
"media",
|
|
1392
1393
|
"pinOrder",
|
|
1393
1394
|
"size",
|
|
1394
1395
|
"onClick",
|
|
@@ -2712,17 +2713,7 @@ var buttonLayoutToComponent = (uid, button, mapperProps) => {
|
|
|
2712
2713
|
var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
|
|
2713
2714
|
var _a;
|
|
2714
2715
|
const { onBehavior } = mapperProps;
|
|
2715
|
-
const {
|
|
2716
|
-
context,
|
|
2717
|
-
control,
|
|
2718
|
-
disabled,
|
|
2719
|
-
margin,
|
|
2720
|
-
pinOrder,
|
|
2721
|
-
size,
|
|
2722
|
-
title,
|
|
2723
|
-
analyticsId,
|
|
2724
|
-
tags
|
|
2725
|
-
} = button;
|
|
2716
|
+
const { context, control, disabled, margin, media, pinOrder, size, title, analyticsId, tags } = button;
|
|
2726
2717
|
const behavior = getDomainLayerBehavior(
|
|
2727
2718
|
button,
|
|
2728
2719
|
(_a = mapperProps.step.actions) != null ? _a : [],
|
|
@@ -2738,6 +2729,7 @@ var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
|
|
|
2738
2729
|
control,
|
|
2739
2730
|
disabled: disabled != null ? disabled : false,
|
|
2740
2731
|
margin: margin != null ? margin : "md",
|
|
2732
|
+
media: getDomainLayerMedia({ media }),
|
|
2741
2733
|
pinOrder,
|
|
2742
2734
|
size,
|
|
2743
2735
|
title: title != null ? title : "",
|
|
@@ -2752,6 +2744,7 @@ var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
|
|
|
2752
2744
|
control,
|
|
2753
2745
|
disabled,
|
|
2754
2746
|
margin = "md",
|
|
2747
|
+
media,
|
|
2755
2748
|
pinOrder,
|
|
2756
2749
|
size,
|
|
2757
2750
|
title,
|
|
@@ -2769,6 +2762,7 @@ var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
|
|
|
2769
2762
|
control: getButtonControl({ control, action: inlinedAction }),
|
|
2770
2763
|
disabled: getButtonDisabled({ disabled, action: inlinedAction }),
|
|
2771
2764
|
margin,
|
|
2765
|
+
media: getDomainLayerMedia({ media }),
|
|
2772
2766
|
pinOrder,
|
|
2773
2767
|
size,
|
|
2774
2768
|
title: getButtonTitle({ title, action: inlinedAction }),
|
package/build/main.mjs
CHANGED
|
@@ -1359,6 +1359,7 @@ var buttonComponentToProps = (component, rendererMapperProps) => {
|
|
|
1359
1359
|
"control",
|
|
1360
1360
|
"context",
|
|
1361
1361
|
"margin",
|
|
1362
|
+
"media",
|
|
1362
1363
|
"pinOrder",
|
|
1363
1364
|
"size",
|
|
1364
1365
|
"onClick",
|
|
@@ -2682,17 +2683,7 @@ var buttonLayoutToComponent = (uid, button, mapperProps) => {
|
|
|
2682
2683
|
var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
|
|
2683
2684
|
var _a;
|
|
2684
2685
|
const { onBehavior } = mapperProps;
|
|
2685
|
-
const {
|
|
2686
|
-
context,
|
|
2687
|
-
control,
|
|
2688
|
-
disabled,
|
|
2689
|
-
margin,
|
|
2690
|
-
pinOrder,
|
|
2691
|
-
size,
|
|
2692
|
-
title,
|
|
2693
|
-
analyticsId,
|
|
2694
|
-
tags
|
|
2695
|
-
} = button;
|
|
2686
|
+
const { context, control, disabled, margin, media, pinOrder, size, title, analyticsId, tags } = button;
|
|
2696
2687
|
const behavior = getDomainLayerBehavior(
|
|
2697
2688
|
button,
|
|
2698
2689
|
(_a = mapperProps.step.actions) != null ? _a : [],
|
|
@@ -2708,6 +2699,7 @@ var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
|
|
|
2708
2699
|
control,
|
|
2709
2700
|
disabled: disabled != null ? disabled : false,
|
|
2710
2701
|
margin: margin != null ? margin : "md",
|
|
2702
|
+
media: getDomainLayerMedia({ media }),
|
|
2711
2703
|
pinOrder,
|
|
2712
2704
|
size,
|
|
2713
2705
|
title: title != null ? title : "",
|
|
@@ -2722,6 +2714,7 @@ var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
|
|
|
2722
2714
|
control,
|
|
2723
2715
|
disabled,
|
|
2724
2716
|
margin = "md",
|
|
2717
|
+
media,
|
|
2725
2718
|
pinOrder,
|
|
2726
2719
|
size,
|
|
2727
2720
|
title,
|
|
@@ -2739,6 +2732,7 @@ var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
|
|
|
2739
2732
|
control: getButtonControl({ control, action: inlinedAction }),
|
|
2740
2733
|
disabled: getButtonDisabled({ disabled, action: inlinedAction }),
|
|
2741
2734
|
margin,
|
|
2735
|
+
media: getDomainLayerMedia({ media }),
|
|
2742
2736
|
pinOrder,
|
|
2743
2737
|
size,
|
|
2744
2738
|
title: getButtonTitle({ title, action: inlinedAction }),
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { Size } from '@wise/dynamic-flow-types/spec';
|
|
2
|
-
import type { BaseLayoutComponent, Context } from '../types';
|
|
2
|
+
import type { BaseLayoutComponent, Context, Media } from '../types';
|
|
3
3
|
export type ButtonComponent = BaseLayoutComponent & {
|
|
4
4
|
type: 'button';
|
|
5
5
|
kind: 'layout';
|
|
6
6
|
context: Context;
|
|
7
7
|
disabled: boolean;
|
|
8
|
+
media?: Media;
|
|
8
9
|
pinOrder?: number;
|
|
9
10
|
size?: Size;
|
|
10
11
|
title: string;
|
|
11
12
|
onClick: () => void;
|
|
12
13
|
};
|
|
13
|
-
export declare const createButtonComponent: (buttonProps: Pick<ButtonComponent, "uid" | "context" | "control" | "disabled" | "margin" | "onClick" | "pinOrder" | "size" | "title" | "analyticsId" | "tags">) => ButtonComponent;
|
|
14
|
+
export declare const createButtonComponent: (buttonProps: Pick<ButtonComponent, "uid" | "context" | "control" | "disabled" | "margin" | "media" | "onClick" | "pinOrder" | "size" | "title" | "analyticsId" | "tags">) => ButtonComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"typescript": "5.9.3",
|
|
73
73
|
"vitest": "4.0.18",
|
|
74
74
|
"vitest-fetch-mock": "0.4.5",
|
|
75
|
-
"@wise/dynamic-flow-
|
|
76
|
-
"@wise/dynamic-flow-
|
|
75
|
+
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
76
|
+
"@wise/dynamic-flow-renderers": "0.0.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@transferwise/components": "^46.104.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"react-intl": "^6 || ^7"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@wise/dynamic-flow-types": "4.
|
|
89
|
+
"@wise/dynamic-flow-types": "4.6.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"dev": "EXCLUDE_VISUAL_TESTS=true pnpm storybook dev -p 3003",
|