@atlaskit/editor-plugin-block-type 11.0.3 → 11.1.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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 11.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cd8d11632a928`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd8d11632a928) -
|
|
8
|
+
[https://hello.jira.atlassian.cloud/browse/EDITOR-4390](EDITOR-4390) - clean up
|
|
9
|
+
platform_editor_heading_from_numpad feature gate
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 11.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -145,7 +145,7 @@ var createPlugin = exports.createPlugin = function createPlugin(editorAPI, dispa
|
|
|
145
145
|
*/
|
|
146
146
|
handleKeyDown: function handleKeyDown(view, event) {
|
|
147
147
|
var headingLevel = _consts.HEADING_KEYS.indexOf(event.keyCode);
|
|
148
|
-
if (headingLevel === -1
|
|
148
|
+
if (headingLevel === -1) {
|
|
149
149
|
// Check for numpad keys if not found in digits row
|
|
150
150
|
headingLevel = _consts.HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
|
|
151
151
|
}
|
|
@@ -131,7 +131,7 @@ export const createPlugin = (editorAPI, dispatch, lastNodeMustBeParagraph, inclu
|
|
|
131
131
|
*/
|
|
132
132
|
handleKeyDown: (view, event) => {
|
|
133
133
|
let headingLevel = HEADING_KEYS.indexOf(event.keyCode);
|
|
134
|
-
if (headingLevel === -1
|
|
134
|
+
if (headingLevel === -1) {
|
|
135
135
|
// Check for numpad keys if not found in digits row
|
|
136
136
|
headingLevel = HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
|
|
137
137
|
}
|
|
@@ -138,7 +138,7 @@ export var createPlugin = function createPlugin(editorAPI, dispatch, lastNodeMus
|
|
|
138
138
|
*/
|
|
139
139
|
handleKeyDown: function handleKeyDown(view, event) {
|
|
140
140
|
var headingLevel = HEADING_KEYS.indexOf(event.keyCode);
|
|
141
|
-
if (headingLevel === -1
|
|
141
|
+
if (headingLevel === -1) {
|
|
142
142
|
// Check for numpad keys if not found in digits row
|
|
143
143
|
headingLevel = HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
|
|
144
144
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
52
52
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
53
53
|
"@atlaskit/theme": "^21.0.0",
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^16.13.0",
|
|
55
55
|
"@atlaskit/tokens": "^9.1.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@emotion/react": "^11.7.1"
|
|
@@ -121,9 +121,6 @@
|
|
|
121
121
|
},
|
|
122
122
|
"platform_editor_adf_with_localid": {
|
|
123
123
|
"type": "boolean"
|
|
124
|
-
},
|
|
125
|
-
"platform_editor_heading_from_numpad": {
|
|
126
|
-
"type": "boolean"
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
126
|
}
|