@caiquecamargo/vite-plugin-netlify-cms 0.0.8 → 0.0.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.
@@ -1,8 +1,9 @@
1
1
  import { Plugin } from "vite";
2
- import { BooleanWidget, CodeWidget, ColorWidget, DateTimeWidget, FileCollection, FileWidget, FolderCollection, HiddenWidget, ImageWidget, ListWidget, MapWidget, MarkdownWidget, NetlifyCMSConfig, NumberWidget, ObjectWidget, RelationWidget, SelectWidget, StringWidget, TextWidget } from "./types";
2
+ import { BooleanWidget, CodeWidget, ColorWidget, DateTimeWidget, FileCollection, FileCollectionEntry, FileWidget, FolderCollection, HiddenWidget, ImageWidget, ListWidget, MapWidget, MarkdownWidget, NetlifyCMSConfig, NumberWidget, ObjectWidget, RelationWidget, SelectWidget, StringWidget, TextWidget } from "./types";
3
3
  export declare const defineConfig: (config: NetlifyCMSConfig) => NetlifyCMSConfig;
4
4
  export declare const defineFolderCollection: (collection: FolderCollection) => FolderCollection;
5
5
  export declare const defineFileCollection: (collection: FileCollection) => FileCollection;
6
+ export declare const defineFileCollectionEntry: (collection: FileCollectionEntry) => FileCollectionEntry;
6
7
  export declare const defineBooleanWidget: (widget: Omit<BooleanWidget, "widget">) => BooleanWidget;
7
8
  export declare const defineCodeWidget: (widget: Omit<CodeWidget, "widget">) => CodeWidget;
8
9
  export declare const defineColorWidget: (widget: Omit<ColorWidget, "widget">) => ColorWidget;
@@ -226,12 +226,17 @@ export interface Collection {
226
226
  */
227
227
  view_groups?: string;
228
228
  }
229
- export interface FileCollection extends Collection {
229
+ export interface FileCollection {
230
+ name: string;
231
+ label?: string;
232
+ files: FileCollectionEntry[];
233
+ }
234
+ export interface FileCollectionEntry extends Collection {
230
235
  /**
231
236
  * specifies the collection type and location;
232
237
  * details in Collection Types
233
238
  */
234
- files: string;
239
+ file: string;
235
240
  }
236
241
  export interface FolderCollection extends Collection {
237
242
  /**
package/package.json CHANGED
@@ -57,5 +57,5 @@
57
57
  },
58
58
  "type": "module",
59
59
  "types": "./dist/index.d.ts",
60
- "version": "0.0.8"
60
+ "version": "0.0.9"
61
61
  }