@worktile/theia 19.1.3 → 19.1.5
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/default.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export declare const DEFAULT_SCROLL_CONTAINER = ".the-editable-container";
|
|
|
8
8
|
export declare const ELEMENT_UNIQUE_ID = "key";
|
|
9
9
|
export declare const ZERO_WIDTH_CHAR = "\u200B";
|
|
10
10
|
export declare const QUICK_INSERT_HOTKEY = "/";
|
|
11
|
+
export declare const HIDDEN_CLASS = "slate-block-hidden";
|
|
@@ -10,7 +10,7 @@ import { cloneDeep, map, assign, defaults, groupBy, uniq, isEqual } from 'lodash
|
|
|
10
10
|
export { assign, cloneDeep, debounce, defaults, groupBy, isEqual, map, uniq } from 'lodash';
|
|
11
11
|
import { Editor, Element, Span, Range, Path, Node, Point, Text, Transforms, Operation, createEditor } from 'slate';
|
|
12
12
|
import * as i4 from 'slate-angular';
|
|
13
|
-
import { FAKE_LEFT_BLOCK_CARD_OFFSET, FAKE_RIGHT_BLOCK_CARD_OFFSET, NODE_TO_PARENT, NODE_TO_INDEX, getClipboardData, AngularEditor, hotkeys, getPlainText as getPlainText$1, createClipboardData, setClipboardData, isClipboardWriteSupported, BaseElementComponent, IS_SAFARI, ELEMENT_TO_COMPONENT, BaseTextComponent, SlateModule, hasBlockCard, isCardLeft, SlateChildrenOutlet, EDITOR_TO_ELEMENT, defaultScrollSelectionIntoView, getDataTransferClipboard, withAngular } from 'slate-angular';
|
|
13
|
+
import { FAKE_LEFT_BLOCK_CARD_OFFSET, FAKE_RIGHT_BLOCK_CARD_OFFSET, NODE_TO_PARENT, NODE_TO_INDEX, getClipboardData, AngularEditor, hotkeys, getPlainText as getPlainText$1, createClipboardData, setClipboardData, isClipboardWriteSupported, BaseElementComponent, IS_SAFARI, ELEMENT_TO_COMPONENT, NODE_TO_ELEMENT, BaseTextComponent, SlateModule, hasBlockCard, isCardLeft, SlateChildrenOutlet, EDITOR_TO_ELEMENT, defaultScrollSelectionIntoView, getDataTransferClipboard, withAngular } from 'slate-angular';
|
|
14
14
|
import { HistoryEditor, withHistory } from 'slate-history';
|
|
15
15
|
import { TheiaConverter } from '@atinc/selene';
|
|
16
16
|
import { isObject, isArray, isString, isUndefined } from 'ngx-tethys/util';
|
|
@@ -61,6 +61,7 @@ const DEFAULT_SCROLL_CONTAINER = '.the-editable-container';
|
|
|
61
61
|
const ELEMENT_UNIQUE_ID = 'key';
|
|
62
62
|
const ZERO_WIDTH_CHAR = '\u200B';
|
|
63
63
|
const QUICK_INSERT_HOTKEY = '/';
|
|
64
|
+
const HIDDEN_CLASS = 'slate-block-hidden';
|
|
64
65
|
|
|
65
66
|
var ElementKinds;
|
|
66
67
|
(function (ElementKinds) {
|
|
@@ -1934,7 +1935,7 @@ class TheBaseElement extends BaseElementComponent {
|
|
|
1934
1935
|
if (this.editor) {
|
|
1935
1936
|
const isVisible = this.editor.isVisible(this.element);
|
|
1936
1937
|
if (!isVisible) {
|
|
1937
|
-
this.nativeElement.classList.add(
|
|
1938
|
+
this.nativeElement.classList.add(HIDDEN_CLASS);
|
|
1938
1939
|
}
|
|
1939
1940
|
}
|
|
1940
1941
|
}
|
|
@@ -7758,6 +7759,9 @@ function isHeadingElement(element) {
|
|
|
7758
7759
|
function isStandardHeadingElement(element) {
|
|
7759
7760
|
return isHeadingElement(element) && HeaderLevelMap[element.type] !== undefined;
|
|
7760
7761
|
}
|
|
7762
|
+
function isStandardHeadingElementByType(type) {
|
|
7763
|
+
return HeaderLevelMap[type] !== undefined;
|
|
7764
|
+
}
|
|
7761
7765
|
function getFollowElements(editor, element) {
|
|
7762
7766
|
const index = editor.children.indexOf(element);
|
|
7763
7767
|
const currentLevel = HeaderLevelMap[element.type];
|
|
@@ -7773,6 +7777,41 @@ function getFollowElements(editor, element) {
|
|
|
7773
7777
|
}
|
|
7774
7778
|
return result;
|
|
7775
7779
|
}
|
|
7780
|
+
function getPreviousRelatedHeadingElements(editor, path) {
|
|
7781
|
+
const index = path[0];
|
|
7782
|
+
const element = editor.children[index];
|
|
7783
|
+
let currentLevel = HeaderLevelMap[element.type] || HeaderLevelMap[ElementKinds.heading_1];
|
|
7784
|
+
const linkedHeadingPaths = [];
|
|
7785
|
+
for (let i = index - 1; i >= 0; i--) {
|
|
7786
|
+
const element = editor.children[i];
|
|
7787
|
+
if (isStandardHeadingElement(element) && HeaderLevelMap[element.type] === currentLevel) {
|
|
7788
|
+
if (element.isCollapsed) {
|
|
7789
|
+
linkedHeadingPaths.push([i]);
|
|
7790
|
+
}
|
|
7791
|
+
return linkedHeadingPaths;
|
|
7792
|
+
}
|
|
7793
|
+
else if (isStandardHeadingElement(element) && HeaderLevelMap[element.type] > currentLevel && element.isCollapsed) {
|
|
7794
|
+
linkedHeadingPaths.push([i]);
|
|
7795
|
+
}
|
|
7796
|
+
}
|
|
7797
|
+
return null;
|
|
7798
|
+
}
|
|
7799
|
+
function getCollapsedStandardHeadingAbove(editor, path) {
|
|
7800
|
+
const index = path[0];
|
|
7801
|
+
const linkedHeadingPaths = [];
|
|
7802
|
+
for (let i = index - 1; i >= 0; i--) {
|
|
7803
|
+
const element = editor.children[i];
|
|
7804
|
+
if (isStandardHeadingElement(element)) {
|
|
7805
|
+
if (element.isCollapsed) {
|
|
7806
|
+
linkedHeadingPaths.push([i]);
|
|
7807
|
+
}
|
|
7808
|
+
if (editor.isVisible(element)) {
|
|
7809
|
+
return linkedHeadingPaths;
|
|
7810
|
+
}
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
return linkedHeadingPaths;
|
|
7814
|
+
}
|
|
7776
7815
|
|
|
7777
7816
|
class TheTableSelect {
|
|
7778
7817
|
constructor(popoverRef) {
|
|
@@ -8147,20 +8186,39 @@ class TheHeadingElement extends TheBaseElement {
|
|
|
8147
8186
|
if (isHeading && this.element && value.element !== this.element) {
|
|
8148
8187
|
if (value.element.isCollapsed !== this.element.isCollapsed) {
|
|
8149
8188
|
const followElements = getFollowElements(this.editor, value.element);
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
targetDom.
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8189
|
+
// 一旦内容发生变化会出现 targetDom get undefined 的情况,所以等一个 setTimeout 周期
|
|
8190
|
+
setTimeout(() => {
|
|
8191
|
+
followElements.forEach(el => {
|
|
8192
|
+
const isVisible = this.editor.isVisible(el);
|
|
8193
|
+
const targetDom = NODE_TO_ELEMENT.get(el);
|
|
8194
|
+
if (!targetDom) {
|
|
8195
|
+
return;
|
|
8196
|
+
}
|
|
8197
|
+
if (isVisible) {
|
|
8198
|
+
targetDom.classList.remove(HIDDEN_CLASS);
|
|
8199
|
+
}
|
|
8200
|
+
else {
|
|
8201
|
+
targetDom.classList.add(HIDDEN_CLASS);
|
|
8202
|
+
}
|
|
8203
|
+
});
|
|
8204
|
+
}, 0);
|
|
8160
8205
|
}
|
|
8161
8206
|
}
|
|
8162
8207
|
};
|
|
8163
8208
|
}
|
|
8209
|
+
ngOnInit() {
|
|
8210
|
+
super.ngOnInit();
|
|
8211
|
+
if (this.element && isStandardHeadingElement(this.element) && this.element.isCollapsed) {
|
|
8212
|
+
const followElements = getFollowElements(this.editor, this.element);
|
|
8213
|
+
// 处理删除后撤销场景
|
|
8214
|
+
followElements.forEach(el => {
|
|
8215
|
+
const targetDom = NODE_TO_ELEMENT.get(el);
|
|
8216
|
+
if (targetDom) {
|
|
8217
|
+
targetDom.classList.add(HIDDEN_CLASS);
|
|
8218
|
+
}
|
|
8219
|
+
});
|
|
8220
|
+
}
|
|
8221
|
+
}
|
|
8164
8222
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TheHeadingElement, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8165
8223
|
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
8224
|
}
|
|
@@ -10737,23 +10795,99 @@ const createFontSizePlugin = (locale) => createPluginFactory({
|
|
|
10737
10795
|
}
|
|
10738
10796
|
})();
|
|
10739
10797
|
|
|
10798
|
+
const cleanHeadingEffect = (editor, path) => {
|
|
10799
|
+
const index = path[0];
|
|
10800
|
+
const headingElement = editor.children[index];
|
|
10801
|
+
if (!isStandardHeadingElement(headingElement)) {
|
|
10802
|
+
return;
|
|
10803
|
+
}
|
|
10804
|
+
const followedElements = getFollowElements(editor, headingElement);
|
|
10805
|
+
if (headingElement.isCollapsed) {
|
|
10806
|
+
followedElements.forEach(el => {
|
|
10807
|
+
const targetDom = AngularEditor.toDOMNode(editor, el);
|
|
10808
|
+
targetDom.classList.contains(HIDDEN_CLASS) && targetDom.classList.remove(HIDDEN_CLASS);
|
|
10809
|
+
});
|
|
10810
|
+
}
|
|
10811
|
+
};
|
|
10740
10812
|
const withHeading = (editor) => {
|
|
10741
|
-
const { insertBreak, isVisible } = editor;
|
|
10813
|
+
const { insertBreak, isVisible, apply, deleteBackward, onClick } = editor;
|
|
10814
|
+
editor.apply = operation => {
|
|
10815
|
+
try {
|
|
10816
|
+
if (operation.type === 'merge_node' && operation.path.length === 1) {
|
|
10817
|
+
cleanHeadingEffect(editor, operation.path);
|
|
10818
|
+
}
|
|
10819
|
+
else if (operation.type === 'remove_node' && operation.path.length === 1) {
|
|
10820
|
+
// 协同场景下,merge_node 会被转换为 remove_node 和 insert_node
|
|
10821
|
+
cleanHeadingEffect(editor, operation.path);
|
|
10822
|
+
}
|
|
10823
|
+
else if (operation.type === 'set_node' && operation.path.length === 1) {
|
|
10824
|
+
const properties = operation.properties;
|
|
10825
|
+
const newProperties = operation.newProperties;
|
|
10826
|
+
if (isStandardHeadingElementByType(properties.type) && newProperties.type === ElementKinds.paragraph) {
|
|
10827
|
+
cleanHeadingEffect(editor, operation.path);
|
|
10828
|
+
}
|
|
10829
|
+
}
|
|
10830
|
+
}
|
|
10831
|
+
catch (error) {
|
|
10832
|
+
console.error('Error handing heading fold(hidden followed elements):', error);
|
|
10833
|
+
}
|
|
10834
|
+
apply(operation);
|
|
10835
|
+
};
|
|
10836
|
+
editor.deleteBackward = unit => {
|
|
10837
|
+
const { selection } = editor;
|
|
10838
|
+
const anchorBlock = getAnchorBlockEntry(editor);
|
|
10839
|
+
if (anchorBlock) {
|
|
10840
|
+
const [anchorBlockElement, path] = anchorBlock;
|
|
10841
|
+
const isCollapsed = selection && Range.isCollapsed(selection);
|
|
10842
|
+
const isStart = Editor.isStart(editor, selection.anchor, anchorBlock[1]);
|
|
10843
|
+
if (path.length === 1 && path[0] > 0 && isCollapsed && isStart && isStandardHeadingElement(anchorBlockElement)) {
|
|
10844
|
+
const prevPath = Path.previous(path);
|
|
10845
|
+
const prevElement = editor.children[prevPath[0]];
|
|
10846
|
+
const prevIsVisible = editor.isVisible(prevElement);
|
|
10847
|
+
if (!prevIsVisible) {
|
|
10848
|
+
const relatedHeadingPaths = getPreviousRelatedHeadingElements(editor, path);
|
|
10849
|
+
relatedHeadingPaths.forEach(path => {
|
|
10850
|
+
Transforms.setNodes(editor, { isCollapsed: false }, { at: path });
|
|
10851
|
+
});
|
|
10852
|
+
}
|
|
10853
|
+
}
|
|
10854
|
+
}
|
|
10855
|
+
deleteBackward(unit);
|
|
10856
|
+
};
|
|
10742
10857
|
editor.insertBreak = () => {
|
|
10743
10858
|
const { selection } = editor;
|
|
10744
10859
|
const anchorBlock = getAnchorBlockEntry(editor);
|
|
10745
|
-
|
|
10746
|
-
|
|
10860
|
+
const isHeading = anchorBlock && isHeadingElement(anchorBlock[0]);
|
|
10861
|
+
if (isHeading) {
|
|
10862
|
+
const isCollapsed = Range.isCollapsed(selection);
|
|
10863
|
+
const isStart = Editor.isStart(editor, selection.anchor, anchorBlock[1]);
|
|
10864
|
+
const isEnd = Editor.isEnd(editor, selection.focus, anchorBlock[1]);
|
|
10865
|
+
const isCollapsedHeading = anchorBlock[0].isCollapsed;
|
|
10866
|
+
if (isCollapsedHeading && anchorBlock[1].length === 1) {
|
|
10867
|
+
const followedElements = getFollowElements(editor, anchorBlock[0]);
|
|
10868
|
+
const toPath = [anchorBlock[1][0] + followedElements.length];
|
|
10869
|
+
const toRef = Editor.pathRef(editor, toPath);
|
|
10747
10870
|
insertBreak();
|
|
10748
|
-
Transforms.
|
|
10749
|
-
|
|
10871
|
+
Transforms.moveNodes(editor, {
|
|
10872
|
+
to: toRef.current,
|
|
10873
|
+
mode: 'highest'
|
|
10750
10874
|
});
|
|
10875
|
+
Transforms.setNodes(editor, { isCollapsed: false });
|
|
10751
10876
|
return;
|
|
10752
10877
|
}
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10878
|
+
else {
|
|
10879
|
+
if (isCollapsed && isStart) {
|
|
10880
|
+
insertBreak();
|
|
10881
|
+
Transforms.setNodes(editor, { type: ElementKinds.paragraph }, {
|
|
10882
|
+
at: selection
|
|
10883
|
+
});
|
|
10884
|
+
return;
|
|
10885
|
+
}
|
|
10886
|
+
if (isCollapsed && isEnd) {
|
|
10887
|
+
insertBreak();
|
|
10888
|
+
Transforms.setNodes(editor, { type: ElementKinds.paragraph });
|
|
10889
|
+
return;
|
|
10890
|
+
}
|
|
10757
10891
|
}
|
|
10758
10892
|
}
|
|
10759
10893
|
insertBreak();
|
|
@@ -10792,6 +10926,36 @@ const withHeading = (editor) => {
|
|
|
10792
10926
|
}
|
|
10793
10927
|
return isVisible(node);
|
|
10794
10928
|
};
|
|
10929
|
+
editor.onClick = (event) => {
|
|
10930
|
+
const target = event.target;
|
|
10931
|
+
if (target instanceof HTMLElement && target.classList.contains('slate-editable-container')) {
|
|
10932
|
+
const index = editor.children.length - 1;
|
|
10933
|
+
const lastElement = editor.children[editor.children.length - 1];
|
|
10934
|
+
if (!editor.isVisible(lastElement)) {
|
|
10935
|
+
const path = [index];
|
|
10936
|
+
const collapsedStandardHeadings = getCollapsedStandardHeadingAbove(editor, path);
|
|
10937
|
+
if (collapsedStandardHeadings.length > 0) {
|
|
10938
|
+
const headingPath = collapsedStandardHeadings[collapsedStandardHeadings.length - 1];
|
|
10939
|
+
const headingNode = editor.children[headingPath[0]];
|
|
10940
|
+
const dom = AngularEditor.toDOMNode(editor, headingNode);
|
|
10941
|
+
const rect = dom.getBoundingClientRect();
|
|
10942
|
+
if (event.y > rect.bottom && event.x > rect.left && event.x < rect.right) {
|
|
10943
|
+
collapsedStandardHeadings.forEach(path => {
|
|
10944
|
+
Transforms.setNodes(editor, { isCollapsed: false }, { at: path });
|
|
10945
|
+
});
|
|
10946
|
+
const isEmptyParagraph = isEmptyParagraphElement(editor, editor.children[index]);
|
|
10947
|
+
if (isEmptyParagraph) {
|
|
10948
|
+
Transforms.select(editor, path);
|
|
10949
|
+
}
|
|
10950
|
+
else {
|
|
10951
|
+
Transforms.insertNodes(editor, createEmptyParagraph(), { at: [index + 1] });
|
|
10952
|
+
Transforms.select(editor, [index + 1]);
|
|
10953
|
+
}
|
|
10954
|
+
}
|
|
10955
|
+
}
|
|
10956
|
+
}
|
|
10957
|
+
}
|
|
10958
|
+
};
|
|
10795
10959
|
return editor;
|
|
10796
10960
|
};
|
|
10797
10961
|
const headingListPlugins = HeadingEditor.headingPlugins();
|
|
@@ -18172,5 +18336,5 @@ const withTestPlugin = (plugins, initValue) => {
|
|
|
18172
18336
|
* Generated bundle index. Do not edit.
|
|
18173
18337
|
*/
|
|
18174
18338
|
|
|
18175
|
-
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, getFollowElements, 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, isHeadingElement, isInside, isMobileMode, isPrintMode, isPureEmptyParagraph, isRangeInTable, isRectangularInTableCells, isSelectedAllCell, isSelectionInTable, isStandardHeadingElement, 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 };
|
|
18339
|
+
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, HIDDEN_CLASS, 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, getCollapsedStandardHeadingAbove, getColsTotalWidth, getColumnsWidth, getDirtyElements, getEditorScrollContainer, getEditorUUID, getElementClassByPrefix, getElementHeight, getElementWidth, getEndBlock, getFollowElements, getGridColumns, getMode, getNextCell, getOriginCell, getPlugin, getPluginOptions, getPlugins, getPreviousRelatedHeadingElements, getRowsTotalHeight, getSelectCellNode, getSelectedCellPositions, getStartBlock, getTableByCell, getTableByRow, getTheDefaultPluginMenu, getToolbarClass, hasHeaderRow, headingOptions, htmlToTheia, idCreator, inValidTypes, initializeDefaultMenuIcons, injectTranslations, insertDataByInvalidType, internalPlugins, isCleanEmptyParagraph, isColorIndicator, isColorInput, isColorPanel, isDirectionKeydown, isHeadingElement, isInside, isMobileMode, isPrintMode, isPureEmptyParagraph, isRangeInTable, isRectangularInTableCells, isSelectedAllCell, isSelectionInTable, isStandardHeadingElement, isStandardHeadingElementByType, 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 };
|
|
18176
18340
|
//# sourceMappingURL=worktile-theia.mjs.map
|