@basictech/react 0.1.0 → 0.1.1-beta.0
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 +6 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +6117 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6129 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/readme.md +107 -0
- package/src/AuthContext.tsx +204 -96
- package/src/index.ts +2 -1
package/changelog.md
CHANGED
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 };
|