@wise/dynamic-flow-client-internal 5.18.1 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/i18n/zh_CN.json +2 -2
- package/build/main.js +50 -67
- package/build/main.mjs +50 -67
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/dynamicFlow/telemetry/dispatchAnalyticsEvent.d.ts +9 -0
- package/build/types/dynamicFlow/telemetry/dispatchAnalyticsEvent.d.ts.map +1 -0
- package/build/types/dynamicFlow/telemetry/getTrackEvent.d.ts.map +1 -1
- package/package.json +8 -8
package/build/i18n/zh_CN.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"df.wise.ControlFeedback.required": "请填写此字段。",
|
|
18
18
|
"df.wise.ControlFeedback.type": "类型错误",
|
|
19
19
|
"df.wise.CopyFeedback.copy": "已复制到剪贴板",
|
|
20
|
-
"df.wise.CopyFeedback.copyFailed": "
|
|
20
|
+
"df.wise.CopyFeedback.copyFailed": "无法复制到剪贴板",
|
|
21
21
|
"df.wise.DynamicParagraph.copied": "已复制到剪贴板",
|
|
22
22
|
"df.wise.DynamicParagraph.copy": "复制",
|
|
23
23
|
"df.wise.ErrorBoundary.errorAlert": "出错了。",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "请上传不超过 {maxItems} 个文件。",
|
|
33
33
|
"df.wise.MultipleFileUploadSchema.minItemsError": "请上传至少 {minItems} 个文件。",
|
|
34
34
|
"df.wise.PersistAsyncSchema.genericError": "出错了,请重试。",
|
|
35
|
-
"df.wise.SearchLayout.loading": "
|
|
35
|
+
"df.wise.SearchLayout.loading": "正在加载……",
|
|
36
36
|
"df.wise.back.label": "返回",
|
|
37
37
|
"df.wise.filter.noResults": "暂无结果",
|
|
38
38
|
"df.wise.filter.placeholder": "开始输入以搜索",
|
package/build/main.js
CHANGED
|
@@ -35,7 +35,11 @@ var __objRest = (source, exclude) => {
|
|
|
35
35
|
return target;
|
|
36
36
|
};
|
|
37
37
|
var __commonJS = (cb, mod) => function __require() {
|
|
38
|
-
|
|
38
|
+
try {
|
|
39
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
40
|
+
} catch (e) {
|
|
41
|
+
throw mod = 0, e;
|
|
42
|
+
}
|
|
39
43
|
};
|
|
40
44
|
var __export = (target, all) => {
|
|
41
45
|
for (var name in all)
|
|
@@ -141,7 +145,7 @@ var import_dynamic_flow_client4 = require("@wise/dynamic-flow-client");
|
|
|
141
145
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
142
146
|
var appVersion = (
|
|
143
147
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
144
|
-
typeof process !== "undefined" ? "5.
|
|
148
|
+
typeof process !== "undefined" ? "5.19.0" : "0.0.0"
|
|
145
149
|
);
|
|
146
150
|
|
|
147
151
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -379,10 +383,10 @@ var AlertRenderer = {
|
|
|
379
383
|
};
|
|
380
384
|
var mapCtaToAlertAction = (callToAction) => {
|
|
381
385
|
if (callToAction) {
|
|
382
|
-
return __spreadValues(
|
|
386
|
+
return __spreadValues({
|
|
383
387
|
text: callToAction.title,
|
|
384
388
|
"aria-label": callToAction.accessibilityDescription
|
|
385
|
-
},
|
|
389
|
+
}, callToAction.getAnchorProps());
|
|
386
390
|
}
|
|
387
391
|
return void 0;
|
|
388
392
|
};
|
|
@@ -876,7 +880,7 @@ var scrollToIfNotVisible = (ref) => {
|
|
|
876
880
|
return;
|
|
877
881
|
}
|
|
878
882
|
if (rect.bottom > window.innerHeight || rect.top < 0) {
|
|
879
|
-
ref.scrollIntoView({ behavior: "
|
|
883
|
+
ref.scrollIntoView({ behavior: "instant" });
|
|
880
884
|
}
|
|
881
885
|
};
|
|
882
886
|
|
|
@@ -1251,6 +1255,7 @@ var import_components16 = require("@transferwise/components");
|
|
|
1251
1255
|
var import_components13 = require("@transferwise/components");
|
|
1252
1256
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1253
1257
|
var getAdditionalInfo = (additionalInfo) => {
|
|
1258
|
+
var _a, _b;
|
|
1254
1259
|
if (!additionalInfo) {
|
|
1255
1260
|
return void 0;
|
|
1256
1261
|
}
|
|
@@ -1259,12 +1264,9 @@ var getAdditionalInfo = (additionalInfo) => {
|
|
|
1259
1264
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1260
1265
|
import_components13.ListItem.AdditionalInfo,
|
|
1261
1266
|
{
|
|
1262
|
-
action: {
|
|
1263
|
-
label: text
|
|
1264
|
-
|
|
1265
|
-
onClick,
|
|
1266
|
-
target: "_blank"
|
|
1267
|
-
}
|
|
1267
|
+
action: __spreadValues({
|
|
1268
|
+
label: text
|
|
1269
|
+
}, (_b = (_a = additionalInfo.getAnchorProps) == null ? void 0 : _a.call(additionalInfo)) != null ? _b : { onClick })
|
|
1268
1270
|
}
|
|
1269
1271
|
);
|
|
1270
1272
|
}
|
|
@@ -1467,7 +1469,7 @@ var renderDecisionList = ({ options, control }) => {
|
|
|
1467
1469
|
disabled,
|
|
1468
1470
|
media,
|
|
1469
1471
|
title: itemTitle,
|
|
1470
|
-
|
|
1472
|
+
getAnchorProps,
|
|
1471
1473
|
additionalText,
|
|
1472
1474
|
inlineAlert,
|
|
1473
1475
|
supportingValues,
|
|
@@ -1485,7 +1487,7 @@ var renderDecisionList = ({ options, control }) => {
|
|
|
1485
1487
|
media: getMedia(media, shouldUseAvatar(control, tags)),
|
|
1486
1488
|
prompt: getInlineAlert(inlineAlert),
|
|
1487
1489
|
additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
|
|
1488
|
-
control:
|
|
1490
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components16.ListItem.Navigation, __spreadValues({}, getAnchorProps()))
|
|
1489
1491
|
},
|
|
1490
1492
|
JSON.stringify(rest)
|
|
1491
1493
|
);
|
|
@@ -1960,33 +1962,17 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
1960
1962
|
if (!callToAction) {
|
|
1961
1963
|
return void 0;
|
|
1962
1964
|
}
|
|
1963
|
-
const { accessibilityDescription,
|
|
1965
|
+
const { accessibilityDescription, title, context } = callToAction;
|
|
1964
1966
|
const { priority, sentiment } = getPriorityAndSentiment(ctaSecondary, context);
|
|
1965
|
-
if (href) {
|
|
1966
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1967
|
-
import_components24.ListItem.Button,
|
|
1968
|
-
{
|
|
1969
|
-
href,
|
|
1970
|
-
target: "_blank",
|
|
1971
|
-
rel: "noopener noreferrer",
|
|
1972
|
-
partiallyInteractive: !fullyInteractive,
|
|
1973
|
-
priority,
|
|
1974
|
-
"aria-description": accessibilityDescription,
|
|
1975
|
-
sentiment,
|
|
1976
|
-
children: title
|
|
1977
|
-
}
|
|
1978
|
-
);
|
|
1979
|
-
}
|
|
1980
1967
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1981
1968
|
import_components24.ListItem.Button,
|
|
1982
|
-
{
|
|
1983
|
-
"aria-description": accessibilityDescription,
|
|
1969
|
+
__spreadProps(__spreadValues({}, callToAction.getAnchorProps()), {
|
|
1984
1970
|
partiallyInteractive: !fullyInteractive,
|
|
1985
1971
|
priority,
|
|
1972
|
+
"aria-description": accessibilityDescription,
|
|
1986
1973
|
sentiment,
|
|
1987
|
-
onClick,
|
|
1988
1974
|
children: title
|
|
1989
|
-
}
|
|
1975
|
+
})
|
|
1990
1976
|
);
|
|
1991
1977
|
};
|
|
1992
1978
|
var getPriorityAndSentiment = (ctaSecondary, context) => {
|
|
@@ -2004,20 +1990,10 @@ var getHeaderAction = (callToAction) => {
|
|
|
2004
1990
|
if (!callToAction) {
|
|
2005
1991
|
return void 0;
|
|
2006
1992
|
}
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
href,
|
|
2012
|
-
target: "_blank"
|
|
2013
|
-
} : {
|
|
2014
|
-
"aria-label": accessibilityDescription,
|
|
2015
|
-
text: title,
|
|
2016
|
-
onClick: (event) => {
|
|
2017
|
-
event.preventDefault();
|
|
2018
|
-
onClick();
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
1993
|
+
return __spreadValues({
|
|
1994
|
+
"aria-label": callToAction.accessibilityDescription,
|
|
1995
|
+
text: callToAction.title
|
|
1996
|
+
}, callToAction.getAnchorProps());
|
|
2021
1997
|
};
|
|
2022
1998
|
|
|
2023
1999
|
// ../renderers/src/ListRenderer.tsx
|
|
@@ -3638,7 +3614,7 @@ var StatusListRenderer = {
|
|
|
3638
3614
|
render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: getMargin(margin), children: [
|
|
3639
3615
|
title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.Header, { title }) : null,
|
|
3640
3616
|
items.map((item) => {
|
|
3641
|
-
const { callToAction, description,
|
|
3617
|
+
const { callToAction, description, title: itemTitle } = item;
|
|
3642
3618
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3643
3619
|
import_components53.ListItem,
|
|
3644
3620
|
{
|
|
@@ -3648,12 +3624,9 @@ var StatusListRenderer = {
|
|
|
3648
3624
|
additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3649
3625
|
import_components53.ListItem.AdditionalInfo,
|
|
3650
3626
|
{
|
|
3651
|
-
action: {
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
label: callToAction.title,
|
|
3655
|
-
target: "_blank"
|
|
3656
|
-
}
|
|
3627
|
+
action: __spreadValues({
|
|
3628
|
+
label: callToAction.title
|
|
3629
|
+
}, callToAction.getAnchorProps())
|
|
3657
3630
|
}
|
|
3658
3631
|
) : void 0
|
|
3659
3632
|
},
|
|
@@ -4264,12 +4237,9 @@ function UpsellRendererComponent(props) {
|
|
|
4264
4237
|
className: getMargin(margin),
|
|
4265
4238
|
mediaName: getMediaName(media),
|
|
4266
4239
|
title: text,
|
|
4267
|
-
action: {
|
|
4268
|
-
href: callToAction.href,
|
|
4269
|
-
onClick: callToAction.href ? void 0 : callToAction.onClick,
|
|
4270
|
-
target: callToAction.href ? "_blank" : void 0,
|
|
4240
|
+
action: __spreadValues({
|
|
4271
4241
|
text: callToAction.title
|
|
4272
|
-
},
|
|
4242
|
+
}, callToAction.getAnchorProps()),
|
|
4273
4243
|
onDismiss: onDismiss ? () => {
|
|
4274
4244
|
setIsVisible(false);
|
|
4275
4245
|
onDismiss();
|
|
@@ -4279,7 +4249,7 @@ function UpsellRendererComponent(props) {
|
|
|
4279
4249
|
}
|
|
4280
4250
|
var urnPrefix2 = "urn:wise:illustrations:";
|
|
4281
4251
|
var getMediaName = (media) => {
|
|
4282
|
-
if (media
|
|
4252
|
+
if ((media == null ? void 0 : media.type) === "image" && media.uri.startsWith(urnPrefix2)) {
|
|
4283
4253
|
const mediaName = media.uri.substring(urnPrefix2.length);
|
|
4284
4254
|
if (supportedMediaNames.includes(mediaName)) {
|
|
4285
4255
|
return mediaName;
|
|
@@ -4469,13 +4439,26 @@ var logToRollbar = (level, message, extra) => {
|
|
|
4469
4439
|
|
|
4470
4440
|
// src/dynamicFlow/telemetry/getTrackEvent.ts
|
|
4471
4441
|
var import_dynamic_flow_client3 = require("@wise/dynamic-flow-client");
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4442
|
+
|
|
4443
|
+
// src/dynamicFlow/telemetry/dispatchAnalyticsEvent.ts
|
|
4444
|
+
var dispatchAnalyticsEvent = (eventName, properties) => {
|
|
4445
|
+
const props = __spreadValues({ dfFallbackAnalytics: true }, properties);
|
|
4446
|
+
if (typeof window !== "undefined" && window.mixpanel && typeof window.mixpanel.track === "function") {
|
|
4447
|
+
window.mixpanel.track(eventName, props);
|
|
4477
4448
|
}
|
|
4478
4449
|
};
|
|
4450
|
+
|
|
4451
|
+
// src/dynamicFlow/telemetry/getTrackEvent.ts
|
|
4452
|
+
var prefix = "Dynamic Flow - ";
|
|
4453
|
+
var getTrackEvent = (onEvent, onAnalytics) => {
|
|
4454
|
+
const dispatchAnalytics = !onAnalytics && !onEvent ? dispatchAnalyticsEvent : onAnalytics;
|
|
4455
|
+
return (name, properties) => {
|
|
4456
|
+
onEvent == null ? void 0 : onEvent(name, properties);
|
|
4457
|
+
if (includeInAnalytics(name)) {
|
|
4458
|
+
dispatchAnalytics == null ? void 0 : dispatchAnalytics(name, properties);
|
|
4459
|
+
}
|
|
4460
|
+
};
|
|
4461
|
+
};
|
|
4479
4462
|
var includeInAnalytics = (name) => {
|
|
4480
4463
|
const eventName = name.startsWith(prefix) ? name.slice(prefix.length) : name;
|
|
4481
4464
|
if (isCoreEventName(eventName)) {
|
|
@@ -5427,7 +5410,7 @@ var zh_CN_default = {
|
|
|
5427
5410
|
"df.wise.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002",
|
|
5428
5411
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
5429
5412
|
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
5430
|
-
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F
|
|
5413
|
+
"df.wise.CopyFeedback.copyFailed": "\u65E0\u6CD5\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
5431
5414
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
5432
5415
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
5433
5416
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -5442,7 +5425,7 @@ var zh_CN_default = {
|
|
|
5442
5425
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002",
|
|
5443
5426
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
|
|
5444
5427
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
5445
|
-
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026",
|
|
5428
|
+
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026\u2026",
|
|
5446
5429
|
"df.wise.back.label": "\u8FD4\u56DE",
|
|
5447
5430
|
"df.wise.filter.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
5448
5431
|
"df.wise.filter.placeholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|
package/build/main.mjs
CHANGED
|
@@ -34,7 +34,11 @@ var __objRest = (source, exclude) => {
|
|
|
34
34
|
return target;
|
|
35
35
|
};
|
|
36
36
|
var __commonJS = (cb, mod) => function __require() {
|
|
37
|
-
|
|
37
|
+
try {
|
|
38
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
39
|
+
} catch (e) {
|
|
40
|
+
throw mod = 0, e;
|
|
41
|
+
}
|
|
38
42
|
};
|
|
39
43
|
var __copyProps = (to, from, except, desc) => {
|
|
40
44
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -123,7 +127,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
|
|
|
123
127
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
124
128
|
var appVersion = (
|
|
125
129
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
126
|
-
typeof process !== "undefined" ? "5.
|
|
130
|
+
typeof process !== "undefined" ? "5.19.0" : "0.0.0"
|
|
127
131
|
);
|
|
128
132
|
|
|
129
133
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -361,10 +365,10 @@ var AlertRenderer = {
|
|
|
361
365
|
};
|
|
362
366
|
var mapCtaToAlertAction = (callToAction) => {
|
|
363
367
|
if (callToAction) {
|
|
364
|
-
return __spreadValues(
|
|
368
|
+
return __spreadValues({
|
|
365
369
|
text: callToAction.title,
|
|
366
370
|
"aria-label": callToAction.accessibilityDescription
|
|
367
|
-
},
|
|
371
|
+
}, callToAction.getAnchorProps());
|
|
368
372
|
}
|
|
369
373
|
return void 0;
|
|
370
374
|
};
|
|
@@ -858,7 +862,7 @@ var scrollToIfNotVisible = (ref) => {
|
|
|
858
862
|
return;
|
|
859
863
|
}
|
|
860
864
|
if (rect.bottom > window.innerHeight || rect.top < 0) {
|
|
861
|
-
ref.scrollIntoView({ behavior: "
|
|
865
|
+
ref.scrollIntoView({ behavior: "instant" });
|
|
862
866
|
}
|
|
863
867
|
};
|
|
864
868
|
|
|
@@ -1233,6 +1237,7 @@ import { ListItem as ListItem5 } from "@transferwise/components";
|
|
|
1233
1237
|
import { ListItem as ListItem4 } from "@transferwise/components";
|
|
1234
1238
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1235
1239
|
var getAdditionalInfo = (additionalInfo) => {
|
|
1240
|
+
var _a, _b;
|
|
1236
1241
|
if (!additionalInfo) {
|
|
1237
1242
|
return void 0;
|
|
1238
1243
|
}
|
|
@@ -1241,12 +1246,9 @@ var getAdditionalInfo = (additionalInfo) => {
|
|
|
1241
1246
|
return /* @__PURE__ */ jsx27(
|
|
1242
1247
|
ListItem4.AdditionalInfo,
|
|
1243
1248
|
{
|
|
1244
|
-
action: {
|
|
1245
|
-
label: text
|
|
1246
|
-
|
|
1247
|
-
onClick,
|
|
1248
|
-
target: "_blank"
|
|
1249
|
-
}
|
|
1249
|
+
action: __spreadValues({
|
|
1250
|
+
label: text
|
|
1251
|
+
}, (_b = (_a = additionalInfo.getAnchorProps) == null ? void 0 : _a.call(additionalInfo)) != null ? _b : { onClick })
|
|
1250
1252
|
}
|
|
1251
1253
|
);
|
|
1252
1254
|
}
|
|
@@ -1449,7 +1451,7 @@ var renderDecisionList = ({ options, control }) => {
|
|
|
1449
1451
|
disabled,
|
|
1450
1452
|
media,
|
|
1451
1453
|
title: itemTitle,
|
|
1452
|
-
|
|
1454
|
+
getAnchorProps,
|
|
1453
1455
|
additionalText,
|
|
1454
1456
|
inlineAlert,
|
|
1455
1457
|
supportingValues,
|
|
@@ -1467,7 +1469,7 @@ var renderDecisionList = ({ options, control }) => {
|
|
|
1467
1469
|
media: getMedia(media, shouldUseAvatar(control, tags)),
|
|
1468
1470
|
prompt: getInlineAlert(inlineAlert),
|
|
1469
1471
|
additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
|
|
1470
|
-
control:
|
|
1472
|
+
control: /* @__PURE__ */ jsx30(ListItem5.Navigation, __spreadValues({}, getAnchorProps()))
|
|
1471
1473
|
},
|
|
1472
1474
|
JSON.stringify(rest)
|
|
1473
1475
|
);
|
|
@@ -1945,33 +1947,17 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
1945
1947
|
if (!callToAction) {
|
|
1946
1948
|
return void 0;
|
|
1947
1949
|
}
|
|
1948
|
-
const { accessibilityDescription,
|
|
1950
|
+
const { accessibilityDescription, title, context } = callToAction;
|
|
1949
1951
|
const { priority, sentiment } = getPriorityAndSentiment(ctaSecondary, context);
|
|
1950
|
-
if (href) {
|
|
1951
|
-
return /* @__PURE__ */ jsx44(
|
|
1952
|
-
ListItem6.Button,
|
|
1953
|
-
{
|
|
1954
|
-
href,
|
|
1955
|
-
target: "_blank",
|
|
1956
|
-
rel: "noopener noreferrer",
|
|
1957
|
-
partiallyInteractive: !fullyInteractive,
|
|
1958
|
-
priority,
|
|
1959
|
-
"aria-description": accessibilityDescription,
|
|
1960
|
-
sentiment,
|
|
1961
|
-
children: title
|
|
1962
|
-
}
|
|
1963
|
-
);
|
|
1964
|
-
}
|
|
1965
1952
|
return /* @__PURE__ */ jsx44(
|
|
1966
1953
|
ListItem6.Button,
|
|
1967
|
-
{
|
|
1968
|
-
"aria-description": accessibilityDescription,
|
|
1954
|
+
__spreadProps(__spreadValues({}, callToAction.getAnchorProps()), {
|
|
1969
1955
|
partiallyInteractive: !fullyInteractive,
|
|
1970
1956
|
priority,
|
|
1957
|
+
"aria-description": accessibilityDescription,
|
|
1971
1958
|
sentiment,
|
|
1972
|
-
onClick,
|
|
1973
1959
|
children: title
|
|
1974
|
-
}
|
|
1960
|
+
})
|
|
1975
1961
|
);
|
|
1976
1962
|
};
|
|
1977
1963
|
var getPriorityAndSentiment = (ctaSecondary, context) => {
|
|
@@ -1989,20 +1975,10 @@ var getHeaderAction = (callToAction) => {
|
|
|
1989
1975
|
if (!callToAction) {
|
|
1990
1976
|
return void 0;
|
|
1991
1977
|
}
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
href,
|
|
1997
|
-
target: "_blank"
|
|
1998
|
-
} : {
|
|
1999
|
-
"aria-label": accessibilityDescription,
|
|
2000
|
-
text: title,
|
|
2001
|
-
onClick: (event) => {
|
|
2002
|
-
event.preventDefault();
|
|
2003
|
-
onClick();
|
|
2004
|
-
}
|
|
2005
|
-
};
|
|
1978
|
+
return __spreadValues({
|
|
1979
|
+
"aria-label": callToAction.accessibilityDescription,
|
|
1980
|
+
text: callToAction.title
|
|
1981
|
+
}, callToAction.getAnchorProps());
|
|
2006
1982
|
};
|
|
2007
1983
|
|
|
2008
1984
|
// ../renderers/src/ListRenderer.tsx
|
|
@@ -3623,7 +3599,7 @@ var StatusListRenderer = {
|
|
|
3623
3599
|
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs25("div", { className: getMargin(margin), children: [
|
|
3624
3600
|
title ? /* @__PURE__ */ jsx76(Header9, { title }) : null,
|
|
3625
3601
|
items.map((item) => {
|
|
3626
|
-
const { callToAction, description,
|
|
3602
|
+
const { callToAction, description, title: itemTitle } = item;
|
|
3627
3603
|
return /* @__PURE__ */ jsx76(
|
|
3628
3604
|
ListItem12,
|
|
3629
3605
|
{
|
|
@@ -3633,12 +3609,9 @@ var StatusListRenderer = {
|
|
|
3633
3609
|
additionalInfo: callToAction ? /* @__PURE__ */ jsx76(
|
|
3634
3610
|
ListItem12.AdditionalInfo,
|
|
3635
3611
|
{
|
|
3636
|
-
action: {
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
label: callToAction.title,
|
|
3640
|
-
target: "_blank"
|
|
3641
|
-
}
|
|
3612
|
+
action: __spreadValues({
|
|
3613
|
+
label: callToAction.title
|
|
3614
|
+
}, callToAction.getAnchorProps())
|
|
3642
3615
|
}
|
|
3643
3616
|
) : void 0
|
|
3644
3617
|
},
|
|
@@ -4255,12 +4228,9 @@ function UpsellRendererComponent(props) {
|
|
|
4255
4228
|
className: getMargin(margin),
|
|
4256
4229
|
mediaName: getMediaName(media),
|
|
4257
4230
|
title: text,
|
|
4258
|
-
action: {
|
|
4259
|
-
href: callToAction.href,
|
|
4260
|
-
onClick: callToAction.href ? void 0 : callToAction.onClick,
|
|
4261
|
-
target: callToAction.href ? "_blank" : void 0,
|
|
4231
|
+
action: __spreadValues({
|
|
4262
4232
|
text: callToAction.title
|
|
4263
|
-
},
|
|
4233
|
+
}, callToAction.getAnchorProps()),
|
|
4264
4234
|
onDismiss: onDismiss ? () => {
|
|
4265
4235
|
setIsVisible(false);
|
|
4266
4236
|
onDismiss();
|
|
@@ -4270,7 +4240,7 @@ function UpsellRendererComponent(props) {
|
|
|
4270
4240
|
}
|
|
4271
4241
|
var urnPrefix2 = "urn:wise:illustrations:";
|
|
4272
4242
|
var getMediaName = (media) => {
|
|
4273
|
-
if (media
|
|
4243
|
+
if ((media == null ? void 0 : media.type) === "image" && media.uri.startsWith(urnPrefix2)) {
|
|
4274
4244
|
const mediaName = media.uri.substring(urnPrefix2.length);
|
|
4275
4245
|
if (supportedMediaNames.includes(mediaName)) {
|
|
4276
4246
|
return mediaName;
|
|
@@ -4460,13 +4430,26 @@ var logToRollbar = (level, message, extra) => {
|
|
|
4460
4430
|
|
|
4461
4431
|
// src/dynamicFlow/telemetry/getTrackEvent.ts
|
|
4462
4432
|
import { eventNames } from "@wise/dynamic-flow-client";
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4433
|
+
|
|
4434
|
+
// src/dynamicFlow/telemetry/dispatchAnalyticsEvent.ts
|
|
4435
|
+
var dispatchAnalyticsEvent = (eventName, properties) => {
|
|
4436
|
+
const props = __spreadValues({ dfFallbackAnalytics: true }, properties);
|
|
4437
|
+
if (typeof window !== "undefined" && window.mixpanel && typeof window.mixpanel.track === "function") {
|
|
4438
|
+
window.mixpanel.track(eventName, props);
|
|
4468
4439
|
}
|
|
4469
4440
|
};
|
|
4441
|
+
|
|
4442
|
+
// src/dynamicFlow/telemetry/getTrackEvent.ts
|
|
4443
|
+
var prefix = "Dynamic Flow - ";
|
|
4444
|
+
var getTrackEvent = (onEvent, onAnalytics) => {
|
|
4445
|
+
const dispatchAnalytics = !onAnalytics && !onEvent ? dispatchAnalyticsEvent : onAnalytics;
|
|
4446
|
+
return (name, properties) => {
|
|
4447
|
+
onEvent == null ? void 0 : onEvent(name, properties);
|
|
4448
|
+
if (includeInAnalytics(name)) {
|
|
4449
|
+
dispatchAnalytics == null ? void 0 : dispatchAnalytics(name, properties);
|
|
4450
|
+
}
|
|
4451
|
+
};
|
|
4452
|
+
};
|
|
4470
4453
|
var includeInAnalytics = (name) => {
|
|
4471
4454
|
const eventName = name.startsWith(prefix) ? name.slice(prefix.length) : name;
|
|
4472
4455
|
if (isCoreEventName(eventName)) {
|
|
@@ -5421,7 +5404,7 @@ var zh_CN_default = {
|
|
|
5421
5404
|
"df.wise.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002",
|
|
5422
5405
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
5423
5406
|
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
5424
|
-
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F
|
|
5407
|
+
"df.wise.CopyFeedback.copyFailed": "\u65E0\u6CD5\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
5425
5408
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
5426
5409
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
5427
5410
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -5436,7 +5419,7 @@ var zh_CN_default = {
|
|
|
5436
5419
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002",
|
|
5437
5420
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
|
|
5438
5421
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
5439
|
-
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026",
|
|
5422
|
+
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026\u2026",
|
|
5440
5423
|
"df.wise.back.label": "\u8FD4\u56DE",
|
|
5441
5424
|
"df.wise.filter.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
5442
5425
|
"df.wise.filter.placeholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|