@licium/editor 3.2.12 → 3.2.13
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/dist/esm/i18n/ar.js +1 -1
- package/dist/esm/i18n/commands/commandManager.d.ts +1 -1
- package/dist/esm/i18n/cs-cz.js +1 -1
- package/dist/esm/i18n/de-de.js +1 -1
- package/dist/esm/i18n/en-us.js +1 -1
- package/dist/esm/i18n/es-es.js +1 -1
- package/dist/esm/i18n/fi-fi.js +1 -1
- package/dist/esm/i18n/fr-fr.js +1 -1
- package/dist/esm/i18n/gl-es.js +1 -1
- package/dist/esm/i18n/hr-hr.js +1 -1
- package/dist/esm/i18n/i18n.js +1 -1
- package/dist/esm/i18n/it-it.js +1 -1
- package/dist/esm/i18n/ja-jp.js +1 -1
- package/dist/esm/i18n/ko-kr.js +1 -1
- package/dist/esm/i18n/markdown/helper/list.d.ts +6 -6
- package/dist/esm/i18n/markdown/helper/mdCommand.d.ts +2 -2
- package/dist/esm/i18n/markdown/mdPreview.d.ts +1 -1
- package/dist/esm/i18n/markdown/plugins/helper/markInfo.d.ts +1 -1
- package/dist/esm/i18n/markdown/scroll/dom.d.ts +1 -1
- package/dist/esm/i18n/nb-no.js +1 -1
- package/dist/esm/i18n/nl-nl.js +1 -1
- package/dist/esm/i18n/pl-pl.js +1 -1
- package/dist/esm/i18n/pt-br.js +1 -1
- package/dist/esm/i18n/ru-ru.js +1 -1
- package/dist/esm/i18n/spec/specManager.d.ts +1 -1
- package/dist/esm/i18n/sv-se.js +1 -1
- package/dist/esm/i18n/tr-tr.js +1 -1
- package/dist/esm/i18n/ui/components/toolbar/imagePopupBody.d.ts +1 -1
- package/dist/esm/i18n/ui/components/toolbar/tablePopupBody.d.ts +1 -1
- package/dist/esm/i18n/ui/components/toolbar/toolbar.d.ts +1 -1
- package/dist/esm/i18n/ui/vdom/dom.d.ts +1 -1
- package/dist/esm/i18n/uk-ua.js +1 -1
- package/dist/esm/i18n/wysiwyg/command/table.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/helper/node.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/helper/tableOffsetMap.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/nodeview/codeBlockView.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/nodeview/customBlockView.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/nodeview/imageView.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelection.d.ts +1 -1
- package/dist/esm/i18n/wysiwyg/wwEditor.d.ts +2 -2
- package/dist/esm/i18n/zh-cn.js +1 -1
- package/dist/esm/i18n/zh-tw.js +1 -1
- package/dist/esm/index.js +23 -23
- package/dist/esm/indexViewer.js +1 -1
- package/dist/i18n/ar.js +1 -1
- package/dist/i18n/cs-cz.js +1 -1
- package/dist/i18n/de-de.js +1 -1
- package/dist/i18n/es-es.js +1 -1
- package/dist/i18n/fi-fi.js +1 -1
- package/dist/i18n/fr-fr.js +1 -1
- package/dist/i18n/gl-es.js +1 -1
- package/dist/i18n/hr-hr.js +1 -1
- package/dist/i18n/it-it.js +1 -1
- package/dist/i18n/ja-jp.js +1 -1
- package/dist/i18n/ko-kr.js +1 -1
- package/dist/i18n/nb-no.js +1 -1
- package/dist/i18n/nl-nl.js +1 -1
- package/dist/i18n/pl-pl.js +1 -1
- package/dist/i18n/pt-br.js +1 -1
- package/dist/i18n/ru-ru.js +1 -1
- package/dist/i18n/sv-se.js +1 -1
- package/dist/i18n/tr-tr.js +1 -1
- package/dist/i18n/uk-ua.js +1 -1
- package/dist/i18n/zh-cn.js +1 -1
- package/dist/i18n/zh-tw.js +1 -1
- package/dist/toastui-editor-only.css +1 -1
- package/dist/toastui-editor-viewer.css +1 -1
- package/dist/toastui-editor-viewer.js +116 -116
- package/dist/toastui-editor.css +1 -1
- package/dist/toastui-editor.js +116 -116
- package/package.json +2 -2
- package/types/index.d.ts +1 -1
package/dist/esm/i18n/ar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorType } from '@t/editor';
|
|
2
2
|
import { EditorAllCommandMap, EditorCommandFn } from '@t/spec';
|
|
3
3
|
import { Emitter } from '@t/event';
|
|
4
|
-
|
|
4
|
+
type GetEditorType = () => EditorType;
|
|
5
5
|
export default class CommandManager {
|
|
6
6
|
private eventEmitter;
|
|
7
7
|
private mdCommands;
|
package/dist/esm/i18n/cs-cz.js
CHANGED
package/dist/esm/i18n/de-de.js
CHANGED
package/dist/esm/i18n/en-us.js
CHANGED
package/dist/esm/i18n/es-es.js
CHANGED
package/dist/esm/i18n/fi-fi.js
CHANGED
package/dist/esm/i18n/fr-fr.js
CHANGED
package/dist/esm/i18n/gl-es.js
CHANGED
package/dist/esm/i18n/hr-hr.js
CHANGED
package/dist/esm/i18n/i18n.js
CHANGED
package/dist/esm/i18n/it-it.js
CHANGED
package/dist/esm/i18n/ja-jp.js
CHANGED
package/dist/esm/i18n/ko-kr.js
CHANGED
|
@@ -7,7 +7,7 @@ export interface ToListContext<T = ListItemMdNode> {
|
|
|
7
7
|
doc: ProsemirrorNode;
|
|
8
8
|
startLine: number;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ExtendListContext = Omit<ToListContext, 'startLine'>;
|
|
11
11
|
export interface ChangedListInfo {
|
|
12
12
|
line: number;
|
|
13
13
|
text: string;
|
|
@@ -17,15 +17,15 @@ interface ToListResult {
|
|
|
17
17
|
firstIndex?: number;
|
|
18
18
|
lastIndex?: number;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
type ExtendedResult = {
|
|
21
21
|
listSyntax: string;
|
|
22
22
|
changedResults?: ChangedListInfo[];
|
|
23
23
|
lastIndex?: number;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
type ListType = 'bullet' | 'ordered';
|
|
26
|
+
type ListToListFn = (context: ToListContext) => ToListResult;
|
|
27
|
+
type NodeToListFn = (context: ToListContext<MdNode>) => ToListResult;
|
|
28
|
+
type ExtendListFn = (context: ExtendListContext) => ExtendedResult;
|
|
29
29
|
interface ListToList {
|
|
30
30
|
bullet: ListToListFn;
|
|
31
31
|
ordered: ListToListFn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorCommand } from '@t/spec';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ConditionFn = (text: string) => boolean;
|
|
3
|
+
type Condition = RegExp | ConditionFn;
|
|
4
4
|
export declare function toggleMark(condition: Condition, syntax: string): EditorCommand;
|
|
5
5
|
export {};
|
|
@@ -2,7 +2,7 @@ import { EditResult, Renderer } from '@licium/toastmark';
|
|
|
2
2
|
import { Emitter } from '@t/event';
|
|
3
3
|
import { CustomHTMLRenderer, LinkAttributes } from '@t/editor';
|
|
4
4
|
export declare const CLASS_HIGHLIGHT: string;
|
|
5
|
-
|
|
5
|
+
type Sanitizer = (html: string) => string;
|
|
6
6
|
interface Options {
|
|
7
7
|
linkAttributes: LinkAttributes | null;
|
|
8
8
|
customHTMLRenderer: CustomHTMLRenderer;
|
|
@@ -5,7 +5,7 @@ declare const DELIM = "delimiter";
|
|
|
5
5
|
declare const TASK_DELIM = "taskDelimiter";
|
|
6
6
|
declare const TEXT = "markedText";
|
|
7
7
|
declare const HTML = "html";
|
|
8
|
-
|
|
8
|
+
type MarkType = MdNodeType | typeof LIST_ITEM | typeof DELIM | typeof TASK_DELIM | typeof TEXT | typeof HTML | typeof META;
|
|
9
9
|
export interface MarkInfo {
|
|
10
10
|
start: MdPos;
|
|
11
11
|
end: MdPos;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProsemirrorNode } from 'prosemirror-model';
|
|
2
2
|
import { MdNode } from '@licium/toastmark';
|
|
3
|
-
|
|
3
|
+
type El = HTMLElement | null;
|
|
4
4
|
export declare function getEditorRangeHeightInfo(doc: ProsemirrorNode, mdNode: MdNode, children: HTMLCollection): {
|
|
5
5
|
height: number;
|
|
6
6
|
rect: DOMRect;
|
package/dist/esm/i18n/nb-no.js
CHANGED
package/dist/esm/i18n/nl-nl.js
CHANGED
package/dist/esm/i18n/pl-pl.js
CHANGED
package/dist/esm/i18n/pt-br.js
CHANGED
package/dist/esm/i18n/ru-ru.js
CHANGED
|
@@ -2,7 +2,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
2
2
|
import { EditorAllCommandMap, SpecContext, EditorCommand } from '@t/spec';
|
|
3
3
|
import Mark from '@/spec/mark';
|
|
4
4
|
import Node from '@/spec/node';
|
|
5
|
-
|
|
5
|
+
type Spec = Node | Mark;
|
|
6
6
|
export declare function execCommand(view: EditorView, command: EditorCommand, payload?: Record<string, any>): boolean;
|
|
7
7
|
export default class SpecManager {
|
|
8
8
|
private specs;
|
package/dist/esm/i18n/sv-se.js
CHANGED
package/dist/esm/i18n/tr-tr.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Emitter } from '@t/event';
|
|
2
2
|
import { ExecCommand, HidePopup } from '@t/ui';
|
|
3
3
|
import { Component } from '@/ui/vdom/component';
|
|
4
|
-
|
|
4
|
+
type TabType = 'url' | 'file';
|
|
5
5
|
interface Props {
|
|
6
6
|
show: boolean;
|
|
7
7
|
eventEmitter: Emitter;
|
|
@@ -2,7 +2,7 @@ import { EditorType, PreviewStyle } from '@t/editor';
|
|
|
2
2
|
import { Emitter } from '@t/event';
|
|
3
3
|
import { IndexList, PopupInfo, ToolbarGroupInfo, ToolbarItem, ToolbarItemOptions } from '@t/ui';
|
|
4
4
|
import { Component } from '@/ui/vdom/component';
|
|
5
|
-
|
|
5
|
+
type TabType = 'write' | 'preview';
|
|
6
6
|
interface Props {
|
|
7
7
|
eventEmitter: Emitter;
|
|
8
8
|
previewStyle: PreviewStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode } from './vnode';
|
|
2
|
-
|
|
2
|
+
type Props = Record<string, any>;
|
|
3
3
|
export declare function createNode(vnode: VNode): Node;
|
|
4
4
|
export declare function removeNode(vnode: VNode, parentNode: Node): void;
|
|
5
5
|
export declare function innerDiff(node: Node, prevProps: Props, nextProps: Props): void;
|
package/dist/esm/i18n/uk-ua.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ProsemirrorNode, ResolvedPos, Schema } from 'prosemirror-model';
|
|
|
2
2
|
import { Transaction } from 'prosemirror-state';
|
|
3
3
|
import { TableOffsetMap } from '../helper/tableOffsetMap';
|
|
4
4
|
import { Direction } from '../nodes/table';
|
|
5
|
-
export
|
|
5
|
+
export type CellPosition = [rowIdx: number, colIdx: number];
|
|
6
6
|
export declare function canMoveBetweenCells(direction: Direction, [cellDepth, paraDepth]: number[], from: ResolvedPos, doc: ProsemirrorNode): boolean;
|
|
7
7
|
export declare function canBeOutOfTable(direction: Direction, map: TableOffsetMap, [rowIdx, colIdx]: CellPosition): boolean;
|
|
8
8
|
export declare function addParagraphBeforeTable(tr: Transaction, map: TableOffsetMap, schema: Schema): Transaction;
|
|
@@ -52,7 +52,7 @@ interface OffsetMap {
|
|
|
52
52
|
getRectOffsets(startCellPos: ResolvedPos, endCellPos?: ResolvedPos): SelectionInfo;
|
|
53
53
|
getSpannedOffsets(selectionInfo: SelectionInfo): SelectionInfo;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
type CreateOffsetMapMixin = (headOrBody: Node, startOffset: number, startFromBody?: boolean) => RowInfo[];
|
|
56
56
|
export declare class TableOffsetMap {
|
|
57
57
|
private table;
|
|
58
58
|
private tableRows;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorView, NodeView } from 'prosemirror-view';
|
|
2
2
|
import { ProsemirrorNode } from 'prosemirror-model';
|
|
3
3
|
import { Emitter } from '@t/event';
|
|
4
|
-
|
|
4
|
+
type GetPos = (() => number) | boolean;
|
|
5
5
|
export declare class CodeBlockView implements NodeView {
|
|
6
6
|
dom: HTMLElement;
|
|
7
7
|
contentDOM: HTMLElement | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorView, NodeView } from 'prosemirror-view';
|
|
2
2
|
import { ProsemirrorNode } from 'prosemirror-model';
|
|
3
3
|
import { ToDOMAdaptor } from '@t/convertor';
|
|
4
|
-
|
|
4
|
+
type GetPos = (() => number) | boolean;
|
|
5
5
|
export declare class CustomBlockView implements NodeView {
|
|
6
6
|
dom: HTMLElement;
|
|
7
7
|
private node;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorView, NodeView } from 'prosemirror-view';
|
|
2
2
|
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
3
3
|
import { Emitter } from '@t/event';
|
|
4
|
-
|
|
4
|
+
type GetPos = (() => number) | boolean;
|
|
5
5
|
export declare class ImageView implements NodeView {
|
|
6
6
|
dom: HTMLElement;
|
|
7
7
|
private node;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Plugin } from 'prosemirror-state';
|
|
2
|
-
export declare function tableSelection(): Plugin<
|
|
2
|
+
export declare function tableSelection(): Plugin<null>;
|
|
@@ -14,7 +14,7 @@ interface WysiwygOptions {
|
|
|
14
14
|
wwPlugins?: PluginProp[];
|
|
15
15
|
wwNodeViews?: NodeViewPropMap;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
type PluginNodeVeiwFn = (node: ProsemirrorNode, view: EditorView, getPos: () => number) => NodeView;
|
|
18
18
|
interface PluginNodeViews {
|
|
19
19
|
[k: string]: PluginNodeVeiwFn;
|
|
20
20
|
}
|
|
@@ -34,7 +34,7 @@ export default class WysiwygEditor extends EditorBase {
|
|
|
34
34
|
from: number;
|
|
35
35
|
to: number;
|
|
36
36
|
text: string;
|
|
37
|
-
} | null>)[];
|
|
37
|
+
} | null> | Plugin<null>)[];
|
|
38
38
|
createPluginNodeViews(): PluginNodeViews;
|
|
39
39
|
createView(): EditorView;
|
|
40
40
|
createCommands(): import("../../types/spec").EditorAllCommandMap<import("../../types/spec").DefaultPayload>;
|
package/dist/esm/i18n/zh-cn.js
CHANGED
package/dist/esm/i18n/zh-tw.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @licium/editor
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.13 | Fri Jan 09 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -17642,7 +17642,7 @@ function isInLastListItem(pos) {
|
|
|
17642
17642
|
return false;
|
|
17643
17643
|
}
|
|
17644
17644
|
function canMoveToBeforeCell(direction, [paraDepth, listDepth, curDepth], from, doc, inList) {
|
|
17645
|
-
if (direction === "left" /* LEFT */ || direction === "up" /* UP */) {
|
|
17645
|
+
if (direction === "left" /* Direction.LEFT */ || direction === "up" /* Direction.UP */) {
|
|
17646
17646
|
if (inList && !isInFirstListItem(from, doc, [paraDepth, listDepth])) {
|
|
17647
17647
|
return false;
|
|
17648
17648
|
}
|
|
@@ -17655,7 +17655,7 @@ function canMoveToBeforeCell(direction, [paraDepth, listDepth, curDepth], from,
|
|
|
17655
17655
|
return true;
|
|
17656
17656
|
}
|
|
17657
17657
|
function canMoveToAfterCell(direction, curDepth, from, doc, inList) {
|
|
17658
|
-
if (direction === "right" /* RIGHT */ || direction === "down" /* DOWN */) {
|
|
17658
|
+
if (direction === "right" /* Direction.RIGHT */ || direction === "down" /* Direction.DOWN */) {
|
|
17659
17659
|
if (inList && !isInLastListItem(from)) {
|
|
17660
17660
|
return false;
|
|
17661
17661
|
}
|
|
@@ -17677,8 +17677,8 @@ function canMoveBetweenCells(direction, [cellDepth, paraDepth], from, doc) {
|
|
|
17677
17677
|
}
|
|
17678
17678
|
function canBeOutOfTable(direction, map, [rowIdx, colIdx]) {
|
|
17679
17679
|
const rowspanInfo = map.getRowspanStartInfo(rowIdx, colIdx);
|
|
17680
|
-
const inFirstRow = direction === "up" /* UP */ && rowIdx === 0;
|
|
17681
|
-
const inLastRow = direction === "down" /* DOWN */ &&
|
|
17680
|
+
const inFirstRow = direction === "up" /* Direction.UP */ && rowIdx === 0;
|
|
17681
|
+
const inLastRow = direction === "down" /* Direction.DOWN */ &&
|
|
17682
17682
|
((rowspanInfo === null || rowspanInfo === void 0 ? void 0 : rowspanInfo.count) > 1 ? rowIdx + rowspanInfo.count - 1 : rowIdx) === map.totalRowCount - 1;
|
|
17683
17683
|
return inFirstRow || inLastRow;
|
|
17684
17684
|
}
|
|
@@ -17754,19 +17754,19 @@ function moveToCell(direction, tr, cellIndex, map) {
|
|
|
17754
17754
|
const cellOffsetFn = cellOffsetFnMap[direction];
|
|
17755
17755
|
const offset = cellOffsetFn(cellIndex, map);
|
|
17756
17756
|
if (offset) {
|
|
17757
|
-
const dir = direction === "right" /* RIGHT */ || direction === "down" /* DOWN */ ? 1 : -1;
|
|
17757
|
+
const dir = direction === "right" /* Direction.RIGHT */ || direction === "down" /* Direction.DOWN */ ? 1 : -1;
|
|
17758
17758
|
return tr.setSelection(Selection.near(tr.doc.resolve(offset), dir));
|
|
17759
17759
|
}
|
|
17760
17760
|
return null;
|
|
17761
17761
|
}
|
|
17762
17762
|
function canSelectTableNode(direction, map, [rowIdx, colIdx]) {
|
|
17763
|
-
if (direction === "up" /* UP */ || direction === "down" /* DOWN */) {
|
|
17763
|
+
if (direction === "up" /* Direction.UP */ || direction === "down" /* Direction.DOWN */) {
|
|
17764
17764
|
return false;
|
|
17765
17765
|
}
|
|
17766
17766
|
const { tableStartOffset, tableEndOffset } = map;
|
|
17767
17767
|
const { offset, nodeSize } = map.getCellInfo(rowIdx, colIdx);
|
|
17768
|
-
const pos = direction === "left" /* LEFT */ ? tableStartOffset : tableEndOffset;
|
|
17769
|
-
const curPos = direction === "left" /* LEFT */ ? offset - 2 : offset + nodeSize + 3;
|
|
17768
|
+
const pos = direction === "left" /* Direction.LEFT */ ? tableStartOffset : tableEndOffset;
|
|
17769
|
+
const curPos = direction === "left" /* Direction.LEFT */ ? offset - 2 : offset + nodeSize + 3;
|
|
17770
17770
|
return pos === curPos;
|
|
17771
17771
|
}
|
|
17772
17772
|
function selectNode(tr, pos, depth) {
|
|
@@ -17778,7 +17778,7 @@ function getTargetRowInfo(direction, map, selectionInfo) {
|
|
|
17778
17778
|
let targetRowIdx;
|
|
17779
17779
|
let insertColIdx;
|
|
17780
17780
|
let nodeSize;
|
|
17781
|
-
if (direction === "up" /* UP */) {
|
|
17781
|
+
if (direction === "up" /* Direction.UP */) {
|
|
17782
17782
|
targetRowIdx = selectionInfo.startRowIdx;
|
|
17783
17783
|
insertColIdx = 0;
|
|
17784
17784
|
nodeSize = -1;
|
|
@@ -17853,7 +17853,7 @@ class Table extends Node$2 {
|
|
|
17853
17853
|
if (anchor && head) {
|
|
17854
17854
|
const map = TableOffsetMap.create(anchor);
|
|
17855
17855
|
const selectionInfo = map.getRectOffsets(anchor, head);
|
|
17856
|
-
const targetColIdx = direction === "left" /* LEFT */ ? selectionInfo.startColIdx : selectionInfo.endColIdx + 1;
|
|
17856
|
+
const targetColIdx = direction === "left" /* Direction.LEFT */ ? selectionInfo.startColIdx : selectionInfo.endColIdx + 1;
|
|
17857
17857
|
const { columnCount } = getRowAndColumnCount(selectionInfo);
|
|
17858
17858
|
const { totalRowCount } = map;
|
|
17859
17859
|
for (let rowIdx = 0; rowIdx < totalRowCount; rowIdx += 1) {
|
|
@@ -18023,10 +18023,10 @@ class Table extends Node$2 {
|
|
|
18023
18023
|
else if (canBeOutOfTable(direction, map, cellIndex)) {
|
|
18024
18024
|
// When there is no content before or after the table,
|
|
18025
18025
|
// an empty line('paragraph') is created by pressing the arrow keys.
|
|
18026
|
-
if (direction === "up" /* UP */) {
|
|
18026
|
+
if (direction === "up" /* Direction.UP */) {
|
|
18027
18027
|
newTr = addParagraphBeforeTable(tr, map, schema);
|
|
18028
18028
|
}
|
|
18029
|
-
else if (direction === "down" /* DOWN */) {
|
|
18029
|
+
else if (direction === "down" /* Direction.DOWN */) {
|
|
18030
18030
|
newTr = addParagraphAfterTable(tr, map, schema);
|
|
18031
18031
|
}
|
|
18032
18032
|
}
|
|
@@ -18086,11 +18086,11 @@ class Table extends Node$2 {
|
|
|
18086
18086
|
return {
|
|
18087
18087
|
addTable: this.addTable(),
|
|
18088
18088
|
removeTable: this.removeTable(),
|
|
18089
|
-
addColumnToLeft: this.addColumn("left" /* LEFT */),
|
|
18090
|
-
addColumnToRight: this.addColumn("right" /* RIGHT */),
|
|
18089
|
+
addColumnToLeft: this.addColumn("left" /* Direction.LEFT */),
|
|
18090
|
+
addColumnToRight: this.addColumn("right" /* Direction.RIGHT */),
|
|
18091
18091
|
removeColumn: this.removeColumn(),
|
|
18092
|
-
addRowToUp: this.addRow("up" /* UP */),
|
|
18093
|
-
addRowToDown: this.addRow("down" /* DOWN */),
|
|
18092
|
+
addRowToUp: this.addRow("up" /* Direction.UP */),
|
|
18093
|
+
addRowToDown: this.addRow("down" /* Direction.DOWN */),
|
|
18094
18094
|
removeRow: this.removeRow(),
|
|
18095
18095
|
alignColumn: this.alignColumn(),
|
|
18096
18096
|
};
|
|
@@ -18098,12 +18098,12 @@ class Table extends Node$2 {
|
|
|
18098
18098
|
keymaps() {
|
|
18099
18099
|
const deleteCellContent = this.deleteCells();
|
|
18100
18100
|
return {
|
|
18101
|
-
Tab: this.moveToCell("right" /* RIGHT */),
|
|
18102
|
-
'Shift-Tab': this.moveToCell("left" /* LEFT */),
|
|
18103
|
-
ArrowUp: this.moveInCell("up" /* UP */),
|
|
18104
|
-
ArrowDown: this.moveInCell("down" /* DOWN */),
|
|
18105
|
-
ArrowLeft: this.moveInCell("left" /* LEFT */),
|
|
18106
|
-
ArrowRight: this.moveInCell("right" /* RIGHT */),
|
|
18101
|
+
Tab: this.moveToCell("right" /* Direction.RIGHT */),
|
|
18102
|
+
'Shift-Tab': this.moveToCell("left" /* Direction.LEFT */),
|
|
18103
|
+
ArrowUp: this.moveInCell("up" /* Direction.UP */),
|
|
18104
|
+
ArrowDown: this.moveInCell("down" /* Direction.DOWN */),
|
|
18105
|
+
ArrowLeft: this.moveInCell("left" /* Direction.LEFT */),
|
|
18106
|
+
ArrowRight: this.moveInCell("right" /* Direction.RIGHT */),
|
|
18107
18107
|
Backspace: deleteCellContent,
|
|
18108
18108
|
'Mod-Backspace': deleteCellContent,
|
|
18109
18109
|
Delete: deleteCellContent,
|
package/dist/esm/indexViewer.js
CHANGED
package/dist/i18n/ar.js
CHANGED
package/dist/i18n/cs-cz.js
CHANGED
package/dist/i18n/de-de.js
CHANGED
package/dist/i18n/es-es.js
CHANGED
package/dist/i18n/fi-fi.js
CHANGED
package/dist/i18n/fr-fr.js
CHANGED
package/dist/i18n/gl-es.js
CHANGED