@atlaskit/editor-core 187.44.3 → 187.44.4

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/plugins/expand/pm-plugins/keymap.js +2 -2
  3. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +3 -1
  4. package/dist/cjs/plugins/media/pm-plugins/keymap-media-single.js +2 -2
  5. package/dist/cjs/plugins/media/pm-plugins/main.js +1 -2
  6. package/dist/cjs/plugins/media/toolbar/index.js +2 -2
  7. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +4 -5
  8. package/dist/cjs/plugins/media/utils/media-common.js +7 -8
  9. package/dist/cjs/plugins/media/utils/media-files.js +6 -6
  10. package/dist/cjs/plugins/media/utils/media-single.js +2 -2
  11. package/dist/cjs/plugins/placeholder-text/index.js +1 -1
  12. package/dist/cjs/plugins/selection/commands.js +2 -3
  13. package/dist/cjs/plugins/selection/gap-cursor/actions.js +10 -11
  14. package/dist/cjs/plugins/selection/gap-cursor/utils.js +3 -3
  15. package/dist/cjs/plugins/selection/plugin-factory.js +5 -5
  16. package/dist/cjs/plugins/selection/pm-plugins/keymap.js +1 -1
  17. package/dist/cjs/plugins/selection/utils.js +1 -2
  18. package/dist/cjs/utils/commands.js +2 -22
  19. package/dist/cjs/utils/document.js +0 -20
  20. package/dist/cjs/utils/index.js +0 -6
  21. package/dist/cjs/version-wrapper.js +1 -1
  22. package/dist/es2019/plugins/expand/pm-plugins/keymap.js +1 -1
  23. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +4 -2
  24. package/dist/es2019/plugins/media/pm-plugins/keymap-media-single.js +1 -1
  25. package/dist/es2019/plugins/media/pm-plugins/main.js +1 -2
  26. package/dist/es2019/plugins/media/toolbar/index.js +3 -3
  27. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +2 -2
  28. package/dist/es2019/plugins/media/utils/media-common.js +1 -2
  29. package/dist/es2019/plugins/media/utils/media-files.js +1 -1
  30. package/dist/es2019/plugins/media/utils/media-single.js +1 -1
  31. package/dist/es2019/plugins/placeholder-text/index.js +1 -1
  32. package/dist/es2019/plugins/selection/commands.js +1 -2
  33. package/dist/es2019/plugins/selection/gap-cursor/actions.js +2 -4
  34. package/dist/es2019/plugins/selection/gap-cursor/utils.js +2 -2
  35. package/dist/es2019/plugins/selection/plugin-factory.js +1 -1
  36. package/dist/es2019/plugins/selection/pm-plugins/keymap.js +1 -1
  37. package/dist/es2019/plugins/selection/utils.js +1 -3
  38. package/dist/es2019/utils/commands.js +1 -19
  39. package/dist/es2019/utils/document.js +0 -18
  40. package/dist/es2019/utils/index.js +1 -1
  41. package/dist/es2019/version-wrapper.js +1 -1
  42. package/dist/esm/plugins/expand/pm-plugins/keymap.js +1 -1
  43. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +4 -2
  44. package/dist/esm/plugins/media/pm-plugins/keymap-media-single.js +1 -1
  45. package/dist/esm/plugins/media/pm-plugins/main.js +1 -2
  46. package/dist/esm/plugins/media/toolbar/index.js +3 -3
  47. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +2 -2
  48. package/dist/esm/plugins/media/utils/media-common.js +1 -2
  49. package/dist/esm/plugins/media/utils/media-files.js +1 -1
  50. package/dist/esm/plugins/media/utils/media-single.js +1 -1
  51. package/dist/esm/plugins/placeholder-text/index.js +1 -1
  52. package/dist/esm/plugins/selection/commands.js +1 -2
  53. package/dist/esm/plugins/selection/gap-cursor/actions.js +2 -4
  54. package/dist/esm/plugins/selection/gap-cursor/utils.js +2 -2
  55. package/dist/esm/plugins/selection/plugin-factory.js +1 -1
  56. package/dist/esm/plugins/selection/pm-plugins/keymap.js +1 -1
  57. package/dist/esm/plugins/selection/utils.js +1 -3
  58. package/dist/esm/utils/commands.js +1 -21
  59. package/dist/esm/utils/document.js +0 -20
  60. package/dist/esm/utils/index.js +1 -1
  61. package/dist/esm/version-wrapper.js +1 -1
  62. package/dist/types/plugins/media/ui/CaptionPlaceholder/index.d.ts +0 -1
  63. package/dist/types/plugins/media/utils/media-files.d.ts +1 -2
  64. package/dist/types/plugins/selection/commands.d.ts +2 -2
  65. package/dist/types/plugins/selection/gap-cursor/actions.d.ts +1 -1
  66. package/dist/types/plugins/selection/pm-plugins/selection-main.d.ts +1 -1
  67. package/dist/types/utils/commands.d.ts +2 -12
  68. package/dist/types/utils/document.d.ts +0 -4
  69. package/dist/types/utils/index.d.ts +1 -1
  70. package/dist/types-ts4.5/plugins/media/ui/CaptionPlaceholder/index.d.ts +0 -1
  71. package/dist/types-ts4.5/plugins/media/utils/media-files.d.ts +1 -2
  72. package/dist/types-ts4.5/plugins/selection/commands.d.ts +2 -2
  73. package/dist/types-ts4.5/plugins/selection/gap-cursor/actions.d.ts +1 -1
  74. package/dist/types-ts4.5/plugins/selection/pm-plugins/selection-main.d.ts +1 -1
  75. package/dist/types-ts4.5/utils/commands.d.ts +2 -12
  76. package/dist/types-ts4.5/utils/document.d.ts +0 -4
  77. package/dist/types-ts4.5/utils/index.d.ts +1 -1
  78. package/package.json +2 -2
  79. package/dist/cjs/utils/prosemirror/position.js +0 -42
  80. package/dist/cjs/utils/table.js +0 -28
  81. package/dist/es2019/utils/prosemirror/position.js +0 -1
  82. package/dist/es2019/utils/table.js +0 -22
  83. package/dist/esm/utils/prosemirror/position.js +0 -1
  84. package/dist/esm/utils/table.js +0 -22
  85. package/dist/types/utils/prosemirror/position.d.ts +0 -1
  86. package/dist/types/utils/table.d.ts +0 -2
  87. package/dist/types-ts4.5/utils/prosemirror/position.d.ts +0 -1
  88. package/dist/types-ts4.5/utils/table.d.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { Dispatch } from '../../../event-dispatcher';
4
- import type { DispatchAnalyticsEvent } from '../../analytics';
4
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
5
  import type { SelectionPluginOptions, SelectionPluginState } from '../types';
6
6
  export declare const getInitialState: (state: EditorState) => SelectionPluginState;
7
7
  export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, options?: SelectionPluginOptions) => SafePlugin<SelectionPluginState>;
@@ -1,6 +1,6 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { Command, HigherOrderCommand } from '@atlaskit/editor-common/types';
3
+ import type { HigherOrderCommand } from '@atlaskit/editor-common/types';
4
4
  /**
5
5
  * Creates a filter that checks if the node at a given number of parents above the current
6
6
  * selection is of the correct node type.
@@ -11,14 +11,4 @@ import type { Command, HigherOrderCommand } from '@atlaskit/editor-common/types'
11
11
  */
12
12
  declare const isNthParentOfType: (nodeType: string, depthAway: number) => (state: EditorState, view?: EditorView) => boolean;
13
13
  declare const withScrollIntoView: HigherOrderCommand;
14
- /**
15
- * Insert content, delete a range and create a new selection
16
- * This function automatically handles the mapping of positions for insertion and deletion.
17
- * The new selection is handled as a function since it may not always be necessary to resolve a position to the transactions mapping
18
- *
19
- * @param getSelectionResolvedPos get the resolved position to create a new selection
20
- * @param insertions content to insert at the specified position
21
- * @param deletions the ranges to delete
22
- */
23
- declare const selectNode: (pos: number) => Command;
24
- export { isNthParentOfType, withScrollIntoView, selectNode };
14
+ export { isNthParentOfType, withScrollIntoView };
@@ -6,10 +6,6 @@ import type { Transformer, ReplaceRawValue } from '@atlaskit/editor-common/types
6
6
  import type { DispatchAnalyticsEvent } from '../plugins/analytics/types/dispatch-analytics-event';
7
7
  import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
8
8
  export { findFarthestParentNode } from '@atlaskit/editor-common/utils';
9
- /**
10
- * Checks if a node has any content. Ignores node that only contain empty block nodes.
11
- */
12
- export declare function isNodeEmpty(node?: Node): boolean;
13
9
  export declare function isInEmptyLine(state: EditorState): boolean;
14
10
  export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
15
11
  export type ChangedFn = (node: Node, pos: number, parent: Node | null, index: number) => boolean | void;
@@ -3,7 +3,7 @@ import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state'
3
3
  import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
4
4
  export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, } from '@atlaskit/editor-common/utils';
5
5
  export { insideTable } from '@atlaskit/editor-common/core-utils';
6
- export { isNodeEmpty, findFarthestParentNode, nodesBetweenChanged, getNodesCount, } from './document';
6
+ export { findFarthestParentNode, nodesBetweenChanged, getNodesCount, } from './document';
7
7
  export { isParagraph, isText, isLinkMark } from './nodes';
8
8
  export { setNodeSelection, setTextSelection } from './selection';
9
9
  export type { JSONDocNode };
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- export declare const CAPTION_PLACEHOLDER_ID = "caption-placeholder";
4
3
  declare const _default: React.ForwardRefExoticComponent<{
5
4
  onClick: () => void;
6
5
  } & React.RefAttributes<HTMLSpanElement>>;
@@ -1,8 +1,7 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { MediaState } from '../types';
4
- import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
5
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
+ import type { InputMethodInsertMedia, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
5
  export interface Range {
7
6
  start: number;
8
7
  end: number;
@@ -1,8 +1,8 @@
1
1
  import { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { Command } from '../../types';
3
+ import type { Command } from '@atlaskit/editor-common/types';
4
4
  import { RelativeSelectionPos } from './types';
5
- export declare const setSelectionRelativeToNode: (selectionRelativeToNode?: RelativeSelectionPos, selection?: Selection | null) => import("@atlaskit/editor-common/types").Command;
5
+ export declare const setSelectionRelativeToNode: (selectionRelativeToNode?: RelativeSelectionPos, selection?: Selection | null) => Command;
6
6
  export declare const arrowRight: Command;
7
7
  export declare const arrowLeft: Command;
8
8
  export declare const setSelectionInsideAtNodeEnd: (selectionRelativeToNode: RelativeSelectionPos, node: PmNode, from: number, to: number) => Command;
@@ -2,7 +2,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
2
2
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
3
  import { Direction } from './direction';
4
4
  import { Side } from './selection';
5
- import type { Command } from '../../../types';
5
+ import type { Command } from '@atlaskit/editor-common/types';
6
6
  export type DirectionString = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward';
7
7
  export declare const shouldSkipGapCursor: (direction: Direction, state: EditorState, $pos: ResolvedPos) => boolean;
8
8
  export declare const arrow: (dir: Direction, endOfTextblock?: ((dir: DirectionString, state?: EditorState) => boolean) | undefined) => Command;
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { Dispatch } from '../../../event-dispatcher';
4
- import type { DispatchAnalyticsEvent } from '../../analytics';
4
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
5
  import type { SelectionPluginOptions, SelectionPluginState } from '../types';
6
6
  export declare const getInitialState: (state: EditorState) => SelectionPluginState;
7
7
  export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, options?: SelectionPluginOptions) => SafePlugin<SelectionPluginState>;
@@ -1,6 +1,6 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { Command, HigherOrderCommand } from '@atlaskit/editor-common/types';
3
+ import type { HigherOrderCommand } from '@atlaskit/editor-common/types';
4
4
  /**
5
5
  * Creates a filter that checks if the node at a given number of parents above the current
6
6
  * selection is of the correct node type.
@@ -11,14 +11,4 @@ import type { Command, HigherOrderCommand } from '@atlaskit/editor-common/types'
11
11
  */
12
12
  declare const isNthParentOfType: (nodeType: string, depthAway: number) => (state: EditorState, view?: EditorView) => boolean;
13
13
  declare const withScrollIntoView: HigherOrderCommand;
14
- /**
15
- * Insert content, delete a range and create a new selection
16
- * This function automatically handles the mapping of positions for insertion and deletion.
17
- * The new selection is handled as a function since it may not always be necessary to resolve a position to the transactions mapping
18
- *
19
- * @param getSelectionResolvedPos get the resolved position to create a new selection
20
- * @param insertions content to insert at the specified position
21
- * @param deletions the ranges to delete
22
- */
23
- declare const selectNode: (pos: number) => Command;
24
- export { isNthParentOfType, withScrollIntoView, selectNode };
14
+ export { isNthParentOfType, withScrollIntoView };
@@ -6,10 +6,6 @@ import type { Transformer, ReplaceRawValue } from '@atlaskit/editor-common/types
6
6
  import type { DispatchAnalyticsEvent } from '../plugins/analytics/types/dispatch-analytics-event';
7
7
  import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
8
8
  export { findFarthestParentNode } from '@atlaskit/editor-common/utils';
9
- /**
10
- * Checks if a node has any content. Ignores node that only contain empty block nodes.
11
- */
12
- export declare function isNodeEmpty(node?: Node): boolean;
13
9
  export declare function isInEmptyLine(state: EditorState): boolean;
14
10
  export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
15
11
  export type ChangedFn = (node: Node, pos: number, parent: Node | null, index: number) => boolean | void;
@@ -3,7 +3,7 @@ import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state'
3
3
  import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
4
4
  export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, } from '@atlaskit/editor-common/utils';
5
5
  export { insideTable } from '@atlaskit/editor-common/core-utils';
6
- export { isNodeEmpty, findFarthestParentNode, nodesBetweenChanged, getNodesCount, } from './document';
6
+ export { findFarthestParentNode, nodesBetweenChanged, getNodesCount, } from './document';
7
7
  export { isParagraph, isText, isLinkMark } from './nodes';
8
8
  export { setNodeSelection, setTextSelection } from './selection';
9
9
  export type { JSONDocNode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.44.3",
3
+ "version": "187.44.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/code": "^14.6.0",
56
56
  "@atlaskit/date": "^0.10.0",
57
57
  "@atlaskit/datetime-picker": "^12.10.0",
58
- "@atlaskit/editor-common": "^75.2.0",
58
+ "@atlaskit/editor-common": "^75.3.0",
59
59
  "@atlaskit/editor-json-transformer": "^8.10.0",
60
60
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
61
61
  "@atlaskit/editor-palette": "1.5.1",
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "atTheBeginningOfBlock", {
7
- enumerable: true,
8
- get: function get() {
9
- return _selection.atTheBeginningOfBlock;
10
- }
11
- });
12
- Object.defineProperty(exports, "atTheBeginningOfDoc", {
13
- enumerable: true,
14
- get: function get() {
15
- return _selection.atTheBeginningOfDoc;
16
- }
17
- });
18
- Object.defineProperty(exports, "atTheEndOfBlock", {
19
- enumerable: true,
20
- get: function get() {
21
- return _selection.atTheEndOfBlock;
22
- }
23
- });
24
- Object.defineProperty(exports, "atTheEndOfDoc", {
25
- enumerable: true,
26
- get: function get() {
27
- return _selection.atTheEndOfDoc;
28
- }
29
- });
30
- Object.defineProperty(exports, "endPositionOfParent", {
31
- enumerable: true,
32
- get: function get() {
33
- return _selection.endPositionOfParent;
34
- }
35
- });
36
- Object.defineProperty(exports, "startPositionOfParent", {
37
- enumerable: true,
38
- get: function get() {
39
- return _selection.startPositionOfParent;
40
- }
41
- });
42
- var _selection = require("@atlaskit/editor-common/selection");
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isPositionNearTableRow = isPositionNearTableRow;
7
- /*
8
- isPositionNearTableRow()
9
- Returns true when a sibling node, or any of the parent's sibling
10
- nodes are a tableRow
11
- */
12
- function isPositionNearTableRow(pos, schema, direction) {
13
- if (!schema.nodes.tableRow) {
14
- return false;
15
- }
16
- var doc = pos.doc;
17
- var resolved = pos;
18
- var sibling = direction === 'before' ? 'nodeBefore' : 'nodeAfter';
19
- while (resolved.depth > 0) {
20
- var _resolved$sibling;
21
- var siblingType = (_resolved$sibling = resolved[sibling]) === null || _resolved$sibling === void 0 ? void 0 : _resolved$sibling.type;
22
- if (siblingType === schema.nodes.tableRow) {
23
- return true;
24
- }
25
- resolved = doc.resolve(resolved[direction]());
26
- }
27
- return false;
28
- }
@@ -1 +0,0 @@
1
- export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, startPositionOfParent } from '@atlaskit/editor-common/selection';
@@ -1,22 +0,0 @@
1
- /*
2
- isPositionNearTableRow()
3
- Returns true when a sibling node, or any of the parent's sibling
4
- nodes are a tableRow
5
- */
6
- export function isPositionNearTableRow(pos, schema, direction) {
7
- if (!schema.nodes.tableRow) {
8
- return false;
9
- }
10
- let doc = pos.doc;
11
- let resolved = pos;
12
- const sibling = direction === 'before' ? 'nodeBefore' : 'nodeAfter';
13
- while (resolved.depth > 0) {
14
- var _resolved$sibling;
15
- const siblingType = (_resolved$sibling = resolved[sibling]) === null || _resolved$sibling === void 0 ? void 0 : _resolved$sibling.type;
16
- if (siblingType === schema.nodes.tableRow) {
17
- return true;
18
- }
19
- resolved = doc.resolve(resolved[direction]());
20
- }
21
- return false;
22
- }
@@ -1 +0,0 @@
1
- export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, startPositionOfParent } from '@atlaskit/editor-common/selection';
@@ -1,22 +0,0 @@
1
- /*
2
- isPositionNearTableRow()
3
- Returns true when a sibling node, or any of the parent's sibling
4
- nodes are a tableRow
5
- */
6
- export function isPositionNearTableRow(pos, schema, direction) {
7
- if (!schema.nodes.tableRow) {
8
- return false;
9
- }
10
- var doc = pos.doc;
11
- var resolved = pos;
12
- var sibling = direction === 'before' ? 'nodeBefore' : 'nodeAfter';
13
- while (resolved.depth > 0) {
14
- var _resolved$sibling;
15
- var siblingType = (_resolved$sibling = resolved[sibling]) === null || _resolved$sibling === void 0 ? void 0 : _resolved$sibling.type;
16
- if (siblingType === schema.nodes.tableRow) {
17
- return true;
18
- }
19
- resolved = doc.resolve(resolved[direction]());
20
- }
21
- return false;
22
- }
@@ -1 +0,0 @@
1
- export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, startPositionOfParent, } from '@atlaskit/editor-common/selection';
@@ -1,2 +0,0 @@
1
- import type { ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
2
- export declare function isPositionNearTableRow(pos: ResolvedPos, schema: Schema, direction: 'before' | 'after'): boolean;
@@ -1 +0,0 @@
1
- export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, startPositionOfParent, } from '@atlaskit/editor-common/selection';
@@ -1,2 +0,0 @@
1
- import type { ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
2
- export declare function isPositionNearTableRow(pos: ResolvedPos, schema: Schema, direction: 'before' | 'after'): boolean;