@drawnagency/primitives 0.1.66 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4VMAZZXT.js +968 -0
- package/dist/{chunk-VEIDANEU.js → chunk-KM6HOW4H.js} +126 -39
- package/dist/{chunk-DQTKWKSK.js → chunk-WJ7RZ6CC.js} +11 -2
- package/dist/components/primitives/defineHeadingSection.d.ts +2 -0
- package/dist/components/primitives/defineHeadingSection.d.ts.map +1 -1
- package/dist/components/primitives/index.js +1 -1
- package/dist/components/sections/Button/index.d.ts.map +1 -1
- package/dist/components/sections/Colors/index.d.ts.map +1 -1
- package/dist/components/sections/Colors/schema.d.ts.map +1 -1
- package/dist/components/sections/Container/index.d.ts.map +1 -1
- package/dist/components/sections/DoDontMedia/index.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconList.d.ts +2 -1
- package/dist/components/sections/IconList/IconList.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconListSettings.d.ts +2 -1
- package/dist/components/sections/IconList/IconListSettings.d.ts.map +1 -1
- package/dist/components/sections/IconList/index.d.ts +1 -0
- package/dist/components/sections/IconList/index.d.ts.map +1 -1
- package/dist/components/sections/LinkHeading/index.d.ts.map +1 -1
- package/dist/components/sections/Media/index.d.ts.map +1 -1
- package/dist/components/sections/Prose/index.d.ts.map +1 -1
- package/dist/components/sections/Spacer/index.d.ts.map +1 -1
- package/dist/components/sections/SubHeading/index.d.ts.map +1 -1
- package/dist/components/sections/SubSubHeading/index.d.ts.map +1 -1
- package/dist/components/sections/all-sections.d.ts +1 -0
- package/dist/components/sections/all-sections.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.d.ts +1 -0
- package/dist/components/sections/brand-guide.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.js +1 -1
- package/dist/components/sections/register-schemas.js +11 -941
- package/dist/components/sections/register.js +36 -0
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/index.js +20 -20
- package/dist/lib/index.js +2 -2
- package/dist/lib/insert-menu.d.ts +19 -0
- package/dist/lib/insert-menu.d.ts.map +1 -0
- package/dist/lib/registry.d.ts +23 -0
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/types/database.d.ts +248 -34
- package/dist/types/database.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/components/primitives/defineHeadingSection.tsx +18 -2
- package/src/components/sections/Button/index.tsx +10 -3
- package/src/components/sections/Colors/index.tsx +15 -7
- package/src/components/sections/Colors/schema.ts +5 -2
- package/src/components/sections/Container/index.tsx +19 -3
- package/src/components/sections/DoDontMedia/index.tsx +18 -7
- package/src/components/sections/IconList/IconList.tsx +43 -19
- package/src/components/sections/IconList/IconListSettings.tsx +58 -11
- package/src/components/sections/IconList/index.tsx +51 -7
- package/src/components/sections/LinkHeading/index.tsx +2 -0
- package/src/components/sections/Media/index.tsx +15 -6
- package/src/components/sections/Prose/index.tsx +9 -1
- package/src/components/sections/Spacer/index.tsx +2 -0
- package/src/components/sections/SubHeading/index.tsx +2 -0
- package/src/components/sections/SubSubHeading/index.tsx +2 -0
- package/src/components/shell/EditorShell.tsx +13 -19
- package/src/lib/insert-menu.ts +42 -0
- package/src/lib/registry.ts +24 -0
- package/src/types/database.ts +236 -36
- package/dist/{chunk-ZYXLNJ5M.js → chunk-AFK45HX2.js} +3 -3
package/src/types/database.ts
CHANGED
|
@@ -68,6 +68,41 @@ export type Database = {
|
|
|
68
68
|
},
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
|
+
audit_log: {
|
|
72
|
+
Row: {
|
|
73
|
+
action: string
|
|
74
|
+
actor_platform_user_id: string | null
|
|
75
|
+
created_at: string
|
|
76
|
+
id: string
|
|
77
|
+
metadata: Json
|
|
78
|
+
target_site_id: string | null
|
|
79
|
+
}
|
|
80
|
+
Insert: {
|
|
81
|
+
action: string
|
|
82
|
+
actor_platform_user_id?: string | null
|
|
83
|
+
created_at?: string
|
|
84
|
+
id?: string
|
|
85
|
+
metadata?: Json
|
|
86
|
+
target_site_id?: string | null
|
|
87
|
+
}
|
|
88
|
+
Update: {
|
|
89
|
+
action?: string
|
|
90
|
+
actor_platform_user_id?: string | null
|
|
91
|
+
created_at?: string
|
|
92
|
+
id?: string
|
|
93
|
+
metadata?: Json
|
|
94
|
+
target_site_id?: string | null
|
|
95
|
+
}
|
|
96
|
+
Relationships: [
|
|
97
|
+
{
|
|
98
|
+
foreignKeyName: "audit_log_actor_platform_user_id_fkey"
|
|
99
|
+
columns: ["actor_platform_user_id"]
|
|
100
|
+
isOneToOne: false
|
|
101
|
+
referencedRelation: "platform_users"
|
|
102
|
+
referencedColumns: ["id"]
|
|
103
|
+
},
|
|
104
|
+
]
|
|
105
|
+
}
|
|
71
106
|
bug_reports: {
|
|
72
107
|
Row: {
|
|
73
108
|
category: string
|
|
@@ -227,8 +262,148 @@ export type Database = {
|
|
|
227
262
|
},
|
|
228
263
|
]
|
|
229
264
|
}
|
|
265
|
+
oauth_auth_codes: {
|
|
266
|
+
Row: {
|
|
267
|
+
client_id: string
|
|
268
|
+
code_challenge: string
|
|
269
|
+
code_hash: string
|
|
270
|
+
consumed_at: string | null
|
|
271
|
+
created_at: string
|
|
272
|
+
expires_at: string
|
|
273
|
+
platform_user_id: string
|
|
274
|
+
redirect_uri: string
|
|
275
|
+
resource: string | null
|
|
276
|
+
scopes: string[]
|
|
277
|
+
}
|
|
278
|
+
Insert: {
|
|
279
|
+
client_id: string
|
|
280
|
+
code_challenge: string
|
|
281
|
+
code_hash: string
|
|
282
|
+
consumed_at?: string | null
|
|
283
|
+
created_at?: string
|
|
284
|
+
expires_at: string
|
|
285
|
+
platform_user_id: string
|
|
286
|
+
redirect_uri: string
|
|
287
|
+
resource?: string | null
|
|
288
|
+
scopes?: string[]
|
|
289
|
+
}
|
|
290
|
+
Update: {
|
|
291
|
+
client_id?: string
|
|
292
|
+
code_challenge?: string
|
|
293
|
+
code_hash?: string
|
|
294
|
+
consumed_at?: string | null
|
|
295
|
+
created_at?: string
|
|
296
|
+
expires_at?: string
|
|
297
|
+
platform_user_id?: string
|
|
298
|
+
redirect_uri?: string
|
|
299
|
+
resource?: string | null
|
|
300
|
+
scopes?: string[]
|
|
301
|
+
}
|
|
302
|
+
Relationships: [
|
|
303
|
+
{
|
|
304
|
+
foreignKeyName: "oauth_auth_codes_platform_user_id_fkey"
|
|
305
|
+
columns: ["platform_user_id"]
|
|
306
|
+
isOneToOne: false
|
|
307
|
+
referencedRelation: "platform_users"
|
|
308
|
+
referencedColumns: ["id"]
|
|
309
|
+
},
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
oauth_clients: {
|
|
313
|
+
Row: {
|
|
314
|
+
client_id: string
|
|
315
|
+
client_id_issued_at: number | null
|
|
316
|
+
client_metadata: Json
|
|
317
|
+
client_secret_hash: string | null
|
|
318
|
+
created_at: string
|
|
319
|
+
redirect_uris: string[]
|
|
320
|
+
}
|
|
321
|
+
Insert: {
|
|
322
|
+
client_id: string
|
|
323
|
+
client_id_issued_at?: number | null
|
|
324
|
+
client_metadata?: Json
|
|
325
|
+
client_secret_hash?: string | null
|
|
326
|
+
created_at?: string
|
|
327
|
+
redirect_uris: string[]
|
|
328
|
+
}
|
|
329
|
+
Update: {
|
|
330
|
+
client_id?: string
|
|
331
|
+
client_id_issued_at?: number | null
|
|
332
|
+
client_metadata?: Json
|
|
333
|
+
client_secret_hash?: string | null
|
|
334
|
+
created_at?: string
|
|
335
|
+
redirect_uris?: string[]
|
|
336
|
+
}
|
|
337
|
+
Relationships: []
|
|
338
|
+
}
|
|
339
|
+
oauth_rate_limits: {
|
|
340
|
+
Row: {
|
|
341
|
+
count: number
|
|
342
|
+
key: string
|
|
343
|
+
updated_at: string
|
|
344
|
+
window_start: string
|
|
345
|
+
}
|
|
346
|
+
Insert: {
|
|
347
|
+
count?: number
|
|
348
|
+
key: string
|
|
349
|
+
updated_at?: string
|
|
350
|
+
window_start?: string
|
|
351
|
+
}
|
|
352
|
+
Update: {
|
|
353
|
+
count?: number
|
|
354
|
+
key?: string
|
|
355
|
+
updated_at?: string
|
|
356
|
+
window_start?: string
|
|
357
|
+
}
|
|
358
|
+
Relationships: []
|
|
359
|
+
}
|
|
360
|
+
oauth_refresh_tokens: {
|
|
361
|
+
Row: {
|
|
362
|
+
client_id: string
|
|
363
|
+
created_at: string
|
|
364
|
+
expires_at: string
|
|
365
|
+
family_id: string
|
|
366
|
+
platform_user_id: string
|
|
367
|
+
prev_token_hash: string | null
|
|
368
|
+
revoked_at: string | null
|
|
369
|
+
rotated_at: string | null
|
|
370
|
+
token_hash: string
|
|
371
|
+
}
|
|
372
|
+
Insert: {
|
|
373
|
+
client_id: string
|
|
374
|
+
created_at?: string
|
|
375
|
+
expires_at: string
|
|
376
|
+
family_id: string
|
|
377
|
+
platform_user_id: string
|
|
378
|
+
prev_token_hash?: string | null
|
|
379
|
+
revoked_at?: string | null
|
|
380
|
+
rotated_at?: string | null
|
|
381
|
+
token_hash: string
|
|
382
|
+
}
|
|
383
|
+
Update: {
|
|
384
|
+
client_id?: string
|
|
385
|
+
created_at?: string
|
|
386
|
+
expires_at?: string
|
|
387
|
+
family_id?: string
|
|
388
|
+
platform_user_id?: string
|
|
389
|
+
prev_token_hash?: string | null
|
|
390
|
+
revoked_at?: string | null
|
|
391
|
+
rotated_at?: string | null
|
|
392
|
+
token_hash?: string
|
|
393
|
+
}
|
|
394
|
+
Relationships: [
|
|
395
|
+
{
|
|
396
|
+
foreignKeyName: "oauth_refresh_tokens_platform_user_id_fkey"
|
|
397
|
+
columns: ["platform_user_id"]
|
|
398
|
+
isOneToOne: false
|
|
399
|
+
referencedRelation: "platform_users"
|
|
400
|
+
referencedColumns: ["id"]
|
|
401
|
+
},
|
|
402
|
+
]
|
|
403
|
+
}
|
|
230
404
|
platform_users: {
|
|
231
405
|
Row: {
|
|
406
|
+
can_provision: boolean
|
|
232
407
|
created_at: string | null
|
|
233
408
|
email: string
|
|
234
409
|
github_user_id: number | null
|
|
@@ -237,6 +412,7 @@ export type Database = {
|
|
|
237
412
|
user_id: string
|
|
238
413
|
}
|
|
239
414
|
Insert: {
|
|
415
|
+
can_provision?: boolean
|
|
240
416
|
created_at?: string | null
|
|
241
417
|
email: string
|
|
242
418
|
github_user_id?: number | null
|
|
@@ -245,6 +421,7 @@ export type Database = {
|
|
|
245
421
|
user_id: string
|
|
246
422
|
}
|
|
247
423
|
Update: {
|
|
424
|
+
can_provision?: boolean
|
|
248
425
|
created_at?: string | null
|
|
249
426
|
email?: string
|
|
250
427
|
github_user_id?: number | null
|
|
@@ -254,6 +431,41 @@ export type Database = {
|
|
|
254
431
|
}
|
|
255
432
|
Relationships: []
|
|
256
433
|
}
|
|
434
|
+
rate_limits: {
|
|
435
|
+
Row: {
|
|
436
|
+
count: number
|
|
437
|
+
key: string
|
|
438
|
+
limiter: string
|
|
439
|
+
site_id: string
|
|
440
|
+
updated_at: string
|
|
441
|
+
window_start: string
|
|
442
|
+
}
|
|
443
|
+
Insert: {
|
|
444
|
+
count?: number
|
|
445
|
+
key: string
|
|
446
|
+
limiter: string
|
|
447
|
+
site_id: string
|
|
448
|
+
updated_at?: string
|
|
449
|
+
window_start?: string
|
|
450
|
+
}
|
|
451
|
+
Update: {
|
|
452
|
+
count?: number
|
|
453
|
+
key?: string
|
|
454
|
+
limiter?: string
|
|
455
|
+
site_id?: string
|
|
456
|
+
updated_at?: string
|
|
457
|
+
window_start?: string
|
|
458
|
+
}
|
|
459
|
+
Relationships: [
|
|
460
|
+
{
|
|
461
|
+
foreignKeyName: "rate_limits_site_id_fkey"
|
|
462
|
+
columns: ["site_id"]
|
|
463
|
+
isOneToOne: false
|
|
464
|
+
referencedRelation: "sites"
|
|
465
|
+
referencedColumns: ["id"]
|
|
466
|
+
},
|
|
467
|
+
]
|
|
468
|
+
}
|
|
257
469
|
site_api_keys: {
|
|
258
470
|
Row: {
|
|
259
471
|
created_at: string | null
|
|
@@ -325,6 +537,7 @@ export type Database = {
|
|
|
325
537
|
Row: {
|
|
326
538
|
created_at: string | null
|
|
327
539
|
custom_domain: string | null
|
|
540
|
+
failed_step: string | null
|
|
328
541
|
github_owner: string
|
|
329
542
|
github_repo: string
|
|
330
543
|
id: string
|
|
@@ -334,10 +547,12 @@ export type Database = {
|
|
|
334
547
|
password_enabled: boolean
|
|
335
548
|
provisioned_by: string | null
|
|
336
549
|
provisioning_status: string
|
|
550
|
+
subdomain: string | null
|
|
337
551
|
}
|
|
338
552
|
Insert: {
|
|
339
553
|
created_at?: string | null
|
|
340
554
|
custom_domain?: string | null
|
|
555
|
+
failed_step?: string | null
|
|
341
556
|
github_owner: string
|
|
342
557
|
github_repo: string
|
|
343
558
|
id?: string
|
|
@@ -347,10 +562,12 @@ export type Database = {
|
|
|
347
562
|
password_enabled?: boolean
|
|
348
563
|
provisioned_by?: string | null
|
|
349
564
|
provisioning_status?: string
|
|
565
|
+
subdomain?: string | null
|
|
350
566
|
}
|
|
351
567
|
Update: {
|
|
352
568
|
created_at?: string | null
|
|
353
569
|
custom_domain?: string | null
|
|
570
|
+
failed_step?: string | null
|
|
354
571
|
github_owner?: string
|
|
355
572
|
github_repo?: string
|
|
356
573
|
id?: string
|
|
@@ -360,6 +577,7 @@ export type Database = {
|
|
|
360
577
|
password_enabled?: boolean
|
|
361
578
|
provisioned_by?: string | null
|
|
362
579
|
provisioning_status?: string
|
|
580
|
+
subdomain?: string | null
|
|
363
581
|
}
|
|
364
582
|
Relationships: [
|
|
365
583
|
{
|
|
@@ -419,33 +637,6 @@ export type Database = {
|
|
|
419
637
|
},
|
|
420
638
|
]
|
|
421
639
|
}
|
|
422
|
-
rate_limits: {
|
|
423
|
-
Row: {
|
|
424
|
-
site_id: string
|
|
425
|
-
limiter: string
|
|
426
|
-
key: string
|
|
427
|
-
window_start: string
|
|
428
|
-
count: number
|
|
429
|
-
updated_at: string
|
|
430
|
-
}
|
|
431
|
-
Insert: {
|
|
432
|
-
site_id: string
|
|
433
|
-
limiter: string
|
|
434
|
-
key: string
|
|
435
|
-
window_start?: string
|
|
436
|
-
count?: number
|
|
437
|
-
updated_at?: string
|
|
438
|
-
}
|
|
439
|
-
Update: {
|
|
440
|
-
site_id?: string
|
|
441
|
-
limiter?: string
|
|
442
|
-
key?: string
|
|
443
|
-
window_start?: string
|
|
444
|
-
count?: number
|
|
445
|
-
updated_at?: string
|
|
446
|
-
}
|
|
447
|
-
Relationships: []
|
|
448
|
-
}
|
|
449
640
|
}
|
|
450
641
|
Views: {
|
|
451
642
|
[_ in never]: never
|
|
@@ -454,22 +645,31 @@ export type Database = {
|
|
|
454
645
|
get_user_id_by_email: { Args: { lookup_email: string }; Returns: string }
|
|
455
646
|
is_site_member: { Args: { p_site_id: string }; Returns: boolean }
|
|
456
647
|
is_site_owner: { Args: { p_site_id: string }; Returns: boolean }
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
648
|
+
oauth_cleanup: { Args: { p_max_age_ms: number }; Returns: undefined }
|
|
649
|
+
oauth_rate_limit_hit: {
|
|
650
|
+
Args: { p_key: string; p_max: number; p_window_ms: number }
|
|
651
|
+
Returns: {
|
|
652
|
+
allowed: boolean
|
|
653
|
+
retry_after_ms: number
|
|
654
|
+
}[]
|
|
460
655
|
}
|
|
656
|
+
provision_claim: { Args: { p_site_id: string }; Returns: boolean }
|
|
657
|
+
rate_limit_cleanup: { Args: { p_max_age_ms: number }; Returns: undefined }
|
|
461
658
|
rate_limit_hit: {
|
|
462
659
|
Args: {
|
|
463
|
-
p_site_id: string
|
|
464
|
-
p_limiter: string
|
|
465
660
|
p_key: string
|
|
466
|
-
|
|
661
|
+
p_limiter: string
|
|
467
662
|
p_max: number
|
|
663
|
+
p_site_id: string
|
|
664
|
+
p_window_ms: number
|
|
468
665
|
}
|
|
469
|
-
Returns: {
|
|
666
|
+
Returns: {
|
|
667
|
+
allowed: boolean
|
|
668
|
+
retry_after_ms: number
|
|
669
|
+
}[]
|
|
470
670
|
}
|
|
471
|
-
|
|
472
|
-
Args: {
|
|
671
|
+
revoke_site_user: {
|
|
672
|
+
Args: { p_site_id: string; p_user_id: string }
|
|
473
673
|
Returns: undefined
|
|
474
674
|
}
|
|
475
675
|
}
|