@atlaskit/editor-plugin-block-type 33.0.3 → 34.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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 34.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 33.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5a8122a83eec5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a8122a83eec5) -
|
|
14
|
+
Clean up experiment `platform_editor_fix_new_line_after_heading`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 33.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _commands = require("@atlaskit/editor-common/utils/commands");
|
|
|
12
12
|
var _commands2 = require("@atlaskit/editor-prosemirror/commands");
|
|
13
13
|
var _redo = require("@atlaskit/prosemirror-history/redo");
|
|
14
14
|
var _undo = require("@atlaskit/prosemirror-history/undo");
|
|
15
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
15
|
var blockTypes = _interopRequireWildcard(require("./block-types"));
|
|
17
16
|
var _blockType = require("./commands/block-type");
|
|
18
17
|
var _deleteAndMoveCursor = require("./commands/delete-and-move-cursor");
|
|
@@ -26,6 +25,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
26
25
|
var backspaceCommand = (0, _commands2.chainCommands)(_blockType.cleanUpAtTheStartOfDocument, (0, _deleteBlockContent.deleteBlockContent)(_utils.isNodeAWrappingBlockNode), _deleteAndMoveCursor.deleteAndMoveCursor);
|
|
27
26
|
var del = (0, _commands2.chainCommands)((0, _commands.deleteEmptyParagraphAndMoveBlockUp)(_utils.isNodeAWrappingBlockNode), (0, _deleteBlockContent.deleteBlockContent)(_utils.isNodeAWrappingBlockNode), _deleteAndMoveCursor.deleteAndMoveCursor);
|
|
28
27
|
function keymapPlugin(editorAnalyticsApi, schema, _featureFlags) {
|
|
28
|
+
var _enter$common;
|
|
29
29
|
var list = {};
|
|
30
30
|
(0, _keymaps.bindKeymapWithCommand)(
|
|
31
31
|
// Ignored via go/ees005
|
|
@@ -36,10 +36,7 @@ function keymapPlugin(editorAnalyticsApi, schema, _featureFlags) {
|
|
|
36
36
|
// heading instead of a paragraph" bug. The command is a no-op (returns false)
|
|
37
37
|
// in every case except that exact scenario, so other Enter handlers are
|
|
38
38
|
// unaffected.
|
|
39
|
-
|
|
40
|
-
var _enter$common;
|
|
41
|
-
(0, _keymaps.bindKeymapWithCommand)((_enter$common = _keymaps.enter.common) !== null && _enter$common !== void 0 ? _enter$common : 'Enter', _splitHeadingWithTrailingSpace.splitHeadingWithTrailingSpace, list);
|
|
42
|
-
}
|
|
39
|
+
(0, _keymaps.bindKeymapWithCommand)((_enter$common = _keymaps.enter.common) !== null && _enter$common !== void 0 ? _enter$common : 'Enter', _splitHeadingWithTrailingSpace.splitHeadingWithTrailingSpace, list);
|
|
43
40
|
// Ignored via go/ees005
|
|
44
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
45
42
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.moveUp.common, _commands.createNewParagraphAbove, list);
|
|
@@ -5,7 +5,6 @@ import { createNewParagraphAbove, createNewParagraphBelow, deleteEmptyParagraphA
|
|
|
5
5
|
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
6
6
|
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
7
7
|
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
|
|
10
9
|
// Ignored via go/ees005
|
|
11
10
|
// eslint-disable-next-line import/no-namespace
|
|
@@ -18,6 +17,7 @@ import { isNodeAWrappingBlockNode } from './utils';
|
|
|
18
17
|
const backspaceCommand = chainCommands(cleanUpAtTheStartOfDocument, deleteBlockContent(isNodeAWrappingBlockNode), deleteAndMoveCursor);
|
|
19
18
|
const del = chainCommands(deleteEmptyParagraphAndMoveBlockUp(isNodeAWrappingBlockNode), deleteBlockContent(isNodeAWrappingBlockNode), deleteAndMoveCursor);
|
|
20
19
|
export default function keymapPlugin(editorAnalyticsApi, schema, _featureFlags) {
|
|
20
|
+
var _enter$common;
|
|
21
21
|
const list = {};
|
|
22
22
|
bindKeymapWithCommand(
|
|
23
23
|
// Ignored via go/ees005
|
|
@@ -28,10 +28,7 @@ export default function keymapPlugin(editorAnalyticsApi, schema, _featureFlags)
|
|
|
28
28
|
// heading instead of a paragraph" bug. The command is a no-op (returns false)
|
|
29
29
|
// in every case except that exact scenario, so other Enter handlers are
|
|
30
30
|
// unaffected.
|
|
31
|
-
|
|
32
|
-
var _enter$common;
|
|
33
|
-
bindKeymapWithCommand((_enter$common = enter.common) !== null && _enter$common !== void 0 ? _enter$common : 'Enter', splitHeadingWithTrailingSpace, list);
|
|
34
|
-
}
|
|
31
|
+
bindKeymapWithCommand((_enter$common = enter.common) !== null && _enter$common !== void 0 ? _enter$common : 'Enter', splitHeadingWithTrailingSpace, list);
|
|
35
32
|
// Ignored via go/ees005
|
|
36
33
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
37
34
|
bindKeymapWithCommand(moveUp.common, createNewParagraphAbove, list);
|
|
@@ -5,7 +5,6 @@ import { createNewParagraphAbove, createNewParagraphBelow, deleteEmptyParagraphA
|
|
|
5
5
|
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
6
6
|
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
7
7
|
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
|
|
10
9
|
// Ignored via go/ees005
|
|
11
10
|
// eslint-disable-next-line import/no-namespace
|
|
@@ -18,6 +17,7 @@ import { isNodeAWrappingBlockNode } from './utils';
|
|
|
18
17
|
var backspaceCommand = chainCommands(cleanUpAtTheStartOfDocument, deleteBlockContent(isNodeAWrappingBlockNode), deleteAndMoveCursor);
|
|
19
18
|
var del = chainCommands(deleteEmptyParagraphAndMoveBlockUp(isNodeAWrappingBlockNode), deleteBlockContent(isNodeAWrappingBlockNode), deleteAndMoveCursor);
|
|
20
19
|
export default function keymapPlugin(editorAnalyticsApi, schema, _featureFlags) {
|
|
20
|
+
var _enter$common;
|
|
21
21
|
var list = {};
|
|
22
22
|
bindKeymapWithCommand(
|
|
23
23
|
// Ignored via go/ees005
|
|
@@ -28,10 +28,7 @@ export default function keymapPlugin(editorAnalyticsApi, schema, _featureFlags)
|
|
|
28
28
|
// heading instead of a paragraph" bug. The command is a no-op (returns false)
|
|
29
29
|
// in every case except that exact scenario, so other Enter handlers are
|
|
30
30
|
// unaffected.
|
|
31
|
-
|
|
32
|
-
var _enter$common;
|
|
33
|
-
bindKeymapWithCommand((_enter$common = enter.common) !== null && _enter$common !== void 0 ? _enter$common : 'Enter', splitHeadingWithTrailingSpace, list);
|
|
34
|
-
}
|
|
31
|
+
bindKeymapWithCommand((_enter$common = enter.common) !== null && _enter$common !== void 0 ? _enter$common : 'Enter', splitHeadingWithTrailingSpace, list);
|
|
35
32
|
// Ignored via go/ees005
|
|
36
33
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
37
34
|
bindKeymapWithCommand(moveUp.common, createNewParagraphAbove, list);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.0.0",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
27
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
28
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
29
|
-
"@atlaskit/editor-plugin-list": "^
|
|
30
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
31
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
32
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
33
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^30.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-block-menu": "^29.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-interaction": "^44.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-list": "^32.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^31.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-selection": "^30.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^31.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-toolbar": "^27.0.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
35
35
|
"@atlaskit/editor-shared-styles": "^4.6.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@atlaskit/primitives": "^22.6.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
-
"@atlaskit/tokens": "^20.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^246.1.0",
|
|
47
|
+
"@atlaskit/tokens": "^20.8.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@compiled/react": "^1.0.2",
|
|
50
50
|
"@emotion/react": "^11.7.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^
|
|
53
|
+
"@atlaskit/editor-common": "^134.0.0",
|
|
54
54
|
"react": "^18.2.0 || ^19.2.0",
|
|
55
55
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|