@glidevvr/storage-payload-types-pkg 1.0.22 → 1.0.23

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/payload-types.ts +16 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -758,16 +758,29 @@ export interface ArchiveBlock {
758
758
  };
759
759
  [k: string]: unknown;
760
760
  } | null;
761
- populateBy?: ('collection' | 'selection') | null;
761
+ populateBy: 'collection' | 'selection';
762
762
  relationTo?: 'posts' | null;
763
+ /**
764
+ * If no categories are selected, the 4 most recent posts will be shown.
765
+ */
763
766
  categories?: (string | Category)[] | null;
764
- limit?: number | null;
767
+ /**
768
+ * Select the number of posts to display (limit of 4 max.).
769
+ */
770
+ limit?: ('1' | '2' | '3' | '4') | null;
771
+ /**
772
+ * Select up to 4 posts
773
+ */
765
774
  selectedDocs?:
766
775
  | {
767
776
  relationTo: 'posts';
768
777
  value: string | Post;
769
778
  }[]
770
779
  | null;
780
+ /**
781
+ * The text for the button that links to the blog index page.
782
+ */
783
+ buttonText?: string | null;
771
784
  id?: string | null;
772
785
  blockName?: string | null;
773
786
  blockType: 'archive';
@@ -1797,6 +1810,7 @@ export interface ArchiveBlockSelect<T extends boolean = true> {
1797
1810
  categories?: T;
1798
1811
  limit?: T;
1799
1812
  selectedDocs?: T;
1813
+ buttonText?: T;
1800
1814
  id?: T;
1801
1815
  blockName?: T;
1802
1816
  }