aptechka 0.83.1 → 0.84.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/lib/Animation-BAiM6_n1.js +111 -0
- package/lib/Animation-DMWabSR0.cjs +1 -0
- package/lib/Composed-B0fvCtZz.cjs +1 -0
- package/lib/Composed-CgA9lLWA.js +75 -0
- package/lib/Damped-BLo-OAVb.cjs +1 -0
- package/lib/Damped-Dcz5UdMH.js +57 -0
- package/lib/DerivedArray-DFhxap_z.js +63 -0
- package/lib/DerivedArray-DYtWMW0n.cjs +1 -0
- package/lib/DragControls-BPHsDeH6.cjs +1 -0
- package/lib/DragControls-D2a1Cifp.js +234 -0
- package/lib/LocalLinks-BWFJYhGX.cjs +1 -0
- package/lib/LocalLinks-Dwgf3No6.js +65 -0
- package/lib/PageAnnouncerElement-DPMlVJZG.cjs +1 -0
- package/lib/PageAnnouncerElement-DV9pm_od.js +28 -0
- package/lib/PageScroll-BAatKJx6.cjs +1 -0
- package/lib/PageScroll-m3TsHnzR.js +65 -0
- package/lib/SourceElement-941MrYpq.js +265 -0
- package/lib/SourceElement-DBLZ7b5k.cjs +5 -0
- package/lib/Store-BCW70G3Z.cjs +1 -0
- package/lib/Store-uLDYY9ed.js +158 -0
- package/lib/Tweened-BvtjLCa3.js +48 -0
- package/lib/Tweened-DdXm1dbF.cjs +1 -0
- package/lib/Viewport-BiDoiU8M.js +113 -0
- package/lib/Viewport-CXGKUyDy.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +97 -93
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -6
- package/lib/api-fetcher/index.cjs +1 -1
- package/lib/api-fetcher/index.js +67 -66
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +37 -34
- package/lib/attributes-BADnRZpK.cjs +1 -0
- package/lib/attributes-FObgMNCf.js +36 -0
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +240 -232
- package/lib/cache/index.cjs +1 -1
- package/lib/cache/index.js +26 -23
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +62 -59
- package/lib/canvas-BP1ceie3.cjs +1 -0
- package/lib/canvas-DsglKco1.js +40 -0
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +44 -41
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +6 -6
- package/lib/coordinates--JG1U6kQ.js +29 -0
- package/lib/coordinates-DQ9XV9M1.cjs +1 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -1
- package/lib/css-property/index.js +40 -37
- package/lib/css-unit-parser/index.cjs +2 -2
- package/lib/css-unit-parser/index.js +22 -19
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +13 -11
- package/lib/custom-elements-BfZCJde6.cjs +1 -0
- package/lib/custom-elements-HEMuF7yH.js +27 -0
- package/lib/dev/index.cjs +2 -1
- package/lib/dev/index.d.ts +1 -0
- package/lib/dev/index.js +25 -10
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -5
- package/lib/dom-B40i6NXw.cjs +1 -0
- package/lib/dom-D8D-_9ty.js +108 -0
- package/lib/easings-BSGJFMAo.js +40 -0
- package/lib/easings-BWq0pPLq.cjs +1 -0
- package/lib/element-CqD0jqBJ.cjs +1 -0
- package/lib/element-DKw5H-Tu.js +10 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +53 -52
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +47 -44
- package/lib/en3/index.cjs +4 -4
- package/lib/en3/index.js +192 -185
- package/lib/events-Ds-TuvYW.js +9 -0
- package/lib/events-UlGk63iC.cjs +1 -0
- package/lib/file-DwQs6bB6.js +28 -0
- package/lib/file-RHfA3OS-.cjs +1 -0
- package/lib/function-H4b_gTg6.cjs +1 -0
- package/lib/function-UmbPrOHm.js +19 -0
- package/lib/gestures-DmKKNnh4.js +14 -0
- package/lib/gestures-DtYbQr49.cjs +1 -0
- package/lib/history/index.cjs +1 -1
- package/lib/history/index.js +24 -21
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +27 -24
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +17 -13
- package/lib/index-BpO2RJ__.cjs +1 -0
- package/lib/index-DpKsHe97.js +68 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +3 -3
- package/lib/jsx/ComponentElement.d.ts +4 -0
- package/lib/jsx/h.d.ts +7 -16
- package/lib/jsx/hooks/component/useStylesheet.d.ts +1 -1
- package/lib/jsx/hooks/cssProperty.d.ts +6 -0
- package/lib/jsx/hooks/resize.d.ts +4 -0
- package/lib/jsx/hooks/store.d.ts +1 -2
- package/lib/jsx/hooks/ticker.d.ts +5 -0
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +4 -4
- package/lib/jsx/index.js +171 -349
- package/lib/jsx/plugins/vite/index.cjs +49 -0
- package/lib/jsx/plugins/vite/index.d.ts +38 -0
- package/lib/jsx/plugins/vite/index.js +104 -0
- package/lib/jsx/render.d.ts +2 -0
- package/lib/jsx/type.d.ts +228 -190
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +86 -84
- package/lib/layout-C26zkY7D.js +35 -0
- package/lib/layout-CnGLl7oe.cjs +1 -0
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +221 -217
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +48 -45
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +2 -2
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +48 -45
- package/lib/math-C-knY2TL.cjs +1 -0
- package/lib/math-r8V23YFe.js +57 -0
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +28 -25
- package/lib/metadata-BNdkmeeD.js +15 -0
- package/lib/metadata-BrHUfpV9.cjs +1 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +561 -556
- package/lib/morph-BtgB1YQP.js +256 -0
- package/lib/morph-Buhxq-X0.cjs +1 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +862 -834
- package/lib/notifier/index.cjs +1 -1
- package/lib/notifier/index.js +29 -26
- package/lib/number-Bu4sGvW7.cjs +1 -0
- package/lib/number-DiVt2xnh.js +47 -0
- package/lib/object-CiIdEmJx.js +98 -0
- package/lib/object-DTY_W6xG.cjs +1 -0
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.js +3 -3
- package/lib/page-announcer/index.cjs +1 -1
- package/lib/page-announcer/index.js +2 -2
- package/lib/page-scroll/index.cjs +1 -1
- package/lib/page-scroll/index.js +2 -2
- package/lib/pixel-perfect/index.cjs +4 -4
- package/lib/pixel-perfect/index.js +43 -40
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +125 -122
- package/lib/polyfills-CG1XJNia.js +28 -0
- package/lib/polyfills-DZCuDBkA.cjs +1 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +249 -245
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +58 -55
- package/lib/render-DLcWVnuH.js +355 -0
- package/lib/render-DdomypCo.cjs +1 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +196 -194
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +890 -877
- package/lib/scroll-BvIWh1xB.js +41 -0
- package/lib/scroll-CT0lpyRZ.cjs +1 -0
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +37 -34
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +214 -209
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +102 -98
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +29 -26
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +118 -113
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +5 -5
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +94 -94
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/store/index.js +10 -8
- package/lib/string-B3lm2b7v.js +84 -0
- package/lib/string-CbRNzmd9.cjs +1 -0
- package/lib/style-DBoQWK0d.js +14 -0
- package/lib/style-IDJ6db6n.cjs +1 -0
- package/lib/stylesheet-CHvuef16.js +28 -0
- package/lib/stylesheet-CQdBaIAA.cjs +1 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +96 -92
- package/lib/url-CPCO10Sy.cjs +1 -0
- package/lib/url-CWCY_qe_.js +124 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +245 -226
- package/lib/utils/polyfills.d.ts +1 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +36 -33
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +27 -24
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +56 -54
- package/package.json +11 -24
- package/lib/Animation-BzTjZIE-.js +0 -108
- package/lib/Animation-C39Ah-LM.cjs +0 -1
- package/lib/Composed-C-TV9te3.cjs +0 -1
- package/lib/Composed-DyAWjEXE.js +0 -121
- package/lib/Damped-CRusiRIV.js +0 -56
- package/lib/Damped-Prr0iKu1.cjs +0 -1
- package/lib/DragControls-8rNZwQrs.cjs +0 -1
- package/lib/DragControls-DBNdMBA4.js +0 -228
- package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
- package/lib/LocalLinks-DFZFpbjs.js +0 -62
- package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
- package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
- package/lib/PageScroll-0LxFblry.js +0 -62
- package/lib/PageScroll-BXJUQwG7.cjs +0 -1
- package/lib/SourceElement-BHqPFbna.cjs +0 -5
- package/lib/SourceElement-DjbHjynf.js +0 -260
- package/lib/Store-Blf4msDz.cjs +0 -1
- package/lib/Store-ZThXYBQd.js +0 -152
- package/lib/Tweened-Bw1Cn1PJ.js +0 -47
- package/lib/Tweened-DWtk9E-O.cjs +0 -1
- package/lib/Viewport-BxCr0GlB.cjs +0 -1
- package/lib/Viewport-Dt-d9DPi.js +0 -109
- package/lib/attributes-69we3byR.js +0 -10
- package/lib/attributes-Bf2svn4j.cjs +0 -1
- package/lib/canvas-CU5Xjahf.cjs +0 -1
- package/lib/canvas-DeZ0SLUJ.js +0 -34
- package/lib/coordinates-CgdGoSYs.js +0 -24
- package/lib/coordinates-D8Np3cPD.cjs +0 -1
- package/lib/custom-elements-DBnCK7Zx.js +0 -24
- package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
- package/lib/dom-BETkVSSZ.js +0 -82
- package/lib/dom-CBLlqORw.cjs +0 -1
- package/lib/easings-BEmRlrDd.js +0 -38
- package/lib/easings-GegIwET5.cjs +0 -1
- package/lib/element-CGVl1jA-.js +0 -7
- package/lib/element-yhcBhsho.cjs +0 -1
- package/lib/events-CsVF98U6.js +0 -6
- package/lib/events-KVanG9sR.cjs +0 -1
- package/lib/file-DSpfWdd9.cjs +0 -1
- package/lib/file-GHShUlue.js +0 -24
- package/lib/function-C10DGppn.js +0 -17
- package/lib/function-MthRj-GJ.cjs +0 -1
- package/lib/gestures-C7gbKx11.cjs +0 -1
- package/lib/gestures-CcXV6fCp.js +0 -11
- package/lib/index-OE2INULi.cjs +0 -1
- package/lib/index-e9eDuagL.js +0 -65
- package/lib/jsx/hydrate.d.ts +0 -1
- package/lib/jsx/integrations/astro/client.cjs +0 -1
- package/lib/jsx/integrations/astro/client.d.ts +0 -2
- package/lib/jsx/integrations/astro/client.js +0 -50
- package/lib/jsx/integrations/astro/index.cjs +0 -1
- package/lib/jsx/integrations/astro/index.d.ts +0 -2
- package/lib/jsx/integrations/astro/index.js +0 -54
- package/lib/jsx/integrations/astro/server.cjs +0 -1
- package/lib/jsx/integrations/astro/server.d.ts +0 -3
- package/lib/jsx/integrations/astro/server.js +0 -35
- package/lib/jsx/plugins/vite.d.ts +0 -21
- package/lib/layout-BSMtwCga.js +0 -29
- package/lib/layout-Ctc2p3uz.cjs +0 -1
- package/lib/math-BOBiC4TN.js +0 -45
- package/lib/math-GDWEqu7y.cjs +0 -1
- package/lib/metadata-BcYZ5w3T.cjs +0 -1
- package/lib/metadata-jfowcCyz.js +0 -12
- package/lib/morph-B6sGhLCi.cjs +0 -1
- package/lib/morph-BQErz7qP.js +0 -242
- package/lib/number-ChAm68cm.cjs +0 -1
- package/lib/number-CumqY64S.js +0 -40
- package/lib/object-CcMK4y_r.js +0 -87
- package/lib/object-baN9pgbU.cjs +0 -1
- package/lib/polyfills-DJrTJQky.js +0 -24
- package/lib/polyfills-Df4r-ETT.cjs +0 -1
- package/lib/render-DQs7rIoN.cjs +0 -1
- package/lib/render-D_0FCWEu.js +0 -18
- package/lib/scroll-BA2WnUrb.cjs +0 -1
- package/lib/scroll-DY5senkF.js +0 -37
- package/lib/string-BlMQbe8b.js +0 -70
- package/lib/string-DUXXtU8v.cjs +0 -1
- package/lib/style-At6aDoqG.cjs +0 -1
- package/lib/style-j2TwriJ_.js +0 -10
- package/lib/stylesheet-5_o7PFzM.cjs +0 -1
- package/lib/stylesheet-DdBzowZY.js +0 -24
- package/lib/url-CHgcNwJ1.cjs +0 -1
- package/lib/url-CYgo5vrG.js +0 -113
- package/lib/vite-C-i3hVDL.js +0 -75
- package/lib/vite-DzanPumM.cjs +0 -44
package/lib/jsx/index.js
CHANGED
|
@@ -1,365 +1,187 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var y = (t, e, n) => (O(t, e, "read from private field"), n ? n.call(t) : e.get(t)), x = (t, e, n) => e.has(t) ? $("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (O(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
18
|
-
import { S } from "../Store-ZThXYBQd.js";
|
|
19
|
-
import { c as M } from "../string-BlMQbe8b.js";
|
|
20
|
-
import { k as Y, p as Z } from "../morph-BQErz7qP.js";
|
|
1
|
+
var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
|
|
2
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b2) => {
|
|
6
|
+
for (var prop in b2 || (b2 = {}))
|
|
7
|
+
__hasOwnProp.call(b2, prop) && __defNormalProp(a, prop, b2[prop]);
|
|
8
|
+
if (__getOwnPropSymbols)
|
|
9
|
+
for (var prop of __getOwnPropSymbols(b2))
|
|
10
|
+
__propIsEnum.call(b2, prop) && __defNormalProp(a, prop, b2[prop]);
|
|
11
|
+
return a;
|
|
12
|
+
}, __spreadProps = (a, b2) => __defProps(a, __getOwnPropDescs(b2)), __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
|
|
13
|
+
import { a as activeComponent } from "../render-DLcWVnuH.js";
|
|
14
|
+
import { F, h, b, i, r } from "../render-DLcWVnuH.js";
|
|
15
|
+
import { CSSProperty } from "../css-property/index.js";
|
|
16
|
+
import { c as camelToKebab } from "../string-B3lm2b7v.js";
|
|
21
17
|
import "construct-style-sheets-polyfill";
|
|
22
|
-
import "../index-
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
x(this, b, []);
|
|
33
|
-
x(this, p, []);
|
|
34
|
-
f.current = this;
|
|
35
|
-
}
|
|
36
|
-
addConnectCallback(n) {
|
|
37
|
-
y(this, b).push(n);
|
|
38
|
-
}
|
|
39
|
-
addDisconnectCallback(n) {
|
|
40
|
-
y(this, p).push(n);
|
|
41
|
-
}
|
|
42
|
-
connectedCallback() {
|
|
43
|
-
y(this, b).forEach((n) => {
|
|
44
|
-
const r = n(this);
|
|
45
|
-
r && y(this, p).push(r);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
disconnectedCallback() {
|
|
49
|
-
y(this, p).forEach((n) => {
|
|
50
|
-
n(this);
|
|
51
|
-
}), D(this, b, []), D(this, p, []);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
b = new WeakMap(), p = new WeakMap();
|
|
55
|
-
function C(t, e, n) {
|
|
56
|
-
const r = e.subscribe((c) => {
|
|
57
|
-
n(c);
|
|
58
|
-
});
|
|
59
|
-
k.subscribe(t, {
|
|
60
|
-
disconnectCallback: () => {
|
|
61
|
-
r();
|
|
62
|
-
},
|
|
63
|
-
maxWaitSec: 20,
|
|
64
|
-
unsubscribeAfterDisconnect: !0
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function W(t, e) {
|
|
68
|
-
e && (e instanceof S ? C(t, e, (n) => {
|
|
69
|
-
n.previous && t.classList.remove(n.previous.toString()), n.current && t.classList.add(n.current.toString());
|
|
70
|
-
}) : typeof e == "object" && !Array.isArray(e) ? Object.entries(e).forEach(([n, r]) => {
|
|
71
|
-
r instanceof S ? C(t, r, (c) => {
|
|
72
|
-
t.classList.toggle(n, !!c.current);
|
|
73
|
-
}) : r && t.classList.add(n);
|
|
74
|
-
}) : Array.isArray(e) ? e.forEach((n) => {
|
|
75
|
-
typeof n == "string" ? t.classList.add(n) : W(t, n);
|
|
76
|
-
}) : e.toString().split(" ").map((n) => t.classList.add(n.trim())));
|
|
77
|
-
}
|
|
78
|
-
function et(t, e) {
|
|
79
|
-
e && (typeof e == "object" ? Object.entries(e).forEach(([n, r]) => {
|
|
80
|
-
r instanceof S ? C(t, r, (c) => {
|
|
81
|
-
var o;
|
|
82
|
-
t.style[n] = (o = c.current) == null ? void 0 : o.toString();
|
|
83
|
-
}) : (typeof r == "number" || typeof r == "string" || typeof r == "boolean") && (t.style[n] = r.toString());
|
|
84
|
-
}) : typeof e == "string" && (t.style = e));
|
|
85
|
-
}
|
|
86
|
-
function w(t, e, n) {
|
|
87
|
-
e === "ref" && n ? Array.isArray(n) ? n.forEach((r) => {
|
|
88
|
-
typeof r == "object" && "value" in r && (r.value = t);
|
|
89
|
-
}) : typeof n == "object" && "value" in n && (n.value = t) : e === "className" || e === "class" ? W(t, n) : e === "style" ? et(t, n) : e === "setHtml" ? t.innerHTML = n : typeof n == "number" ? e === "tabIndex" ? t.setAttribute("tabindex", n.toString()) : w(t, e, n.toString()) : typeof n == "string" ? e === "htmlFor" ? t.setAttribute("for", n) : t.setAttribute(e, n) : typeof n == "boolean" ? n ? t.setAttribute(e, "") : t.removeAttribute(e) : n instanceof S && C(t, n, (r) => {
|
|
90
|
-
e in t ? t[e] = r.current : w(t, e, r.current);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function nt(t, e) {
|
|
94
|
-
for (const [n, r] of Object.entries(e != null ? e : {}))
|
|
95
|
-
typeof r == "function" && n.startsWith("on") ? t.addEventListener(
|
|
96
|
-
n.replace("on", "").toLowerCase(),
|
|
97
|
-
r
|
|
98
|
-
) : w(t, n, r);
|
|
99
|
-
}
|
|
100
|
-
function I(t, e) {
|
|
101
|
-
return t === "svg" ? document.createElementNS("http://www.w3.org/2000/svg", "svg") : e ? document.createElementNS("http://www.w3.org/2000/svg", t) : document.createElement(t);
|
|
102
|
-
}
|
|
103
|
-
function B(t) {
|
|
104
|
-
const e = [];
|
|
105
|
-
return (Array.isArray(t) ? t : [t]).forEach((r) => {
|
|
106
|
-
r != null && (typeof r == "number" ? e.push(r.toString()) : Array.isArray(r) ? r.forEach((c) => {
|
|
107
|
-
e.push(...B(c));
|
|
108
|
-
}) : e.push(r));
|
|
109
|
-
}), e;
|
|
110
|
-
}
|
|
111
|
-
function rt(t, e, n) {
|
|
112
|
-
const r = t.childNodes[n];
|
|
113
|
-
r && r.nodeType === Node.TEXT_NODE ? r.textContent !== String(e) && (console.warn(
|
|
114
|
-
`Hydration text mismatch: expected "${e}", got "${r.textContent}"`
|
|
115
|
-
), r.textContent = String(e)) : e != null && e !== "" && t.insertBefore(
|
|
116
|
-
document.createTextNode(String(e)),
|
|
117
|
-
t.childNodes[n] || null
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
function ot(t, e) {
|
|
121
|
-
const n = [...t.childNodes].filter((i) => i.__storeId === e.id), r = e.current, c = Array.isArray(r) ? r : [r], o = [];
|
|
122
|
-
if (c.forEach((i) => {
|
|
123
|
-
let s = null;
|
|
124
|
-
typeof i == "boolean" || typeof i == "number" || typeof i == "string" ? s = document.createTextNode(i.toString()) : i instanceof Node && (s = i), s && (s.__storeId = e.id, o.push(s));
|
|
125
|
-
}), e instanceof P) {
|
|
126
|
-
const i = [];
|
|
127
|
-
o.forEach((s, a) => {
|
|
128
|
-
const d = n.find(
|
|
129
|
-
(u) => u.__key === s.__key
|
|
130
|
-
);
|
|
131
|
-
d ? d.isEqualNode(s) ? i.push(d) : (d.replaceWith(s), i.push(s)) : (i.push(s), t.appendChild(s));
|
|
132
|
-
}), n.forEach((s) => {
|
|
133
|
-
i.includes(s) || s.remove();
|
|
134
|
-
});
|
|
135
|
-
} else
|
|
136
|
-
o.forEach((i, s) => {
|
|
137
|
-
var d;
|
|
138
|
-
const a = n[s];
|
|
139
|
-
if (a)
|
|
140
|
-
a.isEqualNode(i) || (a.replaceWith(i), n[s] = i);
|
|
141
|
-
else {
|
|
142
|
-
const u = n[n.length - 1];
|
|
143
|
-
u ? (d = u.parentNode) == null || d.insertBefore(
|
|
144
|
-
i,
|
|
145
|
-
u.nextSibling
|
|
146
|
-
) : t.appendChild(i);
|
|
147
|
-
}
|
|
148
|
-
}), n.slice(o.length).forEach((i) => {
|
|
149
|
-
i.remove();
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
class N {
|
|
153
|
-
constructor(e, n, r) {
|
|
154
|
-
this.tag = e, this.attributes = n, this.children = r;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
class g extends N {
|
|
158
|
-
}
|
|
159
|
-
class R extends N {
|
|
160
|
-
}
|
|
161
|
-
class F extends N {
|
|
162
|
-
}
|
|
163
|
-
let E = !1;
|
|
164
|
-
function st() {
|
|
165
|
-
E = !0;
|
|
166
|
-
}
|
|
167
|
-
function it() {
|
|
168
|
-
E = !1;
|
|
169
|
-
}
|
|
170
|
-
function l(t, e, n, r = !1) {
|
|
171
|
-
const c = B(n);
|
|
172
|
-
nt(t, e), c.forEach((o, i) => {
|
|
173
|
-
if (o instanceof S)
|
|
174
|
-
C(t, o, () => {
|
|
175
|
-
ot(t, o);
|
|
176
|
-
});
|
|
177
|
-
else if (o instanceof g)
|
|
178
|
-
o.tag === "shadow" && t.shadowRoot ? l(
|
|
179
|
-
t.shadowRoot,
|
|
180
|
-
o.attributes,
|
|
181
|
-
o.children
|
|
182
|
-
) : l(t, o.attributes, o.children);
|
|
183
|
-
else if (o instanceof R) {
|
|
184
|
-
let s = null;
|
|
185
|
-
if (E) {
|
|
186
|
-
const a = t.children[i];
|
|
187
|
-
a && a.nodeName.toLowerCase() === o.tag ? (s = a, l(s, o.attributes, o.children, r)) : (s = I(o.tag, r), l(s, o.attributes, o.children, r), t.append(s));
|
|
188
|
-
} else
|
|
189
|
-
s = I(o.tag, r), l(s, o.attributes, o.children, r), t.append(s);
|
|
190
|
-
} else if (o instanceof F) {
|
|
191
|
-
const s = document.createElement(o.tag);
|
|
192
|
-
l(s, o.attributes, o.children);
|
|
193
|
-
const a = Y(document.head, s);
|
|
194
|
-
Z(document.head, a);
|
|
195
|
-
} else
|
|
196
|
-
E ? rt(t, o, i) : t.append(o);
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
const T = /* @__PURE__ */ new Map();
|
|
200
|
-
function Ct(t, e, ...n) {
|
|
201
|
-
var r;
|
|
202
|
-
if (typeof t == "string")
|
|
203
|
-
return t === "component" ? new g(t, e, n) : t === "shadow" ? new g(t, e, n) : t === "head" ? new F(t, e, n) : new R(t, e, n);
|
|
204
|
-
{
|
|
205
|
-
if (t === q)
|
|
206
|
-
return q(n);
|
|
207
|
-
if (t.template)
|
|
208
|
-
return t(m({}, e));
|
|
209
|
-
const c = `e-${M(t.name)}`;
|
|
210
|
-
let o = customElements.get(c);
|
|
211
|
-
o || (o = (r = class extends tt {
|
|
212
|
-
constructor() {
|
|
213
|
-
super();
|
|
214
|
-
}
|
|
215
|
-
}, r.formAssociated = t.formAssociated, r), customElements.define(c, o));
|
|
216
|
-
const i = (T.get(c) || 0) + 1;
|
|
217
|
-
T.set(c, i);
|
|
218
|
-
const s = `${c}-${i}`;
|
|
219
|
-
let a;
|
|
220
|
-
if (E) {
|
|
221
|
-
const A = document.querySelector(
|
|
222
|
-
`${c}[data-hydrate-id="${s}"]`
|
|
223
|
-
);
|
|
224
|
-
A && A instanceof o ? a = A : (a = new o(), a.setAttribute("data-hydrate-id", s));
|
|
225
|
-
} else
|
|
226
|
-
a = new o(), a.setAttribute("data-hydrate-id", s);
|
|
227
|
-
const d = H(m({}, e), {
|
|
228
|
-
children: n
|
|
229
|
-
}), u = t(d);
|
|
230
|
-
return a.__props__ = d, (u instanceof g || u instanceof R) && (u != null && u.children || u.attributes) && l(a, u.attributes, u.children), a;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function q(t) {
|
|
234
|
-
const e = document.createDocumentFragment();
|
|
235
|
-
return l(e, void 0, t), e;
|
|
236
|
-
}
|
|
237
|
-
function Et() {
|
|
18
|
+
import "../index-DpKsHe97.js";
|
|
19
|
+
import { S as Store } from "../Store-uLDYY9ed.js";
|
|
20
|
+
import { D as Derived, R as Resource, C as Composed } from "../Composed-CgA9lLWA.js";
|
|
21
|
+
import { D as DerivedArray, a as DerivedKeyedArray } from "../DerivedArray-DFhxap_z.js";
|
|
22
|
+
import { elementResizer } from "../element-resizer/index.js";
|
|
23
|
+
import { windowResizer } from "../window-resizer/index.js";
|
|
24
|
+
import { ticker } from "../ticker/index.js";
|
|
25
|
+
function useRef() {
|
|
238
26
|
return { value: null };
|
|
239
27
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
28
|
+
__name(useRef, "useRef");
|
|
29
|
+
function useConnect(callback) {
|
|
30
|
+
activeComponent.current.addConnectCallback(callback);
|
|
31
|
+
}
|
|
32
|
+
__name(useConnect, "useConnect");
|
|
33
|
+
function useDisconnect(callback) {
|
|
34
|
+
activeComponent.current.addDisconnectCallback(callback);
|
|
35
|
+
}
|
|
36
|
+
__name(useDisconnect, "useDisconnect");
|
|
37
|
+
function useCSSProperty(property, defaultValue, options) {
|
|
38
|
+
if (activeComponent.current) {
|
|
39
|
+
const cssProperty = new CSSProperty(
|
|
40
|
+
activeComponent.current,
|
|
41
|
+
property,
|
|
42
|
+
defaultValue,
|
|
43
|
+
options
|
|
44
|
+
);
|
|
45
|
+
return useConnect(() => (options != null && options.callback && cssProperty.subscribe(options.callback), cssProperty.observe(), () => {
|
|
46
|
+
cssProperty.close();
|
|
47
|
+
})), cssProperty;
|
|
48
|
+
}
|
|
245
49
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
50
|
+
__name(useCSSProperty, "useCSSProperty");
|
|
51
|
+
function useInternals(callback) {
|
|
52
|
+
const internals = activeComponent.current.attachInternals();
|
|
53
|
+
return callback == null || callback(internals), internals;
|
|
249
54
|
}
|
|
250
|
-
|
|
251
|
-
|
|
55
|
+
__name(useInternals, "useInternals");
|
|
56
|
+
function useShadow(init, callback) {
|
|
57
|
+
const shadowRoot = activeComponent.current.attachShadow(__spreadValues({
|
|
252
58
|
mode: "open"
|
|
253
|
-
},
|
|
254
|
-
return
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
59
|
+
}, init));
|
|
60
|
+
return callback == null || callback(shadowRoot), shadowRoot;
|
|
61
|
+
}
|
|
62
|
+
__name(useShadow, "useShadow");
|
|
63
|
+
function createStylesheet(cssText) {
|
|
64
|
+
const styleSheet = new CSSStyleSheet();
|
|
65
|
+
return styleSheet.replaceSync(cssText), styleSheet;
|
|
66
|
+
}
|
|
67
|
+
__name(createStylesheet, "createStylesheet");
|
|
68
|
+
function generateCSS(source) {
|
|
69
|
+
let cssText = "";
|
|
70
|
+
const processObject = /* @__PURE__ */ __name((obj, selector) => {
|
|
71
|
+
selector && (cssText += `${selector} {`);
|
|
72
|
+
for (const [key, value] of Object.entries(obj))
|
|
73
|
+
typeof value == "object" && value !== null ? processObject(value, key) : cssText += `${camelToKebab(key)}: ${value};`;
|
|
74
|
+
selector && (cssText += "}");
|
|
75
|
+
}, "processObject");
|
|
76
|
+
return processObject(source), cssText;
|
|
77
|
+
}
|
|
78
|
+
__name(generateCSS, "generateCSS");
|
|
79
|
+
function addStylesToShadowRoot(shadowRoot, cssText) {
|
|
80
|
+
const newStylesheet = createStylesheet(cssText), destroyCallbacks = [];
|
|
81
|
+
for (const currentStylesheet of shadowRoot.adoptedStyleSheets)
|
|
82
|
+
Array.from(newStylesheet.cssRules).filter((newRule) => !Array.from(currentStylesheet.cssRules).some(
|
|
83
|
+
(currentRule) => currentRule.cssText === newRule.cssText
|
|
84
|
+
)).forEach((newRule) => {
|
|
85
|
+
const index = currentStylesheet.insertRule(newRule.cssText);
|
|
86
|
+
destroyCallbacks.push(() => currentStylesheet.deleteRule(index));
|
|
278
87
|
});
|
|
279
|
-
return () =>
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
88
|
+
return () => destroyCallbacks.forEach((callback) => callback());
|
|
89
|
+
}
|
|
90
|
+
__name(addStylesToShadowRoot, "addStylesToShadowRoot");
|
|
91
|
+
function addStylesToDocument(cssText) {
|
|
92
|
+
const styleElement = document.createElement("style");
|
|
93
|
+
return styleElement.textContent = cssText, document.head.appendChild(styleElement), () => styleElement.remove();
|
|
94
|
+
}
|
|
95
|
+
__name(addStylesToDocument, "addStylesToDocument");
|
|
96
|
+
function useStylesheet(source) {
|
|
97
|
+
const cssText = generateCSS(source);
|
|
98
|
+
if (activeComponent.current.shadowRoot) {
|
|
99
|
+
activeComponent.current.shadowRoot.adoptedStyleSheets = [
|
|
100
|
+
...activeComponent.current.shadowRoot.adoptedStyleSheets,
|
|
101
|
+
createStylesheet(cssText)
|
|
291
102
|
];
|
|
292
103
|
return;
|
|
293
104
|
}
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
105
|
+
useConnect((element) => {
|
|
106
|
+
const rootNode = element.getRootNode();
|
|
107
|
+
if (rootNode === document) {
|
|
297
108
|
if (!Array.from(
|
|
298
109
|
document.head.querySelectorAll("style")
|
|
299
|
-
).find((
|
|
300
|
-
return
|
|
301
|
-
} else if (
|
|
302
|
-
return
|
|
110
|
+
).find((style) => style.textContent === cssText))
|
|
111
|
+
return addStylesToDocument(cssText);
|
|
112
|
+
} else if (rootNode instanceof ShadowRoot)
|
|
113
|
+
return addStylesToShadowRoot(rootNode, cssText);
|
|
303
114
|
});
|
|
304
115
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
function
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
function
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
116
|
+
__name(useStylesheet, "useStylesheet");
|
|
117
|
+
function subscribe(create) {
|
|
118
|
+
const store = create();
|
|
119
|
+
return activeComponent.current && activeComponent.current.addDisconnectCallback(() => {
|
|
120
|
+
store.close();
|
|
121
|
+
}), store;
|
|
122
|
+
}
|
|
123
|
+
__name(subscribe, "subscribe");
|
|
124
|
+
function useStore(...parameters) {
|
|
125
|
+
return subscribe(() => new Store(...parameters));
|
|
126
|
+
}
|
|
127
|
+
__name(useStore, "useStore");
|
|
128
|
+
function useDerivedStore(...parameters) {
|
|
129
|
+
return subscribe(() => new Derived(...parameters));
|
|
130
|
+
}
|
|
131
|
+
__name(useDerivedStore, "useDerivedStore");
|
|
132
|
+
function useDerivedArrayStore(...parameters) {
|
|
133
|
+
return subscribe(() => new DerivedArray(...parameters));
|
|
134
|
+
}
|
|
135
|
+
__name(useDerivedArrayStore, "useDerivedArrayStore");
|
|
136
|
+
function useDerivedKeyedArrayStore(...parameters) {
|
|
137
|
+
return subscribe(() => new DerivedKeyedArray(...parameters));
|
|
138
|
+
}
|
|
139
|
+
__name(useDerivedKeyedArrayStore, "useDerivedKeyedArrayStore");
|
|
140
|
+
function useResourceStore(...parameters) {
|
|
141
|
+
return subscribe(() => new Resource(...parameters));
|
|
142
|
+
}
|
|
143
|
+
__name(useResourceStore, "useResourceStore");
|
|
144
|
+
function useComposedStore(...parameters) {
|
|
145
|
+
return subscribe(() => new Composed(...parameters));
|
|
146
|
+
}
|
|
147
|
+
__name(useComposedStore, "useComposedStore");
|
|
148
|
+
function useWindowResize(...parameters) {
|
|
149
|
+
activeComponent.current ? useConnect(() => windowResizer.subscribe(...parameters)) : windowResizer.subscribe(...parameters);
|
|
150
|
+
}
|
|
151
|
+
__name(useWindowResize, "useWindowResize");
|
|
152
|
+
function useElementResize(callback) {
|
|
153
|
+
useConnect((element) => elementResizer.subscribe(element, callback));
|
|
154
|
+
}
|
|
155
|
+
__name(useElementResize, "useElementResize");
|
|
156
|
+
function useTicker(callback, options) {
|
|
157
|
+
if (activeComponent.current)
|
|
158
|
+
useConnect(() => ticker.subscribe(callback, __spreadProps(__spreadValues({}, options), {
|
|
159
|
+
culling: options != null && options.componentCulling ? activeComponent.current : options == null ? void 0 : options.culling
|
|
160
|
+
})));
|
|
161
|
+
else
|
|
162
|
+
return ticker.subscribe(callback, options);
|
|
163
|
+
}
|
|
164
|
+
__name(useTicker, "useTicker");
|
|
346
165
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
166
|
+
F as Fragment,
|
|
167
|
+
h,
|
|
168
|
+
b as hydrate,
|
|
169
|
+
i as indexMap,
|
|
170
|
+
r as render,
|
|
171
|
+
useCSSProperty,
|
|
172
|
+
useComposedStore,
|
|
173
|
+
useConnect,
|
|
174
|
+
useDerivedArrayStore,
|
|
175
|
+
useDerivedKeyedArrayStore,
|
|
176
|
+
useDerivedStore,
|
|
177
|
+
useDisconnect,
|
|
178
|
+
useElementResize,
|
|
179
|
+
useInternals,
|
|
180
|
+
useRef,
|
|
181
|
+
useResourceStore,
|
|
182
|
+
useShadow,
|
|
183
|
+
useStore,
|
|
184
|
+
useStylesheet,
|
|
185
|
+
useTicker,
|
|
186
|
+
useWindowResize
|
|
365
187
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function aptechkaJSXVitePlugin(options){const moduleBase=options!=null&&options.__dev?"@packages":"aptechka";return[{name:"aptechka-jsx-vite-dev",apply:"serve",transform(code,id){if((id.endsWith(".jsx")||id.endsWith(".tsx"))&&!id.endsWith("render.tsx")){let transformed=code;return transformed+=`
|
|
2
|
+
|
|
3
|
+
if (import.meta.hot) {
|
|
4
|
+
import.meta.hot.on('vite:beforeUpdate', () => {
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
import.meta.hot.accept(async (Module) => {
|
|
8
|
+
const { render } = await import('${moduleBase}/jsx')
|
|
9
|
+
const { camelToKebab, deepQuerySelectorAll } = await import('${moduleBase}/utils')
|
|
10
|
+
const { getCreationSource } = await import('${moduleBase}/dev')
|
|
11
|
+
|
|
12
|
+
for (const key in Module) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(Module, key)) {
|
|
14
|
+
if (typeof Module[key] === 'function') {
|
|
15
|
+
const tag = \`e-\${camelToKebab(Module[key].name)}\`
|
|
16
|
+
const foundedElements = [...deepQuerySelectorAll(tag)]
|
|
17
|
+
|
|
18
|
+
foundedElements.forEach((el) => {
|
|
19
|
+
const nestElements = el.querySelectorAll('[data-nest]')
|
|
20
|
+
|
|
21
|
+
const container = document.createElement('div')
|
|
22
|
+
|
|
23
|
+
render(container, Module[key], {...el.__props__, setHtml: el.__innerHTML__})
|
|
24
|
+
const componentElement = container.firstElementChild
|
|
25
|
+
|
|
26
|
+
if (componentElement) {
|
|
27
|
+
el.dispatchEvent(new CustomEvent('__hmrInstanceReplace', {
|
|
28
|
+
'detail': {
|
|
29
|
+
element: componentElement
|
|
30
|
+
}
|
|
31
|
+
}))
|
|
32
|
+
|
|
33
|
+
el.replaceWith(componentElement)
|
|
34
|
+
|
|
35
|
+
componentElement
|
|
36
|
+
.querySelectorAll('[data-nest]')
|
|
37
|
+
.forEach((el, i) => {
|
|
38
|
+
if (nestElements[i]) {
|
|
39
|
+
el.replaceWith(nestElements[i])
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
`,{code:transformed,map:null}}return null},config(_config,opt){return{esbuild:{jsxFactory:"h",jsxFragment:"Fragment",jsxInject:`import { h, Fragment } from '${moduleBase}/jsx'`,keepNames:!0},define:{__JSX_HMR_DEV__:opt.command==="serve"}}}},{name:"aptechka-jsx-vite-build",apply:"build",config(_config){return{esbuild:{jsxFactory:"h",jsxFragment:"Fragment",jsxInject:`import { h, Fragment } from '${moduleBase}/jsx'`,keepNames:!0,minifyIdentifiers:!1},define:{__JSX_HMR_DEV__:!1}}}}]}__name(aptechkaJSXVitePlugin,"aptechkaJSXVitePlugin");exports.aptechkaJSXVitePlugin=aptechkaJSXVitePlugin;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface PluginOptions {
|
|
2
|
+
__dev?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function aptechkaJSXVitePlugin(options?: PluginOptions): ({
|
|
5
|
+
name: string;
|
|
6
|
+
apply: "serve";
|
|
7
|
+
transform(code: string, id: string): {
|
|
8
|
+
code: string;
|
|
9
|
+
map: null;
|
|
10
|
+
} | null;
|
|
11
|
+
config(_config: any, opt: any): {
|
|
12
|
+
esbuild: {
|
|
13
|
+
jsxFactory: string;
|
|
14
|
+
jsxFragment: string;
|
|
15
|
+
jsxInject: string;
|
|
16
|
+
keepNames: boolean;
|
|
17
|
+
};
|
|
18
|
+
define: {
|
|
19
|
+
__JSX_HMR_DEV__: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
apply: "build";
|
|
25
|
+
config(_config: any): {
|
|
26
|
+
esbuild: {
|
|
27
|
+
jsxFactory: string;
|
|
28
|
+
jsxFragment: string;
|
|
29
|
+
jsxInject: string;
|
|
30
|
+
keepNames: boolean;
|
|
31
|
+
minifyIdentifiers: boolean;
|
|
32
|
+
};
|
|
33
|
+
define: {
|
|
34
|
+
__JSX_HMR_DEV__: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
transform?: undefined;
|
|
38
|
+
})[];
|