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