aptechka 0.79.0 → 0.80.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-BDEX44-i.js → Animation-C4tLEBGM.js} +2 -2
- package/lib/{Animation-hZcAchp_.cjs → Animation-jmvFcNfM.cjs} +1 -1
- package/lib/Composed-BB1MtFiT.js +70 -0
- package/lib/Composed-CSeUTRCg.cjs +1 -0
- package/lib/{Damped-z9Uaw2MJ.cjs → Damped-77Urmi3q.cjs} +1 -1
- package/lib/{Damped-CtQmJ52v.js → Damped-DVG5nrYV.js} +2 -2
- package/lib/DerivedArray-B8A0-8uT.cjs +1 -0
- package/lib/DerivedArray-D3scYQdp.js +59 -0
- package/lib/{DragControls-K67-diF5.cjs → DragControls-BlL26P1V.cjs} +1 -1
- package/lib/{DragControls-DyIrD3GV.js → DragControls-Cm_88cLt.js} +4 -4
- package/lib/{SourceElement-VVdVc1d-.cjs → SourceElement-BBfaAgwe.cjs} +1 -1
- package/lib/{SourceElement-BnMxiOqY.js → SourceElement-BiNNtaz9.js} +2 -2
- package/lib/Store-1JrMCgdX.cjs +1 -0
- package/lib/{Store-0BVty6AZ.js → Store-BtVtCGLk.js} +52 -35
- package/lib/{Tweened-BlZB0vl4.js → Tweened-C1lnK6n9.js} +2 -2
- package/lib/{Tweened-mvHucL4Y.cjs → Tweened-CXQrFQth.cjs} +1 -1
- package/lib/{Viewport-DB0qAZPJ.cjs → Viewport-Cx50Hufs.cjs} +1 -1
- package/lib/{Viewport-DA10iWAO.js → Viewport-DbN_JWBM.js} +2 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +2 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/{dom-CVWzyXPH.js → dom-fgxIeFxm.js} +22 -7
- package/lib/dom-hTEdqeoj.cjs +1 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +3 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +4 -4
- package/lib/{index-DekP7OZe.cjs → index-CKTweR3M.cjs} +1 -1
- package/lib/{index-Bv9zgfdb.js → index-JqYHGoo6.js} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/ComponentElement.d.ts +13 -0
- package/lib/jsx/h.d.ts +3 -0
- package/lib/jsx/hooks/common.d.ts +1 -0
- package/lib/jsx/hooks/component/lifecycle.d.ts +4 -0
- package/lib/jsx/hooks/component/useInternals.d.ts +2 -0
- package/lib/jsx/hooks/component/useShadow.d.ts +2 -0
- package/lib/jsx/hooks/component/useStylesheet.d.ts +8 -0
- package/lib/jsx/hooks/store.d.ts +8 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +9 -0
- package/lib/jsx/index.js +140 -0
- package/lib/jsx/render.d.ts +1 -0
- package/lib/jsx/type.d.ts +224 -0
- package/lib/jsx/utils/attributes/class.d.ts +5 -0
- package/lib/jsx/utils/attributes/setAttributes.d.ts +2 -0
- package/lib/jsx/utils/attributes/style.d.ts +6 -0
- package/lib/jsx/utils/children/filterChildren.d.ts +2 -0
- package/lib/jsx/utils/children/findTextNode.d.ts +1 -0
- package/lib/jsx/utils/children/removeChildren.d.ts +1 -0
- package/lib/jsx/utils/children/storeChildren.d.ts +2 -0
- package/lib/jsx/utils/elementStoreSubscription.d.ts +2 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +2 -2
- package/lib/morph/Morph.d.ts +3 -21
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +3 -3
- package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +1 -1
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +8 -8
- package/lib/pixel-perfect/index.cjs +1 -1
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +4 -4
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -3
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/render-BCEBRfHS.js +196 -0
- package/lib/render-Rv0UMACs.cjs +1 -0
- package/lib/router/Link.d.ts +3 -1
- package/lib/router/Route.d.ts +9 -10
- package/lib/router/Router.d.ts +13 -13
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +2 -2
- package/lib/router/index.js +267 -216
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +8 -8
- package/lib/{scroll-DNGJVxa2.js → scroll-7JSxRKFK.js} +2 -2
- package/lib/{scroll-CIdNtj3G.cjs → scroll-DxcPU0vk.cjs} +1 -1
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +1 -1
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +4 -4
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +3 -3
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/SlicerElement.d.ts +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +13 -13
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/store/DerivedArray.d.ts +11 -1
- package/lib/store/Store.d.ts +5 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +10 -87
- package/lib/{stylesheet-HWF2a3nr.cjs → stylesheet-BcwbfhBp.cjs} +1 -1
- package/lib/{stylesheet-DpnWNVyD.js → stylesheet-JlRFfJIc.js} +1 -1
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/url-C2kASACG.cjs +1 -0
- package/lib/{url-Ddgqz4Q_.js → url-CGbjOTU4.js} +17 -17
- package/lib/utils/dom.d.ts +2 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +102 -100
- package/lib/utils/url.d.ts +3 -2
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +3 -3
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +3 -3
- package/package.json +21 -11
- package/lib/Store-Cd1GlEmZ.cjs +0 -1
- package/lib/dom-JBOkFLTh.cjs +0 -1
- package/lib/url-VIZgwj_h.cjs +0 -1
package/lib/utils/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { a as D, p as Q } from "../attributes-69we3byR.js";
|
|
2
|
-
import { a as d } from "../index-
|
|
3
|
-
import { i as
|
|
4
|
-
import { a as
|
|
2
|
+
import { a as d } from "../index-JqYHGoo6.js";
|
|
3
|
+
import { i as j } from "../index-JqYHGoo6.js";
|
|
4
|
+
import { a as M, c as $, f as F, m as V } from "../canvas-DeZ0SLUJ.js";
|
|
5
5
|
import { g as U, n as q, s as H } from "../coordinates-CgdGoSYs.js";
|
|
6
6
|
import { w as K } from "../custom-elements-DBnCK7Zx.js";
|
|
7
|
-
import { b as G, f as J, a as L, g as Y } from "../dom-
|
|
8
|
-
import { d as
|
|
9
|
-
import { i as
|
|
10
|
-
import { d as
|
|
11
|
-
import { c as
|
|
12
|
-
import { d as
|
|
13
|
-
import { s as
|
|
14
|
-
import { c as
|
|
15
|
-
import { g as
|
|
16
|
-
import { e as
|
|
17
|
-
import { b as
|
|
18
|
-
import { c as
|
|
19
|
-
import { n as
|
|
20
|
-
import { s as
|
|
21
|
-
import { c as
|
|
22
|
-
import { g as
|
|
23
|
-
import { c as
|
|
7
|
+
import { b as G, f as J, a as L, g as Y, c as X, t as _ } from "../dom-fgxIeFxm.js";
|
|
8
|
+
import { d as te, o as se, g as ae, q as oe, c as re, j as ne, n as ie, a as ce, h as le, k as ue, f as fe, p as de, b as me, i as pe, m as xe, l as he } from "../easings-BEmRlrDd.js";
|
|
9
|
+
import { i as ge } from "../element-CGVl1jA-.js";
|
|
10
|
+
import { d as Ce } from "../events-CsVF98U6.js";
|
|
11
|
+
import { c as ve, d as we } from "../file-GHShUlue.js";
|
|
12
|
+
import { d as Se, t as Te } from "../function-C10DGppn.js";
|
|
13
|
+
import { s as Pe } from "../gestures-CcXV6fCp.js";
|
|
14
|
+
import { c as Ae, s as Re } from "../stylesheet-JlRFfJIc.js";
|
|
15
|
+
import { g as Qe, a as Ne, c as je, b as ze } from "../layout-BSMtwCga.js";
|
|
16
|
+
import { e as $e, f as Fe, c as Ve, d as ke, l as Ue, m as qe, r as He, b as Ze, a as Ke, s as We } from "../math-BOBiC4TN.js";
|
|
17
|
+
import { b as Je, l as Le, p as Ye, r as Xe, t as _e } from "../number-CumqY64S.js";
|
|
18
|
+
import { c as tt, d as st, i as at, b as ot, a as rt, m as nt, e as it, o as ct, p as lt } from "../object-D6MVWB4l.js";
|
|
19
|
+
import { n as ft, r as dt } from "../polyfills-DJrTJQky.js";
|
|
20
|
+
import { s as pt, w as xt } from "../scroll-7JSxRKFK.js";
|
|
21
|
+
import { c as bt, a as gt, b as yt, d as Ct, g as It, i as vt, k as wt, s as Et, t as St, u as Tt } from "../string-BlMQbe8b.js";
|
|
22
|
+
import { g as Pt, a as Bt } from "../style-j2TwriJ_.js";
|
|
23
|
+
import { c as Rt, n as Dt, p as Qt, s as Nt, u as jt } from "../url-CGbjOTU4.js";
|
|
24
24
|
function b(t, e, ...s) {
|
|
25
25
|
return [...t.slice(0, e), ...s, ...t.slice(e)];
|
|
26
26
|
}
|
|
@@ -70,10 +70,10 @@ function C(t) {
|
|
|
70
70
|
function I(t, e) {
|
|
71
71
|
return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function v(t, e) {
|
|
74
74
|
return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function w(t, e) {
|
|
77
77
|
let s = !1;
|
|
78
78
|
const { x: a, y: o } = t;
|
|
79
79
|
for (let r = 0, n = e.length - 1; r < e.length; n = r++) {
|
|
@@ -136,106 +136,108 @@ function B(t, e, s, a) {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
Je as beautifyNumber,
|
|
140
|
+
$e as calculateDistance,
|
|
141
|
+
Fe as calculateDistanceWithRadius,
|
|
142
|
+
bt as camelToKebab,
|
|
143
|
+
gt as capitalize,
|
|
144
|
+
Rt as changeHistory,
|
|
145
|
+
Ve as clamp,
|
|
146
|
+
tt as cloneDeep,
|
|
147
147
|
P as cloneTemplateContent,
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
st as compareObjects,
|
|
149
|
+
M as contain,
|
|
150
150
|
C as copyTextToClipboard,
|
|
151
151
|
$ as cover,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
ve as createJSONAndSave,
|
|
153
|
+
Ae as createStylesheet,
|
|
154
|
+
ke as damp,
|
|
155
|
+
Se as debounce,
|
|
156
|
+
yt as declension,
|
|
157
157
|
T as decode,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
Ct as decodeHtmlEntities,
|
|
159
|
+
Ce as dispatchEvent,
|
|
160
|
+
v as dotCircleCollision,
|
|
161
|
+
w as dotPolygonCollision,
|
|
162
162
|
I as dotRectCollision,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
163
|
+
we as downloadURI,
|
|
164
|
+
te as easeInCubic,
|
|
165
|
+
se as easeInExpo,
|
|
166
|
+
ae as easeInOutCubic,
|
|
167
|
+
oe as easeInOutExpo,
|
|
168
|
+
re as easeInOutQuad,
|
|
169
|
+
ne as easeInOutQuart,
|
|
170
|
+
ie as easeInOutQuint,
|
|
171
|
+
ce as easeInQuad,
|
|
172
|
+
le as easeInQuart,
|
|
173
|
+
ue as easeInQuint,
|
|
174
|
+
fe as easeOutCubic,
|
|
175
|
+
de as easeOutExpo,
|
|
176
|
+
me as easeOutQuad,
|
|
177
|
+
pe as easeOutQuart,
|
|
178
|
+
xe as easeOutQuint,
|
|
179
179
|
S as encode,
|
|
180
180
|
G as findParentElement,
|
|
181
181
|
J as findScrollParentElement,
|
|
182
182
|
F as fixPosition,
|
|
183
183
|
y as formatBytes,
|
|
184
|
-
|
|
184
|
+
It as generateId,
|
|
185
185
|
L as getAllParentElements,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
Qe as getCumulativeOffsetLeft,
|
|
187
|
+
Ne as getCumulativeOffsetTop,
|
|
188
|
+
je as getCumulativePosition,
|
|
189
189
|
Y as getElement,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
Pt as getElementTransitionDurationMS,
|
|
191
|
+
Bt as getElementTransitionDurationS,
|
|
192
192
|
U as getPointerPosition,
|
|
193
193
|
E as getRootVariables,
|
|
194
|
-
|
|
194
|
+
ze as getStickyOffset,
|
|
195
195
|
b as insert,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
196
|
+
j as isBrowser,
|
|
197
|
+
at as isESClass,
|
|
198
|
+
ge as isElementVisible,
|
|
199
|
+
ot as isNullish,
|
|
200
|
+
rt as isObject,
|
|
201
|
+
vt as isUppercase,
|
|
202
|
+
wt as kebabToCamel,
|
|
203
|
+
Ue as lerp,
|
|
204
|
+
he as linear,
|
|
205
|
+
Le as loopNumber,
|
|
206
|
+
qe as mapRange,
|
|
207
207
|
V as measureText,
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
nt as mergeDeep,
|
|
209
|
+
it as mixin,
|
|
210
210
|
q as normalize,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
Dt as normalizeBase,
|
|
212
|
+
ft as nullishCoalescing,
|
|
213
|
+
ct as omit,
|
|
214
214
|
D as parseAttribute,
|
|
215
215
|
Q as parseAttributeValue,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
216
|
+
Qt as parseSearchParameters,
|
|
217
|
+
lt as pick,
|
|
218
|
+
Ye as preciseNumber,
|
|
219
|
+
dt as requestIdleCallback,
|
|
220
|
+
He as round,
|
|
221
|
+
Xe as roundNumberTo,
|
|
222
222
|
H as screenToCartesian,
|
|
223
|
-
|
|
223
|
+
pt as scrollToElement,
|
|
224
224
|
B as setIntervalOnIntersection,
|
|
225
|
-
|
|
225
|
+
Pe as setupDrag,
|
|
226
226
|
g as shiftArray,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
227
|
+
Ze as smootherstep,
|
|
228
|
+
Ke as smoothstep,
|
|
229
|
+
Et as snakeToDotted,
|
|
230
|
+
Nt as splitPath,
|
|
231
|
+
We as step,
|
|
232
|
+
Re as styleToString,
|
|
233
|
+
Te as throttle,
|
|
234
|
+
St as toPascalCase,
|
|
235
|
+
_e as toStep,
|
|
236
|
+
X as traverseNodes,
|
|
237
|
+
_ as traverseShadowRoots,
|
|
236
238
|
O as tryCreateHrefFromContact,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
239
|
+
Tt as uncapitalize,
|
|
240
|
+
jt as updateSearchParameter,
|
|
241
|
+
xt as wait,
|
|
240
242
|
K as whenDefined
|
|
241
243
|
};
|
package/lib/utils/url.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ export interface SplitPathOptions {
|
|
|
3
3
|
trailingSlash?: boolean;
|
|
4
4
|
mergeParams?: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export interface SplitPathResult {
|
|
7
7
|
leaf: string;
|
|
8
8
|
pathname: string;
|
|
9
9
|
parameters: string;
|
|
10
10
|
hash: string;
|
|
11
11
|
path: string;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
|
+
export declare function splitPath(value: string, { base, trailingSlash, mergeParams }?: SplitPathOptions): SplitPathResult;
|
|
13
14
|
export declare function normalizeBase(base?: string): string;
|
|
14
15
|
export type ChangeHistoryAction = 'replace' | 'push' | 'none';
|
|
15
16
|
export interface ChangeHistoryParameters {
|
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var d=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||d("Cannot "+e);var i=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>s.has(t)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,m)=>(E(t,s,"write to private field"),m?m.call(t,e):s.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../SourceElement-
|
|
1
|
+
"use strict";var d=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||d("Cannot "+e);var i=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>s.has(t)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,m)=>(E(t,s,"write to private field"),m?m.call(t,e):s.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../SourceElement-BBfaAgwe.cjs");require("../window-resizer/index.cjs");require("../Store-1JrMCgdX.cjs");const f=require("../index-CKTweR3M.cjs"),y=require("../events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");const h=require("../ticker/index.cjs");var r,u,c,o,l;class p extends b.SourceElement{constructor(){super(...arguments);a(this,r,0);a(this,u,!1);a(this,c,this);a(this,o,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e!==i(this,r)&&y.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}}),e>i(this,r)&&n(this,r,e),this.consumerElement.readyState===4&&(h.ticker.unsubscribe(i(this,o)),i(this,u)&&this.sourceManager.current&&this.consumerElement.play())});a(this,l,()=>{this.hasAttribute("click-controls")&&(this.consumerElement.paused?this.consumerElement.play():this.hasAttribute("controls")||this.consumerElement.pause())})}connectedCallback(){super.connectedCallback();const e=this.getAttribute("click-controls");e&&(e==="parent"?n(this,c,this.parentElement):n(this,c,document.querySelector(e)||this)),this.addEventListener("sourceCapture",()=>{n(this,u,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():n(this,u,!0)),h.ticker.subscribe(i(this,o))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&this.consumerElement.pause(),this.hasAttribute("release-pause")&&this.consumerElement.pause(),this.hasAttribute("release-stop")&&(this.consumerElement.pause(),this.consumerElement.currentTime=0),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")}),i(this,c).addEventListener("click",i(this,l))}disconnectedCallback(){super.disconnectedCallback(),h.ticker.unsubscribe(i(this,o)),n(this,r,0),i(this,c).removeEventListener("click",i(this,l))}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||"",e&&this.hasAttribute("volume")&&(this.consumerElement.volume=parseFloat(this.getAttribute("volume")||"1"))}}r=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakMap,l=new WeakMap;f.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",p);exports.VideoElement=p;
|
package/lib/video/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var d = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var p = (t, s, e) => s.has(t) || d("Cannot " + e);
|
|
5
5
|
var i = (t, s, e) => (p(t, s, "read from private field"), e ? e.call(t) : s.get(t)), c = (t, s, e) => s.has(t) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), a = (t, s, e, m) => (p(t, s, "write to private field"), m ? m.call(t, e) : s.set(t, e), e);
|
|
6
|
-
import { a as E } from "../SourceElement-
|
|
6
|
+
import { a as E } from "../SourceElement-BiNNtaz9.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import { i as f } from "../index-
|
|
8
|
+
import "../Store-BtVtCGLk.js";
|
|
9
|
+
import { i as f } from "../index-JqYHGoo6.js";
|
|
10
10
|
import { d as b } from "../events-CsVF98U6.js";
|
|
11
11
|
import "construct-style-sheets-polyfill";
|
|
12
12
|
import { ticker as h } from "../ticker/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-
|
|
1
|
+
"use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-CKTweR3M.cjs"),R=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,e=>{t(this,r)||(c(this,r,!0),t(this,d).call(this,e))});u(this,d,R.debounce(e=>{this.notify(e),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(e,o){const z=super.subscribe(e,o);return t(this,r)||e(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
|
|
@@ -4,7 +4,7 @@ var h = (e) => {
|
|
|
4
4
|
var c = (e, i, s) => i.has(e) || h("Cannot " + s);
|
|
5
5
|
var t = (e, i, s) => (c(e, i, "read from private field"), s ? s.call(e) : i.get(e)), u = (e, i, s) => i.has(e) ? h("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), f = (e, i, s, n) => (c(e, i, "write to private field"), n ? n.call(e, s) : i.set(e, s), s);
|
|
6
6
|
import { Notifier as p } from "../notifier/index.js";
|
|
7
|
-
import { i as w } from "../index-
|
|
7
|
+
import { i as w } from "../index-JqYHGoo6.js";
|
|
8
8
|
import { d as z } from "../function-C10DGppn.js";
|
|
9
9
|
import "construct-style-sheets-polyfill";
|
|
10
10
|
var r, o, d;
|
package/lib/youtube/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../SourceElement-
|
|
1
|
+
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../SourceElement-BBfaAgwe.cjs");require("../window-resizer/index.cjs");require("../Store-1JrMCgdX.cjs");const L=require("../index-CKTweR3M.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
|
package/lib/youtube/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var L = (s) => {
|
|
|
3
3
|
};
|
|
4
4
|
var b = (s, r, t) => r.has(s) || L("Cannot " + t);
|
|
5
5
|
var e = (s, r, t) => (b(s, r, "read from private field"), t ? t.call(s) : r.get(s)), o = (s, r, t) => r.has(s) ? L("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), u = (s, r, t, a) => (b(s, r, "write to private field"), a ? a.call(s, t) : r.set(s, t), t), E = (s, r, t) => (b(s, r, "access private method"), t);
|
|
6
|
-
import { a as g } from "../SourceElement-
|
|
6
|
+
import { a as g } from "../SourceElement-BiNNtaz9.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import { i as v } from "../index-
|
|
8
|
+
import "../Store-BtVtCGLk.js";
|
|
9
|
+
import { i as v } from "../index-JqYHGoo6.js";
|
|
10
10
|
import { d as T } from "../events-CsVF98U6.js";
|
|
11
11
|
import { g as V } from "../string-BlMQbe8b.js";
|
|
12
12
|
import "construct-style-sheets-polyfill";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -108,6 +108,11 @@
|
|
|
108
108
|
"require": "./lib/intersector/index.cjs",
|
|
109
109
|
"default": "./lib/intersector/index.js"
|
|
110
110
|
},
|
|
111
|
+
"./jsx": {
|
|
112
|
+
"types": "./lib/jsx/index.d.ts",
|
|
113
|
+
"require": "./lib/jsx/index.cjs",
|
|
114
|
+
"default": "./lib/jsx/index.js"
|
|
115
|
+
},
|
|
111
116
|
"./ladder": {
|
|
112
117
|
"types": "./lib/ladder/index.d.ts",
|
|
113
118
|
"require": "./lib/ladder/index.cjs",
|
|
@@ -303,6 +308,9 @@
|
|
|
303
308
|
"intersector": [
|
|
304
309
|
"lib/intersector/index.d.ts"
|
|
305
310
|
],
|
|
311
|
+
"jsx": [
|
|
312
|
+
"lib/jsx/index.d.ts"
|
|
313
|
+
],
|
|
306
314
|
"ladder": [
|
|
307
315
|
"lib/ladder/index.d.ts"
|
|
308
316
|
],
|
|
@@ -393,22 +401,24 @@
|
|
|
393
401
|
"dev": "vite --host --mode site"
|
|
394
402
|
},
|
|
395
403
|
"devDependencies": {
|
|
396
|
-
"@types/node": "^
|
|
397
|
-
"@types/three": "^0.
|
|
398
|
-
"tsx": "^4.
|
|
399
|
-
"vite": "^
|
|
400
|
-
"vite-plugin-dts": "^4.5.
|
|
404
|
+
"@types/node": "^24.1.0",
|
|
405
|
+
"@types/three": "^0.178.1",
|
|
406
|
+
"tsx": "^4.20.3",
|
|
407
|
+
"vite": "^7.0.6",
|
|
408
|
+
"vite-plugin-dts": "^4.5.4",
|
|
401
409
|
"vite-plugin-htmc": "0.1.16"
|
|
402
410
|
},
|
|
403
411
|
"dependencies": {
|
|
404
|
-
"aptechka": "^0.78.5",
|
|
405
412
|
"construct-style-sheets-polyfill": "^3.1.0",
|
|
406
|
-
"
|
|
407
|
-
"
|
|
413
|
+
"csstype": "^3.1.3",
|
|
414
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
415
|
+
"three": "^0.179.1",
|
|
416
|
+
"urlpattern-polyfill": "^10.1.0"
|
|
408
417
|
},
|
|
409
418
|
"peerDependencies": {
|
|
410
419
|
"construct-style-sheets-polyfill": "^3.1.0",
|
|
411
|
-
"
|
|
412
|
-
"
|
|
420
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
421
|
+
"three": "^0.179.1",
|
|
422
|
+
"urlpattern-polyfill": "^10.1.0"
|
|
413
423
|
}
|
|
414
424
|
}
|
package/lib/Store-Cd1GlEmZ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var v=r=>{throw TypeError(r)};var w=(r,t,e)=>t.has(r)||v("Cannot "+e);var i=(r,t,e)=>(w(r,t,"read from private field"),e?e.call(r):t.get(r)),u=(r,t,e)=>t.has(r)?v("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),h=(r,t,e,a)=>(w(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e);const C=require("./notifier/index.cjs"),z=require("./index-DekP7OZe.cjs");require("construct-style-sheets-polyfill");var l;class E{constructor(){u(this,l);this.storage=null,this.name="store-registry",h(this,l,null),z.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(this.name,e)}loadState(t=localStorage.getItem(this.name)){t&&(typeof t=="string"?h(this,l,JSON.parse(t)):h(this,l,t),f.current.forEach(e=>{e.name&&this.updateStore(e)}))}resetState(){f.current.forEach(t=>{t.name&&t.reset()}),this.saveState()}updateStore(t){var e,a;if(!Array.isArray((e=i(this,l))==null?void 0:e.stores))return t;if(t.name){const y=(a=i(this,l))==null?void 0:a.stores.find(N=>N.name===t.name);y&&(t.current=y.value)}return t}getState(){const t={stores:[]};return f.current.forEach(e=>{e.name&&(t.stores.find(a=>a.name===e.name)||t.stores.push({value:e.current,name:e.name}))}),t}}l=new WeakMap;const _=new E;var d,s,S,c,m,n,g,b;class q{constructor(t,e){u(this,d);u(this,s);u(this,S);u(this,c,new C.Notifier);u(this,m);u(this,n);u(this,g);u(this,b);h(this,d,e==null?void 0:e.name),this.__manager=e==null?void 0:e.__manager,h(this,s,{initial:t,previous:void 0,current:t}),h(this,S,(e==null?void 0:e.equalityCheck)||((a,y)=>a===y)),e!=null&&e.validate&&this.addMiddleware(e.validate),h(this,g,(e==null?void 0:e.notifyAndClose)||!1),h(this,b,(e==null?void 0:e.invisible)||!1),h(this,m,(e==null?void 0:e.skipSubscribeNotification)||!1),i(this,d)&&_.updateStore(this)}get name(){return i(this,d)}get initial(){return i(this,s).initial}get previous(){return i(this,s).previous}get current(){return i(this,s).current}set current(t){if(!i(this,S).call(this,i(this,s).current,t)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const e of i(this,n))t=e(t);i(this,s).current=t,this.notify(),i(this,g)&&this.close()}}get subscribers(){return i(this,c).subscribers}notify(){i(this,c).notify(i(this,s))}addMiddleware(t){i(this,n)||h(this,n,new Set),i(this,n).add(t)}removeMiddleware(t){var e,a;(e=i(this,n))==null||e.delete(t),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(t,e){return!i(this,b)&&!i(this,c).size&&M(this),i(this,c).subscribe(t,e),i(this,m)||t(i(this,s)),()=>{this.unsubscribe(t)}}unsubscribe(t){i(this,c).unsubscribe(t),i(this,c).size||A(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,c).close(),i(this,s).previous=void 0,i(this,s).current=i(this,s).initial,A(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,c=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap;const f=new q([],{invisible:!0});function M(r){f.current.includes(r)||(f.current=[...f.current,r])}function A(r){f.current.includes(r)&&(f.current=f.current.filter(t=>t!==r))}exports.Store=q;exports.activeStores=f;exports.storeRegistry=_;
|
package/lib/dom-JBOkFLTh.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function l(e,t){if(!e)return null;let n=e.parentElement;return e.parentElement instanceof t||(n=l(e.parentElement,t)),n}function o(e,t=document){return typeof e=="string"?t.querySelector(e):e}function u(e,t=null){if(t=t||e,!e||!(e instanceof HTMLElement))return document.body;if(t!==e){const n=getComputedStyle(e);if(n.overflow.includes("auto")||n.overflow.includes("scroll"))return e}return u(e.parentNode,t)}function c(e){let t=[];return document.documentElement.addEventListener("__illuminate-tree",n=>{n.composedPath().forEach(r=>{r instanceof HTMLElement&&t.push(r)})},{once:!0}),e.dispatchEvent(new CustomEvent("__illuminate-tree",{bubbles:!0,composed:!0})),t}exports.findParentElement=l;exports.findScrollParentElement=u;exports.getAllParentElements=c;exports.getElement=o;
|
package/lib/url-VIZgwj_h.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=Object.defineProperty,$=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var P=(t,s,a)=>s in t?d(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,S=(t,s)=>{for(var a in s||(s={}))w.call(s,a)&&P(t,a,s[a]);if(m)for(var a of m(s))L.call(s,a)&&P(t,a,s[a]);return t},p=(t,s)=>$(t,g(s));function R(t,{base:s="",trailingSlash:a=!1,mergeParams:r}={}){s=s.endsWith("/")?s.slice(0,-1):s,t=t.replace(s,""),t.startsWith("/")&&(t=t.slice(1));const n=t.split("#"),h=n[0].split("?");let e=h[0].startsWith("/")?h[0]:"/"+h[0];a?e=!e.endsWith("/")&&e!=="/"?e+"/":e:e=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;let i=h[1]||"";if(r){const o=new URLSearchParams(i),W=new URLSearchParams(r);for(const[l,y]of W)o.has(l)||o.set(l,y);i=o.toString()}const f=s+e,c=n[1],u=`${f}${i?"?"+i:""}${c?"#"+c:""}`;return{leaf:e,pathname:f,parameters:i,hash:c,path:u}}function U(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function k(t){if(t.action==="none")return;const s=t==null?void 0:t.searchParameters,a=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",r=s?s.startsWith("?")?s:"?"+s:"",n=`${t.pathname}${r}${a}`,h=p(S({},t.state),{path:n});t.action==="push"?history.pushState(h,"",n):t.action==="replace"&&history.replaceState(h,"",n)}function z(t){const s=new URLSearchParams(t),a={};for(const[r,n]of s)a[r]=n;return a}function B(t,s){const a=new URL(location.href),r=(s==null?void 0:s.toString())||"";a.searchParams.set(t,r),history.replaceState(history.state,"",a.href)}exports.changeHistory=k;exports.normalizeBase=U;exports.parseSearchParameters=z;exports.splitPath=R;exports.updateSearchParameter=B;
|