@basictech/react 0.1.0 → 0.2.0-beta.1

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/changelog.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # 1.3.4
2
2
 
3
+ ## 0.2.0-beta.1
4
+
5
+ ### Minor Changes
6
+
7
+ - dependency updates
8
+ - 13594a9: added basic-sync
9
+ - dependency update
10
+
11
+ ### Patch Changes
12
+
13
+ - 3c7b34e: version changes mostly
14
+ - Updated dependencies [3c7b34e]
15
+ - Updated dependencies
16
+ - @repo/sync@0.1.0-beta.0
17
+
18
+ ## 0.1.1-beta.0
19
+
20
+ ### Patch Changes
21
+
22
+ - c085672: reset versions
23
+
3
24
  ## 1.1.0
4
25
 
5
26
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,6 +1,15 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React from 'react';
3
+ export { useLiveQuery as useQuery } from 'dexie-react-hooks';
3
4
 
5
+ declare enum DBStatus {
6
+ LOADING = "LOADING",
7
+ OFFLINE = "OFFLINE",
8
+ CONNECTING = "CONNECTING",
9
+ ONLINE = "ONLINE",
10
+ SYNCING = "SYNCING",
11
+ ERROR = "ERROR"
12
+ }
4
13
  type User = {
5
14
  name?: string;
6
15
  email?: string;
@@ -10,9 +19,10 @@ type User = {
10
19
  };
11
20
  fullName?: string;
12
21
  };
13
- declare function BasicProvider({ children, project_id }: {
22
+ declare function BasicProvider({ children, project_id, schema }: {
14
23
  children: React.ReactNode;
15
24
  project_id: string;
25
+ schema: any;
16
26
  }): react_jsx_runtime.JSX.Element;
17
27
  declare function useBasic(): {
18
28
  unicorn: string;
@@ -24,6 +34,7 @@ declare function useBasic(): {
24
34
  getToken: () => Promise<string>;
25
35
  getSignInLink: () => string;
26
36
  db: any;
37
+ dbStatus: DBStatus;
27
38
  };
28
39
 
29
40
  export { BasicProvider, useBasic };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,15 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React from 'react';
3
+ export { useLiveQuery as useQuery } from 'dexie-react-hooks';
3
4
 
5
+ declare enum DBStatus {
6
+ LOADING = "LOADING",
7
+ OFFLINE = "OFFLINE",
8
+ CONNECTING = "CONNECTING",
9
+ ONLINE = "ONLINE",
10
+ SYNCING = "SYNCING",
11
+ ERROR = "ERROR"
12
+ }
4
13
  type User = {
5
14
  name?: string;
6
15
  email?: string;
@@ -10,9 +19,10 @@ type User = {
10
19
  };
11
20
  fullName?: string;
12
21
  };
13
- declare function BasicProvider({ children, project_id }: {
22
+ declare function BasicProvider({ children, project_id, schema }: {
14
23
  children: React.ReactNode;
15
24
  project_id: string;
25
+ schema: any;
16
26
  }): react_jsx_runtime.JSX.Element;
17
27
  declare function useBasic(): {
18
28
  unicorn: string;
@@ -24,6 +34,7 @@ declare function useBasic(): {
24
34
  getToken: () => Promise<string>;
25
35
  getSignInLink: () => string;
26
36
  db: any;
37
+ dbStatus: DBStatus;
27
38
  };
28
39
 
29
40
  export { BasicProvider, useBasic };