@worktile/theia 20.0.0-next.8 → 20.0.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.
- package/fesm2022/worktile-theia.mjs +311 -421
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/index.d.ts +3 -2
- package/package.json +4 -4
- package/styles/editor.scss +1 -1
- package/styles/typo.scss +2 -2
package/index.d.ts
CHANGED
|
@@ -3908,9 +3908,10 @@ declare function getColsTotalWidth(cols: HTMLTableColElement[]): number;
|
|
|
3908
3908
|
declare function getRowsTotalHeight(rows: HTMLTableRowElement[]): number;
|
|
3909
3909
|
declare function getElementClassByPrefix(el: DOMElement, prefix: string): any;
|
|
3910
3910
|
declare function toggleStyle(nativeElement: HTMLElement, styleName: 'display' | 'backgroundColor' | 'textAlign' | 'textIndent' | 'verticalAlign' | 'height', styleValue?: string): void;
|
|
3911
|
-
declare function toggleProperty(nativeElement: HTMLElement, propertyName: 'colspan' | 'rowspan', propertyValue?: string | number): void;
|
|
3911
|
+
declare function toggleProperty(nativeElement: HTMLElement, propertyName: 'colspan' | 'rowspan' | 'the-level' | 'start' | 'data-multi-digit', propertyValue?: string | number): void;
|
|
3912
3912
|
declare function toggleClass(nativeElement: HTMLElement, className: string, isAdd: boolean): void;
|
|
3913
3913
|
declare function toggleHeadingRelatedElement(editor: Editor, element: Element$1, isVisible: boolean): void;
|
|
3914
|
+
declare function createBreakBarChar(): HTMLSpanElement;
|
|
3914
3915
|
|
|
3915
3916
|
declare const getEditorUUID: (editor: Editor) => string;
|
|
3916
3917
|
declare const setEditorUUID: (editor: Editor, uuid: string) => void;
|
|
@@ -3984,5 +3985,5 @@ declare const THE_EDITOR_PREVIOUS_SELECTION: WeakMap<Editor, {
|
|
|
3984
3985
|
declare const THE_EDITOR_COLOR: WeakMap<Editor, string>;
|
|
3985
3986
|
declare const THE_EDITOR_BG_COLOR: WeakMap<Editor, string>;
|
|
3986
3987
|
|
|
3987
|
-
export { ALIGN_BLOCK_TYPES, A_TAG_REL_ATTR, AlignEditor, Alignment, BLOCK_DELETE_BACKWARD_TYPES, BLOCK_HIDDEN_CLASS, 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, TheCode, TheColumnResizeDirective, TheColumnResizeOverlayHandle, TheContextMenu, TheContextService, TheConversionHint, TheDataMode, TheEditor, TheEditorComponent, TheEditorModule, TheI18nService, TheImage, TheInlineToolbar, TheListboxDirective, TheListboxGroupDirective, TheListboxOptionDirective, TheLocaleType, TheMode, TheModeConfig, ThePluginMenu, ThePluginMenuComponent, ThePluginMenuItemType, ThePreventDefaultDirective, index_d$1 as TheQueries, TheQuickInsert, TheTable, TheTableSelect, TheToolbarComponent, TheToolbarDropdown, TheToolbarGroup, TheToolbarGroupToken, TheToolbarItem, TheToolbarService, index_d as TheTransforms, TodoItemEditor, ToolbarActionTypes, ToolbarAlignment, ToolbarItemType, ToolbarMoreGroup, VOID_BLOCK_TYPES, VerticalAlignEditor, VerticalAlignment, ZERO_WIDTH_CHAR, autoFocus, base64toBlob, bottomLeftPosition, bottomRightPosition, 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, _default$1 as deDeLocale, deleteElementKey, _default$3 as enUsLocale, errorImageUrlMock, expandPreviousHeadings, extractFragment, extractFragmentByHTML, 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, hasNumberedColumn, 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, _default$2 as jaJpLocale, matchOptions, mergeArray, mergeDeepPlugins, mergeElementOptions, mergeOptions, nestedStructureByKey, normalizeValue, originOptions, plainToTheia, pluginKey, pluginKey1, pluginsByKey, reSelection, recursionNodes, refocus, _default as ruRuLocale, setClipboardDataByDom, setEditorUUID, theTethysIconRegistryFaker, toggleClass, toggleHeadingRelatedElement, toggleProperty, toggleStyle, topLeftPosition, topRightPosition, uniqueCellPosition, updatePopoverPosition, withMention, withTestPlugin, withTheia, _default$5 as zhHansLocale, _default$4 as zhHantLocale };
|
|
3988
|
+
export { ALIGN_BLOCK_TYPES, A_TAG_REL_ATTR, AlignEditor, Alignment, BLOCK_DELETE_BACKWARD_TYPES, BLOCK_HIDDEN_CLASS, 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, TheCode, TheColumnResizeDirective, TheColumnResizeOverlayHandle, TheContextMenu, TheContextService, TheConversionHint, TheDataMode, TheEditor, TheEditorComponent, TheEditorModule, TheI18nService, TheImage, TheInlineToolbar, TheListboxDirective, TheListboxGroupDirective, TheListboxOptionDirective, TheLocaleType, TheMode, TheModeConfig, ThePluginMenu, ThePluginMenuComponent, ThePluginMenuItemType, ThePreventDefaultDirective, index_d$1 as TheQueries, TheQuickInsert, TheTable, TheTableSelect, TheToolbarComponent, TheToolbarDropdown, TheToolbarGroup, TheToolbarGroupToken, TheToolbarItem, TheToolbarService, index_d as TheTransforms, TodoItemEditor, ToolbarActionTypes, ToolbarAlignment, ToolbarItemType, ToolbarMoreGroup, VOID_BLOCK_TYPES, VerticalAlignEditor, VerticalAlignment, ZERO_WIDTH_CHAR, autoFocus, base64toBlob, bottomLeftPosition, bottomRightPosition, buildPluginMenu, buildPluginMenuItemMap, buildQuickInsertMenus, calcPrintColumnWidth, calcSpanForColumn, calcSpanForRow, calculateHeaderRowHeight, calculateRowControls, coercePixelsFromCssValue, combinePlugins, copyNode, createBreakBarChar, createCell, createEmptyContent, createEmptyParagraph, createMentionPlugin, createPluginFactory, createRow, createTable, createTablePosition, createTest1Plugin, createTestPlugin, createToolbar, createVerticalAlignPlugin, customPluginMock, customPluginMockKey, dataDeserialize, dataSerializing, _default$1 as deDeLocale, deleteElementKey, _default$3 as enUsLocale, errorImageUrlMock, expandPreviousHeadings, extractFragment, extractFragmentByHTML, 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, hasNumberedColumn, 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, _default$2 as jaJpLocale, matchOptions, mergeArray, mergeDeepPlugins, mergeElementOptions, mergeOptions, nestedStructureByKey, normalizeValue, originOptions, plainToTheia, pluginKey, pluginKey1, pluginsByKey, reSelection, recursionNodes, refocus, _default as ruRuLocale, setClipboardDataByDom, setEditorUUID, theTethysIconRegistryFaker, toggleClass, toggleHeadingRelatedElement, toggleProperty, toggleStyle, topLeftPosition, topRightPosition, uniqueCellPosition, updatePopoverPosition, withMention, withTestPlugin, withTheia, _default$5 as zhHansLocale, _default$4 as zhHantLocale };
|
|
3988
3989
|
export type { BlockElementKinds, BlockQuoteElement, BulletedListElement, CellRect, CodeElement, ColorType, ColumnSize, ColumnSizeAction, CustomEditor, CustomElement, CustomElementKinds, CustomText, CustomizeToolbarItem, DefaultToolbarItem, DomEventDataInfo, EditableVoidElement, EditorAboveOptions, EditorNodesOptions, EditorParentOptions, ElementOptionsInfo, EmptyText, FileUploadingItem, HeadingElement, HeadingElementKinds, HeadingFiveElement, HeadingFourElement, HeadingOneElement, HeadingSixElement, HeadingThreeElement, HeadingTwoElement, HrElement, ImageElement, ImageEntry, ImageInfo, ImagePluginOptions, IndentOptions, InlineCodeElement, InlineElementKinds, LayoutOption, LinkElement, ListItemElement, MatchOptions, MentionPluginOptions, NestedStructureByKey, NoInfer, NodeMatch, NumberedListElement, OptionItem, OverrideByKey, ParagraphElement, PluginKey, PreviewImageInfo, QueryOptions, TableCellElement, TableElement, TableRowElement, TheBlockElement, TheContextOptions, TheElement, TheI18nLocale, TheI18nTranslation, TheImageService, TheListboxChangeEvent, TheListboxChangeEventType, TheMention, TheModeType, TheOptions, ThePlugin, ThePluginBaseOption, ThePluginMenuGroup, ThePluginMenuItem, ThePluginMenuItemConfig, ThePluginMenuItemKey, ThePluginMenuItemWrap, ThePluginOption, ThePresetConfig, TheiaPluginKey, TodoItemElement, ToolbarDefinition, ToolbarEntity, ToolbarInitOption, ToolbarItem, ToolbarItemsComposeReturn, ToolbarKey, ToolbarOption, UploadFileEntity, WithOverride, WithRequired, WithThePlugin, WrapOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/theia",
|
|
3
|
-
"version": "20.0.0
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "theia editor",
|
|
5
5
|
"author": "YanDong <nanianqiumo@foxmail.com>",
|
|
6
6
|
"homepage": "https://github.com/atinc/theia#readme",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@angular/core": "^20.0.0",
|
|
38
38
|
"date-fns": "^4.1.0",
|
|
39
|
-
"slate-angular": "^20.0.0
|
|
39
|
+
"slate-angular": "^20.0.0",
|
|
40
40
|
"slate": "^0.117.2",
|
|
41
41
|
"slate-dom": "^0.116.0",
|
|
42
|
-
"ngx-tethys": "^20.0.0
|
|
43
|
-
"ng-codemirror": "^20.0.0
|
|
42
|
+
"ngx-tethys": "^20.0.0",
|
|
43
|
+
"ng-codemirror": "^20.0.0",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
45
|
"marked": "^12.0.2"
|
|
46
46
|
},
|
package/styles/editor.scss
CHANGED
package/styles/typo.scss
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
color: variables.$gray-600;
|
|
62
62
|
border-left: 4px solid variables.$gray-200;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.slate-element-hr {
|
|
65
65
|
padding: 18px 0;
|
|
66
66
|
border: 1px solid transparent;
|
|
67
67
|
border-radius: 2px 2px;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
padding: 0;
|
|
74
74
|
border-top: 1px solid variables.$gray-200;
|
|
75
75
|
}
|
|
76
|
-
&.
|
|
76
|
+
&.slate-focus-element,
|
|
77
77
|
&:hover {
|
|
78
78
|
background-color: #f4f4f4;
|
|
79
79
|
cursor: text;
|