@wise/dynamic-flow-client-internal 4.35.1 → 4.36.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 +12 -8
- package/build/main.mjs +17 -13
- package/package.json +3 -3
package/build/main.js
CHANGED
|
@@ -62,7 +62,7 @@ __export(index_exports, {
|
|
|
62
62
|
DynamicFlowLegacy: () => DynamicFlowLegacy,
|
|
63
63
|
DynamicFlowRevamp: () => DynamicFlowRevamp,
|
|
64
64
|
DynamicForm: () => DynamicForm,
|
|
65
|
-
Header: () =>
|
|
65
|
+
Header: () => Header12,
|
|
66
66
|
JsonSchemaForm: () => import_dynamic_flow_client4.JsonSchemaForm,
|
|
67
67
|
Media: () => Media2,
|
|
68
68
|
findRendererPropsByType: () => import_dynamic_flow_client4.findRendererPropsByType,
|
|
@@ -3027,19 +3027,23 @@ var StepRenderer = {
|
|
|
3027
3027
|
render: StepRendererComponent
|
|
3028
3028
|
};
|
|
3029
3029
|
function StepRendererComponent(props) {
|
|
3030
|
-
const { back, description, error, title, children, toolbar, footer } = props;
|
|
3030
|
+
const { back, description, error, title, children, toolbar, footer, tags } = props;
|
|
3031
3031
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
3032
3032
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
|
|
3033
3033
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TopBar, { back, toolbar }),
|
|
3034
|
-
title || description ? /* @__PURE__ */ (0, import_jsx_runtime70.
|
|
3035
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
3036
|
-
description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
3037
|
-
] }) : void 0,
|
|
3034
|
+
title || description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Header10, { title, description, tags }) }) : void 0,
|
|
3038
3035
|
error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
3039
3036
|
children,
|
|
3040
3037
|
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
3041
3038
|
] });
|
|
3042
3039
|
}
|
|
3040
|
+
var Header10 = ({ title, description, tags }) => {
|
|
3041
|
+
const alignment = (tags == null ? void 0 : tags.includes("header-start")) ? "text-xs-left" : "text-xs-center";
|
|
3042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
|
|
3043
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Title, { as: "h1", type: "title-section", className: `${alignment} m-b-2`, children: title }) : void 0,
|
|
3044
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: `${alignment} np-text-body-large`, children: description }) : void 0
|
|
3045
|
+
] });
|
|
3046
|
+
};
|
|
3043
3047
|
|
|
3044
3048
|
// ../renderers/src/TabsRenderer.tsx
|
|
3045
3049
|
var import_components48 = require("@transferwise/components");
|
|
@@ -3706,7 +3710,7 @@ var getWiseRenderers = () => [
|
|
|
3706
3710
|
];
|
|
3707
3711
|
|
|
3708
3712
|
// src/dynamicFlow/renderers.ts
|
|
3709
|
-
var
|
|
3713
|
+
var Header12 = Header7;
|
|
3710
3714
|
var Media2 = Media;
|
|
3711
3715
|
var getMargin2 = getMargin;
|
|
3712
3716
|
var getListItemRenderers2 = getListItemRenderers;
|
|
@@ -4564,7 +4568,7 @@ var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
|
4564
4568
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4565
4569
|
var appVersion = (
|
|
4566
4570
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4567
|
-
typeof process !== "undefined" ? "4.
|
|
4571
|
+
typeof process !== "undefined" ? "4.36.0" : "0.0.0"
|
|
4568
4572
|
);
|
|
4569
4573
|
|
|
4570
4574
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
package/build/main.mjs
CHANGED
|
@@ -2981,25 +2981,29 @@ function SplashStepRendererComponent(props) {
|
|
|
2981
2981
|
|
|
2982
2982
|
// ../renderers/src/step/StepRenderer.tsx
|
|
2983
2983
|
import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
|
|
2984
|
-
import { jsx as jsx70, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2984
|
+
import { Fragment as Fragment10, jsx as jsx70, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2985
2985
|
var StepRenderer = {
|
|
2986
2986
|
canRenderType: "step",
|
|
2987
2987
|
render: StepRendererComponent
|
|
2988
2988
|
};
|
|
2989
2989
|
function StepRendererComponent(props) {
|
|
2990
|
-
const { back, description, error, title, children, toolbar, footer } = props;
|
|
2990
|
+
const { back, description, error, title, children, toolbar, footer, tags } = props;
|
|
2991
2991
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2992
2992
|
return /* @__PURE__ */ jsxs28("div", { children: [
|
|
2993
2993
|
/* @__PURE__ */ jsx70(TopBar, { back, toolbar }),
|
|
2994
|
-
title || description ? /* @__PURE__ */
|
|
2995
|
-
title ? /* @__PURE__ */ jsx70(Title2, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
2996
|
-
description ? /* @__PURE__ */ jsx70("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
2997
|
-
] }) : void 0,
|
|
2994
|
+
title || description ? /* @__PURE__ */ jsx70("div", { className: "m-b-4", children: /* @__PURE__ */ jsx70(Header10, { title, description, tags }) }) : void 0,
|
|
2998
2995
|
error ? /* @__PURE__ */ jsx70(Alert2, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
2999
2996
|
children,
|
|
3000
2997
|
hasFooter ? /* @__PURE__ */ jsx70("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
3001
2998
|
] });
|
|
3002
2999
|
}
|
|
3000
|
+
var Header10 = ({ title, description, tags }) => {
|
|
3001
|
+
const alignment = (tags == null ? void 0 : tags.includes("header-start")) ? "text-xs-left" : "text-xs-center";
|
|
3002
|
+
return /* @__PURE__ */ jsxs28(Fragment10, { children: [
|
|
3003
|
+
title ? /* @__PURE__ */ jsx70(Title2, { as: "h1", type: "title-section", className: `${alignment} m-b-2`, children: title }) : void 0,
|
|
3004
|
+
description ? /* @__PURE__ */ jsx70("p", { className: `${alignment} np-text-body-large`, children: description }) : void 0
|
|
3005
|
+
] });
|
|
3006
|
+
};
|
|
3003
3007
|
|
|
3004
3008
|
// ../renderers/src/TabsRenderer.tsx
|
|
3005
3009
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
@@ -3338,13 +3342,13 @@ var shouldUseAvatar = (control, tags) => {
|
|
|
3338
3342
|
};
|
|
3339
3343
|
|
|
3340
3344
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3341
|
-
import { Fragment as
|
|
3345
|
+
import { Fragment as Fragment11, jsx as jsx77 } from "react/jsx-runtime";
|
|
3342
3346
|
var DecisionRenderer2 = {
|
|
3343
3347
|
canRenderType: "decision",
|
|
3344
3348
|
render: (props) => /* @__PURE__ */ jsx77(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
|
|
3345
3349
|
};
|
|
3346
3350
|
var renderDecisionList2 = ({ options, control }) => {
|
|
3347
|
-
return /* @__PURE__ */ jsx77(
|
|
3351
|
+
return /* @__PURE__ */ jsx77(Fragment11, { children: options.map((_a) => {
|
|
3348
3352
|
var _b = _a, { disabled, onClick } = _b, rest = __objRest(_b, ["disabled", "onClick"]);
|
|
3349
3353
|
const {
|
|
3350
3354
|
description,
|
|
@@ -3509,12 +3513,12 @@ var getHelpControl = (help) => {
|
|
|
3509
3513
|
var NewReviewRenderer_default = ReviewRenderer2;
|
|
3510
3514
|
|
|
3511
3515
|
// ../renderers/src/NewListItem/NewStatusListRenderer.tsx
|
|
3512
|
-
import { AvatarView as AvatarView4, Header as
|
|
3516
|
+
import { AvatarView as AvatarView4, Header as Header11, ListItem as ListItem8 } from "@transferwise/components";
|
|
3513
3517
|
import { jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3514
3518
|
var NewStatusListRenderer = {
|
|
3515
3519
|
canRenderType: "status-list",
|
|
3516
3520
|
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs32("div", { className: getMargin(margin), children: [
|
|
3517
|
-
title ? /* @__PURE__ */ jsx81(
|
|
3521
|
+
title ? /* @__PURE__ */ jsx81(Header11, { title }) : null,
|
|
3518
3522
|
items.map((item) => {
|
|
3519
3523
|
const { callToAction, description, icon, status, title: itemTitle } = item;
|
|
3520
3524
|
return /* @__PURE__ */ jsx81(
|
|
@@ -3672,7 +3676,7 @@ var getWiseRenderers = () => [
|
|
|
3672
3676
|
];
|
|
3673
3677
|
|
|
3674
3678
|
// src/dynamicFlow/renderers.ts
|
|
3675
|
-
var
|
|
3679
|
+
var Header12 = Header7;
|
|
3676
3680
|
var Media2 = Media;
|
|
3677
3681
|
var getMargin2 = getMargin;
|
|
3678
3682
|
var getListItemRenderers2 = getListItemRenderers;
|
|
@@ -4534,7 +4538,7 @@ import {
|
|
|
4534
4538
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4535
4539
|
var appVersion = (
|
|
4536
4540
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4537
|
-
typeof process !== "undefined" ? "4.
|
|
4541
|
+
typeof process !== "undefined" ? "4.36.0" : "0.0.0"
|
|
4538
4542
|
);
|
|
4539
4543
|
|
|
4540
4544
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4705,7 +4709,7 @@ export {
|
|
|
4705
4709
|
DynamicFlowLegacy,
|
|
4706
4710
|
DynamicFlowRevamp,
|
|
4707
4711
|
DynamicForm,
|
|
4708
|
-
|
|
4712
|
+
Header12 as Header,
|
|
4709
4713
|
JsonSchemaForm,
|
|
4710
4714
|
Media2 as Media,
|
|
4711
4715
|
findRendererPropsByType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.36.0",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
76
76
|
"tsx": "4.20.6",
|
|
77
77
|
"typescript": "5.9.3",
|
|
78
|
+
"@wise/dynamic-flow-types": "3.18.0",
|
|
78
79
|
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
79
|
-
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
80
|
-
"@wise/dynamic-flow-types": "3.18.0"
|
|
80
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@transferwise/components": "^46.104.0",
|