@atlaskit/editor-plugin-expand 17.0.2 → 17.0.3
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 17.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d82ea790b5c1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82ea790b5c1c) -
|
|
8
|
+
Update registered slash-command menu icons, including the Jira datasource WorkItems icon, when the
|
|
9
|
+
`platform_editor_slash_command` experiment is enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 17.0.2
|
|
4
13
|
|
|
5
14
|
### 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
|
|
@@ -10,10 +11,10 @@ var _reactIntl = require("react-intl");
|
|
|
10
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
12
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
|
-
var _assets = require("@atlaskit/editor-common/assets");
|
|
14
14
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
15
15
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
+
var _expandElement = _interopRequireDefault(require("@atlaskit/icon-lab/core/expand-element"));
|
|
17
18
|
var _commands = require("../../legacyExpand/commands");
|
|
18
19
|
var _commands2 = require("../../singlePlayerExpand/commands");
|
|
19
20
|
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); }
|
|
@@ -57,7 +58,9 @@ var ExpandQuickInsertMenuItem = exports.ExpandQuickInsertMenuItem = function Exp
|
|
|
57
58
|
return tr;
|
|
58
59
|
}, [api, isLegacy]);
|
|
59
60
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
60
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
61
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_expandElement.default, {
|
|
62
|
+
label: ""
|
|
63
|
+
}),
|
|
61
64
|
isDisabled: editorDisabled || mode === 'view',
|
|
62
65
|
onSelect: onSelect,
|
|
63
66
|
title: formatMessage(_messages.toolbarInsertBlockMessages.expand)
|
|
@@ -3,10 +3,10 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
7
6
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
8
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
+
import ExpandElementIcon from '@atlaskit/icon-lab/core/expand-element';
|
|
10
10
|
import { createExpandNode as createLegacyExpandNode } from '../../legacyExpand/commands';
|
|
11
11
|
import { createExpandNode as createSinglePlayerExpandNode, wrapSelectionAndSetExpandedState } from '../../singlePlayerExpand/commands';
|
|
12
12
|
export const ExpandQuickInsertMenuItem = ({
|
|
@@ -55,7 +55,9 @@ export const ExpandQuickInsertMenuItem = ({
|
|
|
55
55
|
return tr;
|
|
56
56
|
}, [api, isLegacy]);
|
|
57
57
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
58
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
58
|
+
iconBefore: /*#__PURE__*/React.createElement(ExpandElementIcon, {
|
|
59
|
+
label: ""
|
|
60
|
+
}),
|
|
59
61
|
isDisabled: editorDisabled || mode === 'view',
|
|
60
62
|
onSelect: onSelect,
|
|
61
63
|
title: formatMessage(messages.expand)
|
|
@@ -3,10 +3,10 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
7
6
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
8
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
+
import ExpandElementIcon from '@atlaskit/icon-lab/core/expand-element';
|
|
10
10
|
import { createExpandNode as createLegacyExpandNode } from '../../legacyExpand/commands';
|
|
11
11
|
import { createExpandNode as createSinglePlayerExpandNode, wrapSelectionAndSetExpandedState } from '../../singlePlayerExpand/commands';
|
|
12
12
|
export var ExpandQuickInsertMenuItem = function ExpandQuickInsertMenuItem(_ref) {
|
|
@@ -49,7 +49,9 @@ export var ExpandQuickInsertMenuItem = function ExpandQuickInsertMenuItem(_ref)
|
|
|
49
49
|
return tr;
|
|
50
50
|
}, [api, isLegacy]);
|
|
51
51
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
52
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
52
|
+
iconBefore: /*#__PURE__*/React.createElement(ExpandElementIcon, {
|
|
53
|
+
label: ""
|
|
54
|
+
}),
|
|
53
55
|
isDisabled: editorDisabled || mode === 'view',
|
|
54
56
|
onSelect: onSelect,
|
|
55
57
|
title: formatMessage(messages.expand)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.3",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"w3c-keyname": "^2.1.8"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^120.
|
|
55
|
+
"@atlaskit/editor-common": "^120.3.0",
|
|
56
56
|
"react": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
58
58
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|