wrec 0.35.4 → 0.36.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.
|
@@ -252,7 +252,7 @@ function K(e, t, n) {
|
|
|
252
252
|
}
|
|
253
253
|
function q(e, t, n) {
|
|
254
254
|
let [r] = t.split(":");
|
|
255
|
-
e instanceof CSSStyleRule ? e.style.setProperty(r, n) : (K(e, r, n), r === "value" && V(e) && (e.value = n));
|
|
255
|
+
e instanceof CSSStyleRule ? e.style.getPropertyValue(r) !== n && e.style.setProperty(r, n) : (K(e, r, n), r === "value" && V(e) && e.value !== n && (e.value = n));
|
|
256
256
|
}
|
|
257
257
|
var J = (e) => typeof e == "string" ? [e] : e;
|
|
258
258
|
async function Y(e) {
|
|
@@ -755,7 +755,12 @@ var X = class e extends m {
|
|
|
755
755
|
let r = typeof t;
|
|
756
756
|
r !== "string" && r !== "number" && this.#V(e, void 0, " computed content is not a string or number");
|
|
757
757
|
let i = String(t);
|
|
758
|
-
e instanceof HTMLElement && B(e)
|
|
758
|
+
if (e instanceof HTMLElement && B(e)) e.value !== i && (e.value = i);
|
|
759
|
+
else if (n && r === "string" && i.trim().startsWith("<")) {
|
|
760
|
+
let t = d(i);
|
|
761
|
+
if (e.innerHTML === t) return;
|
|
762
|
+
e.innerHTML = t, this.#te(e), this.#M(e);
|
|
763
|
+
} else n && e.textContent !== i && (e.textContent = i);
|
|
759
764
|
}
|
|
760
765
|
#J(e, t) {
|
|
761
766
|
let n = this.#c.get(e);
|
package/dist/wrec-ssr.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-CPzbCpSN.js";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
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) => {
|
|
4
4
|
let n = {};
|
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-CPzbCpSN.js";
|
|
2
2
|
export { i as Wrec, e as WrecState, n as createElement, r as css, t as html };
|