@sveltia/cms 0.79.2 → 0.79.3
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 +21 -15
- package/dist/sveltia-cms.js +177 -177
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +177 -177
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/types/public.d.ts +10 -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.
|
|
@@ -1129,9 +1129,9 @@ export type CollectionFilter = {
|
|
|
1129
1129
|
*/
|
|
1130
1130
|
value?: any | any[];
|
|
1131
1131
|
/**
|
|
1132
|
-
*
|
|
1132
|
+
* Regular expression matching pattern.
|
|
1133
1133
|
*/
|
|
1134
|
-
pattern?: string;
|
|
1134
|
+
pattern?: string | RegExp;
|
|
1135
1135
|
};
|
|
1136
1136
|
/**
|
|
1137
1137
|
* The default options for the sortable fields.
|
|
@@ -1175,9 +1175,9 @@ export type ViewFilter = {
|
|
|
1175
1175
|
*/
|
|
1176
1176
|
field: FieldKeyPath;
|
|
1177
1177
|
/**
|
|
1178
|
-
*
|
|
1178
|
+
* Regular expression matching pattern or exact value.
|
|
1179
1179
|
*/
|
|
1180
|
-
pattern: string | boolean;
|
|
1180
|
+
pattern: string | RegExp | boolean;
|
|
1181
1181
|
};
|
|
1182
1182
|
/**
|
|
1183
1183
|
* View group.
|
|
@@ -1192,9 +1192,9 @@ export type ViewGroup = {
|
|
|
1192
1192
|
*/
|
|
1193
1193
|
field: FieldKeyPath;
|
|
1194
1194
|
/**
|
|
1195
|
-
*
|
|
1195
|
+
* Regular expression matching pattern or exact value.
|
|
1196
1196
|
*/
|
|
1197
|
-
pattern: string | boolean;
|
|
1197
|
+
pattern: string | RegExp | boolean;
|
|
1198
1198
|
};
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Editor options.
|