@atlaskit/editor-toolbar 0.18.9 → 0.19.1
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 +15 -0
- package/dist/cjs/ui/ColorPalette/Color.js +0 -1
- package/dist/cjs/ui/ToolbarDropdownItem.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownMenu.js +1 -2
- package/dist/es2019/ui/ColorPalette/Color.js +0 -1
- package/dist/es2019/ui/ToolbarDropdownItem.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownMenu.js +1 -2
- package/dist/esm/ui/ColorPalette/Color.js +0 -1
- package/dist/esm/ui/ToolbarDropdownItem.js +1 -1
- package/dist/esm/ui/ToolbarDropdownMenu.js +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1265c260f9bad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1265c260f9bad) -
|
|
8
|
+
[ED-29455] clean up experiment platform_editor_toolbar_migrate_loom
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 0.19.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
16
|
+
Removed usages of LEGACY icon props
|
|
17
|
+
|
|
3
18
|
## 0.18.9
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -69,7 +69,6 @@ var Color = exports.Color = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
69
69
|
className: (0, _runtime.ax)(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhki8nm _80omtlke _1e0c1ule _kqswh2mm _y2mvdfik _1bg4v77o"])
|
|
70
70
|
}, !decorator && isSelected && /*#__PURE__*/_react.default.createElement(_checkMark.default, {
|
|
71
71
|
color: checkMarkColor,
|
|
72
|
-
LEGACY_primaryColor: checkMarkColor,
|
|
73
72
|
label: ""
|
|
74
73
|
}), decorator)));
|
|
75
74
|
});
|
|
@@ -98,7 +98,7 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
|
|
|
98
98
|
rel: rel
|
|
99
99
|
// @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
|
|
100
100
|
,
|
|
101
|
-
component: href
|
|
101
|
+
component: href ? undefined : CustomDropdownMenuItemButton,
|
|
102
102
|
testId: testId,
|
|
103
103
|
"data-toolbar-component": "menu-item",
|
|
104
104
|
shouldTitleWrap: shouldTitleWrap
|
|
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _react2 = require("@compiled/react");
|
|
14
14
|
var _dropdownMenu = _interopRequireDefault(require("@atlaskit/dropdown-menu"));
|
|
15
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _uiContext = require("../hooks/ui-context");
|
|
18
17
|
var _ToolbarButton = require("./ToolbarButton");
|
|
19
18
|
var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
|
|
@@ -89,7 +88,7 @@ var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdown
|
|
|
89
88
|
label: label,
|
|
90
89
|
onClick: onClick
|
|
91
90
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
92
|
-
xcss: (0, _react2.cx)(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer,
|
|
91
|
+
xcss: (0, _react2.cx)(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, styles.firstSectionSeparator),
|
|
93
92
|
"data-toolbar-component": "menu"
|
|
94
93
|
}, children));
|
|
95
94
|
};
|
|
@@ -60,7 +60,6 @@ export const Color = /*#__PURE__*/memo(({
|
|
|
60
60
|
className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhki8nm _80omtlke _1e0c1ule _kqswh2mm _y2mvdfik _1bg4v77o"])
|
|
61
61
|
}, !decorator && isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
|
|
62
62
|
color: checkMarkColor,
|
|
63
|
-
LEGACY_primaryColor: checkMarkColor,
|
|
64
63
|
label: ""
|
|
65
64
|
}), decorator)));
|
|
66
65
|
});
|
|
@@ -86,7 +86,7 @@ export const ToolbarDropdownItem = ({
|
|
|
86
86
|
rel: rel
|
|
87
87
|
// @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
|
|
88
88
|
,
|
|
89
|
-
component: href
|
|
89
|
+
component: href ? undefined : CustomDropdownMenuItemButton,
|
|
90
90
|
testId: testId,
|
|
91
91
|
"data-toolbar-component": "menu-item",
|
|
92
92
|
shouldTitleWrap: shouldTitleWrap
|
|
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { useToolbarUI } from '../hooks/ui-context';
|
|
10
9
|
import { ToolbarButton } from './ToolbarButton';
|
|
11
10
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
@@ -79,7 +78,7 @@ export const ToolbarDropdownMenu = ({
|
|
|
79
78
|
label: label,
|
|
80
79
|
onClick: onClick
|
|
81
80
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
82
|
-
xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer,
|
|
81
|
+
xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, styles.firstSectionSeparator),
|
|
83
82
|
"data-toolbar-component": "menu"
|
|
84
83
|
}, children));
|
|
85
84
|
};
|
|
@@ -60,7 +60,6 @@ export var Color = /*#__PURE__*/memo(function (_ref) {
|
|
|
60
60
|
className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhki8nm _80omtlke _1e0c1ule _kqswh2mm _y2mvdfik _1bg4v77o"])
|
|
61
61
|
}, !decorator && isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
|
|
62
62
|
color: checkMarkColor,
|
|
63
|
-
LEGACY_primaryColor: checkMarkColor,
|
|
64
63
|
label: ""
|
|
65
64
|
}), decorator)));
|
|
66
65
|
});
|
|
@@ -89,7 +89,7 @@ export var ToolbarDropdownItem = function ToolbarDropdownItem(_ref2) {
|
|
|
89
89
|
rel: rel
|
|
90
90
|
// @ts-ignore -- This `CustomDropdownMenuItemButton` has type conflicts with the `DropdownItem` component in a way that cannot be reconciled (ignored as it fails types in Jira and should in Platform)
|
|
91
91
|
,
|
|
92
|
-
component: href
|
|
92
|
+
component: href ? undefined : CustomDropdownMenuItemButton,
|
|
93
93
|
testId: testId,
|
|
94
94
|
"data-toolbar-component": "menu-item",
|
|
95
95
|
shouldTitleWrap: shouldTitleWrap
|
|
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { useToolbarUI } from '../hooks/ui-context';
|
|
10
9
|
import { ToolbarButton } from './ToolbarButton';
|
|
11
10
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
@@ -80,7 +79,7 @@ export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref2) {
|
|
|
80
79
|
label: label,
|
|
81
80
|
onClick: onClick
|
|
82
81
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
83
|
-
xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer,
|
|
82
|
+
xcss: cx(hasSectionMargin && styles.sectionMargin, enableMaxHeight && styles.scrollContainer, styles.firstSectionSeparator),
|
|
84
83
|
"data-toolbar-component": "menu"
|
|
85
84
|
}, children));
|
|
86
85
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.19.1",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"team": "Editor: Jenga",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
31
31
|
"@atlaskit/popup": "^4.13.0",
|
|
32
32
|
"@atlaskit/primitives": "^17.0.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^16.13.0",
|
|
34
34
|
"@atlaskit/tokens": "^9.1.0",
|
|
35
|
-
"@atlaskit/tooltip": "^20.
|
|
35
|
+
"@atlaskit/tooltip": "^20.13.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@compiled/react": "^0.18.6",
|
|
38
38
|
"chromatism": "^2.6.0"
|