slate-angular 20.2.13 → 20.2.15

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/index.d.ts CHANGED
@@ -400,6 +400,10 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
400
400
  private tryUpdateVirtualViewportAnimId;
401
401
  private editorResizeObserver?;
402
402
  indicsOfNeedBeMeasured$: Subject<number[]>;
403
+ virtualScrollInitialized: boolean;
404
+ virtualTopHeightElement: HTMLElement;
405
+ virtualBottomHeightElement: HTMLElement;
406
+ virtualCenterOutlet: HTMLElement;
403
407
  constructor(elementRef: ElementRef, renderer2: Renderer2, cdr: ChangeDetectorRef, ngZone: NgZone, injector: Injector);
404
408
  ngOnInit(): void;
405
409
  ngOnChanges(simpleChanges: SimpleChanges): void;
@@ -407,25 +411,7 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
407
411
  registerOnTouched(fn: any): void;
408
412
  writeValue(value: Element$1[]): void;
409
413
  initialize(): void;
410
- calculateVirtualScrollSelection(selection: Selection$1): slate.BaseRange;
411
- private isSelectionInvisible;
412
- toNativeSelection(autoScroll?: boolean): void;
413
- onChange(): void;
414
- ngAfterViewChecked(): void;
415
- ngDoCheck(): void;
416
- forceRender(): void;
417
- render(): void;
418
- updateListRenderAndRemeasureHeights(): void;
419
- updateContext(): boolean;
420
- initializeContext(): void;
421
- initializeViewContext(): void;
422
- composePlaceholderDecorate(editor: Editor): SlatePlaceholder[];
423
- generateDecorations(): slate.BaseRange[];
424
414
  private isEnabledVirtualScroll;
425
- virtualScrollInitialized: boolean;
426
- virtualTopHeightElement: HTMLElement;
427
- virtualBottomHeightElement: HTMLElement;
428
- virtualCenterOutlet: HTMLElement;
429
415
  initializeVirtualScroll(): void;
430
416
  getChangedIndics(previousValue: Descendant[]): any[];
431
417
  setVirtualSpaceHeight(topHeight: number, bottomHeight?: number): void;
@@ -440,6 +426,20 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
440
426
  private applyVirtualView;
441
427
  private diffVirtualViewport;
442
428
  private addEventListener;
429
+ calculateVirtualScrollSelection(selection: Selection$1): slate.BaseRange;
430
+ private isSelectionInvisible;
431
+ toNativeSelection(autoScroll?: boolean): void;
432
+ onChange(): void;
433
+ ngAfterViewChecked(): void;
434
+ ngDoCheck(): void;
435
+ forceRender(): void;
436
+ render(): void;
437
+ updateListRenderAndRemeasureHeights(): void;
438
+ updateContext(): boolean;
439
+ initializeContext(): void;
440
+ initializeViewContext(): void;
441
+ composePlaceholderDecorate(editor: Editor): SlatePlaceholder[];
442
+ generateDecorations(): slate.BaseRange[];
443
443
  private toSlateSelection;
444
444
  private onDOMBeforeInput;
445
445
  private onDOMBlur;
@@ -837,6 +837,7 @@ declare const ELEMENT_KEY_TO_HEIGHTS: WeakMap<AngularEditor, Map<string, number>
837
837
  declare const EDITOR_TO_BUSINESS_TOP: WeakMap<AngularEditor, number>;
838
838
  declare const EDITOR_TO_ROOT_NODE_WIDTH: WeakMap<AngularEditor, number>;
839
839
  declare const EDITOR_TO_IS_FROM_SCROLL_TO: WeakMap<AngularEditor, boolean>;
840
+ declare const isValidNumber: (value: any) => boolean;
840
841
  declare const debugLog: (type: "log" | "warn", ...args: any[]) => void;
841
842
  declare const cacheHeightByElement: (editor: AngularEditor, element: Element$1, height: number) => void;
842
843
  declare const setMinHeightByElement: (editor: AngularEditor, element: Element$1, rootElementMarginBottom: any) => void;
@@ -852,5 +853,5 @@ declare const buildHeightsAndAccumulatedHeights: (editor: AngularEditor, visible
852
853
  declare const calculateVirtualTopHeight: (editor: AngularEditor, startIndex: number, visibleStates: boolean[]) => any;
853
854
  declare const scrollToElement: (editor: AngularEditor, element: Element$1, scrollTo: (scrollTop: number) => void) => void;
854
855
 
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 };
856
+ 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, isValidNumber, measureHeightByIndics, normalize, scrollToElement, setClipboardData, setDataTransferClipboard, setDataTransferClipboardText, setMinHeightByElement, setNavigatorClipboard, shallowCompare, stripHtml, withAngular };
856
857
  export type { AfterContextChange, BaseEmbeddedView, BeforeContextChange, ClipboardData, ComponentType, OriginEvent, SafeAny, SlateChildrenContext, SlateElementAttributes, SlateElementContext, SlateError, SlateLeafContext, SlatePlaceholder, SlateStringContext, SlateTextContext, SlateViewContext, SlateVirtualScrollConfig, ThrottleRAF, ViewType, VirtualViewResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slate-angular",
3
- "version": "20.2.13",
3
+ "version": "20.2.15",
4
4
  "description": "Angular view layer for Slate",
5
5
  "author": "pubuzhixing <pubuzhixing@gmail.com>",
6
6
  "homepage": "https://github.com/worktile/slate-angular#readme",