@atlaskit/editor-plugin-block-controls 8.1.3 → 8.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/CHANGELOG.md +12 -0
- package/dist/types/pm-plugins/utils/getSelection.d.ts +2 -2
- package/dist/types/pm-plugins/utils/selection.d.ts +1 -1
- package/dist/types/ui/consts.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/getSelection.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +1 -1
- package/dist/types-ts4.5/ui/consts.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -15,8 +15,8 @@ export declare const isNodeWithCodeBlock: (tr: Transaction, start: number, nodeS
|
|
|
15
15
|
* @param start The start position of the node.
|
|
16
16
|
* @returns The appropriate selection for the node.
|
|
17
17
|
*/
|
|
18
|
-
export declare const newGetSelection: (doc: PMNode, selectionEmpty: boolean, start: number) => false |
|
|
19
|
-
export declare const getSelection: (tr: Transaction, start: number, api?: ExtractInjectionAPI<BlockControlsPlugin>) => false |
|
|
18
|
+
export declare const newGetSelection: (doc: PMNode, selectionEmpty: boolean, start: number) => false | TextSelection | NodeSelection;
|
|
19
|
+
export declare const getSelection: (tr: Transaction, start: number, api?: ExtractInjectionAPI<BlockControlsPlugin>) => false | TextSelection | NodeSelection;
|
|
20
20
|
export declare const selectNode: (tr: Transaction, start: number, nodeType: string, api?: ExtractInjectionAPI<BlockControlsPlugin>) => Transaction;
|
|
21
21
|
export declare const setCursorPositionAtMovedNode: (tr: Transaction, start: number, api?: ExtractInjectionAPI<BlockControlsPlugin>) => Transaction;
|
|
22
22
|
/**
|
|
@@ -66,4 +66,4 @@ export declare const adjustSelectionBoundsForEdgePositions: ($from: ResolvedPos,
|
|
|
66
66
|
* @param $to The resolved position of the end of the selection
|
|
67
67
|
* @returns A Selection or undefined if selection is invalid
|
|
68
68
|
*/
|
|
69
|
-
export declare const createPreservedSelection: ($from: ResolvedPos, $to: ResolvedPos) =>
|
|
69
|
+
export declare const createPreservedSelection: ($from: ResolvedPos, $to: ResolvedPos) => import("@atlaskit/editor-tables").CellSelection | TextSelection | NodeSelection | undefined;
|
|
@@ -32,7 +32,7 @@ export declare const QUICK_INSERT_DIMENSIONS: {
|
|
|
32
32
|
export declare const QUICK_INSERT_LEFT_OFFSET = 16;
|
|
33
33
|
export declare const dragHandleGap: (nodeType: string, parentNodeType?: string) => number;
|
|
34
34
|
export declare const rootElementGap: (nodeType: string) => number;
|
|
35
|
-
export declare const getNestedNodeLeftPaddingMargin: (nodeType?: string) => "8px" | "16px" | "20px" | "24px" | "28px"
|
|
35
|
+
export declare const getNestedNodeLeftPaddingMargin: (nodeType?: string) => "40px" | "8px" | "16px" | "20px" | "24px" | "28px";
|
|
36
36
|
export declare const topPositionAdjustment: (nodeType: string) => number;
|
|
37
37
|
export declare const dropTargetMarginMap: {
|
|
38
38
|
[key: number]: string;
|
|
@@ -15,8 +15,8 @@ export declare const isNodeWithCodeBlock: (tr: Transaction, start: number, nodeS
|
|
|
15
15
|
* @param start The start position of the node.
|
|
16
16
|
* @returns The appropriate selection for the node.
|
|
17
17
|
*/
|
|
18
|
-
export declare const newGetSelection: (doc: PMNode, selectionEmpty: boolean, start: number) => false |
|
|
19
|
-
export declare const getSelection: (tr: Transaction, start: number, api?: ExtractInjectionAPI<BlockControlsPlugin>) => false |
|
|
18
|
+
export declare const newGetSelection: (doc: PMNode, selectionEmpty: boolean, start: number) => false | TextSelection | NodeSelection;
|
|
19
|
+
export declare const getSelection: (tr: Transaction, start: number, api?: ExtractInjectionAPI<BlockControlsPlugin>) => false | TextSelection | NodeSelection;
|
|
20
20
|
export declare const selectNode: (tr: Transaction, start: number, nodeType: string, api?: ExtractInjectionAPI<BlockControlsPlugin>) => Transaction;
|
|
21
21
|
export declare const setCursorPositionAtMovedNode: (tr: Transaction, start: number, api?: ExtractInjectionAPI<BlockControlsPlugin>) => Transaction;
|
|
22
22
|
/**
|
|
@@ -66,4 +66,4 @@ export declare const adjustSelectionBoundsForEdgePositions: ($from: ResolvedPos,
|
|
|
66
66
|
* @param $to The resolved position of the end of the selection
|
|
67
67
|
* @returns A Selection or undefined if selection is invalid
|
|
68
68
|
*/
|
|
69
|
-
export declare const createPreservedSelection: ($from: ResolvedPos, $to: ResolvedPos) =>
|
|
69
|
+
export declare const createPreservedSelection: ($from: ResolvedPos, $to: ResolvedPos) => import("@atlaskit/editor-tables").CellSelection | TextSelection | NodeSelection | undefined;
|
|
@@ -32,7 +32,7 @@ export declare const QUICK_INSERT_DIMENSIONS: {
|
|
|
32
32
|
export declare const QUICK_INSERT_LEFT_OFFSET = 16;
|
|
33
33
|
export declare const dragHandleGap: (nodeType: string, parentNodeType?: string) => number;
|
|
34
34
|
export declare const rootElementGap: (nodeType: string) => number;
|
|
35
|
-
export declare const getNestedNodeLeftPaddingMargin: (nodeType?: string) => "8px" | "16px" | "20px" | "24px" | "28px"
|
|
35
|
+
export declare const getNestedNodeLeftPaddingMargin: (nodeType?: string) => "40px" | "8px" | "16px" | "20px" | "24px" | "28px";
|
|
36
36
|
export declare const topPositionAdjustment: (nodeType: string) => number;
|
|
37
37
|
export declare const dropTargetMarginMap: {
|
|
38
38
|
[key: number]: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.5",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
55
55
|
"@atlaskit/primitives": "^18.0.0",
|
|
56
56
|
"@atlaskit/theme": "^21.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^20.0.0",
|
|
58
58
|
"@atlaskit/tokens": "^11.0.0",
|
|
59
59
|
"@atlaskit/tooltip": "^20.14.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|