slate-angular 16.0.0 → 16.1.0-next
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/block-card/block-card.component.d.ts +3 -3
- package/components/children/children.component.d.ts +5 -5
- package/components/descendant/descendant.component.d.ts +3 -3
- package/components/editable/editable.component.d.ts +5 -5
- package/components/element/default-element.component.d.ts +3 -3
- package/components/element/element.component.d.ts +3 -3
- package/components/leaf/default-leaf.component.d.ts +3 -3
- package/components/leaf/leaf.component.d.ts +3 -3
- package/components/leaves/leaves.component.d.ts +5 -5
- package/components/string/default-string.component.d.ts +3 -3
- package/components/string/string.component.d.ts +5 -5
- package/components/string/template.component.d.ts +3 -3
- package/components/text/default-text.component.d.ts +3 -3
- package/components/text/void-text.component.d.ts +3 -3
- package/esm2022/components/block-card/block-card.component.mjs +6 -6
- package/esm2022/components/children/children.component.mjs +12 -11
- package/esm2022/components/descendant/descendant.component.mjs +13 -12
- package/esm2022/components/editable/editable.component.mjs +13 -13
- package/esm2022/components/element/default-element.component.mjs +9 -7
- package/esm2022/components/element/element.component.mjs +9 -7
- package/esm2022/components/leaf/default-leaf.component.mjs +9 -7
- package/esm2022/components/leaf/leaf.component.mjs +9 -8
- package/esm2022/components/leaves/leaves.component.mjs +12 -11
- package/esm2022/components/string/default-string.component.mjs +7 -6
- package/esm2022/components/string/string.component.mjs +10 -9
- package/esm2022/components/string/template.component.mjs +6 -6
- package/esm2022/components/text/default-text.component.mjs +9 -7
- package/esm2022/components/text/void-text.component.mjs +9 -7
- package/esm2022/module.mjs +59 -58
- package/esm2022/view/container-item.mjs +1 -1
- package/esm2022/view/context.mjs +1 -1
- package/fesm2022/slate-angular.mjs +162 -144
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/module.d.ts +16 -16
- package/package.json +8 -3
- package/view/container-item.d.ts +2 -2
- package/view/context.d.ts +2 -2
package/module.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "./components/
|
|
4
|
-
import * as i3 from "./components/element/element.component";
|
|
5
|
-
import * as i4 from "./components/
|
|
6
|
-
import * as i5 from "./components/text/
|
|
7
|
-
import * as i6 from "./components/
|
|
8
|
-
import * as i7 from "./components/string/
|
|
9
|
-
import * as i8 from "./components/
|
|
10
|
-
import * as i9 from "./components/
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/
|
|
14
|
-
import * as i13 from "./components/
|
|
15
|
-
import * as i14 from "./components/
|
|
16
|
-
import * as i15 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./components/editable/editable.component";
|
|
4
|
+
import * as i3 from "./components/element/default-element.component";
|
|
5
|
+
import * as i4 from "./components/element/element.component";
|
|
6
|
+
import * as i5 from "./components/text/void-text.component";
|
|
7
|
+
import * as i6 from "./components/text/default-text.component";
|
|
8
|
+
import * as i7 from "./components/string/string.component";
|
|
9
|
+
import * as i8 from "./components/string/template.component";
|
|
10
|
+
import * as i9 from "./components/descendant/descendant.component";
|
|
11
|
+
import * as i10 from "./components/children/children.component";
|
|
12
|
+
import * as i11 from "./components/block-card/block-card.component";
|
|
13
|
+
import * as i12 from "./components/leaf/leaf.component";
|
|
14
|
+
import * as i13 from "./components/leaves/leaves.component";
|
|
15
|
+
import * as i14 from "./components/leaf/default-leaf.component";
|
|
16
|
+
import * as i15 from "./components/string/default-string.component";
|
|
17
17
|
export declare class SlateModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SlateModule, [typeof i1.
|
|
19
|
+
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.SlateDescendant, typeof i10.SlateChildren, typeof i11.SlateBlockCard, typeof i12.SlateLeaf, typeof i13.SlateLeaves, typeof i14.SlateDefaultLeaf, typeof i15.SlateDefaultString], [typeof i2.SlateEditable, typeof i10.SlateChildren, typeof i4.SlateElement, typeof i13.SlateLeaves, typeof i7.SlateString, typeof i15.SlateDefaultString]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<SlateModule>;
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slate-angular",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.1.0-next",
|
|
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",
|
|
@@ -9,11 +9,16 @@
|
|
|
9
9
|
"slate": ">= 0.63.0",
|
|
10
10
|
"slate-history": "^0.66.0",
|
|
11
11
|
"debug": "^4.1.1",
|
|
12
|
-
"direction": "^
|
|
13
|
-
"is-hotkey": "^0.
|
|
12
|
+
"direction": "^2.0.1",
|
|
13
|
+
"is-hotkey": "^0.2.0",
|
|
14
14
|
"scroll-into-view-if-needed": "^2.2.20"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"slate": "^0.72.8",
|
|
18
|
+
"slate-history": "^0.66.0",
|
|
19
|
+
"direction": "^2.0.1",
|
|
20
|
+
"is-hotkey": "^0.2.0",
|
|
21
|
+
"scroll-into-view-if-needed": "^2.2.20",
|
|
17
22
|
"tslib": "^2.5.0"
|
|
18
23
|
},
|
|
19
24
|
"exports": {
|
package/view/container-item.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentRef, EmbeddedViewRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SlateBlockCard } from '../components/block-card/block-card.component';
|
|
3
3
|
import { ViewType } from '../types/view';
|
|
4
4
|
import { BaseComponent, BaseEmbeddedView } from './base';
|
|
5
5
|
import { SlateElementContext, SlateLeafContext, SlateStringContext, SlateTextContext, SlateViewContext } from './context';
|
|
@@ -14,7 +14,7 @@ export declare abstract class ViewContainerItem<T = SlateElementContext | SlateT
|
|
|
14
14
|
initialized: boolean;
|
|
15
15
|
embeddedViewRef: EmbeddedViewRef<BaseEmbeddedView<T>>;
|
|
16
16
|
embeddedViewContext: BaseEmbeddedView<T>;
|
|
17
|
-
blockCardComponentRef: ComponentRef<
|
|
17
|
+
blockCardComponentRef: ComponentRef<SlateBlockCard>;
|
|
18
18
|
componentRef: ComponentRef<K>;
|
|
19
19
|
viewType: ViewType;
|
|
20
20
|
viewContext: SlateViewContext;
|
package/view/context.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NodeEntry, Range, Element, Ancestor, Text } from 'slate';
|
|
2
|
-
import {
|
|
2
|
+
import { SlateStringTemplate } from '../components/string/template.component';
|
|
3
3
|
import { AngularEditor } from '../plugins/angular-editor';
|
|
4
4
|
import { ViewType } from '../types/view';
|
|
5
5
|
export interface SlateViewContext<T extends AngularEditor = AngularEditor> {
|
|
6
6
|
editor: T;
|
|
7
|
-
templateComponent:
|
|
7
|
+
templateComponent: SlateStringTemplate;
|
|
8
8
|
trackBy: (element: Element) => any;
|
|
9
9
|
renderElement?: (element: Element) => ViewType;
|
|
10
10
|
renderLeaf?: (text: Text) => ViewType;
|