ilha 0.14.9 → 0.14.10
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/define.d.ts +2 -3
- package/dist/index.d.ts +16 -16
- package/dist/jsx-runtime.d.ts +4 -4
- package/package.json +3 -3
package/dist/define.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { i as Component } from "./types-CJF2qMK6.js";
|
|
2
2
|
//#region src/define.d.ts
|
|
3
|
-
declare const define: (name: string, component: Component) => void;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { define };
|
|
3
|
+
export declare const define: (name: string, component: Component) => void;
|
|
4
|
+
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ interface IlhaContext<A> {
|
|
|
16
16
|
readonly defaultValue: A;
|
|
17
17
|
readonly Provider: (props: ContextProviderProps<A>) => View;
|
|
18
18
|
}
|
|
19
|
-
declare const createContext: <A>(defaultValue: A) => IlhaContext<A>;
|
|
19
|
+
export declare const createContext: <A>(defaultValue: A) => IlhaContext<A>;
|
|
20
20
|
/** Read a context value as an atom handle. Subscribes the active fiber on read. */
|
|
21
|
-
declare const context: <A>(ctx: IlhaContext<A>) => AtomHandle<A>;
|
|
21
|
+
export declare const context: <A>(ctx: IlhaContext<A>) => AtomHandle<A>;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/error-boundary.d.ts
|
|
24
24
|
interface ErrorFallbackProps {
|
|
@@ -32,7 +32,7 @@ interface ErrorBoundaryProps {
|
|
|
32
32
|
children?: View;
|
|
33
33
|
}
|
|
34
34
|
/** Catch subtree failures and paint a fallback. Supports reset(). */
|
|
35
|
-
declare const ErrorBoundary: (props: ErrorBoundaryProps) => View;
|
|
35
|
+
export declare const ErrorBoundary: (props: ErrorBoundaryProps) => View;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/watch.d.ts
|
|
38
38
|
/** Values delivered to watch callbacks. */
|
|
@@ -44,30 +44,30 @@ interface WatchFn {
|
|
|
44
44
|
<A extends WatchValue>(source: AtomHandle<A> | Atom.Atom<A> | Stream$1.Stream<A, unknown, unknown>, fn: WatchCallback<A>): Instruction<undefined>;
|
|
45
45
|
once: (fn: (ctx: WatchContext) => WatchOnceCleanup | undefined | Promise<WatchOnceCleanup | undefined>) => Instruction<undefined>;
|
|
46
46
|
}
|
|
47
|
-
declare const watch: WatchFn;
|
|
47
|
+
export declare const watch: WatchFn;
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/atom.d.ts
|
|
50
50
|
/** Key-order-insensitive deep equality for JSON-shaped values. */
|
|
51
|
-
declare const structuralEqual: typeof Equal.equals;
|
|
51
|
+
export declare const structuralEqual: typeof Equal.equals;
|
|
52
52
|
/** Read atoms inside `fn` without subscribing the active render. Sync only. */
|
|
53
|
-
declare const untrack: <A>(fn: () => A) => A;
|
|
53
|
+
export declare const untrack: <A>(fn: () => A) => A;
|
|
54
54
|
interface AtomFn {
|
|
55
55
|
<A>(init: A | Atom.Atom<A> | Effect$1.Effect<A, unknown, AtomRegistry> | Stream$1.Stream<A, unknown, AtomRegistry>, options?: AtomOptions<A>): AtomHandle<A>;
|
|
56
56
|
lazy: <A>(init: () => A) => AtomHandle<A>;
|
|
57
57
|
}
|
|
58
|
-
declare const atom: AtomFn;
|
|
59
|
-
declare const batch: (f: () => void) => void;
|
|
58
|
+
export declare const atom: AtomFn;
|
|
59
|
+
export declare const batch: (f: () => void) => void;
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/resource.d.ts
|
|
62
62
|
/** Drop the cached value for `key` and refetch it in live components. */
|
|
63
|
-
declare const invalidate: (key: string) => void;
|
|
63
|
+
export declare const invalidate: (key: string) => void;
|
|
64
64
|
/**
|
|
65
65
|
* Fetch-once, share-everywhere async state for `key`. Concurrent mounts
|
|
66
66
|
* dedupe on one in-flight request; remounts seed from the shared cache
|
|
67
67
|
* (and revalidate when `staleWhileRevalidate` holds). Call unconditionally
|
|
68
68
|
* at the top level of a sync component, before any `await`.
|
|
69
69
|
*/
|
|
70
|
-
declare const resource: <T>(key: string, fetcher: ResourceFetcher<T>, opts?: ResourceOptions) => Resource<T>;
|
|
70
|
+
export declare const resource: <T>(key: string, fetcher: ResourceFetcher<T>, opts?: ResourceOptions) => Resource<T>;
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/sse.d.ts
|
|
73
73
|
/**
|
|
@@ -76,10 +76,10 @@ declare const resource: <T>(key: string, fetcher: ResourceFetcher<T>, opts?: Res
|
|
|
76
76
|
* an empty stream with status `"closed"`. Call unconditionally at the top
|
|
77
77
|
* level of a component.
|
|
78
78
|
*/
|
|
79
|
-
declare const fromEventSource: <T = string>(url: string, opts?: EventSourceOptions<T>) => EventSourceFeed<T>;
|
|
79
|
+
export declare const fromEventSource: <T = string>(url: string, opts?: EventSourceOptions<T>) => EventSourceFeed<T>;
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/when.d.ts
|
|
82
|
-
declare const when: <A, E = never, R = never>(stream: Stream$1.Stream<A, E, R>, body: (value: A) => Generator<Yielded, View | undefined, View>) => Instruction<undefined, E>;
|
|
82
|
+
export declare const when: <A, E = never, R = never>(stream: Stream$1.Stream<A, E, R>, body: (value: A) => Generator<Yielded, View | undefined, View>) => Instruction<undefined, E>;
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/mount.d.ts
|
|
85
85
|
interface RenderToStringOptions {
|
|
@@ -92,8 +92,8 @@ interface MountOptions {
|
|
|
92
92
|
hydrate?: boolean;
|
|
93
93
|
onError?: <E>(error: E) => void;
|
|
94
94
|
}
|
|
95
|
-
declare const mount: (el: Element, fn: Component, opts?: MountOptions) => (() => void);
|
|
96
|
-
declare const renderToString: (fn: Component, opts?: RenderToStringOptions) => Promise<string>;
|
|
95
|
+
export declare const mount: (el: Element, fn: Component, opts?: MountOptions) => (() => void);
|
|
96
|
+
export declare const renderToString: (fn: Component, opts?: RenderToStringOptions) => Promise<string>;
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/unsafe.d.ts
|
|
99
99
|
/**
|
|
@@ -104,6 +104,6 @@ declare const renderToString: (fn: Component, opts?: RenderToStringOptions) => P
|
|
|
104
104
|
* scripts inserted this way do not run, but event attributes and other
|
|
105
105
|
* markup still apply.
|
|
106
106
|
*/
|
|
107
|
-
declare const unsafe: (html: string) => UnsafeHtml;
|
|
107
|
+
export declare const unsafe: (html: string) => UnsafeHtml;
|
|
108
108
|
//#endregion
|
|
109
|
-
export { type AtomEquality, type AtomHandle, type AtomOptions, type Component, type ContextProviderProps,
|
|
109
|
+
export { type AtomEquality, type AtomHandle, type AtomOptions, type Component, type ContextProviderProps, type ErrorBoundaryProps, type ErrorFallback, type ErrorFallbackProps, type EventSourceFeed, type EventSourceOptions, type EventSourceStatus, Fragment, type IlhaContext, type MountOptions, type RenderToStringOptions, type Resource, type ResourceFetcher, type ResourceOptions, type UnsafeHtml, type View, type WatchCallback, type WatchContext, type WatchOnceCleanup, h };
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as ComponentFn, d as JsxComponent, f as PropBag, l as Fragment, v as View } from "./types-CJF2qMK6.js";
|
|
2
2
|
import { n as JSX, t as h } from "./vnode-CUTNGblA.js";
|
|
3
3
|
//#region src/jsx-runtime.d.ts
|
|
4
|
-
declare const jsx: (type: string | Fragment | ComponentFn | JsxComponent, props: PropBag | null, key?: string | number) => ReturnType<typeof h>;
|
|
5
|
-
declare const jsxs:
|
|
6
|
-
declare const jsxDEV:
|
|
4
|
+
export declare const jsx: (type: string | Fragment | ComponentFn | JsxComponent, props: PropBag | null, key?: string | number) => ReturnType<typeof h>;
|
|
5
|
+
export declare const jsxs: typeof jsx;
|
|
6
|
+
export declare const jsxDEV: typeof jsx;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { Fragment, type JSX, type View, h
|
|
8
|
+
export { Fragment, type JSX, type View, h };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ilha",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.10",
|
|
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.14.5",
|
|
68
|
-
"effect": "^4.0.0
|
|
68
|
+
"effect": "^4.0.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"effect": "^4.0.0
|
|
71
|
+
"effect": "^4.0.0"
|
|
72
72
|
}
|
|
73
73
|
}
|