@tilia/react 5.2.0 → 6.0.0-beta.20260820T171602

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # React hooks for tilia
2
2
 
3
- Check the [**website**](https://tiliajs.com) for documentation and examples.
3
+ Check the [documentation](https://tiliajs.dev/react) for the React API and examples.
4
4
 
5
5
  ## API (in case the website is not available)
6
6
 
@@ -30,10 +30,10 @@ let make: tilia => tilia_react
30
30
 
31
31
  ```ts
32
32
  import type { Tilia } from "tilia";
33
- export interface TiliaReact {
33
+ export type TiliaReact = {
34
34
  useTilia: () => void;
35
35
  useComputed: <T>(fn: () => T) => signal<A>;
36
- }
36
+ };
37
37
 
38
38
  export function useTilia(): void;
39
39
  export function useComputed<T>(fn: () => T): signal<T>;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import type { Tilia } from "tilia";
2
- export interface TiliaReact {
2
+ export type TiliaReact = {
3
3
  /** Call at the top of a React component to enable reactive tracking. Prefer `leaf` instead. */
4
4
  useTilia: () => void;
5
5
  /** Compute a value and only re-render when the result changes, not the dependencies. */
6
6
  useComputed: <T>(fn: () => T) => T;
7
7
  /** Wrap a React component for exact dependency tracking (preferred over `useTilia`). */
8
8
  leaf: <T, U>(fn: (p: T) => U) => (p: T) => U;
9
- }
9
+ };
10
10
 
11
11
  /** Create a `@tilia/react` API from a tilia context. */
12
12
  export function make(tilia: Tilia): TiliaReact;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tilia/react",
3
- "version": "5.2.0",
4
- "homepage": "https://tiliajs.com",
3
+ "version": "6.0.0-beta.20260820T171602",
4
+ "homepage": "https://tiliajs.dev/react",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -30,6 +30,6 @@
30
30
  "react": "*"
31
31
  },
32
32
  "dependencies": {
33
- "tilia": "^5.2"
33
+ "tilia": "6.0.0-beta.20260820T171602"
34
34
  }
35
35
  }