isdata-customer-sdk 0.2.16 → 0.2.17
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
CHANGED
|
@@ -29615,7 +29615,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29615
29615
|
loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
|
|
29616
29616
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
29617
29617
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
29618
|
-
processElement: function() { return /* reexport */
|
|
29618
|
+
processElement: function() { return /* reexport */ processElement; },
|
|
29619
29619
|
queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
|
|
29620
29620
|
queryAppVariable: function() { return /* reexport */ queryAppVariable; },
|
|
29621
29621
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
@@ -33911,7 +33911,7 @@ function checkPlatformElementContent(element) {
|
|
|
33911
33911
|
}
|
|
33912
33912
|
return checkContentResult;
|
|
33913
33913
|
}
|
|
33914
|
-
function
|
|
33914
|
+
function processElement(element) {
|
|
33915
33915
|
if (!element) {
|
|
33916
33916
|
return false;
|
|
33917
33917
|
}
|
|
@@ -33934,7 +33934,7 @@ function i18n_processElement(element) {
|
|
|
33934
33934
|
unProcessElement(child);
|
|
33935
33935
|
}
|
|
33936
33936
|
}
|
|
33937
|
-
|
|
33937
|
+
processElement(children[i]);
|
|
33938
33938
|
}
|
|
33939
33939
|
}
|
|
33940
33940
|
|
|
@@ -34098,7 +34098,7 @@ const initDomNodeI18NObserver = () => {
|
|
|
34098
34098
|
if (node.nodeType === Node.TEXT_NODE) {
|
|
34099
34099
|
node = node.parentNode;
|
|
34100
34100
|
}
|
|
34101
|
-
|
|
34101
|
+
processElement(node);
|
|
34102
34102
|
}
|
|
34103
34103
|
}
|
|
34104
34104
|
// 节点移除
|
|
@@ -34124,7 +34124,7 @@ const initDomNodeI18NObserver = () => {
|
|
|
34124
34124
|
unProcessElement(parentElement);
|
|
34125
34125
|
}
|
|
34126
34126
|
}
|
|
34127
|
-
|
|
34127
|
+
processElement(parentElement);
|
|
34128
34128
|
}
|
|
34129
34129
|
});
|
|
34130
34130
|
});
|
|
@@ -34143,7 +34143,7 @@ const initDomNodeI18NObserver = () => {
|
|
|
34143
34143
|
};
|
|
34144
34144
|
// 开始观察目标节点
|
|
34145
34145
|
const targetNode = document.body;
|
|
34146
|
-
|
|
34146
|
+
processElement(targetNode);
|
|
34147
34147
|
observer.observe(targetNode, config);
|
|
34148
34148
|
};
|
|
34149
34149
|
;// ./src/main.js
|