isdata-customer-sdk 0.2.12 → 0.2.13
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/dist/index.common.js +10 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +10 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -29576,6 +29576,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29576
29576
|
getDifyFileType: function() { return /* reexport */ getDifyFileType; },
|
|
29577
29577
|
getFileSize: function() { return /* reexport */ getFileSize; },
|
|
29578
29578
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29579
|
+
getI18nKey: function() { return /* reexport */ getI18nKey; },
|
|
29579
29580
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
29580
29581
|
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29581
29582
|
getKey: function() { return /* reexport */ getKey; },
|
|
@@ -32517,6 +32518,15 @@ const getFileSize = async url => {
|
|
|
32517
32518
|
return -1; // 返回-1表示失败
|
|
32518
32519
|
}
|
|
32519
32520
|
};
|
|
32521
|
+
// 获取i18n key
|
|
32522
|
+
const getI18nKey = text => {
|
|
32523
|
+
// 正则表达式匹配 $L{...} 格式
|
|
32524
|
+
const regex = /\$L\{([^}]+)\}/g;
|
|
32525
|
+
let match = regex.exec(text);
|
|
32526
|
+
if (!match) return text;
|
|
32527
|
+
let key = match[1];
|
|
32528
|
+
return key;
|
|
32529
|
+
};
|
|
32520
32530
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
32521
32531
|
var es_iterator_some = __webpack_require__(3579);
|
|
32522
32532
|
;// ./src/api/iframe.js
|