From f889c8089befce2820a64c3b015013966f96e27a Mon Sep 17 00:00:00 2001 From: chrisgarber <30669660+chrisgarber@users.noreply.github.com> Date: Mon, 6 May 2024 14:34:36 -0500 Subject: [PATCH 1/3] Update Plugins.md (#5859) fix typo --- docs/modules/Plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/Plugins.md b/docs/modules/Plugins.md index 40872ec76..9089d166e 100644 --- a/docs/modules/Plugins.md +++ b/docs/modules/Plugins.md @@ -182,4 +182,4 @@ grapesjs.init({ ## Boilerplate -For fast plugin development, we highly recommend using [grapesjs-cli](https://github.com/GrapesJS/cli) which helps to avoid the hassle of setting up all the dependencies and configurations for development and building (no need to touch Webpack o Babel configurations). For more information check the repository. +For fast plugin development, we highly recommend using [grapesjs-cli](https://github.com/GrapesJS/cli) which helps to avoid the hassle of setting up all the dependencies and configurations for development and building (no need to touch Webpack or Babel configurations). For more information check the repository. From 2a438cc4eb3e0721c739bb3dc3665f0348ebd402 Mon Sep 17 00:00:00 2001 From: Stefano Azzalini <73150750+stfnzl@users.noreply.github.com> Date: Sat, 11 May 2024 10:07:09 +0200 Subject: [PATCH 2/3] Document um.skip (#5852) Add docblock Co-authored-by: Stefano --- src/undo_manager/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/undo_manager/index.ts b/src/undo_manager/index.ts index 2328cef42..450555772 100644 --- a/src/undo_manager/index.ts +++ b/src/undo_manager/index.ts @@ -321,6 +321,14 @@ export default class UndoManagerModule extends Module { + * // Do stuff without tracking + * }); + */ skip(clb: Function) { const isTracking = !!this.um.isTracking(); From 5aef0b9db6e46325593e53f4952345d5f9e2836c Mon Sep 17 00:00:00 2001 From: Stefano Azzalini <73150750+stfnzl@users.noreply.github.com> Date: Sat, 11 May 2024 10:11:58 +0200 Subject: [PATCH 3/3] Move last selected component (#5847) --- src/commands/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/index.ts b/src/commands/index.ts index fe8546d85..089bf6066 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -141,7 +141,7 @@ export default class CommandsModule extends Module trg.delegate?.move?.(trg) || trg).filter(Boolean); - const target = targets[0] as Component | undefined; + const target = targets[targets.length - 1] as Component | undefined; const nativeDrag = event?.type === 'dragstart'; const modes = ['absolute', 'translate'];