diff --git a/docs/api.js b/docs/api.js index a36077198..48b0f3252 100644 --- a/docs/api.js +++ b/docs/api.js @@ -19,7 +19,7 @@ async function generateDocs () { ['commands/index.js', 'commands.md'], ['dom_components/index.ts', 'components.md'], ['dom_components/model/Component.js', 'component.md'], - ['panels/index.js', 'panels.md'], + ['panels/index.ts', 'panels.md'], ['style_manager/index.js', 'style_manager.md'], ['style_manager/model/Sector.js', 'sector.md'], ['style_manager/model/Property.js', 'property.md'], diff --git a/docs/api/editor.md b/docs/api/editor.md index 2711c7bac..b1ea98e54 100644 --- a/docs/api/editor.md +++ b/docs/api/editor.md @@ -725,7 +725,7 @@ const strHtml = editor.html`Escaped ${unsafeStr} unescaped $${safeStr}`; Returns **[String][16]** -[1]: https://github.com/artf/grapesjs/blob/master/src/editor/config/config.js +[1]: https://github.com/artf/grapesjs/blob/master/src/editor/config/config.ts [2]: /api/components.html diff --git a/docs/api/panels.md b/docs/api/panels.md index 180841297..a84b90b1e 100644 --- a/docs/api/panels.md +++ b/docs/api/panels.md @@ -143,7 +143,7 @@ Remove button from the panel ### Parameters * `panelId` **[String][12]** Panel's ID -* `button` +* `button` **any** * `buttonId` **[String][12]** Button's ID ### Examples diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 432fa7fbc..c2d697561 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -1298,6 +1298,7 @@ export default class Component extends StyleableModel { /** * Override original clone method + * @private */ clone(opt = {}) { const em = this.em; @@ -1529,6 +1530,7 @@ export default class Component extends StyleableModel { * Return a shallow copy of the model's attributes for JSON * stringification. * @return {Object} + * @private */ toJSON(opts = {}) { const obj = Model.prototype.toJSON.call(this, opts); diff --git a/src/panels/index.ts b/src/panels/index.ts index a9b2cb857..6875d241d 100644 --- a/src/panels/index.ts +++ b/src/panels/index.ts @@ -191,6 +191,7 @@ export default class PanelManager extends Module { /** * Render panels and buttons * @return {HTMLElement} + * @private */ render() { this.PanelsViewObj && this.PanelsViewObj.remove();