@atlaskit/editor-plugin-block-menu 0.0.19 → 1.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/CHANGELOG.md +18 -0
- package/dist/cjs/editor-commands/transforms/utils.js +1 -1
- package/dist/es2019/editor-commands/transforms/utils.js +1 -1
- package/dist/esm/editor-commands/transforms/utils.js +1 -1
- package/dist/types/editor-commands/transforms/types.d.ts +3 -3
- package/dist/types/editor-commands/transforms/utils.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/transforms/types.d.ts +3 -3
- package/dist/types-ts4.5/editor-commands/transforms/utils.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e882e86092666`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e882e86092666) -
|
|
8
|
+
[ux] Register expand, layout and code block itmes in block menu. Update panel item.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 0.0.20
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`652bf219a308e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/652bf219a308e) -
|
|
16
|
+
[ux] ED-28581: Added isSelected state for block type and lists"
|
|
17
|
+
- [`652bf219a308e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/652bf219a308e) -
|
|
18
|
+
[ux] ED-28581: isSelected for block type and list
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 0.0.19
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export type FormatNodeTargetType = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'paragraph' | 'blockquote' | 'expand' | 'panel' | '
|
|
3
|
+
export type FormatNodeTargetType = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'paragraph' | 'blockquote' | 'expand' | 'layout' | 'panel' | 'codeBlock' | 'bulletList' | 'orderedList' | 'taskList';
|
|
4
4
|
export interface TransformContext {
|
|
5
|
-
tr: Transaction;
|
|
6
5
|
sourceNode: PMNode;
|
|
7
6
|
sourcePos: number | null;
|
|
8
|
-
targetNodeType: NodeType;
|
|
9
7
|
targetAttrs?: Record<string, unknown>;
|
|
8
|
+
targetNodeType: NodeType;
|
|
9
|
+
tr: Transaction;
|
|
10
10
|
}
|
|
11
11
|
export type TransformFunction = (context: TransformContext) => Transaction | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { FormatNodeTargetType } from './types';
|
|
3
3
|
export declare const getTargetNodeInfo: (targetType: FormatNodeTargetType, nodes: Record<string, NodeType>) => {
|
|
4
|
-
nodeType: NodeType;
|
|
5
4
|
attrs?: Record<string, unknown>;
|
|
5
|
+
nodeType: NodeType;
|
|
6
6
|
} | null;
|
|
7
7
|
export declare const isBlockNode: (node: PMNode) => boolean;
|
|
8
8
|
export declare const isListNode: (node: PMNode) => boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export type FormatNodeTargetType = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'paragraph' | 'blockquote' | 'expand' | 'panel' | '
|
|
3
|
+
export type FormatNodeTargetType = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'paragraph' | 'blockquote' | 'expand' | 'layout' | 'panel' | 'codeBlock' | 'bulletList' | 'orderedList' | 'taskList';
|
|
4
4
|
export interface TransformContext {
|
|
5
|
-
tr: Transaction;
|
|
6
5
|
sourceNode: PMNode;
|
|
7
6
|
sourcePos: number | null;
|
|
8
|
-
targetNodeType: NodeType;
|
|
9
7
|
targetAttrs?: Record<string, unknown>;
|
|
8
|
+
targetNodeType: NodeType;
|
|
9
|
+
tr: Transaction;
|
|
10
10
|
}
|
|
11
11
|
export type TransformFunction = (context: TransformContext) => Transaction | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { FormatNodeTargetType } from './types';
|
|
3
3
|
export declare const getTargetNodeInfo: (targetType: FormatNodeTargetType, nodes: Record<string, NodeType>) => {
|
|
4
|
-
nodeType: NodeType;
|
|
5
4
|
attrs?: Record<string, unknown>;
|
|
5
|
+
nodeType: NodeType;
|
|
6
6
|
} | null;
|
|
7
7
|
export declare const isBlockNode: (node: PMNode) => boolean;
|
|
8
8
|
export declare const isListNode: (node: PMNode) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/css": "^0.12.0",
|
|
32
32
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
33
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
34
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
35
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
36
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
33
|
+
"@atlaskit/editor-plugin-block-controls": "^5.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-decorations": "^4.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-selection": "^4.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-user-intent": "^2.0.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
39
39
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^
|
|
49
|
+
"@atlaskit/editor-common": "^108.0.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
52
52
|
},
|