@sveltia/cms 0.79.2 → 0.80.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 +45 -28
- package/dist/sveltia-cms.js +189 -187
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +195 -193
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/types/public.d.ts +18 -10
package/package.json
CHANGED
package/types/public.d.ts
CHANGED
|
@@ -229,11 +229,11 @@ export type CommonFieldProps = {
|
|
|
229
229
|
*/
|
|
230
230
|
readonly?: boolean;
|
|
231
231
|
/**
|
|
232
|
-
* Validation format. The first argument is a
|
|
233
|
-
* expression pattern for a valid input value, and the second argument is an error
|
|
234
|
-
* option has no effect on a List or Object field with subfields.
|
|
232
|
+
* Validation format. The first argument is a
|
|
233
|
+
* regular expression matching pattern for a valid input value, and the second argument is an error
|
|
234
|
+
* message. This option has no effect on a List or Object field with subfields.
|
|
235
235
|
*/
|
|
236
|
-
pattern?: [string, string];
|
|
236
|
+
pattern?: [string | RegExp, string];
|
|
237
237
|
/**
|
|
238
238
|
* Help message to be displayed below the input UI. Limited Markdown
|
|
239
239
|
* formatting is supported: bold, italic, strikethrough and links.
|
|
@@ -758,6 +758,14 @@ export type MarkdownFieldProps = {
|
|
|
758
758
|
* Whether to sanitize the preview HTML. Default: `false`.
|
|
759
759
|
*/
|
|
760
760
|
sanitize_preview?: boolean;
|
|
761
|
+
/**
|
|
762
|
+
* Whether to enable the linked images feature for the built-in
|
|
763
|
+
* `image` component. Default: `true`. When enabled, the image component provides an additional text
|
|
764
|
+
* field for specifying a URL to wrap the image as a link. The resulting Markdown output will be in
|
|
765
|
+
* the format `[](link)`, where clicking the image navigates to the provided link. This
|
|
766
|
+
* feature can be disabled if it causes conflicts with certain frameworks.
|
|
767
|
+
*/
|
|
768
|
+
linked_images?: boolean;
|
|
761
769
|
};
|
|
762
770
|
/**
|
|
763
771
|
* Markdown field definition.
|
|
@@ -1129,9 +1137,9 @@ export type CollectionFilter = {
|
|
|
1129
1137
|
*/
|
|
1130
1138
|
value?: any | any[];
|
|
1131
1139
|
/**
|
|
1132
|
-
*
|
|
1140
|
+
* Regular expression matching pattern.
|
|
1133
1141
|
*/
|
|
1134
|
-
pattern?: string;
|
|
1142
|
+
pattern?: string | RegExp;
|
|
1135
1143
|
};
|
|
1136
1144
|
/**
|
|
1137
1145
|
* The default options for the sortable fields.
|
|
@@ -1175,9 +1183,9 @@ export type ViewFilter = {
|
|
|
1175
1183
|
*/
|
|
1176
1184
|
field: FieldKeyPath;
|
|
1177
1185
|
/**
|
|
1178
|
-
*
|
|
1186
|
+
* Regular expression matching pattern or exact value.
|
|
1179
1187
|
*/
|
|
1180
|
-
pattern: string | boolean;
|
|
1188
|
+
pattern: string | RegExp | boolean;
|
|
1181
1189
|
};
|
|
1182
1190
|
/**
|
|
1183
1191
|
* View group.
|
|
@@ -1192,9 +1200,9 @@ export type ViewGroup = {
|
|
|
1192
1200
|
*/
|
|
1193
1201
|
field: FieldKeyPath;
|
|
1194
1202
|
/**
|
|
1195
|
-
*
|
|
1203
|
+
* Regular expression matching pattern or exact value.
|
|
1196
1204
|
*/
|
|
1197
|
-
pattern: string | boolean;
|
|
1205
|
+
pattern: string | RegExp | boolean;
|
|
1198
1206
|
};
|
|
1199
1207
|
/**
|
|
1200
1208
|
* Editor options.
|