elements-kit 0.2.0 → 0.3.1
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/{benchmark.CX_oY03V-CsUg-gW0.mjs → benchmark.CX_oY03V-COK1VBpH.mjs} +2 -2
- package/dist/{element-w1GCIMVp.mjs → element-BjpyY6qv.mjs} +17 -35
- package/dist/for.mjs +2 -2
- package/dist/integrations/react.mjs +2 -2
- package/dist/jsx-runtime/index.mjs +1 -1
- package/dist/render.mjs +1 -1
- package/dist/{scope-DM2gzOkb.mjs → scope-CwVlgN8b.mjs} +1 -1
- package/dist/signals/index.mjs +2 -2
- package/dist/{slot-CKtUoy2X.mjs → slot-BnzxFBfO.mjs} +1 -1
- package/dist/slot.mjs +1 -1
- package/dist/{test.BmQO5GaM-ZC2MPXQb.mjs → test.BmQO5GaM-C8YqghE0.mjs} +4 -4
- package/dist/utilities/_observe.mjs +1 -1
- package/dist/utilities/active-element.mjs +1 -1
- package/dist/utilities/active-element.test.mjs +2 -2
- package/dist/utilities/async.mjs +1 -1
- package/dist/utilities/async.test.mjs +3 -3
- package/dist/utilities/context.mjs +1 -1
- package/dist/utilities/context.test.mjs +3 -3
- package/dist/utilities/debounced.mjs +1 -1
- package/dist/utilities/debounced.test.mjs +3 -3
- package/dist/utilities/dom-lifecycle.bench.mjs +1 -1
- package/dist/utilities/dom-lifecycle.d.mts +0 -1
- package/dist/utilities/dom-lifecycle.mjs +3 -6
- package/dist/utilities/dom-lifecycle.test.mjs +2 -2
- package/dist/utilities/element-rect.mjs +1 -1
- package/dist/utilities/element-rect.test.mjs +3 -3
- package/dist/utilities/element-scroll.test.mjs +3 -3
- package/dist/utilities/event-driven.mjs +1 -1
- package/dist/utilities/event-listener.mjs +1 -1
- package/dist/utilities/event-listener.test.mjs +3 -3
- package/dist/utilities/focus-within.mjs +1 -1
- package/dist/utilities/focus-within.test.mjs +3 -3
- package/dist/utilities/hover.mjs +1 -1
- package/dist/utilities/hover.test.mjs +3 -3
- package/dist/utilities/intersection-observer.test.mjs +3 -3
- package/dist/utilities/interval.mjs +1 -1
- package/dist/utilities/interval.test.mjs +3 -3
- package/dist/utilities/location.mjs +1 -1
- package/dist/utilities/location.test.mjs +2 -2
- package/dist/utilities/long-press.test.mjs +3 -3
- package/dist/utilities/media-devices.mjs +1 -1
- package/dist/utilities/media-devices.test.mjs +3 -3
- package/dist/utilities/media-player.test.mjs +3 -3
- package/dist/utilities/media-query.mjs +1 -1
- package/dist/utilities/mutation-observer.test.mjs +3 -3
- package/dist/utilities/network.mjs +1 -1
- package/dist/utilities/network.test.mjs +2 -2
- package/dist/utilities/on-click-outside.test.mjs +3 -3
- package/dist/utilities/orientation.mjs +1 -1
- package/dist/utilities/previous.mjs +1 -1
- package/dist/utilities/previous.test.mjs +3 -3
- package/dist/utilities/promise.mjs +1 -1
- package/dist/utilities/promise.test.mjs +3 -3
- package/dist/utilities/retry.mjs +1 -1
- package/dist/utilities/retry.test.mjs +3 -3
- package/dist/utilities/routing.mjs +1 -1
- package/dist/utilities/routing.test.mjs +2 -2
- package/dist/utilities/search-params.test.mjs +3 -3
- package/dist/utilities/ssr.test.mjs +2 -2
- package/dist/utilities/storage.test.mjs +3 -3
- package/dist/utilities/throttled.mjs +1 -1
- package/dist/utilities/throttled.test.mjs +3 -3
- package/dist/utilities/timeout.mjs +1 -1
- package/dist/utilities/timeout.test.mjs +3 -3
- package/dist/utilities/window-focus.mjs +1 -1
- package/dist/utilities/window-size.mjs +1 -1
- package/dist/utilities/window-size.test.mjs +2 -2
- package/package.json +13 -2
- /package/dist/{lib-D6duEs38.mjs → lib-CVfOddra.mjs} +0 -0
- /package/dist/{polyfill-B1lNNcum.mjs → polyfill-CdZVCxdo.mjs} +0 -0
|
@@ -5106,7 +5106,7 @@ function manageArtifactAttachment(attachment) {
|
|
|
5106
5106
|
if (attachment.body != null) attachment.bodyEncoding ??= "base64";
|
|
5107
5107
|
}
|
|
5108
5108
|
//#endregion
|
|
5109
|
-
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.
|
|
5109
|
+
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.9_jsdom@29.1.0_vite@8.0.8_@types+node@25.5.2_esbuild@0.27.7_/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js
|
|
5110
5110
|
const NAME_WORKER_STATE = "__vitest_worker__";
|
|
5111
5111
|
function getWorkerState() {
|
|
5112
5112
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -5146,7 +5146,7 @@ async function waitForImportsToResolve() {
|
|
|
5146
5146
|
await waitForImportsToResolve();
|
|
5147
5147
|
}
|
|
5148
5148
|
//#endregion
|
|
5149
|
-
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.
|
|
5149
|
+
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.9_jsdom@29.1.0_vite@8.0.8_@types+node@25.5.2_esbuild@0.27.7_/node_modules/vitest/dist/chunks/benchmark.CX_oY03V.js
|
|
5150
5150
|
const benchFns = /* @__PURE__ */ new WeakMap();
|
|
5151
5151
|
const benchOptsMap = /* @__PURE__ */ new WeakMap();
|
|
5152
5152
|
const bench = createBenchmark(function(name, fn = noop, options = {}) {
|
|
@@ -1,38 +1,20 @@
|
|
|
1
|
-
import { c as effectScope, g as untracked, p as onCleanup, s as effect } from "./lib-
|
|
2
|
-
import "./polyfill-
|
|
1
|
+
import { c as effectScope, g as untracked, p as onCleanup, s as effect } from "./lib-CVfOddra.mjs";
|
|
2
|
+
import "./polyfill-CdZVCxdo.mjs";
|
|
3
3
|
import { isReactive, resolveProps } from "./signals/index.mjs";
|
|
4
4
|
import { on } from "./utilities/event-listener.mjs";
|
|
5
|
-
import { i as resolveNode$1, n as Slot, r as Slots, t as SLOTS } from "./slot-
|
|
6
|
-
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __exportAll = (all, no_symbols) => {
|
|
12
|
-
let target = {};
|
|
13
|
-
for (var name in all) __defProp(target, name, {
|
|
14
|
-
get: all[name],
|
|
15
|
-
enumerable: true
|
|
16
|
-
});
|
|
17
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
|
-
key = keys[i];
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
24
|
-
get: ((k) => from[k]).bind(null, key),
|
|
25
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return to;
|
|
29
|
-
};
|
|
30
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
31
|
-
//#endregion
|
|
5
|
+
import { i as resolveNode$1, n as Slot, r as Slots, t as SLOTS } from "./slot-BnzxFBfO.mjs";
|
|
6
|
+
import { ChildProperties, Properties, SVGNamespace } from "dom-expressions/src/constants.js";
|
|
32
7
|
//#region src/jsx-runtime/constants.ts
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
/**
|
|
9
|
+
* IDL properties that take precedence over the default `setAttribute` path.
|
|
10
|
+
*
|
|
11
|
+
* Extends dom-expressions' base set with `defaultValue` — without it, JSX
|
|
12
|
+
* `<input defaultValue="x" />` falls through to `setAttribute("defaultValue",
|
|
13
|
+
* "x")` and creates a useless `defaultvalue` HTML attribute (native
|
|
14
|
+
* `HTMLInputElement` has no such content attribute; its `defaultValue` IDL
|
|
15
|
+
* property reflects the `value` content attribute instead).
|
|
16
|
+
*/
|
|
17
|
+
const Properties$1 = new Set([...Properties, "defaultValue"]);
|
|
36
18
|
const ReservedNameSpaces = new Set([
|
|
37
19
|
"class",
|
|
38
20
|
"on",
|
|
@@ -174,7 +156,7 @@ function setProp(node, key, value) {
|
|
|
174
156
|
}
|
|
175
157
|
return;
|
|
176
158
|
}
|
|
177
|
-
const svgNs =
|
|
159
|
+
const svgNs = SVGNamespace[ns];
|
|
178
160
|
if (svgNs) {
|
|
179
161
|
node.setAttributeNS(svgNs, key, String(value ?? ""));
|
|
180
162
|
return;
|
|
@@ -188,11 +170,11 @@ function setProp(node, key, value) {
|
|
|
188
170
|
applyStyle(node, value);
|
|
189
171
|
return;
|
|
190
172
|
}
|
|
191
|
-
if (
|
|
173
|
+
if (ChildProperties.has(key)) {
|
|
192
174
|
node[key] = value ?? "";
|
|
193
175
|
return;
|
|
194
176
|
}
|
|
195
|
-
if (!(node instanceof SVGElement) &&
|
|
177
|
+
if (!(node instanceof SVGElement) && Properties$1.has(key)) {
|
|
196
178
|
node[key] = value;
|
|
197
179
|
return;
|
|
198
180
|
}
|
package/dist/for.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as effectScope, g as untracked, h as trigger, m as signal, p as onCleanup, s as effect } from "./lib-D6duEs38.mjs";
|
|
1
|
+
import { c as effectScope, g as untracked, h as trigger, m as signal, p as onCleanup, s as effect } from "./lib-CVfOddra.mjs";
|
|
3
2
|
import "./signals/index.mjs";
|
|
3
|
+
import { n as disposeElement } from "./element-BjpyY6qv.mjs";
|
|
4
4
|
//#region src/for.ts
|
|
5
5
|
/**
|
|
6
6
|
* Keyed list renderer. See {@link ForProps} for prop details.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as signal, s as effect } from "../lib-
|
|
1
|
+
import { m as signal, s as effect } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { t as scope } from "../scope-
|
|
3
|
+
import { t as scope } from "../scope-CwVlgN8b.mjs";
|
|
4
4
|
import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
5
5
|
//#region src/integrations/react.ts
|
|
6
6
|
/**
|
package/dist/render.mjs
CHANGED
package/dist/signals/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as batch, c as effectScope, d as isEffectScope, f as isSignal, g as untracked, h as trigger, i as SIGNAL, l as isComputed, m as signal, n as EFFECT, o as computed, p as onCleanup, r as EFFECT_SCOPE, s as effect, t as COMPUTED, u as isEffect } from "../lib-
|
|
2
|
-
import "../polyfill-
|
|
1
|
+
import { a as batch, c as effectScope, d as isEffectScope, f as isSignal, g as untracked, h as trigger, i as SIGNAL, l as isComputed, m as signal, n as EFFECT, o as computed, p as onCleanup, r as EFFECT_SCOPE, s as effect, t as COMPUTED, u as isEffect } from "../lib-CVfOddra.mjs";
|
|
2
|
+
import "../polyfill-CdZVCxdo.mjs";
|
|
3
3
|
//#region src/signals/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Type-guard: `true` when `value` is a reactive source (`signal` or `computed`),
|
package/dist/slot.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Slot, r as Slots, t as SLOTS } from "./slot-
|
|
1
|
+
import { n as Slot, r as Slots, t as SLOTS } from "./slot-BnzxFBfO.mjs";
|
|
2
2
|
export { SLOTS, Slot, Slots };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as plugins, C as getCallLastIndex, D as ordinal, E as noop, O as stringify, S as createSimpleStackTrace, T as isObject, _ as getSafeTimers, a as waitForImportsToResolve, b as printDiffOrStringify, d as getNames, g as delay, h as parseSingleStack, i as resetModules, j as y, k as format, m as parseErrorStacktrace, n as getWorkerState, r as isChildProcess, u as getCurrentTest, v as processError, w as getType, x as assertTypes, y as diff } from "./benchmark.CX_oY03V-
|
|
1
|
+
import { A as plugins, C as getCallLastIndex, D as ordinal, E as noop, O as stringify, S as createSimpleStackTrace, T as isObject, _ as getSafeTimers, a as waitForImportsToResolve, b as printDiffOrStringify, d as getNames, g as delay, h as parseSingleStack, i as resetModules, j as y, k as format, m as parseErrorStacktrace, n as getWorkerState, r as isChildProcess, u as getCurrentTest, v as processError, w as getType, x as assertTypes, y as diff } from "./benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
2
|
//#region node_modules/.pnpm/@vitest+spy@4.1.3/node_modules/@vitest/spy/dist/index.js
|
|
3
3
|
function isMockFunction(fn) {
|
|
4
4
|
return typeof fn === "function" && "_isMockFunction" in fn && fn._isMockFunction === true;
|
|
@@ -4735,10 +4735,10 @@ function offsetToLineNumber(source, offset) {
|
|
|
4735
4735
|
return line + 1;
|
|
4736
4736
|
}
|
|
4737
4737
|
//#endregion
|
|
4738
|
-
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.
|
|
4738
|
+
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.9_jsdom@29.1.0_vite@8.0.8_@types+node@25.5.2_esbuild@0.27.7_/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js
|
|
4739
4739
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4740
4740
|
//#endregion
|
|
4741
|
-
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.
|
|
4741
|
+
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.9_jsdom@29.1.0_vite@8.0.8_@types+node@25.5.2_esbuild@0.27.7_/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js
|
|
4742
4742
|
const RealDate = Date;
|
|
4743
4743
|
let now = null;
|
|
4744
4744
|
var MockDate = class MockDate extends RealDate {
|
|
@@ -5506,7 +5506,7 @@ var SnapshotClient = class {
|
|
|
5506
5506
|
}
|
|
5507
5507
|
};
|
|
5508
5508
|
//#endregion
|
|
5509
|
-
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.
|
|
5509
|
+
//#region node_modules/.pnpm/vitest@4.1.3_@types+node@25.5.2_happy-dom@20.8.9_jsdom@29.1.0_vite@8.0.8_@types+node@25.5.2_esbuild@0.27.7_/node_modules/vitest/dist/chunks/test.BmQO5GaM.js
|
|
5510
5510
|
var fakeTimersSrc = {};
|
|
5511
5511
|
var global$1;
|
|
5512
5512
|
var hasRequiredGlobal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
import { activeElement } from "./active-element.mjs";
|
|
4
4
|
//#region src/utilities/active-element.test.ts
|
|
5
5
|
describe("activeElement (singleton)", () => {
|
package/dist/utilities/async.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as untracked, m as signal, s as effect } from "../lib-
|
|
1
|
+
import { g as untracked, m as signal, s as effect } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import { resolve } from "../signals/index.mjs";
|
|
3
3
|
import { promise } from "./promise.mjs";
|
|
4
4
|
//#region src/utilities/async.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as signal, p as onCleanup, s as effect } from "../lib-
|
|
1
|
+
import { m as signal, p as onCleanup, s as effect } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { Async, async } from "./async.mjs";
|
|
6
6
|
import { createInterval } from "./interval.mjs";
|
|
7
7
|
//#region src/utilities/async.test.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope, m as signal, s as effect } from "../lib-
|
|
1
|
+
import { c as effectScope, m as signal, s as effect } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { getContext, setContext } from "./context.mjs";
|
|
6
6
|
//#region src/utilities/context.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope, m as signal } from "../lib-
|
|
1
|
+
import { c as effectScope, m as signal } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { c as beforeEach, f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { c as beforeEach, f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createDebounced } from "./debounced.mjs";
|
|
6
6
|
//#region src/utilities/debounced.test.ts
|
|
7
7
|
beforeEach(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as describe, t as bench } from "../benchmark.CX_oY03V-
|
|
1
|
+
import { l as describe, t as bench } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
2
|
//#region src/utilities/dom-lifecycle.bench.ts
|
|
3
3
|
describe("dom-lifecycle — registration cost", () => {
|
|
4
4
|
bench("register 100 entries on already-connected elements", () => {
|
|
@@ -58,7 +58,6 @@ type AdoptedCallback = (oldDocument: Document, newDocument: Document) => void;
|
|
|
58
58
|
*/
|
|
59
59
|
declare class DomLifecycleElement extends HTMLElement {
|
|
60
60
|
#private;
|
|
61
|
-
constructor();
|
|
62
61
|
set onConnect(fn: LifecycleCallback | null);
|
|
63
62
|
get onConnect(): LifecycleCallback | null;
|
|
64
63
|
set onDisconnect(fn: LifecycleCallback | null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
3
|
import { isBrowser } from "./environment.mjs";
|
|
4
4
|
//#region src/utilities/dom-lifecycle.ts
|
|
@@ -63,11 +63,6 @@ var DomLifecycleElement = class extends HTMLElement {
|
|
|
63
63
|
#onMove = null;
|
|
64
64
|
#onAdopted = null;
|
|
65
65
|
#disposeScope = null;
|
|
66
|
-
constructor() {
|
|
67
|
-
super();
|
|
68
|
-
this.style.display = "contents";
|
|
69
|
-
if (!this.hasAttribute("role")) this.setAttribute("role", "none");
|
|
70
|
-
}
|
|
71
66
|
set onConnect(fn) {
|
|
72
67
|
this.#onConnect = fn;
|
|
73
68
|
}
|
|
@@ -93,6 +88,8 @@ var DomLifecycleElement = class extends HTMLElement {
|
|
|
93
88
|
return this.#onAdopted;
|
|
94
89
|
}
|
|
95
90
|
connectedCallback() {
|
|
91
|
+
this.style.display = "contents";
|
|
92
|
+
if (!this.hasAttribute("role")) this.setAttribute("role", "none");
|
|
96
93
|
this.#disposeScope?.();
|
|
97
94
|
this.#disposeScope = effectScope(() => this.#onConnect?.(this));
|
|
98
95
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
import { DomLifecycleElement } from "./dom-lifecycle.mjs";
|
|
4
4
|
//#region src/utilities/dom-lifecycle.test.ts
|
|
5
5
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createElementRect } from "./element-rect.mjs";
|
|
6
6
|
//#region src/utilities/element-rect.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createElementScroll } from "./element-scroll.mjs";
|
|
6
6
|
//#region src/utilities/element-scroll.test.ts
|
|
7
7
|
describe("createElementScroll", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as trigger, i as SIGNAL, m as signal, o as computed, p as onCleanup } from "../lib-
|
|
1
|
+
import { h as trigger, i as SIGNAL, m as signal, o as computed, p as onCleanup } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
3
|
//#region src/utilities/event-driven.ts
|
|
4
4
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as effectScope, m as signal, s as effect } from "../lib-
|
|
1
|
+
import { c as effectScope, m as signal, s as effect } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
3
|
import { on } from "./event-listener.mjs";
|
|
4
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
5
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
4
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
5
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
6
6
|
//#region src/utilities/event-listener.test.ts
|
|
7
7
|
afterEach(() => {
|
|
8
8
|
document.body.innerHTML = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createFocusWithin } from "./focus-within.mjs";
|
|
6
6
|
//#region src/utilities/focus-within.test.ts
|
|
7
7
|
afterEach(() => {
|
package/dist/utilities/hover.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createHover } from "./hover.mjs";
|
|
6
6
|
//#region src/utilities/hover.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createIntersectionObserver } from "./intersection-observer.mjs";
|
|
6
6
|
//#region src/utilities/intersection-observer.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { async } from "./async.mjs";
|
|
6
6
|
import { createInterval } from "./interval.mjs";
|
|
7
7
|
//#region src/utilities/interval.test.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as trigger, m as signal, o as computed, p as onCleanup } from "../lib-
|
|
1
|
+
import { h as trigger, m as signal, o as computed, p as onCleanup } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
3
|
import { fromEvent } from "./event-driven.mjs";
|
|
4
4
|
import { isBrowser } from "./environment.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
import { currentLocation } from "./location.mjs";
|
|
4
4
|
//#region src/utilities/location.test.ts
|
|
5
5
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createLongPress } from "./long-press.mjs";
|
|
6
6
|
//#region src/utilities/long-press.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createMediaDevices } from "./media-devices.mjs";
|
|
6
6
|
//#region src/utilities/media-devices.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createMediaPlayer } from "./media-player.mjs";
|
|
6
6
|
//#region src/utilities/media-player.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createMutationObserver } from "./mutation-observer.mjs";
|
|
6
6
|
//#region src/utilities/mutation-observer.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
import { online } from "./network.mjs";
|
|
4
4
|
//#region src/utilities/network.test.ts
|
|
5
5
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { onClickOutside } from "./on-click-outside.mjs";
|
|
6
6
|
//#region src/utilities/on-click-outside.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope, m as signal } from "../lib-
|
|
1
|
+
import { c as effectScope, m as signal } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createPrevious } from "./previous.mjs";
|
|
6
6
|
//#region src/utilities/previous.test.ts
|
|
7
7
|
describe("createPrevious", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as effect } from "../lib-
|
|
1
|
+
import { s as effect } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { ReactivePromise, promise } from "./promise.mjs";
|
|
6
6
|
//#region src/utilities/promise.test.ts
|
|
7
7
|
describe("ReactivePromise", () => {
|
package/dist/utilities/retry.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as onCleanup } from "../lib-
|
|
1
|
+
import { p as onCleanup } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { retry } from "./retry.mjs";
|
|
6
6
|
//#region src/utilities/retry.test.ts
|
|
7
7
|
describe("retry", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as it, l as describe, o as afterEach, s as beforeAll } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { f as it, l as describe, o as afterEach, s as beforeAll } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
import { isLocalNavigationEvent, match, matches, navigate, patchHistory } from "./routing.mjs";
|
|
4
4
|
//#region src/utilities/routing.test.ts
|
|
5
5
|
beforeAll(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createSearchParam } from "./search-params.mjs";
|
|
6
6
|
//#region src/utilities/search-params.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as test } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { p as test } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
//#region src/utilities/ssr.test.ts
|
|
4
4
|
// @vitest-environment node
|
|
5
5
|
test.each([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createLocalStorage, createSessionStorage } from "./storage.mjs";
|
|
6
6
|
//#region src/utilities/storage.test.ts
|
|
7
7
|
describe("createLocalStorage", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope, m as signal } from "../lib-
|
|
1
|
+
import { c as effectScope, m as signal } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { c as beforeEach, f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { c as beforeEach, f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createThrottled } from "./throttled.mjs";
|
|
6
6
|
//#region src/utilities/throttled.test.ts
|
|
7
7
|
beforeEach(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as effectScope } from "../lib-
|
|
1
|
+
import { c as effectScope } from "../lib-CVfOddra.mjs";
|
|
2
2
|
import "../signals/index.mjs";
|
|
3
|
-
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-
|
|
4
|
-
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-
|
|
3
|
+
import { f as it, l as describe, o as afterEach } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
4
|
+
import { n as vi, t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
5
5
|
import { createTimeout } from "./timeout.mjs";
|
|
6
6
|
//#region src/utilities/timeout.test.ts
|
|
7
7
|
afterEach(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as it, l as describe } from "../benchmark.CX_oY03V-
|
|
2
|
-
import { t as globalExpect } from "../test.BmQO5GaM-
|
|
1
|
+
import { f as it, l as describe } from "../benchmark.CX_oY03V-COK1VBpH.mjs";
|
|
2
|
+
import { t as globalExpect } from "../test.BmQO5GaM-C8YqghE0.mjs";
|
|
3
3
|
import { windowSize } from "./window-size.mjs";
|
|
4
4
|
//#region src/utilities/window-size.test.ts
|
|
5
5
|
describe("windowSize (singleton)", () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elements-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "A lightweight reactive UI library that transforms native HTMLElements into reactive components with signals. Ideal for framework-agnostic applications and web components.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"webcomponents",
|
|
@@ -15,8 +15,19 @@
|
|
|
15
15
|
"html",
|
|
16
16
|
"web"
|
|
17
17
|
],
|
|
18
|
-
"author":
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Wael Bettayeb",
|
|
20
|
+
"url": "https://x.com/waelbettayeb"
|
|
21
|
+
},
|
|
19
22
|
"license": "MIT",
|
|
23
|
+
"homepage": "https://elements-kit.com/",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/waelbettayeb/elements-kit.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/waelbettayeb/elements-kit/issues"
|
|
30
|
+
},
|
|
20
31
|
"main": "./dist/index.mjs",
|
|
21
32
|
"types": "./dist/index.d.mts",
|
|
22
33
|
"files": [
|
|
File without changes
|
|
File without changes
|