@basictech/nextjs 0.1.1-beta.0 → 0.2.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basictech/nextjs",
3
- "version": "0.1.1-beta.0",
3
+ "version": "0.2.0-beta.10",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -17,14 +17,9 @@
17
17
  "author": "",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
+ "@basictech/react": "0.2.0-beta.10",
20
21
  "@radix-ui/react-avatar": "^1.1.1",
21
- "@radix-ui/react-popover": "^1.1.2",
22
- "dexie": "^4.0.8",
23
- "dexie-observable": "^4.0.1-beta.13",
24
- "dexie-react-hooks": "^1.1.7",
25
- "dexie-syncable": "^4.0.1-beta.13",
26
- "jwt-decode": "^4.0.0",
27
- "uuid": "^10.0.0"
22
+ "@radix-ui/react-popover": "^1.1.2"
28
23
  },
29
24
  "devDependencies": {
30
25
  "@repo/typescript-config": "*",
@@ -33,7 +28,7 @@
33
28
  "typescript": "^5.0.0"
34
29
  },
35
30
  "peerDependencies": {
36
- "react": "^18.3.1",
37
- "rxjs": "^7.8.1"
31
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
32
+ "next": "^14.0.0"
38
33
  }
39
34
  }
package/src/index.ts CHANGED
@@ -1,18 +1,14 @@
1
- "use client"
1
+ 'use client'
2
2
 
3
- // import { useBasic, BasicProvider } from "./AuthContext";
4
- // import { useLiveQuery as useQuery } from "dexie-react-hooks"
3
+ import dynamic from 'next/dynamic'
5
4
 
6
- import { useBasic, BasicProvider, useQuery } from "@basictech/react"
5
+ import { useBasic, useQuery } from "@basictech/react"
7
6
  import LoginButton from "./componets";
8
7
 
9
- // import dynamic from 'next/dynamic'
10
8
 
11
- // const BasicSync = dynamic(() => import('./sync'), { ssr: false })
12
- // import { BasicSync } from "./sync"
9
+ const BasicProvider = dynamic(() => import('@basictech/react').then(mod => mod.BasicProvider), { ssr: false });
10
+
13
11
 
14
12
  export {
15
13
  useBasic, BasicProvider, useQuery, LoginButton
16
- }
17
-
18
-
14
+ }