@atlaskit/editor-plugin-code-block 4.4.12 → 4.4.14
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 4.4.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#173876](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173876)
|
|
8
|
+
[`005f713fb3e5b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/005f713fb3e5b) -
|
|
9
|
+
Clean up platform_editor_interaction_on_code_blocks
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.4.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.4.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -31,14 +31,14 @@ var createPlugin = exports.createPlugin = function createPlugin(_ref) {
|
|
|
31
31
|
_ref$allowComposition = _ref.allowCompositionInputOverride,
|
|
32
32
|
allowCompositionInputOverride = _ref$allowComposition === void 0 ? false : _ref$allowComposition,
|
|
33
33
|
api = _ref.api;
|
|
34
|
-
var handleDOMEvents =
|
|
34
|
+
var handleDOMEvents = {
|
|
35
35
|
click: function click() {
|
|
36
36
|
var _api$core, _api$interaction;
|
|
37
37
|
// Set hasHadInteraction to true on any click of code blocks, as clicks
|
|
38
38
|
// on code blocks to not propagate to editor-level click handlers
|
|
39
39
|
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$interaction = api.interaction) === null || _api$interaction === void 0 ? void 0 : _api$interaction.commands.handleInteraction);
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
|
|
43
43
|
// ME-1599: Composition on mobile was causing the DOM observer to mutate the code block
|
|
44
44
|
// incorrecly and lose content when pressing enter in the middle of a code block line.
|
|
@@ -22,14 +22,14 @@ export const createPlugin = ({
|
|
|
22
22
|
allowCompositionInputOverride = false,
|
|
23
23
|
api
|
|
24
24
|
}) => {
|
|
25
|
-
const handleDOMEvents =
|
|
25
|
+
const handleDOMEvents = {
|
|
26
26
|
click: () => {
|
|
27
27
|
var _api$core, _api$interaction;
|
|
28
28
|
// Set hasHadInteraction to true on any click of code blocks, as clicks
|
|
29
29
|
// on code blocks to not propagate to editor-level click handlers
|
|
30
30
|
api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$interaction = api.interaction) === null || _api$interaction === void 0 ? void 0 : _api$interaction.commands.handleInteraction);
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
33
|
|
|
34
34
|
// ME-1599: Composition on mobile was causing the DOM observer to mutate the code block
|
|
35
35
|
// incorrecly and lose content when pressing enter in the middle of a code block line.
|
|
@@ -26,14 +26,14 @@ export var createPlugin = function createPlugin(_ref) {
|
|
|
26
26
|
_ref$allowComposition = _ref.allowCompositionInputOverride,
|
|
27
27
|
allowCompositionInputOverride = _ref$allowComposition === void 0 ? false : _ref$allowComposition,
|
|
28
28
|
api = _ref.api;
|
|
29
|
-
var handleDOMEvents =
|
|
29
|
+
var handleDOMEvents = {
|
|
30
30
|
click: function click() {
|
|
31
31
|
var _api$core, _api$interaction;
|
|
32
32
|
// Set hasHadInteraction to true on any click of code blocks, as clicks
|
|
33
33
|
// on code blocks to not propagate to editor-level click handlers
|
|
34
34
|
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$interaction = api.interaction) === null || _api$interaction === void 0 ? void 0 : _api$interaction.commands.handleInteraction);
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
37
|
|
|
38
38
|
// ME-1599: Composition on mobile was causing the DOM observer to mutate the code block
|
|
39
39
|
// incorrecly and lose content when pressing enter in the middle of a code block line.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.14",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
35
|
"@atlaskit/code": "^17.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^107.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-composition": "^1.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/icon": "^27.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^7.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^7.2.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -107,9 +107,6 @@
|
|
|
107
107
|
},
|
|
108
108
|
"platform_editor_controls_patch_13": {
|
|
109
109
|
"type": "boolean"
|
|
110
|
-
},
|
|
111
|
-
"platform_editor_interaction_on_code_blocks": {
|
|
112
|
-
"type": "boolean"
|
|
113
110
|
}
|
|
114
111
|
}
|
|
115
112
|
}
|