@atlaskit/editor-core 193.11.5 → 193.11.8
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/ContentStyles/extension.js +1 -9
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/extension.js +3 -15
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +1 -9
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +31 -31
- package/dist/types/presets/default.d.ts +22 -22
- package/dist/types/presets/universal.d.ts +31 -31
- package/dist/types/presets/useUniversalPreset.d.ts +31 -31
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +31 -31
- package/dist/types-ts4.5/presets/default.d.ts +22 -22
- package/dist/types-ts4.5/presets/universal.d.ts +31 -31
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +31 -31
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.11.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#94190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94190) [`a630077ab3ca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a630077ab3ca) - [ux] Removes outline from bodied outline borders for new macro design
|
|
8
|
+
|
|
3
9
|
## 193.11.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -10,16 +10,8 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
-
// Bodied extensions have labels that need to be styled differently
|
|
14
|
-
var baseBodiedExtensionLabelStyles = (0, _react.css)({
|
|
15
|
-
borderBottom: 'none',
|
|
16
|
-
// Needs this exact number otherwise there will be a a noticeable gap
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
|
-
top: '-19px'
|
|
19
|
-
});
|
|
20
|
-
|
|
21
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
22
|
-
var bodiedExtensionLabelStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.danger > span > div > .bodied.extension-label
|
|
14
|
+
var bodiedExtensionLabelStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Bodied extensions have labels that need to be styled differently on danger/select due to initially having a border\n &.danger > span > div > .bodied.extension-label,\n &:not(.danger).", "\n > span\n > div\n > .bodied.extension-label {\n border: none;\n }\n"])), _editorSharedStyles.akEditorSelectedNodeClassName);
|
|
23
15
|
|
|
24
16
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
25
17
|
var extensionLabelStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n &:not(.danger).", "\n > span\n > div\n > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n ", "\n"])), "var(--ds-background-accent-red-subtler, ".concat(_colors.R200, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(_colors.B50, ")"), "var(--ds-text-selected, ".concat(_colors.B400, ")"), bodiedExtensionLabelStyles);
|
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { B400, B50, R200, R400 } from '@atlaskit/theme/colors';
|
|
4
|
-
// Bodied extensions have labels that need to be styled differently
|
|
5
|
-
const baseBodiedExtensionLabelStyles = css({
|
|
6
|
-
borderBottom: 'none',
|
|
7
|
-
// Needs this exact number otherwise there will be a a noticeable gap
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
9
|
-
top: '-19px'
|
|
10
|
-
});
|
|
11
|
-
|
|
12
4
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
13
5
|
const bodiedExtensionLabelStyles = css`
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
${baseBodiedExtensionLabelStyles}
|
|
17
|
-
}
|
|
18
|
-
|
|
6
|
+
// Bodied extensions have labels that need to be styled differently on danger/select due to initially having a border
|
|
7
|
+
&.danger > span > div > .bodied.extension-label,
|
|
19
8
|
&:not(.danger).${akEditorSelectedNodeClassName}
|
|
20
9
|
> span
|
|
21
10
|
> div
|
|
22
11
|
> .bodied.extension-label {
|
|
23
|
-
border:
|
|
24
|
-
${baseBodiedExtensionLabelStyles}
|
|
12
|
+
border: none;
|
|
25
13
|
}
|
|
26
14
|
`;
|
|
27
15
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.11.
|
|
2
|
+
export const version = "193.11.8";
|
|
@@ -3,16 +3,8 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { B400, B50, R200, R400 } from '@atlaskit/theme/colors';
|
|
6
|
-
// Bodied extensions have labels that need to be styled differently
|
|
7
|
-
var baseBodiedExtensionLabelStyles = css({
|
|
8
|
-
borderBottom: 'none',
|
|
9
|
-
// Needs this exact number otherwise there will be a a noticeable gap
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
11
|
-
top: '-19px'
|
|
12
|
-
});
|
|
13
|
-
|
|
14
6
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
15
|
-
var bodiedExtensionLabelStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.danger > span > div > .bodied.extension-label
|
|
7
|
+
var bodiedExtensionLabelStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Bodied extensions have labels that need to be styled differently on danger/select due to initially having a border\n &.danger > span > div > .bodied.extension-label,\n &:not(.danger).", "\n > span\n > div\n > .bodied.extension-label {\n border: none;\n }\n"])), akEditorSelectedNodeClassName);
|
|
16
8
|
|
|
17
9
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
18
10
|
var extensionLabelStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n &:not(.danger).", "\n > span\n > div\n > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n ", "\n"])), "var(--ds-background-accent-red-subtler, ".concat(R200, ")"), "var(--ds-text-danger, ".concat(R400, ")"), akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-text-selected, ".concat(B400, ")"), bodiedExtensionLabelStyles);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.11.
|
|
2
|
+
export var version = "193.11.8";
|