lakelib 0.3.4 → 0.3.6

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/lib/lake.d.ts CHANGED
@@ -358,6 +358,19 @@ interface ThreeParts extends TwoParts {
358
358
  }
359
359
  type NodePath = number[];
360
360
 
361
+ interface ActiveItem {
362
+ node: Nodes;
363
+ name: string;
364
+ attributes: KeyValue;
365
+ styles: KeyValue;
366
+ }
367
+ interface SelectionState {
368
+ activeItems: ActiveItem[];
369
+ disabledNameMap?: Map<string, boolean>;
370
+ selectedNameMap?: Map<string, boolean>;
371
+ selectedValuesMap?: Map<string, string[]>;
372
+ }
373
+
361
374
  type TranslationFunctions = {
362
375
  toolbar: {
363
376
  /**
@@ -971,19 +984,6 @@ type TranslationFunctions = {
971
984
  };
972
985
  };
973
986
 
974
- interface ActiveItem {
975
- node: Nodes;
976
- name: string;
977
- attributes: KeyValue;
978
- styles: KeyValue;
979
- }
980
- interface SelectionState {
981
- activeItems: ActiveItem[];
982
- disabledNameMap?: Map<string, boolean>;
983
- selectedNameMap?: Map<string, boolean>;
984
- selectedValuesMap?: Map<string, string[]>;
985
- }
986
-
987
987
  type NativeRange = Range;
988
988
 
989
989
  /**
@@ -1856,6 +1856,10 @@ declare class Editor {
1856
1856
  * Removes focus from the editor.
1857
1857
  */
1858
1858
  blur(): void;
1859
+ /**
1860
+ * Returns the state of the current selection.
1861
+ */
1862
+ getState(): SelectionState;
1859
1863
  /**
1860
1864
  * Sets the specified content to the editor.
1861
1865
  */