@atlaskit/editor-plugin-block-type 9.0.7 → 9.0.8
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 +11 -0
- package/dist/cjs/pm-plugins/ui/toolbar-components.js +1 -5
- package/dist/cjs/ui/HeadingBlockMenuItem.js +2 -2
- package/dist/cjs/ui/ParagraphBlockMenuItem.js +2 -2
- package/dist/cjs/ui/QuoteBlockMenuItem.js +2 -2
- package/dist/es2019/pm-plugins/ui/toolbar-components.js +1 -5
- package/dist/es2019/ui/HeadingBlockMenuItem.js +2 -2
- package/dist/es2019/ui/ParagraphBlockMenuItem.js +2 -2
- package/dist/es2019/ui/QuoteBlockMenuItem.js +2 -2
- package/dist/esm/pm-plugins/ui/toolbar-components.js +1 -5
- package/dist/esm/ui/HeadingBlockMenuItem.js +2 -2
- package/dist/esm/ui/ParagraphBlockMenuItem.js +2 -2
- package/dist/esm/ui/QuoteBlockMenuItem.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 9.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`482bcdc75598e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/482bcdc75598e) -
|
|
8
|
+
ED-29462 Clean up platform_editor_toolbar_aifc_responsiveness_update
|
|
9
|
+
- [`26917199e153a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26917199e153a) -
|
|
10
|
+
ED-29473 Add inputMethod attribute for block menu opened and switch inputMethod and triggeredFrom
|
|
11
|
+
attributes for element converted event
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 9.0.7
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
17
17
|
var toolbarComponents = [{
|
|
18
18
|
type: _toolbar.TEXT_STYLES_GROUP.type,
|
|
19
19
|
key: _toolbar.TEXT_STYLES_GROUP.key,
|
|
20
|
-
parents:
|
|
20
|
+
parents: [{
|
|
21
21
|
type: _toolbar.TEXT_SECTION.type,
|
|
22
22
|
key: _toolbar.TEXT_SECTION.key,
|
|
23
23
|
rank: _toolbar.TEXT_SECTION_RANK[_toolbar.TEXT_STYLES_GROUP.key]
|
|
@@ -25,10 +25,6 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
25
25
|
type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
26
26
|
key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
27
27
|
rank: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.TEXT_STYLES_GROUP.key]
|
|
28
|
-
}] : [{
|
|
29
|
-
type: _toolbar.TEXT_SECTION.type,
|
|
30
|
-
key: _toolbar.TEXT_SECTION.key,
|
|
31
|
-
rank: _toolbar.TEXT_SECTION_RANK[_toolbar.TEXT_STYLES_GROUP.key]
|
|
32
28
|
}]
|
|
33
29
|
}, {
|
|
34
30
|
type: _toolbar.TEXT_STYLES_MENU.type,
|
|
@@ -41,8 +41,8 @@ var HeadingBlockMenuItem = function HeadingBlockMenuItem(_ref) {
|
|
|
41
41
|
}
|
|
42
42
|
if (!isSelected) {
|
|
43
43
|
var _api$blockMenu;
|
|
44
|
-
var
|
|
45
|
-
var
|
|
44
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
45
|
+
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
46
46
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode("heading".concat(level), {
|
|
47
47
|
inputMethod: inputMethod,
|
|
48
48
|
triggeredFrom: triggeredFrom
|
|
@@ -30,8 +30,8 @@ var ParagraphBlockMenuItem = function ParagraphBlockMenuItem(_ref) {
|
|
|
30
30
|
}
|
|
31
31
|
if (!isParagraph) {
|
|
32
32
|
var _api$blockMenu;
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
34
|
+
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
35
35
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode("paragraph", {
|
|
36
36
|
inputMethod: inputMethod,
|
|
37
37
|
triggeredFrom: triggeredFrom
|
|
@@ -22,8 +22,8 @@ var QuoteBlockMenuItem = function QuoteBlockMenuItem(_ref) {
|
|
|
22
22
|
var handleClick = function handleClick(event) {
|
|
23
23
|
if (!isBlockQuote) {
|
|
24
24
|
var _api$blockMenu;
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
26
|
+
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
27
27
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode("blockquote", {
|
|
28
28
|
inputMethod: inputMethod,
|
|
29
29
|
triggeredFrom: triggeredFrom
|
|
@@ -9,7 +9,7 @@ export const getToolbarComponents = api => {
|
|
|
9
9
|
const toolbarComponents = [{
|
|
10
10
|
type: TEXT_STYLES_GROUP.type,
|
|
11
11
|
key: TEXT_STYLES_GROUP.key,
|
|
12
|
-
parents:
|
|
12
|
+
parents: [{
|
|
13
13
|
type: TEXT_SECTION.type,
|
|
14
14
|
key: TEXT_SECTION.key,
|
|
15
15
|
rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
|
|
@@ -17,10 +17,6 @@ export const getToolbarComponents = api => {
|
|
|
17
17
|
type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
18
18
|
key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
19
19
|
rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[TEXT_STYLES_GROUP.key]
|
|
20
|
-
}] : [{
|
|
21
|
-
type: TEXT_SECTION.type,
|
|
22
|
-
key: TEXT_SECTION.key,
|
|
23
|
-
rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
|
|
24
20
|
}]
|
|
25
21
|
}, {
|
|
26
22
|
type: TEXT_STYLES_MENU.type,
|
|
@@ -36,8 +36,8 @@ const HeadingBlockMenuItem = ({
|
|
|
36
36
|
}
|
|
37
37
|
if (!isSelected) {
|
|
38
38
|
var _api$blockMenu;
|
|
39
|
-
const
|
|
40
|
-
const
|
|
39
|
+
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
40
|
+
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
41
41
|
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode(`heading${level}`, {
|
|
42
42
|
inputMethod,
|
|
43
43
|
triggeredFrom
|
|
@@ -25,8 +25,8 @@ const ParagraphBlockMenuItem = ({
|
|
|
25
25
|
}
|
|
26
26
|
if (!isParagraph) {
|
|
27
27
|
var _api$blockMenu;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
28
|
+
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
29
|
+
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
30
30
|
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode(`paragraph`, {
|
|
31
31
|
inputMethod,
|
|
32
32
|
triggeredFrom
|
|
@@ -17,8 +17,8 @@ const QuoteBlockMenuItem = ({
|
|
|
17
17
|
const handleClick = event => {
|
|
18
18
|
if (!isBlockQuote) {
|
|
19
19
|
var _api$blockMenu;
|
|
20
|
-
const
|
|
21
|
-
const
|
|
20
|
+
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
21
|
+
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
22
22
|
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode(`blockquote`, {
|
|
23
23
|
inputMethod,
|
|
24
24
|
triggeredFrom
|
|
@@ -10,7 +10,7 @@ export var getToolbarComponents = function getToolbarComponents(api) {
|
|
|
10
10
|
var toolbarComponents = [{
|
|
11
11
|
type: TEXT_STYLES_GROUP.type,
|
|
12
12
|
key: TEXT_STYLES_GROUP.key,
|
|
13
|
-
parents:
|
|
13
|
+
parents: [{
|
|
14
14
|
type: TEXT_SECTION.type,
|
|
15
15
|
key: TEXT_SECTION.key,
|
|
16
16
|
rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
|
|
@@ -18,10 +18,6 @@ export var getToolbarComponents = function getToolbarComponents(api) {
|
|
|
18
18
|
type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
19
19
|
key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
20
20
|
rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[TEXT_STYLES_GROUP.key]
|
|
21
|
-
}] : [{
|
|
22
|
-
type: TEXT_SECTION.type,
|
|
23
|
-
key: TEXT_SECTION.key,
|
|
24
|
-
rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
|
|
25
21
|
}]
|
|
26
22
|
}, {
|
|
27
23
|
type: TEXT_STYLES_MENU.type,
|
|
@@ -34,8 +34,8 @@ var HeadingBlockMenuItem = function HeadingBlockMenuItem(_ref) {
|
|
|
34
34
|
}
|
|
35
35
|
if (!isSelected) {
|
|
36
36
|
var _api$blockMenu;
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
38
|
+
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
39
39
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode("heading".concat(level), {
|
|
40
40
|
inputMethod: inputMethod,
|
|
41
41
|
triggeredFrom: triggeredFrom
|
|
@@ -23,8 +23,8 @@ var ParagraphBlockMenuItem = function ParagraphBlockMenuItem(_ref) {
|
|
|
23
23
|
}
|
|
24
24
|
if (!isParagraph) {
|
|
25
25
|
var _api$blockMenu;
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
27
|
+
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
28
28
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode("paragraph", {
|
|
29
29
|
inputMethod: inputMethod,
|
|
30
30
|
triggeredFrom: triggeredFrom
|
|
@@ -15,8 +15,8 @@ var QuoteBlockMenuItem = function QuoteBlockMenuItem(_ref) {
|
|
|
15
15
|
var handleClick = function handleClick(event) {
|
|
16
16
|
if (!isBlockQuote) {
|
|
17
17
|
var _api$blockMenu;
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
19
|
+
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
20
20
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode("blockquote", {
|
|
21
21
|
inputMethod: inputMethod,
|
|
22
22
|
triggeredFrom: triggeredFrom
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.8",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-block-menu": "^4.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-list": "^8.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-selection": "^6.
|
|
38
|
+
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-toolbar": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"@atlaskit/primitives": "^14.15.0",
|
|
51
51
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
52
52
|
"@atlaskit/theme": "^21.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^13.4.0",
|
|
54
54
|
"@atlaskit/tokens": "^6.4.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/react": "^11.7.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^110.
|
|
59
|
+
"@atlaskit/editor-common": "^110.7.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|