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