@sveltia/cms 0.126.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 +32 -14
- package/dist/sveltia-cms.js +182 -182
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +174 -174
- 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 +6 -0
package/types/public.d.ts
CHANGED
|
@@ -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`.
|