From a8d700a266c85a7502c773eb40a52814a47a4e9f Mon Sep 17 00:00:00 2001 From: lofcz Date: Sat, 5 Feb 2022 22:25:43 +0100 Subject: [PATCH 1/3] Up docs --- docs/api/editor.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/editor.md b/docs/api/editor.md index 041cfbe68..3ec49efdf 100644 --- a/docs/api/editor.md +++ b/docs/api/editor.md @@ -120,6 +120,8 @@ Returns CSS built inside canvas * `opts.json` **[Boolean][18]** Return an array of CssRules instead of the CSS string (optional, default `false`) * `opts.avoidProtected` **[Boolean][18]** Don't include protected CSS (optional, default `false`) * `opts.onlyMatched` **[Boolean][18]** Return only rules matched by the passed component. (optional, default `false`) + * `opts.keepUnusedStyles` **[Boolean][18]** Force keep all defined rules. Toggle on in case output looks different inside/outside of the editor. (optional, default `false`) + Returns **([String][16] | [Array][19]\)** CSS string or array of CssRules From dd744d5c671952d9a59ee77fdf3e6979f7ce6d32 Mon Sep 17 00:00:00 2001 From: lofcz Date: Sun, 6 Feb 2022 06:08:13 +0100 Subject: [PATCH 2/3] Up docs --- src/editor/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/index.js b/src/editor/index.js index e92227098..4db74db98 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -169,6 +169,7 @@ export default (config = {}, opts = {}) => { * @param {Boolean} [opts.json=false] Return an array of CssRules instead of the CSS string * @param {Boolean} [opts.avoidProtected=false] Don't include protected CSS * @param {Boolean} [opts.onlyMatched=false] Return only rules matched by the passed component. + * @param {Boolean} [opts.keepUnusedStyles=false] Force keep all defined rules. Toggle on in case output looks different inside/outside of the editor. * @returns {String|Array} CSS string or array of CssRules */ getCss(opts) { From 81b6d60c962f75cdd4aa2a85d127240f9c443f46 Mon Sep 17 00:00:00 2001 From: lofcz Date: Sun, 6 Feb 2022 06:08:25 +0100 Subject: [PATCH 3/3] Revert "Up docs" This reverts commit a8d700a266c85a7502c773eb40a52814a47a4e9f. --- docs/api/editor.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/api/editor.md b/docs/api/editor.md index 3ec49efdf..041cfbe68 100644 --- a/docs/api/editor.md +++ b/docs/api/editor.md @@ -120,8 +120,6 @@ Returns CSS built inside canvas * `opts.json` **[Boolean][18]** Return an array of CssRules instead of the CSS string (optional, default `false`) * `opts.avoidProtected` **[Boolean][18]** Don't include protected CSS (optional, default `false`) * `opts.onlyMatched` **[Boolean][18]** Return only rules matched by the passed component. (optional, default `false`) - * `opts.keepUnusedStyles` **[Boolean][18]** Force keep all defined rules. Toggle on in case output looks different inside/outside of the editor. (optional, default `false`) - Returns **([String][16] | [Array][19]\)** CSS string or array of CssRules