@sveltia/cms 0.154.0 → 0.156.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/dist/sveltia-cms.js +131 -131
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +168 -168
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +1 -1
- package/types/public.d.ts +27 -13
package/types/public.d.ts
CHANGED
|
@@ -281,35 +281,40 @@ export type MediaLibrary = DefaultMediaLibrary | CloudMediaLibrary | StockMediaL
|
|
|
281
281
|
*/
|
|
282
282
|
export type MediaLibraries = {
|
|
283
283
|
/**
|
|
284
|
-
* Options for the default media storage.
|
|
284
|
+
* Options for the default media storage. Set to
|
|
285
|
+
* `false` to explicitly disable the default (internal) storage.
|
|
285
286
|
*/
|
|
286
|
-
default?: DefaultMediaLibrary;
|
|
287
|
+
default?: DefaultMediaLibrary | false;
|
|
287
288
|
/**
|
|
288
289
|
* Options for the Cloudinary media storage.
|
|
290
|
+
* Set to `false` to explicitly disable.
|
|
289
291
|
*/
|
|
290
|
-
cloudinary?: CloudinaryMediaLibrary;
|
|
292
|
+
cloudinary?: CloudinaryMediaLibrary | false;
|
|
291
293
|
/**
|
|
292
294
|
* Options for the Uploadcare media storage.
|
|
295
|
+
* Set to `false` to explicitly disable.
|
|
293
296
|
*/
|
|
294
|
-
uploadcare?: UploadcareMediaLibrary;
|
|
297
|
+
uploadcare?: UploadcareMediaLibrary | false;
|
|
295
298
|
/**
|
|
296
|
-
* Options for the Amazon S3 media storage.
|
|
299
|
+
* Options for the Amazon S3 media storage. Set to
|
|
300
|
+
* `false` to explicitly disable.
|
|
297
301
|
*/
|
|
298
|
-
aws_s3?: S3MediaLibrary;
|
|
302
|
+
aws_s3?: S3MediaLibrary | false;
|
|
299
303
|
/**
|
|
300
304
|
* Options for the Cloudflare R2 media storage.
|
|
305
|
+
* Set to `false` to explicitly disable.
|
|
301
306
|
*/
|
|
302
|
-
cloudflare_r2?: S3MediaLibrary;
|
|
307
|
+
cloudflare_r2?: S3MediaLibrary | false;
|
|
303
308
|
/**
|
|
304
|
-
* Options for the DigitalOcean Spaces
|
|
305
|
-
* storage.
|
|
309
|
+
* Options for the DigitalOcean Spaces
|
|
310
|
+
* media storage. Set to `false` to explicitly disable.
|
|
306
311
|
*/
|
|
307
|
-
digitalocean_spaces?: S3MediaLibrary;
|
|
312
|
+
digitalocean_spaces?: S3MediaLibrary | false;
|
|
308
313
|
/**
|
|
309
|
-
* Options for the unified stock photo/video
|
|
310
|
-
* library.
|
|
314
|
+
* Options for the unified stock photo/video
|
|
315
|
+
* media library. Set to `false` to explicitly disable.
|
|
311
316
|
*/
|
|
312
|
-
stock_assets?: StockMediaLibrary;
|
|
317
|
+
stock_assets?: StockMediaLibrary | false;
|
|
313
318
|
};
|
|
314
319
|
/**
|
|
315
320
|
* Parsed, localized entry content.
|
|
@@ -962,6 +967,15 @@ export type MapFieldProps = {
|
|
|
962
967
|
* Geometry type. Default: `Point`.
|
|
963
968
|
*/
|
|
964
969
|
type?: "Point" | "LineString" | "Polygon";
|
|
970
|
+
/**
|
|
971
|
+
* Default center coordinates as `[longitude, latitude]`.
|
|
972
|
+
* Default: `[0, 0]`.
|
|
973
|
+
*/
|
|
974
|
+
center?: [number, number];
|
|
975
|
+
/**
|
|
976
|
+
* Default zoom level. Default: `2`.
|
|
977
|
+
*/
|
|
978
|
+
zoom?: number;
|
|
965
979
|
};
|
|
966
980
|
/**
|
|
967
981
|
* Map field definition.
|