@sveltia/cms 0.113.3 → 0.113.5

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.3",
3
+ "version": "0.113.5",
4
4
  "description": "Sveltia CMS is a modern, lightweight, Git-based headless content management system.",
5
5
  "keywords": [
6
6
  "cms",
@@ -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` option."
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",
@@ -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
@@ -1950,6 +1950,20 @@ export type GlobalMediaLibraryOptions = {
1950
1950
  */
1951
1951
  name: MediaLibraryName;
1952
1952
  };
1953
+ /**
1954
+ * Custom logo options.
1955
+ */
1956
+ export type LogoOptions = {
1957
+ /**
1958
+ * Absolute URL or absolute path to the site logo that will be displayed on
1959
+ * the entrance page and the browser’s tab (favicon). A square image works best.
1960
+ */
1961
+ src: string;
1962
+ /**
1963
+ * Whether to show the logo in the header. Default: `true`.
1964
+ */
1965
+ show_in_header?: boolean;
1966
+ };
1953
1967
  /**
1954
1968
  * Entry slug options.
1955
1969
  */
@@ -2084,8 +2098,13 @@ export type SiteConfig = {
2084
2098
  * Absolute URL or absolute path to the site logo that will be
2085
2099
  * displayed on the entrance page and the browser’s tab (favicon). A square image works best.
2086
2100
  * Default: Sveltia logo.
2101
+ * @deprecated This option is superseded by the new `logo` option.
2087
2102
  */
2088
2103
  logo_url?: string;
2104
+ /**
2105
+ * Site logo options.
2106
+ */
2107
+ logo?: LogoOptions;
2089
2108
  /**
2090
2109
  * URL to redirect users to after logging out.
2091
2110
  */
@@ -2150,6 +2169,10 @@ export type EditorComponentDefinition = {
2150
2169
  * icon](https://fonts.google.com/icons?icon.set=Material+Symbols) to be displayed in the editor UI.
2151
2170
  */
2152
2171
  icon?: string;
2172
+ /**
2173
+ * Whether to collapse the object by default. Default: `false`.
2174
+ */
2175
+ collapsed?: boolean;
2153
2176
  /**
2154
2177
  * Set of fields to be displayed in the component.
2155
2178
  */