@nine-lab/nine-mu 0.1.32 → 0.1.34
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-mu.js
CHANGED
|
@@ -178,7 +178,7 @@ render_fn = function() {
|
|
|
178
178
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
179
179
|
this.shadowRoot.innerHTML = `
|
|
180
180
|
<style>
|
|
181
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
181
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.33"}/dist/css/nine-mu.css";
|
|
182
182
|
${customImport}
|
|
183
183
|
</style>
|
|
184
184
|
<div class="wrapper">
|
|
@@ -26378,7 +26378,7 @@ class NineDiff extends HTMLElement {
|
|
|
26378
26378
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26379
26379
|
this.shadowRoot.innerHTML = `
|
|
26380
26380
|
<style>
|
|
26381
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26381
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.33"}/dist/css/nine-mu.css";
|
|
26382
26382
|
${customImport}
|
|
26383
26383
|
</style>
|
|
26384
26384
|
|
|
@@ -26390,6 +26390,11 @@ class NineDiff extends HTMLElement {
|
|
|
26390
26390
|
`;
|
|
26391
26391
|
requestAnimationFrame(() => {
|
|
26392
26392
|
__privateGet(this, _initCodeMirror).call(this);
|
|
26393
|
+
this.dispatchEvent(new CustomEvent("ready", {
|
|
26394
|
+
detail: { target: this },
|
|
26395
|
+
bubbles: true,
|
|
26396
|
+
composed: true
|
|
26397
|
+
}));
|
|
26393
26398
|
});
|
|
26394
26399
|
}
|
|
26395
26400
|
disconnectedCallback() {
|
|
@@ -26437,7 +26442,7 @@ class NineDiffPopup extends HTMLElement {
|
|
|
26437
26442
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26438
26443
|
this.shadowRoot.innerHTML = `
|
|
26439
26444
|
<style>
|
|
26440
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26445
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.33"}/dist/css/nine-mu.css";
|
|
26441
26446
|
${customImport}
|
|
26442
26447
|
</style>
|
|
26443
26448
|
|
|
@@ -26462,13 +26467,12 @@ class NineDiffPopup extends HTMLElement {
|
|
|
26462
26467
|
return new Promise((resolve) => {
|
|
26463
26468
|
__privateSet(this, _resolve, resolve);
|
|
26464
26469
|
__privateSet(this, _asisBackup, (data == null ? void 0 : data.asis) || "");
|
|
26465
|
-
|
|
26470
|
+
__privateGet(this, _diffView).addEventListener("ready", () => {
|
|
26471
|
+
trace.log("NineDiff is Ready! Injecting data...");
|
|
26466
26472
|
const asisStr = typeof data.asis === "object" ? JSON.stringify(data.asis, null, 2) : data.asis;
|
|
26467
26473
|
const tobeStr = typeof data.tobe === "object" ? JSON.stringify(data.tobe, null, 2) : data.tobe;
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
}, 100);
|
|
26471
|
-
}
|
|
26474
|
+
__privateGet(this, _diffView).initialize(asisStr, tobeStr, data.lang || "javascript");
|
|
26475
|
+
}, { once: true });
|
|
26472
26476
|
__privateGet(this, _dialog).showModal();
|
|
26473
26477
|
});
|
|
26474
26478
|
}
|
|
@@ -26582,7 +26586,7 @@ if (!customElements.get("nine-dialog")) {
|
|
|
26582
26586
|
customElements.define("nine-dialog", NineDialog);
|
|
26583
26587
|
}
|
|
26584
26588
|
const NineMu = {
|
|
26585
|
-
version: "0.1.
|
|
26589
|
+
version: "0.1.33",
|
|
26586
26590
|
init: (config) => {
|
|
26587
26591
|
trace.log("🛠️ Nine-Mu Engine initialized", config);
|
|
26588
26592
|
}
|