jazz-tools 0.19.10 → 0.19.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.
Files changed (84) hide show
  1. package/.turbo/turbo-build.log +53 -49
  2. package/CHANGELOG.md +11 -0
  3. package/dist/{chunk-FFEEPZEG.js → chunk-HX5S6W5E.js} +6 -2
  4. package/dist/chunk-HX5S6W5E.js.map +1 -0
  5. package/dist/index.js +1 -1
  6. package/dist/inspector/account-switcher.d.ts +4 -0
  7. package/dist/inspector/account-switcher.d.ts.map +1 -0
  8. package/dist/inspector/chunk-C6BJPHBQ.js +4096 -0
  9. package/dist/inspector/chunk-C6BJPHBQ.js.map +1 -0
  10. package/dist/inspector/contexts/node.d.ts +19 -0
  11. package/dist/inspector/contexts/node.d.ts.map +1 -0
  12. package/dist/inspector/{custom-element-P76EIWEV.js → custom-element-GJVBPZES.js} +1011 -884
  13. package/dist/inspector/custom-element-GJVBPZES.js.map +1 -0
  14. package/dist/inspector/{viewer/new-app.d.ts → in-app.d.ts} +3 -3
  15. package/dist/inspector/in-app.d.ts.map +1 -0
  16. package/dist/inspector/index.d.ts +0 -11
  17. package/dist/inspector/index.d.ts.map +1 -1
  18. package/dist/inspector/index.js +56 -3910
  19. package/dist/inspector/index.js.map +1 -1
  20. package/dist/inspector/pages/home.d.ts +2 -0
  21. package/dist/inspector/pages/home.d.ts.map +1 -0
  22. package/dist/inspector/register-custom-element.js +1 -1
  23. package/dist/inspector/router/context.d.ts +12 -0
  24. package/dist/inspector/router/context.d.ts.map +1 -0
  25. package/dist/inspector/router/hash-router.d.ts +7 -0
  26. package/dist/inspector/router/hash-router.d.ts.map +1 -0
  27. package/dist/inspector/router/in-memory-router.d.ts +7 -0
  28. package/dist/inspector/router/in-memory-router.d.ts.map +1 -0
  29. package/dist/inspector/router/index.d.ts +5 -0
  30. package/dist/inspector/router/index.d.ts.map +1 -0
  31. package/dist/inspector/standalone.d.ts +6 -0
  32. package/dist/inspector/standalone.d.ts.map +1 -0
  33. package/dist/inspector/standalone.js +420 -0
  34. package/dist/inspector/standalone.js.map +1 -0
  35. package/dist/inspector/tests/router/hash-router.test.d.ts +2 -0
  36. package/dist/inspector/tests/router/hash-router.test.d.ts.map +1 -0
  37. package/dist/inspector/tests/router/in-memory-router.test.d.ts +2 -0
  38. package/dist/inspector/tests/router/in-memory-router.test.d.ts.map +1 -0
  39. package/dist/inspector/ui/modal.d.ts +1 -0
  40. package/dist/inspector/ui/modal.d.ts.map +1 -1
  41. package/dist/inspector/viewer/breadcrumbs.d.ts +1 -7
  42. package/dist/inspector/viewer/breadcrumbs.d.ts.map +1 -1
  43. package/dist/inspector/viewer/header.d.ts +7 -0
  44. package/dist/inspector/viewer/header.d.ts.map +1 -0
  45. package/dist/inspector/viewer/page-stack.d.ts +4 -13
  46. package/dist/inspector/viewer/page-stack.d.ts.map +1 -1
  47. package/dist/inspector/viewer/page.d.ts.map +1 -1
  48. package/dist/testing.js +1 -1
  49. package/dist/tools/coValues/account.d.ts +7 -1
  50. package/dist/tools/coValues/account.d.ts.map +1 -1
  51. package/dist/tools/implementation/zodSchema/schemaTypes/AccountSchema.d.ts +8 -1
  52. package/dist/tools/implementation/zodSchema/schemaTypes/AccountSchema.d.ts.map +1 -1
  53. package/dist/tools/implementation/zodSchema/zodCo.d.ts.map +1 -1
  54. package/dist/tools/testing.d.ts.map +1 -1
  55. package/package.json +9 -4
  56. package/src/inspector/account-switcher.tsx +440 -0
  57. package/src/inspector/contexts/node.tsx +129 -0
  58. package/src/inspector/custom-element.tsx +2 -2
  59. package/src/inspector/in-app.tsx +61 -0
  60. package/src/inspector/index.tsx +2 -22
  61. package/src/inspector/pages/home.tsx +77 -0
  62. package/src/inspector/router/context.ts +21 -0
  63. package/src/inspector/router/hash-router.tsx +128 -0
  64. package/src/inspector/{viewer/use-page-path.ts → router/in-memory-router.tsx} +31 -29
  65. package/src/inspector/router/index.ts +4 -0
  66. package/src/inspector/standalone.tsx +60 -0
  67. package/src/inspector/tests/router/hash-router.test.tsx +847 -0
  68. package/src/inspector/tests/router/in-memory-router.test.tsx +724 -0
  69. package/src/inspector/ui/modal.tsx +5 -2
  70. package/src/inspector/viewer/breadcrumbs.tsx +5 -11
  71. package/src/inspector/viewer/header.tsx +67 -0
  72. package/src/inspector/viewer/page-stack.tsx +18 -26
  73. package/src/inspector/viewer/page.tsx +0 -1
  74. package/src/tools/coValues/account.ts +13 -2
  75. package/src/tools/implementation/zodSchema/schemaTypes/AccountSchema.ts +8 -1
  76. package/src/tools/tests/account.test.ts +11 -4
  77. package/src/tools/tests/schema.resolved.test.ts +3 -3
  78. package/tsup.config.ts +1 -0
  79. package/dist/chunk-FFEEPZEG.js.map +0 -1
  80. package/dist/inspector/custom-element-P76EIWEV.js.map +0 -1
  81. package/dist/inspector/viewer/new-app.d.ts.map +0 -1
  82. package/dist/inspector/viewer/use-page-path.d.ts +0 -10
  83. package/dist/inspector/viewer/use-page-path.d.ts.map +0 -1
  84. package/src/inspector/viewer/new-app.tsx +0 -156
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.19.10 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.19.11 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup && pnpm types && pnpm build:svelte
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts","tools/ssr":"src/tools/ssr/index.ts"}
@@ -10,7 +10,7 @@
10
10
  CLI Using tsconfig: tsconfig.json
11
11
  CLI Building entry: {"index":"src/expo/index.ts","testing":"src/expo/testing.ts","crypto":"src/expo/crypto.ts","polyfills":"src/react-native-core/polyfills/index.js"}
12
12
  CLI Using tsconfig: tsconfig.json
13
- CLI Building entry: {"index":"src/inspector/index.tsx"}
13
+ CLI Building entry: {"index":"src/inspector/index.tsx","standalone":"src/inspector/standalone.tsx"}
14
14
  CLI Using tsconfig: tsconfig.json
15
15
  CLI Building entry: {"register-custom-element":"src/inspector/register-custom-element.ts"}
16
16
  CLI Using tsconfig: tsconfig.json
@@ -109,21 +109,21 @@
109
109
  ESM Build start
110
110
  ESM dist/tiptap/index.js 564.00 B
111
111
  ESM dist/tiptap/index.js.map 1.21 KB
112
- ESM ⚡️ Build success in 57ms
112
+ ESM ⚡️ Build success in 66ms
113
113
  ESM dist/worker/index.js 3.19 KB
114
114
  ESM dist/worker/edge-wasm.js 215.00 B
115
115
  ESM dist/worker/napi-crypto.js 110.00 B
116
116
  ESM dist/worker/index.js.map 6.24 KB
117
117
  ESM dist/worker/edge-wasm.js.map 434.00 B
118
118
  ESM dist/worker/napi-crypto.js.map 162.00 B
119
- ESM ⚡️ Build success in 56ms
119
+ ESM ⚡️ Build success in 69ms
120
120
  ESM dist/better-auth/auth/client.js 4.50 KB
121
121
  ESM dist/better-auth/auth/server.js 8.36 KB
122
122
  ESM dist/better-auth/auth/react.js 799.00 B
123
123
  ESM dist/better-auth/auth/client.js.map 8.32 KB
124
124
  ESM dist/better-auth/auth/server.js.map 15.31 KB
125
125
  ESM dist/better-auth/auth/react.js.map 2.04 KB
126
- ESM ⚡️ Build success in 48ms
126
+ ESM ⚡️ Build success in 80ms
127
127
  ESM dist/media/index.js 236.00 B
128
128
  ESM dist/media/index.browser.js 2.79 KB
129
129
  ESM dist/media/index.native.js 4.01 KB
@@ -134,41 +134,48 @@
134
134
  ESM dist/media/index.native.js.map 8.10 KB
135
135
  ESM dist/media/index.server.js.map 6.37 KB
136
136
  ESM dist/media/chunk-3LKBM3G3.js.map 16.99 KB
137
- ESM ⚡️ Build success in 71ms
138
- ESM dist/expo/index.js 4.68 KB
139
- ESM dist/expo/testing.js 112.00 B
140
- ESM dist/expo/crypto.js 153.00 B
141
- ESM dist/expo/polyfills.js 858.00 B
142
- ESM dist/expo/index.js.map 10.23 KB
143
- ESM dist/expo/testing.js.map 168.00 B
144
- ESM dist/expo/crypto.js.map 189.00 B
145
- ESM dist/expo/polyfills.js.map 1.61 KB
146
- ESM ⚡️ Build success in 63ms
137
+ ESM ⚡️ Build success in 94ms
147
138
  ESM dist/react-core/index.js 17.04 KB
148
139
  ESM dist/react-core/testing.js 1.22 KB
149
140
  ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
150
141
  ESM dist/react-core/index.js.map 49.75 KB
151
142
  ESM dist/react-core/testing.js.map 1.86 KB
152
143
  ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
153
- ESM ⚡️ Build success in 86ms
154
- ESM dist/prosemirror/index.js 77.76 KB
155
- ESM dist/prosemirror/index.js.map 307.20 KB
156
- ESM ⚡️ Build success in 97ms
144
+ ESM ⚡️ Build success in 98ms
157
145
  ESM dist/browser/index.js 14.06 KB
158
146
  ESM dist/browser/index.js.map 29.94 KB
159
- ESM ⚡️ Build success in 103ms
147
+ ESM ⚡️ Build success in 123ms
160
148
  ESM dist/better-auth/database-adapter/index.js 26.65 KB
161
149
  ESM dist/better-auth/database-adapter/index.js.map 58.26 KB
162
- ESM ⚡️ Build success in 89ms
150
+ ESM ⚡️ Build success in 105ms
151
+ ESM dist/expo/index.js 4.68 KB
152
+ ESM dist/expo/testing.js 112.00 B
153
+ ESM dist/expo/crypto.js 153.00 B
154
+ ESM dist/expo/polyfills.js 858.00 B
155
+ ESM dist/expo/index.js.map 10.23 KB
156
+ ESM dist/expo/testing.js.map 168.00 B
157
+ ESM dist/expo/crypto.js.map 189.00 B
158
+ ESM dist/expo/polyfills.js.map 1.61 KB
159
+ ESM ⚡️ Build success in 116ms
160
+ ESM dist/prosemirror/index.js 77.76 KB
161
+ ESM dist/prosemirror/index.js.map 307.20 KB
162
+ ESM ⚡️ Build success in 129ms
163
163
  ESM dist/react-native-core/index.js 19.05 KB
164
- ESM dist/react-native-core/crypto.js 2.58 KB
165
164
  ESM dist/react-native-core/testing.js 119.00 B
165
+ ESM dist/react-native-core/crypto.js 2.58 KB
166
166
  ESM dist/react-native-core/crypto/RNCrypto.js 120.00 B
167
167
  ESM dist/react-native-core/index.js.map 38.74 KB
168
- ESM dist/react-native-core/crypto.js.map 5.25 KB
169
168
  ESM dist/react-native-core/testing.js.map 175.00 B
169
+ ESM dist/react-native-core/crypto.js.map 5.25 KB
170
170
  ESM dist/react-native-core/crypto/RNCrypto.js.map 178.00 B
171
- ESM ⚡️ Build success in 105ms
171
+ ESM ⚡️ Build success in 135ms
172
+ ESM dist/react/index.js 25.83 KB
173
+ ESM dist/react/testing.js 122.00 B
174
+ ESM dist/react/ssr.js 697.00 B
175
+ ESM dist/react/index.js.map 55.23 KB
176
+ ESM dist/react/testing.js.map 165.00 B
177
+ ESM dist/react/ssr.js.map 1.11 KB
178
+ ESM ⚡️ Build success in 125ms
172
179
  ESM dist/react-native/index.js 21.59 KB
173
180
  ESM dist/react-native/testing.js 120.00 B
174
181
  ESM dist/react-native/crypto.js 161.00 B
@@ -177,41 +184,38 @@
177
184
  ESM dist/react-native/testing.js.map 176.00 B
178
185
  ESM dist/react-native/crypto.js.map 197.00 B
179
186
  ESM dist/react-native/polyfills.js.map 1.61 KB
180
- ESM ⚡️ Build success in 111ms
181
- ESM dist/react/index.js 25.83 KB
182
- ESM dist/react/testing.js 122.00 B
183
- ESM dist/react/ssr.js 697.00 B
184
- ESM dist/react/index.js.map 55.23 KB
185
- ESM dist/react/testing.js.map 165.00 B
186
- ESM dist/react/ssr.js.map 1.11 KB
187
- ESM ⚡️ Build success in 101ms
188
- ESM dist/inspector/index.js 125.80 KB
189
- ESM dist/inspector/index.js.map 216.33 KB
190
- ESM ⚡️ Build success in 164ms
191
- ESM dist/index.js 29.76 KB
192
- ESM dist/testing.js 8.51 KB
193
- ESM dist/chunk-FFEEPZEG.js 213.13 KB
187
+ ESM ⚡️ Build success in 148ms
188
+ ESM dist/inspector/index.js 6.29 KB
189
+ ESM dist/inspector/standalone.js 12.61 KB
190
+ ESM dist/inspector/chunk-C6BJPHBQ.js 126.24 KB
191
+ ESM dist/inspector/index.js.map 9.65 KB
192
+ ESM dist/inspector/standalone.js.map 20.11 KB
193
+ ESM dist/inspector/chunk-C6BJPHBQ.js.map 219.48 KB
194
+ ESM ⚡️ Build success in 183ms
194
195
  ESM dist/tools/ssr.js 156.00 B
195
- ESM dist/chunk-M2HGBOXS.js 694.00 B
196
196
  ESM dist/chunk-PZ5AY32C.js 233.00 B
197
- ESM dist/index.js.map 60.59 KB
198
- ESM dist/testing.js.map 16.13 KB
199
- ESM dist/chunk-FFEEPZEG.js.map 502.18 KB
197
+ ESM dist/index.js 29.76 KB
198
+ ESM dist/chunk-M2HGBOXS.js 694.00 B
199
+ ESM dist/testing.js 8.51 KB
200
+ ESM dist/chunk-HX5S6W5E.js 213.29 KB
200
201
  ESM dist/tools/ssr.js.map 71.00 B
201
- ESM dist/chunk-M2HGBOXS.js.map 1.10 KB
202
202
  ESM dist/chunk-PZ5AY32C.js.map 71.00 B
203
- ESM ⚡️ Build success in 188ms
203
+ ESM dist/chunk-M2HGBOXS.js.map 1.10 KB
204
+ ESM dist/testing.js.map 16.13 KB
205
+ ESM dist/index.js.map 60.59 KB
206
+ ESM dist/chunk-HX5S6W5E.js.map 502.74 KB
207
+ ESM ⚡️ Build success in 218ms
204
208
  ESM dist/inspector/register-custom-element.js 218.00 B
205
209
  ESM dist/inspector/register-custom-element.js.map 314.00 B
206
- ESM dist/inspector/custom-element-P76EIWEV.js 1.60 MB
207
- ESM dist/inspector/custom-element-P76EIWEV.js.map 2.45 MB
208
- ESM ⚡️ Build success in 238ms
210
+ ESM dist/inspector/custom-element-GJVBPZES.js 1.60 MB
211
+ ESM dist/inspector/custom-element-GJVBPZES.js.map 2.47 MB
212
+ ESM ⚡️ Build success in 244ms
209
213
 
210
- > jazz-tools@0.19.10 types /home/runner/_work/jazz/jazz/packages/jazz-tools
214
+ > jazz-tools@0.19.11 types /home/runner/_work/jazz/jazz/packages/jazz-tools
211
215
  > tsc --outDir dist
212
216
 
213
217
 
214
- > jazz-tools@0.19.10 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
218
+ > jazz-tools@0.19.11 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
215
219
  > rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
216
220
 
217
221
  src/svelte -> dist/svelte
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.19.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 68acca4: Sync Server is now configurable in inspector.jazz.tools
8
+ - c00a454: Resolve footgun in Account.createAs() that made it easy to save the wrong credentials.
9
+ - Updated dependencies [c00a454]
10
+ - cojson@0.19.11
11
+ - cojson-storage-indexeddb@0.19.11
12
+ - cojson-transport-ws@0.19.11
13
+
3
14
  ## 0.19.10
4
15
 
5
16
  ### Patch Changes
@@ -2308,6 +2308,10 @@ var _Account = class _Account extends CoValueBase {
2308
2308
  crypto,
2309
2309
  peers: [connectedPeers[0]]
2310
2310
  });
2311
+ const credentials = {
2312
+ accountID: account.$jazz.id,
2313
+ accountSecret: account.$jazz.localNode.getCurrentAgent().agentSecret
2314
+ };
2311
2315
  const loadedWorker = await _Account.load(worker.$jazz.id, {
2312
2316
  loadAs: account
2313
2317
  });
@@ -2321,7 +2325,7 @@ var _Account = class _Account extends CoValueBase {
2321
2325
  if (!createdAccount.$isLoaded)
2322
2326
  throw new Error("Unable to load the created account");
2323
2327
  account.$jazz.localNode.gracefulShutdown();
2324
- return createdAccount;
2328
+ return { credentials, account: createdAccount };
2325
2329
  }
2326
2330
  static fromNode(node) {
2327
2331
  return new this({
@@ -7394,4 +7398,4 @@ export {
7394
7398
  JazzContextManager
7395
7399
  };
7396
7400
  /* istanbul ignore file -- @preserve */
7397
- //# sourceMappingURL=chunk-FFEEPZEG.js.map
7401
+ //# sourceMappingURL=chunk-HX5S6W5E.js.map