jazz-react-auth-clerk 0.7.33-guest-auth.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.cjs +24 -0
- package/.prettierrc.js +9 -0
- package/.turbo/turbo-build.log +8 -0
- package/CHANGELOG.md +691 -0
- package/LICENSE.txt +19 -0
- package/README.md +5 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/package.json +29 -0
- package/src/index.tsx +29 -0
- package/tsconfig.json +16 -0
package/.eslintrc.cjs
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module.exports = {
|
2
|
+
extends: [
|
3
|
+
"eslint:recommended",
|
4
|
+
"plugin:@typescript-eslint/recommended",
|
5
|
+
"plugin:require-extensions/recommended",
|
6
|
+
"prettier"
|
7
|
+
],
|
8
|
+
parser: "@typescript-eslint/parser",
|
9
|
+
plugins: ["@typescript-eslint", "require-extensions"],
|
10
|
+
parserOptions: {
|
11
|
+
project: "./tsconfig.json",
|
12
|
+
tsconfigRootDir: __dirname,
|
13
|
+
},
|
14
|
+
ignorePatterns: [".eslint.cjs"],
|
15
|
+
root: true,
|
16
|
+
rules: {
|
17
|
+
"no-unused-vars": "off",
|
18
|
+
"@typescript-eslint/no-unused-vars": [
|
19
|
+
"error",
|
20
|
+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
21
|
+
],
|
22
|
+
"@typescript-eslint/no-floating-promises": "error",
|
23
|
+
},
|
24
|
+
}
|
package/.prettierrc.js
ADDED
package/CHANGELOG.md
ADDED
@@ -0,0 +1,691 @@
|
|
1
|
+
# jazz-browser-media-images
|
2
|
+
|
3
|
+
## 0.7.33-guest-auth.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
- jazz-react@0.7.35-guest-auth.3
|
9
|
+
- jazz-tools@0.7.35-guest-auth.3
|
10
|
+
- jazz-browser-auth-clerk@0.7.33-guest-auth.2
|
11
|
+
|
12
|
+
## 0.7.33-unique.2
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- Updated dependencies
|
17
|
+
- jazz-tools@0.7.35-unique.2
|
18
|
+
- cojson@0.7.35-unique.2
|
19
|
+
- jazz-browser-auth-clerk@0.7.33-unique.1
|
20
|
+
- jazz-react@0.7.35-unique.2
|
21
|
+
|
22
|
+
## 0.7.33-new-auth.1
|
23
|
+
|
24
|
+
### Patch Changes
|
25
|
+
|
26
|
+
- Updated dependencies
|
27
|
+
- jazz-react@0.7.35-new-auth.1
|
28
|
+
|
29
|
+
## 0.7.33-new-auth.0
|
30
|
+
|
31
|
+
### Patch Changes
|
32
|
+
|
33
|
+
- Implement Clerk auth method + example
|
34
|
+
- Updated dependencies
|
35
|
+
- jazz-react@0.7.35-new-auth.0
|
36
|
+
- jazz-tools@0.7.35-new-auth.0
|
37
|
+
- jazz-browser-auth-clerk@0.7.33-new-auth.0
|
38
|
+
|
39
|
+
## 0.7.32
|
40
|
+
|
41
|
+
### Patch Changes
|
42
|
+
|
43
|
+
- Updated dependencies
|
44
|
+
- jazz-tools@0.7.32
|
45
|
+
- jazz-browser@0.7.32
|
46
|
+
|
47
|
+
## 0.7.31
|
48
|
+
|
49
|
+
### Patch Changes
|
50
|
+
|
51
|
+
- jazz-browser@0.7.31
|
52
|
+
- jazz-tools@0.7.31
|
53
|
+
|
54
|
+
## 0.7.30
|
55
|
+
|
56
|
+
### Patch Changes
|
57
|
+
|
58
|
+
- jazz-browser@0.7.30
|
59
|
+
|
60
|
+
## 0.7.29
|
61
|
+
|
62
|
+
### Patch Changes
|
63
|
+
|
64
|
+
- jazz-browser@0.7.29
|
65
|
+
- jazz-tools@0.7.29
|
66
|
+
|
67
|
+
## 0.7.28
|
68
|
+
|
69
|
+
### Patch Changes
|
70
|
+
|
71
|
+
- jazz-browser@0.7.28
|
72
|
+
- jazz-tools@0.7.28
|
73
|
+
|
74
|
+
## 0.7.27
|
75
|
+
|
76
|
+
### Patch Changes
|
77
|
+
|
78
|
+
- jazz-browser@0.7.27
|
79
|
+
|
80
|
+
## 0.7.26
|
81
|
+
|
82
|
+
### Patch Changes
|
83
|
+
|
84
|
+
- Updated dependencies
|
85
|
+
- jazz-browser@0.7.26
|
86
|
+
- jazz-tools@0.7.26
|
87
|
+
|
88
|
+
## 0.7.25
|
89
|
+
|
90
|
+
### Patch Changes
|
91
|
+
|
92
|
+
- Updated dependencies
|
93
|
+
- jazz-tools@0.7.25
|
94
|
+
- jazz-browser@0.7.25
|
95
|
+
|
96
|
+
## 0.7.24
|
97
|
+
|
98
|
+
### Patch Changes
|
99
|
+
|
100
|
+
- Updated dependencies
|
101
|
+
- jazz-tools@0.7.24
|
102
|
+
- jazz-browser@0.7.24
|
103
|
+
|
104
|
+
## 0.7.23
|
105
|
+
|
106
|
+
### Patch Changes
|
107
|
+
|
108
|
+
- Updated dependencies
|
109
|
+
- jazz-tools@0.7.23
|
110
|
+
- jazz-browser@0.7.23
|
111
|
+
|
112
|
+
## 0.7.22
|
113
|
+
|
114
|
+
### Patch Changes
|
115
|
+
|
116
|
+
- jazz-browser@0.7.22
|
117
|
+
|
118
|
+
## 0.7.21
|
119
|
+
|
120
|
+
### Patch Changes
|
121
|
+
|
122
|
+
- Updated dependencies
|
123
|
+
- jazz-tools@0.7.21
|
124
|
+
- jazz-browser@0.7.21
|
125
|
+
|
126
|
+
## 0.7.20
|
127
|
+
|
128
|
+
### Patch Changes
|
129
|
+
|
130
|
+
- Updated dependencies
|
131
|
+
- jazz-tools@0.7.20
|
132
|
+
- jazz-browser@0.7.20
|
133
|
+
|
134
|
+
## 0.7.19
|
135
|
+
|
136
|
+
### Patch Changes
|
137
|
+
|
138
|
+
- Updated dependencies
|
139
|
+
- jazz-tools@0.7.19
|
140
|
+
- jazz-browser@0.7.19
|
141
|
+
|
142
|
+
## 0.7.18
|
143
|
+
|
144
|
+
### Patch Changes
|
145
|
+
|
146
|
+
- jazz-browser@0.7.18
|
147
|
+
- jazz-tools@0.7.18
|
148
|
+
|
149
|
+
## 0.7.17
|
150
|
+
|
151
|
+
### Patch Changes
|
152
|
+
|
153
|
+
- jazz-browser@0.7.17
|
154
|
+
- jazz-tools@0.7.17
|
155
|
+
|
156
|
+
## 0.7.16
|
157
|
+
|
158
|
+
### Patch Changes
|
159
|
+
|
160
|
+
- Updated dependencies
|
161
|
+
- jazz-tools@0.7.16
|
162
|
+
- jazz-browser@0.7.16
|
163
|
+
|
164
|
+
## 0.7.14
|
165
|
+
|
166
|
+
### Patch Changes
|
167
|
+
|
168
|
+
- Updated dependencies
|
169
|
+
- jazz-tools@0.7.14
|
170
|
+
- jazz-browser@0.7.14
|
171
|
+
|
172
|
+
## 0.7.13
|
173
|
+
|
174
|
+
### Patch Changes
|
175
|
+
|
176
|
+
- Updated dependencies
|
177
|
+
- jazz-tools@0.7.13
|
178
|
+
- jazz-browser@0.7.13
|
179
|
+
|
180
|
+
## 0.7.12
|
181
|
+
|
182
|
+
### Patch Changes
|
183
|
+
|
184
|
+
- Updated dependencies
|
185
|
+
- jazz-tools@0.7.12
|
186
|
+
- jazz-browser@0.7.12
|
187
|
+
|
188
|
+
## 0.7.11
|
189
|
+
|
190
|
+
### Patch Changes
|
191
|
+
|
192
|
+
- jazz-browser@0.7.11
|
193
|
+
- jazz-tools@0.7.11
|
194
|
+
|
195
|
+
## 0.7.10
|
196
|
+
|
197
|
+
### Patch Changes
|
198
|
+
|
199
|
+
- jazz-browser@0.7.10
|
200
|
+
- jazz-tools@0.7.10
|
201
|
+
|
202
|
+
## 0.7.9
|
203
|
+
|
204
|
+
### Patch Changes
|
205
|
+
|
206
|
+
- jazz-browser@0.7.9
|
207
|
+
- jazz-tools@0.7.9
|
208
|
+
|
209
|
+
## 0.7.8
|
210
|
+
|
211
|
+
### Patch Changes
|
212
|
+
|
213
|
+
- Updated dependencies
|
214
|
+
- jazz-tools@0.7.8
|
215
|
+
- jazz-browser@0.7.8
|
216
|
+
|
217
|
+
## 0.7.6
|
218
|
+
|
219
|
+
### Patch Changes
|
220
|
+
|
221
|
+
- Updated dependencies
|
222
|
+
- jazz-tools@0.7.6
|
223
|
+
- jazz-browser@0.7.6
|
224
|
+
|
225
|
+
## 0.7.5
|
226
|
+
|
227
|
+
### Patch Changes
|
228
|
+
|
229
|
+
- Updated dependencies
|
230
|
+
- jazz-browser@0.7.5
|
231
|
+
|
232
|
+
## 0.7.3
|
233
|
+
|
234
|
+
### Patch Changes
|
235
|
+
|
236
|
+
- Updated dependencies
|
237
|
+
- jazz-tools@0.7.3
|
238
|
+
- jazz-browser@0.7.3
|
239
|
+
|
240
|
+
## 0.7.1
|
241
|
+
|
242
|
+
### Patch Changes
|
243
|
+
|
244
|
+
- Updated dependencies
|
245
|
+
- jazz-tools@0.7.1
|
246
|
+
- jazz-browser@0.7.1
|
247
|
+
|
248
|
+
## 0.7.0
|
249
|
+
|
250
|
+
### Minor Changes
|
251
|
+
|
252
|
+
- e299c3e: New simplified API
|
253
|
+
|
254
|
+
### Patch Changes
|
255
|
+
|
256
|
+
- 59c18c3: CoMap fix
|
257
|
+
- c4151fc: Support stricter TS lint rules
|
258
|
+
- 952982e: Consistent proxy based API
|
259
|
+
- d2e03ff: Fix variance of ID.\_\_type
|
260
|
+
- 354bdcd: Even friendlier for subclassing CoMap
|
261
|
+
- 69ac514: Use effect schema much less
|
262
|
+
- f0f6f1b: Clean up API more & re-add jazz-nodejs
|
263
|
+
- 1a44f87: Refactoring
|
264
|
+
- 627d895: Get rid of Co namespace
|
265
|
+
- 85d2b62: More subclass-friendly types in CoMap
|
266
|
+
- Updated dependencies [8636319]
|
267
|
+
- Updated dependencies [1a35307]
|
268
|
+
- Updated dependencies [8636319]
|
269
|
+
- Updated dependencies [1a35307]
|
270
|
+
- Updated dependencies [96c494f]
|
271
|
+
- Updated dependencies [59c18c3]
|
272
|
+
- Updated dependencies [19f52b7]
|
273
|
+
- Updated dependencies [8636319]
|
274
|
+
- Updated dependencies [d8fe2b1]
|
275
|
+
- Updated dependencies [19004b4]
|
276
|
+
- Updated dependencies [a78f168]
|
277
|
+
- Updated dependencies [52675c9]
|
278
|
+
- Updated dependencies [129e2c1]
|
279
|
+
- Updated dependencies [1cfa279]
|
280
|
+
- Updated dependencies [704af7d]
|
281
|
+
- Updated dependencies [460478f]
|
282
|
+
- Updated dependencies [6b0418f]
|
283
|
+
- Updated dependencies [e299c3e]
|
284
|
+
- Updated dependencies [ed5643a]
|
285
|
+
- Updated dependencies [bde684f]
|
286
|
+
- Updated dependencies [c4151fc]
|
287
|
+
- Updated dependencies [63374cc]
|
288
|
+
- Updated dependencies [01ac646]
|
289
|
+
- Updated dependencies [a5e68a4]
|
290
|
+
- Updated dependencies [daee49c]
|
291
|
+
- Updated dependencies [952982e]
|
292
|
+
- Updated dependencies [1a35307]
|
293
|
+
- Updated dependencies [5fa277c]
|
294
|
+
- Updated dependencies [60d5ca2]
|
295
|
+
- Updated dependencies [21771c4]
|
296
|
+
- Updated dependencies [77c2b56]
|
297
|
+
- Updated dependencies [63374cc]
|
298
|
+
- Updated dependencies [d2e03ff]
|
299
|
+
- Updated dependencies [354bdcd]
|
300
|
+
- Updated dependencies [60d5ca2]
|
301
|
+
- Updated dependencies [69ac514]
|
302
|
+
- Updated dependencies [f8a5c46]
|
303
|
+
- Updated dependencies [f0f6f1b]
|
304
|
+
- Updated dependencies [e5eed5b]
|
305
|
+
- Updated dependencies [1a44f87]
|
306
|
+
- Updated dependencies [627d895]
|
307
|
+
- Updated dependencies [1200aae]
|
308
|
+
- Updated dependencies [63374cc]
|
309
|
+
- Updated dependencies [ece35b3]
|
310
|
+
- Updated dependencies [38d4410]
|
311
|
+
- Updated dependencies [85d2b62]
|
312
|
+
- Updated dependencies [fd86c11]
|
313
|
+
- Updated dependencies [52675c9]
|
314
|
+
- jazz-tools@0.7.0
|
315
|
+
- jazz-browser@0.7.0
|
316
|
+
|
317
|
+
## 0.7.0-alpha.40
|
318
|
+
|
319
|
+
### Patch Changes
|
320
|
+
|
321
|
+
- Updated dependencies
|
322
|
+
- jazz-tools@0.7.0-alpha.42
|
323
|
+
- jazz-browser@0.7.0-alpha.42
|
324
|
+
|
325
|
+
## 0.7.0-alpha.39
|
326
|
+
|
327
|
+
### Patch Changes
|
328
|
+
|
329
|
+
- jazz-tools@0.7.0-alpha.41
|
330
|
+
- jazz-browser@0.7.0-alpha.41
|
331
|
+
|
332
|
+
## 0.7.0-alpha.38
|
333
|
+
|
334
|
+
### Patch Changes
|
335
|
+
|
336
|
+
- jazz-browser@0.7.0-alpha.39
|
337
|
+
- jazz-tools@0.7.0-alpha.39
|
338
|
+
|
339
|
+
## 0.7.0-alpha.37
|
340
|
+
|
341
|
+
### Patch Changes
|
342
|
+
|
343
|
+
- Updated dependencies
|
344
|
+
- Updated dependencies
|
345
|
+
- Updated dependencies
|
346
|
+
- jazz-tools@0.7.0-alpha.38
|
347
|
+
- jazz-browser@0.7.0-alpha.38
|
348
|
+
|
349
|
+
## 0.7.0-alpha.36
|
350
|
+
|
351
|
+
### Patch Changes
|
352
|
+
|
353
|
+
- Updated dependencies
|
354
|
+
- jazz-browser@0.7.0-alpha.37
|
355
|
+
- jazz-tools@0.7.0-alpha.37
|
356
|
+
|
357
|
+
## 0.7.0-alpha.35
|
358
|
+
|
359
|
+
### Patch Changes
|
360
|
+
|
361
|
+
- Updated dependencies [1a35307]
|
362
|
+
- Updated dependencies [1a35307]
|
363
|
+
- Updated dependencies [6b0418f]
|
364
|
+
- Updated dependencies [1a35307]
|
365
|
+
- jazz-browser@0.7.0-alpha.36
|
366
|
+
- jazz-tools@0.7.0-alpha.36
|
367
|
+
|
368
|
+
## 0.7.0-alpha.34
|
369
|
+
|
370
|
+
### Patch Changes
|
371
|
+
|
372
|
+
- Updated dependencies
|
373
|
+
- jazz-tools@0.7.0-alpha.35
|
374
|
+
- jazz-browser@0.7.0-alpha.35
|
375
|
+
|
376
|
+
## 0.7.0-alpha.33
|
377
|
+
|
378
|
+
### Patch Changes
|
379
|
+
|
380
|
+
- Updated dependencies
|
381
|
+
- jazz-tools@0.7.0-alpha.34
|
382
|
+
- jazz-browser@0.7.0-alpha.34
|
383
|
+
|
384
|
+
## 0.7.0-alpha.32
|
385
|
+
|
386
|
+
### Patch Changes
|
387
|
+
|
388
|
+
- Updated dependencies
|
389
|
+
- Updated dependencies
|
390
|
+
- jazz-tools@0.7.0-alpha.32
|
391
|
+
- jazz-browser@0.7.0-alpha.32
|
392
|
+
|
393
|
+
## 0.7.0-alpha.31
|
394
|
+
|
395
|
+
### Patch Changes
|
396
|
+
|
397
|
+
- Updated dependencies
|
398
|
+
- jazz-tools@0.7.0-alpha.31
|
399
|
+
- jazz-browser@0.7.0-alpha.31
|
400
|
+
|
401
|
+
## 0.7.0-alpha.30
|
402
|
+
|
403
|
+
### Patch Changes
|
404
|
+
|
405
|
+
- Updated dependencies
|
406
|
+
- jazz-tools@0.7.0-alpha.30
|
407
|
+
- jazz-browser@0.7.0-alpha.30
|
408
|
+
|
409
|
+
## 0.7.0-alpha.29
|
410
|
+
|
411
|
+
### Patch Changes
|
412
|
+
|
413
|
+
- Updated dependencies
|
414
|
+
- jazz-tools@0.7.0-alpha.29
|
415
|
+
- jazz-browser@0.7.0-alpha.29
|
416
|
+
|
417
|
+
## 0.7.0-alpha.28
|
418
|
+
|
419
|
+
### Patch Changes
|
420
|
+
|
421
|
+
- Updated dependencies
|
422
|
+
- jazz-tools@0.7.0-alpha.28
|
423
|
+
- jazz-browser@0.7.0-alpha.28
|
424
|
+
|
425
|
+
## 0.7.0-alpha.27
|
426
|
+
|
427
|
+
### Patch Changes
|
428
|
+
|
429
|
+
- Updated dependencies
|
430
|
+
- Updated dependencies
|
431
|
+
- jazz-tools@0.7.0-alpha.27
|
432
|
+
- jazz-browser@0.7.0-alpha.27
|
433
|
+
|
434
|
+
## 0.7.0-alpha.26
|
435
|
+
|
436
|
+
### Patch Changes
|
437
|
+
|
438
|
+
- Updated dependencies
|
439
|
+
- jazz-tools@0.7.0-alpha.26
|
440
|
+
- jazz-browser@0.7.0-alpha.26
|
441
|
+
|
442
|
+
## 0.7.0-alpha.25
|
443
|
+
|
444
|
+
### Patch Changes
|
445
|
+
|
446
|
+
- Updated dependencies
|
447
|
+
- jazz-tools@0.7.0-alpha.25
|
448
|
+
- jazz-browser@0.7.0-alpha.25
|
449
|
+
|
450
|
+
## 0.7.0-alpha.24
|
451
|
+
|
452
|
+
### Patch Changes
|
453
|
+
|
454
|
+
- Updated dependencies
|
455
|
+
- Updated dependencies
|
456
|
+
- Updated dependencies
|
457
|
+
- jazz-tools@0.7.0-alpha.24
|
458
|
+
- jazz-browser@0.7.0-alpha.24
|
459
|
+
|
460
|
+
## 0.7.0-alpha.23
|
461
|
+
|
462
|
+
### Patch Changes
|
463
|
+
|
464
|
+
- Updated dependencies
|
465
|
+
- jazz-tools@0.7.0-alpha.23
|
466
|
+
- jazz-browser@0.7.0-alpha.23
|
467
|
+
|
468
|
+
## 0.7.0-alpha.22
|
469
|
+
|
470
|
+
### Patch Changes
|
471
|
+
|
472
|
+
- Updated dependencies
|
473
|
+
- jazz-tools@0.7.0-alpha.22
|
474
|
+
- jazz-browser@0.7.0-alpha.22
|
475
|
+
|
476
|
+
## 0.7.0-alpha.21
|
477
|
+
|
478
|
+
### Patch Changes
|
479
|
+
|
480
|
+
- Updated dependencies
|
481
|
+
- jazz-tools@0.7.0-alpha.21
|
482
|
+
- jazz-browser@0.7.0-alpha.21
|
483
|
+
|
484
|
+
## 0.7.0-alpha.20
|
485
|
+
|
486
|
+
### Patch Changes
|
487
|
+
|
488
|
+
- Updated dependencies
|
489
|
+
- jazz-tools@0.7.0-alpha.20
|
490
|
+
- jazz-browser@0.7.0-alpha.20
|
491
|
+
|
492
|
+
## 0.7.0-alpha.19
|
493
|
+
|
494
|
+
### Patch Changes
|
495
|
+
|
496
|
+
- Updated dependencies
|
497
|
+
- jazz-tools@0.7.0-alpha.19
|
498
|
+
- jazz-browser@0.7.0-alpha.19
|
499
|
+
|
500
|
+
## 0.7.0-alpha.18
|
501
|
+
|
502
|
+
### Patch Changes
|
503
|
+
|
504
|
+
- Updated dependencies
|
505
|
+
- jazz-browser@0.7.0-alpha.18
|
506
|
+
|
507
|
+
## 0.7.0-alpha.17
|
508
|
+
|
509
|
+
### Patch Changes
|
510
|
+
|
511
|
+
- Updated dependencies
|
512
|
+
- jazz-tools@0.7.0-alpha.17
|
513
|
+
- jazz-browser@0.7.0-alpha.17
|
514
|
+
|
515
|
+
## 0.7.0-alpha.16
|
516
|
+
|
517
|
+
### Patch Changes
|
518
|
+
|
519
|
+
- Updated dependencies
|
520
|
+
- jazz-tools@0.7.0-alpha.16
|
521
|
+
- jazz-browser@0.7.0-alpha.16
|
522
|
+
|
523
|
+
## 0.7.0-alpha.15
|
524
|
+
|
525
|
+
### Patch Changes
|
526
|
+
|
527
|
+
- Updated dependencies
|
528
|
+
- jazz-tools@0.7.0-alpha.15
|
529
|
+
- jazz-browser@0.7.0-alpha.15
|
530
|
+
|
531
|
+
## 0.7.0-alpha.14
|
532
|
+
|
533
|
+
### Patch Changes
|
534
|
+
|
535
|
+
- Updated dependencies
|
536
|
+
- jazz-tools@0.7.0-alpha.14
|
537
|
+
- jazz-browser@0.7.0-alpha.14
|
538
|
+
|
539
|
+
## 0.7.0-alpha.13
|
540
|
+
|
541
|
+
### Patch Changes
|
542
|
+
|
543
|
+
- Updated dependencies
|
544
|
+
- jazz-tools@0.7.0-alpha.13
|
545
|
+
- jazz-browser@0.7.0-alpha.13
|
546
|
+
|
547
|
+
## 0.7.0-alpha.12
|
548
|
+
|
549
|
+
### Patch Changes
|
550
|
+
|
551
|
+
- Fix variance of ID.\_\_type
|
552
|
+
- Updated dependencies
|
553
|
+
- jazz-browser@0.7.0-alpha.12
|
554
|
+
- jazz-tools@0.7.0-alpha.12
|
555
|
+
|
556
|
+
## 0.7.0-alpha.11
|
557
|
+
|
558
|
+
### Patch Changes
|
559
|
+
|
560
|
+
- Support stricter TS lint rules
|
561
|
+
- Updated dependencies
|
562
|
+
- jazz-browser@0.7.0-alpha.11
|
563
|
+
- jazz-tools@0.7.0-alpha.11
|
564
|
+
|
565
|
+
## 0.7.0-alpha.10
|
566
|
+
|
567
|
+
### Patch Changes
|
568
|
+
|
569
|
+
- Clean up API more & re-add jazz-nodejs
|
570
|
+
- Updated dependencies
|
571
|
+
- jazz-browser@0.7.0-alpha.10
|
572
|
+
- jazz-tools@0.7.0-alpha.10
|
573
|
+
|
574
|
+
## 0.7.0-alpha.9
|
575
|
+
|
576
|
+
### Patch Changes
|
577
|
+
|
578
|
+
- Even friendlier for subclassing CoMap
|
579
|
+
- Updated dependencies
|
580
|
+
- jazz-browser@0.7.0-alpha.9
|
581
|
+
- jazz-tools@0.7.0-alpha.9
|
582
|
+
|
583
|
+
## 0.7.0-alpha.8
|
584
|
+
|
585
|
+
### Patch Changes
|
586
|
+
|
587
|
+
- More subclass-friendly types in CoMap
|
588
|
+
- Updated dependencies
|
589
|
+
- jazz-browser@0.7.0-alpha.8
|
590
|
+
- jazz-tools@0.7.0-alpha.8
|
591
|
+
|
592
|
+
## 0.7.0-alpha.7
|
593
|
+
|
594
|
+
### Patch Changes
|
595
|
+
|
596
|
+
- Consistent proxy based API
|
597
|
+
- Updated dependencies
|
598
|
+
- jazz-browser@0.7.0-alpha.7
|
599
|
+
- jazz-tools@0.7.0-alpha.7
|
600
|
+
|
601
|
+
## 0.7.0-alpha.6
|
602
|
+
|
603
|
+
### Patch Changes
|
604
|
+
|
605
|
+
- CoMap fix
|
606
|
+
- Updated dependencies
|
607
|
+
- jazz-browser@0.7.0-alpha.6
|
608
|
+
- jazz-tools@0.7.0-alpha.6
|
609
|
+
|
610
|
+
## 0.7.0-alpha.5
|
611
|
+
|
612
|
+
### Patch Changes
|
613
|
+
|
614
|
+
- Refactoring
|
615
|
+
- Updated dependencies
|
616
|
+
- jazz-browser@0.7.0-alpha.5
|
617
|
+
- jazz-tools@0.7.0-alpha.5
|
618
|
+
|
619
|
+
## 0.7.0-alpha.4
|
620
|
+
|
621
|
+
### Patch Changes
|
622
|
+
|
623
|
+
- Updated dependencies
|
624
|
+
- jazz-tools@0.7.0-alpha.4
|
625
|
+
- jazz-browser@0.7.0-alpha.4
|
626
|
+
|
627
|
+
## 0.7.0-alpha.3
|
628
|
+
|
629
|
+
### Patch Changes
|
630
|
+
|
631
|
+
- Updated dependencies
|
632
|
+
- jazz-tools@0.7.0-alpha.3
|
633
|
+
- jazz-browser@0.7.0-alpha.3
|
634
|
+
|
635
|
+
## 0.7.0-alpha.2
|
636
|
+
|
637
|
+
### Patch Changes
|
638
|
+
|
639
|
+
- Get rid of Co namespace
|
640
|
+
- Updated dependencies
|
641
|
+
- jazz-browser@0.7.0-alpha.2
|
642
|
+
- jazz-tools@0.7.0-alpha.2
|
643
|
+
|
644
|
+
## 0.7.0-alpha.1
|
645
|
+
|
646
|
+
### Patch Changes
|
647
|
+
|
648
|
+
- Use effect schema much less
|
649
|
+
- Updated dependencies
|
650
|
+
- jazz-browser@0.7.0-alpha.1
|
651
|
+
- jazz-tools@0.7.0-alpha.1
|
652
|
+
|
653
|
+
## 0.7.0-alpha.0
|
654
|
+
|
655
|
+
### Minor Changes
|
656
|
+
|
657
|
+
- New simplified API
|
658
|
+
|
659
|
+
### Patch Changes
|
660
|
+
|
661
|
+
- Updated dependencies
|
662
|
+
- jazz-browser@0.7.0-alpha.0
|
663
|
+
- jazz-tools@0.7.0-alpha.0
|
664
|
+
|
665
|
+
## 0.6.0
|
666
|
+
|
667
|
+
### Minor Changes
|
668
|
+
|
669
|
+
- Parametrize BrowserImage for maxWidth
|
670
|
+
|
671
|
+
## 0.5.1
|
672
|
+
|
673
|
+
### Patch Changes
|
674
|
+
|
675
|
+
- Updated dependencies
|
676
|
+
- jazz-autosub@0.6.0
|
677
|
+
- jazz-browser@0.6.0
|
678
|
+
- cojson@0.6.0
|
679
|
+
|
680
|
+
## 0.5.0
|
681
|
+
|
682
|
+
### Minor Changes
|
683
|
+
|
684
|
+
- Adding a lot of performance improvements to cojson, add a stresstest for the twit example and make that run smoother in a lot of ways.
|
685
|
+
|
686
|
+
### Patch Changes
|
687
|
+
|
688
|
+
- Updated dependencies
|
689
|
+
- jazz-autosub@0.5.0
|
690
|
+
- jazz-browser@0.5.0
|
691
|
+
- cojson@0.5.0
|
package/LICENSE.txt
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright 2024, Garden Computing, Inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# `jazz-browser-media-images`
|
2
|
+
|
3
|
+
This is an optional add-on for `jazz-browser` or `jazz-react` that provides support for creating `ImageDefinition`-compatible image sets from images provided as `File` or `Blob` objects.
|
4
|
+
|
5
|
+
In particular, it implements multi-resolution resizing based on `pica`.
|
package/dist/index.js
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
import { BrowserClerkAuth } from "jazz-browser-auth-clerk";
|
2
|
+
import { useState, useMemo } from "react";
|
3
|
+
export function useJazzClerkAuth(clerk) {
|
4
|
+
const [state, setState] = useState({ errors: [] });
|
5
|
+
const authMethod = useMemo(() => {
|
6
|
+
if (clerk.user) {
|
7
|
+
return new BrowserClerkAuth({
|
8
|
+
onError: (error) => {
|
9
|
+
void clerk.signOut();
|
10
|
+
setState((state) => ({
|
11
|
+
...state,
|
12
|
+
errors: [...state.errors, error.toString()],
|
13
|
+
}));
|
14
|
+
},
|
15
|
+
}, clerk);
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
return undefined;
|
19
|
+
}
|
20
|
+
}, [clerk]);
|
21
|
+
return [authMethod, state];
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,UAAU,gBAAgB,CAAC,KAEhC;IACG,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAuB,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAEzE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACb,OAAO,IAAI,gBAAgB,CACvB;gBACI,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBACf,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;oBACrB,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;wBACjB,GAAG,KAAK;wBACR,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;qBAC9C,CAAC,CAAC,CAAC;gBACR,CAAC;aACJ,EACD,KAAK,CACR,CAAC;QACN,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CAAC,UAAU,EAAE,KAAK,CAAU,CAAC;AACxC,CAAC"}
|
package/package.json
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"name": "jazz-react-auth-clerk",
|
3
|
+
"version": "0.7.33-guest-auth.3",
|
4
|
+
"type": "module",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "src/index.tsx",
|
7
|
+
"license": "MIT",
|
8
|
+
"dependencies": {},
|
9
|
+
"peerDependencies": {
|
10
|
+
"react": "^18.2.0",
|
11
|
+
"cojson": "0.7.35-unique.2",
|
12
|
+
"jazz-tools": "0.7.35-guest-auth.3",
|
13
|
+
"jazz-react": "0.7.35-guest-auth.3",
|
14
|
+
"jazz-browser-auth-clerk": "0.7.33-guest-auth.2"
|
15
|
+
},
|
16
|
+
"devDependencies": {
|
17
|
+
"typescript": "^5.1.6",
|
18
|
+
"@types/react": "^18.2.19"
|
19
|
+
},
|
20
|
+
"lint-staged": {
|
21
|
+
"*.{ts,tsx}": "eslint --fix",
|
22
|
+
"*.{js,jsx,mdx,json}": "prettier --write"
|
23
|
+
},
|
24
|
+
"scripts": {
|
25
|
+
"lint": "eslint . --ext ts,tsx",
|
26
|
+
"format": "prettier --write './src/**/*.{ts,tsx}'",
|
27
|
+
"build": "npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist"
|
28
|
+
}
|
29
|
+
}
|
package/src/index.tsx
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
import { BrowserClerkAuth, MinimalClerkClient } from "jazz-browser-auth-clerk";
|
2
|
+
import { useState, useMemo } from "react";
|
3
|
+
|
4
|
+
export function useJazzClerkAuth(clerk: MinimalClerkClient & {
|
5
|
+
signOut: () => Promise<unknown>;
|
6
|
+
}) {
|
7
|
+
const [state, setState] = useState<{ errors: string[] }>({ errors: [] });
|
8
|
+
|
9
|
+
const authMethod = useMemo(() => {
|
10
|
+
if (clerk.user) {
|
11
|
+
return new BrowserClerkAuth(
|
12
|
+
{
|
13
|
+
onError: (error) => {
|
14
|
+
void clerk.signOut();
|
15
|
+
setState((state) => ({
|
16
|
+
...state,
|
17
|
+
errors: [...state.errors, error.toString()],
|
18
|
+
}));
|
19
|
+
},
|
20
|
+
},
|
21
|
+
clerk,
|
22
|
+
);
|
23
|
+
} else {
|
24
|
+
return undefined;
|
25
|
+
}
|
26
|
+
}, [clerk]);
|
27
|
+
|
28
|
+
return [authMethod, state] as const;
|
29
|
+
}
|
package/tsconfig.json
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"lib": ["ESNext", "DOM"],
|
4
|
+
"module": "esnext",
|
5
|
+
"target": "ES2020",
|
6
|
+
"moduleResolution": "bundler",
|
7
|
+
"moduleDetection": "force",
|
8
|
+
"strict": true,
|
9
|
+
"skipLibCheck": true,
|
10
|
+
"jsx": "react-jsx",
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
12
|
+
"noUncheckedIndexedAccess": true,
|
13
|
+
"esModuleInterop": true,
|
14
|
+
},
|
15
|
+
"include": ["./src/**/*"],
|
16
|
+
}
|