defuss 2.1.11 → 3.2.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/component-registry-CPBzgkm2.cjs +20 -0
- package/dist/component-registry-rwX6GHzq.mjs +15 -0
- package/dist/dom--qQgTXnx.mjs +2603 -0
- package/dist/dom-0JFHc2kn.cjs +2810 -0
- package/dist/dom-4vhaViIf.mjs +2801 -0
- package/dist/dom-5V9JcMrR.mjs +2695 -0
- package/dist/dom-B0lpSx0p.mjs +2604 -0
- package/dist/dom-B0mZwIcb.cjs +2859 -0
- package/dist/dom-B4MQngSF.cjs +2782 -0
- package/dist/dom-B58Ij3VD.cjs +2907 -0
- package/dist/dom-B5zbx-3T.mjs +2810 -0
- package/dist/dom-B6fFOlKv.cjs +2898 -0
- package/dist/dom-B7UqtWqL.cjs +2814 -0
- package/dist/dom-BDL4winW.cjs +2892 -0
- package/dist/dom-BHi3SKvU.mjs +2595 -0
- package/dist/dom-BMSWQp9d.cjs +2899 -0
- package/dist/dom-BOjwen4W.cjs +2894 -0
- package/dist/dom-BSXG5cMV.mjs +2678 -0
- package/dist/dom-BUUPuzZG.cjs +2681 -0
- package/dist/dom-BW8oGJV-.cjs +2890 -0
- package/dist/dom-B_g5muLk.mjs +2798 -0
- package/dist/dom-Ba8Rmsy6.mjs +2557 -0
- package/dist/dom-BaaPAgsv.mjs +2569 -0
- package/dist/dom-Bb17xYzx.mjs +2599 -0
- package/dist/dom-BcW3GkDu.cjs +2897 -0
- package/dist/dom-BfqchTxj.mjs +2696 -0
- package/dist/dom-Bg0Eqh-g.cjs +2718 -0
- package/dist/dom-Bi5Eowqw.cjs +2728 -0
- package/dist/dom-BjFpmoeW.mjs +2818 -0
- package/dist/dom-BjwVMyGv.mjs +2644 -0
- package/dist/dom-Bjy_d0D1.mjs +2652 -0
- package/dist/dom-BkrsFnv4.mjs +2719 -0
- package/dist/dom-Bl9sFsMf.mjs +2797 -0
- package/dist/dom-BpugjT-d.cjs +2764 -0
- package/dist/dom-BzcdRPS7.cjs +2676 -0
- package/dist/dom-C1Dv_k31.cjs +2831 -0
- package/dist/dom-C2miKN96.cjs +2887 -0
- package/dist/dom-C3iIctYx.cjs +2602 -0
- package/dist/dom-C6c71RsI.cjs +2892 -0
- package/dist/dom-C6qPzZDU.mjs +2526 -0
- package/dist/dom-C91wPWgb.mjs +2587 -0
- package/dist/dom-CEEtTZJb.cjs +2891 -0
- package/dist/dom-CG8ZC5zA.cjs +2645 -0
- package/dist/dom-CHfN0q0-.cjs +2805 -0
- package/dist/dom-CLpZk5Ok.cjs +2890 -0
- package/dist/dom-CMwQ9pmp.cjs +2767 -0
- package/dist/dom-COTHhb5r.mjs +2634 -0
- package/dist/dom-CRRoa52F.mjs +2805 -0
- package/dist/dom-CUHgK6d1.mjs +2807 -0
- package/dist/dom-CfCTjzif.mjs +2803 -0
- package/dist/dom-Cg17fK2D.mjs +2490 -0
- package/dist/dom-CjffEyZp.mjs +2809 -0
- package/dist/dom-Cn7eypGU.cjs +2898 -0
- package/dist/dom-CoBIe6TZ.mjs +2685 -0
- package/dist/dom-Cr99biSm.mjs +2795 -0
- package/dist/dom-CuPnZIwb.mjs +2803 -0
- package/dist/dom-CyaFGBis.cjs +2897 -0
- package/dist/dom-CzDaYcdd.cjs +2896 -0
- package/dist/dom-D-M2CWHK.cjs +2805 -0
- package/dist/dom-D00lHhSQ.cjs +2887 -0
- package/dist/dom-DA76MFiR.mjs +2808 -0
- package/dist/dom-DCxc_aGE.mjs +2634 -0
- package/dist/dom-DDB7B6E0.mjs +2801 -0
- package/dist/dom-DDtrH45u.cjs +2673 -0
- package/dist/dom-DKZZG5RP.mjs +2798 -0
- package/dist/dom-DOswyRty.mjs +2681 -0
- package/dist/dom-DQiJQigd.cjs +2890 -0
- package/dist/dom-DRUJMjpd.cjs +2736 -0
- package/dist/dom-DU3JvIZO.cjs +2886 -0
- package/dist/dom-DWDVSwjd.cjs +2566 -0
- package/dist/dom-D_3LE_Qi.mjs +2722 -0
- package/dist/dom-DbhNF_Km.cjs +2665 -0
- package/dist/dom-Deh17qfR.mjs +2795 -0
- package/dist/dom-DfIL_s0t.mjs +2634 -0
- package/dist/dom-DhzvIchP.cjs +2680 -0
- package/dist/dom-DjEOa9GM.mjs +2801 -0
- package/dist/dom-DqWHLuln.cjs +2763 -0
- package/dist/dom-Dw0cUaXk.cjs +2717 -0
- package/dist/dom-FaIf556X.mjs +2801 -0
- package/dist/dom-Kdtm5aoM.mjs +2798 -0
- package/dist/dom-O2cdv0jV.cjs +2887 -0
- package/dist/dom-YfFA0iKZ.mjs +2726 -0
- package/dist/dom-YpZtMxDS.cjs +2783 -0
- package/dist/dom-YuuCUzeb.mjs +2744 -0
- package/dist/dom-_naqXmaM.mjs +2677 -0
- package/dist/dom-iQGpbrON.cjs +2718 -0
- package/dist/dom-j57Lsb1X.cjs +2884 -0
- package/dist/dom-jKUS5flE.mjs +2771 -0
- package/dist/dom-khd7HASe.cjs +2771 -0
- package/dist/dom-lEWdDKb4.mjs +2718 -0
- package/dist/dom-mA0CVs3o.mjs +2809 -0
- package/dist/dom-mt5spBGS.cjs +2634 -0
- package/dist/dom-rjEgJGTC.cjs +2806 -0
- package/dist/dom-smXiaXEP.mjs +2718 -0
- package/dist/dom-wcIpcL6F.mjs +2807 -0
- package/dist/dom-xtwhQmkx.cjs +2884 -0
- package/dist/dom-xu1m78jm.mjs +2808 -0
- package/dist/index-B4BHyohJ.d.ts +1536 -0
- package/dist/index-BDnHS4Fq.d.ts +1425 -0
- package/dist/index-BENswTvz.d.ts +1505 -0
- package/dist/index-BFHuQ4xu.d.ts +1435 -0
- package/dist/index-BM5mxtvJ.d.ts +1543 -0
- package/dist/index-BOHKDFwH.d.ts +1435 -0
- package/dist/index-BRnR4FIe.d.ts +1436 -0
- package/dist/index-B_mKPzYo.d.ts +1578 -0
- package/dist/index-BctcSoO5.d.ts +1576 -0
- package/dist/index-BfvJsCS_.d.ts +1426 -0
- package/dist/index-BhNZrSrs.d.ts +1352 -0
- package/dist/index-Bi8j-_h_.d.cts +1488 -0
- package/dist/index-Bi8j-_h_.d.ts +1488 -0
- package/dist/index-BkobKBZk.d.ts +1430 -0
- package/dist/index-Bu2vwaJ2.d.ts +1352 -0
- package/dist/index-BvvZRMKD.d.ts +1569 -0
- package/dist/index-C1AAn__7.d.ts +1433 -0
- package/dist/index-C6Eg-vsd.d.ts +1424 -0
- package/dist/index-C6OhaPcR.d.ts +1433 -0
- package/dist/index-CCeP2S3d.d.ts +1434 -0
- package/dist/index-CEIsFrMM.d.ts +1542 -0
- package/dist/index-CFDpKGh7.d.ts +1428 -0
- package/dist/index-CFrYY_Mt.d.ts +1436 -0
- package/dist/index-CGDnSWTS.d.ts +1527 -0
- package/dist/index-CKwxYOvH.d.ts +1437 -0
- package/dist/index-CLBqO3Y7.d.ts +1544 -0
- package/dist/index-CRsLiENw.d.ts +1436 -0
- package/dist/index-CTjaPtOu.d.ts +1544 -0
- package/dist/index-CWP_xArI.d.ts +1433 -0
- package/dist/index-CZunST0r.d.ts +1436 -0
- package/dist/index-CeqDyZsK.d.ts +1436 -0
- package/dist/index-CiDj5eUV.d.ts +1576 -0
- package/dist/index-CidSP07o.d.ts +1361 -0
- package/dist/index-Cj_9DtdX.d.ts +1436 -0
- package/dist/index-Cm1e5jei.d.ts +1436 -0
- package/dist/index-CnQ2vhtJ.d.ts +1563 -0
- package/dist/index-CpkEL1jH.d.ts +1569 -0
- package/dist/index-Cq5d1Zz3.d.ts +1437 -0
- package/dist/index-CuCNTbJn.d.ts +1503 -0
- package/dist/index-CxFq13gU.d.ts +1352 -0
- package/dist/index-D5dNz_3e.d.ts +1571 -0
- package/dist/index-D5yYZNhb.d.ts +1428 -0
- package/dist/index-D64A9cbc.d.ts +1428 -0
- package/dist/index-DE8BSmm3.d.ts +1575 -0
- package/dist/index-DG6bq7_g.d.ts +1436 -0
- package/dist/index-DHy5_GN-.d.ts +1437 -0
- package/dist/index-DTegsEZx.d.ts +1435 -0
- package/dist/index-DXx9mqPm.d.ts +1352 -0
- package/dist/index-DbOTogCX.d.ts +1435 -0
- package/dist/index-DfXUO0lq.d.ts +1352 -0
- package/dist/index-DirmTpEb.d.ts +1352 -0
- package/dist/index-DnUO13Ql.d.ts +1365 -0
- package/dist/index-DqFnifuO.d.ts +1576 -0
- package/dist/index-DsAkAm0h.d.ts +1429 -0
- package/dist/index-DsDkGdbl.d.ts +1352 -0
- package/dist/index-DugBnSpg.d.ts +1439 -0
- package/dist/index-DyF8SurV.d.ts +1437 -0
- package/dist/index-VAwbjQuD.d.ts +1436 -0
- package/dist/index-VRdwaTq1.d.ts +1544 -0
- package/dist/index-WJDLtNz6.d.ts +1437 -0
- package/dist/index-XHQiCZJu.d.ts +1344 -0
- package/dist/index-YGI08ZC3.d.ts +1435 -0
- package/dist/index-YlvmjCMz.d.ts +1574 -0
- package/dist/index-_R_iWuBk.d.ts +1435 -0
- package/dist/index-bKRdI8Js.d.ts +1544 -0
- package/dist/index-sdb3nXP9.d.ts +1436 -0
- package/dist/index-u8kUqFhR.d.ts +1442 -0
- package/dist/index-uCL6lDoN.d.ts +1365 -0
- package/dist/index-wMtGrbTW.d.ts +1435 -0
- package/dist/index-wmq1KsvF.d.ts +1523 -0
- package/dist/index.cjs +298 -92
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +198 -35
- package/dist/index.mjs +277 -94
- package/dist/mount--bdP_py-.cjs +27 -0
- package/dist/mount-5mGNlNE0.cjs +29 -0
- package/dist/mount-9aJ90VEy.cjs +29 -0
- package/dist/mount-B-nSxYMI.cjs +29 -0
- package/dist/mount-B1ZGm6Vx.mjs +26 -0
- package/dist/mount-B268CIyG.mjs +26 -0
- package/dist/mount-B7ZORKUE.mjs +26 -0
- package/dist/mount-BDMCcckP.mjs +26 -0
- package/dist/mount-BFwjtKGf.mjs +23 -0
- package/dist/mount-BIX7Q5ve.cjs +29 -0
- package/dist/mount-BIjY0oQo.cjs +29 -0
- package/dist/mount-BJ2d7Snl.cjs +29 -0
- package/dist/mount-BJUfLVrn.cjs +27 -0
- package/dist/mount-BL3IoYf-.cjs +29 -0
- package/dist/mount-BLgGRFKO.mjs +26 -0
- package/dist/mount-BPdF-23b.mjs +26 -0
- package/dist/mount-BREA5x3R.mjs +26 -0
- package/dist/mount-BSj7I235.cjs +29 -0
- package/dist/mount-BSqj-PWe.cjs +26 -0
- package/dist/mount-B_MohJp1.mjs +24 -0
- package/dist/mount-BhJaAQYc.cjs +29 -0
- package/dist/mount-BmhdXDtN.mjs +26 -0
- package/dist/mount-Bn8gK_5W.mjs +26 -0
- package/dist/mount-BnITFgq_.mjs +26 -0
- package/dist/mount-BoeMXBAs.cjs +29 -0
- package/dist/mount-BsWXMcQo.mjs +26 -0
- package/dist/mount-BvArK3iG.cjs +26 -0
- package/dist/mount-Bw7-xmEB.mjs +24 -0
- package/dist/mount-BwNr0Cw7.cjs +29 -0
- package/dist/mount-C1WHPtGU.mjs +26 -0
- package/dist/mount-C6Wj_FWd.cjs +29 -0
- package/dist/mount-C7-zVnHp.mjs +26 -0
- package/dist/mount-C99AnUyn.mjs +24 -0
- package/dist/mount-CC8_T-gT.cjs +29 -0
- package/dist/mount-CE1mUC04.cjs +27 -0
- package/dist/mount-CGOXBqpC.cjs +29 -0
- package/dist/mount-CJGmuyD_.cjs +29 -0
- package/dist/mount-COdfKsz3.mjs +26 -0
- package/dist/mount-CTXA2JwJ.cjs +29 -0
- package/dist/mount-CVcZv8p4.mjs +24 -0
- package/dist/mount-CY2jiisH.cjs +27 -0
- package/dist/mount-C_THF3G-.mjs +26 -0
- package/dist/mount-CgYRpExe.mjs +24 -0
- package/dist/mount-CiSuPb2d.cjs +29 -0
- package/dist/mount-CjvdhG7D.mjs +24 -0
- package/dist/mount-Ck4Sw7qu.cjs +29 -0
- package/dist/mount-CkBH-ziv.mjs +26 -0
- package/dist/mount-Cl5bq4AK.mjs +26 -0
- package/dist/mount-CnRlxDvH.cjs +26 -0
- package/dist/mount-Cnhy4x8j.cjs +29 -0
- package/dist/mount-CofCsKEL.cjs +27 -0
- package/dist/mount-CuZ9kuJ_.cjs +29 -0
- package/dist/mount-Cz18Dqhg.cjs +29 -0
- package/dist/mount-CzoPJJ3U.cjs +29 -0
- package/dist/mount-D-08N9KC.mjs +26 -0
- package/dist/mount-D-RpVmv-.cjs +27 -0
- package/dist/mount-D0wRLhsJ.mjs +23 -0
- package/dist/mount-DBHsNvGL.mjs +24 -0
- package/dist/mount-DE_6OU5O.cjs +27 -0
- package/dist/mount-DFrJC1Ee.mjs +26 -0
- package/dist/mount-DRpQI95j.mjs +26 -0
- package/dist/mount-DaS_nGtr.cjs +26 -0
- package/dist/mount-DbFi8R0Q.mjs +26 -0
- package/dist/mount-DeqZS1eY.mjs +26 -0
- package/dist/mount-DetJmqRg.mjs +26 -0
- package/dist/mount-DhMUtUgA.cjs +29 -0
- package/dist/mount-DlsFpu0l.mjs +26 -0
- package/dist/mount-DmThSQhX.mjs +26 -0
- package/dist/mount-DpCAhV34.cjs +29 -0
- package/dist/mount-DqMUI3Li.cjs +29 -0
- package/dist/mount-DrvT4c9H.mjs +23 -0
- package/dist/mount-DyrgmigG.mjs +26 -0
- package/dist/mount-E-PFWZoH.cjs +29 -0
- package/dist/mount-EbSuNkcp.cjs +29 -0
- package/dist/mount-FGWwjyl3.mjs +23 -0
- package/dist/mount-NvaShFIJ.mjs +24 -0
- package/dist/mount-OwEsrEgH.mjs +26 -0
- package/dist/mount-OzbDDNzG.cjs +29 -0
- package/dist/mount-TA9rAjfX.mjs +26 -0
- package/dist/mount-Ta6JNwOd.cjs +29 -0
- package/dist/mount-WayWo_Wo.cjs +29 -0
- package/dist/mount-cbdw4Rn8.mjs +26 -0
- package/dist/mount-euC2wM_H.mjs +26 -0
- package/dist/mount-gY0N84Yl.cjs +29 -0
- package/dist/mount-j5GGTHgL.mjs +26 -0
- package/dist/mount-lrm6DtLS.cjs +29 -0
- package/dist/mount-mI6oAeYn.mjs +26 -0
- package/dist/mount-qXpzCgOn.cjs +27 -0
- package/dist/mount-s4KN8Ng-.mjs +26 -0
- package/dist/mount-wMBAOpuQ.mjs +26 -0
- package/dist/mount-yB4RTAZ9.cjs +29 -0
- package/dist/mount-zEZORNEX.mjs +26 -0
- package/dist/mount-zk9YB0XU.cjs +29 -0
- package/dist/render/client.cjs +28 -11
- package/dist/render/client.d.ts +4 -4
- package/dist/render/client.mjs +13 -13
- package/dist/render/dev/index.cjs +4 -1
- package/dist/render/dev/index.d.ts +2 -3
- package/dist/render/dev/index.mjs +1 -1
- package/dist/render/index.cjs +20 -1
- package/dist/render/index.d.cts +76 -1
- package/dist/render/index.d.ts +88 -3
- package/dist/render/index.mjs +2 -1
- package/dist/render/server.cjs +19 -1
- package/dist/render/server.d.ts +4 -4
- package/dist/render/server.mjs +3 -2
- package/package.json +19 -11
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, o as observeUnmount } from './dom-B0lpSx0p.mjs';
|
|
2
|
+
import { registerComponent, unregisterComponent } from './component-registry-rwX6GHzq.mjs';
|
|
3
|
+
|
|
4
|
+
function mount(container, Component, initialProps) {
|
|
5
|
+
const vnode = Component(initialProps);
|
|
6
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
7
|
+
registerComponent(
|
|
8
|
+
container,
|
|
9
|
+
Component,
|
|
10
|
+
{ ...initialProps }
|
|
11
|
+
);
|
|
12
|
+
if (container.parentNode) {
|
|
13
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
14
|
+
}
|
|
15
|
+
return container;
|
|
16
|
+
}
|
|
17
|
+
function unmount(container) {
|
|
18
|
+
unregisterComponent(container);
|
|
19
|
+
while (container.firstChild) {
|
|
20
|
+
container.removeChild(container.firstChild);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { J as renderIsomorphicSync, z as registerComponent, w as observeUnmount, K as unregisterComponent } from './dom-BjFpmoeW.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-D-M2CWHK.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { J as renderIsomorphicSync, z as registerComponent, w as observeUnmount, K as unregisterComponent } from './dom-B5zbx-3T.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-BDL4winW.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-B58Ij3VD.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { J as renderIsomorphicSync, z as registerComponent, w as observeUnmount, K as unregisterComponent } from './dom-CUHgK6d1.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, H as registerComponent, o as observeUnmount, I as unregisterComponent } from './dom-BSXG5cMV.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-BcW3GkDu.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, J as registerComponent, o as observeUnmount, K as unregisterComponent } from './dom-jKUS5flE.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-Bi5Eowqw.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, H as registerComponent, o as observeUnmount, I as unregisterComponent } from './dom-DOswyRty.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-DbhNF_Km.cjs');
|
|
4
|
+
var componentRegistry = require('./component-registry-CPBzgkm2.cjs');
|
|
5
|
+
|
|
6
|
+
function mount(container, Component, initialProps) {
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
componentRegistry.registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
dom.observeUnmount(container, () => componentRegistry.unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
componentRegistry.unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.mount = mount;
|
|
27
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, J as registerComponent, o as observeUnmount, K as unregisterComponent } from './dom-Bl9sFsMf.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, H as registerComponent, o as observeUnmount, I as unregisterComponent } from './dom-_naqXmaM.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-B6fFOlKv.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as renderIsomorphicSync, H as registerComponent, o as observeUnmount, I as unregisterComponent } from './dom-CoBIe6TZ.mjs';
|
|
2
|
+
|
|
3
|
+
function mount(container, Component, initialProps) {
|
|
4
|
+
while (container.firstChild) {
|
|
5
|
+
container.removeChild(container.firstChild);
|
|
6
|
+
}
|
|
7
|
+
const vnode = Component(initialProps);
|
|
8
|
+
renderIsomorphicSync(vnode, container, globalThis);
|
|
9
|
+
registerComponent(
|
|
10
|
+
container,
|
|
11
|
+
Component,
|
|
12
|
+
{ ...initialProps }
|
|
13
|
+
);
|
|
14
|
+
if (container.parentNode) {
|
|
15
|
+
observeUnmount(container, () => unregisterComponent(container));
|
|
16
|
+
}
|
|
17
|
+
return container;
|
|
18
|
+
}
|
|
19
|
+
function unmount(container) {
|
|
20
|
+
unregisterComponent(container);
|
|
21
|
+
while (container.firstChild) {
|
|
22
|
+
container.removeChild(container.firstChild);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { mount as m, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dom = require('./dom-CyaFGBis.cjs');
|
|
4
|
+
|
|
5
|
+
function mount(container, Component, initialProps) {
|
|
6
|
+
while (container.firstChild) {
|
|
7
|
+
container.removeChild(container.firstChild);
|
|
8
|
+
}
|
|
9
|
+
const vnode = Component(initialProps);
|
|
10
|
+
dom.renderIsomorphicSync(vnode, container, globalThis);
|
|
11
|
+
dom.registerComponent(
|
|
12
|
+
container,
|
|
13
|
+
Component,
|
|
14
|
+
{ ...initialProps }
|
|
15
|
+
);
|
|
16
|
+
if (container.parentNode) {
|
|
17
|
+
dom.observeUnmount(container, () => dom.unregisterComponent(container));
|
|
18
|
+
}
|
|
19
|
+
return container;
|
|
20
|
+
}
|
|
21
|
+
function unmount(container) {
|
|
22
|
+
dom.unregisterComponent(container);
|
|
23
|
+
while (container.firstChild) {
|
|
24
|
+
container.removeChild(container.firstChild);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.mount = mount;
|
|
29
|
+
exports.unmount = unmount;
|
package/dist/render/client.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dom = require('../dom-
|
|
3
|
+
var dom = require('../dom-B58Ij3VD.cjs');
|
|
4
|
+
var mount = require('../mount-WayWo_Wo.cjs');
|
|
4
5
|
require('defuss-runtime');
|
|
5
6
|
|
|
6
7
|
const renderSync = (virtualNode, parentDomElement = document.documentElement) => {
|
|
@@ -116,18 +117,17 @@ const hydrate = (nodes, parentElements, debug) => {
|
|
|
116
117
|
}
|
|
117
118
|
for (const key of Object.keys(vnode.attributes)) {
|
|
118
119
|
if (key === "ref") continue;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
120
|
+
const value = vnode.attributes[key];
|
|
121
|
+
if (key === "onMount" || key === "onUnmount" || key === "onmount" || key === "onunmount") continue;
|
|
122
|
+
const parsed = dom.parseEventPropName(key);
|
|
123
|
+
if (!parsed) continue;
|
|
124
|
+
if (typeof value !== "function") continue;
|
|
125
|
+
const { eventType, capture } = parsed;
|
|
126
|
+
if (eventType === "mount" || eventType === "unmount") continue;
|
|
127
|
+
dom.registerDelegatedEvent(element, eventType, value, { capture });
|
|
128
128
|
}
|
|
129
129
|
if (vnode?.attributes?.onUnmount) {
|
|
130
|
-
dom.observeUnmount(element, vnode.attributes.onUnmount);
|
|
130
|
+
dom.observeUnmount(element, () => vnode.attributes.onUnmount(element));
|
|
131
131
|
}
|
|
132
132
|
if (vnode?.children && vnode?.children?.length > 0) {
|
|
133
133
|
hydrate(
|
|
@@ -147,6 +147,7 @@ const hydrate = (nodes, parentElements, debug) => {
|
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
+
exports.CAPTURE_ONLY_EVENTS = dom.CAPTURE_ONLY_EVENTS;
|
|
150
151
|
exports.CLASS_ATTRIBUTE_NAME = dom.CLASS_ATTRIBUTE_NAME;
|
|
151
152
|
exports.DANGEROUSLY_SET_INNER_HTML_ATTRIBUTE = dom.DANGEROUSLY_SET_INNER_HTML_ATTRIBUTE;
|
|
152
153
|
exports.DEFAULT_TRANSITION_CONFIG = dom.DEFAULT_TRANSITION_CONFIG;
|
|
@@ -155,22 +156,38 @@ exports.REF_ATTRIBUTE_NAME = dom.REF_ATTRIBUTE_NAME;
|
|
|
155
156
|
exports.XLINK_ATTRIBUTE_NAME = dom.XLINK_ATTRIBUTE_NAME;
|
|
156
157
|
exports.XMLNS_ATTRIBUTE_NAME = dom.XMLNS_ATTRIBUTE_NAME;
|
|
157
158
|
exports.applyStyles = dom.applyStyles;
|
|
159
|
+
exports.clearDelegatedEvents = dom.clearDelegatedEvents;
|
|
160
|
+
exports.clearDelegatedEventsDeep = dom.clearDelegatedEventsDeep;
|
|
158
161
|
exports.createInPlaceErrorMessageVNode = dom.createInPlaceErrorMessageVNode;
|
|
159
162
|
exports.createRef = dom.createRef;
|
|
163
|
+
exports.getComponentInstance = dom.getComponentInstance;
|
|
164
|
+
exports.getRegisteredEventKeys = dom.getRegisteredEventKeys;
|
|
165
|
+
exports.getRegisteredEventTypes = dom.getRegisteredEventTypes;
|
|
160
166
|
exports.getRenderer = dom.getRenderer;
|
|
161
167
|
exports.getTransitionStyles = dom.getTransitionStyles;
|
|
162
168
|
exports.globalScopeDomApis = dom.globalScopeDomApis;
|
|
163
169
|
exports.handleLifecycleEventsForOnMount = dom.handleLifecycleEventsForOnMount;
|
|
170
|
+
exports.isComponentRoot = dom.isComponentRoot;
|
|
164
171
|
exports.isJSX = dom.isJSX;
|
|
165
172
|
exports.isRef = dom.isRef;
|
|
166
173
|
exports.jsx = dom.jsx;
|
|
167
174
|
exports.jsxDEV = dom.jsxDEV;
|
|
168
175
|
exports.jsxs = dom.jsxs;
|
|
176
|
+
exports.nsMap = dom.nsMap;
|
|
169
177
|
exports.observeUnmount = dom.observeUnmount;
|
|
178
|
+
exports.parseEventPropName = dom.parseEventPropName;
|
|
170
179
|
exports.performTransition = dom.performTransition;
|
|
180
|
+
exports.registerComponent = dom.registerComponent;
|
|
181
|
+
exports.registerDelegatedEvent = dom.registerDelegatedEvent;
|
|
182
|
+
exports.removeDelegatedEvent = dom.removeDelegatedEvent;
|
|
183
|
+
exports.removeDelegatedEventByKey = dom.removeDelegatedEventByKey;
|
|
184
|
+
exports.renderInto = dom.renderInto;
|
|
171
185
|
exports.renderIsomorphicAsync = dom.renderIsomorphicAsync;
|
|
172
186
|
exports.renderIsomorphicSync = dom.renderIsomorphicSync;
|
|
187
|
+
exports.unregisterComponent = dom.unregisterComponent;
|
|
173
188
|
exports.updateDom = dom.updateDom;
|
|
189
|
+
exports.mount = mount.mount;
|
|
190
|
+
exports.unmount = mount.unmount;
|
|
174
191
|
exports.hydrate = hydrate;
|
|
175
192
|
exports.render = render;
|
|
176
193
|
exports.renderSync = renderSync;
|
package/dist/render/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RenderInput, P as
|
|
2
|
-
export { A as AllHTMLElements,
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { W as VNode, R as RenderInput, P as ParentElementInputAsync, a as RenderResult, b as ParentElementInput } from '../index-DnUO13Ql.js';
|
|
2
|
+
export { A as AllHTMLElements, c as AsyncDefussChild, d as AsyncFC, e as AsyncFunctionComponent, C as CLASS_ATTRIBUTE_NAME, f as CSSProperties, g as Children, D as DANGEROUSLY_SET_INNER_HTML_ATTRIBUTE, h as DEFAULT_TRANSITION_CONFIG, i as DOMElement, j as DefussChild, k as DefussChildren, l as DefussClassValue, m as DefussKey, n as DomAbstractionImpl, E as ElementProps, F as FC, o as FontFaceProperties, p as Fragment, q as FunctionComponent, G as Globals, J as JsxRuntimeHookFn, r as JsxSourceInfo, K as KeyFrameProperties, M as Maybe, s as MountHandler, N as NodeType, O as OneOrMany, t as Props, u as REF_ATTRIBUTE_NAME, v as Ref, w as RefUpdateFn, x as RefUpdateRenderFn, y as RefUpdateRenderFnInput, z as RenderNodeInput, B as RenderResultNode, S as SyncRenderInput, H as SyncRenderResult, T as TransitionConfig, I as TransitionStyles, L as TransitionType, Q as TransitionsEasing, U as UnmountHandler, V as VAttributes, X as VNodeAttributes, Y as VNodeChild, Z as VNodeChildren, _ as VNodeKey, $ as VNodeRef, a0 as VNodeRefCallback, a1 as VNodeRefObject, a2 as VNodeType, a3 as XLINK_ATTRIBUTE_NAME, a4 as XMLNS_ATTRIBUTE_NAME, a5 as applyStyles, a6 as createInPlaceErrorMessageVNode, a7 as createRef, a8 as getRenderer, a9 as getTransitionStyles, aa as globalScopeDomApis, ab as handleLifecycleEventsForOnMount, ac as isJSX, ad as isRef, ae as jsx, af as jsxDEV, ag as jsxs, ah as nsMap, ai as observeUnmount, aj as performTransition, ak as renderInto, al as renderIsomorphicAsync, am as renderIsomorphicSync, an as updateDom } from '../index-DnUO13Ql.js';
|
|
3
|
+
export { CAPTURE_ONLY_EVENTS, ComponentInstance, DelegatedEventOptions, DelegatedPhase, ParsedEventProp, clearDelegatedEvents, clearDelegatedEventsDeep, getComponentInstance, getRegisteredEventKeys, getRegisteredEventTypes, isComponentRoot, mount, parseEventPropName, registerComponent, registerDelegatedEvent, removeDelegatedEvent, removeDelegatedEventByKey, unmount, unregisterComponent } from './index.js';
|
|
4
|
+
import 'csstype';
|
|
5
5
|
|
|
6
6
|
declare const renderSync: <T extends RenderInput>(virtualNode: T, parentDomElement?: ParentElementInput) => RenderResult<T>;
|
|
7
7
|
declare const render: <T extends RenderInput>(virtualNode: T | Promise<T>, parentDomElement?: ParentElementInputAsync | any) => Promise<RenderResult<T>>;
|
package/dist/render/client.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { C as CLASS_ATTRIBUTE_NAME, D as DANGEROUSLY_SET_INNER_HTML_ATTRIBUTE,
|
|
1
|
+
import { x as parseEventPropName, A as registerDelegatedEvent, w as observeUnmount, n as globalScopeDomApis, I as renderIsomorphicAsync, J as renderIsomorphicSync } from '../dom-BjFpmoeW.mjs';
|
|
2
|
+
export { C as CAPTURE_ONLY_EVENTS, a as CLASS_ATTRIBUTE_NAME, D as DANGEROUSLY_SET_INNER_HTML_ATTRIBUTE, b as DEFAULT_TRANSITION_CONFIG, F as Fragment, R as REF_ATTRIBUTE_NAME, X as XLINK_ATTRIBUTE_NAME, c as XMLNS_ATTRIBUTE_NAME, d as applyStyles, e as clearDelegatedEvents, f as clearDelegatedEventsDeep, g as createInPlaceErrorMessageVNode, h as createRef, i as getComponentInstance, j as getRegisteredEventKeys, k as getRegisteredEventTypes, l as getRenderer, m as getTransitionStyles, o as handleLifecycleEventsForOnMount, p as isComponentRoot, q as isJSX, r as isRef, s as jsx, t as jsxDEV, u as jsxs, v as nsMap, y as performTransition, z as registerComponent, B as removeDelegatedEvent, E as removeDelegatedEventByKey, H as renderInto, K as unregisterComponent, L as updateDom } from '../dom-BjFpmoeW.mjs';
|
|
3
|
+
export { m as mount, u as unmount } from '../mount-OwEsrEgH.mjs';
|
|
3
4
|
import 'defuss-runtime';
|
|
4
5
|
|
|
5
6
|
const renderSync = (virtualNode, parentDomElement = document.documentElement) => {
|
|
@@ -115,18 +116,17 @@ const hydrate = (nodes, parentElements, debug) => {
|
|
|
115
116
|
}
|
|
116
117
|
for (const key of Object.keys(vnode.attributes)) {
|
|
117
118
|
if (key === "ref") continue;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
119
|
+
const value = vnode.attributes[key];
|
|
120
|
+
if (key === "onMount" || key === "onUnmount" || key === "onmount" || key === "onunmount") continue;
|
|
121
|
+
const parsed = parseEventPropName(key);
|
|
122
|
+
if (!parsed) continue;
|
|
123
|
+
if (typeof value !== "function") continue;
|
|
124
|
+
const { eventType, capture } = parsed;
|
|
125
|
+
if (eventType === "mount" || eventType === "unmount") continue;
|
|
126
|
+
registerDelegatedEvent(element, eventType, value, { capture });
|
|
127
127
|
}
|
|
128
128
|
if (vnode?.attributes?.onUnmount) {
|
|
129
|
-
observeUnmount(element, vnode.attributes.onUnmount);
|
|
129
|
+
observeUnmount(element, () => vnode.attributes.onUnmount(element));
|
|
130
130
|
}
|
|
131
131
|
if (vnode?.children && vnode?.children?.length > 0) {
|
|
132
132
|
hydrate(
|
|
@@ -146,4 +146,4 @@ const hydrate = (nodes, parentElements, debug) => {
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
export { globalScopeDomApis, hydrate, observeUnmount, render, renderIsomorphicAsync, renderIsomorphicSync, renderSync, renderToString };
|
|
149
|
+
export { globalScopeDomApis, hydrate, observeUnmount, parseEventPropName, registerDelegatedEvent, render, renderIsomorphicAsync, renderIsomorphicSync, renderSync, renderToString };
|