wrec 0.38.0 → 0.39.1
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.
|
@@ -410,7 +410,7 @@ var X = class e extends m {
|
|
|
410
410
|
}
|
|
411
411
|
disconnectedCallback() {
|
|
412
412
|
for (let { unsubscribe: e } of this.#f.values()) e();
|
|
413
|
-
this.#r.clear(), this.#o
|
|
413
|
+
this.#r.clear(), this.#o = {}, this.#c.clear(), this.#l.clear(), this.#f.clear();
|
|
414
414
|
}
|
|
415
415
|
dispatch(e, t) {
|
|
416
416
|
this.dispatchEvent(new CustomEvent(e, {
|
package/dist/wrec-ssr.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./wrec-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./wrec-s0eHVxHE.js";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (e && (t = e(e = 0)), t), u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t) => {
|
|
3
|
+
var a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (e && (t = e(e = 0)), t), u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), d = (e, t) => {
|
|
4
4
|
let n = {};
|
|
5
5
|
for (var r in e) a(n, r, {
|
|
6
6
|
get: e[r],
|
|
@@ -8466,7 +8466,8 @@ var G, K, ve, q, J, ye = l((() => {
|
|
|
8466
8466
|
return this.childNodes = this.childNodes.filter((t) => t !== e), this;
|
|
8467
8467
|
}
|
|
8468
8468
|
exchangeChild(e, t) {
|
|
8469
|
-
|
|
8469
|
+
let n = this.childNodes;
|
|
8470
|
+
return this.childNodes = n.map((n) => n === e ? t : n), this;
|
|
8470
8471
|
}
|
|
8471
8472
|
get tagName() {
|
|
8472
8473
|
return this.rawTagName ? this.rawTagName.toUpperCase() : this.rawTagName;
|
|
@@ -8493,7 +8494,8 @@ var G, K, ve, q, J, ye = l((() => {
|
|
|
8493
8494
|
return d(this.rawText);
|
|
8494
8495
|
}
|
|
8495
8496
|
set textContent(e) {
|
|
8496
|
-
|
|
8497
|
+
let t = [new l.default(e, this)];
|
|
8498
|
+
this.childNodes = t;
|
|
8497
8499
|
}
|
|
8498
8500
|
get text() {
|
|
8499
8501
|
return d(this.rawText);
|
|
@@ -8578,16 +8580,18 @@ var G, K, ve, q, J, ye = l((() => {
|
|
|
8578
8580
|
}
|
|
8579
8581
|
removeWhitespace() {
|
|
8580
8582
|
let e = 0;
|
|
8581
|
-
|
|
8583
|
+
this.childNodes.forEach((t) => {
|
|
8582
8584
|
if (t.nodeType === u.default.TEXT_NODE) {
|
|
8583
8585
|
if (t.isWhitespace) return;
|
|
8584
8586
|
t.rawText = t.trimmedRawText;
|
|
8585
8587
|
} else t.nodeType === u.default.ELEMENT_NODE && t.removeWhitespace();
|
|
8586
8588
|
this.childNodes[e++] = t;
|
|
8587
|
-
}), this.childNodes.length = e
|
|
8589
|
+
}), this.childNodes.length = e;
|
|
8590
|
+
let t = Object.keys(this.rawAttributes).map((e) => {
|
|
8588
8591
|
let t = this.rawAttributes[e];
|
|
8589
8592
|
return `${e}=${JSON.stringify(t)}`;
|
|
8590
|
-
}).join(" ")
|
|
8593
|
+
}).join(" ");
|
|
8594
|
+
return this.rawAttrs = t, delete this._rawAttrs, this;
|
|
8591
8595
|
}
|
|
8592
8596
|
querySelectorAll(e) {
|
|
8593
8597
|
return (0, n.selectAll)(e, this, {
|
package/dist/wrec.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./wrec-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./wrec-s0eHVxHE.js";
|
|
2
2
|
export { i as Wrec, e as WrecState, n as createElement, r as css, t as html };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "wrec",
|
|
3
3
|
"description": "a library that greatly simplifies building web components",
|
|
4
4
|
"author": "R. Mark Volkmann",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.39.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@playwright/test": "^1.59.1",
|
|
59
59
|
"@types/node": "^25.5.2",
|
|
60
60
|
"get-port": "^7.2.0",
|
|
61
|
+
"jsdom": "^29.0.2",
|
|
61
62
|
"oxlint": "^1.58.0",
|
|
62
63
|
"vite": "^8.0.3",
|
|
63
64
|
"vite-plugin-dts": "^4.5.4"
|