@sylphx/lens-react 1.2.9 → 1.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/lens-react",
3
- "version": "1.2.9",
3
+ "version": "1.2.13",
4
4
  "description": "React bindings for Lens API framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "build": "bunup",
16
16
  "typecheck": "tsc --noEmit",
17
17
  "test": "bun test",
18
- "prepack": "bun run build"
18
+ "prepack": "[ -d dist ] || bun run build"
19
19
  },
20
20
  "files": [
21
21
  "dist",
@@ -30,7 +30,7 @@
30
30
  "author": "SylphxAI",
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@sylphx/lens-client": "^1.7.1"
33
+ "@sylphx/lens-client": "^1.7.5"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": ">=18.0.0"
@@ -15,7 +15,7 @@ const test = hasDom ? bunTest : bunTest.skip;
15
15
  import type { MutationResult, QueryResult } from "@sylphx/lens-client";
16
16
  import { signal } from "@sylphx/lens-client";
17
17
  import { act, renderHook, waitFor } from "@testing-library/react";
18
- import { useLazyQuery, useMutation, useQuery } from "./hooks";
18
+ import { useLazyQuery, useMutation, useQuery } from "./hooks.js";
19
19
 
20
20
  // =============================================================================
21
21
  // Mock QueryResult
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // Context & Provider
10
10
  // =============================================================================
11
11
 
12
- export { LensProvider, type LensProviderProps, useLensClient } from "./context";
12
+ export { LensProvider, type LensProviderProps, useLensClient } from "./context.js";
13
13
 
14
14
  // =============================================================================
15
15
  // Hooks (Operations-based API)
@@ -28,4 +28,4 @@ export {
28
28
  useMutation,
29
29
  // Query hooks
30
30
  useQuery,
31
- } from "./hooks";
31
+ } from "./hooks.js";