Comparing version 2.7.5 to 2.7.6
@@ -126,8 +126,8 @@ import { isAtom as G, atom as Z, RxList as F, RxSet as re, RxMap as ne, autorun as fe, Notifier as se, isReactive as Ae, reactive as Ce, ReactiveEffect as xe, computed as de, destroyComputed as pe, TrackOpTypes as ie, TriggerOpTypes as q } from "data0"; | ||
const { _isSVG: n, ref: s, detachStyle: i, children: o, ...a } = e || {}; | ||
if (typeof t != "string" && t !== V) { | ||
if (typeof t != "string" && t !== D) { | ||
const f = r.length ? r : o || []; | ||
return { type: t, props: e || {}, children: f }; | ||
} | ||
const c = t === V ? document.createDocumentFragment() : n ? document.createElementNS("http://www.w3.org/2000/svg", t) : document.createElement(t), h = [], m = [], u = [], d = [], p = r.length ? r : o || []; | ||
if (t !== V && p.length === 1 && (typeof p[0] == "string" || typeof p[0] == "number")) | ||
const c = t === D ? document.createDocumentFragment() : n ? document.createElementNS("http://www.w3.org/2000/svg", t) : document.createElement(t), h = [], m = [], u = [], d = [], p = r.length ? r : o || []; | ||
if (t !== D && p.length === 1 && (typeof p[0] == "string" || typeof p[0] == "number")) | ||
c.textContent = p[0].toString(); | ||
@@ -189,3 +189,3 @@ else if (p.length) { | ||
}; | ||
function V() { | ||
function D() { | ||
} | ||
@@ -258,6 +258,6 @@ function te(t) { | ||
} | ||
function Dt(t, { children: e, ...r }) { | ||
function Vt(t, { children: e, ...r }) { | ||
return b(t, r, [e]); | ||
} | ||
function Vt(t, { children: e, ...r }) { | ||
function Dt(t, { children: e, ...r }) { | ||
return Array.isArray(e) ? b(t, r, e) : b(t, r, e ? [e] : []); | ||
@@ -353,5 +353,5 @@ } | ||
zeroValue: [] | ||
}), De = { | ||
}), Ve = { | ||
zeroValue: "" | ||
}, Ve = P("string", De), Fe = { | ||
}, De = P("string", Ve), Fe = { | ||
stringify(t) { | ||
@@ -455,3 +455,3 @@ return t.toString(); | ||
const I = { | ||
string: Ve, | ||
string: De, | ||
number: _e, | ||
@@ -572,3 +572,3 @@ object: ze, | ||
const [r, ...n] = t; | ||
return `${(r == null ? void 0 : r.type.name.toString()) ?? "GLOBAL"}${(r == null ? void 0 : r.typeId) ?? ""}P${n.map((s) => s.pathContext.elementPath.join("_")).concat(e.join("_")).join("-")}`; | ||
return `${(r == null ? void 0 : r.type.name.toString().replace(/^\$/, "_")) ?? "GLOBAL"}${(r == null ? void 0 : r.typeId) ?? ""}P${n.map((i) => i.pathContext.elementPath.join("_")).concat(e.join("_")).join("-")}`; | ||
} | ||
@@ -749,6 +749,6 @@ function yt(t) { | ||
await Promise.all([ | ||
...a.map((h) => D(h, "transitionrun")), | ||
...a.map((h) => D(h, "transitionend")), | ||
...c.map((h) => D(h, "animationrun")), | ||
...c.map((h) => D(h, "animationend")) | ||
...a.map((h) => V(h, "transitionrun")), | ||
...a.map((h) => V(h, "transitionend")), | ||
...c.map((h) => V(h, "animationrun")), | ||
...c.map((h) => V(h, "animationend")) | ||
]); | ||
@@ -762,3 +762,3 @@ } | ||
let Y = z; | ||
function D(t, e) { | ||
function V(t, e) { | ||
return new Promise((r) => { | ||
@@ -911,3 +911,3 @@ t.addEventListener(e, r, { once: !0 }); | ||
this.element !== this.placeholder && A(!1, "should never rerender"), this.renderContext = { | ||
Fragment: V, | ||
Fragment: D, | ||
createElement: this.createElement, | ||
@@ -1415,3 +1415,3 @@ createSVGElement: this.createSVGElement, | ||
const s = (i) => { | ||
if (!t()) | ||
if (i.button !== 0 || !t()) | ||
return; | ||
@@ -1477,3 +1477,3 @@ const o = { clientX: i.clientX, offsetX: 0, clientY: i.clientY, offsetY: 0 }, a = (c) => { | ||
Rt as FormContext, | ||
V as Fragment, | ||
D as Fragment, | ||
or as ModalContext, | ||
@@ -1504,4 +1504,4 @@ At as N_ATTR, | ||
gt as isOverwrite, | ||
Dt as jsx, | ||
Vt as jsxDEV, | ||
Vt as jsx, | ||
Dt as jsxDEV, | ||
jt as jsxs, | ||
@@ -1508,0 +1508,0 @@ yt as markOverwrite, |
{ | ||
"name": "axii", | ||
"version": "2.7.5", | ||
"version": "2.7.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
528763