@plait/mind 0.24.1 → 0.26.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/mind",
3
- "version": "0.24.1",
3
+ "version": "0.26.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.2",
6
6
  "@angular/core": "^15.2.2"
@@ -134,7 +134,6 @@ $primary: #4e8afa;
134
134
  }
135
135
 
136
136
  .mind-node-image {
137
- margin: 6px;
138
137
  display: block;
139
138
  }
140
139
 
@@ -1,9 +1,11 @@
1
1
  import { PlaitBoard, PlaitElement, Point } from '@plait/core';
2
- import { MindElement } from '../interfaces';
2
+ import { ImageItem, MindElement } from '../interfaces';
3
3
  import { Element } from 'slate';
4
4
  import { PlaitMindBoard } from '../plugins/with-mind.board';
5
5
  export declare const buildClipboardData: (board: PlaitBoard, selectedElements: MindElement[]) => MindElement<import("../interfaces").BaseData>[];
6
6
  export declare const setClipboardData: (data: DataTransfer | null, elements: MindElement[]) => void;
7
+ export declare const setClipboardDataByImage: (data: DataTransfer | null, image: ImageItem) => void;
8
+ export declare const getImageItemFromClipboard: (data: DataTransfer | null) => any;
7
9
  export declare const getDataFromClipboard: (data: DataTransfer | null) => PlaitElement[];
8
10
  export declare const insertClipboardData: (board: PlaitMindBoard, elements: PlaitElement[], targetPoint: Point) => void;
9
11
  export declare const insertClipboardText: (board: PlaitMindBoard, targetParent: PlaitElement, text: string | Element) => void;