@byline/cli 2.1.2 → 2.2.0
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/manifest/deps.d.ts +5 -7
- package/dist/manifest/deps.d.ts.map +1 -1
- package/dist/manifest/deps.js +46 -8
- package/dist/manifest/deps.js.map +1 -1
- package/dist/templates/byline/i18n.ts +1 -1
- package/dist/templates/byline-examples/admin.config.ts +12 -0
- package/dist/templates/byline-examples/collections/media/components/media-list-view.module.css +1 -1
- package/dist/templates/byline-examples/collections/news/admin.tsx +7 -2
- package/dist/templates/byline-examples/collections/pages/admin.tsx +2 -1
- package/dist/templates/byline-examples/fields/ai-text.ts +47 -0
- package/dist/templates/byline-examples/fields/ai-textarea.ts +50 -0
- package/dist/templates/byline-examples/fields/ai-widgets/ai-field-label.tsx +48 -0
- package/dist/templates/byline-examples/fields/ai-widgets/ai-field-panel.tsx +42 -0
- package/dist/templates/byline-examples/fields/ai-widgets/ai-panel-store.ts +52 -0
- package/dist/templates/byline-examples/fields/lexical-richtext-ai.tsx +82 -0
- package/dist/templates/byline-examples/fields/lexical-richtext-compact.ts +8 -4
- package/dist/templates/byline-examples/i18n.ts +1 -1
- package/dist/templates/byline-examples/plugins/ai/ai-plugin-text.tsx +58 -0
- package/dist/templates/byline-examples/scripts/import-docs.ts +272 -0
- package/dist/templates/byline-examples/scripts/lib/frontmatter.ts +136 -0
- package/dist/templates/byline-examples/scripts/lib/mdast-to-lexical.ts +497 -0
- package/dist/templates/byline-examples/scripts/lib/strip-leading-h1.ts +31 -0
- package/dist/templates/host/vite.config.ts +33 -25
- package/dist/templates/migrations/{0000_slimy_lilandra.sql → 0000_cold_red_wolf.sql} +40 -34
- package/dist/templates/migrations/meta/0000_snapshot.json +100 -68
- package/dist/templates/migrations/meta/_journal.json +2 -2
- package/package.json +1 -1
- package/dist/templates/byline-examples/collections/docs/components/feature-formatter.tsx +0 -10
- package/dist/templates/byline-examples/collections/docs-categories/admin.tsx +0 -78
- package/dist/templates/byline-examples/collections/docs-categories/components/.gitkeep +0 -0
- package/dist/templates/byline-examples/collections/docs-categories/hooks/.gitkeep +0 -0
- package/dist/templates/byline-examples/collections/docs-categories/index.ts +0 -10
- package/dist/templates/byline-examples/collections/docs-categories/schema.ts +0 -33
- package/dist/templates/byline-examples/seeds/doc-categories.ts +0 -71
|
@@ -3,8 +3,8 @@ CREATE TABLE "byline_admin_permissions" (
|
|
|
3
3
|
"vid" integer DEFAULT 1 NOT NULL,
|
|
4
4
|
"admin_role_id" uuid NOT NULL,
|
|
5
5
|
"ability" varchar(128) NOT NULL,
|
|
6
|
-
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
7
|
-
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
6
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
7
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
8
8
|
CONSTRAINT "uq_byline_admin_permissions_role_ability" UNIQUE("admin_role_id","ability")
|
|
9
9
|
);
|
|
10
10
|
--> statement-breakpoint
|
|
@@ -19,15 +19,15 @@ CREATE TABLE "byline_admin_refresh_tokens" (
|
|
|
19
19
|
"last_used_at" timestamp (6) with time zone,
|
|
20
20
|
"user_agent" varchar(512),
|
|
21
21
|
"ip" varchar(45),
|
|
22
|
-
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
23
|
-
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
22
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
23
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
24
24
|
CONSTRAINT "byline_admin_refresh_tokens_token_hash_unique" UNIQUE("token_hash")
|
|
25
25
|
);
|
|
26
26
|
--> statement-breakpoint
|
|
27
27
|
CREATE TABLE "byline_admin_role_admin_user" (
|
|
28
28
|
"admin_role_id" uuid NOT NULL,
|
|
29
29
|
"admin_user_id" uuid NOT NULL,
|
|
30
|
-
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
30
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
31
31
|
CONSTRAINT "byline_admin_role_admin_user_admin_role_id_admin_user_id_pk" PRIMARY KEY("admin_role_id","admin_user_id")
|
|
32
32
|
);
|
|
33
33
|
--> statement-breakpoint
|
|
@@ -38,8 +38,8 @@ CREATE TABLE "byline_admin_roles" (
|
|
|
38
38
|
"machine_name" varchar(128) NOT NULL,
|
|
39
39
|
"description" text,
|
|
40
40
|
"order" integer DEFAULT 0 NOT NULL,
|
|
41
|
-
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
42
|
-
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
41
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
42
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
43
43
|
CONSTRAINT "byline_admin_roles_machine_name_unique" UNIQUE("machine_name")
|
|
44
44
|
);
|
|
45
45
|
--> statement-breakpoint
|
|
@@ -58,8 +58,8 @@ CREATE TABLE "byline_admin_users" (
|
|
|
58
58
|
"is_super_admin" boolean DEFAULT false NOT NULL,
|
|
59
59
|
"is_enabled" boolean DEFAULT false NOT NULL,
|
|
60
60
|
"is_email_verified" boolean DEFAULT false NOT NULL,
|
|
61
|
-
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
62
|
-
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
61
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
62
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
63
63
|
CONSTRAINT "byline_admin_users_username_unique" UNIQUE("username"),
|
|
64
64
|
CONSTRAINT "byline_admin_users_email_unique" UNIQUE("email")
|
|
65
65
|
);
|
|
@@ -72,8 +72,8 @@ CREATE TABLE "byline_store_boolean" (
|
|
|
72
72
|
"field_name" varchar(255) NOT NULL,
|
|
73
73
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
74
74
|
"parent_path" varchar(500),
|
|
75
|
-
"created_at" timestamp DEFAULT now(),
|
|
76
|
-
"updated_at" timestamp DEFAULT now(),
|
|
75
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
76
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
77
77
|
"value" boolean NOT NULL,
|
|
78
78
|
CONSTRAINT "unique_boolean_field" UNIQUE("document_version_id","field_path","locale")
|
|
79
79
|
);
|
|
@@ -86,11 +86,17 @@ CREATE TABLE "byline_collections" (
|
|
|
86
86
|
"config" jsonb NOT NULL,
|
|
87
87
|
"version" integer DEFAULT 1 NOT NULL,
|
|
88
88
|
"schema_hash" varchar(64),
|
|
89
|
-
"created_at" timestamp DEFAULT now(),
|
|
90
|
-
"updated_at" timestamp DEFAULT now(),
|
|
89
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
90
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
91
91
|
CONSTRAINT "byline_collections_path_unique" UNIQUE("path")
|
|
92
92
|
);
|
|
93
93
|
--> statement-breakpoint
|
|
94
|
+
CREATE TABLE "byline_counter_groups" (
|
|
95
|
+
"group_name" text PRIMARY KEY NOT NULL,
|
|
96
|
+
"sequence_name" text NOT NULL,
|
|
97
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL
|
|
98
|
+
);
|
|
99
|
+
--> statement-breakpoint
|
|
94
100
|
CREATE TABLE "byline_store_datetime" (
|
|
95
101
|
"id" uuid PRIMARY KEY NOT NULL,
|
|
96
102
|
"document_version_id" uuid NOT NULL,
|
|
@@ -99,8 +105,8 @@ CREATE TABLE "byline_store_datetime" (
|
|
|
99
105
|
"field_name" varchar(255) NOT NULL,
|
|
100
106
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
101
107
|
"parent_path" varchar(500),
|
|
102
|
-
"created_at" timestamp DEFAULT now(),
|
|
103
|
-
"updated_at" timestamp DEFAULT now(),
|
|
108
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
109
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
104
110
|
"date_type" varchar(20) NOT NULL,
|
|
105
111
|
"value_date" date,
|
|
106
112
|
"value_time" time,
|
|
@@ -113,8 +119,8 @@ CREATE TABLE "byline_document_paths" (
|
|
|
113
119
|
"locale" varchar(10) NOT NULL,
|
|
114
120
|
"collection_id" uuid NOT NULL,
|
|
115
121
|
"path" varchar(255) NOT NULL,
|
|
116
|
-
"created_at" timestamp DEFAULT now(),
|
|
117
|
-
"updated_at" timestamp DEFAULT now(),
|
|
122
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
123
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
118
124
|
CONSTRAINT "unique_document_paths_document_locale" UNIQUE("document_id","locale"),
|
|
119
125
|
CONSTRAINT "idx_document_paths_collection_locale_path" UNIQUE("collection_id","locale","path")
|
|
120
126
|
);
|
|
@@ -122,7 +128,7 @@ CREATE TABLE "byline_document_paths" (
|
|
|
122
128
|
CREATE TABLE "byline_document_relationships" (
|
|
123
129
|
"parent_document_id" uuid NOT NULL,
|
|
124
130
|
"child_document_id" uuid NOT NULL,
|
|
125
|
-
"created_at" timestamp DEFAULT now(),
|
|
131
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
126
132
|
CONSTRAINT "byline_document_relationships_parent_document_id_child_document_id_unique" UNIQUE("parent_document_id","child_document_id")
|
|
127
133
|
);
|
|
128
134
|
--> statement-breakpoint
|
|
@@ -135,8 +141,8 @@ CREATE TABLE "byline_document_versions" (
|
|
|
135
141
|
"event_type" varchar(20) DEFAULT 'create' NOT NULL,
|
|
136
142
|
"status" varchar(50) DEFAULT 'draft',
|
|
137
143
|
"is_deleted" boolean DEFAULT false,
|
|
138
|
-
"created_at" timestamp DEFAULT now(),
|
|
139
|
-
"updated_at" timestamp DEFAULT now(),
|
|
144
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
145
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
140
146
|
"created_by" uuid,
|
|
141
147
|
"change_summary" text
|
|
142
148
|
);
|
|
@@ -145,8 +151,8 @@ CREATE TABLE "byline_documents" (
|
|
|
145
151
|
"id" uuid PRIMARY KEY NOT NULL,
|
|
146
152
|
"collection_id" uuid NOT NULL,
|
|
147
153
|
"order_key" varchar(128) COLLATE "C",
|
|
148
|
-
"created_at" timestamp DEFAULT now(),
|
|
149
|
-
"updated_at" timestamp DEFAULT now()
|
|
154
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
155
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL
|
|
150
156
|
);
|
|
151
157
|
--> statement-breakpoint
|
|
152
158
|
CREATE TABLE "byline_store_file" (
|
|
@@ -157,8 +163,8 @@ CREATE TABLE "byline_store_file" (
|
|
|
157
163
|
"field_name" varchar(255) NOT NULL,
|
|
158
164
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
159
165
|
"parent_path" varchar(500),
|
|
160
|
-
"created_at" timestamp DEFAULT now(),
|
|
161
|
-
"updated_at" timestamp DEFAULT now(),
|
|
166
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
167
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
162
168
|
"file_id" uuid NOT NULL,
|
|
163
169
|
"filename" varchar(255) NOT NULL,
|
|
164
170
|
"original_filename" varchar(255) NOT NULL,
|
|
@@ -185,8 +191,8 @@ CREATE TABLE "byline_store_json" (
|
|
|
185
191
|
"field_name" varchar(255) NOT NULL,
|
|
186
192
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
187
193
|
"parent_path" varchar(500),
|
|
188
|
-
"created_at" timestamp DEFAULT now(),
|
|
189
|
-
"updated_at" timestamp DEFAULT now(),
|
|
194
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
195
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
190
196
|
"value" jsonb NOT NULL,
|
|
191
197
|
"json_schema" varchar(100),
|
|
192
198
|
"object_keys" text[],
|
|
@@ -201,8 +207,8 @@ CREATE TABLE "byline_store_meta" (
|
|
|
201
207
|
"path" text NOT NULL,
|
|
202
208
|
"item_id" varchar(255) NOT NULL,
|
|
203
209
|
"meta" jsonb,
|
|
204
|
-
"created_at" timestamp DEFAULT now(),
|
|
205
|
-
"updated_at" timestamp DEFAULT now(),
|
|
210
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
211
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
206
212
|
CONSTRAINT "unique_meta_node" UNIQUE("document_version_id","type","path")
|
|
207
213
|
);
|
|
208
214
|
--> statement-breakpoint
|
|
@@ -214,8 +220,8 @@ CREATE TABLE "byline_store_numeric" (
|
|
|
214
220
|
"field_name" varchar(255) NOT NULL,
|
|
215
221
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
216
222
|
"parent_path" varchar(500),
|
|
217
|
-
"created_at" timestamp DEFAULT now(),
|
|
218
|
-
"updated_at" timestamp DEFAULT now(),
|
|
223
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
224
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
219
225
|
"number_type" varchar(20) NOT NULL,
|
|
220
226
|
"value_integer" integer,
|
|
221
227
|
"value_decimal" numeric(10, 2),
|
|
@@ -231,8 +237,8 @@ CREATE TABLE "byline_store_relation" (
|
|
|
231
237
|
"field_name" varchar(255) NOT NULL,
|
|
232
238
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
233
239
|
"parent_path" varchar(500),
|
|
234
|
-
"created_at" timestamp DEFAULT now(),
|
|
235
|
-
"updated_at" timestamp DEFAULT now(),
|
|
240
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
241
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
236
242
|
"target_document_id" uuid NOT NULL,
|
|
237
243
|
"target_collection_id" uuid NOT NULL,
|
|
238
244
|
"relationship_type" varchar(50) DEFAULT 'reference',
|
|
@@ -248,8 +254,8 @@ CREATE TABLE "byline_store_text" (
|
|
|
248
254
|
"field_name" varchar(255) NOT NULL,
|
|
249
255
|
"locale" varchar(10) DEFAULT 'default' NOT NULL,
|
|
250
256
|
"parent_path" varchar(500),
|
|
251
|
-
"created_at" timestamp DEFAULT now(),
|
|
252
|
-
"updated_at" timestamp DEFAULT now(),
|
|
257
|
+
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
258
|
+
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
|
253
259
|
"value" text NOT NULL,
|
|
254
260
|
"word_count" integer,
|
|
255
261
|
CONSTRAINT "unique_text_field" UNIQUE("document_version_id","field_path","locale")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "bc48197e-4883-4d43-b721-18d917a04619",
|
|
3
3
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"created_at": {
|
|
37
37
|
"name": "created_at",
|
|
38
|
-
"type": "timestamp",
|
|
38
|
+
"type": "timestamp (6) with time zone",
|
|
39
39
|
"primaryKey": false,
|
|
40
40
|
"notNull": true,
|
|
41
41
|
"default": "now()"
|
|
42
42
|
},
|
|
43
43
|
"updated_at": {
|
|
44
44
|
"name": "updated_at",
|
|
45
|
-
"type": "timestamp",
|
|
45
|
+
"type": "timestamp (6) with time zone",
|
|
46
46
|
"primaryKey": false,
|
|
47
47
|
"notNull": true,
|
|
48
48
|
"default": "now()"
|
|
@@ -162,14 +162,14 @@
|
|
|
162
162
|
},
|
|
163
163
|
"created_at": {
|
|
164
164
|
"name": "created_at",
|
|
165
|
-
"type": "timestamp",
|
|
165
|
+
"type": "timestamp (6) with time zone",
|
|
166
166
|
"primaryKey": false,
|
|
167
167
|
"notNull": true,
|
|
168
168
|
"default": "now()"
|
|
169
169
|
},
|
|
170
170
|
"updated_at": {
|
|
171
171
|
"name": "updated_at",
|
|
172
|
-
"type": "timestamp",
|
|
172
|
+
"type": "timestamp (6) with time zone",
|
|
173
173
|
"primaryKey": false,
|
|
174
174
|
"notNull": true,
|
|
175
175
|
"default": "now()"
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
},
|
|
255
255
|
"created_at": {
|
|
256
256
|
"name": "created_at",
|
|
257
|
-
"type": "timestamp",
|
|
257
|
+
"type": "timestamp (6) with time zone",
|
|
258
258
|
"primaryKey": false,
|
|
259
259
|
"notNull": true,
|
|
260
260
|
"default": "now()"
|
|
@@ -363,14 +363,14 @@
|
|
|
363
363
|
},
|
|
364
364
|
"created_at": {
|
|
365
365
|
"name": "created_at",
|
|
366
|
-
"type": "timestamp",
|
|
366
|
+
"type": "timestamp (6) with time zone",
|
|
367
367
|
"primaryKey": false,
|
|
368
368
|
"notNull": true,
|
|
369
369
|
"default": "now()"
|
|
370
370
|
},
|
|
371
371
|
"updated_at": {
|
|
372
372
|
"name": "updated_at",
|
|
373
|
-
"type": "timestamp",
|
|
373
|
+
"type": "timestamp (6) with time zone",
|
|
374
374
|
"primaryKey": false,
|
|
375
375
|
"notNull": true,
|
|
376
376
|
"default": "now()"
|
|
@@ -504,14 +504,14 @@
|
|
|
504
504
|
},
|
|
505
505
|
"created_at": {
|
|
506
506
|
"name": "created_at",
|
|
507
|
-
"type": "timestamp",
|
|
507
|
+
"type": "timestamp (6) with time zone",
|
|
508
508
|
"primaryKey": false,
|
|
509
509
|
"notNull": true,
|
|
510
510
|
"default": "now()"
|
|
511
511
|
},
|
|
512
512
|
"updated_at": {
|
|
513
513
|
"name": "updated_at",
|
|
514
|
-
"type": "timestamp",
|
|
514
|
+
"type": "timestamp (6) with time zone",
|
|
515
515
|
"primaryKey": false,
|
|
516
516
|
"notNull": true,
|
|
517
517
|
"default": "now()"
|
|
@@ -605,16 +605,16 @@
|
|
|
605
605
|
},
|
|
606
606
|
"created_at": {
|
|
607
607
|
"name": "created_at",
|
|
608
|
-
"type": "timestamp",
|
|
608
|
+
"type": "timestamp (6) with time zone",
|
|
609
609
|
"primaryKey": false,
|
|
610
|
-
"notNull":
|
|
610
|
+
"notNull": true,
|
|
611
611
|
"default": "now()"
|
|
612
612
|
},
|
|
613
613
|
"updated_at": {
|
|
614
614
|
"name": "updated_at",
|
|
615
|
-
"type": "timestamp",
|
|
615
|
+
"type": "timestamp (6) with time zone",
|
|
616
616
|
"primaryKey": false,
|
|
617
|
-
"notNull":
|
|
617
|
+
"notNull": true,
|
|
618
618
|
"default": "now()"
|
|
619
619
|
},
|
|
620
620
|
"value": {
|
|
@@ -782,16 +782,16 @@
|
|
|
782
782
|
},
|
|
783
783
|
"created_at": {
|
|
784
784
|
"name": "created_at",
|
|
785
|
-
"type": "timestamp",
|
|
785
|
+
"type": "timestamp (6) with time zone",
|
|
786
786
|
"primaryKey": false,
|
|
787
|
-
"notNull":
|
|
787
|
+
"notNull": true,
|
|
788
788
|
"default": "now()"
|
|
789
789
|
},
|
|
790
790
|
"updated_at": {
|
|
791
791
|
"name": "updated_at",
|
|
792
|
-
"type": "timestamp",
|
|
792
|
+
"type": "timestamp (6) with time zone",
|
|
793
793
|
"primaryKey": false,
|
|
794
|
-
"notNull":
|
|
794
|
+
"notNull": true,
|
|
795
795
|
"default": "now()"
|
|
796
796
|
}
|
|
797
797
|
},
|
|
@@ -811,6 +811,38 @@
|
|
|
811
811
|
"checkConstraints": {},
|
|
812
812
|
"isRLSEnabled": false
|
|
813
813
|
},
|
|
814
|
+
"public.byline_counter_groups": {
|
|
815
|
+
"name": "byline_counter_groups",
|
|
816
|
+
"schema": "",
|
|
817
|
+
"columns": {
|
|
818
|
+
"group_name": {
|
|
819
|
+
"name": "group_name",
|
|
820
|
+
"type": "text",
|
|
821
|
+
"primaryKey": true,
|
|
822
|
+
"notNull": true
|
|
823
|
+
},
|
|
824
|
+
"sequence_name": {
|
|
825
|
+
"name": "sequence_name",
|
|
826
|
+
"type": "text",
|
|
827
|
+
"primaryKey": false,
|
|
828
|
+
"notNull": true
|
|
829
|
+
},
|
|
830
|
+
"created_at": {
|
|
831
|
+
"name": "created_at",
|
|
832
|
+
"type": "timestamp (6) with time zone",
|
|
833
|
+
"primaryKey": false,
|
|
834
|
+
"notNull": true,
|
|
835
|
+
"default": "now()"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"indexes": {},
|
|
839
|
+
"foreignKeys": {},
|
|
840
|
+
"compositePrimaryKeys": {},
|
|
841
|
+
"uniqueConstraints": {},
|
|
842
|
+
"policies": {},
|
|
843
|
+
"checkConstraints": {},
|
|
844
|
+
"isRLSEnabled": false
|
|
845
|
+
},
|
|
814
846
|
"public.byline_store_datetime": {
|
|
815
847
|
"name": "byline_store_datetime",
|
|
816
848
|
"schema": "",
|
|
@@ -860,16 +892,16 @@
|
|
|
860
892
|
},
|
|
861
893
|
"created_at": {
|
|
862
894
|
"name": "created_at",
|
|
863
|
-
"type": "timestamp",
|
|
895
|
+
"type": "timestamp (6) with time zone",
|
|
864
896
|
"primaryKey": false,
|
|
865
|
-
"notNull":
|
|
897
|
+
"notNull": true,
|
|
866
898
|
"default": "now()"
|
|
867
899
|
},
|
|
868
900
|
"updated_at": {
|
|
869
901
|
"name": "updated_at",
|
|
870
|
-
"type": "timestamp",
|
|
902
|
+
"type": "timestamp (6) with time zone",
|
|
871
903
|
"primaryKey": false,
|
|
872
|
-
"notNull":
|
|
904
|
+
"notNull": true,
|
|
873
905
|
"default": "now()"
|
|
874
906
|
},
|
|
875
907
|
"date_type": {
|
|
@@ -1045,16 +1077,16 @@
|
|
|
1045
1077
|
},
|
|
1046
1078
|
"created_at": {
|
|
1047
1079
|
"name": "created_at",
|
|
1048
|
-
"type": "timestamp",
|
|
1080
|
+
"type": "timestamp (6) with time zone",
|
|
1049
1081
|
"primaryKey": false,
|
|
1050
|
-
"notNull":
|
|
1082
|
+
"notNull": true,
|
|
1051
1083
|
"default": "now()"
|
|
1052
1084
|
},
|
|
1053
1085
|
"updated_at": {
|
|
1054
1086
|
"name": "updated_at",
|
|
1055
|
-
"type": "timestamp",
|
|
1087
|
+
"type": "timestamp (6) with time zone",
|
|
1056
1088
|
"primaryKey": false,
|
|
1057
|
-
"notNull":
|
|
1089
|
+
"notNull": true,
|
|
1058
1090
|
"default": "now()"
|
|
1059
1091
|
}
|
|
1060
1092
|
},
|
|
@@ -1145,9 +1177,9 @@
|
|
|
1145
1177
|
},
|
|
1146
1178
|
"created_at": {
|
|
1147
1179
|
"name": "created_at",
|
|
1148
|
-
"type": "timestamp",
|
|
1180
|
+
"type": "timestamp (6) with time zone",
|
|
1149
1181
|
"primaryKey": false,
|
|
1150
|
-
"notNull":
|
|
1182
|
+
"notNull": true,
|
|
1151
1183
|
"default": "now()"
|
|
1152
1184
|
}
|
|
1153
1185
|
},
|
|
@@ -1283,16 +1315,16 @@
|
|
|
1283
1315
|
},
|
|
1284
1316
|
"created_at": {
|
|
1285
1317
|
"name": "created_at",
|
|
1286
|
-
"type": "timestamp",
|
|
1318
|
+
"type": "timestamp (6) with time zone",
|
|
1287
1319
|
"primaryKey": false,
|
|
1288
|
-
"notNull":
|
|
1320
|
+
"notNull": true,
|
|
1289
1321
|
"default": "now()"
|
|
1290
1322
|
},
|
|
1291
1323
|
"updated_at": {
|
|
1292
1324
|
"name": "updated_at",
|
|
1293
|
-
"type": "timestamp",
|
|
1325
|
+
"type": "timestamp (6) with time zone",
|
|
1294
1326
|
"primaryKey": false,
|
|
1295
|
-
"notNull":
|
|
1327
|
+
"notNull": true,
|
|
1296
1328
|
"default": "now()"
|
|
1297
1329
|
},
|
|
1298
1330
|
"created_by": {
|
|
@@ -1494,16 +1526,16 @@
|
|
|
1494
1526
|
},
|
|
1495
1527
|
"created_at": {
|
|
1496
1528
|
"name": "created_at",
|
|
1497
|
-
"type": "timestamp",
|
|
1529
|
+
"type": "timestamp (6) with time zone",
|
|
1498
1530
|
"primaryKey": false,
|
|
1499
|
-
"notNull":
|
|
1531
|
+
"notNull": true,
|
|
1500
1532
|
"default": "now()"
|
|
1501
1533
|
},
|
|
1502
1534
|
"updated_at": {
|
|
1503
1535
|
"name": "updated_at",
|
|
1504
|
-
"type": "timestamp",
|
|
1536
|
+
"type": "timestamp (6) with time zone",
|
|
1505
1537
|
"primaryKey": false,
|
|
1506
|
-
"notNull":
|
|
1538
|
+
"notNull": true,
|
|
1507
1539
|
"default": "now()"
|
|
1508
1540
|
}
|
|
1509
1541
|
},
|
|
@@ -1615,16 +1647,16 @@
|
|
|
1615
1647
|
},
|
|
1616
1648
|
"created_at": {
|
|
1617
1649
|
"name": "created_at",
|
|
1618
|
-
"type": "timestamp",
|
|
1650
|
+
"type": "timestamp (6) with time zone",
|
|
1619
1651
|
"primaryKey": false,
|
|
1620
|
-
"notNull":
|
|
1652
|
+
"notNull": true,
|
|
1621
1653
|
"default": "now()"
|
|
1622
1654
|
},
|
|
1623
1655
|
"updated_at": {
|
|
1624
1656
|
"name": "updated_at",
|
|
1625
|
-
"type": "timestamp",
|
|
1657
|
+
"type": "timestamp (6) with time zone",
|
|
1626
1658
|
"primaryKey": false,
|
|
1627
|
-
"notNull":
|
|
1659
|
+
"notNull": true,
|
|
1628
1660
|
"default": "now()"
|
|
1629
1661
|
},
|
|
1630
1662
|
"file_id": {
|
|
@@ -1926,16 +1958,16 @@
|
|
|
1926
1958
|
},
|
|
1927
1959
|
"created_at": {
|
|
1928
1960
|
"name": "created_at",
|
|
1929
|
-
"type": "timestamp",
|
|
1961
|
+
"type": "timestamp (6) with time zone",
|
|
1930
1962
|
"primaryKey": false,
|
|
1931
|
-
"notNull":
|
|
1963
|
+
"notNull": true,
|
|
1932
1964
|
"default": "now()"
|
|
1933
1965
|
},
|
|
1934
1966
|
"updated_at": {
|
|
1935
1967
|
"name": "updated_at",
|
|
1936
|
-
"type": "timestamp",
|
|
1968
|
+
"type": "timestamp (6) with time zone",
|
|
1937
1969
|
"primaryKey": false,
|
|
1938
|
-
"notNull":
|
|
1970
|
+
"notNull": true,
|
|
1939
1971
|
"default": "now()"
|
|
1940
1972
|
},
|
|
1941
1973
|
"value": {
|
|
@@ -2096,16 +2128,16 @@
|
|
|
2096
2128
|
},
|
|
2097
2129
|
"created_at": {
|
|
2098
2130
|
"name": "created_at",
|
|
2099
|
-
"type": "timestamp",
|
|
2131
|
+
"type": "timestamp (6) with time zone",
|
|
2100
2132
|
"primaryKey": false,
|
|
2101
|
-
"notNull":
|
|
2133
|
+
"notNull": true,
|
|
2102
2134
|
"default": "now()"
|
|
2103
2135
|
},
|
|
2104
2136
|
"updated_at": {
|
|
2105
2137
|
"name": "updated_at",
|
|
2106
|
-
"type": "timestamp",
|
|
2138
|
+
"type": "timestamp (6) with time zone",
|
|
2107
2139
|
"primaryKey": false,
|
|
2108
|
-
"notNull":
|
|
2140
|
+
"notNull": true,
|
|
2109
2141
|
"default": "now()"
|
|
2110
2142
|
}
|
|
2111
2143
|
},
|
|
@@ -2267,16 +2299,16 @@
|
|
|
2267
2299
|
},
|
|
2268
2300
|
"created_at": {
|
|
2269
2301
|
"name": "created_at",
|
|
2270
|
-
"type": "timestamp",
|
|
2302
|
+
"type": "timestamp (6) with time zone",
|
|
2271
2303
|
"primaryKey": false,
|
|
2272
|
-
"notNull":
|
|
2304
|
+
"notNull": true,
|
|
2273
2305
|
"default": "now()"
|
|
2274
2306
|
},
|
|
2275
2307
|
"updated_at": {
|
|
2276
2308
|
"name": "updated_at",
|
|
2277
|
-
"type": "timestamp",
|
|
2309
|
+
"type": "timestamp (6) with time zone",
|
|
2278
2310
|
"primaryKey": false,
|
|
2279
|
-
"notNull":
|
|
2311
|
+
"notNull": true,
|
|
2280
2312
|
"default": "now()"
|
|
2281
2313
|
},
|
|
2282
2314
|
"number_type": {
|
|
@@ -2486,16 +2518,16 @@
|
|
|
2486
2518
|
},
|
|
2487
2519
|
"created_at": {
|
|
2488
2520
|
"name": "created_at",
|
|
2489
|
-
"type": "timestamp",
|
|
2521
|
+
"type": "timestamp (6) with time zone",
|
|
2490
2522
|
"primaryKey": false,
|
|
2491
|
-
"notNull":
|
|
2523
|
+
"notNull": true,
|
|
2492
2524
|
"default": "now()"
|
|
2493
2525
|
},
|
|
2494
2526
|
"updated_at": {
|
|
2495
2527
|
"name": "updated_at",
|
|
2496
|
-
"type": "timestamp",
|
|
2528
|
+
"type": "timestamp (6) with time zone",
|
|
2497
2529
|
"primaryKey": false,
|
|
2498
|
-
"notNull":
|
|
2530
|
+
"notNull": true,
|
|
2499
2531
|
"default": "now()"
|
|
2500
2532
|
},
|
|
2501
2533
|
"target_document_id": {
|
|
@@ -2733,16 +2765,16 @@
|
|
|
2733
2765
|
},
|
|
2734
2766
|
"created_at": {
|
|
2735
2767
|
"name": "created_at",
|
|
2736
|
-
"type": "timestamp",
|
|
2768
|
+
"type": "timestamp (6) with time zone",
|
|
2737
2769
|
"primaryKey": false,
|
|
2738
|
-
"notNull":
|
|
2770
|
+
"notNull": true,
|
|
2739
2771
|
"default": "now()"
|
|
2740
2772
|
},
|
|
2741
2773
|
"updated_at": {
|
|
2742
2774
|
"name": "updated_at",
|
|
2743
|
-
"type": "timestamp",
|
|
2775
|
+
"type": "timestamp (6) with time zone",
|
|
2744
2776
|
"primaryKey": false,
|
|
2745
|
-
"notNull":
|
|
2777
|
+
"notNull": true,
|
|
2746
2778
|
"default": "now()"
|
|
2747
2779
|
},
|
|
2748
2780
|
"value": {
|
|
@@ -2932,16 +2964,16 @@
|
|
|
2932
2964
|
},
|
|
2933
2965
|
"created_at": {
|
|
2934
2966
|
"name": "created_at",
|
|
2935
|
-
"type": "timestamp",
|
|
2967
|
+
"type": "timestamp (6) with time zone",
|
|
2936
2968
|
"primaryKey": false,
|
|
2937
|
-
"notNull":
|
|
2969
|
+
"notNull": true,
|
|
2938
2970
|
"default": "now()"
|
|
2939
2971
|
},
|
|
2940
2972
|
"updated_at": {
|
|
2941
2973
|
"name": "updated_at",
|
|
2942
|
-
"type": "timestamp",
|
|
2974
|
+
"type": "timestamp (6) with time zone",
|
|
2943
2975
|
"primaryKey": false,
|
|
2944
|
-
"notNull":
|
|
2976
|
+
"notNull": true,
|
|
2945
2977
|
"default": "now()"
|
|
2946
2978
|
},
|
|
2947
2979
|
"created_by": {
|
|
@@ -3018,16 +3050,16 @@
|
|
|
3018
3050
|
},
|
|
3019
3051
|
"created_at": {
|
|
3020
3052
|
"name": "created_at",
|
|
3021
|
-
"type": "timestamp",
|
|
3053
|
+
"type": "timestamp (6) with time zone",
|
|
3022
3054
|
"primaryKey": false,
|
|
3023
|
-
"notNull":
|
|
3055
|
+
"notNull": true,
|
|
3024
3056
|
"default": "now()"
|
|
3025
3057
|
},
|
|
3026
3058
|
"updated_at": {
|
|
3027
3059
|
"name": "updated_at",
|
|
3028
|
-
"type": "timestamp",
|
|
3060
|
+
"type": "timestamp (6) with time zone",
|
|
3029
3061
|
"primaryKey": false,
|
|
3030
|
-
"notNull":
|
|
3062
|
+
"notNull": true,
|
|
3031
3063
|
"default": "now()"
|
|
3032
3064
|
},
|
|
3033
3065
|
"created_by": {
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FormatterProps } from '@byline/core'
|
|
2
|
-
|
|
3
|
-
export function FeaturedFormatter({ value, record }: FormatterProps) {
|
|
4
|
-
if (value == null || value === false) return null
|
|
5
|
-
return (
|
|
6
|
-
<span title={`"${record.title}" is featured`} className="text-amber-500">
|
|
7
|
-
★
|
|
8
|
-
</span>
|
|
9
|
-
)
|
|
10
|
-
}
|