@atlaskit/editor-common 74.44.1 → 74.45.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/CHANGELOG.md +15 -0
- package/dist/cjs/icons/shared/table.js +24 -7
- package/dist/cjs/mark/commands.js +21 -26
- package/dist/cjs/media-single/constants.js +3 -1
- package/dist/cjs/media-single/index.js +6 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/list-number.js +18 -6
- package/dist/cjs/quick-insert/assets/list.js +21 -10
- package/dist/cjs/quick-insert/assets/quote.js +15 -3
- package/dist/cjs/quick-insert/assets/status.js +55 -16
- package/dist/cjs/selection/index.js +36 -0
- package/dist/cjs/selection/utils.js +46 -1
- package/dist/cjs/styles/shared/media-single.js +1 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/styled.js +1 -8
- package/dist/cjs/utils/index.js +150 -0
- package/dist/cjs/utils/rich-media-utils.js +3 -6
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/icons/shared/table.js +25 -7
- package/dist/es2019/mark/commands.js +21 -28
- package/dist/es2019/mark/index.js +1 -1
- package/dist/es2019/media-single/constants.js +1 -0
- package/dist/es2019/media-single/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/list-number.js +19 -6
- package/dist/es2019/quick-insert/assets/list.js +22 -9
- package/dist/es2019/quick-insert/assets/quote.js +16 -3
- package/dist/es2019/quick-insert/assets/status.js +56 -15
- package/dist/es2019/selection/index.js +1 -1
- package/dist/es2019/selection/utils.js +52 -1
- package/dist/es2019/styles/shared/media-single.js +3 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -11
- package/dist/es2019/utils/index.js +139 -1
- package/dist/es2019/utils/rich-media-utils.js +3 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/icons/shared/table.js +24 -7
- package/dist/esm/mark/commands.js +21 -26
- package/dist/esm/mark/index.js +1 -1
- package/dist/esm/media-single/constants.js +1 -0
- package/dist/esm/media-single/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/list-number.js +18 -6
- package/dist/esm/quick-insert/assets/list.js +21 -9
- package/dist/esm/quick-insert/assets/quote.js +15 -3
- package/dist/esm/quick-insert/assets/status.js +55 -15
- package/dist/esm/selection/index.js +1 -1
- package/dist/esm/selection/utils.js +40 -1
- package/dist/esm/styles/shared/media-single.js +1 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -8
- package/dist/esm/utils/index.js +141 -1
- package/dist/esm/utils/rich-media-utils.js +3 -6
- package/dist/esm/version.json +1 -1
- package/dist/types/collab/index.d.ts +4 -1
- package/dist/types/mark/commands.d.ts +4 -4
- package/dist/types/mark/index.d.ts +1 -1
- package/dist/types/media-single/constants.d.ts +1 -0
- package/dist/types/media-single/index.d.ts +1 -1
- package/dist/types/selection/index.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +9 -2
- package/dist/types/utils/index.d.ts +17 -0
- package/dist/types/utils/input-rules.d.ts +3 -2
- package/dist/types/utils/rich-media-utils.d.ts +4 -4
- package/dist/types-ts4.5/collab/index.d.ts +4 -1
- package/dist/types-ts4.5/mark/commands.d.ts +4 -4
- package/dist/types-ts4.5/mark/index.d.ts +1 -1
- package/dist/types-ts4.5/media-single/constants.d.ts +1 -0
- package/dist/types-ts4.5/media-single/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/utils.d.ts +9 -2
- package/dist/types-ts4.5/utils/index.d.ts +17 -0
- package/dist/types-ts4.5/utils/input-rules.d.ts +3 -2
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +4 -4
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export declare const MEDIA_SINGLE_HANDLE_MARGIN = 12;
|
|
|
6
6
|
export declare const MEDIA_SINGLE_GUTTER_SIZE: number;
|
|
7
7
|
export declare const DEFAULT_IMAGE_WIDTH = 250;
|
|
8
8
|
export declare const DEFAULT_IMAGE_HEIGHT = 200;
|
|
9
|
+
export declare const MEDIA_SINGLE_RESIZE_THROTTLE_TIME = 100;
|
|
9
10
|
export declare enum Layout {
|
|
10
11
|
FULL_WIDTH = "full-width",
|
|
11
12
|
WIDE = "wide",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, } from './constants';
|
|
1
|
+
export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, } from './constants';
|
|
2
2
|
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, } from './utils';
|
|
@@ -2,4 +2,4 @@ export { RelativeSelectionPos } from './types';
|
|
|
2
2
|
export type { SelectionPluginState, EditorSelectionAPI } from './types';
|
|
3
3
|
export { GapCursorSelection, Side, JSON_ID, GapBookmark, } from './gap-cursor/selection';
|
|
4
4
|
export { isIgnored, isValidTargetNode } from './gap-cursor/utils';
|
|
5
|
-
export {
|
|
5
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent, } from './utils';
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
1
|
+
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
4
|
export declare const isSelectionAtStartOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos) => boolean;
|
|
4
5
|
export declare const isSelectionAtEndOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos) => boolean;
|
|
6
|
+
export declare function atTheEndOfDoc(state: EditorState): boolean;
|
|
7
|
+
export declare function atTheBeginningOfDoc(state: EditorState): boolean;
|
|
8
|
+
export declare function atTheEndOfBlock(state: EditorState): boolean;
|
|
9
|
+
export declare function atTheBeginningOfBlock(state: EditorState): boolean;
|
|
10
|
+
export declare function startPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
11
|
+
export declare function endPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
1
4
|
export { canApplyAnnotationOnRange, getAnnotationIdsFromRange, } from './annotation';
|
|
2
5
|
export { getExtensionLozengeData } from './macro';
|
|
3
6
|
export type { Params } from './macro';
|
|
@@ -59,3 +62,17 @@ export { filterCommand, isEmptySelectionAtStart, isEmptySelectionAtEnd, insertCo
|
|
|
59
62
|
export type { WalkNode } from './commands';
|
|
60
63
|
export declare function shallowEqual(obj1?: any, obj2?: any): boolean;
|
|
61
64
|
export { inputRuleWithAnalytics, createWrappingJoinRule, createRule, } from './input-rules';
|
|
65
|
+
export declare function isSelectionInsideLastNodeInDocument(selection: Selection): boolean;
|
|
66
|
+
export declare const isInListItem: (state: EditorState) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Find the farthest node given a condition
|
|
69
|
+
* @param predicate Function to check the node
|
|
70
|
+
*/
|
|
71
|
+
export declare const findFarthestParentNode: (predicate: (node: PMNode) => boolean) => ($pos: ResolvedPos) => ContentNodeWithPos | null;
|
|
72
|
+
export declare const insideTableCell: (state: EditorState) => boolean;
|
|
73
|
+
export declare function checkNodeDown(selection: Selection, doc: PMNode, filter: (node: PMNode) => boolean): boolean;
|
|
74
|
+
export declare const isEmptyNode: (schema: Schema) => (node: PMNode) => boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Checks if a node has any content. Ignores node that only contain empty block nodes.
|
|
77
|
+
*/
|
|
78
|
+
export declare function isNodeEmpty(node?: PMNode): boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '../analytics';
|
|
4
|
+
import { JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST } from '../analytics';
|
|
5
|
+
import type { InputRuleHandler, InputRuleWrapper } from '../types';
|
|
5
6
|
type GetPayload = AnalyticsEventPayload | ((state: EditorState, matchResult: RegExpExecArray) => AnalyticsEventPayload);
|
|
6
7
|
export declare const inputRuleWithAnalytics: (getPayload: GetPayload, analyticsApi: EditorAnalyticsAPI | undefined) => (originalRule: InputRuleWrapper) => InputRuleWrapper;
|
|
7
8
|
type WrappingRuleProps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { SnapPointsProps } from '../types';
|
|
1
|
+
import type { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { SnapPointsProps } from '../types';
|
|
4
4
|
export declare const shouldAddDefaultWrappedWidth: (layout: RichMediaLayout, width?: number, lineLength?: number) => boolean | 0 | undefined;
|
|
5
5
|
export declare const nonWrappedLayouts: RichMediaLayout[];
|
|
6
6
|
export declare const floatingLayouts: string[];
|
|
7
|
-
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean
|
|
7
|
+
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean) => boolean;
|
|
8
8
|
export declare const alignAttributes: (layout: RichMediaLayout, oldAttrs: RichMediaAttributes, gridSize: number | undefined, originalWidth: number, lineLength?: number) => RichMediaAttributes;
|
|
9
9
|
export declare function calculateSnapPoints({ $pos, akEditorWideLayoutWidth, allowBreakoutSnapPoints, containerWidth, gridSize, gridWidth, insideInlineLike, insideLayout, isVideoFile, lineLength, offsetLeft, wrappedLayout, }: SnapPointsProps): number[];
|
|
@@ -369,8 +369,11 @@ export interface CollabInviteToEditProps {
|
|
|
369
369
|
}
|
|
370
370
|
export interface CollabAnalyticsProps {
|
|
371
371
|
/**
|
|
372
|
-
* @description Control
|
|
372
|
+
* @description Control whether Synchrony entity error events are tracked
|
|
373
373
|
*/
|
|
374
374
|
EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
|
|
375
375
|
}
|
|
376
|
+
export interface CollabEventLocalStepData {
|
|
377
|
+
steps: Array<Step>;
|
|
378
|
+
}
|
|
376
379
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Mark, MarkType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PluginCommand } from '../types';
|
|
4
4
|
export declare function filterChildrenBetween(doc: PMNode, from: number, to: number, predicate: (node: PMNode, pos: number, parent: PMNode | null) => boolean | undefined): {
|
|
5
5
|
node: PMNode;
|
|
6
6
|
pos: number;
|
|
@@ -8,11 +8,11 @@ export declare function filterChildrenBetween(doc: PMNode, from: number, to: num
|
|
|
8
8
|
export declare const transformSmartCharsMentionsAndEmojis: (from: number, to: number, tr: Transaction) => void;
|
|
9
9
|
export declare const applyMarkOnRange: (from: number, to: number, removeMark: boolean, mark: Mark, tr: Transaction) => Transaction;
|
|
10
10
|
/**
|
|
11
|
-
* A
|
|
12
|
-
*
|
|
11
|
+
* A custom version of the ProseMirror toggleMark, where we only toggle marks
|
|
12
|
+
* on text nodes in the selection rather than all inline nodes.
|
|
13
13
|
* @param markType
|
|
14
14
|
* @param attrs
|
|
15
15
|
*/
|
|
16
16
|
export declare const toggleMark: (markType: MarkType, attrs?: {
|
|
17
17
|
[key: string]: any;
|
|
18
|
-
} | undefined) =>
|
|
18
|
+
} | undefined) => PluginCommand;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { transformSmartCharsMentionsAndEmojis, applyMarkOnRange,
|
|
1
|
+
export { transformSmartCharsMentionsAndEmojis, applyMarkOnRange, filterChildrenBetween, toggleMark, } from './commands';
|
|
2
2
|
export { anyMarkActive } from './text-formatting';
|
|
@@ -6,6 +6,7 @@ export declare const MEDIA_SINGLE_HANDLE_MARGIN = 12;
|
|
|
6
6
|
export declare const MEDIA_SINGLE_GUTTER_SIZE: number;
|
|
7
7
|
export declare const DEFAULT_IMAGE_WIDTH = 250;
|
|
8
8
|
export declare const DEFAULT_IMAGE_HEIGHT = 200;
|
|
9
|
+
export declare const MEDIA_SINGLE_RESIZE_THROTTLE_TIME = 100;
|
|
9
10
|
export declare enum Layout {
|
|
10
11
|
FULL_WIDTH = "full-width",
|
|
11
12
|
WIDE = "wide",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, } from './constants';
|
|
1
|
+
export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, } from './constants';
|
|
2
2
|
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, } from './utils';
|
|
@@ -2,4 +2,4 @@ export { RelativeSelectionPos } from './types';
|
|
|
2
2
|
export type { SelectionPluginState, EditorSelectionAPI } from './types';
|
|
3
3
|
export { GapCursorSelection, Side, JSON_ID, GapBookmark, } from './gap-cursor/selection';
|
|
4
4
|
export { isIgnored, isValidTargetNode } from './gap-cursor/utils';
|
|
5
|
-
export {
|
|
5
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent, } from './utils';
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
1
|
+
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
4
|
export declare const isSelectionAtStartOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos) => boolean;
|
|
4
5
|
export declare const isSelectionAtEndOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos) => boolean;
|
|
6
|
+
export declare function atTheEndOfDoc(state: EditorState): boolean;
|
|
7
|
+
export declare function atTheBeginningOfDoc(state: EditorState): boolean;
|
|
8
|
+
export declare function atTheEndOfBlock(state: EditorState): boolean;
|
|
9
|
+
export declare function atTheBeginningOfBlock(state: EditorState): boolean;
|
|
10
|
+
export declare function startPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
11
|
+
export declare function endPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
1
4
|
export { canApplyAnnotationOnRange, getAnnotationIdsFromRange, } from './annotation';
|
|
2
5
|
export { getExtensionLozengeData } from './macro';
|
|
3
6
|
export type { Params } from './macro';
|
|
@@ -59,3 +62,17 @@ export { filterCommand, isEmptySelectionAtStart, isEmptySelectionAtEnd, insertCo
|
|
|
59
62
|
export type { WalkNode } from './commands';
|
|
60
63
|
export declare function shallowEqual(obj1?: any, obj2?: any): boolean;
|
|
61
64
|
export { inputRuleWithAnalytics, createWrappingJoinRule, createRule, } from './input-rules';
|
|
65
|
+
export declare function isSelectionInsideLastNodeInDocument(selection: Selection): boolean;
|
|
66
|
+
export declare const isInListItem: (state: EditorState) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Find the farthest node given a condition
|
|
69
|
+
* @param predicate Function to check the node
|
|
70
|
+
*/
|
|
71
|
+
export declare const findFarthestParentNode: (predicate: (node: PMNode) => boolean) => ($pos: ResolvedPos) => ContentNodeWithPos | null;
|
|
72
|
+
export declare const insideTableCell: (state: EditorState) => boolean;
|
|
73
|
+
export declare function checkNodeDown(selection: Selection, doc: PMNode, filter: (node: PMNode) => boolean): boolean;
|
|
74
|
+
export declare const isEmptyNode: (schema: Schema) => (node: PMNode) => boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Checks if a node has any content. Ignores node that only contain empty block nodes.
|
|
77
|
+
*/
|
|
78
|
+
export declare function isNodeEmpty(node?: PMNode): boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '../analytics';
|
|
4
|
+
import { JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST } from '../analytics';
|
|
5
|
+
import type { InputRuleHandler, InputRuleWrapper } from '../types';
|
|
5
6
|
type GetPayload = AnalyticsEventPayload | ((state: EditorState, matchResult: RegExpExecArray) => AnalyticsEventPayload);
|
|
6
7
|
export declare const inputRuleWithAnalytics: (getPayload: GetPayload, analyticsApi: EditorAnalyticsAPI | undefined) => (originalRule: InputRuleWrapper) => InputRuleWrapper;
|
|
7
8
|
type WrappingRuleProps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { SnapPointsProps } from '../types';
|
|
1
|
+
import type { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { SnapPointsProps } from '../types';
|
|
4
4
|
export declare const shouldAddDefaultWrappedWidth: (layout: RichMediaLayout, width?: number, lineLength?: number) => boolean | 0 | undefined;
|
|
5
5
|
export declare const nonWrappedLayouts: RichMediaLayout[];
|
|
6
6
|
export declare const floatingLayouts: string[];
|
|
7
|
-
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean
|
|
7
|
+
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean) => boolean;
|
|
8
8
|
export declare const alignAttributes: (layout: RichMediaLayout, oldAttrs: RichMediaAttributes, gridSize: number | undefined, originalWidth: number, lineLength?: number) => RichMediaAttributes;
|
|
9
9
|
export declare function calculateSnapPoints({ $pos, akEditorWideLayoutWidth, allowBreakoutSnapPoints, containerWidth, gridSize, gridWidth, insideInlineLike, insideLayout, isVideoFile, lineLength, offsetLeft, wrappedLayout, }: SnapPointsProps): number[];
|
package/package.json
CHANGED