jazz-browser-auth-clerk 0.7.33-guest-auth.2
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 +680 -0
- package/LICENSE.txt +19 -0
- package/README.md +5 -0
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -0
- package/package.json +26 -0
- package/src/index.ts +80 -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,680 @@
|
|
1
|
+
# jazz-browser-media-images
|
2
|
+
|
3
|
+
## 0.7.33-guest-auth.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
- jazz-browser@0.7.35-guest-auth.3
|
9
|
+
- jazz-tools@0.7.35-guest-auth.3
|
10
|
+
|
11
|
+
## 0.7.33-unique.1
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- Updated dependencies
|
16
|
+
- jazz-tools@0.7.35-unique.2
|
17
|
+
- cojson@0.7.35-unique.2
|
18
|
+
- jazz-browser@0.7.35-unique.2
|
19
|
+
|
20
|
+
## 0.7.33-new-auth.0
|
21
|
+
|
22
|
+
### Patch Changes
|
23
|
+
|
24
|
+
- Updated dependencies
|
25
|
+
- jazz-browser@0.7.35-new-auth.0
|
26
|
+
- jazz-tools@0.7.35-new-auth.0
|
27
|
+
|
28
|
+
## 0.7.32
|
29
|
+
|
30
|
+
### Patch Changes
|
31
|
+
|
32
|
+
- Updated dependencies
|
33
|
+
- jazz-tools@0.7.32
|
34
|
+
- jazz-browser@0.7.32
|
35
|
+
|
36
|
+
## 0.7.31
|
37
|
+
|
38
|
+
### Patch Changes
|
39
|
+
|
40
|
+
- jazz-browser@0.7.31
|
41
|
+
- jazz-tools@0.7.31
|
42
|
+
|
43
|
+
## 0.7.30
|
44
|
+
|
45
|
+
### Patch Changes
|
46
|
+
|
47
|
+
- jazz-browser@0.7.30
|
48
|
+
|
49
|
+
## 0.7.29
|
50
|
+
|
51
|
+
### Patch Changes
|
52
|
+
|
53
|
+
- jazz-browser@0.7.29
|
54
|
+
- jazz-tools@0.7.29
|
55
|
+
|
56
|
+
## 0.7.28
|
57
|
+
|
58
|
+
### Patch Changes
|
59
|
+
|
60
|
+
- jazz-browser@0.7.28
|
61
|
+
- jazz-tools@0.7.28
|
62
|
+
|
63
|
+
## 0.7.27
|
64
|
+
|
65
|
+
### Patch Changes
|
66
|
+
|
67
|
+
- jazz-browser@0.7.27
|
68
|
+
|
69
|
+
## 0.7.26
|
70
|
+
|
71
|
+
### Patch Changes
|
72
|
+
|
73
|
+
- Updated dependencies
|
74
|
+
- jazz-browser@0.7.26
|
75
|
+
- jazz-tools@0.7.26
|
76
|
+
|
77
|
+
## 0.7.25
|
78
|
+
|
79
|
+
### Patch Changes
|
80
|
+
|
81
|
+
- Updated dependencies
|
82
|
+
- jazz-tools@0.7.25
|
83
|
+
- jazz-browser@0.7.25
|
84
|
+
|
85
|
+
## 0.7.24
|
86
|
+
|
87
|
+
### Patch Changes
|
88
|
+
|
89
|
+
- Updated dependencies
|
90
|
+
- jazz-tools@0.7.24
|
91
|
+
- jazz-browser@0.7.24
|
92
|
+
|
93
|
+
## 0.7.23
|
94
|
+
|
95
|
+
### Patch Changes
|
96
|
+
|
97
|
+
- Updated dependencies
|
98
|
+
- jazz-tools@0.7.23
|
99
|
+
- jazz-browser@0.7.23
|
100
|
+
|
101
|
+
## 0.7.22
|
102
|
+
|
103
|
+
### Patch Changes
|
104
|
+
|
105
|
+
- jazz-browser@0.7.22
|
106
|
+
|
107
|
+
## 0.7.21
|
108
|
+
|
109
|
+
### Patch Changes
|
110
|
+
|
111
|
+
- Updated dependencies
|
112
|
+
- jazz-tools@0.7.21
|
113
|
+
- jazz-browser@0.7.21
|
114
|
+
|
115
|
+
## 0.7.20
|
116
|
+
|
117
|
+
### Patch Changes
|
118
|
+
|
119
|
+
- Updated dependencies
|
120
|
+
- jazz-tools@0.7.20
|
121
|
+
- jazz-browser@0.7.20
|
122
|
+
|
123
|
+
## 0.7.19
|
124
|
+
|
125
|
+
### Patch Changes
|
126
|
+
|
127
|
+
- Updated dependencies
|
128
|
+
- jazz-tools@0.7.19
|
129
|
+
- jazz-browser@0.7.19
|
130
|
+
|
131
|
+
## 0.7.18
|
132
|
+
|
133
|
+
### Patch Changes
|
134
|
+
|
135
|
+
- jazz-browser@0.7.18
|
136
|
+
- jazz-tools@0.7.18
|
137
|
+
|
138
|
+
## 0.7.17
|
139
|
+
|
140
|
+
### Patch Changes
|
141
|
+
|
142
|
+
- jazz-browser@0.7.17
|
143
|
+
- jazz-tools@0.7.17
|
144
|
+
|
145
|
+
## 0.7.16
|
146
|
+
|
147
|
+
### Patch Changes
|
148
|
+
|
149
|
+
- Updated dependencies
|
150
|
+
- jazz-tools@0.7.16
|
151
|
+
- jazz-browser@0.7.16
|
152
|
+
|
153
|
+
## 0.7.14
|
154
|
+
|
155
|
+
### Patch Changes
|
156
|
+
|
157
|
+
- Updated dependencies
|
158
|
+
- jazz-tools@0.7.14
|
159
|
+
- jazz-browser@0.7.14
|
160
|
+
|
161
|
+
## 0.7.13
|
162
|
+
|
163
|
+
### Patch Changes
|
164
|
+
|
165
|
+
- Updated dependencies
|
166
|
+
- jazz-tools@0.7.13
|
167
|
+
- jazz-browser@0.7.13
|
168
|
+
|
169
|
+
## 0.7.12
|
170
|
+
|
171
|
+
### Patch Changes
|
172
|
+
|
173
|
+
- Updated dependencies
|
174
|
+
- jazz-tools@0.7.12
|
175
|
+
- jazz-browser@0.7.12
|
176
|
+
|
177
|
+
## 0.7.11
|
178
|
+
|
179
|
+
### Patch Changes
|
180
|
+
|
181
|
+
- jazz-browser@0.7.11
|
182
|
+
- jazz-tools@0.7.11
|
183
|
+
|
184
|
+
## 0.7.10
|
185
|
+
|
186
|
+
### Patch Changes
|
187
|
+
|
188
|
+
- jazz-browser@0.7.10
|
189
|
+
- jazz-tools@0.7.10
|
190
|
+
|
191
|
+
## 0.7.9
|
192
|
+
|
193
|
+
### Patch Changes
|
194
|
+
|
195
|
+
- jazz-browser@0.7.9
|
196
|
+
- jazz-tools@0.7.9
|
197
|
+
|
198
|
+
## 0.7.8
|
199
|
+
|
200
|
+
### Patch Changes
|
201
|
+
|
202
|
+
- Updated dependencies
|
203
|
+
- jazz-tools@0.7.8
|
204
|
+
- jazz-browser@0.7.8
|
205
|
+
|
206
|
+
## 0.7.6
|
207
|
+
|
208
|
+
### Patch Changes
|
209
|
+
|
210
|
+
- Updated dependencies
|
211
|
+
- jazz-tools@0.7.6
|
212
|
+
- jazz-browser@0.7.6
|
213
|
+
|
214
|
+
## 0.7.5
|
215
|
+
|
216
|
+
### Patch Changes
|
217
|
+
|
218
|
+
- Updated dependencies
|
219
|
+
- jazz-browser@0.7.5
|
220
|
+
|
221
|
+
## 0.7.3
|
222
|
+
|
223
|
+
### Patch Changes
|
224
|
+
|
225
|
+
- Updated dependencies
|
226
|
+
- jazz-tools@0.7.3
|
227
|
+
- jazz-browser@0.7.3
|
228
|
+
|
229
|
+
## 0.7.1
|
230
|
+
|
231
|
+
### Patch Changes
|
232
|
+
|
233
|
+
- Updated dependencies
|
234
|
+
- jazz-tools@0.7.1
|
235
|
+
- jazz-browser@0.7.1
|
236
|
+
|
237
|
+
## 0.7.0
|
238
|
+
|
239
|
+
### Minor Changes
|
240
|
+
|
241
|
+
- e299c3e: New simplified API
|
242
|
+
|
243
|
+
### Patch Changes
|
244
|
+
|
245
|
+
- 59c18c3: CoMap fix
|
246
|
+
- c4151fc: Support stricter TS lint rules
|
247
|
+
- 952982e: Consistent proxy based API
|
248
|
+
- d2e03ff: Fix variance of ID.\_\_type
|
249
|
+
- 354bdcd: Even friendlier for subclassing CoMap
|
250
|
+
- 69ac514: Use effect schema much less
|
251
|
+
- f0f6f1b: Clean up API more & re-add jazz-nodejs
|
252
|
+
- 1a44f87: Refactoring
|
253
|
+
- 627d895: Get rid of Co namespace
|
254
|
+
- 85d2b62: More subclass-friendly types in CoMap
|
255
|
+
- Updated dependencies [8636319]
|
256
|
+
- Updated dependencies [1a35307]
|
257
|
+
- Updated dependencies [8636319]
|
258
|
+
- Updated dependencies [1a35307]
|
259
|
+
- Updated dependencies [96c494f]
|
260
|
+
- Updated dependencies [59c18c3]
|
261
|
+
- Updated dependencies [19f52b7]
|
262
|
+
- Updated dependencies [8636319]
|
263
|
+
- Updated dependencies [d8fe2b1]
|
264
|
+
- Updated dependencies [19004b4]
|
265
|
+
- Updated dependencies [a78f168]
|
266
|
+
- Updated dependencies [52675c9]
|
267
|
+
- Updated dependencies [129e2c1]
|
268
|
+
- Updated dependencies [1cfa279]
|
269
|
+
- Updated dependencies [704af7d]
|
270
|
+
- Updated dependencies [460478f]
|
271
|
+
- Updated dependencies [6b0418f]
|
272
|
+
- Updated dependencies [e299c3e]
|
273
|
+
- Updated dependencies [ed5643a]
|
274
|
+
- Updated dependencies [bde684f]
|
275
|
+
- Updated dependencies [c4151fc]
|
276
|
+
- Updated dependencies [63374cc]
|
277
|
+
- Updated dependencies [01ac646]
|
278
|
+
- Updated dependencies [a5e68a4]
|
279
|
+
- Updated dependencies [daee49c]
|
280
|
+
- Updated dependencies [952982e]
|
281
|
+
- Updated dependencies [1a35307]
|
282
|
+
- Updated dependencies [5fa277c]
|
283
|
+
- Updated dependencies [60d5ca2]
|
284
|
+
- Updated dependencies [21771c4]
|
285
|
+
- Updated dependencies [77c2b56]
|
286
|
+
- Updated dependencies [63374cc]
|
287
|
+
- Updated dependencies [d2e03ff]
|
288
|
+
- Updated dependencies [354bdcd]
|
289
|
+
- Updated dependencies [60d5ca2]
|
290
|
+
- Updated dependencies [69ac514]
|
291
|
+
- Updated dependencies [f8a5c46]
|
292
|
+
- Updated dependencies [f0f6f1b]
|
293
|
+
- Updated dependencies [e5eed5b]
|
294
|
+
- Updated dependencies [1a44f87]
|
295
|
+
- Updated dependencies [627d895]
|
296
|
+
- Updated dependencies [1200aae]
|
297
|
+
- Updated dependencies [63374cc]
|
298
|
+
- Updated dependencies [ece35b3]
|
299
|
+
- Updated dependencies [38d4410]
|
300
|
+
- Updated dependencies [85d2b62]
|
301
|
+
- Updated dependencies [fd86c11]
|
302
|
+
- Updated dependencies [52675c9]
|
303
|
+
- jazz-tools@0.7.0
|
304
|
+
- jazz-browser@0.7.0
|
305
|
+
|
306
|
+
## 0.7.0-alpha.40
|
307
|
+
|
308
|
+
### Patch Changes
|
309
|
+
|
310
|
+
- Updated dependencies
|
311
|
+
- jazz-tools@0.7.0-alpha.42
|
312
|
+
- jazz-browser@0.7.0-alpha.42
|
313
|
+
|
314
|
+
## 0.7.0-alpha.39
|
315
|
+
|
316
|
+
### Patch Changes
|
317
|
+
|
318
|
+
- jazz-tools@0.7.0-alpha.41
|
319
|
+
- jazz-browser@0.7.0-alpha.41
|
320
|
+
|
321
|
+
## 0.7.0-alpha.38
|
322
|
+
|
323
|
+
### Patch Changes
|
324
|
+
|
325
|
+
- jazz-browser@0.7.0-alpha.39
|
326
|
+
- jazz-tools@0.7.0-alpha.39
|
327
|
+
|
328
|
+
## 0.7.0-alpha.37
|
329
|
+
|
330
|
+
### Patch Changes
|
331
|
+
|
332
|
+
- Updated dependencies
|
333
|
+
- Updated dependencies
|
334
|
+
- Updated dependencies
|
335
|
+
- jazz-tools@0.7.0-alpha.38
|
336
|
+
- jazz-browser@0.7.0-alpha.38
|
337
|
+
|
338
|
+
## 0.7.0-alpha.36
|
339
|
+
|
340
|
+
### Patch Changes
|
341
|
+
|
342
|
+
- Updated dependencies
|
343
|
+
- jazz-browser@0.7.0-alpha.37
|
344
|
+
- jazz-tools@0.7.0-alpha.37
|
345
|
+
|
346
|
+
## 0.7.0-alpha.35
|
347
|
+
|
348
|
+
### Patch Changes
|
349
|
+
|
350
|
+
- Updated dependencies [1a35307]
|
351
|
+
- Updated dependencies [1a35307]
|
352
|
+
- Updated dependencies [6b0418f]
|
353
|
+
- Updated dependencies [1a35307]
|
354
|
+
- jazz-browser@0.7.0-alpha.36
|
355
|
+
- jazz-tools@0.7.0-alpha.36
|
356
|
+
|
357
|
+
## 0.7.0-alpha.34
|
358
|
+
|
359
|
+
### Patch Changes
|
360
|
+
|
361
|
+
- Updated dependencies
|
362
|
+
- jazz-tools@0.7.0-alpha.35
|
363
|
+
- jazz-browser@0.7.0-alpha.35
|
364
|
+
|
365
|
+
## 0.7.0-alpha.33
|
366
|
+
|
367
|
+
### Patch Changes
|
368
|
+
|
369
|
+
- Updated dependencies
|
370
|
+
- jazz-tools@0.7.0-alpha.34
|
371
|
+
- jazz-browser@0.7.0-alpha.34
|
372
|
+
|
373
|
+
## 0.7.0-alpha.32
|
374
|
+
|
375
|
+
### Patch Changes
|
376
|
+
|
377
|
+
- Updated dependencies
|
378
|
+
- Updated dependencies
|
379
|
+
- jazz-tools@0.7.0-alpha.32
|
380
|
+
- jazz-browser@0.7.0-alpha.32
|
381
|
+
|
382
|
+
## 0.7.0-alpha.31
|
383
|
+
|
384
|
+
### Patch Changes
|
385
|
+
|
386
|
+
- Updated dependencies
|
387
|
+
- jazz-tools@0.7.0-alpha.31
|
388
|
+
- jazz-browser@0.7.0-alpha.31
|
389
|
+
|
390
|
+
## 0.7.0-alpha.30
|
391
|
+
|
392
|
+
### Patch Changes
|
393
|
+
|
394
|
+
- Updated dependencies
|
395
|
+
- jazz-tools@0.7.0-alpha.30
|
396
|
+
- jazz-browser@0.7.0-alpha.30
|
397
|
+
|
398
|
+
## 0.7.0-alpha.29
|
399
|
+
|
400
|
+
### Patch Changes
|
401
|
+
|
402
|
+
- Updated dependencies
|
403
|
+
- jazz-tools@0.7.0-alpha.29
|
404
|
+
- jazz-browser@0.7.0-alpha.29
|
405
|
+
|
406
|
+
## 0.7.0-alpha.28
|
407
|
+
|
408
|
+
### Patch Changes
|
409
|
+
|
410
|
+
- Updated dependencies
|
411
|
+
- jazz-tools@0.7.0-alpha.28
|
412
|
+
- jazz-browser@0.7.0-alpha.28
|
413
|
+
|
414
|
+
## 0.7.0-alpha.27
|
415
|
+
|
416
|
+
### Patch Changes
|
417
|
+
|
418
|
+
- Updated dependencies
|
419
|
+
- Updated dependencies
|
420
|
+
- jazz-tools@0.7.0-alpha.27
|
421
|
+
- jazz-browser@0.7.0-alpha.27
|
422
|
+
|
423
|
+
## 0.7.0-alpha.26
|
424
|
+
|
425
|
+
### Patch Changes
|
426
|
+
|
427
|
+
- Updated dependencies
|
428
|
+
- jazz-tools@0.7.0-alpha.26
|
429
|
+
- jazz-browser@0.7.0-alpha.26
|
430
|
+
|
431
|
+
## 0.7.0-alpha.25
|
432
|
+
|
433
|
+
### Patch Changes
|
434
|
+
|
435
|
+
- Updated dependencies
|
436
|
+
- jazz-tools@0.7.0-alpha.25
|
437
|
+
- jazz-browser@0.7.0-alpha.25
|
438
|
+
|
439
|
+
## 0.7.0-alpha.24
|
440
|
+
|
441
|
+
### Patch Changes
|
442
|
+
|
443
|
+
- Updated dependencies
|
444
|
+
- Updated dependencies
|
445
|
+
- Updated dependencies
|
446
|
+
- jazz-tools@0.7.0-alpha.24
|
447
|
+
- jazz-browser@0.7.0-alpha.24
|
448
|
+
|
449
|
+
## 0.7.0-alpha.23
|
450
|
+
|
451
|
+
### Patch Changes
|
452
|
+
|
453
|
+
- Updated dependencies
|
454
|
+
- jazz-tools@0.7.0-alpha.23
|
455
|
+
- jazz-browser@0.7.0-alpha.23
|
456
|
+
|
457
|
+
## 0.7.0-alpha.22
|
458
|
+
|
459
|
+
### Patch Changes
|
460
|
+
|
461
|
+
- Updated dependencies
|
462
|
+
- jazz-tools@0.7.0-alpha.22
|
463
|
+
- jazz-browser@0.7.0-alpha.22
|
464
|
+
|
465
|
+
## 0.7.0-alpha.21
|
466
|
+
|
467
|
+
### Patch Changes
|
468
|
+
|
469
|
+
- Updated dependencies
|
470
|
+
- jazz-tools@0.7.0-alpha.21
|
471
|
+
- jazz-browser@0.7.0-alpha.21
|
472
|
+
|
473
|
+
## 0.7.0-alpha.20
|
474
|
+
|
475
|
+
### Patch Changes
|
476
|
+
|
477
|
+
- Updated dependencies
|
478
|
+
- jazz-tools@0.7.0-alpha.20
|
479
|
+
- jazz-browser@0.7.0-alpha.20
|
480
|
+
|
481
|
+
## 0.7.0-alpha.19
|
482
|
+
|
483
|
+
### Patch Changes
|
484
|
+
|
485
|
+
- Updated dependencies
|
486
|
+
- jazz-tools@0.7.0-alpha.19
|
487
|
+
- jazz-browser@0.7.0-alpha.19
|
488
|
+
|
489
|
+
## 0.7.0-alpha.18
|
490
|
+
|
491
|
+
### Patch Changes
|
492
|
+
|
493
|
+
- Updated dependencies
|
494
|
+
- jazz-browser@0.7.0-alpha.18
|
495
|
+
|
496
|
+
## 0.7.0-alpha.17
|
497
|
+
|
498
|
+
### Patch Changes
|
499
|
+
|
500
|
+
- Updated dependencies
|
501
|
+
- jazz-tools@0.7.0-alpha.17
|
502
|
+
- jazz-browser@0.7.0-alpha.17
|
503
|
+
|
504
|
+
## 0.7.0-alpha.16
|
505
|
+
|
506
|
+
### Patch Changes
|
507
|
+
|
508
|
+
- Updated dependencies
|
509
|
+
- jazz-tools@0.7.0-alpha.16
|
510
|
+
- jazz-browser@0.7.0-alpha.16
|
511
|
+
|
512
|
+
## 0.7.0-alpha.15
|
513
|
+
|
514
|
+
### Patch Changes
|
515
|
+
|
516
|
+
- Updated dependencies
|
517
|
+
- jazz-tools@0.7.0-alpha.15
|
518
|
+
- jazz-browser@0.7.0-alpha.15
|
519
|
+
|
520
|
+
## 0.7.0-alpha.14
|
521
|
+
|
522
|
+
### Patch Changes
|
523
|
+
|
524
|
+
- Updated dependencies
|
525
|
+
- jazz-tools@0.7.0-alpha.14
|
526
|
+
- jazz-browser@0.7.0-alpha.14
|
527
|
+
|
528
|
+
## 0.7.0-alpha.13
|
529
|
+
|
530
|
+
### Patch Changes
|
531
|
+
|
532
|
+
- Updated dependencies
|
533
|
+
- jazz-tools@0.7.0-alpha.13
|
534
|
+
- jazz-browser@0.7.0-alpha.13
|
535
|
+
|
536
|
+
## 0.7.0-alpha.12
|
537
|
+
|
538
|
+
### Patch Changes
|
539
|
+
|
540
|
+
- Fix variance of ID.\_\_type
|
541
|
+
- Updated dependencies
|
542
|
+
- jazz-browser@0.7.0-alpha.12
|
543
|
+
- jazz-tools@0.7.0-alpha.12
|
544
|
+
|
545
|
+
## 0.7.0-alpha.11
|
546
|
+
|
547
|
+
### Patch Changes
|
548
|
+
|
549
|
+
- Support stricter TS lint rules
|
550
|
+
- Updated dependencies
|
551
|
+
- jazz-browser@0.7.0-alpha.11
|
552
|
+
- jazz-tools@0.7.0-alpha.11
|
553
|
+
|
554
|
+
## 0.7.0-alpha.10
|
555
|
+
|
556
|
+
### Patch Changes
|
557
|
+
|
558
|
+
- Clean up API more & re-add jazz-nodejs
|
559
|
+
- Updated dependencies
|
560
|
+
- jazz-browser@0.7.0-alpha.10
|
561
|
+
- jazz-tools@0.7.0-alpha.10
|
562
|
+
|
563
|
+
## 0.7.0-alpha.9
|
564
|
+
|
565
|
+
### Patch Changes
|
566
|
+
|
567
|
+
- Even friendlier for subclassing CoMap
|
568
|
+
- Updated dependencies
|
569
|
+
- jazz-browser@0.7.0-alpha.9
|
570
|
+
- jazz-tools@0.7.0-alpha.9
|
571
|
+
|
572
|
+
## 0.7.0-alpha.8
|
573
|
+
|
574
|
+
### Patch Changes
|
575
|
+
|
576
|
+
- More subclass-friendly types in CoMap
|
577
|
+
- Updated dependencies
|
578
|
+
- jazz-browser@0.7.0-alpha.8
|
579
|
+
- jazz-tools@0.7.0-alpha.8
|
580
|
+
|
581
|
+
## 0.7.0-alpha.7
|
582
|
+
|
583
|
+
### Patch Changes
|
584
|
+
|
585
|
+
- Consistent proxy based API
|
586
|
+
- Updated dependencies
|
587
|
+
- jazz-browser@0.7.0-alpha.7
|
588
|
+
- jazz-tools@0.7.0-alpha.7
|
589
|
+
|
590
|
+
## 0.7.0-alpha.6
|
591
|
+
|
592
|
+
### Patch Changes
|
593
|
+
|
594
|
+
- CoMap fix
|
595
|
+
- Updated dependencies
|
596
|
+
- jazz-browser@0.7.0-alpha.6
|
597
|
+
- jazz-tools@0.7.0-alpha.6
|
598
|
+
|
599
|
+
## 0.7.0-alpha.5
|
600
|
+
|
601
|
+
### Patch Changes
|
602
|
+
|
603
|
+
- Refactoring
|
604
|
+
- Updated dependencies
|
605
|
+
- jazz-browser@0.7.0-alpha.5
|
606
|
+
- jazz-tools@0.7.0-alpha.5
|
607
|
+
|
608
|
+
## 0.7.0-alpha.4
|
609
|
+
|
610
|
+
### Patch Changes
|
611
|
+
|
612
|
+
- Updated dependencies
|
613
|
+
- jazz-tools@0.7.0-alpha.4
|
614
|
+
- jazz-browser@0.7.0-alpha.4
|
615
|
+
|
616
|
+
## 0.7.0-alpha.3
|
617
|
+
|
618
|
+
### Patch Changes
|
619
|
+
|
620
|
+
- Updated dependencies
|
621
|
+
- jazz-tools@0.7.0-alpha.3
|
622
|
+
- jazz-browser@0.7.0-alpha.3
|
623
|
+
|
624
|
+
## 0.7.0-alpha.2
|
625
|
+
|
626
|
+
### Patch Changes
|
627
|
+
|
628
|
+
- Get rid of Co namespace
|
629
|
+
- Updated dependencies
|
630
|
+
- jazz-browser@0.7.0-alpha.2
|
631
|
+
- jazz-tools@0.7.0-alpha.2
|
632
|
+
|
633
|
+
## 0.7.0-alpha.1
|
634
|
+
|
635
|
+
### Patch Changes
|
636
|
+
|
637
|
+
- Use effect schema much less
|
638
|
+
- Updated dependencies
|
639
|
+
- jazz-browser@0.7.0-alpha.1
|
640
|
+
- jazz-tools@0.7.0-alpha.1
|
641
|
+
|
642
|
+
## 0.7.0-alpha.0
|
643
|
+
|
644
|
+
### Minor Changes
|
645
|
+
|
646
|
+
- New simplified API
|
647
|
+
|
648
|
+
### Patch Changes
|
649
|
+
|
650
|
+
- Updated dependencies
|
651
|
+
- jazz-browser@0.7.0-alpha.0
|
652
|
+
- jazz-tools@0.7.0-alpha.0
|
653
|
+
|
654
|
+
## 0.6.0
|
655
|
+
|
656
|
+
### Minor Changes
|
657
|
+
|
658
|
+
- Parametrize BrowserImage for maxWidth
|
659
|
+
|
660
|
+
## 0.5.1
|
661
|
+
|
662
|
+
### Patch Changes
|
663
|
+
|
664
|
+
- Updated dependencies
|
665
|
+
- jazz-autosub@0.6.0
|
666
|
+
- jazz-browser@0.6.0
|
667
|
+
- cojson@0.6.0
|
668
|
+
|
669
|
+
## 0.5.0
|
670
|
+
|
671
|
+
### Minor Changes
|
672
|
+
|
673
|
+
- 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.
|
674
|
+
|
675
|
+
### Patch Changes
|
676
|
+
|
677
|
+
- Updated dependencies
|
678
|
+
- jazz-autosub@0.5.0
|
679
|
+
- jazz-browser@0.5.0
|
680
|
+
- 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,53 @@
|
|
1
|
+
export class BrowserClerkAuth {
|
2
|
+
constructor(driver, clerkClient) {
|
3
|
+
this.driver = driver;
|
4
|
+
this.clerkClient = clerkClient;
|
5
|
+
}
|
6
|
+
async start() {
|
7
|
+
if (this.clerkClient.user) {
|
8
|
+
const storedCredentials = this.clerkClient.user.unsafeMetadata;
|
9
|
+
if (storedCredentials.jazzAccountID) {
|
10
|
+
if (!storedCredentials.jazzAccountSecret) {
|
11
|
+
throw new Error("No secret for existing user");
|
12
|
+
}
|
13
|
+
return {
|
14
|
+
type: "existing",
|
15
|
+
credentials: {
|
16
|
+
accountID: storedCredentials.jazzAccountID,
|
17
|
+
secret: storedCredentials.jazzAccountSecret,
|
18
|
+
},
|
19
|
+
onSuccess: () => { },
|
20
|
+
onError: (error) => {
|
21
|
+
this.driver.onError(error);
|
22
|
+
},
|
23
|
+
};
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
return {
|
27
|
+
type: "new",
|
28
|
+
creationProps: {
|
29
|
+
name: this.clerkClient.user.fullName ||
|
30
|
+
this.clerkClient.user.username ||
|
31
|
+
this.clerkClient.user.id,
|
32
|
+
},
|
33
|
+
saveCredentials: async (credentials) => {
|
34
|
+
await this.clerkClient.user?.update({
|
35
|
+
unsafeMetadata: {
|
36
|
+
jazzAccountID: credentials.accountID,
|
37
|
+
jazzAccountSecret: credentials.secret,
|
38
|
+
},
|
39
|
+
});
|
40
|
+
},
|
41
|
+
onSuccess: () => { },
|
42
|
+
onError: (error) => {
|
43
|
+
this.driver.onError(error);
|
44
|
+
},
|
45
|
+
};
|
46
|
+
}
|
47
|
+
}
|
48
|
+
else {
|
49
|
+
throw new Error("Not signed in");
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,gBAAgB;IACzB,YACW,MAA+B,EACrB,WAA+B;QADzC,WAAM,GAAN,MAAM,CAAyB;QACrB,gBAAW,GAAX,WAAW,CAAoB;IACjD,CAAC;IAEJ,KAAK,CAAC,KAAK;QACP,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;YACxB,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC;YAC/D,IAAI,iBAAiB,CAAC,aAAa,EAAE,CAAC;gBAClC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;oBACvC,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;gBACnD,CAAC;gBACD,OAAO;oBACH,IAAI,EAAE,UAAU;oBAChB,WAAW,EAAE;wBACT,SAAS,EACL,iBAAiB,CAAC,aAA4B;wBAClD,MAAM,EAAE,iBAAiB,CAAC,iBAAgC;qBAC7D;oBACD,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;oBACnB,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;wBAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;iBACJ,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,IAAI,EAAE,KAAK;oBACX,aAAa,EAAE;wBACX,IAAI,EACA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;4BAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;4BAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;qBAC/B;oBACD,eAAe,EAAE,KAAK,EAAE,WAGvB,EAAE,EAAE;wBACD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;4BAChC,cAAc,EAAE;gCACZ,aAAa,EAAE,WAAW,CAAC,SAAS;gCACpC,iBAAiB,EAAE,WAAW,CAAC,MAAM;6BACxC;yBACJ,CAAC,CAAC;oBACP,CAAC;oBACD,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;oBACnB,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;wBAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;iBACJ,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;CACJ"}
|
package/package.json
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "jazz-browser-auth-clerk",
|
3
|
+
"version": "0.7.33-guest-auth.2",
|
4
|
+
"type": "module",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "src/index.ts",
|
7
|
+
"license": "MIT",
|
8
|
+
"dependencies": {},
|
9
|
+
"peerDependencies": {
|
10
|
+
"cojson": "0.7.35-unique.2",
|
11
|
+
"jazz-tools": "0.7.35-guest-auth.3",
|
12
|
+
"jazz-browser": "0.7.35-guest-auth.3"
|
13
|
+
},
|
14
|
+
"devDependencies": {
|
15
|
+
"typescript": "^5.1.6"
|
16
|
+
},
|
17
|
+
"lint-staged": {
|
18
|
+
"*.{ts,tsx}": "eslint --fix",
|
19
|
+
"*.{js,jsx,mdx,json}": "prettier --write"
|
20
|
+
},
|
21
|
+
"scripts": {
|
22
|
+
"lint": "eslint . --ext ts,tsx",
|
23
|
+
"format": "prettier --write './src/**/*.{ts,tsx}'",
|
24
|
+
"build": "npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist"
|
25
|
+
}
|
26
|
+
}
|
package/src/index.ts
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
import { Account, AuthMethod, AuthResult, ID } from "jazz-tools";
|
2
|
+
import { AgentSecret } from "cojson";
|
3
|
+
|
4
|
+
export type MinimalClerkClient = {
|
5
|
+
user: {
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
7
|
+
unsafeMetadata: Record<string, any>;
|
8
|
+
fullName: string | null;
|
9
|
+
username: string | null;
|
10
|
+
id: string;
|
11
|
+
update: (args: {
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
13
|
+
unsafeMetadata: Record<string, any>;
|
14
|
+
}) => Promise<unknown>;
|
15
|
+
} | null | undefined;
|
16
|
+
}
|
17
|
+
|
18
|
+
export class BrowserClerkAuth implements AuthMethod {
|
19
|
+
constructor(
|
20
|
+
public driver: BrowserClerkAuth.Driver,
|
21
|
+
private readonly clerkClient: MinimalClerkClient
|
22
|
+
) {}
|
23
|
+
|
24
|
+
async start(): Promise<AuthResult> {
|
25
|
+
if (this.clerkClient.user) {
|
26
|
+
const storedCredentials = this.clerkClient.user.unsafeMetadata;
|
27
|
+
if (storedCredentials.jazzAccountID) {
|
28
|
+
if (!storedCredentials.jazzAccountSecret) {
|
29
|
+
throw new Error("No secret for existing user");
|
30
|
+
}
|
31
|
+
return {
|
32
|
+
type: "existing",
|
33
|
+
credentials: {
|
34
|
+
accountID:
|
35
|
+
storedCredentials.jazzAccountID as ID<Account>,
|
36
|
+
secret: storedCredentials.jazzAccountSecret as AgentSecret,
|
37
|
+
},
|
38
|
+
onSuccess: () => {},
|
39
|
+
onError: (error: string | Error) => {
|
40
|
+
this.driver.onError(error);
|
41
|
+
},
|
42
|
+
};
|
43
|
+
} else {
|
44
|
+
return {
|
45
|
+
type: "new",
|
46
|
+
creationProps: {
|
47
|
+
name:
|
48
|
+
this.clerkClient.user.fullName ||
|
49
|
+
this.clerkClient.user.username ||
|
50
|
+
this.clerkClient.user.id,
|
51
|
+
},
|
52
|
+
saveCredentials: async (credentials: {
|
53
|
+
accountID: ID<Account>;
|
54
|
+
secret: AgentSecret;
|
55
|
+
}) => {
|
56
|
+
await this.clerkClient.user?.update({
|
57
|
+
unsafeMetadata: {
|
58
|
+
jazzAccountID: credentials.accountID,
|
59
|
+
jazzAccountSecret: credentials.secret,
|
60
|
+
},
|
61
|
+
});
|
62
|
+
},
|
63
|
+
onSuccess: () => {},
|
64
|
+
onError: (error: string | Error) => {
|
65
|
+
this.driver.onError(error);
|
66
|
+
},
|
67
|
+
};
|
68
|
+
}
|
69
|
+
} else {
|
70
|
+
throw new Error("Not signed in");
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
76
|
+
export namespace BrowserClerkAuth {
|
77
|
+
export interface Driver {
|
78
|
+
onError: (error: string | Error) => void;
|
79
|
+
}
|
80
|
+
}
|
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",
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
12
|
+
"noUncheckedIndexedAccess": true,
|
13
|
+
"esModuleInterop": true,
|
14
|
+
},
|
15
|
+
"include": ["./src/**/*"],
|
16
|
+
}
|