slate-angular 17.1.3 → 17.2.0

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.
Files changed (39) hide show
  1. package/esm2022/components/editable/editable.component.mjs +2 -3
  2. package/esm2022/components/element/default-element.component.mjs +2 -4
  3. package/esm2022/components/element/element.component.mjs +2 -4
  4. package/esm2022/components/text/default-text.component.mjs +2 -4
  5. package/esm2022/components/text/void-text.component.mjs +2 -4
  6. package/esm2022/module.mjs +3 -9
  7. package/esm2022/plugins/angular-editor.mjs +1 -1
  8. package/esm2022/plugins/with-angular.mjs +15 -22
  9. package/esm2022/public-api.mjs +1 -3
  10. package/esm2022/types/clipboard.mjs +2 -0
  11. package/esm2022/types/index.mjs +2 -1
  12. package/esm2022/utils/clipboard/clipboard.mjs +77 -0
  13. package/esm2022/utils/clipboard/common.mjs +32 -0
  14. package/esm2022/utils/clipboard/data-transfer.mjs +44 -0
  15. package/esm2022/utils/clipboard/index.mjs +5 -0
  16. package/esm2022/utils/clipboard/navigator-clipboard.mjs +56 -0
  17. package/esm2022/utils/dom.mjs +5 -23
  18. package/esm2022/utils/index.mjs +2 -1
  19. package/fesm2022/slate-angular.mjs +228 -121
  20. package/fesm2022/slate-angular.mjs.map +1 -1
  21. package/module.d.ts +5 -7
  22. package/package.json +1 -1
  23. package/plugins/angular-editor.d.ts +7 -6
  24. package/public-api.d.ts +0 -2
  25. package/types/clipboard.d.ts +8 -0
  26. package/types/index.d.ts +1 -0
  27. package/utils/clipboard/clipboard.d.ts +12 -0
  28. package/utils/clipboard/common.d.ts +6 -0
  29. package/utils/clipboard/data-transfer.d.ts +5 -0
  30. package/utils/clipboard/index.d.ts +4 -0
  31. package/utils/clipboard/navigator-clipboard.d.ts +4 -0
  32. package/utils/dom.d.ts +2 -6
  33. package/utils/index.d.ts +1 -0
  34. package/components/children/children.component.d.ts +0 -11
  35. package/components/leaves/leaves.component.d.ts +0 -12
  36. package/esm2022/components/children/children.component.mjs +0 -23
  37. package/esm2022/components/leaves/leaves.component.mjs +0 -25
  38. package/esm2022/view/container.mjs +0 -22
  39. package/view/container.d.ts +0 -18
package/module.d.ts CHANGED
@@ -7,14 +7,12 @@ import * as i5 from "./components/text/void-text.component";
7
7
  import * as i6 from "./components/text/default-text.component";
8
8
  import * as i7 from "./components/string/string.component";
9
9
  import * as i8 from "./components/string/template.component";
10
- import * as i9 from "./components/children/children.component";
11
- import * as i10 from "./components/block-card/block-card.component";
12
- import * as i11 from "./components/leaves/leaves.component";
13
- import * as i12 from "./components/leaf/default-leaf.component";
14
- import * as i13 from "./components/string/default-string.component";
15
- import * as i14 from "./components/children/children-outlet.component";
10
+ import * as i9 from "./components/block-card/block-card.component";
11
+ import * as i10 from "./components/leaf/default-leaf.component";
12
+ import * as i11 from "./components/string/default-string.component";
13
+ import * as i12 from "./components/children/children-outlet.component";
16
14
  export declare class SlateModule {
17
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SlateModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<SlateModule, never, [typeof i1.CommonModule, typeof i2.SlateEditable, typeof i3.SlateDefaultElement, typeof i4.SlateElement, typeof i5.SlateVoidText, typeof i6.SlateDefaultText, typeof i7.SlateString, typeof i8.SlateStringTemplate, typeof i9.SlateChildren, typeof i10.SlateBlockCard, typeof i11.SlateLeaves, typeof i12.SlateDefaultLeaf, typeof i13.SlateDefaultString, typeof i14.SlateChildrenOutlet], [typeof i2.SlateEditable, typeof i9.SlateChildren, typeof i14.SlateChildrenOutlet, typeof i4.SlateElement, typeof i11.SlateLeaves, typeof i7.SlateString, typeof i13.SlateDefaultString]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SlateModule, never, [typeof i1.CommonModule, typeof i2.SlateEditable, typeof i3.SlateDefaultElement, typeof i4.SlateElement, typeof i5.SlateVoidText, typeof i6.SlateDefaultText, typeof i7.SlateString, typeof i8.SlateStringTemplate, typeof i9.SlateBlockCard, typeof i10.SlateDefaultLeaf, typeof i11.SlateDefaultString, typeof i12.SlateChildrenOutlet], [typeof i2.SlateEditable, typeof i12.SlateChildrenOutlet, typeof i4.SlateElement, typeof i7.SlateString, typeof i11.SlateDefaultString]>;
19
17
  static ɵinj: i0.ɵɵInjectorDeclaration<SlateModule>;
20
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slate-angular",
3
- "version": "17.1.3",
3
+ "version": "17.2.0",
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",
@@ -4,14 +4,15 @@ import { Injector } from '@angular/core';
4
4
  import { NodeEntry } from 'slate';
5
5
  import { SlateError } from '../types/error';
6
6
  import { Key } from '../utils/key';
7
+ import { OriginEvent } from '../types/clipboard';
7
8
  /**
8
9
  * An Angular and DOM-specific version of the `Editor` interface.
9
10
  */
10
11
  export interface AngularEditor extends BaseEditor {
11
12
  insertData: (data: DataTransfer) => void;
12
- insertFragmentData: (data: DataTransfer) => boolean;
13
- insertTextData: (data: DataTransfer) => boolean;
14
- setFragmentData: (data: DataTransfer, originEvent?: 'drag' | 'copy' | 'cut') => void;
13
+ insertFragmentData: (data: DataTransfer) => Promise<boolean>;
14
+ insertTextData: (data: DataTransfer) => Promise<boolean>;
15
+ setFragmentData: (data: DataTransfer, originEvent?: OriginEvent) => void;
15
16
  deleteCutData: () => void;
16
17
  onKeydown: (event: KeyboardEvent) => void;
17
18
  onClick: (event: MouseEvent) => void;
@@ -80,11 +81,11 @@ export declare const AngularEditor: {
80
81
  /**
81
82
  * Insert fragment data from a `DataTransfer` into the editor.
82
83
  */
83
- insertFragmentData(editor: AngularEditor, data: DataTransfer): boolean;
84
+ insertFragmentData(editor: AngularEditor, data: DataTransfer): Promise<boolean>;
84
85
  /**
85
86
  * Insert text data from a `DataTransfer` into the editor.
86
87
  */
87
- insertTextData(editor: AngularEditor, data: DataTransfer): boolean;
88
+ insertTextData(editor: AngularEditor, data: DataTransfer): Promise<boolean>;
88
89
  /**
89
90
  * onKeydown hook.
90
91
  */
@@ -96,7 +97,7 @@ export declare const AngularEditor: {
96
97
  /**
97
98
  * Sets data from the currently selected fragment on a `DataTransfer`.
98
99
  */
99
- setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: 'drag' | 'copy' | 'cut'): void;
100
+ setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: OriginEvent): void;
100
101
  deleteCutData(editor: AngularEditor): void;
101
102
  /**
102
103
  * Find the native DOM element from a Slate node.
package/public-api.d.ts CHANGED
@@ -4,9 +4,7 @@ export * from './components/editable/editable.component';
4
4
  export * from './components/element/element.component';
5
5
  export * from './components/string/string.component';
6
6
  export * from './components/string/default-string.component';
7
- export * from './components/children/children.component';
8
7
  export * from './components/children/children-outlet.component';
9
- export * from './components/leaves/leaves.component';
10
8
  export * from './module';
11
9
  export * from './types/error';
12
10
  export * from './view/base';
@@ -0,0 +1,8 @@
1
+ import { Element } from 'slate';
2
+ export interface ClipboardData {
3
+ files?: File[];
4
+ elements?: Element[];
5
+ text?: string;
6
+ html?: string;
7
+ }
8
+ export type OriginEvent = 'drag' | 'copy' | 'cut';
package/types/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './error';
2
2
  export * from './view';
3
3
  export * from './feature';
4
+ export * from './clipboard';
4
5
  export type SafeAny = any;
@@ -0,0 +1,12 @@
1
+ import { Element } from 'slate';
2
+ import { ClipboardData } from '../../types/clipboard';
3
+ export declare const buildHTMLText: (wrapper: HTMLElement, attach: HTMLElement, data: Element[]) => string;
4
+ export declare const getClipboardFromHTMLText: (html: string) => ClipboardData;
5
+ export declare const createClipboardData: (html: string, elements: Element[], text: string, files: File[]) => ClipboardData;
6
+ export declare const getClipboardData: (dataTransfer?: DataTransfer) => Promise<ClipboardData>;
7
+ /**
8
+ * @param wrapper get wrapper.innerHTML string which will be written in clipboard
9
+ * @param attach attach must be child element of wrapper which will be attached json data
10
+ * @returns void
11
+ */
12
+ export declare const setClipboardData: (clipboardData: ClipboardData, wrapper: HTMLElement, attach: HTMLElement, dataTransfer?: Pick<DataTransfer, 'getData' | 'setData'>) => Promise<void>;
@@ -0,0 +1,6 @@
1
+ export declare const isClipboardReadSupported: () => boolean;
2
+ export declare const isClipboardWriteSupported: () => boolean;
3
+ export declare const isClipboardWriteTextSupported: () => boolean;
4
+ export declare const isClipboardFile: (item: ClipboardItem) => string;
5
+ export declare const stripHtml: (html: string) => string;
6
+ export declare const blobAsString: (blob: Blob) => Promise<string>;
@@ -0,0 +1,5 @@
1
+ import { ClipboardData } from '../../types/clipboard';
2
+ export declare const setDataTransferClipboard: (dataTransfer: Pick<DataTransfer, 'getData' | 'setData'> | null, htmlText: string) => void;
3
+ export declare const setDataTransferClipboardText: (data: Pick<DataTransfer, 'getData' | 'setData'> | null, text: string) => void;
4
+ export declare const getDataTransferClipboard: (data: Pick<DataTransfer, 'getData' | 'setData'> | null) => ClipboardData;
5
+ export declare const getDataTransferClipboardText: (data: Pick<DataTransfer, 'getData' | 'setData'> | null) => ClipboardData;
@@ -0,0 +1,4 @@
1
+ export * from './clipboard';
2
+ export * from './data-transfer';
3
+ export * from './navigator-clipboard';
4
+ export * from './common';
@@ -0,0 +1,4 @@
1
+ import { Element } from 'slate';
2
+ import { ClipboardData } from '../../types/clipboard';
3
+ export declare const setNavigatorClipboard: (htmlText: string, data: Element[], text?: string) => Promise<void>;
4
+ export declare const getNavigatorClipboard: () => Promise<ClipboardData>;
package/utils/dom.d.ts CHANGED
@@ -70,9 +70,5 @@ export declare const getEditableChild: (parent: DOMElement, index: number, direc
70
70
  * The domNode must be attached to the DOM.
71
71
  */
72
72
  export declare const getPlainText: (domNode: DOMNode) => string;
73
- export declare const getSlateFragmentAttribute: (dataTransfer: DataTransfer) => string | void;
74
- /**
75
- * Get the x-slate-fragment attribute that exist in text/html data
76
- * and append it to the DataTransfer object
77
- */
78
- export declare const getClipboardData: (dataTransfer: DataTransfer, clipboardFormatKey?: string) => DataTransfer;
73
+ export declare const SlateFragmentAttributeKey = "data-slate-angular-fragment";
74
+ export declare const getSlateFragmentAttribute: (htmlData: string) => string | void;
package/utils/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './range-list';
8
8
  export * from './block-card';
9
9
  export * from './global-normalize';
10
10
  export * from './throttle';
11
+ export * from './clipboard';
@@ -1,11 +0,0 @@
1
- import { Descendant } from 'slate';
2
- import { SlateChildrenContext, SlateViewContext } from '../../view/context';
3
- import { ViewContainer } from '../../view/container';
4
- import * as i0 from "@angular/core";
5
- export declare class SlateChildren extends ViewContainer<any> {
6
- children: Descendant[];
7
- context: SlateChildrenContext;
8
- viewContext: SlateViewContext;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SlateChildren, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SlateChildren, "slate-children", never, { "children": { "alias": "children"; "required": false; }; "context": { "alias": "context"; "required": false; }; "viewContext": { "alias": "viewContext"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,12 +0,0 @@
1
- import { Text } from 'slate';
2
- import { SlateLeafContext, SlateTextContext } from '../../view/context';
3
- import { ViewContainer } from '../../view/container';
4
- import * as i0 from "@angular/core";
5
- export declare class SlateLeaves extends ViewContainer<any> {
6
- initialized: boolean;
7
- leafContexts: SlateLeafContext[];
8
- leaves: Text[];
9
- context: SlateTextContext;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SlateLeaves, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SlateLeaves, "slate-leaves", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
12
- }
@@ -1,23 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import { ViewContainer } from '../../view/container';
3
- import * as i0 from "@angular/core";
4
- export class SlateChildren extends ViewContainer {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SlateChildren, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: SlateChildren, isStandalone: true, selector: "slate-children", inputs: { children: "children", context: "context", viewContext: "viewContext" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7
- }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SlateChildren, decorators: [{
9
- type: Component,
10
- args: [{
11
- selector: 'slate-children',
12
- template: ``,
13
- changeDetection: ChangeDetectionStrategy.OnPush,
14
- standalone: true
15
- }]
16
- }], propDecorators: { children: [{
17
- type: Input
18
- }], context: [{
19
- type: Input
20
- }], viewContext: [{
21
- type: Input
22
- }] } });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpbGRyZW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2NvbXBvbmVudHMvY2hpbGRyZW4vY2hpbGRyZW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzFFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7QUFTckQsTUFBTSxPQUFPLGFBQWMsU0FBUSxhQUFrQjs4R0FBeEMsYUFBYTtrR0FBYixhQUFhLG1MQUpaLEVBQUU7OzJGQUlILGFBQWE7a0JBTnpCLFNBQVM7bUJBQUM7b0JBQ1AsUUFBUSxFQUFFLGdCQUFnQjtvQkFDMUIsUUFBUSxFQUFFLEVBQUU7b0JBQ1osZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07b0JBQy9DLFVBQVUsRUFBRSxJQUFJO2lCQUNuQjs4QkFFWSxRQUFRO3NCQUFoQixLQUFLO2dCQUVHLE9BQU87c0JBQWYsS0FBSztnQkFFRyxXQUFXO3NCQUFuQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgSW5wdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IERlc2NlbmRhbnQgfSBmcm9tICdzbGF0ZSc7XG5pbXBvcnQgeyBTbGF0ZUNoaWxkcmVuQ29udGV4dCwgU2xhdGVWaWV3Q29udGV4dCB9IGZyb20gJy4uLy4uL3ZpZXcvY29udGV4dCc7XG5pbXBvcnQgeyBWaWV3Q29udGFpbmVyIH0gZnJvbSAnLi4vLi4vdmlldy9jb250YWluZXInO1xuaW1wb3J0IHsgTmdGb3IgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ3NsYXRlLWNoaWxkcmVuJyxcbiAgICB0ZW1wbGF0ZTogYGAsXG4gICAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gICAgc3RhbmRhbG9uZTogdHJ1ZVxufSlcbmV4cG9ydCBjbGFzcyBTbGF0ZUNoaWxkcmVuIGV4dGVuZHMgVmlld0NvbnRhaW5lcjxhbnk+IHtcbiAgICBASW5wdXQoKSBjaGlsZHJlbjogRGVzY2VuZGFudFtdO1xuXG4gICAgQElucHV0KCkgY29udGV4dDogU2xhdGVDaGlsZHJlbkNvbnRleHQ7XG5cbiAgICBASW5wdXQoKSB2aWV3Q29udGV4dDogU2xhdGVWaWV3Q29udGV4dDtcbn1cbiJdfQ==
@@ -1,25 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import { ViewContainer } from '../../view/container';
3
- import { NgFor } from '@angular/common';
4
- import * as i0 from "@angular/core";
5
- export class SlateLeaves extends ViewContainer {
6
- constructor() {
7
- super(...arguments);
8
- this.initialized = false;
9
- }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SlateLeaves, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: SlateLeaves, isStandalone: true, selector: "slate-leaves", inputs: { context: "context" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SlateLeaves, decorators: [{
14
- type: Component,
15
- args: [{
16
- selector: 'slate-leaves',
17
- template: ``,
18
- changeDetection: ChangeDetectionStrategy.OnPush,
19
- standalone: true,
20
- imports: [NgFor]
21
- }]
22
- }], propDecorators: { context: [{
23
- type: Input
24
- }] } });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVhdmVzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9jb21wb25lbnRzL2xlYXZlcy9sZWF2ZXMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFNUixNQUFNLGVBQWUsQ0FBQztBQUd2QixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDckQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQVN4QyxNQUFNLE9BQU8sV0FBWSxTQUFRLGFBQWtCO0lBUG5E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uZTogdHJ1ZSxcbiAgICBpbXBvcnRzOiBbTmdGb3JdXG59KVxuZXhwb3J0IGNsYXNzIFNsYXRlTGVhdmVzIGV4dGVuZHMgVmlld0NvbnRhaW5lcjxhbnk+IHtcbiAgICBpbml0aWFsaXplZCA9IGZhbHNlO1xuICAgIGxlYWZDb250ZXh0czogU2xhdGVMZWFmQ29udGV4dFtdO1xuICAgIGxlYXZlczogVGV4dFtdO1xuXG4gICAgQElucHV0KCkgY29udGV4dDogU2xhdGVUZXh0Q29udGV4dDtcbn1cbiJdfQ==
@@ -1,22 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated
5
- * the special container for angular template
6
- * Add the rootNodes of each child component to the parentElement
7
- * Remove useless DOM elements, eg: comment...
8
- */
9
- export class ViewContainer {
10
- constructor(elementRef, differs) {
11
- this.elementRef = elementRef;
12
- this.differs = differs;
13
- }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ViewContainer, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
15
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.4", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 }); }
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ViewContainer, decorators: [{
18
- type: Directive
19
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }], propDecorators: { viewContext: [{
20
- type: Input
21
- }] } });
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGFpbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcGFja2FnZXMvc3JjL3ZpZXcvY29udGFpbmVyLnRzIl0sIm5hbWVzIj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jdG9yKFxuICAgICAgICBwcm90ZWN0ZWQgZWxlbWVudFJlZjogRWxlbWVudFJlZjxhbnk+LFxuICAgICAgICBwcm90ZWN0ZWQgZGlmZmVyczogSXRlcmFibGVEaWZmZXJzXG4gICAgKSB7fVxufVxuIl19
@@ -1,18 +0,0 @@
1
- import { ElementRef, IterableDiffers } from '@angular/core';
2
- import { SlateViewContext } from './context';
3
- import { ViewContainerItem } from './container-item';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @deprecated
7
- * the special container for angular template
8
- * Add the rootNodes of each child component to the parentElement
9
- * Remove useless DOM elements, eg: comment...
10
- */
11
- export declare abstract class ViewContainer<T extends ViewContainerItem> {
12
- protected elementRef: ElementRef<any>;
13
- protected differs: IterableDiffers;
14
- viewContext: SlateViewContext;
15
- constructor(elementRef: ElementRef<any>, differs: IterableDiffers);
16
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewContainer<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<ViewContainer<any>, never, never, { "viewContext": { "alias": "viewContext"; "required": false; }; }, {}, never, never, false, never>;
18
- }