@worktile/theia 19.1.3 → 19.1.4

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": "@worktile/theia",
3
- "version": "19.1.3",
3
+ "version": "19.1.4",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,10 +1,12 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { BeforeContextChange, SlateElementContext } from 'slate-angular';
2
3
  import { Editor, Element } from 'slate';
3
4
  import { HeadingElement } from '../../custom-types';
4
5
  import { TheBaseElement } from '../../interfaces/view-base';
5
6
  import * as i0 from "@angular/core";
6
- export declare class TheHeadingElement<T extends Element = HeadingElement, K extends Editor = Editor> extends TheBaseElement implements BeforeContextChange<SlateElementContext> {
7
+ export declare class TheHeadingElement<T extends Element = HeadingElement, K extends Editor = Editor> extends TheBaseElement<T, K> implements BeforeContextChange<SlateElementContext>, OnInit {
7
8
  beforeContextChange: (value: SlateElementContext<T>) => void;
9
+ ngOnInit(): void;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TheHeadingElement<any, any>, never>;
9
11
  static ɵcmp: i0.ɵɵComponentDeclaration<TheHeadingElement<any, any>, "[theHeadingElement]", never, {}, {}, never, never, true, never>;
10
12
  }
@@ -1,8 +1,9 @@
1
- import { Editor } from 'slate';
1
+ import { Editor, Path } from 'slate';
2
2
  import { CustomElementKinds } from '../../custom-types';
3
3
  import { ThePluginBaseOption } from '../../interfaces';
4
4
  import { Signal } from '@angular/core';
5
5
  import { TheI18nTranslation } from '../../i18n';
6
+ export declare const cleanHeadingEffect: (editor: Editor, path: Path) => void;
6
7
  export type HeadingPluginOptions = {
7
8
  cleanupTypes: CustomElementKinds[];
8
9
  } & ThePluginBaseOption;
@@ -1,6 +1,9 @@
1
1
  import { HeadingElement, HeadingFourElement, HeadingOneElement, HeadingThreeElement, HeadingTwoElement } from '../../custom-types';
2
2
  import { TheEditor } from '../../interfaces/editor';
3
- import { Element } from 'slate';
3
+ import { Element, Editor, Path } from 'slate';
4
4
  export declare function isHeadingElement(element: Element): element is HeadingElement;
5
5
  export declare function isStandardHeadingElement(element: Element): element is HeadingOneElement | HeadingTwoElement | HeadingThreeElement | HeadingFourElement;
6
+ export declare function isStandardHeadingElementByType(type: string): boolean;
6
7
  export declare function getFollowElements(editor: TheEditor, element: HeadingElement): Element[];
8
+ export declare function getPreviousRelatedHeadingElements(editor: Editor, path: Path): Path[] | null;
9
+ export declare function getCollapsedStandardHeadingAbove(editor: Editor, path: Path): Path[];