@sveltia/cms 0.78.2 → 0.79.1
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 +22 -12
- package/dist/sveltia-cms.js +187 -187
- 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 +5 -0
package/package.json
CHANGED
package/types/public.d.ts
CHANGED
|
@@ -223,6 +223,11 @@ export type CommonFieldProps = {
|
|
|
223
223
|
* required locale codes can be passed as an array like `[en, fr]` instead of a boolean.
|
|
224
224
|
*/
|
|
225
225
|
required?: boolean | LocaleCode[];
|
|
226
|
+
/**
|
|
227
|
+
* Whether to make the field read-only. Default: `false`. This is
|
|
228
|
+
* useful when a `default` value is provided and the field should not be editable by users.
|
|
229
|
+
*/
|
|
230
|
+
readonly?: boolean;
|
|
226
231
|
/**
|
|
227
232
|
* Validation format. The first argument is a regular
|
|
228
233
|
* expression pattern for a valid input value, and the second argument is an error message. This
|