elements-kit 0.23.0 → 0.23.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/await.d.mts +1 -1
- package/dist/{children-BbHF-Dew.d.mts → children-CYLVeDZc.d.mts} +1 -1
- package/dist/for.d.mts +1 -1
- package/dist/{index-BR8XVkck.d.mts → index-CzKKJCCK.d.mts} +2 -2
- package/dist/integrations/react.d.mts +1 -1
- package/dist/jsx-runtime/index.d.mts +2 -2
- package/dist/signals/index.d.mts +1 -1
- package/dist/signals/index.mjs +3 -3
- package/dist/utilities/active-element.d.mts +1 -1
- package/dist/utilities/async.d.mts +1 -1
- package/dist/utilities/debounced.d.mts +1 -1
- package/dist/utilities/element-rect.d.mts +1 -1
- package/dist/utilities/element-scroll.d.mts +1 -1
- package/dist/utilities/event-driven.d.mts +1 -1
- package/dist/utilities/event-listener.d.mts +1 -1
- package/dist/utilities/focus-within.d.mts +1 -1
- package/dist/utilities/hover.d.mts +1 -1
- package/dist/utilities/interval.d.mts +1 -1
- package/dist/utilities/location.d.mts +1 -1
- package/dist/utilities/media-devices.d.mts +1 -1
- package/dist/utilities/media-player.d.mts +1 -1
- package/dist/utilities/media-query.d.mts +1 -1
- package/dist/utilities/network.d.mts +1 -1
- package/dist/utilities/orientation.d.mts +1 -1
- package/dist/utilities/previous.d.mts +1 -1
- package/dist/utilities/promise.d.mts +1 -1
- package/dist/utilities/routing.d.mts +1 -1
- package/dist/utilities/search-params.d.mts +1 -1
- package/dist/utilities/storage.d.mts +1 -1
- package/dist/utilities/throttled.d.mts +1 -1
- package/dist/utilities/timeout.d.mts +1 -1
- package/dist/utilities/window-focus.d.mts +1 -1
- package/dist/utilities/window-size.d.mts +1 -1
- package/package.json +1 -1
package/dist/await.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AttrChangeHandler, t as ATTRIBUTES } from "./attributes-DILeh3-s.mjs";
|
|
2
2
|
import { i as PropertiesOf, n as CustomElementRegistry, r as EventsOf } from "./custom-elements-CdpilMDu.mjs";
|
|
3
|
-
import { r as MaybeReactive } from "./index-
|
|
3
|
+
import { r as MaybeReactive } from "./index-CzKKJCCK.mjs";
|
|
4
4
|
import * as CSS from "csstype";
|
|
5
5
|
import { JSX } from "dom-expressions/src/jsx";
|
|
6
6
|
|
package/dist/for.d.mts
CHANGED
|
@@ -373,8 +373,8 @@ type NoArgFnProps<P> = { [K in keyof P]: ArgCount<P[K]> extends 0 ? P[K] : ArgFn
|
|
|
373
373
|
* components their props untouched.
|
|
374
374
|
*
|
|
375
375
|
* Every key is callable, including one the caller omitted. A getter is always
|
|
376
|
-
* truthy, so defaults go on the call: `props.excited() ?? "…"`.
|
|
377
|
-
*
|
|
376
|
+
* truthy, so defaults go on the call: `props.excited() ?? "…"`. Keys are
|
|
377
|
+
* branded sources, so they keep working when forwarded to a child component.
|
|
378
378
|
*
|
|
379
379
|
* Function props are the limit: a prop taking arguments is rejected, and a
|
|
380
380
|
* zero-arg one types as its return value. Read those off the raw props.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as Fragment, c as PropsOf, i as JSX, l as Require, n as ComponentClass, o as MaybeReactiveProps, r as ComponentFn, s as Props, t as Children, u as createElement } from "../children-
|
|
2
|
-
import { n as ComputedProps, r as MaybeReactive } from "../index-
|
|
1
|
+
import { a as Fragment, c as PropsOf, i as JSX, l as Require, n as ComponentClass, o as MaybeReactiveProps, r as ComponentFn, s as Props, t as Children, u as createElement } from "../children-CYLVeDZc.mjs";
|
|
2
|
+
import { n as ComputedProps, r as MaybeReactive } from "../index-CzKKJCCK.mjs";
|
|
3
3
|
export { type Children, ComponentClass, ComponentFn, type ComputedProps, Fragment, JSX, type MaybeReactive, type MaybeReactiveProps, type Props, type PropsOf, type Require, createElement as h, createElement as jsx, createElement as jsxDEV, createElement as jsxs };
|
package/dist/signals/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as isSignal, D as untracked, E as trigger, S as isEffectScope, T as signal, _ as computed, a as Updater, b as isComputed, c as reactive, d as COMPUTED, f as EFFECT, g as batch, h as SIGNAL, i as Signal, l as resolve, m as SEED, n as ComputedProps, o as computedProps, p as EFFECT_SCOPE, r as MaybeReactive, s as isReactive, t as Computed, u as CLAIM, v as effect, w as onCleanup, x as isEffect, y as effectScope } from "../index-
|
|
1
|
+
import { C as isSignal, D as untracked, E as trigger, S as isEffectScope, T as signal, _ as computed, a as Updater, b as isComputed, c as reactive, d as COMPUTED, f as EFFECT, g as batch, h as SIGNAL, i as Signal, l as resolve, m as SEED, n as ComputedProps, o as computedProps, p as EFFECT_SCOPE, r as MaybeReactive, s as isReactive, t as Computed, u as CLAIM, v as effect, w as onCleanup, x as isEffect, y as effectScope } from "../index-CzKKJCCK.mjs";
|
|
2
2
|
export { CLAIM, COMPUTED, Computed, ComputedProps, EFFECT, EFFECT_SCOPE, MaybeReactive, SEED, SIGNAL, Signal, Updater, batch, computed, computedProps, effect, effectScope, isComputed, isEffect, isEffectScope, isReactive, isSignal, onCleanup, reactive, resolve, signal, trigger, untracked };
|
package/dist/signals/index.mjs
CHANGED
|
@@ -101,8 +101,8 @@ const COMPUTED_PROPS = Symbol.for("elements-kit.computed-props");
|
|
|
101
101
|
* components their props untouched.
|
|
102
102
|
*
|
|
103
103
|
* Every key is callable, including one the caller omitted. A getter is always
|
|
104
|
-
* truthy, so defaults go on the call: `props.excited() ?? "…"`.
|
|
105
|
-
*
|
|
104
|
+
* truthy, so defaults go on the call: `props.excited() ?? "…"`. Keys are
|
|
105
|
+
* branded sources, so they keep working when forwarded to a child component.
|
|
106
106
|
*
|
|
107
107
|
* Function props are the limit: a prop taking arguments is rejected, and a
|
|
108
108
|
* zero-arg one types as its return value. Read those off the raw props.
|
|
@@ -124,7 +124,7 @@ function computedProps(raw) {
|
|
|
124
124
|
let getter = cache.get(key);
|
|
125
125
|
if (!getter) {
|
|
126
126
|
const v = raw[key];
|
|
127
|
-
getter = isReactive(v) ? v : () => v;
|
|
127
|
+
getter = isReactive(v) ? v : computed(() => v);
|
|
128
128
|
cache.set(key, getter);
|
|
129
129
|
}
|
|
130
130
|
return getter;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elements-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.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",
|