@sveltia/cms 0.149.0 → 0.150.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/types/public.d.ts CHANGED
@@ -259,7 +259,7 @@ export type StockAssetProviderName = "pexels" | "picsum" | "pixabay" | "unsplash
259
259
  /**
260
260
  * Options for the unified stock photo/video providers.
261
261
  */
262
- export type StockAssetMediaLibrary = {
262
+ export type StockMediaLibrary = {
263
263
  /**
264
264
  * Enabled stock photo/video providers. The stock
265
265
  * photo/video section in the asset browser is hidden if an empty array is given. Default: all
@@ -267,10 +267,14 @@ export type StockAssetMediaLibrary = {
267
267
  */
268
268
  providers?: StockAssetProviderName[];
269
269
  };
270
+ /**
271
+ * Supported cloud media storage options.
272
+ */
273
+ export type CloudMediaLibrary = CloudinaryMediaLibrary | UploadcareMediaLibrary | S3MediaLibrary;
270
274
  /**
271
275
  * Supported [media storage](https://sveltiacms.app/en/docs/media).
272
276
  */
273
- export type MediaLibrary = DefaultMediaLibrary | CloudinaryMediaLibrary | UploadcareMediaLibrary | S3MediaLibrary | StockAssetMediaLibrary;
277
+ export type MediaLibrary = DefaultMediaLibrary | CloudMediaLibrary | StockMediaLibrary;
274
278
  /**
275
279
  * Unified media storage option that supports multiple storage providers. See the
276
280
  * [documentation](https://sveltiacms.app/en/docs/media#configuration) for details.
@@ -305,7 +309,7 @@ export type MediaLibraries = {
305
309
  * Options for the unified stock photo/video media
306
310
  * library.
307
311
  */
308
- stock_assets?: StockAssetMediaLibrary;
312
+ stock_assets?: StockMediaLibrary;
309
313
  };
310
314
  /**
311
315
  * Parsed, localized entry content.