isdata-customer-sdk 0.2.11 → 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 +11 -1
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +11 -1
- 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.umd.js
CHANGED
|
@@ -29594,6 +29594,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29594
29594
|
getDifyFileType: function() { return /* reexport */ getDifyFileType; },
|
|
29595
29595
|
getFileSize: function() { return /* reexport */ getFileSize; },
|
|
29596
29596
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29597
|
+
getI18nKey: function() { return /* reexport */ getI18nKey; },
|
|
29597
29598
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
29598
29599
|
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29599
29600
|
getKey: function() { return /* reexport */ getKey; },
|
|
@@ -32535,6 +32536,15 @@ const getFileSize = async url => {
|
|
|
32535
32536
|
return -1; // 返回-1表示失败
|
|
32536
32537
|
}
|
|
32537
32538
|
};
|
|
32539
|
+
// 获取i18n key
|
|
32540
|
+
const getI18nKey = text => {
|
|
32541
|
+
// 正则表达式匹配 $L{...} 格式
|
|
32542
|
+
const regex = /\$L\{([^}]+)\}/g;
|
|
32543
|
+
let match = regex.exec(text);
|
|
32544
|
+
if (!match) return text;
|
|
32545
|
+
let key = match[1];
|
|
32546
|
+
return key;
|
|
32547
|
+
};
|
|
32538
32548
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
32539
32549
|
var es_iterator_some = __webpack_require__(3579);
|
|
32540
32550
|
;// ./src/api/iframe.js
|
|
@@ -33755,7 +33765,7 @@ const calendar_i18n_check = element => {
|
|
|
33755
33765
|
};
|
|
33756
33766
|
let innerHTML = element.innerHTML;
|
|
33757
33767
|
let match = innerHTML.match(regex);
|
|
33758
|
-
if (match.length > 0) {
|
|
33768
|
+
if (match && match.length > 0) {
|
|
33759
33769
|
// console.log("检查smardaten平台日历 日 元素:",innerHTML);
|
|
33760
33770
|
let tempHTMLMatch = {
|
|
33761
33771
|
oldValue: innerHTML,
|