@nine-lab/nine-ux 0.1.80 → 0.1.81
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/nine-ux.umd.js +6 -6
- package/package.json +1 -1
package/dist/nine-ux.umd.js
CHANGED
|
@@ -19372,7 +19372,7 @@ img.ProseMirror-separator {
|
|
|
19372
19372
|
const customImport = customPath ? `@import "${customPath}";` : "";
|
|
19373
19373
|
this.shadowRoot.innerHTML = `
|
|
19374
19374
|
<style>
|
|
19375
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.
|
|
19375
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.81"}/dist/css/nineEditor.css";
|
|
19376
19376
|
${customImport}
|
|
19377
19377
|
</style>
|
|
19378
19378
|
|
|
@@ -19507,19 +19507,19 @@ img.ProseMirror-separator {
|
|
|
19507
19507
|
confirm: window.confirm
|
|
19508
19508
|
};
|
|
19509
19509
|
const sync = () => {
|
|
19510
|
-
var _a
|
|
19511
|
-
const { nativeOverride } = ((
|
|
19510
|
+
var _a;
|
|
19511
|
+
const { nativeOverride } = ((_a = nine == null ? void 0 : nine.config) == null ? void 0 : _a.ux) || {};
|
|
19512
19512
|
const targets = Array.isArray(nativeOverride) ? nativeOverride : nativeOverride === true ? ["alert", "confirm"] : [];
|
|
19513
|
-
console.log(
|
|
19513
|
+
console.log(nine, targets);
|
|
19514
19514
|
window.alert = targets.includes("alert") ? (msg) => nineUx.alert(msg) : originals.alert;
|
|
19515
19515
|
window.confirm = targets.includes("confirm") ? async (msg) => await nineUx.confirm(msg) : originals.confirm;
|
|
19516
|
-
if (
|
|
19516
|
+
if (nine.config.debug && targets.length > 0) {
|
|
19517
19517
|
console.log(`[nine-ux] Native API Overridden: ${targets.join(", ")}`);
|
|
19518
19518
|
}
|
|
19519
19519
|
};
|
|
19520
19520
|
const init = () => {
|
|
19521
19521
|
sync();
|
|
19522
|
-
|
|
19522
|
+
nine == null ? void 0 : nine.subscribeConfig((prop) => {
|
|
19523
19523
|
if (prop === "ux" || prop === "config") {
|
|
19524
19524
|
sync();
|
|
19525
19525
|
}
|