@wise/dynamic-flow-client-internal 5.23.0 → 5.23.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/build/main.css +33 -0
- package/build/main.js +14 -10
- package/build/main.mjs +98 -94
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/dynamicFlow/context-menu/useDFContextMenu.d.ts.map +1 -1
- package/build/types/dynamicFlow/getMergedRenderers.d.ts.map +1 -1
- package/build/types/dynamicFlow/messages.d.ts.map +1 -1
- package/build/types/dynamicFlow/renderers.d.ts +11 -5
- package/build/types/dynamicFlow/renderers.d.ts.map +1 -1
- package/build/types/dynamicFlow/telemetry/dispatchAnalyticsEvent.d.ts.map +1 -1
- package/build/types/dynamicFlow/telemetry/getLogEvent.d.ts.map +1 -1
- package/build/types/dynamicFlow/telemetry/getTrackEvent.d.ts.map +1 -1
- package/build/types/dynamicFlow/useWiseHttpClient.d.ts.map +1 -1
- package/build/types/dynamicFlow/useWiseToCoreProps.d.ts.map +1 -1
- package/build/types/i18n/index.d.ts.map +1 -1
- package/build/types/test-utils/NeptuneProviders.d.ts.map +1 -1
- package/build/types/test-utils/respond-with.d.ts.map +1 -1
- package/build/types/test-utils/rtl-utils.d.ts.map +1 -1
- package/build/types/test-utils/wait.d.ts.map +1 -1
- package/package.json +19 -19
package/build/main.mjs
CHANGED
|
@@ -127,7 +127,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
|
|
|
127
127
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
128
128
|
var appVersion = (
|
|
129
129
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
130
|
-
typeof process !== "undefined" ? "5.23.
|
|
130
|
+
typeof process !== "undefined" ? "5.23.1" : "0.0.0"
|
|
131
131
|
);
|
|
132
132
|
|
|
133
133
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -642,7 +642,7 @@ var AvatarMedia = ({
|
|
|
642
642
|
}
|
|
643
643
|
);
|
|
644
644
|
}
|
|
645
|
-
const avatarsWithoutBadges = avatars.filter(({ asset, icon }) => asset || icon).slice(0, 2).map(({ asset, icon, backgroundColor, color }) => ({
|
|
645
|
+
const avatarsWithoutBadges = avatars.filter(({ asset, icon }) => Boolean(asset || icon)).slice(0, 2).map(({ asset, icon, backgroundColor, color }) => ({
|
|
646
646
|
asset: icon != null ? icon : asset,
|
|
647
647
|
style: { backgroundColor, color }
|
|
648
648
|
}));
|
|
@@ -723,22 +723,25 @@ var getImageNode = (image, size) => {
|
|
|
723
723
|
|
|
724
724
|
// ../renderers/src/components/Media/LegacyMedia.tsx
|
|
725
725
|
import { AvatarView as AvatarView3 } from "@transferwise/components";
|
|
726
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
726
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
727
727
|
var LegacyMedia = ({ image, icon, preferAvatar, size }) => {
|
|
728
728
|
const imageNode = getImageNode(image, size);
|
|
729
729
|
const iconNode = getIconNode(icon);
|
|
730
730
|
const badge = getBadgedMedia(iconNode, imageNode, size);
|
|
731
731
|
if (badge) {
|
|
732
|
-
return badge;
|
|
732
|
+
return /* @__PURE__ */ jsx12(Fragment, { children: badge });
|
|
733
733
|
}
|
|
734
734
|
if (imageNode) {
|
|
735
|
-
return preferAvatar ? /* @__PURE__ */ jsx12(AvatarView3, { children: imageNode }) :
|
|
735
|
+
return preferAvatar ? /* @__PURE__ */ jsx12(AvatarView3, { children: imageNode }) : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
736
|
+
imageNode,
|
|
737
|
+
" "
|
|
738
|
+
] });
|
|
736
739
|
}
|
|
737
740
|
if (iconNode && icon) {
|
|
738
741
|
if ("text" in icon || size === 48) {
|
|
739
742
|
return /* @__PURE__ */ jsx12(AvatarView3, { size, children: iconNode });
|
|
740
743
|
}
|
|
741
|
-
return iconNode;
|
|
744
|
+
return /* @__PURE__ */ jsx12(Fragment, { children: iconNode });
|
|
742
745
|
}
|
|
743
746
|
return null;
|
|
744
747
|
};
|
|
@@ -911,9 +914,9 @@ function Help({ help, onClick }) {
|
|
|
911
914
|
var Help_default = Help;
|
|
912
915
|
|
|
913
916
|
// ../renderers/src/components/LabelContentWithHelp.tsx
|
|
914
|
-
import { jsx as jsx18, jsxs as
|
|
917
|
+
import { jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
915
918
|
function LabelContentWithHelp({ text, help }) {
|
|
916
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ jsxs4("div", { children: [
|
|
917
920
|
text,
|
|
918
921
|
/* @__PURE__ */ jsx18(Help_default, { help })
|
|
919
922
|
] });
|
|
@@ -1125,7 +1128,7 @@ var useIsCollapsed = () => {
|
|
|
1125
1128
|
};
|
|
1126
1129
|
|
|
1127
1130
|
// ../renderers/src/ColumnsRenderer.tsx
|
|
1128
|
-
import { jsx as jsx24, jsxs as
|
|
1131
|
+
import { jsx as jsx24, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1129
1132
|
var RIGHT_FIRST_STACKING = "right-first-stacking";
|
|
1130
1133
|
var ColumnsRenderer = {
|
|
1131
1134
|
canRenderType: "columns",
|
|
@@ -1143,7 +1146,7 @@ function ColumnsRendererComponent({
|
|
|
1143
1146
|
const reverse = isCollapsed && ((_a = tags == null ? void 0 : tags.includes(RIGHT_FIRST_STACKING)) != null ? _a : false);
|
|
1144
1147
|
const startColumn = /* @__PURE__ */ jsx24("div", { className: "df-columns-renderer-column", children: startChildren });
|
|
1145
1148
|
const endColumn = /* @__PURE__ */ jsx24("div", { className: "df-columns-renderer-column", children: endChildren });
|
|
1146
|
-
return /* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ jsxs5(
|
|
1147
1150
|
"div",
|
|
1148
1151
|
{
|
|
1149
1152
|
className: (0, import_classnames3.default)("df-columns-renderer-container", getMargin(margin), {
|
|
@@ -1422,7 +1425,7 @@ var getGroupsFromTags = (knownTags, items) => {
|
|
|
1422
1425
|
};
|
|
1423
1426
|
|
|
1424
1427
|
// ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
|
|
1425
|
-
import { Fragment, jsx as jsx28, jsxs as
|
|
1428
|
+
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1426
1429
|
var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
|
|
1427
1430
|
var isGroupedDecision = (options) => {
|
|
1428
1431
|
return getGroupsFromTags(groupingTags, options).length > 0;
|
|
@@ -1432,7 +1435,7 @@ var GroupedDecisionList = (_a) => {
|
|
|
1432
1435
|
const { formatMessage } = useIntl3();
|
|
1433
1436
|
const { options } = rest;
|
|
1434
1437
|
const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
|
|
1435
|
-
return /* @__PURE__ */ jsx28(
|
|
1438
|
+
return /* @__PURE__ */ jsx28(Fragment2, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs6(Section, { children: [
|
|
1436
1439
|
/* @__PURE__ */ jsx28(
|
|
1437
1440
|
Header,
|
|
1438
1441
|
{
|
|
@@ -1445,9 +1448,9 @@ var GroupedDecisionList = (_a) => {
|
|
|
1445
1448
|
};
|
|
1446
1449
|
|
|
1447
1450
|
// ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
|
|
1448
|
-
import { Fragment as
|
|
1451
|
+
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1449
1452
|
var DecisionWrapper = (props) => {
|
|
1450
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ jsxs7("div", { className: getMargin(props.margin), children: [
|
|
1451
1454
|
props.title && /* @__PURE__ */ jsx29(Header2, { as: "h2", title: props.title }),
|
|
1452
1455
|
props.control === "filtered" ? /* @__PURE__ */ jsx29(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx29(UnfilteredDecisionList, __spreadValues({}, props))
|
|
1453
1456
|
] });
|
|
@@ -1462,7 +1465,7 @@ var FilteredDecisionList = (props) => {
|
|
|
1462
1465
|
const { control, options, renderDecisionList: renderDecisionList2 } = props;
|
|
1463
1466
|
const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortDecisionOptions(options, query) : options;
|
|
1464
1467
|
const isGrouped = isGroupedDecision(options);
|
|
1465
|
-
return /* @__PURE__ */
|
|
1468
|
+
return /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
1466
1469
|
/* @__PURE__ */ jsx29(
|
|
1467
1470
|
SearchInput,
|
|
1468
1471
|
{
|
|
@@ -1475,7 +1478,7 @@ var FilteredDecisionList = (props) => {
|
|
|
1475
1478
|
}
|
|
1476
1479
|
}
|
|
1477
1480
|
),
|
|
1478
|
-
isGrouped && query.length === 0 ? /* @__PURE__ */ jsx29(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */
|
|
1481
|
+
isGrouped && query.length === 0 ? /* @__PURE__ */ jsx29(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
1479
1482
|
query.length > 0 && /* @__PURE__ */ jsx29(Header2, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
|
|
1480
1483
|
filteredOptions.length > 0 ? renderDecisionList2({
|
|
1481
1484
|
control,
|
|
@@ -1487,13 +1490,13 @@ var FilteredDecisionList = (props) => {
|
|
|
1487
1490
|
};
|
|
1488
1491
|
|
|
1489
1492
|
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1490
|
-
import { Fragment as
|
|
1493
|
+
import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
|
|
1491
1494
|
var DecisionRenderer = {
|
|
1492
1495
|
canRenderType: "decision",
|
|
1493
1496
|
render: (props) => /* @__PURE__ */ jsx30(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
|
|
1494
1497
|
};
|
|
1495
1498
|
var renderDecisionList = ({ options, control }) => {
|
|
1496
|
-
return /* @__PURE__ */ jsx30(
|
|
1499
|
+
return /* @__PURE__ */ jsx30(Fragment4, { children: options.map((_a) => {
|
|
1497
1500
|
var _b = _a, { onClick } = _b, rest = __objRest(_b, ["onClick"]);
|
|
1498
1501
|
const {
|
|
1499
1502
|
description,
|
|
@@ -1576,7 +1579,7 @@ var external_confirmation_messages_default = defineMessages5({
|
|
|
1576
1579
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1577
1580
|
import { useIntl as useIntl5 } from "react-intl";
|
|
1578
1581
|
import { useEffect as useEffect6 } from "react";
|
|
1579
|
-
import { Fragment as
|
|
1582
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1580
1583
|
var ExternalConfirmationRenderer = {
|
|
1581
1584
|
canRenderType: "external-confirmation",
|
|
1582
1585
|
render: ExternalConfirmationRendererComponent
|
|
@@ -1596,9 +1599,9 @@ function ExternalConfirmationRendererComponent({
|
|
|
1596
1599
|
{
|
|
1597
1600
|
open: visible,
|
|
1598
1601
|
title: formatMessage(external_confirmation_messages_default.title),
|
|
1599
|
-
body: /* @__PURE__ */
|
|
1602
|
+
body: /* @__PURE__ */ jsxs8(Fragment5, { children: [
|
|
1600
1603
|
/* @__PURE__ */ jsx32(Markdown2, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
|
|
1601
|
-
/* @__PURE__ */ jsx32("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ jsx32("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs8("div", { className: "df-box-renderer-width-lg", children: [
|
|
1602
1605
|
/* @__PURE__ */ jsx32(
|
|
1603
1606
|
Button3,
|
|
1604
1607
|
{
|
|
@@ -1639,10 +1642,10 @@ var FormRenderer_default = FormRenderer;
|
|
|
1639
1642
|
|
|
1640
1643
|
// ../renderers/src/FormSectionRenderer.tsx
|
|
1641
1644
|
import { Header as Header3 } from "@transferwise/components";
|
|
1642
|
-
import { jsx as jsx34, jsxs as
|
|
1645
|
+
import { jsx as jsx34, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1643
1646
|
var FormSectionRenderer = {
|
|
1644
1647
|
canRenderType: "form-section",
|
|
1645
|
-
render: ({ title, description, children }) => /* @__PURE__ */
|
|
1648
|
+
render: ({ title, description, children }) => /* @__PURE__ */ jsxs9("fieldset", { children: [
|
|
1646
1649
|
title && /* @__PURE__ */ jsx34(
|
|
1647
1650
|
Header3,
|
|
1648
1651
|
{
|
|
@@ -1793,7 +1796,7 @@ import { useState as useState7 } from "react";
|
|
|
1793
1796
|
// ../renderers/src/ImageRenderer/isAnimated.ts
|
|
1794
1797
|
var isAnimated = (uri) => {
|
|
1795
1798
|
const { rComponents } = stringToURN(uri);
|
|
1796
|
-
return rComponents
|
|
1799
|
+
return rComponents.type === "animated";
|
|
1797
1800
|
};
|
|
1798
1801
|
|
|
1799
1802
|
// ../renderers/src/ImageRenderer/SafeIllustration3D.tsx
|
|
@@ -1811,7 +1814,7 @@ var Illustration3DErrorBoundary = class extends Component {
|
|
|
1811
1814
|
componentDidCatch() {
|
|
1812
1815
|
this.props.onError();
|
|
1813
1816
|
}
|
|
1814
|
-
render() {
|
|
1817
|
+
async render() {
|
|
1815
1818
|
if (this.state.hasError) {
|
|
1816
1819
|
return null;
|
|
1817
1820
|
}
|
|
@@ -1897,7 +1900,7 @@ var ImageRenderer_default = ImageRenderer;
|
|
|
1897
1900
|
|
|
1898
1901
|
// ../renderers/src/InstructionsRenderer.tsx
|
|
1899
1902
|
import { Header as Header4, InstructionsList } from "@transferwise/components";
|
|
1900
|
-
import { jsx as jsx42, jsxs as
|
|
1903
|
+
import { jsx as jsx42, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1901
1904
|
var doContext = ["positive", "neutral"];
|
|
1902
1905
|
var dontContext = ["warning", "negative"];
|
|
1903
1906
|
var InstructionsRenderer = {
|
|
@@ -1905,7 +1908,7 @@ var InstructionsRenderer = {
|
|
|
1905
1908
|
render: ({ items, margin, title }) => {
|
|
1906
1909
|
const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
|
|
1907
1910
|
const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
|
|
1908
|
-
return /* @__PURE__ */
|
|
1911
|
+
return /* @__PURE__ */ jsxs10("div", { className: getMargin(margin), children: [
|
|
1909
1912
|
title ? /* @__PURE__ */ jsx42(Header4, { title }) : null,
|
|
1910
1913
|
/* @__PURE__ */ jsx42(InstructionsList, { dos, donts })
|
|
1911
1914
|
] });
|
|
@@ -2032,10 +2035,10 @@ var getHeaderAction = (callToAction) => {
|
|
|
2032
2035
|
};
|
|
2033
2036
|
|
|
2034
2037
|
// ../renderers/src/ListRenderer.tsx
|
|
2035
|
-
import { jsx as jsx46, jsxs as
|
|
2038
|
+
import { jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2036
2039
|
var ListRenderer = {
|
|
2037
2040
|
canRenderType: "list",
|
|
2038
|
-
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */
|
|
2041
|
+
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ jsxs11("div", { className: getMargin(margin), children: [
|
|
2039
2042
|
/* @__PURE__ */ jsx46(Header5, { title, callToAction }),
|
|
2040
2043
|
items.map((item) => {
|
|
2041
2044
|
var _a, _b;
|
|
@@ -2158,7 +2161,7 @@ var mapAvatarMediaSize = (size) => {
|
|
|
2158
2161
|
// ../renderers/src/ModalLayoutRenderer.tsx
|
|
2159
2162
|
import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
|
|
2160
2163
|
import { useState as useState8 } from "react";
|
|
2161
|
-
import { jsx as jsx50, jsxs as
|
|
2164
|
+
import { jsx as jsx50, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2162
2165
|
var ModalLayoutRenderer = {
|
|
2163
2166
|
canRenderType: "modal-layout",
|
|
2164
2167
|
render: (props) => /* @__PURE__ */ jsx50(DFModal, __spreadValues({}, props))
|
|
@@ -2167,7 +2170,7 @@ var ModalLayoutRenderer_default = ModalLayoutRenderer;
|
|
|
2167
2170
|
function DFModal({ content, margin, trigger }) {
|
|
2168
2171
|
const [visible, setVisible] = useState8(false);
|
|
2169
2172
|
const { children, title } = content;
|
|
2170
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ jsxs12("div", { className: getMargin(margin), children: [
|
|
2171
2174
|
/* @__PURE__ */ jsx50(Button4, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
|
|
2172
2175
|
/* @__PURE__ */ jsx50(
|
|
2173
2176
|
Modal2,
|
|
@@ -2544,7 +2547,7 @@ import { Status, UploadInput } from "@transferwise/components";
|
|
|
2544
2547
|
// ../renderers/src/components/UploadFieldInput.tsx
|
|
2545
2548
|
var import_classnames5 = __toESM(require_classnames());
|
|
2546
2549
|
import { InlineAlert as InlineAlert2 } from "@transferwise/components";
|
|
2547
|
-
import { jsx as jsx57, jsxs as
|
|
2550
|
+
import { jsx as jsx57, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2548
2551
|
function UploadFieldInput({
|
|
2549
2552
|
id,
|
|
2550
2553
|
children,
|
|
@@ -2557,7 +2560,7 @@ function UploadFieldInput({
|
|
|
2557
2560
|
const labelContent = label && help ? /* @__PURE__ */ jsx57(LabelContentWithHelp, { text: label, help }) : label;
|
|
2558
2561
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
2559
2562
|
const { ref } = useScrollToError(validation, features);
|
|
2560
|
-
return /* @__PURE__ */
|
|
2563
|
+
return /* @__PURE__ */ jsxs13(
|
|
2561
2564
|
"div",
|
|
2562
2565
|
{
|
|
2563
2566
|
ref,
|
|
@@ -2644,10 +2647,10 @@ var MultiUploadInputRenderer = {
|
|
|
2644
2647
|
"aria-describedby": descriptionId,
|
|
2645
2648
|
description,
|
|
2646
2649
|
disabled,
|
|
2647
|
-
files: value.map(({ id:
|
|
2648
|
-
id:
|
|
2650
|
+
files: value.map(({ id: fileId, file, validationState: fileValidationState }) => ({
|
|
2651
|
+
id: fileId,
|
|
2649
2652
|
filename: file.name,
|
|
2650
|
-
status: (
|
|
2653
|
+
status: (fileValidationState == null ? void 0 : fileValidationState.status) === "invalid" ? Status.FAILED : Status.SUCCEEDED
|
|
2651
2654
|
})),
|
|
2652
2655
|
fileTypes: acceptsToFileTypes(accepts),
|
|
2653
2656
|
maxFiles: maxItems,
|
|
@@ -2743,7 +2746,7 @@ var paragraph_messages_default = defineMessages7({
|
|
|
2743
2746
|
});
|
|
2744
2747
|
|
|
2745
2748
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
2746
|
-
import { jsx as jsx60, jsxs as
|
|
2749
|
+
import { jsx as jsx60, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2747
2750
|
var ParagraphRenderer = {
|
|
2748
2751
|
canRenderType: "paragraph",
|
|
2749
2752
|
render: (props) => /* @__PURE__ */ jsx60(Paragraph, __spreadValues({}, props))
|
|
@@ -2770,7 +2773,7 @@ function CopyableParagraph({
|
|
|
2770
2773
|
});
|
|
2771
2774
|
};
|
|
2772
2775
|
const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
|
|
2773
|
-
return /* @__PURE__ */
|
|
2776
|
+
return /* @__PURE__ */ jsxs14("div", { className, children: [
|
|
2774
2777
|
/* @__PURE__ */ jsx60(
|
|
2775
2778
|
Input3,
|
|
2776
2779
|
{
|
|
@@ -2841,7 +2844,7 @@ var repeatable_messages_default = defineMessages8({
|
|
|
2841
2844
|
});
|
|
2842
2845
|
|
|
2843
2846
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2844
|
-
import { Fragment as
|
|
2847
|
+
import { Fragment as Fragment6, jsx as jsx62, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2845
2848
|
var RepeatableRenderer = {
|
|
2846
2849
|
canRenderType: "repeatable",
|
|
2847
2850
|
render: (props) => /* @__PURE__ */ jsx62(Repeatable, __spreadValues({}, props))
|
|
@@ -2885,11 +2888,11 @@ function Repeatable(props) {
|
|
|
2885
2888
|
const onCancelEdit = () => {
|
|
2886
2889
|
setOpenModalType(null);
|
|
2887
2890
|
};
|
|
2888
|
-
return /* @__PURE__ */
|
|
2889
|
-
/* @__PURE__ */
|
|
2891
|
+
return /* @__PURE__ */ jsxs15(Fragment6, { children: [
|
|
2892
|
+
/* @__PURE__ */ jsxs15("div", { ref, children: [
|
|
2890
2893
|
title && /* @__PURE__ */ jsx62(Header6, { title }),
|
|
2891
2894
|
description && /* @__PURE__ */ jsx62("p", { children: description }),
|
|
2892
|
-
/* @__PURE__ */
|
|
2895
|
+
/* @__PURE__ */ jsxs15(
|
|
2893
2896
|
"div",
|
|
2894
2897
|
{
|
|
2895
2898
|
className: (0, import_classnames7.default)("form-group", {
|
|
@@ -2916,9 +2919,9 @@ function Repeatable(props) {
|
|
|
2916
2919
|
{
|
|
2917
2920
|
open: openModalType !== null,
|
|
2918
2921
|
title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2919
|
-
body: /* @__PURE__ */
|
|
2922
|
+
body: /* @__PURE__ */ jsxs15(Fragment6, { children: [
|
|
2920
2923
|
/* @__PURE__ */ jsx62("div", { className: "m-b-2", children: editableItem }),
|
|
2921
|
-
/* @__PURE__ */
|
|
2924
|
+
/* @__PURE__ */ jsxs15("div", { children: [
|
|
2922
2925
|
/* @__PURE__ */ jsx62(Button6, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
|
|
2923
2926
|
/* @__PURE__ */ jsx62(
|
|
2924
2927
|
Button6,
|
|
@@ -2958,12 +2961,12 @@ var RepeatableRenderer_default = RepeatableRenderer;
|
|
|
2958
2961
|
|
|
2959
2962
|
// ../renderers/src/ReviewLegacyRenderer.tsx
|
|
2960
2963
|
import { DefinitionList } from "@transferwise/components";
|
|
2961
|
-
import { Fragment as
|
|
2964
|
+
import { Fragment as Fragment7, jsx as jsx63, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2962
2965
|
var ReviewRenderer = {
|
|
2963
2966
|
canRenderType: "review",
|
|
2964
2967
|
render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
|
|
2965
2968
|
const orientation = mapControlToDefinitionListLayout(control);
|
|
2966
|
-
return /* @__PURE__ */
|
|
2969
|
+
return /* @__PURE__ */ jsxs16("div", { className: getMargin(margin), children: [
|
|
2967
2970
|
/* @__PURE__ */ jsx63(Header5, { title, callToAction }),
|
|
2968
2971
|
/* @__PURE__ */ jsx63("div", { className: margin, children: /* @__PURE__ */ jsx63(
|
|
2969
2972
|
DefinitionList,
|
|
@@ -3003,7 +3006,7 @@ var mapControlToDefinitionListLayout = (control) => {
|
|
|
3003
3006
|
};
|
|
3004
3007
|
var getFieldLabel = (label, help, onClick) => {
|
|
3005
3008
|
if (help) {
|
|
3006
|
-
return /* @__PURE__ */
|
|
3009
|
+
return /* @__PURE__ */ jsxs16(Fragment7, { children: [
|
|
3007
3010
|
label,
|
|
3008
3011
|
" ",
|
|
3009
3012
|
/* @__PURE__ */ jsx63(Help_default, { help, onClick })
|
|
@@ -3016,7 +3019,7 @@ var getFieldLabel = (label, help, onClick) => {
|
|
|
3016
3019
|
import { ListItem as ListItem9, Markdown as Markdown4, Popover } from "@transferwise/components";
|
|
3017
3020
|
import { QuestionMarkCircle } from "@transferwise/icons";
|
|
3018
3021
|
import { useIntl as useIntl10 } from "react-intl";
|
|
3019
|
-
import { jsx as jsx64, jsxs as
|
|
3022
|
+
import { jsx as jsx64, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3020
3023
|
var IGNORED_CONTROLS = [
|
|
3021
3024
|
"horizontal",
|
|
3022
3025
|
"horizontal-end-aligned",
|
|
@@ -3038,7 +3041,7 @@ var Review = ({
|
|
|
3038
3041
|
trackEvent
|
|
3039
3042
|
}) => {
|
|
3040
3043
|
const intl = useIntl10();
|
|
3041
|
-
return /* @__PURE__ */
|
|
3044
|
+
return /* @__PURE__ */ jsxs17("div", { className: getMargin(margin), children: [
|
|
3042
3045
|
/* @__PURE__ */ jsx64(Header5, { title, callToAction }),
|
|
3043
3046
|
fields.map((field) => {
|
|
3044
3047
|
var _a, _b, _c;
|
|
@@ -3121,20 +3124,20 @@ var generic_error_messages_default = defineMessages10({
|
|
|
3121
3124
|
});
|
|
3122
3125
|
|
|
3123
3126
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
3124
|
-
import { Link } from "@transferwise/components";
|
|
3125
|
-
import { jsx as jsx65, jsxs as
|
|
3127
|
+
import { Link as DSLink } from "@transferwise/components";
|
|
3128
|
+
import { jsx as jsx65, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3126
3129
|
function ErrorResult({ state }) {
|
|
3127
3130
|
const intl = useIntl11();
|
|
3128
|
-
return /* @__PURE__ */
|
|
3131
|
+
return /* @__PURE__ */ jsxs18("p", { className: "m-t-2", children: [
|
|
3129
3132
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
3130
3133
|
"\xA0",
|
|
3131
|
-
/* @__PURE__ */ jsx65(
|
|
3134
|
+
/* @__PURE__ */ jsx65(DSLink, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
|
|
3132
3135
|
] });
|
|
3133
3136
|
}
|
|
3134
3137
|
|
|
3135
3138
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
3136
3139
|
import { Search } from "@transferwise/icons";
|
|
3137
|
-
import { Fragment as
|
|
3140
|
+
import { Fragment as Fragment8, jsx as jsx66, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3138
3141
|
function BlockSearchRendererComponent({
|
|
3139
3142
|
id,
|
|
3140
3143
|
hint,
|
|
@@ -3149,7 +3152,7 @@ function BlockSearchRendererComponent({
|
|
|
3149
3152
|
}) {
|
|
3150
3153
|
const [hasSearched, setHasSearched] = useState11(false);
|
|
3151
3154
|
const { formatMessage } = useIntl12();
|
|
3152
|
-
return /* @__PURE__ */
|
|
3155
|
+
return /* @__PURE__ */ jsxs19("div", { className: getMargin(margin), children: [
|
|
3153
3156
|
/* @__PURE__ */ jsx66(
|
|
3154
3157
|
FieldInput_default,
|
|
3155
3158
|
{
|
|
@@ -3165,6 +3168,7 @@ function BlockSearchRendererComponent({
|
|
|
3165
3168
|
id,
|
|
3166
3169
|
name: id,
|
|
3167
3170
|
placeholder: hint,
|
|
3171
|
+
shape: "pill",
|
|
3168
3172
|
type: "text",
|
|
3169
3173
|
value: query,
|
|
3170
3174
|
onChange: ({ currentTarget: { value } }) => {
|
|
@@ -3191,7 +3195,7 @@ function SearchResultContent({
|
|
|
3191
3195
|
case "results":
|
|
3192
3196
|
return /* @__PURE__ */ jsx66(SearchResults, { state, trackEvent });
|
|
3193
3197
|
case "layout":
|
|
3194
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
3195
3199
|
" ",
|
|
3196
3200
|
state.layout,
|
|
3197
3201
|
" "
|
|
@@ -3363,11 +3367,11 @@ var getHeaderAction2 = (callToAction) => {
|
|
|
3363
3367
|
};
|
|
3364
3368
|
|
|
3365
3369
|
// ../renderers/src/SectionRenderer.tsx
|
|
3366
|
-
import { jsx as jsx69, jsxs as
|
|
3370
|
+
import { jsx as jsx69, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3367
3371
|
var SectionRenderer = {
|
|
3368
3372
|
canRenderType: "section",
|
|
3369
3373
|
render: ({ children, callToAction, margin, title }) => {
|
|
3370
|
-
return /* @__PURE__ */
|
|
3374
|
+
return /* @__PURE__ */ jsxs20("section", { className: getMargin(margin), children: [
|
|
3371
3375
|
(title || callToAction) && /* @__PURE__ */ jsx69(Header7, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
|
|
3372
3376
|
children
|
|
3373
3377
|
] });
|
|
@@ -3377,7 +3381,7 @@ var SectionRenderer_default = SectionRenderer;
|
|
|
3377
3381
|
|
|
3378
3382
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
3379
3383
|
import { RadioGroup } from "@transferwise/components";
|
|
3380
|
-
import { Fragment as
|
|
3384
|
+
import { Fragment as Fragment9, jsx as jsx70, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3381
3385
|
function RadioInputRendererComponent(props) {
|
|
3382
3386
|
const {
|
|
3383
3387
|
id,
|
|
@@ -3392,7 +3396,7 @@ function RadioInputRendererComponent(props) {
|
|
|
3392
3396
|
validationState,
|
|
3393
3397
|
onSelect
|
|
3394
3398
|
} = props;
|
|
3395
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3396
3400
|
/* @__PURE__ */ jsx70(
|
|
3397
3401
|
FieldInput_default,
|
|
3398
3402
|
{
|
|
@@ -3427,7 +3431,7 @@ function RadioInputRendererComponent(props) {
|
|
|
3427
3431
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
3428
3432
|
import { Tabs } from "@transferwise/components";
|
|
3429
3433
|
import { useEffect as useEffect9 } from "react";
|
|
3430
|
-
import { Fragment as
|
|
3434
|
+
import { Fragment as Fragment10, jsx as jsx71, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3431
3435
|
function TabInputRendererComponent(props) {
|
|
3432
3436
|
const {
|
|
3433
3437
|
id,
|
|
@@ -3447,7 +3451,7 @@ function TabInputRendererComponent(props) {
|
|
|
3447
3451
|
onSelect(0);
|
|
3448
3452
|
}
|
|
3449
3453
|
}, [selectedIndex, onSelect, options.length]);
|
|
3450
|
-
return /* @__PURE__ */
|
|
3454
|
+
return /* @__PURE__ */ jsxs22(Fragment10, { children: [
|
|
3451
3455
|
/* @__PURE__ */ jsx71(
|
|
3452
3456
|
FieldInput_default,
|
|
3453
3457
|
{
|
|
@@ -3466,7 +3470,7 @@ function TabInputRendererComponent(props) {
|
|
|
3466
3470
|
title: option.title,
|
|
3467
3471
|
// if we pass null, we get some props-types console errors
|
|
3468
3472
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
3469
|
-
content: /* @__PURE__ */ jsx71(
|
|
3473
|
+
content: /* @__PURE__ */ jsx71(Fragment10, {}),
|
|
3470
3474
|
disabled: option.disabled || disabled
|
|
3471
3475
|
})),
|
|
3472
3476
|
onTabSelect: onSelect
|
|
@@ -3481,7 +3485,7 @@ var isValidIndex2 = (index, options) => index !== null && index >= 0 && index <
|
|
|
3481
3485
|
|
|
3482
3486
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
3483
3487
|
import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
|
|
3484
|
-
import { Fragment as
|
|
3488
|
+
import { Fragment as Fragment11, jsx as jsx72, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3485
3489
|
function SelectInputRendererComponent(props) {
|
|
3486
3490
|
const {
|
|
3487
3491
|
id,
|
|
@@ -3527,7 +3531,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3527
3531
|
return /* @__PURE__ */ jsx72(SelectInputOptionContent2, __spreadValues({}, contentProps));
|
|
3528
3532
|
};
|
|
3529
3533
|
const extraProps = { autoComplete };
|
|
3530
|
-
return /* @__PURE__ */
|
|
3534
|
+
return /* @__PURE__ */ jsxs23(Fragment11, { children: [
|
|
3531
3535
|
/* @__PURE__ */ jsx72(
|
|
3532
3536
|
FieldInput_default,
|
|
3533
3537
|
{
|
|
@@ -3560,7 +3564,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3560
3564
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
3561
3565
|
import { useEffect as useEffect10 } from "react";
|
|
3562
3566
|
import { SegmentedControl } from "@transferwise/components";
|
|
3563
|
-
import { Fragment as
|
|
3567
|
+
import { Fragment as Fragment12, jsx as jsx73, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3564
3568
|
function SegmentedInputRendererComponent(props) {
|
|
3565
3569
|
const {
|
|
3566
3570
|
id,
|
|
@@ -3579,7 +3583,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3579
3583
|
onSelect(0);
|
|
3580
3584
|
}
|
|
3581
3585
|
}, [selectedIndex, onSelect, options.length]);
|
|
3582
|
-
return /* @__PURE__ */
|
|
3586
|
+
return /* @__PURE__ */ jsxs24(Fragment12, { children: [
|
|
3583
3587
|
/* @__PURE__ */ jsx73(
|
|
3584
3588
|
FieldInput_default,
|
|
3585
3589
|
{
|
|
@@ -3613,7 +3617,7 @@ var isValidIndex3 = (index, options) => index !== null && index >= 0 && index <
|
|
|
3613
3617
|
|
|
3614
3618
|
// ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
|
|
3615
3619
|
import { Header as Header8, InlineAlert as InlineAlert4, List as List2, ListItem as ListItem11 } from "@transferwise/components";
|
|
3616
|
-
import { jsx as jsx74, jsxs as
|
|
3620
|
+
import { jsx as jsx74, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3617
3621
|
function RadioItemRendererComponent(props) {
|
|
3618
3622
|
const {
|
|
3619
3623
|
id,
|
|
@@ -3629,7 +3633,7 @@ function RadioItemRendererComponent(props) {
|
|
|
3629
3633
|
onSelect
|
|
3630
3634
|
} = props;
|
|
3631
3635
|
const { ref } = useScrollToError(validationState, features);
|
|
3632
|
-
return /* @__PURE__ */
|
|
3636
|
+
return /* @__PURE__ */ jsxs25("div", { ref, children: [
|
|
3633
3637
|
rootTitle && /* @__PURE__ */ jsx74(
|
|
3634
3638
|
Header8,
|
|
3635
3639
|
{
|
|
@@ -3689,10 +3693,10 @@ var SelectInputRenderer_default = SelectInputRenderer;
|
|
|
3689
3693
|
|
|
3690
3694
|
// ../renderers/src/StatusListRenderer.tsx
|
|
3691
3695
|
import { AvatarView as AvatarView4, Header as Header9, ListItem as ListItem12 } from "@transferwise/components";
|
|
3692
|
-
import { jsx as jsx76, jsxs as
|
|
3696
|
+
import { jsx as jsx76, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3693
3697
|
var StatusListRenderer = {
|
|
3694
3698
|
canRenderType: "status-list",
|
|
3695
|
-
render: ({ margin, items, title }) => /* @__PURE__ */
|
|
3699
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs26("div", { className: getMargin(margin), children: [
|
|
3696
3700
|
title ? /* @__PURE__ */ jsx76(Header9, { title }) : null,
|
|
3697
3701
|
items.map((item) => {
|
|
3698
3702
|
const { callToAction, description, title: itemTitle } = item;
|
|
@@ -3774,7 +3778,7 @@ var step_messages_default = defineMessages11({
|
|
|
3774
3778
|
});
|
|
3775
3779
|
|
|
3776
3780
|
// ../renderers/src/step/StepFooter.tsx
|
|
3777
|
-
import { Fragment as
|
|
3781
|
+
import { Fragment as Fragment13, jsx as jsx77, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3778
3782
|
var SCROLL_TO_BOTTOM = "scroll-to-bottom";
|
|
3779
3783
|
var StepFooter = ({ footer, tags }) => {
|
|
3780
3784
|
if (tags == null ? void 0 : tags.includes(SCROLL_TO_BOTTOM)) {
|
|
@@ -3808,9 +3812,9 @@ var FooterWithScrollButton = ({ footer }) => {
|
|
|
3808
3812
|
if (isElementVisible && !hasStepFooterContent) {
|
|
3809
3813
|
return /* @__PURE__ */ jsx77("div", { ref: endOfLayoutRef, "aria-hidden": "true" });
|
|
3810
3814
|
}
|
|
3811
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsxs27(Fragment13, { children: [
|
|
3812
3816
|
/* @__PURE__ */ jsx77("div", { ref: endOfLayoutRef, "aria-hidden": "true" }),
|
|
3813
|
-
/* @__PURE__ */
|
|
3817
|
+
/* @__PURE__ */ jsxs27("div", { className: "df-step-fixed__footer", children: [
|
|
3814
3818
|
!isElementVisible && scrollButton,
|
|
3815
3819
|
footer
|
|
3816
3820
|
] })
|
|
@@ -3832,10 +3836,10 @@ var useIsElementVisible = (elementRef) => {
|
|
|
3832
3836
|
|
|
3833
3837
|
// ../renderers/src/step/StepHeader.tsx
|
|
3834
3838
|
import { Title as Title2 } from "@transferwise/components";
|
|
3835
|
-
import { Fragment as
|
|
3839
|
+
import { Fragment as Fragment14, jsx as jsx78, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3836
3840
|
var StepHeader = ({ title, description, tags }) => {
|
|
3837
3841
|
const { titleType, alignmentClassName } = getHeaderStyle(tags);
|
|
3838
|
-
return /* @__PURE__ */
|
|
3842
|
+
return /* @__PURE__ */ jsxs28(Fragment14, { children: [
|
|
3839
3843
|
title ? /* @__PURE__ */ jsx78(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
|
|
3840
3844
|
description ? /* @__PURE__ */ jsx78("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
|
|
3841
3845
|
] });
|
|
@@ -3863,10 +3867,10 @@ var back_messages_default = defineMessages12({
|
|
|
3863
3867
|
});
|
|
3864
3868
|
|
|
3865
3869
|
// ../renderers/src/step/topbar/BackButton.tsx
|
|
3866
|
-
import { jsx as jsx79, jsxs as
|
|
3870
|
+
import { jsx as jsx79, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3867
3871
|
function BackButton({ title, onClick }) {
|
|
3868
3872
|
const { formatMessage } = useIntl15();
|
|
3869
|
-
return /* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsxs29(IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
|
|
3870
3874
|
/* @__PURE__ */ jsx79("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
|
|
3871
3875
|
/* @__PURE__ */ jsx79(ArrowLeft, {})
|
|
3872
3876
|
] });
|
|
@@ -3874,7 +3878,7 @@ function BackButton({ title, onClick }) {
|
|
|
3874
3878
|
|
|
3875
3879
|
// ../renderers/src/step/topbar/Toolbar.tsx
|
|
3876
3880
|
import { Button as Button8, IconButton as IconButton2 } from "@transferwise/components";
|
|
3877
|
-
import { jsx as jsx80, jsxs as
|
|
3881
|
+
import { jsx as jsx80, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3878
3882
|
var Toolbar = ({ items }) => {
|
|
3879
3883
|
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx80("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx80(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
|
|
3880
3884
|
};
|
|
@@ -3886,7 +3890,7 @@ function MediaToolbarButton(props) {
|
|
|
3886
3890
|
const { context, control, media, accessibilityDescription, disabled, onClick } = props;
|
|
3887
3891
|
const priority = getIconButtonPriority(control);
|
|
3888
3892
|
const type = getSentiment2(context);
|
|
3889
|
-
return /* @__PURE__ */
|
|
3893
|
+
return /* @__PURE__ */ jsxs30(
|
|
3890
3894
|
IconButton2,
|
|
3891
3895
|
{
|
|
3892
3896
|
className: "df-toolbar-button",
|
|
@@ -3937,18 +3941,18 @@ var getIconButtonPriority = (control) => {
|
|
|
3937
3941
|
};
|
|
3938
3942
|
|
|
3939
3943
|
// ../renderers/src/step/topbar/TopBar.tsx
|
|
3940
|
-
import { jsx as jsx81, jsxs as
|
|
3944
|
+
import { jsx as jsx81, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3941
3945
|
function TopBar({ back, toolbar, tags }) {
|
|
3942
3946
|
const isBackAllowed = !(tags == null ? void 0 : tags.includes("non-dismissible"));
|
|
3943
3947
|
const backCTA = isBackAllowed ? back : void 0;
|
|
3944
|
-
return backCTA || toolbar ? /* @__PURE__ */
|
|
3948
|
+
return backCTA || toolbar ? /* @__PURE__ */ jsxs31("div", { className: "d-flex m-b-2", children: [
|
|
3945
3949
|
backCTA ? /* @__PURE__ */ jsx81(BackButton, __spreadValues({}, backCTA)) : null,
|
|
3946
3950
|
toolbar ? /* @__PURE__ */ jsx81(Toolbar, __spreadValues({}, toolbar)) : null
|
|
3947
3951
|
] }) : null;
|
|
3948
3952
|
}
|
|
3949
3953
|
|
|
3950
3954
|
// ../renderers/src/step/SplashCelebrationStepRenderer.tsx
|
|
3951
|
-
import { jsx as jsx82, jsxs as
|
|
3955
|
+
import { jsx as jsx82, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3952
3956
|
var SplashCelebrationStepRenderer = {
|
|
3953
3957
|
canRenderType: "step",
|
|
3954
3958
|
canRender: ({ control }) => control === "splash-celebration",
|
|
@@ -3957,7 +3961,7 @@ var SplashCelebrationStepRenderer = {
|
|
|
3957
3961
|
function SplashCelebrationStepRendererComponent(props) {
|
|
3958
3962
|
const { back, title, description, toolbar, children, footer, tags, trackEvent } = props;
|
|
3959
3963
|
useCustomTheme("forest-green", trackEvent);
|
|
3960
|
-
return /* @__PURE__ */
|
|
3964
|
+
return /* @__PURE__ */ jsxs32("div", { className: "splash-screen m-t-5", children: [
|
|
3961
3965
|
/* @__PURE__ */ jsx82(TopBar, { back, toolbar, tags }),
|
|
3962
3966
|
title || description ? /* @__PURE__ */ jsx82("div", { className: "m-b-4", children: /* @__PURE__ */ jsx82(StepHeader, { title, description, tags }) }) : void 0,
|
|
3963
3967
|
children,
|
|
@@ -3966,7 +3970,7 @@ function SplashCelebrationStepRendererComponent(props) {
|
|
|
3966
3970
|
}
|
|
3967
3971
|
|
|
3968
3972
|
// ../renderers/src/step/SplashStepRenderer.tsx
|
|
3969
|
-
import { jsx as jsx83, jsxs as
|
|
3973
|
+
import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3970
3974
|
var SplashStepRenderer = {
|
|
3971
3975
|
canRenderType: "step",
|
|
3972
3976
|
canRender: ({ control }) => control === "splash",
|
|
@@ -3974,7 +3978,7 @@ var SplashStepRenderer = {
|
|
|
3974
3978
|
};
|
|
3975
3979
|
function SplashStepRendererComponent(props) {
|
|
3976
3980
|
const { back, title, description, toolbar, children, footer, tags } = props;
|
|
3977
|
-
return /* @__PURE__ */
|
|
3981
|
+
return /* @__PURE__ */ jsxs33("div", { className: "splash-screen m-t-5", children: [
|
|
3978
3982
|
/* @__PURE__ */ jsx83(TopBar, { back, toolbar, tags }),
|
|
3979
3983
|
title || description ? /* @__PURE__ */ jsx83("div", { className: "m-b-4", children: /* @__PURE__ */ jsx83(StepHeader, { title, description, tags }) }) : void 0,
|
|
3980
3984
|
children,
|
|
@@ -3984,14 +3988,14 @@ function SplashStepRendererComponent(props) {
|
|
|
3984
3988
|
|
|
3985
3989
|
// ../renderers/src/step/StepRenderer.tsx
|
|
3986
3990
|
import { Alert as Alert2 } from "@transferwise/components";
|
|
3987
|
-
import { jsx as jsx84, jsxs as
|
|
3991
|
+
import { jsx as jsx84, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3988
3992
|
var StepRenderer = {
|
|
3989
3993
|
canRenderType: "step",
|
|
3990
3994
|
render: StepRendererComponent
|
|
3991
3995
|
};
|
|
3992
3996
|
function StepRendererComponent(props) {
|
|
3993
3997
|
const { back, description, error, title, children, toolbar, footer, tags } = props;
|
|
3994
|
-
return /* @__PURE__ */
|
|
3998
|
+
return /* @__PURE__ */ jsxs34("div", { children: [
|
|
3995
3999
|
/* @__PURE__ */ jsx84(TopBar, { back, toolbar, tags }),
|
|
3996
4000
|
title || description ? /* @__PURE__ */ jsx84("div", { className: "m-b-4", children: /* @__PURE__ */ jsx84(StepHeader, { title, description, tags }) }) : void 0,
|
|
3997
4001
|
error ? /* @__PURE__ */ jsx84(Alert2, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
@@ -4003,7 +4007,7 @@ function StepRendererComponent(props) {
|
|
|
4003
4007
|
// ../renderers/src/TabsRenderer.tsx
|
|
4004
4008
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
4005
4009
|
import { useState as useState14 } from "react";
|
|
4006
|
-
import { jsx as jsx85, jsxs as
|
|
4010
|
+
import { jsx as jsx85, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4007
4011
|
var TabsRenderer = {
|
|
4008
4012
|
canRenderType: "tabs",
|
|
4009
4013
|
render: (props) => {
|
|
@@ -4030,7 +4034,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
4030
4034
|
tabs: tabs.map((option) => ({
|
|
4031
4035
|
title: option.title,
|
|
4032
4036
|
disabled: false,
|
|
4033
|
-
content: /* @__PURE__ */
|
|
4037
|
+
content: /* @__PURE__ */ jsxs35("div", { className: "m-t-2", children: [
|
|
4034
4038
|
" ",
|
|
4035
4039
|
option.children,
|
|
4036
4040
|
" "
|
|
@@ -4043,7 +4047,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
4043
4047
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
4044
4048
|
var _a;
|
|
4045
4049
|
const [selectedIndex, setSelectedIndex] = useState14(0);
|
|
4046
|
-
return /* @__PURE__ */
|
|
4050
|
+
return /* @__PURE__ */ jsxs35("div", { className: getMargin(margin), children: [
|
|
4047
4051
|
/* @__PURE__ */ jsx85(
|
|
4048
4052
|
SegmentedControl2,
|
|
4049
4053
|
{
|
|
@@ -4065,7 +4069,7 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
4065
4069
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
4066
4070
|
var _a;
|
|
4067
4071
|
const [selectedIndex, setSelectedIndex] = useState14(0);
|
|
4068
|
-
return /* @__PURE__ */
|
|
4072
|
+
return /* @__PURE__ */ jsxs35("div", { className: getMargin(margin), children: [
|
|
4069
4073
|
/* @__PURE__ */ jsx85("div", { className: "chips-container", children: /* @__PURE__ */ jsx85(
|
|
4070
4074
|
Chips,
|
|
4071
4075
|
{
|
|
@@ -4699,13 +4703,13 @@ var openLinkInNewTab = (url) => {
|
|
|
4699
4703
|
};
|
|
4700
4704
|
|
|
4701
4705
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4702
|
-
import { jsxs as
|
|
4706
|
+
import { jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4703
4707
|
function DynamicFlow(props) {
|
|
4704
4708
|
const { className = "" } = props;
|
|
4705
4709
|
const dfProps = useWiseToCoreProps(props);
|
|
4706
4710
|
const df = useDynamicFlow(dfProps);
|
|
4707
4711
|
const { onContextMenu, contextMenu } = useDFContextMenu(df.controller);
|
|
4708
|
-
return /* @__PURE__ */
|
|
4712
|
+
return /* @__PURE__ */ jsxs36("div", { className, onContextMenu, children: [
|
|
4709
4713
|
df.view,
|
|
4710
4714
|
contextMenu
|
|
4711
4715
|
] });
|