@plait/common 0.56.0 → 0.56.2

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.
@@ -12,6 +12,7 @@ export interface ActiveGeneratorOptions<T> {
12
12
  export declare class ActiveGenerator<T extends PlaitElement = PlaitElement> extends Generator<T, ActiveGeneratorExtraData, ActiveGeneratorOptions<T> & GeneratorOptions> {
13
13
  board: PlaitBoard;
14
14
  options: ActiveGeneratorOptions<T>;
15
+ static key: string;
15
16
  hasResizeHandle: boolean;
16
17
  constructor(board: PlaitBoard, options: ActiveGeneratorOptions<T>);
17
18
  canDraw(element: T, data: ActiveGeneratorExtraData): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/common",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.4",
6
6
  "@angular/core": "^17.2.4",
package/utils/text.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { PlaitElement } from '@plait/core';
1
+ import { PlaitBoard, PlaitElement } from '@plait/core';
2
2
  import { CustomText, TextManage } from '@plait/text';
3
3
  export declare const getTextManages: (element: PlaitElement) => TextManage[];
4
4
  export declare const getFirstTextManage: (element: PlaitElement) => TextManage;
5
5
  export declare const getTextEditors: (element: PlaitElement) => (import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor)[];
6
6
  export declare const getFirstTextEditor: (element: PlaitElement) => import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor;
7
+ export declare const findFirstTextEditor: (board: PlaitBoard) => null;
7
8
  export declare const getTextMarksByElement: (element: PlaitElement) => Omit<CustomText, "text">;
8
9
  export declare const getElementsText: (elements: PlaitElement[]) => string;
9
10
  export declare const ELEMENT_TO_TEXT_MANAGES: WeakMap<PlaitElement, TextManage[]>;