@sveltia/cms 0.89.2 → 0.90.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/main.d.ts CHANGED
@@ -44,10 +44,11 @@ declare function registerEditorComponent(definition: EditorComponentDefinition):
44
44
  */
45
45
  declare function registerEventListener(eventListener: AppEventListener): void;
46
46
  /**
47
- * Register a custom preview style.
48
- * @param {string} style File path or raw CSS string.
47
+ * Register a custom preview stylesheet.
48
+ * @param {string} style URL, file path or raw CSS string.
49
49
  * @param {object} [options] Options.
50
50
  * @param {boolean} [options.raw] Whether to use a CSS string.
51
+ * @throws {TypeError} If `style` is not a string, or `raw` is not a boolean.
51
52
  * @see https://decapcms.org/docs/customization/#registerpreviewstyle
52
53
  */
53
54
  declare function registerPreviewStyle(style: string, { raw }?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/cms",
3
- "version": "0.89.2",
3
+ "version": "0.90.1",
4
4
  "description": "Sveltia CMS is a modern, lightweight, Git-based headless content management system.",
5
5
  "keywords": [
6
6
  "cms",