Compare commits
27 Commits
cojson@0.9
...
jazz-react
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98c265304a | ||
|
|
675e3e8046 | ||
|
|
4acba8c990 | ||
|
|
a93adeb1fe | ||
|
|
cf8773f3de | ||
|
|
3be94ae1e7 | ||
|
|
6a8aa06d18 | ||
|
|
dc17889209 | ||
|
|
55f9d8e120 | ||
|
|
15b9457ed8 | ||
|
|
898297e95c | ||
|
|
0fc4f24cd5 | ||
|
|
63b5ad9edf | ||
|
|
873c3264ca | ||
|
|
34f89e48aa | ||
|
|
24b3b6afc1 | ||
|
|
c2eed7e2c4 | ||
|
|
f97ef696e3 | ||
|
|
ad65cb8ab5 | ||
|
|
8d8131410a | ||
|
|
7491711b72 | ||
|
|
5933aa59c1 | ||
|
|
da96bec465 | ||
|
|
483422c0e9 | ||
|
|
3df93cc147 | ||
|
|
d686edfa6c | ||
|
|
497b0ade1f |
@@ -1,5 +1,35 @@
|
||||
# chat-rn-clerk
|
||||
|
||||
## 1.0.57
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-react-native-auth-clerk@0.9.16
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react-native@0.9.16
|
||||
- jazz-react-native-media-images@0.9.16
|
||||
|
||||
## 1.0.56
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react-native@0.9.15
|
||||
- jazz-react-native-auth-clerk@0.9.15
|
||||
- jazz-react-native-media-images@0.9.15
|
||||
|
||||
## 1.0.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react-native@0.9.14
|
||||
- jazz-react-native-auth-clerk@0.9.14
|
||||
- jazz-react-native-media-images@0.9.14
|
||||
|
||||
## 1.0.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "chat-rn-clerk",
|
||||
"main": "index.js",
|
||||
"version": "1.0.54",
|
||||
"version": "1.0.57",
|
||||
"scripts": {
|
||||
"build": "expo export -p ios",
|
||||
"start": "expo start",
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# chat-rn
|
||||
|
||||
## 1.0.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react-native@0.9.16
|
||||
|
||||
## 1.0.53
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react-native@0.9.15
|
||||
|
||||
## 1.0.52
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react-native@0.9.14
|
||||
|
||||
## 1.0.51
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "chat-rn",
|
||||
"version": "1.0.51",
|
||||
"version": "1.0.54",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "expo export -p ios",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# chat-vue
|
||||
|
||||
## 0.0.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
- jazz-vue@0.9.16
|
||||
|
||||
## 0.0.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
- jazz-vue@0.9.15
|
||||
|
||||
## 0.0.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
- jazz-vue@0.9.14
|
||||
|
||||
## 0.0.38
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "chat-vue",
|
||||
"version": "0.0.38",
|
||||
"version": "0.0.41",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-example-chat
|
||||
|
||||
## 0.0.137
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser-media-images@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.136
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-media-images@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.135
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-media-images@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.134
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-example-chat",
|
||||
"private": true,
|
||||
"version": "0.0.134",
|
||||
"version": "0.0.137",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# minimal-auth-clerk
|
||||
|
||||
## 0.0.36
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-react-auth-clerk@0.9.16
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.35
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
- jazz-react-auth-clerk@0.9.15
|
||||
|
||||
## 0.0.34
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
- jazz-react-auth-clerk@0.9.14
|
||||
|
||||
## 0.0.33
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -15,11 +15,11 @@ You can either
|
||||
|
||||
Create a new Jazz project, and use this example as a template.
|
||||
```bash
|
||||
npm create jazz-app@latest --start clerk --project-name clerk
|
||||
npm create jazz-app@latest --example clerk --project-name clerk
|
||||
```
|
||||
or
|
||||
```bash
|
||||
npx create-jazz-app@latest --start clerk --project-name clerk
|
||||
npx create-jazz-app@latest --example clerk --project-name clerk
|
||||
```
|
||||
|
||||
Go to the new project directory.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "clerk",
|
||||
"private": true,
|
||||
"version": "0.0.33",
|
||||
"version": "0.0.36",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -13,7 +13,7 @@
|
||||
"dependencies": {
|
||||
"@clerk/clerk-react": "^5.4.1",
|
||||
"jazz-react": "workspace:*",
|
||||
"jazz-react-auth-clerk": "workspace:0.9.13",
|
||||
"jazz-react-auth-clerk": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:*",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# file-share-svelte
|
||||
|
||||
## 0.0.21
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-svelte@0.9.16
|
||||
|
||||
## 0.0.20
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-svelte@0.9.15
|
||||
|
||||
## 0.0.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-svelte@0.9.14
|
||||
|
||||
## 0.0.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "file-share-svelte",
|
||||
"version": "0.0.18",
|
||||
"version": "0.0.21",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# form
|
||||
|
||||
## 0.0.32
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser-media-images@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-media-images@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.30
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-media-images@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -28,11 +28,11 @@ You can either
|
||||
|
||||
Create a new Jazz project, and use this example as a template.
|
||||
```bash
|
||||
npm create jazz-app@latest --start form --project-name form
|
||||
npm create jazz-app@latest --example form --project-name form
|
||||
```
|
||||
or
|
||||
```bash
|
||||
npx create-jazz-app@latest --start form --project-name form
|
||||
npx create-jazz-app@latest --example form --project-name form
|
||||
```
|
||||
|
||||
Go to the new project directory.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "form",
|
||||
"private": true,
|
||||
"version": "0.0.29",
|
||||
"version": "0.0.32",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# image-upload
|
||||
|
||||
## 0.0.34
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser-media-images@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.33
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-media-images@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.32
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-media-images@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "image-upload",
|
||||
"private": true,
|
||||
"version": "0.0.31",
|
||||
"version": "0.0.34",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-example-musicplayer
|
||||
|
||||
## 0.0.57
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-inspector@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.56
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-inspector@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-inspector@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-example-music-player",
|
||||
"private": true,
|
||||
"version": "0.0.54",
|
||||
"version": "0.0.57",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -18,8 +18,8 @@
|
||||
"@radix-ui/react-toast": "^1.1.4",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.0.0",
|
||||
"jazz-react": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-react": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"jazz-inspector": "workspace:*",
|
||||
"lucide-react": "^0.274.0",
|
||||
"react": "^18.3.1",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-example-onboarding
|
||||
|
||||
## 0.0.38
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser-media-images@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.37
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-media-images@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.36
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-media-images@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.35
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-example-onboarding",
|
||||
"private": true,
|
||||
"version": "0.0.35",
|
||||
"version": "0.0.38",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# organization
|
||||
|
||||
## 0.0.30
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.28
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.27
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "organization",
|
||||
"private": true,
|
||||
"version": "0.0.27",
|
||||
"version": "0.0.30",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# passkey-svelte
|
||||
|
||||
## 0.0.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- jazz-svelte@0.9.16
|
||||
|
||||
## 0.0.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- jazz-svelte@0.9.15
|
||||
|
||||
## 0.0.23
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- jazz-svelte@0.9.14
|
||||
|
||||
## 0.0.22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "passkey-svelte",
|
||||
"version": "0.0.22",
|
||||
"version": "0.0.25",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# minimal-auth-passkey
|
||||
|
||||
## 0.0.35
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.34
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.33
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.32
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "passkey",
|
||||
"private": true,
|
||||
"version": "0.0.32",
|
||||
"version": "0.0.35",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-password-manager
|
||||
|
||||
## 0.0.56
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.53
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-password-manager",
|
||||
"private": true,
|
||||
"version": "0.0.53",
|
||||
"version": "0.0.56",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -12,8 +12,8 @@
|
||||
"clean-install": "rm -rf node_modules pnpm-lock.yaml && pnpm install"
|
||||
},
|
||||
"dependencies": {
|
||||
"jazz-react": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-react": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-hook-form": "^7.41.5",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-example-pets
|
||||
|
||||
## 0.0.154
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser-media-images@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.153
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-media-images@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.152
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-media-images@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.151
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-example-pets",
|
||||
"private": true,
|
||||
"version": "0.0.151",
|
||||
"version": "0.0.154",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -19,9 +19,9 @@
|
||||
"@radix-ui/react-toast": "^1.1.4",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.0.0",
|
||||
"jazz-browser-media-images": "workspace:0.9.13",
|
||||
"jazz-react": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-browser-media-images": "workspace:0.9.16",
|
||||
"jazz-react": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"lucide-react": "^0.274.0",
|
||||
"qrcode": "^1.5.3",
|
||||
"react": "^18.3.1",
|
||||
@@ -41,7 +41,7 @@
|
||||
"@vitejs/plugin-react-swc": "^3.3.2",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"is-ci": "^3.0.1",
|
||||
"jazz-run": "workspace:0.9.13",
|
||||
"jazz-run": "workspace:0.9.16",
|
||||
"postcss": "^8.4.27",
|
||||
"tailwindcss": "^3.4.15",
|
||||
"typescript": "~5.6.2",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# reactions
|
||||
|
||||
## 0.0.34
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser-media-images@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.33
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-media-images@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.32
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-media-images@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "reactions",
|
||||
"private": true,
|
||||
"version": "0.0.31",
|
||||
"version": "0.0.34",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# todo-vue
|
||||
|
||||
## 0.0.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
- jazz-vue@0.9.16
|
||||
|
||||
## 0.0.38
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
- jazz-vue@0.9.15
|
||||
|
||||
## 0.0.37
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
- jazz-vue@0.9.14
|
||||
|
||||
## 0.0.36
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "todo-vue",
|
||||
"version": "0.0.36",
|
||||
"version": "0.0.39",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-example-todo
|
||||
|
||||
## 0.0.153
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.152
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.151
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.150
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-example-todo",
|
||||
"private": true,
|
||||
"version": "0.0.150",
|
||||
"version": "0.0.153",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -16,8 +16,8 @@
|
||||
"@radix-ui/react-toast": "^1.1.4",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.0.0",
|
||||
"jazz-react": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-react": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"lucide-react": "^0.274.0",
|
||||
"qrcode": "^1.5.3",
|
||||
"react": "^18.3.1",
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# version-history
|
||||
|
||||
## 0.0.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.30
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.28
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "version-history",
|
||||
"private": true,
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.31",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -132,7 +132,7 @@ As you develop your app, you'll likely want to
|
||||
- initialise data in a user's `root` and `profile`
|
||||
- add more data to your `root` and `profile` schemas
|
||||
|
||||
You can achieve both by overriding the static `migrate()` method on your `Account` schema class.
|
||||
You can achieve both by overriding the `migrate()` method on your `Account` schema class.
|
||||
|
||||
### When migrations run
|
||||
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# create-jazz-app
|
||||
|
||||
## 0.1.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 0fc4f24: fix create-jazz-app fails if no starter param
|
||||
|
||||
## 0.1.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"types": "src/index.ts",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"version": "0.1.7",
|
||||
"version": "0.1.8",
|
||||
"bin": {
|
||||
"create-jazz-app": "./dist/index.js"
|
||||
},
|
||||
|
||||
@@ -263,7 +263,8 @@ async function promptUser(
|
||||
return {
|
||||
...answers,
|
||||
...partialOptions,
|
||||
template: partialOptions.starter || partialOptions.example,
|
||||
template:
|
||||
answers.starter || partialOptions.starter || partialOptions.example,
|
||||
} as ScaffoldOptions;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-browser-media-images
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 24b3b6a: Extract friendly user name for profile creation when authenticating using Clerk with a regular email address.
|
||||
Email passed to creationProps when using Clerk auth
|
||||
Clear stored Clerk credentials on logout
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "jazz-browser-auth-clerk",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cojson": "workspace:0.9.13",
|
||||
"jazz-browser": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13"
|
||||
"jazz-browser": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16"
|
||||
},
|
||||
"scripts": {
|
||||
"format-and-lint": "biome check .",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { AgentSecret } from "cojson";
|
||||
import { Account, AuthMethod, AuthResult, Credentials, ID } from "jazz-tools";
|
||||
|
||||
const localStorageKey = "jazz-clerk-auth";
|
||||
|
||||
export type MinimalClerkClient = {
|
||||
user:
|
||||
| {
|
||||
@@ -10,6 +8,10 @@ export type MinimalClerkClient = {
|
||||
unsafeMetadata: Record<string, any>;
|
||||
fullName: string | null;
|
||||
username: string | null;
|
||||
firstName: string | null;
|
||||
primaryEmailAddress: {
|
||||
emailAddress: string;
|
||||
} | null;
|
||||
id: string;
|
||||
update: (args: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
@@ -21,6 +23,8 @@ export type MinimalClerkClient = {
|
||||
signOut: () => Promise<void>;
|
||||
};
|
||||
|
||||
const localStorageKey = "jazz-clerk-auth";
|
||||
|
||||
function saveCredentialsToLocalStorage(credentials: Credentials) {
|
||||
localStorage.setItem(
|
||||
localStorageKey,
|
||||
@@ -31,6 +35,10 @@ function saveCredentialsToLocalStorage(credentials: Credentials) {
|
||||
);
|
||||
}
|
||||
|
||||
function clearStoredCredentials() {
|
||||
localStorage.removeItem(localStorageKey);
|
||||
}
|
||||
|
||||
export class BrowserClerkAuth implements AuthMethod {
|
||||
constructor(
|
||||
public driver: BrowserClerkAuth.Driver,
|
||||
@@ -38,8 +46,21 @@ export class BrowserClerkAuth implements AuthMethod {
|
||||
) {}
|
||||
|
||||
async start(): Promise<AuthResult> {
|
||||
// Check local storage for credentials
|
||||
const locallyStoredCredentials = localStorage.getItem(localStorageKey);
|
||||
// clear localStorage if the current Clerk user doesn't match stored credentials
|
||||
let locallyStoredCredentials = localStorage.getItem(localStorageKey);
|
||||
if (locallyStoredCredentials && this.clerkClient.user) {
|
||||
try {
|
||||
const stored = JSON.parse(locallyStoredCredentials);
|
||||
const clerkMetadata = this.clerkClient.user.unsafeMetadata;
|
||||
if (clerkMetadata.jazzAccountID !== stored.accountID) {
|
||||
clearStoredCredentials();
|
||||
}
|
||||
} catch (e) {
|
||||
clearStoredCredentials();
|
||||
}
|
||||
}
|
||||
|
||||
locallyStoredCredentials = localStorage.getItem(localStorageKey);
|
||||
|
||||
if (locallyStoredCredentials) {
|
||||
try {
|
||||
@@ -53,7 +74,7 @@ export class BrowserClerkAuth implements AuthMethod {
|
||||
this.driver.onError(error);
|
||||
},
|
||||
logOut: () => {
|
||||
localStorage.removeItem(localStorageKey);
|
||||
clearStoredCredentials();
|
||||
void this.clerkClient.signOut();
|
||||
},
|
||||
};
|
||||
@@ -86,6 +107,7 @@ export class BrowserClerkAuth implements AuthMethod {
|
||||
this.driver.onError(error);
|
||||
},
|
||||
logOut: () => {
|
||||
clearStoredCredentials();
|
||||
void this.clerkClient.signOut();
|
||||
},
|
||||
};
|
||||
@@ -96,8 +118,15 @@ export class BrowserClerkAuth implements AuthMethod {
|
||||
creationProps: {
|
||||
name:
|
||||
this.clerkClient.user.fullName ||
|
||||
this.clerkClient.user.firstName ||
|
||||
this.clerkClient.user.username ||
|
||||
this.clerkClient.user.primaryEmailAddress?.emailAddress?.split(
|
||||
"@",
|
||||
)[0] ||
|
||||
this.clerkClient.user.id,
|
||||
other: {
|
||||
email: this.clerkClient.user.primaryEmailAddress?.emailAddress,
|
||||
},
|
||||
},
|
||||
saveCredentials: async ({ accountID, secret }: Credentials) => {
|
||||
saveCredentialsToLocalStorage({
|
||||
@@ -116,6 +145,7 @@ export class BrowserClerkAuth implements AuthMethod {
|
||||
this.driver.onError(error);
|
||||
},
|
||||
logOut: () => {
|
||||
clearStoredCredentials();
|
||||
void this.clerkClient.signOut();
|
||||
},
|
||||
};
|
||||
|
||||
@@ -30,6 +30,8 @@ describe("BrowserClerkAuth", () => {
|
||||
unsafeMetadata: {},
|
||||
fullName: "Test User",
|
||||
username: "testuser",
|
||||
firstName: null,
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
@@ -75,6 +77,8 @@ describe("BrowserClerkAuth", () => {
|
||||
},
|
||||
fullName: "Test User",
|
||||
username: "testuser",
|
||||
firstName: null,
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
@@ -115,5 +119,68 @@ describe("BrowserClerkAuth", () => {
|
||||
|
||||
expect(mockClerkClient.signOut).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("should resolve name from available user fields", async () => {
|
||||
const testCases = [
|
||||
{
|
||||
user: {
|
||||
unsafeMetadata: {},
|
||||
fullName: "Full Name",
|
||||
firstName: null,
|
||||
username: null,
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
expected: "Full Name",
|
||||
},
|
||||
{
|
||||
user: {
|
||||
unsafeMetadata: {},
|
||||
fullName: null,
|
||||
firstName: "First",
|
||||
username: null,
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
expected: "First",
|
||||
},
|
||||
{
|
||||
user: {
|
||||
unsafeMetadata: {},
|
||||
fullName: null,
|
||||
firstName: null,
|
||||
username: "username123",
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
expected: "username123",
|
||||
},
|
||||
{
|
||||
user: {
|
||||
unsafeMetadata: {},
|
||||
fullName: null,
|
||||
firstName: null,
|
||||
username: null,
|
||||
primaryEmailAddress: { emailAddress: "test@example.com" },
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
expected: "test",
|
||||
},
|
||||
];
|
||||
|
||||
for (const { user, expected } of testCases) {
|
||||
const auth = new BrowserClerkAuth(mockDriver, {
|
||||
...mockClerkClient,
|
||||
user,
|
||||
});
|
||||
const result = await auth.start();
|
||||
expect(result.type).toBe("new");
|
||||
expect((result as any).creationProps.name).toBe(expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-browser-media-images
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-browser-media-images",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
@@ -8,8 +8,8 @@
|
||||
"dependencies": {
|
||||
"@types/image-blob-reduce": "^4.1.1",
|
||||
"image-blob-reduce": "^4.1.0",
|
||||
"jazz-browser": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-browser": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"pica": "^9.0.1",
|
||||
"typescript": "~5.6.2"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# jazz-browser
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-browser",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
@@ -10,7 +10,7 @@
|
||||
"cojson": "workspace:0.9.13",
|
||||
"cojson-storage-indexeddb": "workspace:0.9.13",
|
||||
"cojson-transport-ws": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"typescript": "~5.6.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-inspector
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react-core@0.8.57
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react-core@0.8.56
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react-core@0.8.55
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-inspector",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "./dist/jazz-inspector.js",
|
||||
"types": "./src/app.tsx",
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# jazz-autosub
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
"types": "src/index.ts",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"dependencies": {
|
||||
"cojson": "workspace:0.9.13",
|
||||
"cojson-transport-ws": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"ws": "^8.14.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,35 @@
|
||||
# jazz-browser-media-images
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 24b3b6a: Extract friendly user name for profile creation when authenticating using Clerk with a regular email address.
|
||||
Email passed to creationProps when using Clerk auth
|
||||
Clear stored Clerk credentials on logout
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-browser-auth-clerk@0.9.16
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser-auth-clerk@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser-auth-clerk@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "jazz-react-auth-clerk",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.tsx",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cojson": "workspace:0.9.13",
|
||||
"jazz-browser-auth-clerk": "workspace:0.9.13",
|
||||
"jazz-react": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13"
|
||||
"jazz-browser-auth-clerk": "workspace:0.9.16",
|
||||
"jazz-react": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0"
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
import {
|
||||
BrowserClerkAuth,
|
||||
type MinimalClerkClient,
|
||||
} from "jazz-browser-auth-clerk";
|
||||
import { BrowserClerkAuth, MinimalClerkClient } from "jazz-browser-auth-clerk";
|
||||
import { useMemo, useState } from "react";
|
||||
|
||||
export function useJazzClerkAuth(
|
||||
clerk: MinimalClerkClient & {
|
||||
signOut: () => Promise<unknown>;
|
||||
},
|
||||
) {
|
||||
export function useJazzClerkAuth(clerk: MinimalClerkClient) {
|
||||
const [state, setState] = useState<{ errors: string[] }>({ errors: [] });
|
||||
|
||||
const authMethod = useMemo(() => {
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# jazz-react-core
|
||||
|
||||
## 0.8.57
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
|
||||
## 0.8.56
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
|
||||
## 0.8.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
|
||||
## 0.8.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-react-core",
|
||||
"version": "0.8.54",
|
||||
"version": "0.8.57",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -22,4 +22,5 @@ export {
|
||||
createJazzTestGuest,
|
||||
linkAccounts,
|
||||
setActiveAccount,
|
||||
setupJazzTestSync,
|
||||
} from "jazz-tools/testing";
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-react-native-auth-clerk
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 24b3b6a: Extract friendly user name for profile creation when authenticating using Clerk with a regular email address.
|
||||
Email passed to creationProps when using Clerk auth
|
||||
Clear stored Clerk credentials on logout
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react-native@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react-native@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react-native@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-react-native-auth-clerk",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -2,8 +2,6 @@ import { AgentSecret } from "cojson";
|
||||
import type { KvStore } from "jazz-react-native";
|
||||
import { Account, AuthMethod, AuthResult, Credentials, ID } from "jazz-tools";
|
||||
|
||||
const localStorageKey = "jazz-clerk-auth";
|
||||
|
||||
export type MinimalClerkClient = {
|
||||
user:
|
||||
| {
|
||||
@@ -11,6 +9,10 @@ export type MinimalClerkClient = {
|
||||
unsafeMetadata: Record<string, any>;
|
||||
fullName: string | null;
|
||||
username: string | null;
|
||||
firstName: string | null;
|
||||
primaryEmailAddress: {
|
||||
emailAddress: string;
|
||||
} | null;
|
||||
id: string;
|
||||
update: (args: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
@@ -22,6 +24,8 @@ export type MinimalClerkClient = {
|
||||
signOut: () => Promise<void>;
|
||||
};
|
||||
|
||||
const localStorageKey = "jazz-clerk-auth";
|
||||
|
||||
function saveCredentialsToStorage(kvStore: KvStore, credentials: Credentials) {
|
||||
kvStore.set(
|
||||
localStorageKey,
|
||||
@@ -32,6 +36,10 @@ function saveCredentialsToStorage(kvStore: KvStore, credentials: Credentials) {
|
||||
);
|
||||
}
|
||||
|
||||
async function clearStoredCredentials(kvStore: KvStore) {
|
||||
await kvStore.delete(localStorageKey);
|
||||
}
|
||||
|
||||
export class ReactNativeClerkAuth implements AuthMethod {
|
||||
constructor(
|
||||
public driver: ReactNativeClerkAuth.Driver,
|
||||
@@ -40,12 +48,27 @@ export class ReactNativeClerkAuth implements AuthMethod {
|
||||
) {}
|
||||
|
||||
async start(): Promise<AuthResult> {
|
||||
// Check local storage for credentials
|
||||
const locallyStoredCredentials = await this.kvStore.get(localStorageKey);
|
||||
|
||||
if (locallyStoredCredentials) {
|
||||
if (locallyStoredCredentials && this.clerkClient.user) {
|
||||
try {
|
||||
const credentials = JSON.parse(locallyStoredCredentials) as Credentials;
|
||||
const stored = JSON.parse(locallyStoredCredentials);
|
||||
const clerkMetadata = this.clerkClient.user.unsafeMetadata;
|
||||
if (clerkMetadata.jazzAccountID !== stored.accountID) {
|
||||
await clearStoredCredentials(this.kvStore);
|
||||
}
|
||||
} catch (e) {
|
||||
await clearStoredCredentials(this.kvStore);
|
||||
}
|
||||
}
|
||||
|
||||
const locallyStoredCredentialsAgain =
|
||||
await this.kvStore.get(localStorageKey);
|
||||
|
||||
if (locallyStoredCredentialsAgain) {
|
||||
try {
|
||||
const credentials = JSON.parse(
|
||||
locallyStoredCredentialsAgain,
|
||||
) as Credentials;
|
||||
return {
|
||||
type: "existing",
|
||||
credentials,
|
||||
@@ -55,7 +78,7 @@ export class ReactNativeClerkAuth implements AuthMethod {
|
||||
this.driver.onError(error);
|
||||
},
|
||||
logOut: () => {
|
||||
void this.kvStore.delete(localStorageKey);
|
||||
void clearStoredCredentials(this.kvStore);
|
||||
void this.clerkClient.signOut();
|
||||
},
|
||||
};
|
||||
@@ -88,6 +111,7 @@ export class ReactNativeClerkAuth implements AuthMethod {
|
||||
this.driver.onError(error);
|
||||
},
|
||||
logOut: () => {
|
||||
void clearStoredCredentials(this.kvStore);
|
||||
void this.clerkClient.signOut();
|
||||
},
|
||||
};
|
||||
@@ -98,8 +122,15 @@ export class ReactNativeClerkAuth implements AuthMethod {
|
||||
creationProps: {
|
||||
name:
|
||||
this.clerkClient.user.fullName ||
|
||||
this.clerkClient.user.firstName ||
|
||||
this.clerkClient.user.username ||
|
||||
this.clerkClient.user.primaryEmailAddress?.emailAddress?.split(
|
||||
"@",
|
||||
)[0] ||
|
||||
this.clerkClient.user.id,
|
||||
other: {
|
||||
email: this.clerkClient.user.primaryEmailAddress?.emailAddress,
|
||||
},
|
||||
},
|
||||
saveCredentials: async ({ accountID, secret }: Credentials) => {
|
||||
saveCredentialsToStorage(this.kvStore, {
|
||||
@@ -118,6 +149,7 @@ export class ReactNativeClerkAuth implements AuthMethod {
|
||||
this.driver.onError(error);
|
||||
},
|
||||
logOut: () => {
|
||||
void clearStoredCredentials(this.kvStore);
|
||||
void this.clerkClient.signOut();
|
||||
},
|
||||
};
|
||||
@@ -140,12 +172,7 @@ export namespace ReactNativeClerkAuth {
|
||||
|
||||
import { useMemo, useState } from "react";
|
||||
|
||||
export function useJazzClerkAuth(
|
||||
clerk: MinimalClerkClient & {
|
||||
signOut: () => Promise<unknown>;
|
||||
},
|
||||
kvStore: KvStore,
|
||||
) {
|
||||
export function useJazzClerkAuth(clerk: MinimalClerkClient, kvStore: KvStore) {
|
||||
const [state, setState] = useState<{ errors: string[] }>({ errors: [] });
|
||||
|
||||
const authMethod = useMemo(() => {
|
||||
|
||||
@@ -32,6 +32,8 @@ describe("ReactNativeClerkAuth", () => {
|
||||
unsafeMetadata: {},
|
||||
fullName: "Test User",
|
||||
username: "testuser",
|
||||
firstName: null,
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
@@ -88,6 +90,8 @@ describe("ReactNativeClerkAuth", () => {
|
||||
},
|
||||
fullName: "Test User",
|
||||
username: "testuser",
|
||||
firstName: null,
|
||||
primaryEmailAddress: null,
|
||||
id: "test-id",
|
||||
update: vi.fn(),
|
||||
},
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# jazz-browser-media-images
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-react-native-media-images",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-browser
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react-core@0.8.57
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react-core@0.8.56
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react-core@0.8.55
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-react-native",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# jazz-react
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
- jazz-react-core@0.8.57
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
- jazz-react-core@0.8.56
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
- jazz-react-core@0.8.55
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-react",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
@@ -18,8 +18,8 @@
|
||||
"dependencies": {
|
||||
"@scure/bip39": "^1.3.0",
|
||||
"cojson": "workspace:0.9.13",
|
||||
"jazz-browser": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-browser": "workspace:0.9.16",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"jazz-react-core": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
# jazz-run
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bin": "./dist/index.js",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"exports": {
|
||||
"./startSyncServer": {
|
||||
"import": "./dist/startSyncServer.js",
|
||||
@@ -32,7 +32,7 @@
|
||||
"cojson-storage-sqlite": "workspace:0.9.13",
|
||||
"cojson-transport-ws": "workspace:0.9.13",
|
||||
"effect": "^3.6.5",
|
||||
"jazz-tools": "workspace:0.9.13",
|
||||
"jazz-tools": "workspace:0.9.16",
|
||||
"ws": "^8.14.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-svelte
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-svelte",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build && npm run package",
|
||||
|
||||
@@ -30,4 +30,5 @@ export {
|
||||
createJazzTestGuest,
|
||||
linkAccounts,
|
||||
setActiveAccount,
|
||||
setupJazzTestSync,
|
||||
} from "jazz-tools/testing";
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# jazz-tools
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 24b3b6a: Extract friendly user name for profile creation when authenticating using Clerk with a regular email address.
|
||||
Email passed to creationProps when using Clerk auth
|
||||
Clear stored Clerk credentials on logout
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7491711: Testing: correctly set the globalMe before the migration when calling createJazzTestAccount
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 3df93cc: Add API to setup a test sync in the test environment
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"dependencies": {
|
||||
"cojson": "workspace:*"
|
||||
},
|
||||
|
||||
@@ -31,7 +31,11 @@ export type AuthResult =
|
||||
}
|
||||
| {
|
||||
type: "new";
|
||||
creationProps: { name: string; anonymous?: boolean };
|
||||
creationProps: {
|
||||
name: string;
|
||||
anonymous?: boolean;
|
||||
other?: Record<string, unknown>;
|
||||
};
|
||||
initialSecret?: AgentSecret;
|
||||
saveCredentials: (credentials: Credentials) => Promise<void>;
|
||||
onSuccess: () => void;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AgentSecret, CryptoProvider, Peer } from "cojson";
|
||||
import { AgentSecret, CryptoProvider, LocalNode, Peer } from "cojson";
|
||||
import { cojsonInternals } from "cojson";
|
||||
import { PureJSCrypto } from "cojson/crypto";
|
||||
import { Account, type AccountClass } from "./exports.js";
|
||||
@@ -9,6 +9,8 @@ import {
|
||||
createAnonymousJazzContext,
|
||||
} from "./internal.js";
|
||||
|
||||
const syncServer: { current: LocalNode | null } = { current: null };
|
||||
|
||||
type TestAccountSchema<Acc extends Account> = CoValueClass<Acc> & {
|
||||
fromNode: (typeof Account)["fromNode"];
|
||||
create: (options: {
|
||||
@@ -45,15 +47,46 @@ class TestJSCrypto extends PureJSCrypto {
|
||||
export async function createJazzTestAccount<Acc extends Account>(options?: {
|
||||
isCurrentActiveAccount?: boolean;
|
||||
AccountSchema?: CoValueClass<Acc>;
|
||||
creationProps?: Record<string, unknown>;
|
||||
}): Promise<Acc> {
|
||||
const AccountSchema = (options?.AccountSchema ??
|
||||
Account) as unknown as TestAccountSchema<Acc>;
|
||||
const account = await AccountSchema.create({
|
||||
const peers = [];
|
||||
if (syncServer.current) {
|
||||
const [aPeer, bPeer] = cojsonInternals.connectedPeers(
|
||||
Math.random().toString(),
|
||||
Math.random().toString(),
|
||||
{
|
||||
peer1role: "server",
|
||||
peer2role: "server",
|
||||
},
|
||||
);
|
||||
syncServer.current.syncManager.addPeer(aPeer);
|
||||
peers.push(bPeer);
|
||||
}
|
||||
|
||||
const { node } = await LocalNode.withNewlyCreatedAccount({
|
||||
creationProps: {
|
||||
name: "Test Account",
|
||||
...options?.creationProps,
|
||||
},
|
||||
crypto: await TestJSCrypto.create(),
|
||||
peersToLoadFrom: peers,
|
||||
migration: async (rawAccount, _node, creationProps) => {
|
||||
const account = new AccountSchema({
|
||||
fromRaw: rawAccount,
|
||||
});
|
||||
|
||||
if (options?.isCurrentActiveAccount) {
|
||||
activeAccountContext.set(account);
|
||||
}
|
||||
|
||||
await account.applyMigration?.(creationProps);
|
||||
},
|
||||
});
|
||||
|
||||
const account = AccountSchema.fromNode(node);
|
||||
|
||||
if (options?.isCurrentActiveAccount) {
|
||||
activeAccountContext.set(account);
|
||||
}
|
||||
@@ -110,3 +143,20 @@ export function linkAccounts(
|
||||
a._raw.core.node.syncManager.addPeer(aPeer);
|
||||
b._raw.core.node.syncManager.addPeer(bPeer);
|
||||
}
|
||||
|
||||
export async function setupJazzTestSync() {
|
||||
if (syncServer.current) {
|
||||
syncServer.current.gracefulShutdown();
|
||||
}
|
||||
|
||||
const account = await Account.create({
|
||||
creationProps: {
|
||||
name: "Test Account",
|
||||
},
|
||||
crypto: await TestJSCrypto.create(),
|
||||
});
|
||||
|
||||
syncServer.current = account._raw.core.node;
|
||||
|
||||
return account;
|
||||
}
|
||||
|
||||
51
packages/jazz-tools/src/tests/testing.test.ts
Normal file
51
packages/jazz-tools/src/tests/testing.test.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { beforeEach, describe, expect, test } from "vitest";
|
||||
import { Account, CoMap, Group, co } from "../exports";
|
||||
import { createJazzTestAccount, setupJazzTestSync } from "../testing";
|
||||
|
||||
describe("Jazz Test Sync", () => {
|
||||
beforeEach(async () => {
|
||||
await setupJazzTestSync();
|
||||
});
|
||||
|
||||
test("two test accounts can sync through sync server", async () => {
|
||||
const account1 = await createJazzTestAccount();
|
||||
const account2 = await createJazzTestAccount();
|
||||
|
||||
// Create a test group in account1
|
||||
const group = Group.create(account1);
|
||||
group.addMember("everyone", "reader");
|
||||
|
||||
const map = CoMap.create({}, group);
|
||||
map._raw.set("test", "value");
|
||||
|
||||
// Verify account2 can see the group
|
||||
const loadedMap = await CoMap.load(map.id, account2, {});
|
||||
expect(loadedMap).toBeDefined();
|
||||
expect(loadedMap?._raw.get("test")).toBe("value");
|
||||
});
|
||||
|
||||
test("correctly set the globalMe before starting the migration", async () => {
|
||||
class MyRoot extends CoMap {
|
||||
value = co.string;
|
||||
}
|
||||
|
||||
class CustomAccount extends Account {
|
||||
root = co.ref(MyRoot);
|
||||
|
||||
migrate() {
|
||||
if (this.root === undefined) {
|
||||
this.root = MyRoot.create({
|
||||
value: "ok",
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const account1 = await createJazzTestAccount({
|
||||
AccountSchema: CustomAccount,
|
||||
isCurrentActiveAccount: true,
|
||||
});
|
||||
|
||||
expect(account1.root?.value).toBe("ok");
|
||||
});
|
||||
});
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-react
|
||||
|
||||
## 0.9.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-browser@0.9.16
|
||||
|
||||
## 0.9.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-browser@0.9.15
|
||||
|
||||
## 0.9.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-browser@0.9.14
|
||||
|
||||
## 0.9.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jazz-vue",
|
||||
"version": "0.9.13",
|
||||
"version": "0.9.16",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -25,4 +25,5 @@ export {
|
||||
createJazzTestGuest,
|
||||
linkAccounts,
|
||||
setActiveAccount,
|
||||
setupJazzTestSync,
|
||||
} from "jazz-tools/testing";
|
||||
|
||||
100
pnpm-lock.yaml
generated
100
pnpm-lock.yaml
generated
@@ -453,7 +453,7 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/jazz-react
|
||||
jazz-react-auth-clerk:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-react-auth-clerk
|
||||
jazz-tools:
|
||||
specifier: workspace:*
|
||||
@@ -770,10 +770,10 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/jazz-inspector
|
||||
jazz-react:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-react
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-tools
|
||||
lucide-react:
|
||||
specifier: ^0.274.0
|
||||
@@ -1027,10 +1027,10 @@ importers:
|
||||
examples/password-manager:
|
||||
dependencies:
|
||||
jazz-react:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-react
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-tools
|
||||
react:
|
||||
specifier: 18.3.1
|
||||
@@ -1091,13 +1091,13 @@ importers:
|
||||
specifier: ^2.0.0
|
||||
version: 2.1.1
|
||||
jazz-browser-media-images:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-browser-media-images
|
||||
jazz-react:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-react
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-tools
|
||||
lucide-react:
|
||||
specifier: ^0.274.0
|
||||
@@ -1152,7 +1152,7 @@ importers:
|
||||
specifier: ^3.0.1
|
||||
version: 3.0.1
|
||||
jazz-run:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-run
|
||||
postcss:
|
||||
specifier: ^8.4.27
|
||||
@@ -1231,10 +1231,10 @@ importers:
|
||||
specifier: ^2.0.0
|
||||
version: 2.1.1
|
||||
jazz-react:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-react
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../../packages/jazz-tools
|
||||
lucide-react:
|
||||
specifier: ^0.274.0
|
||||
@@ -1589,7 +1589,7 @@ importers:
|
||||
specifier: workspace:0.9.13
|
||||
version: link:../cojson-transport-ws
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
typescript:
|
||||
specifier: ~5.6.2
|
||||
@@ -1601,10 +1601,10 @@ importers:
|
||||
specifier: workspace:0.9.13
|
||||
version: link:../cojson
|
||||
jazz-browser:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-browser
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
devDependencies:
|
||||
typescript:
|
||||
@@ -1620,10 +1620,10 @@ importers:
|
||||
specifier: ^4.1.0
|
||||
version: 4.1.0
|
||||
jazz-browser:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-browser
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
pica:
|
||||
specifier: ^9.0.1
|
||||
@@ -1679,7 +1679,7 @@ importers:
|
||||
specifier: workspace:0.9.13
|
||||
version: link:../cojson-transport-ws
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
ws:
|
||||
specifier: ^8.14.2
|
||||
@@ -1704,13 +1704,13 @@ importers:
|
||||
specifier: workspace:0.9.13
|
||||
version: link:../cojson
|
||||
jazz-browser:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-browser
|
||||
jazz-react-core:
|
||||
specifier: workspace:*
|
||||
version: link:../jazz-react-core
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
devDependencies:
|
||||
'@testing-library/dom':
|
||||
@@ -1741,13 +1741,13 @@ importers:
|
||||
specifier: workspace:0.9.13
|
||||
version: link:../cojson
|
||||
jazz-browser-auth-clerk:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-browser-auth-clerk
|
||||
jazz-react:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-react
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
react:
|
||||
specifier: 18.3.1
|
||||
@@ -1896,7 +1896,7 @@ importers:
|
||||
specifier: ^3.6.5
|
||||
version: 3.11.9
|
||||
jazz-tools:
|
||||
specifier: workspace:0.9.13
|
||||
specifier: workspace:0.9.16
|
||||
version: link:../jazz-tools
|
||||
ws:
|
||||
specifier: ^8.14.2
|
||||
@@ -3137,8 +3137,8 @@ packages:
|
||||
expo-secure-store:
|
||||
optional: true
|
||||
|
||||
'@clerk/clerk-js@5.43.3':
|
||||
resolution: {integrity: sha512-F+ovIOOLEvgJJquGeRcxTUMeVThUYoN9cBUjWUAxpd25NVb2wcuZz/n6yxEaKuhv8lHXdww5m1rlVQIdi1R6cg==}
|
||||
'@clerk/clerk-js@5.47.0':
|
||||
resolution: {integrity: sha512-0S3xHJCJLIN2/EeiWF7uk+JstbL92dRbQ2ccEolnQiyMJUKHjwv3NGC5QxVizq1tEQrRcxVYWz46fb0DFamFVA==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
peerDependencies:
|
||||
react: 18.3.1
|
||||
@@ -3151,10 +3151,22 @@ packages:
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1
|
||||
|
||||
'@clerk/localizations@3.9.4':
|
||||
resolution: {integrity: sha512-VvaSvvXRZuivJWFGPQ5IJI4hhusnS0NQKn5yTF8vd0Y3zv2wCoDcSHrzGsLB5KOj1Qd89GyWb4Pd/50Fh3YCwQ==}
|
||||
'@clerk/localizations@3.9.13':
|
||||
resolution: {integrity: sha512-Uw3DqK3Fwns6a6jw8cjM4B3UXAlNDgwMRpI93pOnZlWNeaP7jTGrsRPrq1sBDX8BDGcXYKDoUfM4o73caUoyfQ==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
|
||||
'@clerk/shared@2.20.12':
|
||||
resolution: {integrity: sha512-uy9Z2h0VXbQ4xwjj8mKuQSwm8MEFTAec+3gu4MSTyc1WboaPfX3MnO3qjqJEwu/oQkakocVI0P3nViYbXokZtQ==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
peerDependencies:
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1
|
||||
peerDependenciesMeta:
|
||||
react:
|
||||
optional: true
|
||||
react-dom:
|
||||
optional: true
|
||||
|
||||
'@clerk/shared@2.20.4':
|
||||
resolution: {integrity: sha512-1ndGEO+NejIMFkl47DCeSpVv3nmKh9BHD6wt2Sl3X1wv7sj3eWzSVC14Exkag7D8Og2VcN4LXOFLErsCXHS+YQ==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
@@ -3171,6 +3183,10 @@ packages:
|
||||
resolution: {integrity: sha512-9QdllXYujsjYLbvPg9Kq1rWOemX5FB0r6Ijy8HOxwjKN+TPlxUnGcs+t7IwU+M5gdmZ2KV6aA6d1a2q2FlSoiA==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
|
||||
'@clerk/types@4.42.0':
|
||||
resolution: {integrity: sha512-SPBRHdP+ZggeudncbSj8KLOZ5PdVmtgZhL+tXremVJrETi9WHpf1UOYgnIHl+clp6GZC2IQM4tq57RSrHf0Oew==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
|
||||
'@coinbase/wallet-sdk@4.0.4':
|
||||
resolution: {integrity: sha512-74c040CRnGhfRjr3ArnkAgud86erIqdkPHNt5HR1k9u97uTIZCJww9eGYT67Qf7gHPpGS/xW8Be1D4dvRm63FA==}
|
||||
|
||||
@@ -12500,7 +12516,7 @@ snapshots:
|
||||
|
||||
'@clerk/clerk-expo@2.6.5(dxzpvinlcnpqlc4vkhiczb2xvi)':
|
||||
dependencies:
|
||||
'@clerk/clerk-js': 5.43.3(@types/react@18.3.18)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@clerk/clerk-js': 5.47.0(@types/react@18.3.18)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@clerk/clerk-react': 5.20.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@clerk/shared': 2.20.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@clerk/types': 4.40.0
|
||||
@@ -12518,11 +12534,11 @@ snapshots:
|
||||
- '@types/react'
|
||||
- supports-color
|
||||
|
||||
'@clerk/clerk-js@5.43.3(@types/react@18.3.18)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
'@clerk/clerk-js@5.47.0(@types/react@18.3.18)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@clerk/localizations': 3.9.4
|
||||
'@clerk/shared': 2.20.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@clerk/types': 4.40.0
|
||||
'@clerk/localizations': 3.9.13
|
||||
'@clerk/shared': 2.20.12(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@clerk/types': 4.42.0
|
||||
'@coinbase/wallet-sdk': 4.0.4
|
||||
'@emotion/cache': 11.11.0
|
||||
'@emotion/react': 11.11.1(@types/react@18.3.18)(react@18.3.1)
|
||||
@@ -12553,9 +12569,21 @@ snapshots:
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
tslib: 2.4.1
|
||||
|
||||
'@clerk/localizations@3.9.4':
|
||||
'@clerk/localizations@3.9.13':
|
||||
dependencies:
|
||||
'@clerk/types': 4.40.0
|
||||
'@clerk/types': 4.42.0
|
||||
|
||||
'@clerk/shared@2.20.12(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@clerk/types': 4.42.0
|
||||
dequal: 2.0.3
|
||||
glob-to-regexp: 0.4.1
|
||||
js-cookie: 3.0.5
|
||||
std-env: 3.8.0
|
||||
swr: 2.2.5(react@18.3.1)
|
||||
optionalDependencies:
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@clerk/shared@2.20.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
@@ -12573,6 +12601,10 @@ snapshots:
|
||||
dependencies:
|
||||
csstype: 3.1.1
|
||||
|
||||
'@clerk/types@4.42.0':
|
||||
dependencies:
|
||||
csstype: 3.1.1
|
||||
|
||||
'@coinbase/wallet-sdk@4.0.4':
|
||||
dependencies:
|
||||
buffer: 6.0.3
|
||||
|
||||
2
starters/react-demo-auth-tailwind/.gitignore
vendored
2
starters/react-demo-auth-tailwind/.gitignore
vendored
@@ -11,6 +11,8 @@ node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# jazz-tailwind-demo-auth-starter
|
||||
|
||||
## 0.0.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [24b3b6a]
|
||||
- jazz-tools@0.9.16
|
||||
- jazz-react@0.9.16
|
||||
|
||||
## 0.0.30
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7491711]
|
||||
- jazz-tools@0.9.15
|
||||
- jazz-react@0.9.15
|
||||
|
||||
## 0.0.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3df93cc]
|
||||
- jazz-tools@0.9.14
|
||||
- jazz-react@0.9.14
|
||||
|
||||
## 0.0.28
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -6,7 +6,7 @@ A minimal starter template for building apps with **[Jazz](https://jazz.tools)**
|
||||
|
||||
Create a new Jazz app.
|
||||
```bash
|
||||
npx create-jazz-app
|
||||
npx create-jazz-app@latest
|
||||
```
|
||||
|
||||
Then select "React + Jazz + Demo Auth + Tailwind".
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jazz-tailwind-demo-auth-starter",
|
||||
"private": true,
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.31",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user