@atlaskit/editor-core 215.21.4 → 215.22.0
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 +12 -0
- package/dist/cjs/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +1 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`810632761780a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/810632761780a) -
|
|
8
|
+
EDITOR-3937 Cleanup usage of confluence_content_mode_replace_dense_with_compact from the frontend
|
|
9
|
+
as this is now only needed in the Confluence backend
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 215.21.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
12
12
|
*/
|
|
13
13
|
function getBaseFontSize(appearance, contentMode) {
|
|
14
14
|
if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
15
|
-
if (contentMode ===
|
|
15
|
+
if (contentMode === 'compact') {
|
|
16
16
|
return _editorSharedStyles.akEditorFullPageDenseFontSize;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -373,7 +373,7 @@ var getExtensionStyles = exports.getExtensionStyles = function getExtensionStyle
|
|
|
373
373
|
// Dense content mode extensions styling fix - addresses EDITOR-1992
|
|
374
374
|
// When cleaning up the experiment, move this logic into the baseExtensionStyles above
|
|
375
375
|
var fontSize = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') ? (0, _editorSharedStyles.relativeFontSizeToBase16)(_editorSharedStyles.akEditorFullPageDenseFontSize) : undefined;
|
|
376
|
-
var denseExtensionStyles =
|
|
376
|
+
var denseExtensionStyles = contentMode === 'compact' && (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? (0, _react.css)({
|
|
377
377
|
// Table of Contents Macro
|
|
378
378
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
379
379
|
'.extension-container [data-macro-name="toc"] * :not(.status-lozenge-span *)': {
|
|
@@ -386,7 +386,7 @@ var getExtensionStyles = exports.getExtensionStyles = function getExtensionStyle
|
|
|
386
386
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
387
387
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
388
388
|
}
|
|
389
|
-
}) :
|
|
389
|
+
}) : contentMode === 'compact' && (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') ? (0, _react.css)({
|
|
390
390
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
391
391
|
'.extension-container a span': {
|
|
392
392
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -7,7 +7,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
7
7
|
*/
|
|
8
8
|
export function getBaseFontSize(appearance, contentMode) {
|
|
9
9
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
10
|
-
if (contentMode ===
|
|
10
|
+
if (contentMode === 'compact') {
|
|
11
11
|
return akEditorFullPageDenseFontSize;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -365,7 +365,7 @@ export const getExtensionStyles = contentMode => {
|
|
|
365
365
|
// Dense content mode extensions styling fix - addresses EDITOR-1992
|
|
366
366
|
// When cleaning up the experiment, move this logic into the baseExtensionStyles above
|
|
367
367
|
const fontSize = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') ? relativeFontSizeToBase16(akEditorFullPageDenseFontSize) : undefined;
|
|
368
|
-
const denseExtensionStyles =
|
|
368
|
+
const denseExtensionStyles = contentMode === 'compact' && expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? css({
|
|
369
369
|
// Table of Contents Macro
|
|
370
370
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
371
371
|
'.extension-container [data-macro-name="toc"] * :not(.status-lozenge-span *)': {
|
|
@@ -378,7 +378,7 @@ export const getExtensionStyles = contentMode => {
|
|
|
378
378
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
379
379
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
380
380
|
}
|
|
381
|
-
}) :
|
|
381
|
+
}) : contentMode === 'compact' && expValEquals('cc_editor_ai_content_mode', 'variant', 'test') ? css({
|
|
382
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
383
383
|
'.extension-container a span': {
|
|
384
384
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "0.0.0-development";
|
|
@@ -7,7 +7,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
7
7
|
*/
|
|
8
8
|
export function getBaseFontSize(appearance, contentMode) {
|
|
9
9
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
10
|
-
if (contentMode ===
|
|
10
|
+
if (contentMode === 'compact') {
|
|
11
11
|
return akEditorFullPageDenseFontSize;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -366,7 +366,7 @@ export var getExtensionStyles = function getExtensionStyles(contentMode) {
|
|
|
366
366
|
// Dense content mode extensions styling fix - addresses EDITOR-1992
|
|
367
367
|
// When cleaning up the experiment, move this logic into the baseExtensionStyles above
|
|
368
368
|
var fontSize = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') ? relativeFontSizeToBase16(akEditorFullPageDenseFontSize) : undefined;
|
|
369
|
-
var denseExtensionStyles =
|
|
369
|
+
var denseExtensionStyles = contentMode === 'compact' && expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? css({
|
|
370
370
|
// Table of Contents Macro
|
|
371
371
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
372
372
|
'.extension-container [data-macro-name="toc"] * :not(.status-lozenge-span *)': {
|
|
@@ -379,7 +379,7 @@ export var getExtensionStyles = function getExtensionStyles(contentMode) {
|
|
|
379
379
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
380
380
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
381
381
|
}
|
|
382
|
-
}) :
|
|
382
|
+
}) : contentMode === 'compact' && expValEquals('cc_editor_ai_content_mode', 'variant', 'test') ? css({
|
|
383
383
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
384
384
|
'.extension-container a span': {
|
|
385
385
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "0.0.0-development";
|
|
@@ -64,12 +64,11 @@ interface EditorBaseProps {
|
|
|
64
64
|
*
|
|
65
65
|
* - `"standard"` | `undefined` - normal content mode <- Default
|
|
66
66
|
* - `"compact"` - content in editor has reduced size
|
|
67
|
-
* // TODO: EDITOR-2435 - remove `dense` when cleaning up 'confluence_content_mode_replace_dense_with_compact'
|
|
68
67
|
*
|
|
69
68
|
* @private
|
|
70
69
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
71
70
|
*/
|
|
72
|
-
contentMode?: 'standard' | '
|
|
71
|
+
contentMode?: 'standard' | 'compact' | undefined;
|
|
73
72
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
74
73
|
contextPanel?: ReactComponents;
|
|
75
74
|
defaultValue?: Node | string | Object;
|
|
@@ -64,12 +64,11 @@ interface EditorBaseProps {
|
|
|
64
64
|
*
|
|
65
65
|
* - `"standard"` | `undefined` - normal content mode <- Default
|
|
66
66
|
* - `"compact"` - content in editor has reduced size
|
|
67
|
-
* // TODO: EDITOR-2435 - remove `dense` when cleaning up 'confluence_content_mode_replace_dense_with_compact'
|
|
68
67
|
*
|
|
69
68
|
* @private
|
|
70
69
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
71
70
|
*/
|
|
72
|
-
contentMode?: 'standard' | '
|
|
71
|
+
contentMode?: 'standard' | 'compact' | undefined;
|
|
73
72
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
74
73
|
contextPanel?: ReactComponents;
|
|
75
74
|
defaultValue?: Node | string | Object;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.22.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
66
66
|
"@atlaskit/react-ufo": "^4.16.0",
|
|
67
67
|
"@atlaskit/task-decision": "^19.2.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
69
|
-
"@atlaskit/tokens": "^8.
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^15.11.0",
|
|
69
|
+
"@atlaskit/tokens": "^8.5.0",
|
|
70
70
|
"@atlaskit/tooltip": "^20.11.0",
|
|
71
71
|
"@atlaskit/width-detector": "^5.0.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"uuid": "^3.1.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@atlaskit/editor-common": "^110.
|
|
85
|
+
"@atlaskit/editor-common": "^110.44.0",
|
|
86
86
|
"@atlaskit/link-provider": "^4.0.0",
|
|
87
87
|
"@atlaskit/media-core": "^37.0.0",
|
|
88
88
|
"react": "^18.2.0",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"@atlaskit/media-core": "^37.0.0",
|
|
105
105
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
106
106
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
107
|
-
"@atlaskit/modal-dialog": "^14.
|
|
108
|
-
"@atlaskit/renderer": "^124.
|
|
107
|
+
"@atlaskit/modal-dialog": "^14.9.0",
|
|
108
|
+
"@atlaskit/renderer": "^124.21.0",
|
|
109
109
|
"@atlaskit/section-message": "^8.10.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
111
111
|
"@atlaskit/toggle": "^15.2.0",
|