@atlaskit/editor-plugin-extension 0.5.1 → 0.5.2
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/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +3 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +3 -1
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#66759](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66759) [`906578f1ea5d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/906578f1ea5d) - [ux] ED-21787: Migrating few CSS entries to space and color tokens
|
|
8
|
+
|
|
3
9
|
## 0.5.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -26,7 +26,7 @@ var toggleFieldWrapperStyles = (0, _react2.css)({
|
|
|
26
26
|
});
|
|
27
27
|
var toggleLabelStyles = (0, _react2.css)({
|
|
28
28
|
display: 'flex',
|
|
29
|
-
padding:
|
|
29
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-0, 0px)"),
|
|
30
30
|
flexGrow: 1
|
|
31
31
|
});
|
|
32
32
|
function _validate(value, isRequired) {
|
|
@@ -362,7 +362,10 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
362
362
|
height: "var(--ds-space-300, 24px)"
|
|
363
363
|
}
|
|
364
364
|
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
365
|
-
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar.
|
|
365
|
+
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */
|
|
366
|
+
// Disabling design token check as this is a calculated value
|
|
367
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
368
|
+
,
|
|
366
369
|
absoluteOffset: {
|
|
367
370
|
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
368
371
|
}
|
|
@@ -22,9 +22,11 @@ var itemWrapperStyles = (0, _react.css)({
|
|
|
22
22
|
var iconWrapperStyles = (0, _react.css)({
|
|
23
23
|
lineHeight: 1
|
|
24
24
|
});
|
|
25
|
+
|
|
26
|
+
// Adding 4px instead of 3px, since Design tokens supports space sizes in 2 multiples only Ref: https://atlassian.design/components/tokens/all-tokens
|
|
25
27
|
var iconWrapperMenuStyles = (0, _react.css)({
|
|
26
28
|
alignSelf: 'flex-start',
|
|
27
|
-
marginTop:
|
|
29
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
28
30
|
});
|
|
29
31
|
var getIconSize = function getIconSize(context, description) {
|
|
30
32
|
if (context === 'value' || !description) {
|
|
@@ -13,7 +13,7 @@ const toggleFieldWrapperStyles = css({
|
|
|
13
13
|
});
|
|
14
14
|
const toggleLabelStyles = css({
|
|
15
15
|
display: 'flex',
|
|
16
|
-
padding:
|
|
16
|
+
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-0, 0px)"}`,
|
|
17
17
|
flexGrow: 1
|
|
18
18
|
});
|
|
19
19
|
function validate(value, isRequired) {
|
|
@@ -353,7 +353,10 @@ const ColorPicker = props => {
|
|
|
353
353
|
height: "var(--ds-space-300, 24px)"
|
|
354
354
|
}
|
|
355
355
|
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
356
|
-
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar.
|
|
356
|
+
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */
|
|
357
|
+
// Disabling design token check as this is a calculated value
|
|
358
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
359
|
+
,
|
|
357
360
|
absoluteOffset: {
|
|
358
361
|
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
359
362
|
}
|
|
@@ -14,9 +14,11 @@ const itemWrapperStyles = css({
|
|
|
14
14
|
const iconWrapperStyles = css({
|
|
15
15
|
lineHeight: 1
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
// Adding 4px instead of 3px, since Design tokens supports space sizes in 2 multiples only Ref: https://atlassian.design/components/tokens/all-tokens
|
|
17
19
|
const iconWrapperMenuStyles = css({
|
|
18
20
|
alignSelf: 'flex-start',
|
|
19
|
-
marginTop:
|
|
21
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
20
22
|
});
|
|
21
23
|
const getIconSize = (context, description) => {
|
|
22
24
|
if (context === 'value' || !description) {
|
|
@@ -16,7 +16,7 @@ var toggleFieldWrapperStyles = css({
|
|
|
16
16
|
});
|
|
17
17
|
var toggleLabelStyles = css({
|
|
18
18
|
display: 'flex',
|
|
19
|
-
padding:
|
|
19
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-0, 0px)"),
|
|
20
20
|
flexGrow: 1
|
|
21
21
|
});
|
|
22
22
|
function _validate(value, isRequired) {
|
|
@@ -356,7 +356,10 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
356
356
|
height: "var(--ds-space-300, 24px)"
|
|
357
357
|
}
|
|
358
358
|
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
359
|
-
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar.
|
|
359
|
+
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */
|
|
360
|
+
// Disabling design token check as this is a calculated value
|
|
361
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
362
|
+
,
|
|
360
363
|
absoluteOffset: {
|
|
361
364
|
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
362
365
|
}
|
|
@@ -14,9 +14,11 @@ var itemWrapperStyles = css({
|
|
|
14
14
|
var iconWrapperStyles = css({
|
|
15
15
|
lineHeight: 1
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
// Adding 4px instead of 3px, since Design tokens supports space sizes in 2 multiples only Ref: https://atlassian.design/components/tokens/all-tokens
|
|
17
19
|
var iconWrapperMenuStyles = css({
|
|
18
20
|
alignSelf: 'flex-start',
|
|
19
|
-
marginTop:
|
|
21
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
20
22
|
});
|
|
21
23
|
var getIconSize = function getIconSize(context, description) {
|
|
22
24
|
if (context === 'value' || !description) {
|