@worktile/theia 19.0.6 → 19.1.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/constants/node-types.d.ts +6 -0
- package/custom-types.d.ts +10 -6
- package/fesm2022/worktile-theia.mjs +106 -4
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +1 -0
- package/package.json +1 -1
- package/plugins/heading/heading.component.d.ts +10 -0
- package/plugins/heading/utils.d.ts +6 -0
- package/styles/editor.scss +4 -0
|
@@ -25,6 +25,12 @@ export declare enum ElementKinds {
|
|
|
25
25
|
inlineCode = "inline-code",
|
|
26
26
|
indent = "indent"
|
|
27
27
|
}
|
|
28
|
+
export declare const HeaderLevelMap: {
|
|
29
|
+
"heading-one": number;
|
|
30
|
+
"heading-two": number;
|
|
31
|
+
"heading-three": number;
|
|
32
|
+
"heading-four": number;
|
|
33
|
+
};
|
|
28
34
|
export declare enum Alignment {
|
|
29
35
|
left = "left",
|
|
30
36
|
center = "center",
|
package/custom-types.d.ts
CHANGED
|
@@ -40,22 +40,26 @@ export interface TodoItemElement extends TheElement {
|
|
|
40
40
|
type: ElementKinds.checkItem;
|
|
41
41
|
checked: boolean;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
43
|
+
export interface HeadingElement extends TheElement {
|
|
44
|
+
type: ElementKinds.heading_1 | ElementKinds.heading_2 | ElementKinds.heading_3 | ElementKinds.heading_4 | ElementKinds.heading_5 | ElementKinds.heading_6;
|
|
45
|
+
isCollapsed?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface HeadingOneElement extends HeadingElement {
|
|
44
48
|
type: ElementKinds.heading_1;
|
|
45
49
|
}
|
|
46
|
-
export interface HeadingTwoElement extends
|
|
50
|
+
export interface HeadingTwoElement extends HeadingElement {
|
|
47
51
|
type: ElementKinds.heading_2;
|
|
48
52
|
}
|
|
49
|
-
export interface HeadingThreeElement extends
|
|
53
|
+
export interface HeadingThreeElement extends HeadingElement {
|
|
50
54
|
type: ElementKinds.heading_3;
|
|
51
55
|
}
|
|
52
|
-
export interface HeadingFourElement extends
|
|
56
|
+
export interface HeadingFourElement extends HeadingElement {
|
|
53
57
|
type: ElementKinds.heading_4;
|
|
54
58
|
}
|
|
55
|
-
export interface HeadingFiveElement extends
|
|
59
|
+
export interface HeadingFiveElement extends HeadingElement {
|
|
56
60
|
type: ElementKinds.heading_5;
|
|
57
61
|
}
|
|
58
|
-
export interface HeadingSixElement extends
|
|
62
|
+
export interface HeadingSixElement extends HeadingElement {
|
|
59
63
|
type: ElementKinds.heading_6;
|
|
60
64
|
}
|
|
61
65
|
export interface ImageElement extends TheElement {
|
|
@@ -89,6 +89,12 @@ var ElementKinds;
|
|
|
89
89
|
ElementKinds["inlineCode"] = "inline-code";
|
|
90
90
|
ElementKinds["indent"] = "indent";
|
|
91
91
|
})(ElementKinds || (ElementKinds = {}));
|
|
92
|
+
const HeaderLevelMap = {
|
|
93
|
+
[ElementKinds.heading_1]: 0,
|
|
94
|
+
[ElementKinds.heading_2]: 1,
|
|
95
|
+
[ElementKinds.heading_3]: 2,
|
|
96
|
+
[ElementKinds.heading_4]: 3
|
|
97
|
+
};
|
|
92
98
|
var Alignment;
|
|
93
99
|
(function (Alignment) {
|
|
94
100
|
Alignment["left"] = "left";
|
|
@@ -1925,6 +1931,12 @@ class TheBaseElement extends BaseElementComponent {
|
|
|
1925
1931
|
super.ngOnInit();
|
|
1926
1932
|
const blockClass = this.editor.isInline(this.element) ? 'slate-inline-block' : 'slate-block';
|
|
1927
1933
|
this.nativeElement.classList.add(`slate-element-${this.element.type}`, blockClass);
|
|
1934
|
+
if (this.editor) {
|
|
1935
|
+
const isVisible = this.editor.isVisible(this.element);
|
|
1936
|
+
if (!isVisible) {
|
|
1937
|
+
this.nativeElement.classList.add('slate-block-hidden');
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1928
1940
|
}
|
|
1929
1941
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TheBaseElement, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1930
1942
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: TheBaseElement, isStandalone: true, selector: "TheBaseElement", usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
@@ -3378,6 +3390,9 @@ const withTheia = (editor, plugins = []) => {
|
|
|
3378
3390
|
e.isContainer = (value) => false;
|
|
3379
3391
|
e.globalMousedown = (event) => null;
|
|
3380
3392
|
e.mousedown = (event) => { };
|
|
3393
|
+
e.isVisible = (element) => {
|
|
3394
|
+
return true;
|
|
3395
|
+
};
|
|
3381
3396
|
e.extraElementOptions = [];
|
|
3382
3397
|
e.disabled = false;
|
|
3383
3398
|
e.plugins = [];
|
|
@@ -8102,6 +8117,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
8102
8117
|
type: Injectable
|
|
8103
8118
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
8104
8119
|
|
|
8120
|
+
function isHeadingElement(element) {
|
|
8121
|
+
return HEADING_TYPES.includes(element.type);
|
|
8122
|
+
}
|
|
8123
|
+
function isStandardHeadingElement(element) {
|
|
8124
|
+
return isHeadingElement(element) && HeaderLevelMap[element.type] !== undefined;
|
|
8125
|
+
}
|
|
8126
|
+
function getFollowElements(editor, element) {
|
|
8127
|
+
const index = editor.children.indexOf(element);
|
|
8128
|
+
const currentLevel = HeaderLevelMap[element.type];
|
|
8129
|
+
const result = [];
|
|
8130
|
+
for (let i = index + 1; i < editor.children.length; i++) {
|
|
8131
|
+
const targetElement = editor.children[i];
|
|
8132
|
+
if (isStandardHeadingElement(targetElement) && HeaderLevelMap[targetElement.type] <= currentLevel) {
|
|
8133
|
+
return result;
|
|
8134
|
+
}
|
|
8135
|
+
else {
|
|
8136
|
+
result.push(targetElement);
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8139
|
+
return result;
|
|
8140
|
+
}
|
|
8141
|
+
|
|
8142
|
+
class TheHeadingElement extends TheBaseElement {
|
|
8143
|
+
constructor() {
|
|
8144
|
+
super(...arguments);
|
|
8145
|
+
this.beforeContextChange = (value) => {
|
|
8146
|
+
const isHeading = isStandardHeadingElement(value.element);
|
|
8147
|
+
if (isHeading && this.element && value.element !== this.element) {
|
|
8148
|
+
if (value.element.isCollapsed !== this.element.isCollapsed) {
|
|
8149
|
+
const followElements = getFollowElements(this.editor, value.element);
|
|
8150
|
+
followElements.forEach(el => {
|
|
8151
|
+
const isVisible = this.editor.isVisible(el);
|
|
8152
|
+
const targetDom = AngularEditor.toDOMNode(this.editor, el);
|
|
8153
|
+
if (isVisible) {
|
|
8154
|
+
targetDom.classList.remove('slate-block-hidden');
|
|
8155
|
+
}
|
|
8156
|
+
else {
|
|
8157
|
+
targetDom.classList.add('slate-block-hidden');
|
|
8158
|
+
}
|
|
8159
|
+
});
|
|
8160
|
+
}
|
|
8161
|
+
}
|
|
8162
|
+
};
|
|
8163
|
+
}
|
|
8164
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TheHeadingElement, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8165
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: TheHeadingElement, isStandalone: true, selector: "[theHeadingElement]", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8166
|
+
}
|
|
8167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TheHeadingElement, decorators: [{
|
|
8168
|
+
type: Component,
|
|
8169
|
+
args: [{
|
|
8170
|
+
selector: '[theHeadingElement]',
|
|
8171
|
+
template: '',
|
|
8172
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8173
|
+
standalone: true
|
|
8174
|
+
}]
|
|
8175
|
+
}] });
|
|
8176
|
+
|
|
8105
8177
|
class TheTemplate {
|
|
8106
8178
|
constructor() {
|
|
8107
8179
|
this.renderElement = (element) => {
|
|
@@ -8130,11 +8202,11 @@ class TheTemplate {
|
|
|
8130
8202
|
};
|
|
8131
8203
|
}
|
|
8132
8204
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TheTemplate, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8133
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: TheTemplate, isStandalone: true, selector: "the-template,[theTemplate]", viewQueries: [{ propertyName: "paragraphTemplate", first: true, predicate: ["paragraph"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingOneTemplate", first: true, predicate: ["headingOne"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingTwoTemplate", first: true, predicate: ["headingTwo"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingThreeTemplate", first: true, predicate: ["headingThree"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingFourTemplate", first: true, predicate: ["headingFour"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingFiveTemplate", first: true, predicate: ["headingFive"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingSixTemplate", first: true, predicate: ["headingSix"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #paragraph let-context=\"context\" let-viewContext=\"viewContext\">\n <div theDefaultElement [context]=\"context\" [viewContext]=\"viewContext\" [ngStyle]=\"context.element | elementStyle\"></div>\n</ng-template>\n<ng-template #headingOne let-context=\"context\" let-viewContext=\"viewContext\">\n <h1\n
|
|
8205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: TheTemplate, isStandalone: true, selector: "the-template,[theTemplate]", viewQueries: [{ propertyName: "paragraphTemplate", first: true, predicate: ["paragraph"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingOneTemplate", first: true, predicate: ["headingOne"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingTwoTemplate", first: true, predicate: ["headingTwo"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingThreeTemplate", first: true, predicate: ["headingThree"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingFourTemplate", first: true, predicate: ["headingFour"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingFiveTemplate", first: true, predicate: ["headingFive"], descendants: true, read: TemplateRef, static: true }, { propertyName: "headingSixTemplate", first: true, predicate: ["headingSix"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #paragraph let-context=\"context\" let-viewContext=\"viewContext\">\n <div theDefaultElement [context]=\"context\" [viewContext]=\"viewContext\" [ngStyle]=\"context.element | elementStyle\"></div>\n</ng-template>\n<ng-template #headingOne let-context=\"context\" let-viewContext=\"viewContext\">\n <h1\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h1>\n</ng-template>\n<ng-template #headingTwo let-context=\"context\" let-viewContext=\"viewContext\">\n <h2\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h2>\n</ng-template>\n<ng-template #headingThree let-context=\"context\" let-viewContext=\"viewContext\">\n <h3\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h3>\n</ng-template>\n<ng-template #headingFour let-context=\"context\" let-viewContext=\"viewContext\">\n <h4\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h4>\n</ng-template>\n<ng-template #headingFive let-context=\"context\" let-viewContext=\"viewContext\">\n <h5\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h5>\n</ng-template>\n<ng-template #headingSix let-context=\"context\" let-viewContext=\"viewContext\">\n <h6\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h6>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: ElementStylePipe, name: "elementStyle" }, { kind: "component", type: TheDefaultElement, selector: "[theDefaultElement]" }, { kind: "component", type: TheHeadingElement, selector: "[theHeadingElement]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8134
8206
|
}
|
|
8135
8207
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TheTemplate, decorators: [{
|
|
8136
8208
|
type: Component,
|
|
8137
|
-
args: [{ selector: 'the-template,[theTemplate]', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgStyle, ElementStylePipe, TheDefaultElement], template: "<ng-template #paragraph let-context=\"context\" let-viewContext=\"viewContext\">\n <div theDefaultElement [context]=\"context\" [viewContext]=\"viewContext\" [ngStyle]=\"context.element | elementStyle\"></div>\n</ng-template>\n<ng-template #headingOne let-context=\"context\" let-viewContext=\"viewContext\">\n <h1\n
|
|
8209
|
+
args: [{ selector: 'the-template,[theTemplate]', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgStyle, ElementStylePipe, TheDefaultElement, TheHeadingElement], template: "<ng-template #paragraph let-context=\"context\" let-viewContext=\"viewContext\">\n <div theDefaultElement [context]=\"context\" [viewContext]=\"viewContext\" [ngStyle]=\"context.element | elementStyle\"></div>\n</ng-template>\n<ng-template #headingOne let-context=\"context\" let-viewContext=\"viewContext\">\n <h1\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h1>\n</ng-template>\n<ng-template #headingTwo let-context=\"context\" let-viewContext=\"viewContext\">\n <h2\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h2>\n</ng-template>\n<ng-template #headingThree let-context=\"context\" let-viewContext=\"viewContext\">\n <h3\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h3>\n</ng-template>\n<ng-template #headingFour let-context=\"context\" let-viewContext=\"viewContext\">\n <h4\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h4>\n</ng-template>\n<ng-template #headingFive let-context=\"context\" let-viewContext=\"viewContext\">\n <h5\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h5>\n</ng-template>\n<ng-template #headingSix let-context=\"context\" let-viewContext=\"viewContext\">\n <h6\n theHeadingElement\n [context]=\"context\"\n [viewContext]=\"viewContext\"\n [attr.id]=\"context.element.key\"\n [ngStyle]=\"context.element | elementStyle\"\n ></h6>\n</ng-template>\n" }]
|
|
8138
8210
|
}], propDecorators: { paragraphTemplate: [{
|
|
8139
8211
|
type: ViewChild,
|
|
8140
8212
|
args: ['paragraph', { read: TemplateRef, static: true }]
|
|
@@ -10666,7 +10738,7 @@ const createFontSizePlugin = (locale) => createPluginFactory({
|
|
|
10666
10738
|
})();
|
|
10667
10739
|
|
|
10668
10740
|
const withHeading = (editor) => {
|
|
10669
|
-
const { insertBreak } = editor;
|
|
10741
|
+
const { insertBreak, isVisible } = editor;
|
|
10670
10742
|
editor.insertBreak = () => {
|
|
10671
10743
|
const { selection } = editor;
|
|
10672
10744
|
const anchorBlock = getAnchorBlockEntry(editor);
|
|
@@ -10686,6 +10758,36 @@ const withHeading = (editor) => {
|
|
|
10686
10758
|
}
|
|
10687
10759
|
insertBreak();
|
|
10688
10760
|
};
|
|
10761
|
+
editor.isVisible = (node) => {
|
|
10762
|
+
const index = editor.children.indexOf(node);
|
|
10763
|
+
if (index !== -1) {
|
|
10764
|
+
const headingLevel = HeaderLevelMap[node.type];
|
|
10765
|
+
// 如果本身是一级标题,则不折叠
|
|
10766
|
+
if (headingLevel === HeaderLevelMap[ElementKinds.heading_1]) {
|
|
10767
|
+
return true;
|
|
10768
|
+
}
|
|
10769
|
+
// 如果本身是二级标题,只可能被一级标题影响
|
|
10770
|
+
const minHeadingLevel = headingLevel !== undefined ? headingLevel - 1 : HeaderLevelMap[ElementKinds.heading_4];
|
|
10771
|
+
for (let i = index - 1; i >= 0; i--) {
|
|
10772
|
+
const element = editor.children[i];
|
|
10773
|
+
if (isHeadingElement(element)) {
|
|
10774
|
+
const elementHeadingLevel = HeaderLevelMap[element.type];
|
|
10775
|
+
if (elementHeadingLevel <= minHeadingLevel) {
|
|
10776
|
+
// 遇到一级标题直接退出,无论是否折叠
|
|
10777
|
+
// 其余情况如果是折叠标题,可以直接返回结果,否则需要继续向上查找
|
|
10778
|
+
if (element.type === ElementKinds.heading_1) {
|
|
10779
|
+
return !element.isCollapsed;
|
|
10780
|
+
}
|
|
10781
|
+
else if (element.isCollapsed) {
|
|
10782
|
+
return false;
|
|
10783
|
+
}
|
|
10784
|
+
}
|
|
10785
|
+
}
|
|
10786
|
+
}
|
|
10787
|
+
return true;
|
|
10788
|
+
}
|
|
10789
|
+
return isVisible(node);
|
|
10790
|
+
};
|
|
10689
10791
|
return editor;
|
|
10690
10792
|
};
|
|
10691
10793
|
const headingListPlugins = HeadingEditor.headingPlugins();
|
|
@@ -18066,5 +18168,5 @@ const withTestPlugin = (plugins, initValue) => {
|
|
|
18066
18168
|
* Generated bundle index. Do not edit.
|
|
18067
18169
|
*/
|
|
18068
18170
|
|
|
18069
|
-
export { ALIGN_BLOCK_TYPES, A_TAG_REL_ATTR, AlignEditor, Alignment, BLOCK_DELETE_BACKWARD_TYPES, BasicTest, BlockquoteEditor, CLIPBOARD_FORMAT_KEY, CODEMIRROR_PADDING_TOP, CODE_MODES, CONTAINER_BLOCKS, CONTROL_KEY, CodeEditor, ColorEditor, ColumnResizeNotifierSource, ColumnResizingStore, DEFAULT_LANGUAGE, DEFAULT_SCROLL_CONTAINER, DISABLED_OPERATE_TYPES, DataTransferFaker, DefaultElementOptions, DefaultGlobalToolbarDefinition, DefaultInlineToolbarDefinition, DropdownMode, ELEMENT_UNIQUE_ID, EditorPresetConfigFactoryMock, ElementKinds, ErrorCodes, FontSizeTypes, FontSizes, HEADING_TYPES, HeadingEditor, HoveredCellInfo, HrEditor, IS_MAC, ImageEditor, IndentEditor, Indents, InlineCodeEditor, LINK_DEFAULT_TEXT, LIST_BLOCK_TYPES, LOWEST_TEXT_CONTAINER_TYPES, LayoutTypes, LinkEditor, ListEditor, MarkEditor, MarkProps, MarkTypes, MentionEditor, PICTURE_ACCEPTED_UPLOAD_MIME, PICTURE_ACCEPTED_UPLOAD_SIZE, PluginKeys, PluginMenuIcons, PluginMenuSvgs, Position, QUICK_INSERT_HOTKEY, QuickInsertEditor, ResizeRef, SLA_TABLE_CELL_SELECTOR, SLA_TABLE_SELECTOR, STANDARD_HEADING_TYPES, ScrollDirection, SpecialBackgroundColor, TAB_SPACE, THE_EDITOR_BG_COLOR, THE_EDITOR_COLOR, THE_EDITOR_CONVERSION_HINT_REF, THE_EDITOR_ORIGIN_ANCHOR, THE_EDITOR_POPOVER_REF, THE_EDITOR_PREVIOUS_SELECTION, THE_EDITOR_UUID, THE_I18N_DE_DE, THE_I18N_EN_US, THE_I18N_JA_JP, THE_I18N_LOCALE_ID, THE_I18N_RU_RU, THE_I18N_ZH_HANS, THE_I18N_ZH_HANT, THE_IMAGE_SERVICE_TOKEN, THE_LISTBOX_PARENT_GROUP_TOKEN, THE_LISTBOX_PARENT_OPTION_TOKEN, THE_LISTBOX_TOKEN, THE_MODE_PROVIDER, THE_MODE_TOKEN, THE_PLUGIN_MENU_REF, THE_PRESET_CONFIG_TOKEN, TableCellEventDispatcher, TableEditor, TableHeaderBackgroundColor, TablePosition, TheBaseElement, TheBaseSuggestion, TheBaseToolbarDropdown, TheBaseToolbarItem, TheColumnResizeDirective, TheColumnResizeOverlayHandle, TheContextMenu, TheContextService, TheConversionHint, TheDataMode, TheDefaultElement, TheEditor, TheEditorComponent, TheEditorModule, TheI18nService, TheImage, TheInlineToolbar, TheListboxDirective, TheListboxGroupDirective, TheListboxOptionDirective, TheLocaleType, TheMode, TheModeConfig, ThePluginMenu, ThePluginMenuComponent, ThePluginMenuItemType, ThePreventDefaultDirective, index$1 as TheQueries, TheQuickInsert, TheTableSelect, TheTemplate, TheText, TheToolbarComponent, TheToolbarDropdown, TheToolbarGroup, TheToolbarGroupToken, TheToolbarItem, TheToolbarService, index as TheTransforms, TodoItemEditor, ToolbarActionTypes, ToolbarAlignment, ToolbarItemType, ToolbarMoreGroup, VOID_BLOCK_TYPES, VerticalAlignEditor, VerticalAlignment, ZERO_WIDTH_CHAR, autoFocus, base64toBlob, bottomLeftPosition, buildPluginMenu, buildPluginMenuItemMap, buildQuickInsertMenus, calcPrintColumnWidth, calcSpanForColumn, calcSpanForRow, calculateHeaderRowHeight, calculateRowControls, coercePixelsFromCssValue, combinePlugins, copyNode, createCell, createEmptyContent, createEmptyParagraph, createMentionPlugin, createPluginFactory, createRow, createTable, createTablePosition, createTest1Plugin, createTestPlugin, createToolbar, createVerticalAlignPlugin, customPluginMock, customPluginMockKey, dataDeserialize, dataSerializing, deDeLocale, deleteElementKey, enUsLocale, errorImageUrlMock, extractFragment, filterTextFormat, fixBlockWithoutParagraph, fixBlockWithoutText, flattenDeepPlugins, getCellPositionsFromRange, getColsTotalWidth, getColumnsWidth, getDirtyElements, getEditorScrollContainer, getEditorUUID, getElementClassByPrefix, getElementHeight, getElementWidth, getEndBlock, getGridColumns, getMode, getNextCell, getOriginCell, getPlugin, getPluginOptions, getPlugins, getRowsTotalHeight, getSelectCellNode, getSelectedCellPositions, getStartBlock, getTableByCell, getTableByRow, getTheDefaultPluginMenu, getToolbarClass, hasHeaderRow, headingOptions, htmlToTheia, idCreator, inValidTypes, initializeDefaultMenuIcons, injectTranslations, insertDataByInvalidType, internalPlugins, isCleanEmptyParagraph, isColorIndicator, isColorInput, isColorPanel, isDirectionKeydown, isInside, isMobileMode, isPrintMode, isPureEmptyParagraph, isRangeInTable, isRectangularInTableCells, isSelectedAllCell, isSelectionInTable, isUrl, isVirtualKey, jaJpLocale, matchOptions, mergeArray, mergeDeepPlugins, mergeElementOptions, mergeOptions, nestedStructureByKey, normalizeValue, originOptions, plainToTheia, pluginKey, pluginKey1, pluginsByKey, reSelection, recursionNodes, refocus, ruRuLocale, scrollIntoView, setClipboardDataByDom, setEditorUUID, theTethysIconRegistryFaker, topLeftPosition, uniqueCellPosition, updatePopoverPosition, useElementStyle, withMention, withTestPlugin, withTheia, zhHansLocale, zhHantLocale };
|
|
18171
|
+
export { ALIGN_BLOCK_TYPES, A_TAG_REL_ATTR, AlignEditor, Alignment, BLOCK_DELETE_BACKWARD_TYPES, BasicTest, BlockquoteEditor, CLIPBOARD_FORMAT_KEY, CODEMIRROR_PADDING_TOP, CODE_MODES, CONTAINER_BLOCKS, CONTROL_KEY, CodeEditor, ColorEditor, ColumnResizeNotifierSource, ColumnResizingStore, DEFAULT_LANGUAGE, DEFAULT_SCROLL_CONTAINER, DISABLED_OPERATE_TYPES, DataTransferFaker, DefaultElementOptions, DefaultGlobalToolbarDefinition, DefaultInlineToolbarDefinition, DropdownMode, ELEMENT_UNIQUE_ID, EditorPresetConfigFactoryMock, ElementKinds, ErrorCodes, FontSizeTypes, FontSizes, HEADING_TYPES, HeaderLevelMap, HeadingEditor, HoveredCellInfo, HrEditor, IS_MAC, ImageEditor, IndentEditor, Indents, InlineCodeEditor, LINK_DEFAULT_TEXT, LIST_BLOCK_TYPES, LOWEST_TEXT_CONTAINER_TYPES, LayoutTypes, LinkEditor, ListEditor, MarkEditor, MarkProps, MarkTypes, MentionEditor, PICTURE_ACCEPTED_UPLOAD_MIME, PICTURE_ACCEPTED_UPLOAD_SIZE, PluginKeys, PluginMenuIcons, PluginMenuSvgs, Position, QUICK_INSERT_HOTKEY, QuickInsertEditor, ResizeRef, SLA_TABLE_CELL_SELECTOR, SLA_TABLE_SELECTOR, STANDARD_HEADING_TYPES, ScrollDirection, SpecialBackgroundColor, TAB_SPACE, THE_EDITOR_BG_COLOR, THE_EDITOR_COLOR, THE_EDITOR_CONVERSION_HINT_REF, THE_EDITOR_ORIGIN_ANCHOR, THE_EDITOR_POPOVER_REF, THE_EDITOR_PREVIOUS_SELECTION, THE_EDITOR_UUID, THE_I18N_DE_DE, THE_I18N_EN_US, THE_I18N_JA_JP, THE_I18N_LOCALE_ID, THE_I18N_RU_RU, THE_I18N_ZH_HANS, THE_I18N_ZH_HANT, THE_IMAGE_SERVICE_TOKEN, THE_LISTBOX_PARENT_GROUP_TOKEN, THE_LISTBOX_PARENT_OPTION_TOKEN, THE_LISTBOX_TOKEN, THE_MODE_PROVIDER, THE_MODE_TOKEN, THE_PLUGIN_MENU_REF, THE_PRESET_CONFIG_TOKEN, TableCellEventDispatcher, TableEditor, TableHeaderBackgroundColor, TablePosition, TheBaseElement, TheBaseSuggestion, TheBaseToolbarDropdown, TheBaseToolbarItem, TheColumnResizeDirective, TheColumnResizeOverlayHandle, TheContextMenu, TheContextService, TheConversionHint, TheDataMode, TheDefaultElement, TheEditor, TheEditorComponent, TheEditorModule, TheI18nService, TheImage, TheInlineToolbar, TheListboxDirective, TheListboxGroupDirective, TheListboxOptionDirective, TheLocaleType, TheMode, TheModeConfig, ThePluginMenu, ThePluginMenuComponent, ThePluginMenuItemType, ThePreventDefaultDirective, index$1 as TheQueries, TheQuickInsert, TheTableSelect, TheTemplate, TheText, TheToolbarComponent, TheToolbarDropdown, TheToolbarGroup, TheToolbarGroupToken, TheToolbarItem, TheToolbarService, index as TheTransforms, TodoItemEditor, ToolbarActionTypes, ToolbarAlignment, ToolbarItemType, ToolbarMoreGroup, VOID_BLOCK_TYPES, VerticalAlignEditor, VerticalAlignment, ZERO_WIDTH_CHAR, autoFocus, base64toBlob, bottomLeftPosition, buildPluginMenu, buildPluginMenuItemMap, buildQuickInsertMenus, calcPrintColumnWidth, calcSpanForColumn, calcSpanForRow, calculateHeaderRowHeight, calculateRowControls, coercePixelsFromCssValue, combinePlugins, copyNode, createCell, createEmptyContent, createEmptyParagraph, createMentionPlugin, createPluginFactory, createRow, createTable, createTablePosition, createTest1Plugin, createTestPlugin, createToolbar, createVerticalAlignPlugin, customPluginMock, customPluginMockKey, dataDeserialize, dataSerializing, deDeLocale, deleteElementKey, enUsLocale, errorImageUrlMock, extractFragment, filterTextFormat, fixBlockWithoutParagraph, fixBlockWithoutText, flattenDeepPlugins, getCellPositionsFromRange, getColsTotalWidth, getColumnsWidth, getDirtyElements, getEditorScrollContainer, getEditorUUID, getElementClassByPrefix, getElementHeight, getElementWidth, getEndBlock, getGridColumns, getMode, getNextCell, getOriginCell, getPlugin, getPluginOptions, getPlugins, getRowsTotalHeight, getSelectCellNode, getSelectedCellPositions, getStartBlock, getTableByCell, getTableByRow, getTheDefaultPluginMenu, getToolbarClass, hasHeaderRow, headingOptions, htmlToTheia, idCreator, inValidTypes, initializeDefaultMenuIcons, injectTranslations, insertDataByInvalidType, internalPlugins, isCleanEmptyParagraph, isColorIndicator, isColorInput, isColorPanel, isDirectionKeydown, isInside, isMobileMode, isPrintMode, isPureEmptyParagraph, isRangeInTable, isRectangularInTableCells, isSelectedAllCell, isSelectionInTable, isUrl, isVirtualKey, jaJpLocale, matchOptions, mergeArray, mergeDeepPlugins, mergeElementOptions, mergeOptions, nestedStructureByKey, normalizeValue, originOptions, plainToTheia, pluginKey, pluginKey1, pluginsByKey, reSelection, recursionNodes, refocus, ruRuLocale, scrollIntoView, setClipboardDataByDom, setEditorUUID, theTethysIconRegistryFaker, topLeftPosition, uniqueCellPosition, updatePopoverPosition, useElementStyle, withMention, withTestPlugin, withTheia, zhHansLocale, zhHantLocale };
|
|
18070
18172
|
//# sourceMappingURL=worktile-theia.mjs.map
|