@atlaskit/editor-plugin-code-block 3.3.14 → 3.3.15
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
|
@@ -72,9 +72,9 @@ function codeBlockCopySelectionPlugin() {
|
|
|
72
72
|
decorations: function decorations(state) {
|
|
73
73
|
if (copySelectionPluginKey.getState(state).decorationStartAndEnd) {
|
|
74
74
|
var _copySelectionPluginK = (0, _slicedToArray2.default)(copySelectionPluginKey.getState(state).decorationStartAndEnd, 2),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return _view.DecorationSet.create(state.doc, [_view.Decoration.inline(
|
|
75
|
+
start = _copySelectionPluginK[0],
|
|
76
|
+
end = _copySelectionPluginK[1];
|
|
77
|
+
return _view.DecorationSet.create(state.doc, [_view.Decoration.inline(start, end, {
|
|
78
78
|
class: 'ProseMirror-fake-text-selection'
|
|
79
79
|
})]);
|
|
80
80
|
}
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -18,7 +18,7 @@ var _pluginKey = require("./plugin-key");
|
|
|
18
18
|
var _codeBlockCopySelectionPlugin = require("./pm-plugins/codeBlockCopySelectionPlugin");
|
|
19
19
|
var _WrapIcon = require("./ui/icons/WrapIcon");
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
var languageList = (0, _languageList.createLanguageList)(_languageList.DEFAULT_LANGUAGES);
|
|
23
23
|
var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
|
|
24
24
|
var allowCopyToClipboard = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -62,9 +62,9 @@ export function codeBlockCopySelectionPlugin() {
|
|
|
62
62
|
decorations: function decorations(state) {
|
|
63
63
|
if (copySelectionPluginKey.getState(state).decorationStartAndEnd) {
|
|
64
64
|
var _copySelectionPluginK = _slicedToArray(copySelectionPluginKey.getState(state).decorationStartAndEnd, 2),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return DecorationSet.create(state.doc, [Decoration.inline(
|
|
65
|
+
start = _copySelectionPluginK[0],
|
|
66
|
+
end = _copySelectionPluginK[1];
|
|
67
|
+
return DecorationSet.create(state.doc, [Decoration.inline(start, end, {
|
|
68
68
|
class: 'ProseMirror-fake-text-selection'
|
|
69
69
|
})]);
|
|
70
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.15",
|
|
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": "^40.9.0",
|
|
35
35
|
"@atlaskit/code": "^15.6.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^89.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
38
38
|
"@atlaskit/editor-plugin-composition": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|