@sveltia/cms 0.74.0 → 0.75.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/cms",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "provenance": true
14
14
  },
15
15
  "devDependencies": {
16
- "@types/react": "^19.1.3"
16
+ "@types/react": "^19.1.4"
17
17
  },
18
18
  "files": [
19
19
  "dist",
package/types/public.d.ts CHANGED
@@ -16,7 +16,7 @@ export type MediaLibraryName = "default" | "cloudinary" | "uploadcare" | "stock_
16
16
  /**
17
17
  * Supported raster image format.
18
18
  */
19
- export type RasterImageFormat = "avif" | "bmp" | "gif" | "jpeg" | "png" | "webp";
19
+ export type RasterImageFormat = "avif" | "gif" | "jpeg" | "png" | "webp";
20
20
  /**
21
21
  * Supported vector image format.
22
22
  */
@@ -264,6 +264,12 @@ export type MediaFieldProps = {
264
264
  * Default value. Accepts a file path or complete URL.
265
265
  */
266
266
  default?: string;
267
+ /**
268
+ * File types that the field should accept. The value would be a
269
+ * comma-separated list of unique file type specifiers, the format used for the HTML `accept`
270
+ * attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept.
271
+ */
272
+ accept?: string;
267
273
  /**
268
274
  * Whether to show the URL input UI. Default: `true`.
269
275
  */
@@ -1028,6 +1034,14 @@ export type I18nOptions = {
1028
1034
  key: string;
1029
1035
  value: string;
1030
1036
  };
1037
+ /**
1038
+ * Whether to exclude the default locale
1039
+ * from entry filenames. Default: `false`. This option applies to entry collections with the
1040
+ * `multiple_files` i18n structure enabled, as well as to file collection items with the `file` path
1041
+ * ending with `.{{locale}}.<extension>`, aiming to support Zola’s multilingual sites:
1042
+ * https://www.getzola.org/documentation/content/multilingual/.
1043
+ */
1044
+ omit_default_locale_from_filename?: boolean;
1031
1045
  };
1032
1046
  /**
1033
1047
  * Single file in a file collection.