@wise/dynamic-flow-client 2.8.7 → 2.8.9
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 +1 -1
- package/build/i18n/zh_HK.json +1 -1
- package/build/main.js +53 -37
- package/build/main.min.js +1 -1
- package/build/types/legacy/layout/button/utils.d.ts +1 -1
- package/build/types/revamp/domain/components/HiddenComponent.d.ts +11 -0
- package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/constSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +3 -1
- package/build/types/revamp/domain/types.d.ts +2 -1
- package/build/types/revamp/renderers/mappers/hiddenComponentToProps.d.ts +2 -0
- package/build/types/revamp/renderers/types.d.ts +3 -0
- package/build/types/revamp/utils/type-utils.d.ts +2 -1
- package/package.json +23 -23
package/build/i18n/zh_CN.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"dynamicFlows.ArraySchema.minItemsError": "请至少添加 {minItems} 项。",
|
|
7
7
|
"dynamicFlows.ArraySchema.removeItem": "移除",
|
|
8
8
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.action": "重试",
|
|
9
|
-
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
9
|
+
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "请检查是否连接,然后重试。",
|
|
10
10
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.title": "我们无法访问您的摄像头",
|
|
11
11
|
"dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "您目前使用的浏览器不支持摄像头。请尝试其他浏览器、设备或下载我们的应用。",
|
|
12
12
|
"dynamicFlows.CameraCapture.CameraNotSupported.title": "不支持摄像头",
|
package/build/i18n/zh_HK.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"dynamicFlows.ArraySchema.minItemsError": "請至少添加{minItems}項。",
|
|
7
7
|
"dynamicFlows.ArraySchema.removeItem": "移除",
|
|
8
8
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.action": "再試一次",
|
|
9
|
-
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
9
|
+
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "請檢查連線狀態,然後再試一次。",
|
|
10
10
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.title": "我們無法取用你的相機",
|
|
11
11
|
"dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "你目前使用的瀏覽器不支持相機。請嘗試使用其他瀏覽器或其他裝置,或者你可以下載我們的應用程式。",
|
|
12
12
|
"dynamicFlows.CameraCapture.CameraNotSupported.title": "不支持相機",
|
package/build/main.js
CHANGED
|
@@ -47,43 +47,52 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
47
47
|
));
|
|
48
48
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
49
|
|
|
50
|
-
// ../../node_modules/.pnpm/classnames@2.
|
|
50
|
+
// ../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js
|
|
51
51
|
var require_classnames = __commonJS({
|
|
52
|
-
"../../node_modules/.pnpm/classnames@2.
|
|
52
|
+
"../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js"(exports, module2) {
|
|
53
53
|
"use strict";
|
|
54
54
|
(function() {
|
|
55
55
|
"use strict";
|
|
56
56
|
var hasOwn = {}.hasOwnProperty;
|
|
57
|
-
var nativeCodeString = "[native code]";
|
|
58
57
|
function classNames8() {
|
|
59
|
-
var classes =
|
|
58
|
+
var classes = "";
|
|
60
59
|
for (var i = 0; i < arguments.length; i++) {
|
|
61
60
|
var arg = arguments[i];
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
61
|
+
if (arg) {
|
|
62
|
+
classes = appendClass(classes, parseValue(arg));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return classes;
|
|
66
|
+
}
|
|
67
|
+
function parseValue(arg) {
|
|
68
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
69
|
+
return arg;
|
|
70
|
+
}
|
|
71
|
+
if (typeof arg !== "object") {
|
|
72
|
+
return "";
|
|
73
|
+
}
|
|
74
|
+
if (Array.isArray(arg)) {
|
|
75
|
+
return classNames8.apply(null, arg);
|
|
76
|
+
}
|
|
77
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
78
|
+
return arg.toString();
|
|
79
|
+
}
|
|
80
|
+
var classes = "";
|
|
81
|
+
for (var key in arg) {
|
|
82
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
83
|
+
classes = appendClass(classes, key);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
return classes
|
|
86
|
+
return classes;
|
|
87
|
+
}
|
|
88
|
+
function appendClass(value, newClass) {
|
|
89
|
+
if (!newClass) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
if (value) {
|
|
93
|
+
return value + " " + newClass;
|
|
94
|
+
}
|
|
95
|
+
return value + newClass;
|
|
87
96
|
}
|
|
88
97
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
89
98
|
classNames8.default = classNames8;
|
|
@@ -200,7 +209,7 @@ var require_react_webcam = __commonJS({
|
|
|
200
209
|
"react"
|
|
201
210
|
);
|
|
202
211
|
var react__WEBPACK_IMPORTED_MODULE_0___default = /* @__PURE__ */ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
203
|
-
var __extends = function() {
|
|
212
|
+
var __extends = /* @__PURE__ */ function() {
|
|
204
213
|
var extendStatics = function(d, b) {
|
|
205
214
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
206
215
|
d2.__proto__ = b2;
|
|
@@ -2432,18 +2441,25 @@ var getButtonPriority = (component) => {
|
|
|
2432
2441
|
const actionType = component.action.type;
|
|
2433
2442
|
return (_a = component.control) != null ? _a : actionType ? priorities[actionType] : "secondary";
|
|
2434
2443
|
};
|
|
2435
|
-
var
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2444
|
+
var contextToType = {
|
|
2445
|
+
positive: "positive",
|
|
2446
|
+
negative: "negative",
|
|
2447
|
+
neutral: "accent",
|
|
2448
|
+
warning: "accent"
|
|
2449
|
+
};
|
|
2450
|
+
var actionTypeToType = {
|
|
2451
|
+
primary: "accent",
|
|
2452
|
+
secondary: "accent",
|
|
2453
|
+
link: "accent",
|
|
2439
2454
|
positive: "positive",
|
|
2440
2455
|
negative: "negative"
|
|
2441
2456
|
};
|
|
2442
2457
|
var getButtonType = (component) => {
|
|
2443
|
-
|
|
2458
|
+
if (component.context) {
|
|
2459
|
+
return contextToType[component.context];
|
|
2460
|
+
}
|
|
2444
2461
|
const actionType = component.action.type;
|
|
2445
|
-
|
|
2446
|
-
return type === "neutral" ? "accent" : type;
|
|
2462
|
+
return actionType ? actionTypeToType[actionType] : "accent";
|
|
2447
2463
|
};
|
|
2448
2464
|
var getButtonSize = (size) => {
|
|
2449
2465
|
switch (size) {
|
|
@@ -8217,7 +8233,7 @@ var zh_CN_default = {
|
|
|
8217
8233
|
"dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002",
|
|
8218
8234
|
"dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664",
|
|
8219
8235
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u91CD\u8BD5",
|
|
8220
|
-
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
8236
|
+
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u8BF7\u68C0\u67E5\u662F\u5426\u8FDE\u63A5\uFF0C\u7136\u540E\u91CD\u8BD5\u3002",
|
|
8221
8237
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u6211\u4EEC\u65E0\u6CD5\u8BBF\u95EE\u60A8\u7684\u6444\u50CF\u5934",
|
|
8222
8238
|
"dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6444\u50CF\u5934\u3002\u8BF7\u5C1D\u8BD5\u5176\u4ED6\u6D4F\u89C8\u5668\u3001\u8BBE\u5907\u6216\u4E0B\u8F7D\u6211\u4EEC\u7684\u5E94\u7528\u3002",
|
|
8223
8239
|
"dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u6444\u50CF\u5934",
|
|
@@ -8266,7 +8282,7 @@ var zh_HK_default = {
|
|
|
8266
8282
|
"dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002",
|
|
8267
8283
|
"dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664",
|
|
8268
8284
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u518D\u8A66\u4E00\u6B21",
|
|
8269
|
-
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
8285
|
+
"dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u8ACB\u6AA2\u67E5\u9023\u7DDA\u72C0\u614B\uFF0C\u7136\u5F8C\u518D\u8A66\u4E00\u6B21\u3002",
|
|
8270
8286
|
"dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F",
|
|
8271
8287
|
"dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u4F60\u76EE\u524D\u4F7F\u7528\u7684\u700F\u89BD\u5668\u4E0D\u652F\u6301\u76F8\u6A5F\u3002\u8ACB\u5617\u8A66\u4F7F\u7528\u5176\u4ED6\u700F\u89BD\u5668\u6216\u5176\u4ED6\u88DD\u7F6E\uFF0C\u6216\u8005\u4F60\u53EF\u4EE5\u4E0B\u8F09\u6211\u5011\u7684\u61C9\u7528\u7A0B\u5F0F\u3002",
|
|
8272
8288
|
"dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u76F8\u6A5F",
|