@atlaskit/editor-toolbar 0.19.8 → 0.19.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 +8 -0
- package/dist/cjs/ui/ResponsiveContainer.js +1 -2
- package/dist/cjs/ui/Toolbar.js +3 -3
- package/dist/es2019/ui/ResponsiveContainer.js +1 -2
- package/dist/es2019/ui/Toolbar.js +3 -3
- package/dist/esm/ui/ResponsiveContainer.js +1 -2
- package/dist/esm/ui/Toolbar.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.19.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`653c0c803b286`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/653c0c803b286) -
|
|
8
|
+
EDITOR-4620 Clean up platform_editor_toolbar_aifc_patch_6
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 0.19.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
var _css = require("@atlaskit/css");
|
|
16
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
18
|
var styles = {
|
|
20
19
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
21
20
|
responsiveContainerFullPage: "_1bsb1ns9 _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
@@ -99,7 +98,7 @@ var ResponsiveContainer = exports.ResponsiveContainer = function ResponsiveConta
|
|
|
99
98
|
}, children);
|
|
100
99
|
}
|
|
101
100
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
102
|
-
xcss: (0, _css.cx)(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints &&
|
|
101
|
+
xcss: (0, _css.cx)(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints && styles.responsiveRulesReducedOverridden)
|
|
103
102
|
}, children);
|
|
104
103
|
};
|
|
105
104
|
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -38,11 +38,11 @@ var Toolbar = exports.Toolbar = function Toolbar(_ref) {
|
|
|
38
38
|
actionSubjectId = _ref.actionSubjectId,
|
|
39
39
|
testId = _ref.testId;
|
|
40
40
|
var toolbar = /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
41
|
-
xcss: (0, _css.cx)(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors,
|
|
41
|
+
xcss: (0, _css.cx)(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors, styles.toolbarSeparator, styles.hiddenSelectorsPatch),
|
|
42
42
|
role: (0, _expValEquals.expValEquals)('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
|
|
43
43
|
"aria-label": label,
|
|
44
44
|
testId: testId,
|
|
45
|
-
"data-toolbar-type":
|
|
45
|
+
"data-toolbar-type": "inline"
|
|
46
46
|
}, /*#__PURE__*/_react.default.createElement(_ViewEventEmitter.ViewEventEmitter, {
|
|
47
47
|
actionSubject: _ViewEventEmitter.ACTION_SUBJECT.TOOLBAR,
|
|
48
48
|
actionSubjectId: actionSubjectId
|
|
@@ -85,6 +85,6 @@ var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref2) {
|
|
|
85
85
|
xcss: (0, _css.cx)(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
|
|
86
86
|
role: (0, _expValEquals.expValEquals)('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
|
|
87
87
|
"aria-label": label,
|
|
88
|
-
"data-toolbar-type":
|
|
88
|
+
"data-toolbar-type": "primary"
|
|
89
89
|
}, children));
|
|
90
90
|
};
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
const styles = {
|
|
13
12
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
14
13
|
responsiveContainerFullPage: "_1bsb1ns9 _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
@@ -93,7 +92,7 @@ export const ResponsiveContainer = ({
|
|
|
93
92
|
}, children);
|
|
94
93
|
}
|
|
95
94
|
return /*#__PURE__*/React.createElement(Box, {
|
|
96
|
-
xcss: cx(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints &&
|
|
95
|
+
xcss: cx(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints && styles.responsiveRulesReducedOverridden)
|
|
97
96
|
}, children);
|
|
98
97
|
};
|
|
99
98
|
|
|
@@ -32,11 +32,11 @@ export const Toolbar = ({
|
|
|
32
32
|
testId
|
|
33
33
|
}) => {
|
|
34
34
|
const toolbar = /*#__PURE__*/React.createElement(Box, {
|
|
35
|
-
xcss: cx(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors,
|
|
35
|
+
xcss: cx(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors, styles.toolbarSeparator, styles.hiddenSelectorsPatch),
|
|
36
36
|
role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
|
|
37
37
|
"aria-label": label,
|
|
38
38
|
testId: testId,
|
|
39
|
-
"data-toolbar-type":
|
|
39
|
+
"data-toolbar-type": "inline"
|
|
40
40
|
}, /*#__PURE__*/React.createElement(ViewEventEmitter, {
|
|
41
41
|
actionSubject: ACTION_SUBJECT.TOOLBAR,
|
|
42
42
|
actionSubjectId: actionSubjectId
|
|
@@ -83,6 +83,6 @@ export const PrimaryToolbar = ({
|
|
|
83
83
|
xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
|
|
84
84
|
role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
|
|
85
85
|
"aria-label": label,
|
|
86
|
-
"data-toolbar-type":
|
|
86
|
+
"data-toolbar-type": "primary"
|
|
87
87
|
}, children));
|
|
88
88
|
};
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
var styles = {
|
|
13
12
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
14
13
|
responsiveContainerFullPage: "_1bsb1ns9 _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
@@ -92,7 +91,7 @@ export var ResponsiveContainer = function ResponsiveContainer(_ref) {
|
|
|
92
91
|
}, children);
|
|
93
92
|
}
|
|
94
93
|
return /*#__PURE__*/React.createElement(Box, {
|
|
95
|
-
xcss: cx(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints &&
|
|
94
|
+
xcss: cx(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints && styles.responsiveRulesReducedOverridden)
|
|
96
95
|
}, children);
|
|
97
96
|
};
|
|
98
97
|
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -31,11 +31,11 @@ export var Toolbar = function Toolbar(_ref) {
|
|
|
31
31
|
actionSubjectId = _ref.actionSubjectId,
|
|
32
32
|
testId = _ref.testId;
|
|
33
33
|
var toolbar = /*#__PURE__*/React.createElement(Box, {
|
|
34
|
-
xcss: cx(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors,
|
|
34
|
+
xcss: cx(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors, styles.toolbarSeparator, styles.hiddenSelectorsPatch),
|
|
35
35
|
role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
|
|
36
36
|
"aria-label": label,
|
|
37
37
|
testId: testId,
|
|
38
|
-
"data-toolbar-type":
|
|
38
|
+
"data-toolbar-type": "inline"
|
|
39
39
|
}, /*#__PURE__*/React.createElement(ViewEventEmitter, {
|
|
40
40
|
actionSubject: ACTION_SUBJECT.TOOLBAR,
|
|
41
41
|
actionSubjectId: actionSubjectId
|
|
@@ -78,6 +78,6 @@ export var PrimaryToolbar = function PrimaryToolbar(_ref2) {
|
|
|
78
78
|
xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
|
|
79
79
|
role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
|
|
80
80
|
"aria-label": label,
|
|
81
|
-
"data-toolbar-type":
|
|
81
|
+
"data-toolbar-type": "primary"
|
|
82
82
|
}, children));
|
|
83
83
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.19.
|
|
6
|
+
"version": "0.19.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.13.0",
|
|
32
32
|
"@atlaskit/primitives": "^17.1.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^17.
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^17.1.0",
|
|
34
34
|
"@atlaskit/tokens": "^10.1.0",
|
|
35
35
|
"@atlaskit/tooltip": "^20.14.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|