slate-angular 20.2.10 → 20.2.12
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/fesm2022/slate-angular.mjs +70 -48
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/index.d.ts +6 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ interface AngularEditor extends CustomDOMEditor {
|
|
|
105
105
|
deleteCutData: () => void;
|
|
106
106
|
selectAll: () => void;
|
|
107
107
|
isVisible: (element: Element$1) => boolean;
|
|
108
|
+
getAllVisibleStates: () => boolean[];
|
|
108
109
|
onKeydown: (event: KeyboardEvent) => void;
|
|
109
110
|
onClick: (event: MouseEvent) => void;
|
|
110
111
|
injector: Injector;
|
|
@@ -398,7 +399,7 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
398
399
|
private keyHeightMap;
|
|
399
400
|
private tryUpdateVirtualViewportAnimId;
|
|
400
401
|
private editorResizeObserver?;
|
|
401
|
-
|
|
402
|
+
indicsOfNeedBeMeasured$: Subject<number[]>;
|
|
402
403
|
constructor(elementRef: ElementRef, renderer2: Renderer2, cdr: ChangeDetectorRef, ngZone: NgZone, injector: Injector);
|
|
403
404
|
ngOnInit(): void;
|
|
404
405
|
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
@@ -426,9 +427,10 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
426
427
|
virtualBottomHeightElement: HTMLElement;
|
|
427
428
|
virtualCenterOutlet: HTMLElement;
|
|
428
429
|
initializeVirtualScroll(): void;
|
|
430
|
+
getChangedIndics(previousValue: Descendant[]): any[];
|
|
429
431
|
setVirtualSpaceHeight(topHeight: number, bottomHeight?: number): void;
|
|
430
432
|
getActualVirtualTopHeight(): number;
|
|
431
|
-
handlePreRendering(): {
|
|
433
|
+
handlePreRendering(visibleStates: boolean[]): {
|
|
432
434
|
preRenderingCount: number;
|
|
433
435
|
childrenWithPreRendering: slate.BaseElement[];
|
|
434
436
|
childrenWithPreRenderingIndics: number[];
|
|
@@ -843,11 +845,11 @@ declare const calcHeightByElement: (editor: AngularEditor, element: Element$1) =
|
|
|
843
845
|
declare const measureHeightByIndics: (editor: AngularEditor, indics: number[], force?: boolean) => boolean;
|
|
844
846
|
declare const getBusinessTop: (editor: AngularEditor) => number;
|
|
845
847
|
declare const getCachedHeightByElement: (editor: AngularEditor, element: Element$1) => number;
|
|
846
|
-
declare const buildHeightsAndAccumulatedHeights: (editor: AngularEditor) => {
|
|
848
|
+
declare const buildHeightsAndAccumulatedHeights: (editor: AngularEditor, visibleStates: boolean[]) => {
|
|
847
849
|
heights: any[];
|
|
848
850
|
accumulatedHeights: any[];
|
|
849
851
|
};
|
|
850
|
-
declare const calculateVirtualTopHeight: (editor: AngularEditor, startIndex: number) => any;
|
|
852
|
+
declare const calculateVirtualTopHeight: (editor: AngularEditor, startIndex: number, visibleStates: boolean[]) => any;
|
|
851
853
|
declare const scrollToElement: (editor: AngularEditor, element: Element$1, scrollTo: (scrollTop: number) => void) => void;
|
|
852
854
|
|
|
853
855
|
export { AngularEditor, BaseComponent, BaseElementComponent, BaseElementFlavour, BaseFlavour, BaseLeafComponent, BaseLeafFlavour, BaseTextComponent, BaseTextFlavour, BlockCardRef, DEFAULT_ELEMENT_HEIGHT, DefaultTextFlavour, EDITOR_TO_AFTER_VIEW_INIT_QUEUE, EDITOR_TO_BUSINESS_TOP, EDITOR_TO_IS_FROM_SCROLL_TO, EDITOR_TO_ROOT_NODE_WIDTH, EDITOR_TO_VIRTUAL_SCROLL_SELECTION, ELEMENT_KEY_TO_HEIGHTS, ELEMENT_TO_COMPONENT, FAKE_LEFT_BLOCK_CARD_OFFSET, FAKE_RIGHT_BLOCK_CARD_OFFSET, FlavourRef, HAS_BEFORE_INPUT_SUPPORT, IS_ANDROID, IS_APPLE, IS_CHROME, IS_CHROME_LEGACY, IS_EDGE_LEGACY, IS_ENABLED_VIRTUAL_SCROLL, IS_FIREFOX, IS_FIREFOX_LEGACY, IS_IOS, IS_QQBROWSER, IS_SAFARI, IS_UC_MOBILE, IS_WECHATBROWSER, PLACEHOLDER_SYMBOL, SLATE_BLOCK_CARD_CLASS_NAME, SLATE_DEBUG_KEY, SLATE_DEBUG_KEY_SCROLL_TOP, SlateBlockCard, SlateChildrenOutlet, SlateEditable, SlateErrorCode, SlateFragmentAttributeKey, SlateModule, SlateString, VIRTUAL_SCROLL_DEFAULT_BLOCK_HEIGHT, VoidTextFlavour, blobAsString, buildHTMLText, buildHeightsAndAccumulatedHeights, cacheHeightByElement, calcHeightByElement, calculateVirtualTopHeight, check, clearMinHeightByElement, completeTable, createClipboardData, createText, createThrottleRAF, debugLog, defaultScrollSelectionIntoView, fallbackCopyText, getBlockCardByNativeElement, getBusinessTop, getCachedHeightByElement, getCardTargetAttribute, getClipboardData, getClipboardFromHTMLText, getContentHeight, getDataTransferClipboard, getDataTransferClipboardText, getNavigatorClipboard, getPlainText, getSelection, getSlateFragmentAttribute, getZeroTextNode, hasAfterContextChange, hasBeforeContextChange, hasBlockCard, hasBlockCardWithNode, hotkeys, isCardCenterByTargetAttr, isCardLeft, isCardLeftByTargetAttr, isCardRightByTargetAttr, isClipboardFile, isClipboardReadSupported, isClipboardWriteSupported, isClipboardWriteTextSupported, isComponentType, isDOMText, isDebug, isDebugScrollTop, isDecoratorRangeListEqual, isFlavourType, isInvalidTable, isTemplateRef, isValid, measureHeightByIndics, normalize, scrollToElement, setClipboardData, setDataTransferClipboard, setDataTransferClipboardText, setMinHeightByElement, setNavigatorClipboard, shallowCompare, stripHtml, withAngular };
|
package/package.json
CHANGED