@kyro-cms/core 0.2.4 → 0.2.9
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/{WebhookService-CXJ5oz6L.d.ts → WebhookService-BznDc2AT.d.ts} +1 -1
- package/dist/{WebhookService-Dqx9Is7m.d.cts → WebhookService-mZZ75syh.d.cts} +1 -1
- package/dist/{base-Cfek4fp3.d.cts → base-Db9LkB1N.d.cts} +1 -1
- package/dist/{base-CciYzoDF.d.ts → base-Hu6ij8sZ.d.ts} +1 -1
- package/dist/{chunk-RONAX6UU.js → chunk-KB6QF4HO.js} +389 -142
- package/dist/chunk-KB6QF4HO.js.map +1 -0
- package/dist/{chunk-KDVDIZ4Y.cjs → chunk-PNBZZ76A.cjs} +389 -142
- package/dist/chunk-PNBZZ76A.cjs.map +1 -0
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/drizzle/index.d.cts +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/graphql/index.d.cts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/{index-CTLPjpMH.d.cts → index-11MDNKce.d.cts} +1 -1
- package/dist/{index-BvZ1iWm2.d.ts → index-Ci6r4xnN.d.ts} +1 -1
- package/dist/index.cjs +234 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +223 -112
- package/dist/index.js.map +1 -1
- package/dist/mongodb/index.d.cts +2 -2
- package/dist/mongodb/index.d.ts +2 -2
- package/dist/rest/index.d.cts +3 -3
- package/dist/rest/index.d.ts +3 -3
- package/dist/templates/index.cjs +23 -23
- package/dist/templates/index.d.cts +1 -1
- package/dist/templates/index.d.ts +1 -1
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.d.cts +2 -2
- package/dist/trpc/index.d.ts +2 -2
- package/dist/{types-Bt1OEk0S.d.cts → types-kGfsGdos.d.cts} +10 -10
- package/dist/{types-Bt1OEk0S.d.ts → types-kGfsGdos.d.ts} +10 -10
- package/package.json +4 -4
- package/dist/chunk-KDVDIZ4Y.cjs.map +0 -1
- package/dist/chunk-RONAX6UU.js.map +0 -1
|
@@ -38,15 +38,7 @@ var minimalCollections = {
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
label: "Meta",
|
|
41
|
-
fields: [
|
|
42
|
-
{
|
|
43
|
-
name: "menu",
|
|
44
|
-
type: "relationship",
|
|
45
|
-
label: "Menu",
|
|
46
|
-
relationTo: "navigation",
|
|
47
|
-
admin: { description: "Link to navigation menu item" }
|
|
48
|
-
}
|
|
49
|
-
]
|
|
41
|
+
fields: []
|
|
50
42
|
},
|
|
51
43
|
{
|
|
52
44
|
label: "SEO",
|
|
@@ -244,15 +236,6 @@ var minimalCollections = {
|
|
|
244
236
|
],
|
|
245
237
|
defaultValue: "draft",
|
|
246
238
|
admin: { position: "sidebar" }
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
name: "publishedAt",
|
|
250
|
-
type: "date",
|
|
251
|
-
label: "Published At",
|
|
252
|
-
admin: {
|
|
253
|
-
description: "Date the post was or will be published.",
|
|
254
|
-
position: "sidebar"
|
|
255
|
-
}
|
|
256
239
|
}
|
|
257
240
|
],
|
|
258
241
|
timestamps: true
|
|
@@ -265,17 +248,44 @@ var minimalCollections = {
|
|
|
265
248
|
admin: {
|
|
266
249
|
useAsTitle: "name",
|
|
267
250
|
defaultColumns: ["name", "slug"],
|
|
268
|
-
description: "Post categories"
|
|
251
|
+
description: "Post categories",
|
|
252
|
+
layout: "split"
|
|
269
253
|
},
|
|
270
254
|
fields: [
|
|
271
255
|
{ name: "name", type: "text", required: true, label: "Name" },
|
|
272
|
-
{
|
|
273
|
-
|
|
256
|
+
{
|
|
257
|
+
name: "description",
|
|
258
|
+
type: "richtext",
|
|
259
|
+
label: "Description",
|
|
260
|
+
hasBlocks: false
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "slug",
|
|
264
|
+
type: "text",
|
|
265
|
+
required: true,
|
|
266
|
+
label: "Slug",
|
|
267
|
+
admin: { position: "sidebar", autoGenerate: "name" }
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "icon",
|
|
271
|
+
type: "upload",
|
|
272
|
+
label: "Icon",
|
|
273
|
+
relationTo: "media",
|
|
274
|
+
admin: { position: "sidebar" }
|
|
275
|
+
},
|
|
274
276
|
{
|
|
275
277
|
name: "parent",
|
|
276
278
|
type: "relationship",
|
|
277
279
|
label: "Parent Category",
|
|
278
|
-
relationTo: "categories"
|
|
280
|
+
relationTo: "categories",
|
|
281
|
+
admin: { position: "sidebar" }
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "order",
|
|
285
|
+
type: "number",
|
|
286
|
+
label: "Order",
|
|
287
|
+
defaultValue: 0,
|
|
288
|
+
admin: { position: "sidebar" }
|
|
279
289
|
}
|
|
280
290
|
],
|
|
281
291
|
timestamps: true
|
|
@@ -288,11 +298,22 @@ var minimalCollections = {
|
|
|
288
298
|
admin: {
|
|
289
299
|
useAsTitle: "label",
|
|
290
300
|
defaultColumns: ["label", "location", "order"],
|
|
291
|
-
description: "Navigation menus"
|
|
301
|
+
description: "Navigation menus",
|
|
302
|
+
layout: "split"
|
|
292
303
|
},
|
|
293
304
|
fields: [
|
|
294
305
|
{ name: "label", type: "text", required: true, label: "Label" },
|
|
295
306
|
{ name: "url", type: "text", label: "URL" },
|
|
307
|
+
{
|
|
308
|
+
name: "parent",
|
|
309
|
+
type: "relationship",
|
|
310
|
+
label: "Parent Item",
|
|
311
|
+
relationTo: "navigation",
|
|
312
|
+
admin: {
|
|
313
|
+
condition: (data) => !!data?.location,
|
|
314
|
+
position: "sidebar"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
296
317
|
{
|
|
297
318
|
name: "linkType",
|
|
298
319
|
type: "select",
|
|
@@ -302,8 +323,7 @@ var minimalCollections = {
|
|
|
302
323
|
{ label: "Post", value: "post" },
|
|
303
324
|
{ label: "Category", value: "category" }
|
|
304
325
|
],
|
|
305
|
-
defaultValue: ""
|
|
306
|
-
admin: { position: "sidebar" }
|
|
326
|
+
defaultValue: ""
|
|
307
327
|
},
|
|
308
328
|
{
|
|
309
329
|
name: "page",
|
|
@@ -311,8 +331,7 @@ var minimalCollections = {
|
|
|
311
331
|
label: "Page",
|
|
312
332
|
relationTo: "pages",
|
|
313
333
|
admin: {
|
|
314
|
-
condition: (_, current) => current?.linkType === "page"
|
|
315
|
-
position: "sidebar"
|
|
334
|
+
condition: (_, current) => current?.linkType === "page"
|
|
316
335
|
}
|
|
317
336
|
},
|
|
318
337
|
{
|
|
@@ -321,8 +340,7 @@ var minimalCollections = {
|
|
|
321
340
|
label: "Post",
|
|
322
341
|
relationTo: "posts",
|
|
323
342
|
admin: {
|
|
324
|
-
condition: (_, current) => current?.linkType === "post"
|
|
325
|
-
position: "sidebar"
|
|
343
|
+
condition: (_, current) => current?.linkType === "post"
|
|
326
344
|
}
|
|
327
345
|
},
|
|
328
346
|
{
|
|
@@ -331,8 +349,7 @@ var minimalCollections = {
|
|
|
331
349
|
label: "Category",
|
|
332
350
|
relationTo: "categories",
|
|
333
351
|
admin: {
|
|
334
|
-
condition: (_, current) => current?.linkType === "category"
|
|
335
|
-
position: "sidebar"
|
|
352
|
+
condition: (_, current) => current?.linkType === "category"
|
|
336
353
|
}
|
|
337
354
|
},
|
|
338
355
|
{
|
|
@@ -342,23 +359,20 @@ var minimalCollections = {
|
|
|
342
359
|
options: [
|
|
343
360
|
{ label: "Primary", value: "primary" },
|
|
344
361
|
{ label: "Secondary", value: "secondary" },
|
|
345
|
-
{ label: "Tertiary", value: "tertiary" }
|
|
362
|
+
{ label: "Tertiary", value: "tertiary" },
|
|
363
|
+
{ label: "Footer", value: "footer" },
|
|
364
|
+
{ label: "Mobile", value: "mobile" }
|
|
346
365
|
],
|
|
347
366
|
defaultValue: "primary",
|
|
348
367
|
admin: { position: "sidebar" }
|
|
349
368
|
},
|
|
350
369
|
{
|
|
351
|
-
name: "
|
|
352
|
-
type: "
|
|
353
|
-
label: "
|
|
354
|
-
|
|
355
|
-
{ label: "Same tab", value: "_self" },
|
|
356
|
-
{ label: "New tab", value: "_blank" }
|
|
357
|
-
],
|
|
358
|
-
defaultValue: "_self",
|
|
370
|
+
name: "order",
|
|
371
|
+
type: "number",
|
|
372
|
+
label: "Order",
|
|
373
|
+
defaultValue: 0,
|
|
359
374
|
admin: { position: "sidebar" }
|
|
360
|
-
}
|
|
361
|
-
{ name: "order", type: "number", label: "Order" }
|
|
375
|
+
}
|
|
362
376
|
],
|
|
363
377
|
timestamps: true
|
|
364
378
|
}
|
|
@@ -396,15 +410,7 @@ var blogCollections = {
|
|
|
396
410
|
},
|
|
397
411
|
{
|
|
398
412
|
label: "Meta",
|
|
399
|
-
fields: [
|
|
400
|
-
{
|
|
401
|
-
name: "menu",
|
|
402
|
-
type: "relationship",
|
|
403
|
-
label: "Menu",
|
|
404
|
-
relationTo: "navigation",
|
|
405
|
-
admin: { description: "Link to navigation menu item" }
|
|
406
|
-
}
|
|
407
|
-
]
|
|
413
|
+
fields: []
|
|
408
414
|
},
|
|
409
415
|
{
|
|
410
416
|
label: "SEO",
|
|
@@ -429,15 +435,7 @@ var blogCollections = {
|
|
|
429
435
|
tabs: [
|
|
430
436
|
{
|
|
431
437
|
label: "Meta",
|
|
432
|
-
fields: [
|
|
433
|
-
{
|
|
434
|
-
name: "menu",
|
|
435
|
-
type: "relationship",
|
|
436
|
-
label: "Menu",
|
|
437
|
-
relationTo: "navigation",
|
|
438
|
-
admin: { description: "Link to navigation menu item" }
|
|
439
|
-
}
|
|
440
|
-
]
|
|
438
|
+
fields: []
|
|
441
439
|
},
|
|
442
440
|
{
|
|
443
441
|
label: "SEO",
|
|
@@ -673,15 +671,6 @@ var blogCollections = {
|
|
|
673
671
|
],
|
|
674
672
|
defaultValue: "draft",
|
|
675
673
|
admin: { position: "sidebar" }
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
name: "publishedAt",
|
|
679
|
-
type: "date",
|
|
680
|
-
label: "Published At",
|
|
681
|
-
admin: {
|
|
682
|
-
description: "Date the post was or will be published.",
|
|
683
|
-
position: "sidebar"
|
|
684
|
-
}
|
|
685
674
|
}
|
|
686
675
|
],
|
|
687
676
|
timestamps: true
|
|
@@ -694,17 +683,44 @@ var blogCollections = {
|
|
|
694
683
|
admin: {
|
|
695
684
|
useAsTitle: "name",
|
|
696
685
|
defaultColumns: ["name", "slug"],
|
|
697
|
-
description: "Post categories"
|
|
686
|
+
description: "Post categories",
|
|
687
|
+
layout: "split"
|
|
698
688
|
},
|
|
699
689
|
fields: [
|
|
700
690
|
{ name: "name", type: "text", required: true, label: "Name" },
|
|
701
|
-
{
|
|
702
|
-
|
|
691
|
+
{
|
|
692
|
+
name: "description",
|
|
693
|
+
type: "richtext",
|
|
694
|
+
label: "Description",
|
|
695
|
+
hasBlocks: false
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: "slug",
|
|
699
|
+
type: "text",
|
|
700
|
+
required: true,
|
|
701
|
+
label: "Slug",
|
|
702
|
+
admin: { position: "sidebar", autoGenerate: "name" }
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
name: "icon",
|
|
706
|
+
type: "upload",
|
|
707
|
+
label: "Icon",
|
|
708
|
+
relationTo: "media",
|
|
709
|
+
admin: { position: "sidebar" }
|
|
710
|
+
},
|
|
703
711
|
{
|
|
704
712
|
name: "parent",
|
|
705
713
|
type: "relationship",
|
|
706
714
|
label: "Parent Category",
|
|
707
|
-
relationTo: "categories"
|
|
715
|
+
relationTo: "categories",
|
|
716
|
+
admin: { position: "sidebar" }
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
name: "order",
|
|
720
|
+
type: "number",
|
|
721
|
+
label: "Order",
|
|
722
|
+
defaultValue: 0,
|
|
723
|
+
admin: { position: "sidebar" }
|
|
708
724
|
}
|
|
709
725
|
],
|
|
710
726
|
timestamps: true
|
|
@@ -717,13 +733,40 @@ var blogCollections = {
|
|
|
717
733
|
admin: {
|
|
718
734
|
useAsTitle: "label",
|
|
719
735
|
defaultColumns: ["label", "location", "order"],
|
|
720
|
-
description: "Navigation menus"
|
|
736
|
+
description: "Navigation menus",
|
|
737
|
+
layout: "split"
|
|
721
738
|
},
|
|
722
739
|
fields: [
|
|
723
740
|
{ name: "label", type: "text", required: true, label: "Label" },
|
|
724
741
|
{ name: "url", type: "text", label: "URL" },
|
|
725
|
-
{
|
|
726
|
-
|
|
742
|
+
{
|
|
743
|
+
name: "parent",
|
|
744
|
+
type: "relationship",
|
|
745
|
+
label: "Parent Item",
|
|
746
|
+
relationTo: "navigation",
|
|
747
|
+
admin: { position: "sidebar" }
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
name: "location",
|
|
751
|
+
type: "select",
|
|
752
|
+
label: "Location",
|
|
753
|
+
options: [
|
|
754
|
+
{ label: "Primary", value: "primary" },
|
|
755
|
+
{ label: "Secondary", value: "secondary" },
|
|
756
|
+
{ label: "Tertiary", value: "tertiary" },
|
|
757
|
+
{ label: "Footer", value: "footer" },
|
|
758
|
+
{ label: "Mobile", value: "mobile" }
|
|
759
|
+
],
|
|
760
|
+
defaultValue: "primary",
|
|
761
|
+
admin: { position: "sidebar" }
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
name: "order",
|
|
765
|
+
type: "number",
|
|
766
|
+
label: "Order",
|
|
767
|
+
defaultValue: 0,
|
|
768
|
+
admin: { position: "sidebar" }
|
|
769
|
+
}
|
|
727
770
|
],
|
|
728
771
|
timestamps: true
|
|
729
772
|
}
|
|
@@ -761,21 +804,36 @@ var ecommerceCollections = {
|
|
|
761
804
|
label: "Hero Section",
|
|
762
805
|
fields: [
|
|
763
806
|
{ name: "heading", type: "text", label: "Heading" },
|
|
764
|
-
{
|
|
765
|
-
|
|
807
|
+
{
|
|
808
|
+
name: "subheading",
|
|
809
|
+
type: "richtext",
|
|
810
|
+
label: "Subheading"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: "ctaText",
|
|
814
|
+
type: "text",
|
|
815
|
+
label: "CTA Button Text"
|
|
816
|
+
},
|
|
766
817
|
{ name: "ctaUrl", type: "text", label: "CTA Button URL" }
|
|
767
818
|
]
|
|
768
819
|
},
|
|
769
820
|
{
|
|
770
821
|
slug: "text",
|
|
771
822
|
label: "Text Block",
|
|
772
|
-
fields: [
|
|
823
|
+
fields: [
|
|
824
|
+
{ name: "content", type: "richtext", label: "Content" }
|
|
825
|
+
]
|
|
773
826
|
},
|
|
774
827
|
{
|
|
775
828
|
slug: "image",
|
|
776
829
|
label: "Image",
|
|
777
830
|
fields: [
|
|
778
|
-
{
|
|
831
|
+
{
|
|
832
|
+
name: "image",
|
|
833
|
+
type: "upload",
|
|
834
|
+
label: "Image",
|
|
835
|
+
relationTo: "media"
|
|
836
|
+
},
|
|
779
837
|
{ name: "caption", type: "text", label: "Caption" },
|
|
780
838
|
{ name: "alt", type: "text", label: "Alt Text" }
|
|
781
839
|
]
|
|
@@ -785,8 +843,16 @@ var ecommerceCollections = {
|
|
|
785
843
|
label: "Call to Action",
|
|
786
844
|
fields: [
|
|
787
845
|
{ name: "heading", type: "text", label: "Heading" },
|
|
788
|
-
{
|
|
789
|
-
|
|
846
|
+
{
|
|
847
|
+
name: "description",
|
|
848
|
+
type: "richtext",
|
|
849
|
+
label: "Description"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
name: "buttonText",
|
|
853
|
+
type: "text",
|
|
854
|
+
label: "Button Text"
|
|
855
|
+
},
|
|
790
856
|
{ name: "buttonUrl", type: "text", label: "Button URL" }
|
|
791
857
|
]
|
|
792
858
|
},
|
|
@@ -799,11 +865,34 @@ var ecommerceCollections = {
|
|
|
799
865
|
type: "blocks",
|
|
800
866
|
label: "Section Blocks",
|
|
801
867
|
blocks: [
|
|
802
|
-
{
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
868
|
+
{
|
|
869
|
+
slug: "text",
|
|
870
|
+
label: "Text",
|
|
871
|
+
fields: [
|
|
872
|
+
{
|
|
873
|
+
name: "content",
|
|
874
|
+
type: "richtext",
|
|
875
|
+
label: "Content"
|
|
876
|
+
}
|
|
877
|
+
]
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
slug: "image",
|
|
881
|
+
label: "Image",
|
|
882
|
+
fields: [
|
|
883
|
+
{
|
|
884
|
+
name: "image",
|
|
885
|
+
type: "upload",
|
|
886
|
+
label: "Image",
|
|
887
|
+
relationTo: "media"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
name: "caption",
|
|
891
|
+
type: "text",
|
|
892
|
+
label: "Caption"
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
}
|
|
807
896
|
]
|
|
808
897
|
}
|
|
809
898
|
]
|
|
@@ -814,15 +903,7 @@ var ecommerceCollections = {
|
|
|
814
903
|
},
|
|
815
904
|
{
|
|
816
905
|
label: "Meta",
|
|
817
|
-
fields: [
|
|
818
|
-
{
|
|
819
|
-
name: "menu",
|
|
820
|
-
type: "relationship",
|
|
821
|
-
label: "Menu",
|
|
822
|
-
relationTo: "navigation",
|
|
823
|
-
admin: { description: "Link to navigation menu item" }
|
|
824
|
-
}
|
|
825
|
-
]
|
|
906
|
+
fields: []
|
|
826
907
|
},
|
|
827
908
|
{
|
|
828
909
|
label: "SEO",
|
|
@@ -917,21 +998,36 @@ var ecommerceCollections = {
|
|
|
917
998
|
label: "Hero Section",
|
|
918
999
|
fields: [
|
|
919
1000
|
{ name: "heading", type: "text", label: "Heading" },
|
|
920
|
-
{
|
|
921
|
-
|
|
1001
|
+
{
|
|
1002
|
+
name: "subheading",
|
|
1003
|
+
type: "richtext",
|
|
1004
|
+
label: "Subheading"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
name: "ctaText",
|
|
1008
|
+
type: "text",
|
|
1009
|
+
label: "CTA Button Text"
|
|
1010
|
+
},
|
|
922
1011
|
{ name: "ctaUrl", type: "text", label: "CTA Button URL" }
|
|
923
1012
|
]
|
|
924
1013
|
},
|
|
925
1014
|
{
|
|
926
1015
|
slug: "text",
|
|
927
1016
|
label: "Text Block",
|
|
928
|
-
fields: [
|
|
1017
|
+
fields: [
|
|
1018
|
+
{ name: "content", type: "richtext", label: "Content" }
|
|
1019
|
+
]
|
|
929
1020
|
},
|
|
930
1021
|
{
|
|
931
1022
|
slug: "image",
|
|
932
1023
|
label: "Image",
|
|
933
1024
|
fields: [
|
|
934
|
-
{
|
|
1025
|
+
{
|
|
1026
|
+
name: "image",
|
|
1027
|
+
type: "upload",
|
|
1028
|
+
label: "Image",
|
|
1029
|
+
relationTo: "media"
|
|
1030
|
+
},
|
|
935
1031
|
{ name: "caption", type: "text", label: "Caption" },
|
|
936
1032
|
{ name: "alt", type: "text", label: "Alt Text" }
|
|
937
1033
|
]
|
|
@@ -941,8 +1037,16 @@ var ecommerceCollections = {
|
|
|
941
1037
|
label: "Call to Action",
|
|
942
1038
|
fields: [
|
|
943
1039
|
{ name: "heading", type: "text", label: "Heading" },
|
|
944
|
-
{
|
|
945
|
-
|
|
1040
|
+
{
|
|
1041
|
+
name: "description",
|
|
1042
|
+
type: "richtext",
|
|
1043
|
+
label: "Description"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
name: "buttonText",
|
|
1047
|
+
type: "text",
|
|
1048
|
+
label: "Button Text"
|
|
1049
|
+
},
|
|
946
1050
|
{ name: "buttonUrl", type: "text", label: "Button URL" }
|
|
947
1051
|
]
|
|
948
1052
|
},
|
|
@@ -955,11 +1059,34 @@ var ecommerceCollections = {
|
|
|
955
1059
|
type: "blocks",
|
|
956
1060
|
label: "Section Blocks",
|
|
957
1061
|
blocks: [
|
|
958
|
-
{
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
1062
|
+
{
|
|
1063
|
+
slug: "text",
|
|
1064
|
+
label: "Text",
|
|
1065
|
+
fields: [
|
|
1066
|
+
{
|
|
1067
|
+
name: "content",
|
|
1068
|
+
type: "richtext",
|
|
1069
|
+
label: "Content"
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
slug: "image",
|
|
1075
|
+
label: "Image",
|
|
1076
|
+
fields: [
|
|
1077
|
+
{
|
|
1078
|
+
name: "image",
|
|
1079
|
+
type: "upload",
|
|
1080
|
+
label: "Image",
|
|
1081
|
+
relationTo: "media"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
name: "caption",
|
|
1085
|
+
type: "text",
|
|
1086
|
+
label: "Caption"
|
|
1087
|
+
}
|
|
1088
|
+
]
|
|
1089
|
+
},
|
|
963
1090
|
{
|
|
964
1091
|
slug: "group",
|
|
965
1092
|
label: "Collapsible Group",
|
|
@@ -969,8 +1096,17 @@ var ecommerceCollections = {
|
|
|
969
1096
|
type: "collapsible",
|
|
970
1097
|
label: "Details",
|
|
971
1098
|
fields: [
|
|
972
|
-
{
|
|
973
|
-
|
|
1099
|
+
{
|
|
1100
|
+
name: "content",
|
|
1101
|
+
type: "richtext",
|
|
1102
|
+
label: "Content"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "image",
|
|
1106
|
+
type: "upload",
|
|
1107
|
+
label: "Image",
|
|
1108
|
+
relationTo: "media"
|
|
1109
|
+
}
|
|
974
1110
|
]
|
|
975
1111
|
}
|
|
976
1112
|
]
|
|
@@ -979,8 +1115,28 @@ var ecommerceCollections = {
|
|
|
979
1115
|
slug: "split",
|
|
980
1116
|
label: "Two Columns",
|
|
981
1117
|
fields: [
|
|
982
|
-
{
|
|
983
|
-
|
|
1118
|
+
{
|
|
1119
|
+
name: "left",
|
|
1120
|
+
type: "row",
|
|
1121
|
+
fields: [
|
|
1122
|
+
{
|
|
1123
|
+
name: "leftContent",
|
|
1124
|
+
type: "richtext",
|
|
1125
|
+
label: "Left Content"
|
|
1126
|
+
}
|
|
1127
|
+
]
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
name: "right",
|
|
1131
|
+
type: "row",
|
|
1132
|
+
fields: [
|
|
1133
|
+
{
|
|
1134
|
+
name: "rightContent",
|
|
1135
|
+
type: "richtext",
|
|
1136
|
+
label: "Right Content"
|
|
1137
|
+
}
|
|
1138
|
+
]
|
|
1139
|
+
}
|
|
984
1140
|
]
|
|
985
1141
|
},
|
|
986
1142
|
{
|
|
@@ -991,9 +1147,39 @@ var ecommerceCollections = {
|
|
|
991
1147
|
name: "sections",
|
|
992
1148
|
type: "tabs",
|
|
993
1149
|
tabs: [
|
|
994
|
-
{
|
|
995
|
-
|
|
996
|
-
|
|
1150
|
+
{
|
|
1151
|
+
label: "Tab 1",
|
|
1152
|
+
name: "tab1",
|
|
1153
|
+
fields: [
|
|
1154
|
+
{
|
|
1155
|
+
name: "content",
|
|
1156
|
+
type: "richtext",
|
|
1157
|
+
label: "Content"
|
|
1158
|
+
}
|
|
1159
|
+
]
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
label: "Tab 2",
|
|
1163
|
+
name: "tab2",
|
|
1164
|
+
fields: [
|
|
1165
|
+
{
|
|
1166
|
+
name: "content",
|
|
1167
|
+
type: "richtext",
|
|
1168
|
+
label: "Content"
|
|
1169
|
+
}
|
|
1170
|
+
]
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
label: "Tab 3",
|
|
1174
|
+
name: "tab3",
|
|
1175
|
+
fields: [
|
|
1176
|
+
{
|
|
1177
|
+
name: "content",
|
|
1178
|
+
type: "richtext",
|
|
1179
|
+
label: "Content"
|
|
1180
|
+
}
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
997
1183
|
]
|
|
998
1184
|
}
|
|
999
1185
|
]
|
|
@@ -1115,15 +1301,6 @@ var ecommerceCollections = {
|
|
|
1115
1301
|
],
|
|
1116
1302
|
defaultValue: "draft",
|
|
1117
1303
|
admin: { position: "sidebar" }
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
name: "publishedAt",
|
|
1121
|
-
type: "date",
|
|
1122
|
-
label: "Published At",
|
|
1123
|
-
admin: {
|
|
1124
|
-
description: "Date the post was or will be published.",
|
|
1125
|
-
position: "sidebar"
|
|
1126
|
-
}
|
|
1127
1304
|
}
|
|
1128
1305
|
],
|
|
1129
1306
|
timestamps: true
|
|
@@ -1406,14 +1583,53 @@ var ecommerceCollections = {
|
|
|
1406
1583
|
defaultValue: "",
|
|
1407
1584
|
admin: { position: "sidebar" }
|
|
1408
1585
|
},
|
|
1409
|
-
{
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1586
|
+
{
|
|
1587
|
+
name: "page",
|
|
1588
|
+
type: "relationship",
|
|
1589
|
+
label: "Page",
|
|
1590
|
+
relationTo: "pages",
|
|
1591
|
+
admin: {
|
|
1592
|
+
condition: (_, current) => current?.linkType === "page",
|
|
1593
|
+
position: "sidebar"
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
name: "product",
|
|
1598
|
+
type: "relationship",
|
|
1599
|
+
label: "Product",
|
|
1600
|
+
relationTo: "products",
|
|
1601
|
+
admin: {
|
|
1602
|
+
condition: (_, current) => current?.linkType === "product",
|
|
1603
|
+
position: "sidebar"
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
name: "category",
|
|
1608
|
+
type: "relationship",
|
|
1609
|
+
label: "Category",
|
|
1610
|
+
relationTo: "categories",
|
|
1611
|
+
admin: {
|
|
1612
|
+
condition: (_, current) => current?.linkType === "category",
|
|
1613
|
+
position: "sidebar"
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
name: "location",
|
|
1618
|
+
type: "text",
|
|
1619
|
+
label: "Location",
|
|
1620
|
+
admin: { position: "sidebar" }
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
name: "target",
|
|
1624
|
+
type: "select",
|
|
1625
|
+
label: "Target",
|
|
1626
|
+
options: [
|
|
1627
|
+
{ label: "Same tab", value: "_self" },
|
|
1628
|
+
{ label: "New tab", value: "_blank" }
|
|
1629
|
+
],
|
|
1630
|
+
defaultValue: "_self",
|
|
1631
|
+
admin: { position: "sidebar" }
|
|
1632
|
+
},
|
|
1417
1633
|
{ name: "order", type: "number", label: "Order" }
|
|
1418
1634
|
],
|
|
1419
1635
|
timestamps: true
|
|
@@ -1502,11 +1718,6 @@ var kitchenSinkCollections = {
|
|
|
1502
1718
|
{ label: "Published", value: "published" }
|
|
1503
1719
|
],
|
|
1504
1720
|
defaultValue: "draft"
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
name: "publishedAt",
|
|
1508
|
-
type: "date",
|
|
1509
|
-
label: "Published At"
|
|
1510
1721
|
}
|
|
1511
1722
|
],
|
|
1512
1723
|
timestamps: true
|
|
@@ -1537,10 +1748,46 @@ var kitchenSinkCollections = {
|
|
|
1537
1748
|
defaultValue: "",
|
|
1538
1749
|
admin: { position: "sidebar" }
|
|
1539
1750
|
},
|
|
1540
|
-
{
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1751
|
+
{
|
|
1752
|
+
name: "page",
|
|
1753
|
+
type: "relationship",
|
|
1754
|
+
label: "Page",
|
|
1755
|
+
relationTo: "pages",
|
|
1756
|
+
admin: {
|
|
1757
|
+
condition: (_, current) => current?.linkType === "page",
|
|
1758
|
+
position: "sidebar"
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
name: "post",
|
|
1763
|
+
type: "relationship",
|
|
1764
|
+
label: "Post",
|
|
1765
|
+
relationTo: "posts",
|
|
1766
|
+
admin: {
|
|
1767
|
+
condition: (_, current) => current?.linkType === "post",
|
|
1768
|
+
position: "sidebar"
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
name: "product",
|
|
1773
|
+
type: "relationship",
|
|
1774
|
+
label: "Product",
|
|
1775
|
+
relationTo: "products",
|
|
1776
|
+
admin: {
|
|
1777
|
+
condition: (_, current) => current?.linkType === "product",
|
|
1778
|
+
position: "sidebar"
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
name: "category",
|
|
1783
|
+
type: "relationship",
|
|
1784
|
+
label: "Category",
|
|
1785
|
+
relationTo: "categories",
|
|
1786
|
+
admin: {
|
|
1787
|
+
condition: (_, current) => current?.linkType === "category",
|
|
1788
|
+
position: "sidebar"
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1544
1791
|
{
|
|
1545
1792
|
name: "location",
|
|
1546
1793
|
type: "select",
|
|
@@ -3475,5 +3722,5 @@ exports.siteSettingsGlobal = siteSettingsGlobal;
|
|
|
3475
3722
|
exports.socialSettingsGlobal = socialSettingsGlobal;
|
|
3476
3723
|
exports.storageSettingsGlobal = storageSettingsGlobal;
|
|
3477
3724
|
exports.storeSettingsGlobal = storeSettingsGlobal;
|
|
3478
|
-
//# sourceMappingURL=chunk-
|
|
3479
|
-
//# sourceMappingURL=chunk-
|
|
3725
|
+
//# sourceMappingURL=chunk-PNBZZ76A.cjs.map
|
|
3726
|
+
//# sourceMappingURL=chunk-PNBZZ76A.cjs.map
|