@basictech/react 0.2.0-beta.1 → 0.2.0-beta.11
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/.turbo/turbo-build.log +10 -10
- package/changelog.md +75 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +326 -7935
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +298 -7930
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -5
- package/readme.md +101 -29
- package/src/AuthContext.tsx +198 -76
- package/src/config.ts +27 -0
- package/src/index.ts +33 -1
- package/src/schema.ts +159 -0
- package/src/sync/index.ts +223 -0
- package/src/sync/syncProtocol.js +179 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @basictech/react@
|
|
3
|
+
> @basictech/react@0.2.0-beta.10 build
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m22.39 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m51.69 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 31ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m24.60 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m51.73 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 31ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
23
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 1194ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m1006.00 B[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m1006.00 B[39m
|
package/changelog.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
# 1.3.4
|
|
2
2
|
|
|
3
|
+
## 0.2.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- update schema validation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @basictech/schema@0.1.0-beta.1
|
|
13
|
+
|
|
14
|
+
## 0.2.0-beta.10
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- added schema package - test
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @basictech/schema@0.1.0-beta.0
|
|
24
|
+
|
|
25
|
+
## 0.2.0-beta.9
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- add schema validation
|
|
30
|
+
|
|
31
|
+
## 0.2.0-beta.8
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- changed isLoaded to isAuthReady and fixed dbStatus hooks for useBasic
|
|
36
|
+
|
|
37
|
+
## 0.2.0-beta.7
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- update useQuery hook
|
|
42
|
+
|
|
43
|
+
- no need to pass param as a function, can now enter query directly
|
|
44
|
+
- defaults to empty array when loading
|
|
45
|
+
|
|
46
|
+
## 0.2.0-beta.6
|
|
47
|
+
|
|
48
|
+
### Minor Changes
|
|
49
|
+
|
|
50
|
+
- add debug option
|
|
51
|
+
|
|
52
|
+
## 0.2.0-beta.5
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- schema validation bugfix
|
|
57
|
+
|
|
58
|
+
## 0.2.0-beta.4
|
|
59
|
+
|
|
60
|
+
### Minor Changes
|
|
61
|
+
|
|
62
|
+
- add schema validation
|
|
63
|
+
|
|
64
|
+
## 0.2.0-beta.3
|
|
65
|
+
|
|
66
|
+
### Minor Changes
|
|
67
|
+
|
|
68
|
+
- remove sync lib
|
|
69
|
+
- 4841960: test build
|
|
70
|
+
- remove sync library
|
|
71
|
+
|
|
72
|
+
## 0.2.0-beta.2
|
|
73
|
+
|
|
74
|
+
### Minor Changes
|
|
75
|
+
|
|
76
|
+
- rebuild tsup
|
|
77
|
+
|
|
3
78
|
## 0.2.0-beta.1
|
|
4
79
|
|
|
5
80
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -19,14 +19,15 @@ type User = {
|
|
|
19
19
|
};
|
|
20
20
|
fullName?: string;
|
|
21
21
|
};
|
|
22
|
-
declare function BasicProvider({ children, project_id, schema }: {
|
|
22
|
+
declare function BasicProvider({ children, project_id, schema, debug }: {
|
|
23
23
|
children: React.ReactNode;
|
|
24
24
|
project_id: string;
|
|
25
25
|
schema: any;
|
|
26
|
+
debug?: boolean;
|
|
26
27
|
}): react_jsx_runtime.JSX.Element;
|
|
27
28
|
declare function useBasic(): {
|
|
28
29
|
unicorn: string;
|
|
29
|
-
|
|
30
|
+
isAuthReady: boolean;
|
|
30
31
|
isSignedIn: boolean;
|
|
31
32
|
user: User | null;
|
|
32
33
|
signout: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,14 +19,15 @@ type User = {
|
|
|
19
19
|
};
|
|
20
20
|
fullName?: string;
|
|
21
21
|
};
|
|
22
|
-
declare function BasicProvider({ children, project_id, schema }: {
|
|
22
|
+
declare function BasicProvider({ children, project_id, schema, debug }: {
|
|
23
23
|
children: React.ReactNode;
|
|
24
24
|
project_id: string;
|
|
25
25
|
schema: any;
|
|
26
|
+
debug?: boolean;
|
|
26
27
|
}): react_jsx_runtime.JSX.Element;
|
|
27
28
|
declare function useBasic(): {
|
|
28
29
|
unicorn: string;
|
|
29
|
-
|
|
30
|
+
isAuthReady: boolean;
|
|
30
31
|
isSignedIn: boolean;
|
|
31
32
|
user: User | null;
|
|
32
33
|
signout: () => void;
|