what-core 0.6.1 → 0.6.3
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/README.md +2 -0
- package/compiler.d.ts +30 -0
- package/devtools.d.ts +2 -0
- package/dist/compiler.js +1787 -0
- package/dist/compiler.js.map +7 -0
- package/dist/compiler.min.js +2 -0
- package/dist/compiler.min.js.map +7 -0
- package/dist/devtools.js +10 -0
- package/dist/devtools.js.map +7 -0
- package/dist/devtools.min.js +2 -0
- package/dist/devtools.min.js.map +7 -0
- package/dist/index.js +331 -382
- package/dist/index.js.map +4 -4
- package/dist/index.min.js +62 -62
- package/dist/index.min.js.map +4 -4
- package/dist/render.js +263 -21
- package/dist/render.js.map +4 -4
- package/dist/render.min.js +58 -1
- package/dist/render.min.js.map +4 -4
- package/dist/testing.js +3 -0
- package/dist/testing.js.map +2 -2
- package/dist/testing.min.js +1 -1
- package/dist/testing.min.js.map +2 -2
- package/index.d.ts +176 -1
- package/jsx-runtime.d.ts +622 -0
- package/package.json +20 -2
- package/src/agent-context.js +1 -1
- package/src/compiler.js +18 -0
- package/src/components.js +73 -27
- package/src/devtools.js +4 -0
- package/src/dom.js +7 -0
- package/src/guardrails.js +3 -4
- package/src/hooks.js +0 -11
- package/src/index.js +5 -9
- package/src/render.js +94 -24
- package/dist/a11y.js +0 -440
- package/dist/animation.js +0 -548
- package/dist/components.js +0 -229
- package/dist/data.js +0 -638
- package/dist/dom.js +0 -439
- package/dist/form.js +0 -509
- package/dist/h.js +0 -152
- package/dist/head.js +0 -51
- package/dist/helpers.js +0 -140
- package/dist/hooks.js +0 -210
- package/dist/reactive.js +0 -432
- package/dist/scheduler.js +0 -246
- package/dist/skeleton.js +0 -363
- package/dist/store.js +0 -83
- package/dist/what.js +0 -117
package/README.md
CHANGED
|
@@ -98,6 +98,8 @@ mount(<Counter />, '#app');
|
|
|
98
98
|
|
|
99
99
|
**Store** -- `createStore`, `derived`, `atom`
|
|
100
100
|
|
|
101
|
+
> `storeComputed(fn)` is a deprecated compatibility alias for `derived(fn)`. Use `derived` for new store computed fields.
|
|
102
|
+
|
|
101
103
|
**Data Fetching** -- `useSWR`, `useQuery`, `useInfiniteQuery`, `invalidateQueries`, `prefetchQuery`
|
|
102
104
|
|
|
103
105
|
**Forms** -- `useForm`, `useField`, `rules`, `zodResolver`, `Input`, `Select`, `Checkbox`, `ErrorMessage`
|
package/compiler.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Component, VNodeChild } from './index';
|
|
2
|
+
|
|
3
|
+
/** @internal Compiler target for component instantiation. */
|
|
4
|
+
export function _$createComponent(
|
|
5
|
+
Component: Component<any>,
|
|
6
|
+
props: Record<string, any>,
|
|
7
|
+
children?: VNodeChild[],
|
|
8
|
+
): any;
|
|
9
|
+
|
|
10
|
+
/** @internal Compiler target for pre-parsed HTML templates. */
|
|
11
|
+
export function _$template(html: string): () => Element;
|
|
12
|
+
|
|
13
|
+
/** @internal Legacy compiler template alias. */
|
|
14
|
+
export function _template(html: string): () => Element;
|
|
15
|
+
|
|
16
|
+
/** @internal Compiler template helper. Prefer JSX in application code. */
|
|
17
|
+
export function template(html: string): () => Element;
|
|
18
|
+
export function insert(parent: Node, child: any, marker?: Node | null): any;
|
|
19
|
+
export function mapArray<T>(
|
|
20
|
+
source: () => T[],
|
|
21
|
+
mapFn: (item: T | ((next?: T) => T), index: number) => Node,
|
|
22
|
+
options?: { key?: (item: T) => string | number; raw?: boolean },
|
|
23
|
+
): (parent: Node, marker?: Node | null) => Node;
|
|
24
|
+
export function spread(el: Element, props: Record<string, any>): void;
|
|
25
|
+
export function setProp(el: Element, key: string, value: any): void;
|
|
26
|
+
export function delegateEvents(eventNames: string[]): void;
|
|
27
|
+
export function on(el: Element, event: string, handler: (e: Event) => void): () => void;
|
|
28
|
+
export function classList(el: Element, classes: Record<string, boolean | (() => boolean)>): void;
|
|
29
|
+
export function effect(fn: () => void | (() => void)): () => void;
|
|
30
|
+
export function untrack<T>(fn: () => T): T;
|
package/devtools.d.ts
ADDED