@blokkli/editor 2.0.0-alpha.7 → 2.0.0-alpha.9

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.
@@ -18,7 +18,7 @@ export default function(ui) {
18
18
  return;
19
19
  }
20
20
  iterator--;
21
- eventBus.emit("animationFrame:before", time);
21
+ eventBus.emit("animationFrame:before", { time, mouseX, mouseY });
22
22
  eventBus.emit("animationFrame", {
23
23
  mouseX,
24
24
  mouseY,
@@ -870,6 +870,11 @@ export type LibraryEditItemEvent = {
870
870
  uuid: string;
871
871
  label?: string;
872
872
  };
873
+ export type AnimationFrameBeforeEvent = {
874
+ time: number;
875
+ mouseX: number;
876
+ mouseY: number;
877
+ };
873
878
  export type EventbusEvents = {
874
879
  select: string | string[];
875
880
  'select:unselect': undefined;
@@ -899,7 +904,7 @@ export type EventbusEvents = {
899
904
  'block:append': BlockAppendEvent;
900
905
  'item:doubleClick': DraggableExistingBlock;
901
906
  scrollIntoView: ScrollIntoViewEvent;
902
- 'animationFrame:before': number;
907
+ 'animationFrame:before': AnimationFrameBeforeEvent;
903
908
  'canvas:draw': CanvasDrawEvent;
904
909
  'state:reloaded': undefined;
905
910
  addContentSearchItem: AddContentSearchItemEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-alpha.9",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "repository": "blokkli/editor",
6
6
  "type": "module",