slate-angular 19.0.0 → 19.1.0-next.1
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/components/editable/editable.component.d.ts +1 -5
- package/components/string/default-string.component.d.ts +1 -1
- package/fesm2022/slate-angular.mjs +461 -949
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/package.json +7 -5
- package/plugins/angular-editor.d.ts +54 -122
- package/plugins/with-dom.d.ts +68 -0
- package/utils/block-card.d.ts +1 -1
- package/utils/dom.d.ts +3 -63
- package/utils/index.d.ts +1 -2
- package/utils/weak-maps.d.ts +1 -30
- package/utils/constants.d.ts +0 -1
- package/utils/key.d.ts +0 -11
- package/utils/lines.d.ts +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit, Renderer2, ElementRef, OnDestroy, ChangeDetectorRef, NgZone, Injector, OnChanges, SimpleChanges, AfterViewChecked, DoCheck, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Text as SlateText, Element, Editor, Range, NodeEntry } from 'slate';
|
|
3
3
|
import { AngularEditor } from '../../plugins/angular-editor';
|
|
4
|
-
import { DOMElement,
|
|
4
|
+
import { DOMElement, DOMRange } from 'slate-dom';
|
|
5
5
|
import { SlateStringTemplate } from '../string/template.component';
|
|
6
6
|
import { SlateChildrenContext, SlateViewContext } from '../../view/context';
|
|
7
7
|
import { ComponentType, ViewType } from '../../types/view';
|
|
@@ -110,7 +110,3 @@ export declare class SlateEditable implements OnInit, OnChanges, OnDestroy, Afte
|
|
|
110
110
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlateEditable, "slate-editable", never, { "editor": { "alias": "editor"; "required": false; }; "renderElement": { "alias": "renderElement"; "required": false; }; "renderLeaf": { "alias": "renderLeaf"; "required": false; }; "renderText": { "alias": "renderText"; "required": false; }; "decorate": { "alias": "decorate"; "required": false; }; "placeholderDecorate": { "alias": "placeholderDecorate"; "required": false; }; "scrollSelectionIntoView": { "alias": "scrollSelectionIntoView"; "required": false; }; "isStrictDecorate": { "alias": "isStrictDecorate"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "beforeInput": { "alias": "beforeInput"; "required": false; }; "blur": { "alias": "blur"; "required": false; }; "click": { "alias": "click"; "required": false; }; "compositionEnd": { "alias": "compositionEnd"; "required": false; }; "compositionUpdate": { "alias": "compositionUpdate"; "required": false; }; "compositionStart": { "alias": "compositionStart"; "required": false; }; "copy": { "alias": "copy"; "required": false; }; "cut": { "alias": "cut"; "required": false; }; "dragOver": { "alias": "dragOver"; "required": false; }; "dragStart": { "alias": "dragStart"; "required": false; }; "dragEnd": { "alias": "dragEnd"; "required": false; }; "drop": { "alias": "drop"; "required": false; }; "focus": { "alias": "focus"; "required": false; }; "keydown": { "alias": "keydown"; "required": false; }; "paste": { "alias": "paste"; "required": false; }; "spellCheck": { "alias": "spellCheck"; "required": false; }; "autoCorrect": { "alias": "autoCorrect"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; }, {}, never, never, true, never>;
|
|
111
111
|
}
|
|
112
112
|
export declare const defaultScrollSelectionIntoView: (editor: AngularEditor, domRange: DOMRange) => void;
|
|
113
|
-
/**
|
|
114
|
-
* Check if the target is editable and in the editor.
|
|
115
|
-
*/
|
|
116
|
-
export declare const hasEditableTarget: (editor: AngularEditor, target: EventTarget | null) => target is DOMNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DOMElement } from '../../utils/dom';
|
|
3
2
|
import { BaseComponent } from '../../view/base';
|
|
4
3
|
import { SlateStringContext } from '../../view/context';
|
|
5
4
|
import { BeforeContextChange } from '../../view/context-change';
|
|
5
|
+
import { DOMElement } from 'slate-dom';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SlateDefaultString extends BaseComponent<SlateStringContext> implements OnInit, BeforeContextChange<SlateStringContext> {
|
|
8
8
|
textNode?: Text;
|