@sveltia/cms 0.125.0 → 0.127.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/README.md +78 -20
- package/dist/sveltia-cms.js +276 -276
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +284 -284
- 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 +8 -2
package/types/public.d.ts
CHANGED
|
@@ -1375,7 +1375,7 @@ export type CollectionFile = {
|
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Supported file extension. Actually it can be any string.
|
|
1377
1377
|
*/
|
|
1378
|
-
export type FileExtension = "yml" | "yaml" | "toml" | "json" | "md" | "markdown" | "html" | string;
|
|
1378
|
+
export type FileExtension = "yml" | "yaml" | "toml" | "json" | "md" | "markdown" | "html" | "txt" | string;
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Supported Markdown front matter format.
|
|
1381
1381
|
*/
|
|
@@ -1383,7 +1383,7 @@ export type FrontMatterFormat = "yaml-frontmatter" | "toml-frontmatter" | "json-
|
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Supported file format. Actually it can be any string because of custom formats.
|
|
1385
1385
|
*/
|
|
1386
|
-
export type FileFormat = "yml" | "yaml" | "toml" | "json" | "frontmatter" | FrontMatterFormat | string;
|
|
1386
|
+
export type FileFormat = "yml" | "yaml" | "toml" | "json" | "frontmatter" | FrontMatterFormat | "raw" | string;
|
|
1387
1387
|
/**
|
|
1388
1388
|
* Collection filter options.
|
|
1389
1389
|
*/
|
|
@@ -1748,6 +1748,7 @@ export type EntryCollectionProps = {
|
|
|
1748
1748
|
/**
|
|
1749
1749
|
* The maximum number of characters allowed for an entry slug.
|
|
1750
1750
|
* Default: `Infinity`.
|
|
1751
|
+
* @deprecated Use the global `slug.maxlength` option instead.
|
|
1751
1752
|
*/
|
|
1752
1753
|
slug_length?: number;
|
|
1753
1754
|
/**
|
|
@@ -2115,6 +2116,11 @@ export type SlugOptions = {
|
|
|
2115
2116
|
* String to replace sanitized characters. Default: `-`.
|
|
2116
2117
|
*/
|
|
2117
2118
|
sanitize_replacement?: string;
|
|
2119
|
+
/**
|
|
2120
|
+
* The maximum number of characters allowed for an entry slug.
|
|
2121
|
+
* Default: `Infinity`.
|
|
2122
|
+
*/
|
|
2123
|
+
maxlength?: number;
|
|
2118
2124
|
/**
|
|
2119
2125
|
* Whether to trim leading and trailing replacement characters. Default:
|
|
2120
2126
|
* `true`.
|