slate-angular 17.2.0 → 17.2.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/children/children.component.d.ts +11 -0
- package/components/leaves/leaves.component.d.ts +12 -0
- package/esm2022/components/children/children.component.mjs +23 -0
- package/esm2022/components/editable/editable.component.mjs +3 -2
- package/esm2022/components/element/default-element.component.mjs +4 -2
- package/esm2022/components/element/element.component.mjs +4 -2
- package/esm2022/components/leaves/leaves.component.mjs +25 -0
- package/esm2022/components/text/default-text.component.mjs +4 -2
- package/esm2022/components/text/void-text.component.mjs +4 -2
- package/esm2022/module.mjs +9 -3
- package/esm2022/public-api.mjs +3 -1
- package/esm2022/view/container.mjs +22 -0
- package/fesm2022/slate-angular.mjs +79 -10
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/module.d.ts +7 -5
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/view/container.d.ts +18 -0
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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: [{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