@atlaskit/editor-core 216.6.1 → 216.6.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 +8 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +0 -1
- package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +1 -2
- package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +1 -2
- package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 216.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`171a2e19b6072`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/171a2e19b6072) -
|
|
8
|
+
Clean up platform_editor_fix_code_block_bg_color_in_macro_2
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 216.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -192,7 +192,6 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
192
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
193
193
|
_codeBlockStyles.codeBlockStylesWithEmUnits,
|
|
194
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
195
|
-
!(0, _platformFeatureFlags.fg)('platform_editor_fix_code_block_bg_color_in_macro_2') && _codeBlockStyles.codeBgColorStyles,
|
|
196
195
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
197
196
|
!(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
|
|
198
197
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.firstCodeBlockWithNoMarginOld = exports.firstCodeBlockWithNoMargin = exports.codeBlockStylesWithEmUnits = exports.codeBlockStyles = exports.
|
|
7
|
+
exports.firstCodeBlockWithNoMarginOld = exports.firstCodeBlockWithNoMargin = exports.codeBlockStylesWithEmUnits = exports.codeBlockStyles = exports.CodeBlockSharedCssClassName = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _overflowShadowStyles = require("./overflowShadowStyles");
|
|
@@ -205,11 +205,6 @@ var codeBlockStylesWithEmUnits = exports.codeBlockStylesWithEmUnits = (0, _react
|
|
|
205
205
|
}))
|
|
206
206
|
});
|
|
207
207
|
|
|
208
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
209
|
-
var codeBgColorStyles = exports.codeBgColorStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
|
|
210
|
-
'--ds--code--bg-color': 'transparent'
|
|
211
|
-
}));
|
|
212
|
-
|
|
213
208
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
214
209
|
var firstCodeBlockWithNoMargin = exports.firstCodeBlockWithNoMargin = (0, _react.css)({
|
|
215
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -24,7 +24,7 @@ import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingB
|
|
|
24
24
|
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
25
25
|
import { blockquoteDangerStyles, blockquoteSelectedNodeStyles, blockquoteZeroPadding, blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc, listSelectedNodeStyles, textSelectedNodeStyles } from './styles/blockTypeStyles';
|
|
26
26
|
import { codeBidiWarningStyles } from './styles/codeBidiWarningStyles';
|
|
27
|
-
import {
|
|
27
|
+
import { codeBlockStyles, codeBlockStylesWithEmUnits, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
28
28
|
import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
29
29
|
import { commentEditorStyles } from './styles/commentEditorStyles';
|
|
30
30
|
import { cursorStyles } from './styles/cursorStyles';
|
|
@@ -188,7 +188,6 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
188
188
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
189
189
|
codeBlockStylesWithEmUnits,
|
|
190
190
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
191
|
-
!fg('platform_editor_fix_code_block_bg_color_in_macro_2') && codeBgColorStyles,
|
|
192
191
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
193
192
|
!fg('platform_editor_typography_ugc') && editorUGCTokensDefault, fg('platform_editor_typography_ugc') &&
|
|
194
193
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -260,14 +260,6 @@ export const codeBlockStylesWithEmUnits = css({
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
|
|
263
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
264
|
-
export const codeBgColorStyles = css({
|
|
265
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
266
|
-
[`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}`]: {
|
|
267
|
-
'--ds--code--bg-color': 'transparent'
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
|
|
271
263
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
272
264
|
export const firstCodeBlockWithNoMargin = css({
|
|
273
265
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "216.6.
|
|
2
|
+
export const version = "216.6.1";
|
|
@@ -25,7 +25,7 @@ import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingB
|
|
|
25
25
|
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
26
26
|
import { blockquoteDangerStyles, blockquoteSelectedNodeStyles, blockquoteZeroPadding, blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc, listSelectedNodeStyles, textSelectedNodeStyles } from './styles/blockTypeStyles';
|
|
27
27
|
import { codeBidiWarningStyles } from './styles/codeBidiWarningStyles';
|
|
28
|
-
import {
|
|
28
|
+
import { codeBlockStyles, codeBlockStylesWithEmUnits, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
29
29
|
import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
30
30
|
import { commentEditorStyles } from './styles/commentEditorStyles';
|
|
31
31
|
import { cursorStyles } from './styles/cursorStyles';
|
|
@@ -184,7 +184,6 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
184
184
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
185
185
|
codeBlockStylesWithEmUnits,
|
|
186
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
187
|
-
!fg('platform_editor_fix_code_block_bg_color_in_macro_2') && codeBgColorStyles,
|
|
188
187
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
189
188
|
!fg('platform_editor_typography_ugc') && editorUGCTokensDefault, fg('platform_editor_typography_ugc') &&
|
|
190
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -197,11 +197,6 @@ export var codeBlockStylesWithEmUnits = css({
|
|
|
197
197
|
}))
|
|
198
198
|
});
|
|
199
199
|
|
|
200
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
201
|
-
export var codeBgColorStyles = css(_defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
|
|
202
|
-
'--ds--code--bg-color': 'transparent'
|
|
203
|
-
}));
|
|
204
|
-
|
|
205
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
206
201
|
export var firstCodeBlockWithNoMargin = css({
|
|
207
202
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "216.6.
|
|
2
|
+
export var version = "216.6.1";
|
|
@@ -12,6 +12,5 @@ export declare const CodeBlockSharedCssClassName: {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const codeBlockStyles: SerializedStyles;
|
|
14
14
|
export declare const codeBlockStylesWithEmUnits: SerializedStyles;
|
|
15
|
-
export declare const codeBgColorStyles: SerializedStyles;
|
|
16
15
|
export declare const firstCodeBlockWithNoMargin: SerializedStyles;
|
|
17
16
|
export declare const firstCodeBlockWithNoMarginOld: SerializedStyles;
|
|
@@ -12,6 +12,5 @@ export declare const CodeBlockSharedCssClassName: {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const codeBlockStyles: SerializedStyles;
|
|
14
14
|
export declare const codeBlockStylesWithEmUnits: SerializedStyles;
|
|
15
|
-
export declare const codeBgColorStyles: SerializedStyles;
|
|
16
15
|
export declare const firstCodeBlockWithNoMargin: SerializedStyles;
|
|
17
16
|
export declare const firstCodeBlockWithNoMarginOld: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "216.6.
|
|
3
|
+
"version": "216.6.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/task-decision": "^19.2.0",
|
|
69
69
|
"@atlaskit/tmp-editor-statsig": "^16.15.0",
|
|
70
70
|
"@atlaskit/tokens": "^9.1.0",
|
|
71
|
-
"@atlaskit/tooltip": "^20.
|
|
71
|
+
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@atlaskit/width-detector": "^5.0.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
74
74
|
"@emotion/react": "^11.7.1",
|
|
@@ -300,9 +300,6 @@
|
|
|
300
300
|
"cc_editor_focus_before_editor_on_load": {
|
|
301
301
|
"type": "boolean"
|
|
302
302
|
},
|
|
303
|
-
"platform_editor_fix_code_block_bg_color_in_macro_2": {
|
|
304
|
-
"type": "boolean"
|
|
305
|
-
},
|
|
306
303
|
"platform_editor_vanilla_codebidi_warning": {
|
|
307
304
|
"type": "boolean"
|
|
308
305
|
},
|