@wise/dynamic-flow-client-internal 4.35.0 → 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/i18n/it.json +1 -1
- package/build/main.css +3 -2
- package/build/main.js +21 -11
- package/build/main.mjs +26 -16
- package/package.json +8 -7
package/build/i18n/it.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"df.wise.filter.noResults": "Nessun risultato",
|
|
37
37
|
"df.wise.filter.placeholder": "Inizia a digitare per cercare",
|
|
38
38
|
"df.wise.filter.results": "Risultati della ricerca",
|
|
39
|
-
"df.wise.group.all": "
|
|
39
|
+
"df.wise.group.all": "Tutti",
|
|
40
40
|
"df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
|
|
41
41
|
"df.wise.group.popular": "Popolari",
|
|
42
42
|
"df.wise.group.recent": "Recenti"
|
package/build/main.css
CHANGED
|
@@ -248,7 +248,7 @@ button.df-back-btn {
|
|
|
248
248
|
}
|
|
249
249
|
.df-columns-renderer-container {
|
|
250
250
|
display: flex;
|
|
251
|
-
gap: var(--size-
|
|
251
|
+
gap: var(--size-4);
|
|
252
252
|
flex-direction: column;
|
|
253
253
|
}
|
|
254
254
|
.df-columns-renderer-column,
|
|
@@ -260,9 +260,10 @@ button.df-back-btn {
|
|
|
260
260
|
.df-columns-renderer-bias-end .df-columns-renderer-column:nth-child(2) {
|
|
261
261
|
flex: 2;
|
|
262
262
|
}
|
|
263
|
-
@media (width >=
|
|
263
|
+
@media (width >=768px) {
|
|
264
264
|
.df-columns-renderer-container {
|
|
265
265
|
flex-direction: row;
|
|
266
|
+
gap: var(--size-16);
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
269
|
.df-image .df-illustration {
|
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,
|
|
@@ -1602,7 +1602,7 @@ var MarkdownRenderer = {
|
|
|
1602
1602
|
render: ({ content, align, margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1603
1603
|
import_components23.Markdown,
|
|
1604
1604
|
{
|
|
1605
|
-
className:
|
|
1605
|
+
className: ["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large",
|
|
1606
1606
|
config: { link: { target: "_blank" } },
|
|
1607
1607
|
children: content
|
|
1608
1608
|
}
|
|
@@ -2060,7 +2060,13 @@ var ParagraphRenderer = {
|
|
|
2060
2060
|
};
|
|
2061
2061
|
function Paragraph({ align, control, margin, size, text }) {
|
|
2062
2062
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
2063
|
-
return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2063
|
+
return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2064
|
+
"p",
|
|
2065
|
+
{
|
|
2066
|
+
className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
|
|
2067
|
+
children: text
|
|
2068
|
+
}
|
|
2069
|
+
);
|
|
2064
2070
|
}
|
|
2065
2071
|
function CopyableParagraph({
|
|
2066
2072
|
text,
|
|
@@ -3021,19 +3027,23 @@ var StepRenderer = {
|
|
|
3021
3027
|
render: StepRendererComponent
|
|
3022
3028
|
};
|
|
3023
3029
|
function StepRendererComponent(props) {
|
|
3024
|
-
const { back, description, error, title, children, toolbar, footer } = props;
|
|
3030
|
+
const { back, description, error, title, children, toolbar, footer, tags } = props;
|
|
3025
3031
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
3026
3032
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
|
|
3027
3033
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TopBar, { back, toolbar }),
|
|
3028
|
-
title || description ? /* @__PURE__ */ (0, import_jsx_runtime70.
|
|
3029
|
-
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,
|
|
3030
|
-
description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
3031
|
-
] }) : 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,
|
|
3032
3035
|
error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
3033
3036
|
children,
|
|
3034
3037
|
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
3035
3038
|
] });
|
|
3036
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
|
+
};
|
|
3037
3047
|
|
|
3038
3048
|
// ../renderers/src/TabsRenderer.tsx
|
|
3039
3049
|
var import_components48 = require("@transferwise/components");
|
|
@@ -3700,7 +3710,7 @@ var getWiseRenderers = () => [
|
|
|
3700
3710
|
];
|
|
3701
3711
|
|
|
3702
3712
|
// src/dynamicFlow/renderers.ts
|
|
3703
|
-
var
|
|
3713
|
+
var Header12 = Header7;
|
|
3704
3714
|
var Media2 = Media;
|
|
3705
3715
|
var getMargin2 = getMargin;
|
|
3706
3716
|
var getListItemRenderers2 = getListItemRenderers;
|
|
@@ -4063,7 +4073,7 @@ var it_default = {
|
|
|
4063
4073
|
"df.wise.filter.noResults": "Nessun risultato",
|
|
4064
4074
|
"df.wise.filter.placeholder": "Inizia a digitare per cercare",
|
|
4065
4075
|
"df.wise.filter.results": "Risultati della ricerca",
|
|
4066
|
-
"df.wise.group.all": "
|
|
4076
|
+
"df.wise.group.all": "Tutti",
|
|
4067
4077
|
"df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
|
|
4068
4078
|
"df.wise.group.popular": "Popolari",
|
|
4069
4079
|
"df.wise.group.recent": "Recenti"
|
|
@@ -4558,7 +4568,7 @@ var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
|
4558
4568
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4559
4569
|
var appVersion = (
|
|
4560
4570
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4561
|
-
typeof process !== "undefined" ? "4.
|
|
4571
|
+
typeof process !== "undefined" ? "4.36.0" : "0.0.0"
|
|
4562
4572
|
);
|
|
4563
4573
|
|
|
4564
4574
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
package/build/main.mjs
CHANGED
|
@@ -1562,7 +1562,7 @@ var MarkdownRenderer = {
|
|
|
1562
1562
|
render: ({ content, align, margin, size }) => /* @__PURE__ */ jsx42("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx42(
|
|
1563
1563
|
Markdown3,
|
|
1564
1564
|
{
|
|
1565
|
-
className:
|
|
1565
|
+
className: ["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large",
|
|
1566
1566
|
config: { link: { target: "_blank" } },
|
|
1567
1567
|
children: content
|
|
1568
1568
|
}
|
|
@@ -2020,7 +2020,13 @@ var ParagraphRenderer = {
|
|
|
2020
2020
|
};
|
|
2021
2021
|
function Paragraph({ align, control, margin, size, text }) {
|
|
2022
2022
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
2023
|
-
return control === "copyable" ? /* @__PURE__ */ jsx50(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx50(
|
|
2023
|
+
return control === "copyable" ? /* @__PURE__ */ jsx50(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx50(
|
|
2024
|
+
"p",
|
|
2025
|
+
{
|
|
2026
|
+
className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
|
|
2027
|
+
children: text
|
|
2028
|
+
}
|
|
2029
|
+
);
|
|
2024
2030
|
}
|
|
2025
2031
|
function CopyableParagraph({
|
|
2026
2032
|
text,
|
|
@@ -2975,25 +2981,29 @@ function SplashStepRendererComponent(props) {
|
|
|
2975
2981
|
|
|
2976
2982
|
// ../renderers/src/step/StepRenderer.tsx
|
|
2977
2983
|
import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
|
|
2978
|
-
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";
|
|
2979
2985
|
var StepRenderer = {
|
|
2980
2986
|
canRenderType: "step",
|
|
2981
2987
|
render: StepRendererComponent
|
|
2982
2988
|
};
|
|
2983
2989
|
function StepRendererComponent(props) {
|
|
2984
|
-
const { back, description, error, title, children, toolbar, footer } = props;
|
|
2990
|
+
const { back, description, error, title, children, toolbar, footer, tags } = props;
|
|
2985
2991
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2986
2992
|
return /* @__PURE__ */ jsxs28("div", { children: [
|
|
2987
2993
|
/* @__PURE__ */ jsx70(TopBar, { back, toolbar }),
|
|
2988
|
-
title || description ? /* @__PURE__ */
|
|
2989
|
-
title ? /* @__PURE__ */ jsx70(Title2, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
2990
|
-
description ? /* @__PURE__ */ jsx70("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
2991
|
-
] }) : void 0,
|
|
2994
|
+
title || description ? /* @__PURE__ */ jsx70("div", { className: "m-b-4", children: /* @__PURE__ */ jsx70(Header10, { title, description, tags }) }) : void 0,
|
|
2992
2995
|
error ? /* @__PURE__ */ jsx70(Alert2, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
2993
2996
|
children,
|
|
2994
2997
|
hasFooter ? /* @__PURE__ */ jsx70("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2995
2998
|
] });
|
|
2996
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
|
+
};
|
|
2997
3007
|
|
|
2998
3008
|
// ../renderers/src/TabsRenderer.tsx
|
|
2999
3009
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
@@ -3332,13 +3342,13 @@ var shouldUseAvatar = (control, tags) => {
|
|
|
3332
3342
|
};
|
|
3333
3343
|
|
|
3334
3344
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3335
|
-
import { Fragment as
|
|
3345
|
+
import { Fragment as Fragment11, jsx as jsx77 } from "react/jsx-runtime";
|
|
3336
3346
|
var DecisionRenderer2 = {
|
|
3337
3347
|
canRenderType: "decision",
|
|
3338
3348
|
render: (props) => /* @__PURE__ */ jsx77(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
|
|
3339
3349
|
};
|
|
3340
3350
|
var renderDecisionList2 = ({ options, control }) => {
|
|
3341
|
-
return /* @__PURE__ */ jsx77(
|
|
3351
|
+
return /* @__PURE__ */ jsx77(Fragment11, { children: options.map((_a) => {
|
|
3342
3352
|
var _b = _a, { disabled, onClick } = _b, rest = __objRest(_b, ["disabled", "onClick"]);
|
|
3343
3353
|
const {
|
|
3344
3354
|
description,
|
|
@@ -3503,12 +3513,12 @@ var getHelpControl = (help) => {
|
|
|
3503
3513
|
var NewReviewRenderer_default = ReviewRenderer2;
|
|
3504
3514
|
|
|
3505
3515
|
// ../renderers/src/NewListItem/NewStatusListRenderer.tsx
|
|
3506
|
-
import { AvatarView as AvatarView4, Header as
|
|
3516
|
+
import { AvatarView as AvatarView4, Header as Header11, ListItem as ListItem8 } from "@transferwise/components";
|
|
3507
3517
|
import { jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3508
3518
|
var NewStatusListRenderer = {
|
|
3509
3519
|
canRenderType: "status-list",
|
|
3510
3520
|
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs32("div", { className: getMargin(margin), children: [
|
|
3511
|
-
title ? /* @__PURE__ */ jsx81(
|
|
3521
|
+
title ? /* @__PURE__ */ jsx81(Header11, { title }) : null,
|
|
3512
3522
|
items.map((item) => {
|
|
3513
3523
|
const { callToAction, description, icon, status, title: itemTitle } = item;
|
|
3514
3524
|
return /* @__PURE__ */ jsx81(
|
|
@@ -3666,7 +3676,7 @@ var getWiseRenderers = () => [
|
|
|
3666
3676
|
];
|
|
3667
3677
|
|
|
3668
3678
|
// src/dynamicFlow/renderers.ts
|
|
3669
|
-
var
|
|
3679
|
+
var Header12 = Header7;
|
|
3670
3680
|
var Media2 = Media;
|
|
3671
3681
|
var getMargin2 = getMargin;
|
|
3672
3682
|
var getListItemRenderers2 = getListItemRenderers;
|
|
@@ -4029,7 +4039,7 @@ var it_default = {
|
|
|
4029
4039
|
"df.wise.filter.noResults": "Nessun risultato",
|
|
4030
4040
|
"df.wise.filter.placeholder": "Inizia a digitare per cercare",
|
|
4031
4041
|
"df.wise.filter.results": "Risultati della ricerca",
|
|
4032
|
-
"df.wise.group.all": "
|
|
4042
|
+
"df.wise.group.all": "Tutti",
|
|
4033
4043
|
"df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
|
|
4034
4044
|
"df.wise.group.popular": "Popolari",
|
|
4035
4045
|
"df.wise.group.recent": "Recenti"
|
|
@@ -4528,7 +4538,7 @@ import {
|
|
|
4528
4538
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4529
4539
|
var appVersion = (
|
|
4530
4540
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4531
|
-
typeof process !== "undefined" ? "4.
|
|
4541
|
+
typeof process !== "undefined" ? "4.36.0" : "0.0.0"
|
|
4532
4542
|
);
|
|
4533
4543
|
|
|
4534
4544
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4699,7 +4709,7 @@ export {
|
|
|
4699
4709
|
DynamicFlowLegacy,
|
|
4700
4710
|
DynamicFlowRevamp,
|
|
4701
4711
|
DynamicForm,
|
|
4702
|
-
|
|
4712
|
+
Header12 as Header,
|
|
4703
4713
|
JsonSchemaForm,
|
|
4704
4714
|
Media2 as Media,
|
|
4705
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",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@testing-library/jest-dom": "6.9.1",
|
|
44
44
|
"@testing-library/react": "16.3.0",
|
|
45
45
|
"@testing-library/user-event": "14.6.1",
|
|
46
|
-
"@transferwise/components": "46.
|
|
46
|
+
"@transferwise/components": "46.113.1",
|
|
47
47
|
"@transferwise/formatting": "^2.13.4",
|
|
48
|
-
"@transferwise/icons": "
|
|
48
|
+
"@transferwise/icons": "4.0.0",
|
|
49
49
|
"@transferwise/neptune-css": "14.25.1",
|
|
50
50
|
"@types/jest": "30.0.0",
|
|
51
51
|
"@types/react": "18.3.26",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"currency-flags": "4.0.7",
|
|
57
57
|
"esbuild": "0.25.9",
|
|
58
58
|
"eslint-plugin-storybook": "9.1.15",
|
|
59
|
+
"framer-motion": "^12.23.22",
|
|
59
60
|
"jest": "30.2.0",
|
|
60
61
|
"jest-environment-jsdom": "30.2.0",
|
|
61
62
|
"jest-fetch-mock": "^3.0.3",
|
|
@@ -74,14 +75,14 @@
|
|
|
74
75
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
75
76
|
"tsx": "4.20.6",
|
|
76
77
|
"typescript": "5.9.3",
|
|
78
|
+
"@wise/dynamic-flow-types": "3.18.0",
|
|
77
79
|
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
78
|
-
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
79
|
-
"@wise/dynamic-flow-types": "3.18.0"
|
|
80
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
80
81
|
},
|
|
81
82
|
"peerDependencies": {
|
|
82
83
|
"@transferwise/components": "^46.104.0",
|
|
83
84
|
"@transferwise/formatting": "^2",
|
|
84
|
-
"@transferwise/icons": "^3
|
|
85
|
+
"@transferwise/icons": "^3 || ^4",
|
|
85
86
|
"@transferwise/neptune-css": "^14.22.0",
|
|
86
87
|
"@wise/art": "^2.19.0",
|
|
87
88
|
"@wise/components-theming": "^0.7.1 || ^1",
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
},
|
|
92
93
|
"dependencies": {
|
|
93
94
|
"classnames": "2.5.1",
|
|
94
|
-
"@wise/dynamic-flow-client": "4.20.
|
|
95
|
+
"@wise/dynamic-flow-client": "4.20.1",
|
|
95
96
|
"@wise/dynamic-flow-types": "3.18.0"
|
|
96
97
|
},
|
|
97
98
|
"scripts": {
|