@jasonshimmy/custom-elements-runtime 0.0.8 → 0.0.9-beta.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/custom-elements-runtime.cjs.js +2 -2
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +15 -17
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +2 -2
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/dist/router.d.ts +0 -16
- package/dist/runtime.d.ts +24 -1
- package/package.json +1 -1
|
@@ -903,11 +903,7 @@ function st(t) {
|
|
|
903
903
|
resolveRouteComponent: rt
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
|
-
function pt(t) {
|
|
907
|
-
const e = st(t);
|
|
908
|
-
return typeof window < "u" && (window.__routerInstance = e), e;
|
|
909
|
-
}
|
|
910
|
-
function mt(t, e) {
|
|
906
|
+
function pt(t, e) {
|
|
911
907
|
return b(t, e);
|
|
912
908
|
}
|
|
913
909
|
function $(t, e) {
|
|
@@ -952,7 +948,7 @@ function $(t, e) {
|
|
|
952
948
|
return s = l(o), s;
|
|
953
949
|
}
|
|
954
950
|
const _ = [];
|
|
955
|
-
function
|
|
951
|
+
function mt(t) {
|
|
956
952
|
_.push(t);
|
|
957
953
|
}
|
|
958
954
|
function A(t, e = /* @__PURE__ */ new WeakSet()) {
|
|
@@ -1545,14 +1541,16 @@ function it(t, e) {
|
|
|
1545
1541
|
const l = c;
|
|
1546
1542
|
typeof customElements < "u" && !customElements.get(t) && (window.__componentRegistry = window.__componentRegistry || {}, window.__componentRegistry[t] = e, customElements.define(t, l));
|
|
1547
1543
|
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}
|
|
1544
|
+
function yt(t) {
|
|
1545
|
+
const e = st(t);
|
|
1546
|
+
return it("router-view", {
|
|
1547
|
+
template: (n, r) => {
|
|
1548
|
+
if (!e) return "<div>Router not initialized.</div>";
|
|
1549
|
+
const o = e.getCurrent(), { path: s } = o, i = e.matchRoute(s);
|
|
1550
|
+
return i.route ? `<${i.route.component}></${i.route.component}>` : "<div>Not found</div>";
|
|
1551
|
+
}
|
|
1552
|
+
}), e;
|
|
1553
|
+
}
|
|
1556
1554
|
export {
|
|
1557
1555
|
j as Store,
|
|
1558
1556
|
ut as classes,
|
|
@@ -1566,9 +1564,9 @@ export {
|
|
|
1566
1564
|
at as generateHydrationScript,
|
|
1567
1565
|
N as getVNodeKey,
|
|
1568
1566
|
ct as html,
|
|
1569
|
-
|
|
1567
|
+
yt as initRouter,
|
|
1570
1568
|
O as isPromise,
|
|
1571
|
-
|
|
1569
|
+
pt as matchRouteSSR,
|
|
1572
1570
|
g as mountVNode,
|
|
1573
1571
|
et as parseVNodeFromHTML,
|
|
1574
1572
|
M as patchVNode,
|
|
@@ -1582,6 +1580,6 @@ export {
|
|
|
1582
1580
|
Q as updateCompiledTemplate,
|
|
1583
1581
|
X as useDataModel,
|
|
1584
1582
|
st as useRouter,
|
|
1585
|
-
|
|
1583
|
+
mt as useRuntimePlugin
|
|
1586
1584
|
};
|
|
1587
1585
|
//# sourceMappingURL=custom-elements-runtime.es.js.map
|