ilha 0.14.5 → 0.14.7
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 +64 -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-C5idXX3H.js → mount-rXNnaIWf.js} +264 -55
- package/dist/types-CJF2qMK6.d.ts +100 -0
- package/dist/{vnode-Bwx8ffNO.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-CUQdA6hR.d.ts +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ilha",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.7",
|
|
4
4
|
"description": "Generator-first island UI on Effect",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"effect",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@happy-dom/global-registrator": "^20.11.2",
|
|
68
|
-
"effect": "^4.0.0-rc.
|
|
68
|
+
"effect": "^4.0.0-rc.118"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"effect": "^4.0.0-rc.
|
|
71
|
+
"effect": "^4.0.0-rc.118"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/dist/types-CUQdA6hR.d.ts
DELETED
|
@@ -1,43 +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 | 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
|
-
interface VNode {
|
|
22
|
-
readonly $$ilha: 1;
|
|
23
|
-
readonly type: string | Fragment | ComponentFn | JsxComponent;
|
|
24
|
-
readonly props: PropBag;
|
|
25
|
-
readonly children: View[];
|
|
26
|
-
readonly key?: string | number;
|
|
27
|
-
}
|
|
28
|
-
type GeneratorFn = () => Generator<Yielded, View | undefined, View>;
|
|
29
|
-
type Yielded = View | Instruction<unknown> | Effect.Effect<unknown, unknown, unknown>;
|
|
30
|
-
interface Instruction<A, E = Error> extends Iterable<Instruction<A, E>, A>, PromiseLike<A> {
|
|
31
|
-
readonly $$ilhaOp: 1;
|
|
32
|
-
readonly effect: Effect.Effect<A, E, AtomRegistry>;
|
|
33
|
-
}
|
|
34
|
-
type Component = (() => View | undefined | Promise<View | undefined>) | GeneratorFn;
|
|
35
|
-
interface AtomHandle<A> {
|
|
36
|
-
readonly $$atom: 1;
|
|
37
|
-
readonly atom: Atom.Atom<A>;
|
|
38
|
-
(): A;
|
|
39
|
-
set: (next: A) => void;
|
|
40
|
-
update: (f: (current: A) => A) => void;
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
export { Instruction as a, VNode as c, Fragment as i, View as l, Component as n, JsxComponent as o, ComponentFn as r, PropBag as s, AtomHandle as t, Yielded as u };
|