@sveltia/cms 0.113.4 → 0.113.6

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.113.4",
3
+ "version": "0.113.6",
4
4
  "description": "Sveltia CMS is a modern, lightweight, Git-based headless content management system.",
5
5
  "keywords": [
6
6
  "cms",
@@ -18,9 +18,9 @@
18
18
  "publish_mode": {
19
19
  "type": "string",
20
20
  "enum": [
21
+ "",
21
22
  "simple",
22
- "editorial_workflow",
23
- ""
23
+ "editorial_workflow"
24
24
  ],
25
25
  "description": "Publish mode. An empty string is the same as `simple`. Default: `simple`.",
26
26
  "markdownDescription": "Publish mode. An empty string is the same as `simple`. Default: `simple`."
@@ -153,7 +153,14 @@
153
153
  "logo_url": {
154
154
  "type": "string",
155
155
  "description": "Absolute URL or absolute path to the site logo that will be displayed on the entrance page and the browser’s tab (favicon). A square image works best. Default: Sveltia logo.",
156
- "markdownDescription": "Absolute URL or absolute path to the site logo that will be displayed on the entrance page and the browser’s tab (favicon). A square image works best. Default: Sveltia logo."
156
+ "markdownDescription": "Absolute URL or absolute path to the site logo that will be displayed on the entrance page and the browser’s tab (favicon). A square image works best. Default: Sveltia logo.",
157
+ "deprecated": true,
158
+ "deprecationMessage": "This option is superseded by the new `logo.src` option. See the Decap CMS doc https://decapcms.org/docs/configuration-options/#custom-logo for details."
159
+ },
160
+ "logo": {
161
+ "$ref": "#/definitions/LogoOptions",
162
+ "description": "Site logo options.",
163
+ "markdownDescription": "Site logo options."
157
164
  },
158
165
  "logout_redirect_url": {
159
166
  "type": "string",
@@ -436,11 +443,11 @@
436
443
  "auth_type": {
437
444
  "type": "string",
438
445
  "enum": [
439
- "pkce",
440
- "implicit"
446
+ "",
447
+ "pkce"
441
448
  ],
442
- "description": "OAuth authorization method. Default: `implicit`.",
443
- "markdownDescription": "OAuth authorization method. Default: `implicit`."
449
+ "description": "OAuth grant type. The default is an empty string, which is authorization code grant. `pkce` is recommended for better security and easier setup. `implicit` is not supported in Sveltia CMS.",
450
+ "markdownDescription": "OAuth grant type. The default is an empty string, which is authorization code grant. `pkce` is recommended for better security and easier setup. `implicit` is not supported in Sveltia CMS."
444
451
  },
445
452
  "auth_endpoint": {
446
453
  "type": "string",
@@ -855,6 +862,27 @@
855
862
  "description": "Options for the unified stock photo/video media library.",
856
863
  "markdownDescription": "Options for the unified stock photo/video media library."
857
864
  },
865
+ "LogoOptions": {
866
+ "type": "object",
867
+ "properties": {
868
+ "src": {
869
+ "type": "string",
870
+ "description": "Absolute URL or absolute path to the site logo that will be displayed on the entrance page and the browser’s tab (favicon). A square image works best.",
871
+ "markdownDescription": "Absolute URL or absolute path to the site logo that will be displayed on the entrance page and the browser’s tab (favicon). A square image works best."
872
+ },
873
+ "show_in_header": {
874
+ "type": "boolean",
875
+ "description": "Whether to show the logo in the header. Default: `true`.",
876
+ "markdownDescription": "Whether to show the logo in the header. Default: `true`."
877
+ }
878
+ },
879
+ "required": [
880
+ "src"
881
+ ],
882
+ "additionalProperties": false,
883
+ "description": "Custom logo options.",
884
+ "markdownDescription": "Custom logo options."
885
+ },
858
886
  "SlugOptions": {
859
887
  "type": "object",
860
888
  "properties": {
package/types/public.d.ts CHANGED
@@ -1866,9 +1866,11 @@ export type GitLabBackendProps = {
1866
1866
  */
1867
1867
  base_url?: string;
1868
1868
  /**
1869
- * OAuth authorization method. Default: `implicit`.
1869
+ * OAuth grant type. The default is an empty string, which is
1870
+ * authorization code grant. `pkce` is recommended for better security and easier setup. `implicit`
1871
+ * is not supported in Sveltia CMS.
1870
1872
  */
1871
- auth_type?: "pkce" | "implicit";
1873
+ auth_type?: "" | "pkce";
1872
1874
  /**
1873
1875
  * OAuth base URL path. Default: `oauth/authorize`.
1874
1876
  */
@@ -1950,6 +1952,20 @@ export type GlobalMediaLibraryOptions = {
1950
1952
  */
1951
1953
  name: MediaLibraryName;
1952
1954
  };
1955
+ /**
1956
+ * Custom logo options.
1957
+ */
1958
+ export type LogoOptions = {
1959
+ /**
1960
+ * Absolute URL or absolute path to the site logo that will be displayed on
1961
+ * the entrance page and the browser’s tab (favicon). A square image works best.
1962
+ */
1963
+ src: string;
1964
+ /**
1965
+ * Whether to show the logo in the header. Default: `true`.
1966
+ */
1967
+ show_in_header?: boolean;
1968
+ };
1953
1969
  /**
1954
1970
  * Entry slug options.
1955
1971
  */
@@ -2047,7 +2063,7 @@ export type SiteConfig = {
2047
2063
  * Publish mode. An empty string is
2048
2064
  * the same as `simple`. Default: `simple`.
2049
2065
  */
2050
- publish_mode?: "simple" | "editorial_workflow" | "";
2066
+ publish_mode?: "" | "simple" | "editorial_workflow";
2051
2067
  /**
2052
2068
  * Global internal media folder path, relative to the project’s
2053
2069
  * root directory. Required unless a cloud media library is configured.
@@ -2084,8 +2100,14 @@ export type SiteConfig = {
2084
2100
  * Absolute URL or absolute path to the site logo that will be
2085
2101
  * displayed on the entrance page and the browser’s tab (favicon). A square image works best.
2086
2102
  * Default: Sveltia logo.
2103
+ * @deprecated This option is superseded by the new `logo.src` option. See the Decap CMS doc
2104
+ * https://decapcms.org/docs/configuration-options/#custom-logo for details.
2087
2105
  */
2088
2106
  logo_url?: string;
2107
+ /**
2108
+ * Site logo options.
2109
+ */
2110
+ logo?: LogoOptions;
2089
2111
  /**
2090
2112
  * URL to redirect users to after logging out.
2091
2113
  */
@@ -2150,6 +2172,10 @@ export type EditorComponentDefinition = {
2150
2172
  * icon](https://fonts.google.com/icons?icon.set=Material+Symbols) to be displayed in the editor UI.
2151
2173
  */
2152
2174
  icon?: string;
2175
+ /**
2176
+ * Whether to collapse the object by default. Default: `false`.
2177
+ */
2178
+ collapsed?: boolean;
2153
2179
  /**
2154
2180
  * Set of fields to be displayed in the component.
2155
2181
  */