@wise/dynamic-flow-client 5.0.0-experimental-feace93 → 5.0.0-experimental-c979470
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 +6 -2
- package/build/main.mjs +6 -2
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -7560,7 +7560,7 @@ var reviewComponentToProps = (component, rendererMapperProps) => __spreadValues(
|
|
|
7560
7560
|
|
|
7561
7561
|
// src/renderers/stepComponentToProps.ts
|
|
7562
7562
|
var stepComponentToProps = (component, rendererMapperProps) => {
|
|
7563
|
-
const { uid, analyticsId, back, control, description, error, step, title, tags } = component;
|
|
7563
|
+
const { uid, analyticsId, back, control, description, error, step, title, tags, onBehavior } = component;
|
|
7564
7564
|
const _a = rendererMapperProps, { showBack } = _a, restMapperProps = __objRest(_a, ["showBack"]);
|
|
7565
7565
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, restMapperProps));
|
|
7566
7566
|
const footerProps = component.footerComponents.map(
|
|
@@ -7576,12 +7576,16 @@ var stepComponentToProps = (component, rendererMapperProps) => {
|
|
|
7576
7576
|
description,
|
|
7577
7577
|
toolbar: getToolbarProps(component.toolbar, restMapperProps),
|
|
7578
7578
|
error,
|
|
7579
|
+
__rawStep: step,
|
|
7579
7580
|
title,
|
|
7580
7581
|
tags,
|
|
7581
7582
|
children: childrenProps.map(rendererMapperProps.render),
|
|
7582
7583
|
childrenProps,
|
|
7583
7584
|
footer: footerProps.map(rendererMapperProps.render),
|
|
7584
|
-
footerProps
|
|
7585
|
+
footerProps,
|
|
7586
|
+
__onAction: (action) => {
|
|
7587
|
+
void onBehavior({ type: "action", action });
|
|
7588
|
+
}
|
|
7585
7589
|
}, restMapperProps);
|
|
7586
7590
|
};
|
|
7587
7591
|
var getToolbarProps = (toolbar, rendererMapperProps) => {
|
package/build/main.mjs
CHANGED
|
@@ -7533,7 +7533,7 @@ var reviewComponentToProps = (component, rendererMapperProps) => __spreadValues(
|
|
|
7533
7533
|
|
|
7534
7534
|
// src/renderers/stepComponentToProps.ts
|
|
7535
7535
|
var stepComponentToProps = (component, rendererMapperProps) => {
|
|
7536
|
-
const { uid, analyticsId, back, control, description, error, step, title, tags } = component;
|
|
7536
|
+
const { uid, analyticsId, back, control, description, error, step, title, tags, onBehavior } = component;
|
|
7537
7537
|
const _a = rendererMapperProps, { showBack } = _a, restMapperProps = __objRest(_a, ["showBack"]);
|
|
7538
7538
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, restMapperProps));
|
|
7539
7539
|
const footerProps = component.footerComponents.map(
|
|
@@ -7549,12 +7549,16 @@ var stepComponentToProps = (component, rendererMapperProps) => {
|
|
|
7549
7549
|
description,
|
|
7550
7550
|
toolbar: getToolbarProps(component.toolbar, restMapperProps),
|
|
7551
7551
|
error,
|
|
7552
|
+
__rawStep: step,
|
|
7552
7553
|
title,
|
|
7553
7554
|
tags,
|
|
7554
7555
|
children: childrenProps.map(rendererMapperProps.render),
|
|
7555
7556
|
childrenProps,
|
|
7556
7557
|
footer: footerProps.map(rendererMapperProps.render),
|
|
7557
|
-
footerProps
|
|
7558
|
+
footerProps,
|
|
7559
|
+
__onAction: (action) => {
|
|
7560
|
+
void onBehavior({ type: "action", action });
|
|
7561
|
+
}
|
|
7558
7562
|
}, restMapperProps);
|
|
7559
7563
|
};
|
|
7560
7564
|
var getToolbarProps = (toolbar, rendererMapperProps) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "5.0.0-experimental-
|
|
3
|
+
"version": "5.0.0-experimental-c979470",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"react-intl": "^6"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@wise/dynamic-flow-types": "4.0.0-experimental-
|
|
97
|
+
"@wise/dynamic-flow-types": "4.0.0-experimental-c979470"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"dev": "EXCLUDE_VISUAL_TESTS=true pnpm storybook dev -p 3003",
|