@atlaskit/editor-plugin-panel 9.0.20 → 9.0.22
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-panel
|
|
2
2
|
|
|
3
|
+
## 9.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7ea2e225c0abb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ea2e225c0abb) -
|
|
8
|
+
[ux] Minor styling, wording changes for block menu and sync blocks
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.0.21
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.0.20
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
13
|
var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/information-circle"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var NODE_NAME = 'panel';
|
|
15
16
|
var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
16
17
|
var api = _ref.api;
|
|
@@ -32,10 +33,16 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
32
33
|
}) : null;
|
|
33
34
|
});
|
|
34
35
|
};
|
|
36
|
+
|
|
37
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
38
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
39
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
40
|
+
var iconSize = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
35
41
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
36
42
|
onClick: handleClick,
|
|
37
43
|
elemBefore: /*#__PURE__*/_react.default.createElement(_informationCircle.default, {
|
|
38
|
-
label: ""
|
|
44
|
+
label: "",
|
|
45
|
+
size: iconSize
|
|
39
46
|
})
|
|
40
47
|
}, formatMessage(_messages.blockTypeMessages.panel));
|
|
41
48
|
};
|
|
@@ -4,6 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
const NODE_NAME = 'panel';
|
|
8
9
|
const PanelBlockMenuItem = ({
|
|
9
10
|
api
|
|
@@ -28,10 +29,16 @@ const PanelBlockMenuItem = ({
|
|
|
28
29
|
}) : null;
|
|
29
30
|
});
|
|
30
31
|
};
|
|
32
|
+
|
|
33
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
34
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
35
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
36
|
+
const iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
31
37
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
32
38
|
onClick: handleClick,
|
|
33
39
|
elemBefore: /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
34
|
-
label: ""
|
|
40
|
+
label: "",
|
|
41
|
+
size: iconSize
|
|
35
42
|
})
|
|
36
43
|
}, formatMessage(blockTypeMessages.panel));
|
|
37
44
|
};
|
|
@@ -4,6 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
var NODE_NAME = 'panel';
|
|
8
9
|
var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
9
10
|
var api = _ref.api;
|
|
@@ -25,10 +26,16 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
25
26
|
}) : null;
|
|
26
27
|
});
|
|
27
28
|
};
|
|
29
|
+
|
|
30
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
31
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
32
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
33
|
+
var iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
28
34
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
29
35
|
onClick: handleClick,
|
|
30
36
|
elemBefore: /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
31
|
-
label: ""
|
|
37
|
+
label: "",
|
|
38
|
+
size: iconSize
|
|
32
39
|
})
|
|
33
40
|
}, formatMessage(blockTypeMessages.panel));
|
|
34
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.22",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
31
31
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
33
|
-
"@atlaskit/editor-plugin-block-menu": "^6.
|
|
33
|
+
"@atlaskit/editor-plugin-block-menu": "^6.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^7.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-emoji": "^8.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@atlaskit/icon": "^31.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/theme": "^21.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^29.6.0",
|
|
46
46
|
"@atlaskit/tokens": "^11.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^111.
|
|
51
|
+
"@atlaskit/editor-common": "^111.19.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -95,6 +95,9 @@
|
|
|
95
95
|
},
|
|
96
96
|
"platform_editor_adf_with_localid": {
|
|
97
97
|
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
"platform_editor_block_menu_v2_patch_3": {
|
|
100
|
+
"type": "boolean"
|
|
98
101
|
}
|
|
99
102
|
},
|
|
100
103
|
"stricter": {
|