@wise/dynamic-flow-client-internal 5.15.1 → 5.16.1
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/README.md +4 -4
- package/build/i18n/zh_HK.json +1 -1
- package/build/main.js +39 -51
- package/build/main.mjs +26 -38
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/dynamicFlow/getMergedRenderers.d.ts.map +1 -1
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -19,20 +19,20 @@ npm install @wise/dynamic-flow-client-internal
|
|
|
19
19
|
pnpm install @wise/dynamic-flow-client-internal
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
2. Install required peer dependencies (if not already installed). Please refer to setup instructions for `@transferwise/components`
|
|
22
|
+
2. Install required peer dependencies (if not already installed). Please refer to setup instructions for `@transferwise/components` if installing for the first time.
|
|
23
23
|
|
|
24
24
|
```
|
|
25
25
|
# yarn
|
|
26
26
|
yarn add prop-types react react-dom react-intl
|
|
27
|
-
yarn add @transferwise/components @transferwise/formatting @transferwise/icons
|
|
27
|
+
yarn add @transferwise/components @transferwise/formatting @transferwise/icons
|
|
28
28
|
|
|
29
29
|
# npm
|
|
30
30
|
npm install prop-types react react-dom react-intl
|
|
31
|
-
npm install @transferwise/components @transferwise/formatting @transferwise/icons
|
|
31
|
+
npm install @transferwise/components @transferwise/formatting @transferwise/icons
|
|
32
32
|
|
|
33
33
|
# pnpm
|
|
34
34
|
pnpm install prop-types react react-dom react-intl
|
|
35
|
-
pnpm install @transferwise/components @transferwise/formatting @transferwise/icons
|
|
35
|
+
pnpm install @transferwise/components @transferwise/formatting @transferwise/icons
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
**Note:** Keep in mind that some of these dependencies have their own peer dependencies. Don't forget to install those, for instance: `@transferwise/components` needs `@wise/art` and `@wise/components-theming`.
|
package/build/i18n/zh_HK.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"df.wise.filter.placeholder": "開始輸入以搜尋",
|
|
39
39
|
"df.wise.filter.results": "搜尋結果",
|
|
40
40
|
"df.wise.group.all": "全部",
|
|
41
|
-
"df.wise.group.currencies-with-account-details": "
|
|
41
|
+
"df.wise.group.currencies-with-account-details": "提供帳戶資料的貨幣",
|
|
42
42
|
"df.wise.group.popular": "熱門",
|
|
43
43
|
"df.wise.group.recent": "最近的",
|
|
44
44
|
"df.wise.step.scrollToBottom": "滑動到最底部"
|
package/build/main.js
CHANGED
|
@@ -127,21 +127,21 @@ __export(index_exports, {
|
|
|
127
127
|
DynamicFlowWithRef: () => DynamicFlowWithRef,
|
|
128
128
|
Header: () => Header10,
|
|
129
129
|
Media: () => Media2,
|
|
130
|
-
findRendererPropsByType: () =>
|
|
130
|
+
findRendererPropsByType: () => import_dynamic_flow_client8.findRendererPropsByType,
|
|
131
131
|
getMargin: () => getMargin2,
|
|
132
|
-
makeCustomFetch: () =>
|
|
132
|
+
makeCustomFetch: () => import_dynamic_flow_client7.makeHttpClient,
|
|
133
133
|
translations: () => i18n_default
|
|
134
134
|
});
|
|
135
135
|
module.exports = __toCommonJS(index_exports);
|
|
136
|
-
var
|
|
136
|
+
var import_dynamic_flow_client7 = require("@wise/dynamic-flow-client");
|
|
137
137
|
|
|
138
138
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
139
|
-
var
|
|
139
|
+
var import_dynamic_flow_client4 = require("@wise/dynamic-flow-client");
|
|
140
140
|
|
|
141
141
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
142
142
|
var appVersion = (
|
|
143
143
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
144
|
-
typeof process !== "undefined" ? "5.
|
|
144
|
+
typeof process !== "undefined" ? "5.16.1" : "0.0.0"
|
|
145
145
|
);
|
|
146
146
|
|
|
147
147
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -3630,7 +3630,7 @@ var StatusListRenderer = {
|
|
|
3630
3630
|
{
|
|
3631
3631
|
title: itemTitle,
|
|
3632
3632
|
subtitle: description,
|
|
3633
|
-
media:
|
|
3633
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(StatusListItemMedia, __spreadValues({}, item)),
|
|
3634
3634
|
additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3635
3635
|
import_components53.ListItem.AdditionalInfo,
|
|
3636
3636
|
{
|
|
@@ -3648,6 +3648,18 @@ var StatusListRenderer = {
|
|
|
3648
3648
|
})
|
|
3649
3649
|
] })
|
|
3650
3650
|
};
|
|
3651
|
+
var StatusListItemMedia = ({ icon, status }) => {
|
|
3652
|
+
if (!icon) {
|
|
3653
|
+
return void 0;
|
|
3654
|
+
}
|
|
3655
|
+
if ("name" in icon) {
|
|
3656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.AvatarView, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DynamicIcon_default, { name: icon.name }) });
|
|
3657
|
+
}
|
|
3658
|
+
if ("text" in icon) {
|
|
3659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.AvatarView, { badge: { status: mapStatus(status) }, children: icon.text });
|
|
3660
|
+
}
|
|
3661
|
+
return void 0;
|
|
3662
|
+
};
|
|
3651
3663
|
var mapStatus = (status) => {
|
|
3652
3664
|
switch (status) {
|
|
3653
3665
|
case "done":
|
|
@@ -4368,33 +4380,6 @@ var InitialLoadingStateRenderer = {
|
|
|
4368
4380
|
)
|
|
4369
4381
|
};
|
|
4370
4382
|
|
|
4371
|
-
// ../renderers/src/subflow/getSubflowRenderer.tsx
|
|
4372
|
-
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
4373
|
-
var getSubflowRenderer = ({
|
|
4374
|
-
Component: Component2,
|
|
4375
|
-
canRender
|
|
4376
|
-
}) => {
|
|
4377
|
-
return {
|
|
4378
|
-
canRenderType: "subflow",
|
|
4379
|
-
canRender,
|
|
4380
|
-
render: (props) => {
|
|
4381
|
-
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4382
|
-
Component2,
|
|
4383
|
-
{
|
|
4384
|
-
presentation: props.presentation,
|
|
4385
|
-
requestCache: props.requestCache,
|
|
4386
|
-
initialRequest: props.initialRequest,
|
|
4387
|
-
onCompletion: props.onCompletion,
|
|
4388
|
-
onError: props.onError,
|
|
4389
|
-
onCancellation: props.onCancellation,
|
|
4390
|
-
onEvent: props.onEvent
|
|
4391
|
-
},
|
|
4392
|
-
props.uid
|
|
4393
|
-
);
|
|
4394
|
-
}
|
|
4395
|
-
};
|
|
4396
|
-
};
|
|
4397
|
-
|
|
4398
4383
|
// src/dynamicFlow/useOnCopy.tsx
|
|
4399
4384
|
var import_react22 = require("react");
|
|
4400
4385
|
var import_react_intl29 = require("react-intl");
|
|
@@ -4456,33 +4441,36 @@ var handleRejection = (error) => {
|
|
|
4456
4441
|
throw error;
|
|
4457
4442
|
};
|
|
4458
4443
|
|
|
4444
|
+
// src/dynamicFlow/getMergedRenderers.tsx
|
|
4445
|
+
var import_dynamic_flow_client3 = require("@wise/dynamic-flow-client");
|
|
4446
|
+
|
|
4459
4447
|
// src/dynamicFlow/DynamicFlowModal.tsx
|
|
4460
4448
|
var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
4461
4449
|
var import_components66 = require("@transferwise/components");
|
|
4462
|
-
var
|
|
4450
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
4463
4451
|
function DynamicFlowModal(props) {
|
|
4464
4452
|
const _a = props, { className = "" } = _a, rest = __objRest(_a, ["className"]);
|
|
4465
4453
|
const dfProps = useWiseToCoreProps(rest);
|
|
4466
4454
|
const df = (0, import_dynamic_flow_client2.useDynamicFlowModal)(dfProps);
|
|
4467
|
-
return /* @__PURE__ */ (0,
|
|
4455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4468
4456
|
import_components66.Modal,
|
|
4469
4457
|
__spreadProps(__spreadValues({
|
|
4470
4458
|
className: `dynamic-flow-modal ${className}`,
|
|
4471
4459
|
disableDimmerClickToClose: true
|
|
4472
4460
|
}, df.modal), {
|
|
4473
|
-
body: /* @__PURE__ */ (0,
|
|
4461
|
+
body: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "dynamic-flow-modal", children: df.modal.body })
|
|
4474
4462
|
})
|
|
4475
4463
|
);
|
|
4476
4464
|
}
|
|
4477
4465
|
|
|
4478
4466
|
// src/dynamicFlow/getMergedRenderers.tsx
|
|
4479
|
-
var
|
|
4467
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
4480
4468
|
var wiseRenderers = getWiseRenderers();
|
|
4481
4469
|
var getMergedRenderers = (props) => {
|
|
4482
4470
|
var _d, _e;
|
|
4483
4471
|
const _a = props, { initialAction, initialStep } = _a, restProps = __objRest(_a, ["initialAction", "initialStep"]);
|
|
4484
4472
|
const subflowFeatures = __spreadProps(__spreadValues({}, props.features), { nativeBack: true });
|
|
4485
|
-
const subflowRenderer =
|
|
4473
|
+
const subflowRenderer = (0, import_dynamic_flow_client3.getDynamicSubflowRenderer)({
|
|
4486
4474
|
Component: (_b) => {
|
|
4487
4475
|
var _c = _b, { presentation, initialRequest } = _c, rest = __objRest(_c, ["presentation", "initialRequest"]);
|
|
4488
4476
|
const action = {
|
|
@@ -4490,7 +4478,7 @@ var getMergedRenderers = (props) => {
|
|
|
4490
4478
|
method: initialRequest.method,
|
|
4491
4479
|
data: initialRequest.body
|
|
4492
4480
|
};
|
|
4493
|
-
return presentation.type === "push" ? /* @__PURE__ */ (0,
|
|
4481
|
+
return presentation.type === "push" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
4494
4482
|
DynamicFlowModal,
|
|
4495
4483
|
__spreadProps(__spreadValues(__spreadValues({}, restProps), rest), {
|
|
4496
4484
|
features: subflowFeatures,
|
|
@@ -4549,13 +4537,13 @@ var openLinkInNewTab = (url) => {
|
|
|
4549
4537
|
};
|
|
4550
4538
|
|
|
4551
4539
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4552
|
-
var
|
|
4540
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
4553
4541
|
function DynamicFlow(props) {
|
|
4554
4542
|
const { className = "" } = props;
|
|
4555
4543
|
const dfProps = useWiseToCoreProps(props);
|
|
4556
|
-
const df = (0,
|
|
4544
|
+
const df = (0, import_dynamic_flow_client4.useDynamicFlow)(dfProps);
|
|
4557
4545
|
const { onContextMenu, contextMenu } = useDFContextMenu(df.controller);
|
|
4558
|
-
return /* @__PURE__ */ (0,
|
|
4546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className, onContextMenu, children: [
|
|
4559
4547
|
df.view,
|
|
4560
4548
|
contextMenu
|
|
4561
4549
|
] });
|
|
@@ -4563,12 +4551,12 @@ function DynamicFlow(props) {
|
|
|
4563
4551
|
|
|
4564
4552
|
// src/dynamicFlow/DynamicFlowWithRef.tsx
|
|
4565
4553
|
var import_react25 = require("react");
|
|
4566
|
-
var
|
|
4567
|
-
var
|
|
4554
|
+
var import_dynamic_flow_client5 = require("@wise/dynamic-flow-client");
|
|
4555
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
4568
4556
|
var DynamicFlowWithRef = (0, import_react25.forwardRef)(function DynamicFlowWithRef2(props, ref) {
|
|
4569
4557
|
const { className = "" } = props;
|
|
4570
4558
|
const dfProps = useWiseToCoreProps(props);
|
|
4571
|
-
const df = (0,
|
|
4559
|
+
const df = (0, import_dynamic_flow_client5.useDynamicFlow)(dfProps);
|
|
4572
4560
|
(0, import_react25.useImperativeHandle)(
|
|
4573
4561
|
ref,
|
|
4574
4562
|
() => ({
|
|
@@ -4580,11 +4568,11 @@ var DynamicFlowWithRef = (0, import_react25.forwardRef)(function DynamicFlowWith
|
|
|
4580
4568
|
}),
|
|
4581
4569
|
[df]
|
|
4582
4570
|
);
|
|
4583
|
-
return /* @__PURE__ */ (0,
|
|
4571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className, children: df.view });
|
|
4584
4572
|
});
|
|
4585
4573
|
|
|
4586
4574
|
// src/index.ts
|
|
4587
|
-
var
|
|
4575
|
+
var import_dynamic_flow_client8 = require("@wise/dynamic-flow-client");
|
|
4588
4576
|
|
|
4589
4577
|
// src/dynamicFlow/renderers.tsx
|
|
4590
4578
|
var Header10 = Header5;
|
|
@@ -4592,7 +4580,7 @@ var Media2 = Media;
|
|
|
4592
4580
|
var getMargin2 = getMargin;
|
|
4593
4581
|
|
|
4594
4582
|
// src/i18n/index.ts
|
|
4595
|
-
var
|
|
4583
|
+
var import_dynamic_flow_client6 = require("@wise/dynamic-flow-client");
|
|
4596
4584
|
|
|
4597
4585
|
// src/i18n/cs.json
|
|
4598
4586
|
var cs_default = {
|
|
@@ -5434,7 +5422,7 @@ var zh_HK_default = {
|
|
|
5434
5422
|
"df.wise.filter.placeholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
5435
5423
|
"df.wise.filter.results": "\u641C\u5C0B\u7D50\u679C",
|
|
5436
5424
|
"df.wise.group.all": "\u5168\u90E8",
|
|
5437
|
-
"df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\
|
|
5425
|
+
"df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\u5E33\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
|
|
5438
5426
|
"df.wise.group.popular": "\u71B1\u9580",
|
|
5439
5427
|
"df.wise.group.recent": "\u6700\u8FD1\u7684",
|
|
5440
5428
|
"df.wise.step.scrollToBottom": "\u6ED1\u52D5\u5230\u6700\u5E95\u90E8"
|
|
@@ -5463,10 +5451,10 @@ var wiseTranslations = {
|
|
|
5463
5451
|
"zh-HK": zh_HK_default
|
|
5464
5452
|
};
|
|
5465
5453
|
var languages = Array.from(
|
|
5466
|
-
/* @__PURE__ */ new Set([...Object.keys(
|
|
5454
|
+
/* @__PURE__ */ new Set([...Object.keys(import_dynamic_flow_client6.translations), ...Object.keys(wiseTranslations)])
|
|
5467
5455
|
);
|
|
5468
5456
|
var translations = languages.reduce(
|
|
5469
|
-
(acc, lang) => __spreadProps(__spreadValues({}, acc), { [lang]: __spreadValues(__spreadValues({},
|
|
5457
|
+
(acc, lang) => __spreadProps(__spreadValues({}, acc), { [lang]: __spreadValues(__spreadValues({}, import_dynamic_flow_client6.translations[lang]), wiseTranslations[lang]) }),
|
|
5470
5458
|
{}
|
|
5471
5459
|
);
|
|
5472
5460
|
var i18n_default = translations;
|
package/build/main.mjs
CHANGED
|
@@ -123,7 +123,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
|
|
|
123
123
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
124
124
|
var appVersion = (
|
|
125
125
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
126
|
-
typeof process !== "undefined" ? "5.
|
|
126
|
+
typeof process !== "undefined" ? "5.16.1" : "0.0.0"
|
|
127
127
|
);
|
|
128
128
|
|
|
129
129
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -3615,7 +3615,7 @@ var StatusListRenderer = {
|
|
|
3615
3615
|
{
|
|
3616
3616
|
title: itemTitle,
|
|
3617
3617
|
subtitle: description,
|
|
3618
|
-
media:
|
|
3618
|
+
media: /* @__PURE__ */ jsx76(StatusListItemMedia, __spreadValues({}, item)),
|
|
3619
3619
|
additionalInfo: callToAction ? /* @__PURE__ */ jsx76(
|
|
3620
3620
|
ListItem12.AdditionalInfo,
|
|
3621
3621
|
{
|
|
@@ -3633,6 +3633,18 @@ var StatusListRenderer = {
|
|
|
3633
3633
|
})
|
|
3634
3634
|
] })
|
|
3635
3635
|
};
|
|
3636
|
+
var StatusListItemMedia = ({ icon, status }) => {
|
|
3637
|
+
if (!icon) {
|
|
3638
|
+
return void 0;
|
|
3639
|
+
}
|
|
3640
|
+
if ("name" in icon) {
|
|
3641
|
+
return /* @__PURE__ */ jsx76(AvatarView4, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ jsx76(DynamicIcon_default, { name: icon.name }) });
|
|
3642
|
+
}
|
|
3643
|
+
if ("text" in icon) {
|
|
3644
|
+
return /* @__PURE__ */ jsx76(AvatarView4, { badge: { status: mapStatus(status) }, children: icon.text });
|
|
3645
|
+
}
|
|
3646
|
+
return void 0;
|
|
3647
|
+
};
|
|
3636
3648
|
var mapStatus = (status) => {
|
|
3637
3649
|
switch (status) {
|
|
3638
3650
|
case "done":
|
|
@@ -4359,33 +4371,6 @@ var InitialLoadingStateRenderer = {
|
|
|
4359
4371
|
)
|
|
4360
4372
|
};
|
|
4361
4373
|
|
|
4362
|
-
// ../renderers/src/subflow/getSubflowRenderer.tsx
|
|
4363
|
-
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
4364
|
-
var getSubflowRenderer = ({
|
|
4365
|
-
Component: Component2,
|
|
4366
|
-
canRender
|
|
4367
|
-
}) => {
|
|
4368
|
-
return {
|
|
4369
|
-
canRenderType: "subflow",
|
|
4370
|
-
canRender,
|
|
4371
|
-
render: (props) => {
|
|
4372
|
-
return /* @__PURE__ */ jsx92(
|
|
4373
|
-
Component2,
|
|
4374
|
-
{
|
|
4375
|
-
presentation: props.presentation,
|
|
4376
|
-
requestCache: props.requestCache,
|
|
4377
|
-
initialRequest: props.initialRequest,
|
|
4378
|
-
onCompletion: props.onCompletion,
|
|
4379
|
-
onError: props.onError,
|
|
4380
|
-
onCancellation: props.onCancellation,
|
|
4381
|
-
onEvent: props.onEvent
|
|
4382
|
-
},
|
|
4383
|
-
props.uid
|
|
4384
|
-
);
|
|
4385
|
-
}
|
|
4386
|
-
};
|
|
4387
|
-
};
|
|
4388
|
-
|
|
4389
4374
|
// src/dynamicFlow/useOnCopy.tsx
|
|
4390
4375
|
import { useCallback as useCallback2 } from "react";
|
|
4391
4376
|
import { useIntl as useIntl16 } from "react-intl";
|
|
@@ -4447,33 +4432,36 @@ var handleRejection = (error) => {
|
|
|
4447
4432
|
throw error;
|
|
4448
4433
|
};
|
|
4449
4434
|
|
|
4435
|
+
// src/dynamicFlow/getMergedRenderers.tsx
|
|
4436
|
+
import { getDynamicSubflowRenderer } from "@wise/dynamic-flow-client";
|
|
4437
|
+
|
|
4450
4438
|
// src/dynamicFlow/DynamicFlowModal.tsx
|
|
4451
4439
|
import { useDynamicFlowModal } from "@wise/dynamic-flow-client";
|
|
4452
4440
|
import { Modal as Modal5 } from "@transferwise/components";
|
|
4453
|
-
import { jsx as
|
|
4441
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
4454
4442
|
function DynamicFlowModal(props) {
|
|
4455
4443
|
const _a = props, { className = "" } = _a, rest = __objRest(_a, ["className"]);
|
|
4456
4444
|
const dfProps = useWiseToCoreProps(rest);
|
|
4457
4445
|
const df = useDynamicFlowModal(dfProps);
|
|
4458
|
-
return /* @__PURE__ */
|
|
4446
|
+
return /* @__PURE__ */ jsx92(
|
|
4459
4447
|
Modal5,
|
|
4460
4448
|
__spreadProps(__spreadValues({
|
|
4461
4449
|
className: `dynamic-flow-modal ${className}`,
|
|
4462
4450
|
disableDimmerClickToClose: true
|
|
4463
4451
|
}, df.modal), {
|
|
4464
|
-
body: /* @__PURE__ */
|
|
4452
|
+
body: /* @__PURE__ */ jsx92("div", { className: "dynamic-flow-modal", children: df.modal.body })
|
|
4465
4453
|
})
|
|
4466
4454
|
);
|
|
4467
4455
|
}
|
|
4468
4456
|
|
|
4469
4457
|
// src/dynamicFlow/getMergedRenderers.tsx
|
|
4470
|
-
import { jsx as
|
|
4458
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
4471
4459
|
var wiseRenderers = getWiseRenderers();
|
|
4472
4460
|
var getMergedRenderers = (props) => {
|
|
4473
4461
|
var _d, _e;
|
|
4474
4462
|
const _a = props, { initialAction, initialStep } = _a, restProps = __objRest(_a, ["initialAction", "initialStep"]);
|
|
4475
4463
|
const subflowFeatures = __spreadProps(__spreadValues({}, props.features), { nativeBack: true });
|
|
4476
|
-
const subflowRenderer =
|
|
4464
|
+
const subflowRenderer = getDynamicSubflowRenderer({
|
|
4477
4465
|
Component: (_b) => {
|
|
4478
4466
|
var _c = _b, { presentation, initialRequest } = _c, rest = __objRest(_c, ["presentation", "initialRequest"]);
|
|
4479
4467
|
const action = {
|
|
@@ -4481,7 +4469,7 @@ var getMergedRenderers = (props) => {
|
|
|
4481
4469
|
method: initialRequest.method,
|
|
4482
4470
|
data: initialRequest.body
|
|
4483
4471
|
};
|
|
4484
|
-
return presentation.type === "push" ? /* @__PURE__ */
|
|
4472
|
+
return presentation.type === "push" ? /* @__PURE__ */ jsx93(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ jsx93(
|
|
4485
4473
|
DynamicFlowModal,
|
|
4486
4474
|
__spreadProps(__spreadValues(__spreadValues({}, restProps), rest), {
|
|
4487
4475
|
features: subflowFeatures,
|
|
@@ -4558,7 +4546,7 @@ import {
|
|
|
4558
4546
|
useImperativeHandle
|
|
4559
4547
|
} from "react";
|
|
4560
4548
|
import { useDynamicFlow as useDynamicFlow2 } from "@wise/dynamic-flow-client";
|
|
4561
|
-
import { jsx as
|
|
4549
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
4562
4550
|
var DynamicFlowWithRef = forwardRef(function DynamicFlowWithRef2(props, ref) {
|
|
4563
4551
|
const { className = "" } = props;
|
|
4564
4552
|
const dfProps = useWiseToCoreProps(props);
|
|
@@ -4574,7 +4562,7 @@ var DynamicFlowWithRef = forwardRef(function DynamicFlowWithRef2(props, ref) {
|
|
|
4574
4562
|
}),
|
|
4575
4563
|
[df]
|
|
4576
4564
|
);
|
|
4577
|
-
return /* @__PURE__ */
|
|
4565
|
+
return /* @__PURE__ */ jsx94("div", { className, children: df.view });
|
|
4578
4566
|
});
|
|
4579
4567
|
|
|
4580
4568
|
// src/index.ts
|
|
@@ -5428,7 +5416,7 @@ var zh_HK_default = {
|
|
|
5428
5416
|
"df.wise.filter.placeholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
5429
5417
|
"df.wise.filter.results": "\u641C\u5C0B\u7D50\u679C",
|
|
5430
5418
|
"df.wise.group.all": "\u5168\u90E8",
|
|
5431
|
-
"df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\
|
|
5419
|
+
"df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\u5E33\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
|
|
5432
5420
|
"df.wise.group.popular": "\u71B1\u9580",
|
|
5433
5421
|
"df.wise.group.recent": "\u6700\u8FD1\u7684",
|
|
5434
5422
|
"df.wise.step.scrollToBottom": "\u6ED1\u52D5\u5230\u6700\u5E95\u90E8"
|