@plait/core 0.2.0-next.2 → 0.2.0-next.8

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.
@@ -1,4 +1,5 @@
1
1
  import { PlaitPluginElementComponent } from '../core/element/plugin-element';
2
+ import { PlaitBoard } from './board';
2
3
  import { Point } from './point';
3
4
  export interface PlaitElement {
4
5
  [key: string]: any;
@@ -9,7 +10,7 @@ export interface PlaitElement {
9
10
  }
10
11
  export declare const PlaitElement: {
11
12
  isRootElement(value: PlaitElement): boolean;
12
- getComponent(value: PlaitElement): PlaitPluginElementComponent<PlaitElement>;
13
+ getComponent(value: PlaitElement): PlaitPluginElementComponent<PlaitElement, PlaitBoard>;
13
14
  };
14
15
  export interface ComponentType<T> {
15
16
  new (...args: any[]): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/core",
3
- "version": "0.2.0-next.2",
3
+ "version": "0.2.0-next.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"
@@ -20,7 +20,7 @@
20
20
  // https://stackoverflow.com/questions/51313873/svg-foreignobject-not-working-properly-on-safari
21
21
  .plait-richtext-container {
22
22
  // chrome show position is not correct, safari not working when don't assigned position property
23
- // can not assign absolute, because safari can not show correctly position
23
+ // can not assign absolute, because safari can not show correctly position
24
24
  position: initial;
25
25
  &[readonly='true'] {
26
26
  ::-moz-selection {