@jinntec/jinntap 1.20.0 → 1.21.0
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/jinn-tap.es.js +5 -3
- package/package.json +1 -1
package/dist/jinn-tap.es.js
CHANGED
|
@@ -31282,7 +31282,7 @@ function qh(n) {
|
|
|
31282
31282
|
), i = [];
|
|
31283
31283
|
return t.forEach((s) => {
|
|
31284
31284
|
i.push(s.outerHTML);
|
|
31285
|
-
}),
|
|
31285
|
+
}), {
|
|
31286
31286
|
content: i.join(""),
|
|
31287
31287
|
doc: e
|
|
31288
31288
|
};
|
|
@@ -48309,7 +48309,7 @@ class R4 extends HTMLElement {
|
|
|
48309
48309
|
return ["debug", "url", "schema"];
|
|
48310
48310
|
}
|
|
48311
48311
|
constructor() {
|
|
48312
|
-
super(), this.editor = null, this.toolbar = null, this.attributePanel = null, this.notesWrapper = "listAnnotation", this.collaboration = null, this.provider = null, this.notes = "disconnected", this._schema = D4, this._initialized = !1;
|
|
48312
|
+
super(), this.editor = null, this.toolbar = null, this.attributePanel = null, this.notesWrapper = "listAnnotation", this.collaboration = null, this.provider = null, this.notes = "disconnected", this.metadata = {}, this._schema = D4, this._initialized = !1;
|
|
48313
48313
|
}
|
|
48314
48314
|
attributeChangedCallback(e, t, i) {
|
|
48315
48315
|
e === "debug" ? i !== null ? this.classList.add("debug") : this.classList.remove("debug") : e === "url" && i && this._initialized ? this.loadFromUrl(i) : e === "schema" && i && this.loadSchema(i);
|
|
@@ -48340,7 +48340,9 @@ class R4 extends HTMLElement {
|
|
|
48340
48340
|
a = await i.text();
|
|
48341
48341
|
else
|
|
48342
48342
|
throw new Error(`Unsupported content type: ${s}`);
|
|
48343
|
-
return t && this.editor && (this.content = a),
|
|
48343
|
+
return t && this.editor && (this.content = a), this.metadata = {
|
|
48344
|
+
name: e.split("/").pop()
|
|
48345
|
+
}, a;
|
|
48344
48346
|
} catch (i) {
|
|
48345
48347
|
console.error("Error loading content from URL:", i), document.dispatchEvent(new CustomEvent("jinn-toast", {
|
|
48346
48348
|
detail: {
|