@sveltia/cms 0.100.2 → 0.102.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/cms",
3
- "version": "0.100.2",
3
+ "version": "0.102.0",
4
4
  "description": "Sveltia CMS is a modern, lightweight, Git-based headless content management system.",
5
5
  "keywords": [
6
6
  "cms",
@@ -321,6 +321,13 @@
321
321
  "markdownDescription": "Authentication scope for Open Authoring. Git backends only."
322
322
  },
323
323
  "automatic_deployments": {
324
+ "type": "boolean",
325
+ "description": "Whether to enable or disable automatic deployments with any connected CI/CD provider. Default: `undefined`.",
326
+ "markdownDescription": "Whether to enable or disable automatic deployments with any connected CI/CD provider. Default: `undefined`.",
327
+ "deprecated": true,
328
+ "deprecationMessage": "Use the new `skip_ci` option instead, which is more intuitive. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. See our README https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments for details."
329
+ },
330
+ "skip_ci": {
324
331
  "type": "boolean",
325
332
  "description": "Whether to enable or disable automatic deployments with any connected CI/CD provider, such as GitHub Actions or Cloudflare Pages. If `false`, the `[skip ci]` prefix will be added to commit messages. Git backends only. Default: `undefined`. See our [README](https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments) for details.",
326
333
  "markdownDescription": "Whether to enable or disable automatic deployments with any connected CI/CD provider, such as GitHub Actions or Cloudflare Pages. If `false`, the `[skip ci]` prefix will be added to commit messages. Git backends only. Default: `undefined`. See our [README](https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments) for details."
@@ -916,8 +923,10 @@
916
923
  },
917
924
  "yaml_quote": {
918
925
  "type": "boolean",
919
- "description": "Whether to double-quote all the strings values if the YAML format is used for file output. Default: `false`. DEPRECATED in favor of the global YAML format options.",
920
- "markdownDescription": "Whether to double-quote all the strings values if the YAML format is used for file output. Default: `false`. DEPRECATED in favor of the global YAML format options."
926
+ "description": "Whether to double-quote all the strings values if the YAML format is used for file output. Default: `false`.",
927
+ "markdownDescription": "Whether to double-quote all the strings values if the YAML format is used for file output. Default: `false`.",
928
+ "deprecated": true,
929
+ "deprecationMessage": "Use the global YAML format options. `yaml_quote: true` is equivalent to `quote: double`. See our README https://github.com/sveltia/sveltia-cms#controlling-data-output for details."
921
930
  },
922
931
  "thumbnail": {
923
932
  "anyOf": [
@@ -4048,7 +4057,9 @@
4048
4057
  "read_only": {
4049
4058
  "type": "boolean",
4050
4059
  "description": "Whether to make the field read-only. Default: `true`.",
4051
- "markdownDescription": "Whether to make the field read-only. Default: `true`."
4060
+ "markdownDescription": "Whether to make the field read-only. Default: `true`.",
4061
+ "deprecated": true,
4062
+ "deprecationMessage": "Use the `readonly` common field option instead, which defaults to `true` for the UUID widget."
4052
4063
  },
4053
4064
  "required": {
4054
4065
  "anyOf": [
@@ -4291,8 +4302,10 @@
4291
4302
  },
4292
4303
  "save_all_locales": {
4293
4304
  "type": "boolean",
4294
- "description": "Whether to save collection entries in all the locales. If `false`, users will be able to disable the output of non-default locales through the UI. See our [README](https://github.com/sveltia/sveltia-cms#disabling-non-default-locale-content) for details.",
4295
- "markdownDescription": "Whether to save collection entries in all the locales. If `false`, users will be able to disable the output of non-default locales through the UI. See our [README](https://github.com/sveltia/sveltia-cms#disabling-non-default-locale-content) for details."
4305
+ "description": "Whether to save collection entries in all the locales. Default: `true`.",
4306
+ "markdownDescription": "Whether to save collection entries in all the locales. Default: `true`.",
4307
+ "deprecated": true,
4308
+ "deprecationMessage": "Use the `initial_locales` option instead, which provides more flexibility. `save_all_locales: false` is equivalent to `initial_locales: all`. See our README https://github.com/sveltia/sveltia-cms#disabling-non-default-locale-content for details."
4296
4309
  },
4297
4310
  "canonical_slug": {
4298
4311
  "type": "object",
package/types/public.d.ts CHANGED
@@ -1062,6 +1062,8 @@ export type UuidFieldProps = {
1062
1062
  use_b32_encoding?: boolean;
1063
1063
  /**
1064
1064
  * Whether to make the field read-only. Default: `true`.
1065
+ * @deprecated Use the `readonly` common field option instead, which defaults to `true` for the
1066
+ * UUID widget.
1065
1067
  */
1066
1068
  read_only?: boolean;
1067
1069
  };
@@ -1138,10 +1140,11 @@ export type I18nOptions = {
1138
1140
  */
1139
1141
  initial_locales?: LocaleCode[] | "all" | "default";
1140
1142
  /**
1141
- * Whether to save collection entries in all the locales. If
1142
- * `false`, users will be able to disable the output of non-default locales through the UI. See our
1143
- * [README](https://github.com/sveltia/sveltia-cms#disabling-non-default-locale-content) for
1144
- * details.
1143
+ * Whether to save collection entries in all the locales.
1144
+ * Default: `true`.
1145
+ * @deprecated Use the `initial_locales` option instead, which provides more flexibility.
1146
+ * `save_all_locales: false` is equivalent to `initial_locales: all`. See our README
1147
+ * https://github.com/sveltia/sveltia-cms#disabling-non-default-locale-content for details.
1145
1148
  */
1146
1149
  save_all_locales?: boolean;
1147
1150
  /**
@@ -1633,8 +1636,10 @@ export type Collection = {
1633
1636
  index_file?: CollectionIndexFile | boolean;
1634
1637
  /**
1635
1638
  * Whether to double-quote all the strings values if the YAML
1636
- * format is used for file output. Default: `false`. DEPRECATED in favor of the global YAML format
1637
- * options.
1639
+ * format is used for file output. Default: `false`.
1640
+ * @deprecated Use the global YAML format options. `yaml_quote: true` is equivalent to `quote:
1641
+ * double`. See our README https://github.com/sveltia/sveltia-cms#controlling-data-output for
1642
+ * details.
1638
1643
  */
1639
1644
  yaml_quote?: boolean;
1640
1645
  /**
@@ -1777,11 +1782,20 @@ export type BackendOptions = {
1777
1782
  auth_scope?: "repo" | "public_repo";
1778
1783
  /**
1779
1784
  * Whether to enable or disable automatic deployments
1780
- * with any connected CI/CD provider, such as GitHub Actions or Cloudflare Pages. If `false`, the
1781
- * `[skip ci]` prefix will be added to commit messages. Git backends only. Default: `undefined`. See
1782
- * our [README](https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments) for details.
1785
+ * with any connected CI/CD provider. Default: `undefined`.
1786
+ * @deprecated Use the new `skip_ci` option instead, which is more intuitive.
1787
+ * `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments:
1788
+ * true` is equivalent to `skip_ci: false`. See our README
1789
+ * https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments for details.
1783
1790
  */
1784
1791
  automatic_deployments?: boolean;
1792
+ /**
1793
+ * Whether to enable or disable automatic deployments with any
1794
+ * connected CI/CD provider, such as GitHub Actions or Cloudflare Pages. If `false`, the `[skip ci]`
1795
+ * prefix will be added to commit messages. Git backends only. Default: `undefined`. See our
1796
+ * [README](https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments) for details.
1797
+ */
1798
+ skip_ci?: boolean;
1785
1799
  };
1786
1800
  /**
1787
1801
  * Global media library options.