@nine-lab/nine-mu 0.1.41 → 0.1.42
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 +15 -4
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineDiff.js +15 -0
package/dist/nine-mu.js
CHANGED
|
@@ -183,7 +183,7 @@ render_fn = function() {
|
|
|
183
183
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
184
184
|
this.shadowRoot.innerHTML = `
|
|
185
185
|
<style>
|
|
186
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
186
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.41"}/dist/css/nine-mu.css";
|
|
187
187
|
${customImport}
|
|
188
188
|
</style>
|
|
189
189
|
<div class="wrapper">
|
|
@@ -26117,6 +26117,13 @@ class NineDiff extends HTMLElement {
|
|
|
26117
26117
|
return __privateGet(this, _tobeEditorView) ? __privateGet(this, _tobeEditorView).state.doc.toString() : "";
|
|
26118
26118
|
});
|
|
26119
26119
|
__privateAdd(this, _initCodeMirror, () => {
|
|
26120
|
+
let asisReady = false;
|
|
26121
|
+
let tobeReady = false;
|
|
26122
|
+
const checkAllReady = () => {
|
|
26123
|
+
if (asisReady && tobeReady) {
|
|
26124
|
+
this.dispatchEvent(new CustomEvent("ready", { bubbles: true, composed: true }));
|
|
26125
|
+
}
|
|
26126
|
+
};
|
|
26120
26127
|
__privateSet(this, _asisEditorEl, this.shadowRoot.querySelector(".panel.asis"));
|
|
26121
26128
|
__privateSet(this, _tobeEditorEl, this.shadowRoot.querySelector(".panel.tobe"));
|
|
26122
26129
|
if (!__privateGet(this, _asisEditorEl) || !__privateGet(this, _tobeEditorEl)) {
|
|
@@ -26162,6 +26169,8 @@ class NineDiff extends HTMLElement {
|
|
|
26162
26169
|
if (update.view.contentDOM.firstChild && !update.view._initialAsisContentLoaded) {
|
|
26163
26170
|
update.view._initialAsisContentLoaded = true;
|
|
26164
26171
|
trace.log("CodeMirror ASIS view is ready for initial content.");
|
|
26172
|
+
asisReady = true;
|
|
26173
|
+
checkAllReady();
|
|
26165
26174
|
}
|
|
26166
26175
|
})
|
|
26167
26176
|
]
|
|
@@ -26182,6 +26191,8 @@ class NineDiff extends HTMLElement {
|
|
|
26182
26191
|
if (update.view.contentDOM.firstChild && !update.view._initialTobeContentLoaded) {
|
|
26183
26192
|
update.view._initialTobeContentLoaded = true;
|
|
26184
26193
|
trace.log("CodeMirror TOBE view is ready for initial content.");
|
|
26194
|
+
tobeReady = true;
|
|
26195
|
+
checkAllReady();
|
|
26185
26196
|
}
|
|
26186
26197
|
})
|
|
26187
26198
|
]
|
|
@@ -26385,7 +26396,7 @@ class NineDiff extends HTMLElement {
|
|
|
26385
26396
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26386
26397
|
this.shadowRoot.innerHTML = `
|
|
26387
26398
|
<style>
|
|
26388
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26399
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.41"}/dist/css/nine-mu.css";
|
|
26389
26400
|
${customImport}
|
|
26390
26401
|
</style>
|
|
26391
26402
|
|
|
@@ -26450,7 +26461,7 @@ class NineDiffPopup extends HTMLElement {
|
|
|
26450
26461
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26451
26462
|
this.shadowRoot.innerHTML = `
|
|
26452
26463
|
<style>
|
|
26453
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26464
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.41"}/dist/css/nine-mu.css";
|
|
26454
26465
|
${customImport}
|
|
26455
26466
|
</style>
|
|
26456
26467
|
|
|
@@ -26595,7 +26606,7 @@ if (!customElements.get("nine-dialog")) {
|
|
|
26595
26606
|
customElements.define("nine-dialog", NineDialog);
|
|
26596
26607
|
}
|
|
26597
26608
|
const NineMu = {
|
|
26598
|
-
version: "0.1.
|
|
26609
|
+
version: "0.1.41",
|
|
26599
26610
|
init: (config) => {
|
|
26600
26611
|
trace.log("🛠️ Nine-Mu Engine initialized", config);
|
|
26601
26612
|
}
|