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.umd.js
CHANGED
|
@@ -29633,7 +29633,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29633
29633
|
loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
|
|
29634
29634
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
29635
29635
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
29636
|
-
processElement: function() { return /* reexport */
|
|
29636
|
+
processElement: function() { return /* reexport */ processElement; },
|
|
29637
29637
|
queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
|
|
29638
29638
|
queryAppVariable: function() { return /* reexport */ queryAppVariable; },
|
|
29639
29639
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
@@ -33929,7 +33929,7 @@ function checkPlatformElementContent(element) {
|
|
|
33929
33929
|
}
|
|
33930
33930
|
return checkContentResult;
|
|
33931
33931
|
}
|
|
33932
|
-
function
|
|
33932
|
+
function processElement(element) {
|
|
33933
33933
|
if (!element) {
|
|
33934
33934
|
return false;
|
|
33935
33935
|
}
|
|
@@ -33952,7 +33952,7 @@ function i18n_processElement(element) {
|
|
|
33952
33952
|
unProcessElement(child);
|
|
33953
33953
|
}
|
|
33954
33954
|
}
|
|
33955
|
-
|
|
33955
|
+
processElement(children[i]);
|
|
33956
33956
|
}
|
|
33957
33957
|
}
|
|
33958
33958
|
|
|
@@ -34116,7 +34116,7 @@ const initDomNodeI18NObserver = () => {
|
|
|
34116
34116
|
if (node.nodeType === Node.TEXT_NODE) {
|
|
34117
34117
|
node = node.parentNode;
|
|
34118
34118
|
}
|
|
34119
|
-
|
|
34119
|
+
processElement(node);
|
|
34120
34120
|
}
|
|
34121
34121
|
}
|
|
34122
34122
|
// 节点移除
|
|
@@ -34142,7 +34142,7 @@ const initDomNodeI18NObserver = () => {
|
|
|
34142
34142
|
unProcessElement(parentElement);
|
|
34143
34143
|
}
|
|
34144
34144
|
}
|
|
34145
|
-
|
|
34145
|
+
processElement(parentElement);
|
|
34146
34146
|
}
|
|
34147
34147
|
});
|
|
34148
34148
|
});
|
|
@@ -34161,7 +34161,7 @@ const initDomNodeI18NObserver = () => {
|
|
|
34161
34161
|
};
|
|
34162
34162
|
// 开始观察目标节点
|
|
34163
34163
|
const targetNode = document.body;
|
|
34164
|
-
|
|
34164
|
+
processElement(targetNode);
|
|
34165
34165
|
observer.observe(targetNode, config);
|
|
34166
34166
|
};
|
|
34167
34167
|
;// ./src/main.js
|