@atlaskit/editor-plugin-code-block 18.0.2 → 18.0.4
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
|
+
## 18.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 18.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d82ea790b5c1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82ea790b5c1c) -
|
|
14
|
+
Update registered slash-command menu icons, including the Jira datasource WorkItems icon, when the
|
|
15
|
+
`platform_editor_slash_command` experiment is enabled.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 18.0.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -9,8 +10,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
10
|
var _reactIntl = require("react-intl");
|
|
10
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
|
-
var _assets = require("@atlaskit/editor-common/assets");
|
|
13
13
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
14
|
+
var _angleBrackets = _interopRequireDefault(require("@atlaskit/icon/core/angle-brackets"));
|
|
14
15
|
var _editorCommands = require("../../editor-commands");
|
|
15
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
17
|
var CodeBlockQuickInsertMenuItem = exports.CodeBlockQuickInsertMenuItem = function CodeBlockQuickInsertMenuItem(_ref) {
|
|
@@ -35,7 +36,9 @@ var CodeBlockQuickInsertMenuItem = exports.CodeBlockQuickInsertMenuItem = functi
|
|
|
35
36
|
});
|
|
36
37
|
}, [api]);
|
|
37
38
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
38
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
39
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_angleBrackets.default, {
|
|
40
|
+
label: ""
|
|
41
|
+
}),
|
|
39
42
|
isDisabled: editorDisabled,
|
|
40
43
|
onSelect: onSelect,
|
|
41
44
|
shortcut: "```",
|
|
@@ -2,8 +2,8 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { IconCode } from '@atlaskit/editor-common/assets';
|
|
6
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
|
+
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
7
7
|
import { createInsertCodeBlockTransactionWithAnalytics } from '../../editor-commands';
|
|
8
8
|
export const CodeBlockQuickInsertMenuItem = ({
|
|
9
9
|
api
|
|
@@ -31,7 +31,9 @@ export const CodeBlockQuickInsertMenuItem = ({
|
|
|
31
31
|
});
|
|
32
32
|
}, [api]);
|
|
33
33
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
34
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
34
|
+
iconBefore: /*#__PURE__*/React.createElement(AngleBracketsIcon, {
|
|
35
|
+
label: ""
|
|
36
|
+
}),
|
|
35
37
|
isDisabled: editorDisabled,
|
|
36
38
|
onSelect: onSelect,
|
|
37
39
|
shortcut: "```",
|
|
@@ -2,8 +2,8 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { IconCode } from '@atlaskit/editor-common/assets';
|
|
6
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
|
+
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
7
7
|
import { createInsertCodeBlockTransactionWithAnalytics } from '../../editor-commands';
|
|
8
8
|
export var CodeBlockQuickInsertMenuItem = function CodeBlockQuickInsertMenuItem(_ref) {
|
|
9
9
|
var api = _ref.api;
|
|
@@ -27,7 +27,9 @@ export var CodeBlockQuickInsertMenuItem = function CodeBlockQuickInsertMenuItem(
|
|
|
27
27
|
});
|
|
28
28
|
}, [api]);
|
|
29
29
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
30
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
30
|
+
iconBefore: /*#__PURE__*/React.createElement(AngleBracketsIcon, {
|
|
31
|
+
label: ""
|
|
32
|
+
}),
|
|
31
33
|
isDisabled: editorDisabled,
|
|
32
34
|
onSelect: onSelect,
|
|
33
35
|
shortcut: "```",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.4",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^57.
|
|
22
|
+
"@atlaskit/adf-schema": "^57.2.0",
|
|
23
23
|
"@atlaskit/button": "^25.2.0",
|
|
24
24
|
"@atlaskit/code": "^19.1.0",
|
|
25
|
-
"@atlaskit/css": "^1.
|
|
25
|
+
"@atlaskit/css": "^1.1.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^16.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-block-menu": "^15.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-composition": "^15.0.0",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@atlaskit/primitives": "^22.4.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
46
46
|
"@atlaskit/react-select": "^4.9.0",
|
|
47
|
-
"@atlaskit/select": "^22.
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/select": "^22.10.0",
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^163.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^16.8.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@compiled/react": "^1.0.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^120.
|
|
54
|
+
"@atlaskit/editor-common": "^120.3.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
57
57
|
},
|