@atlaskit/editor-toolbar 0.20.8 → 0.20.9
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 +6 -0
- package/dist/cjs/hooks/ui-context.js +1 -1
- package/dist/cjs/ui/ToolbarButton.js +1 -1
- package/dist/cjs/ui/ToolbarColorSwatch.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownItem.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownMenu.js +2 -2
- package/dist/es2019/hooks/ui-context.js +1 -1
- package/dist/es2019/ui/ToolbarButton.js +1 -1
- package/dist/es2019/ui/ToolbarColorSwatch.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownItem.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownMenu.js +2 -2
- package/dist/esm/hooks/ui-context.js +1 -1
- package/dist/esm/ui/ToolbarButton.js +1 -1
- package/dist/esm/ui/ToolbarColorSwatch.js +1 -1
- package/dist/esm/ui/ToolbarDropdownItem.js +1 -1
- package/dist/esm/ui/ToolbarDropdownMenu.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -37,7 +37,7 @@ var ToolbarUIProvider = exports.ToolbarUIProvider = function ToolbarUIProvider(_
|
|
|
37
37
|
fireAnalyticsEvent = _ref.fireAnalyticsEvent,
|
|
38
38
|
keyboardNavigation = _ref.keyboardNavigation;
|
|
39
39
|
return /*#__PURE__*/_react.default.createElement(ToolbarUIContext.Provider, {
|
|
40
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
41
41
|
value: {
|
|
42
42
|
onDropdownOpenChanged: onDropdownOpenChanged,
|
|
43
43
|
preventDefaultOnMouseDown: preventDefaultOnMouseDown,
|
|
@@ -56,7 +56,7 @@ var ToolbarButton = exports.ToolbarButton = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
56
56
|
testId: testId,
|
|
57
57
|
id: id,
|
|
58
58
|
isDisabled: disabled
|
|
59
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
60
|
,
|
|
61
61
|
onMouseDown: function onMouseDown(event) {
|
|
62
62
|
if (preventDefaultOnMouseDown) {
|
|
@@ -18,7 +18,7 @@ var ToolbarColorSwatch = exports.ToolbarColorSwatch = function ToolbarColorSwatc
|
|
|
18
18
|
highlightColor = _ref.highlightColor;
|
|
19
19
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
20
20
|
xcss: styles.colorSwatch
|
|
21
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
21
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
22
22
|
,
|
|
23
23
|
style: {
|
|
24
24
|
backgroundColor: highlightColor
|
|
@@ -127,7 +127,7 @@ var ToolbarDropdownItem = exports.ToolbarDropdownItem = function ToolbarDropdown
|
|
|
127
127
|
}));
|
|
128
128
|
}();
|
|
129
129
|
return /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem
|
|
130
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
130
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
131
131
|
, (0, _extends2.default)({
|
|
132
132
|
onClick: function onClick(e) {
|
|
133
133
|
if (!hasNestedDropdownMenu) {
|
|
@@ -49,7 +49,7 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
|
|
|
49
49
|
}
|
|
50
50
|
}, [menuContext]);
|
|
51
51
|
return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
|
|
52
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
53
|
trigger: function trigger(triggerProps) {
|
|
54
54
|
var toolbarButton = /*#__PURE__*/_react.default.createElement(_ToolbarButton.ToolbarButton, {
|
|
55
55
|
ref: triggerProps.triggerRef,
|
|
@@ -58,7 +58,7 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
|
|
|
58
58
|
"aria-haspopup": triggerProps['aria-haspopup'],
|
|
59
59
|
"aria-controls": triggerProps['aria-controls'],
|
|
60
60
|
onBlur: triggerProps.onBlur
|
|
61
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
61
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
62
62
|
,
|
|
63
63
|
onClick: function onClick(e) {
|
|
64
64
|
_onClick && _onClick(e, !(menuContext !== null && menuContext !== void 0 && menuContext.isOpen));
|
|
@@ -30,7 +30,7 @@ export const ToolbarUIProvider = ({
|
|
|
30
30
|
keyboardNavigation
|
|
31
31
|
}) => {
|
|
32
32
|
return /*#__PURE__*/React.createElement(ToolbarUIContext.Provider, {
|
|
33
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
34
|
value: {
|
|
35
35
|
onDropdownOpenChanged,
|
|
36
36
|
preventDefaultOnMouseDown,
|
|
@@ -50,7 +50,7 @@ export const ToolbarButton = /*#__PURE__*/forwardRef(({
|
|
|
50
50
|
testId: testId,
|
|
51
51
|
id: id,
|
|
52
52
|
isDisabled: disabled
|
|
53
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
54
|
,
|
|
55
55
|
onMouseDown: event => {
|
|
56
56
|
if (preventDefaultOnMouseDown) {
|
|
@@ -12,7 +12,7 @@ export const ToolbarColorSwatch = ({
|
|
|
12
12
|
}) => {
|
|
13
13
|
return /*#__PURE__*/React.createElement(Box, {
|
|
14
14
|
xcss: styles.colorSwatch
|
|
15
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
15
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
16
16
|
,
|
|
17
17
|
style: {
|
|
18
18
|
backgroundColor: highlightColor
|
|
@@ -111,7 +111,7 @@ export const ToolbarDropdownItem = ({
|
|
|
111
111
|
});
|
|
112
112
|
})();
|
|
113
113
|
return /*#__PURE__*/React.createElement(DropdownItem
|
|
114
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
115
|
, _extends({
|
|
116
116
|
onClick: e => {
|
|
117
117
|
if (!hasNestedDropdownMenu) {
|
|
@@ -42,7 +42,7 @@ const ToolbarDropdownMenuContent = ({
|
|
|
42
42
|
}
|
|
43
43
|
}, [menuContext]);
|
|
44
44
|
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
45
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
45
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
46
|
trigger: triggerProps => {
|
|
47
47
|
const toolbarButton = /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
48
48
|
ref: triggerProps.triggerRef,
|
|
@@ -51,7 +51,7 @@ const ToolbarDropdownMenuContent = ({
|
|
|
51
51
|
"aria-haspopup": triggerProps['aria-haspopup'],
|
|
52
52
|
"aria-controls": triggerProps['aria-controls'],
|
|
53
53
|
onBlur: triggerProps.onBlur
|
|
54
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
55
|
,
|
|
56
56
|
onClick: e => {
|
|
57
57
|
onClick && onClick(e, !(menuContext !== null && menuContext !== void 0 && menuContext.isOpen));
|
|
@@ -29,7 +29,7 @@ export var ToolbarUIProvider = function ToolbarUIProvider(_ref) {
|
|
|
29
29
|
fireAnalyticsEvent = _ref.fireAnalyticsEvent,
|
|
30
30
|
keyboardNavigation = _ref.keyboardNavigation;
|
|
31
31
|
return /*#__PURE__*/React.createElement(ToolbarUIContext.Provider, {
|
|
32
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
33
|
value: {
|
|
34
34
|
onDropdownOpenChanged: onDropdownOpenChanged,
|
|
35
35
|
preventDefaultOnMouseDown: preventDefaultOnMouseDown,
|
|
@@ -48,7 +48,7 @@ export var ToolbarButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
48
48
|
testId: testId,
|
|
49
49
|
id: id,
|
|
50
50
|
isDisabled: disabled
|
|
51
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
52
|
,
|
|
53
53
|
onMouseDown: function onMouseDown(event) {
|
|
54
54
|
if (preventDefaultOnMouseDown) {
|
|
@@ -11,7 +11,7 @@ export var ToolbarColorSwatch = function ToolbarColorSwatch(_ref) {
|
|
|
11
11
|
highlightColor = _ref.highlightColor;
|
|
12
12
|
return /*#__PURE__*/React.createElement(Box, {
|
|
13
13
|
xcss: styles.colorSwatch
|
|
14
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
14
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
15
15
|
,
|
|
16
16
|
style: {
|
|
17
17
|
backgroundColor: highlightColor
|
|
@@ -118,7 +118,7 @@ export var ToolbarDropdownItem = function ToolbarDropdownItem(_ref3) {
|
|
|
118
118
|
}));
|
|
119
119
|
}();
|
|
120
120
|
return /*#__PURE__*/React.createElement(DropdownItem
|
|
121
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
121
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
122
122
|
, _extends({
|
|
123
123
|
onClick: function onClick(e) {
|
|
124
124
|
if (!hasNestedDropdownMenu) {
|
|
@@ -40,7 +40,7 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
|
|
|
40
40
|
}
|
|
41
41
|
}, [menuContext]);
|
|
42
42
|
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
43
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
43
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
44
44
|
trigger: function trigger(triggerProps) {
|
|
45
45
|
var toolbarButton = /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
46
46
|
ref: triggerProps.triggerRef,
|
|
@@ -49,7 +49,7 @@ var ToolbarDropdownMenuContent = function ToolbarDropdownMenuContent(_ref) {
|
|
|
49
49
|
"aria-haspopup": triggerProps['aria-haspopup'],
|
|
50
50
|
"aria-controls": triggerProps['aria-controls'],
|
|
51
51
|
onBlur: triggerProps.onBlur
|
|
52
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
53
|
,
|
|
54
54
|
onClick: function onClick(e) {
|
|
55
55
|
_onClick && _onClick(e, !(menuContext !== null && menuContext !== void 0 && menuContext.isOpen));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.20.
|
|
6
|
+
"version": "0.20.9",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"team": "Editor: Jenga",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
31
31
|
"@atlaskit/popup": "^4.14.0",
|
|
32
32
|
"@atlaskit/primitives": "^18.0.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
34
34
|
"@atlaskit/tokens": "^11.1.0",
|
|
35
35
|
"@atlaskit/tooltip": "^21.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|