ilha 0.14.6 → 0.14.8
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 -2
- package/dist/define.d.ts +1 -1
- package/dist/define.js +1 -1
- package/dist/index.d.ts +53 -32
- package/dist/index.js +465 -12
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/jsx-runtime.js +1 -1
- package/dist/{mount-DiIEX8s7.js → mount-BQ-zcg2x.js} +256 -55
- package/dist/types-CJF2qMK6.d.ts +100 -0
- package/dist/{vnode-C_BdUnIA.d.ts → vnode-CUTNGblA.d.ts} +13 -1
- package/dist/{vnode-DEMDQ0eA.js → vnode-M-oJMKcv.js} +1 -1
- package/package.json +3 -3
- package/dist/types-CyoYWhJf.d.ts +0 -48
package/dist/types-CyoYWhJf.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import "effect/Scope";
|
|
2
|
-
import { AtomRegistry } from "effect/unstable/reactivity/AtomRegistry";
|
|
3
|
-
import { Effect, Stream } from "effect";
|
|
4
|
-
import { Atom } from "effect/unstable/reactivity";
|
|
5
|
-
//#region src/types.d.ts
|
|
6
|
-
type JsonText = string | number | bigint | boolean | null | undefined;
|
|
7
|
-
/** Runtime prop bag values painted onto elements / passed to components. */
|
|
8
|
-
type PropValue = JsonText | PropBag | StyleObject | EventHandler | AtomHandle<JsonText> | readonly PropValue[];
|
|
9
|
-
type StyleObject = Readonly<Record<string, string | number | null | undefined>>;
|
|
10
|
-
type EventHandler = (event: Event) => void;
|
|
11
|
-
/** Indexed bag — interface so PropValue can recurse without a circular type alias. */
|
|
12
|
-
interface PropBag {
|
|
13
|
-
readonly [key: string]: PropValue | undefined;
|
|
14
|
-
}
|
|
15
|
-
type View = VNode | UnsafeHtml | JsonText | AtomHandle<unknown> | Stream.Stream<View, unknown, unknown> | GeneratorFn | Component | View[] | Iterable<View>;
|
|
16
|
-
declare const Fragment: unique symbol;
|
|
17
|
-
type Fragment = typeof Fragment;
|
|
18
|
-
type ComponentFn = (props: PropBag) => View | Promise<View | undefined> | undefined;
|
|
19
|
-
/** JSX/tag component with its own props shape (Provider, ErrorBoundary, …). */
|
|
20
|
-
type JsxComponent = (props: never) => View | Promise<View | undefined> | Generator<View, View | undefined, View> | undefined;
|
|
21
|
-
/** Raw HTML view produced by `unsafe()` — painted without escaping. */
|
|
22
|
-
interface UnsafeHtml {
|
|
23
|
-
readonly $$ilhaUnsafe: 1;
|
|
24
|
-
readonly html: string;
|
|
25
|
-
}
|
|
26
|
-
interface VNode {
|
|
27
|
-
readonly $$ilha: 1;
|
|
28
|
-
readonly type: string | Fragment | ComponentFn | JsxComponent;
|
|
29
|
-
readonly props: PropBag;
|
|
30
|
-
readonly children: View[];
|
|
31
|
-
readonly key?: string | number;
|
|
32
|
-
}
|
|
33
|
-
type GeneratorFn = () => Generator<Yielded, View | undefined, View>;
|
|
34
|
-
type Yielded = View | Instruction<unknown> | Effect.Effect<unknown, unknown, unknown>;
|
|
35
|
-
interface Instruction<A, E = Error> extends Iterable<Instruction<A, E>, A>, PromiseLike<A> {
|
|
36
|
-
readonly $$ilhaOp: 1;
|
|
37
|
-
readonly effect: Effect.Effect<A, E, AtomRegistry>;
|
|
38
|
-
}
|
|
39
|
-
type Component = (() => View | undefined | Promise<View | undefined>) | GeneratorFn;
|
|
40
|
-
interface AtomHandle<A> {
|
|
41
|
-
readonly $$atom: 1;
|
|
42
|
-
readonly atom: Atom.Atom<A>;
|
|
43
|
-
(): A;
|
|
44
|
-
set: (next: A) => void;
|
|
45
|
-
update: (f: (current: A) => A) => void;
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
export { Instruction as a, UnsafeHtml as c, Yielded as d, Fragment as i, VNode as l, Component as n, JsxComponent as o, ComponentFn as r, PropBag as s, AtomHandle as t, View as u };
|