@atlaskit/editor-core 215.3.3 → 215.4.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 +11 -0
- package/dist/cjs/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +3 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`18aec70029328`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18aec70029328) -
|
|
8
|
+
EDITOR-2420 Rename parameter values of `dense` contentMode to `compact`
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 215.3.3
|
|
4
15
|
|
|
5
16
|
### 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 === 'dense') {
|
|
15
|
+
if (contentMode === ((0, _expValEquals.expValEquals)('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
16
16
|
return _editorSharedStyles.akEditorFullPageDenseFontSize;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -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 === 'dense') {
|
|
10
|
+
if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
11
11
|
return akEditorFullPageDenseFontSize;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.3.
|
|
2
|
+
export const version = "215.3.3";
|
|
@@ -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 === 'dense') {
|
|
10
|
+
if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
11
11
|
return akEditorFullPageDenseFontSize;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.3.
|
|
2
|
+
export var version = "215.3.3";
|
|
@@ -63,12 +63,13 @@ interface EditorBaseProps {
|
|
|
63
63
|
* Configures the content mode of the editor.
|
|
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'
|
|
67
68
|
*
|
|
68
69
|
* @private
|
|
69
70
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
70
71
|
*/
|
|
71
|
-
contentMode?: 'standard' | 'dense' | undefined;
|
|
72
|
+
contentMode?: 'standard' | 'dense' | 'compact' | undefined;
|
|
72
73
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
73
74
|
contextPanel?: ReactComponents;
|
|
74
75
|
defaultValue?: Node | string | Object;
|
|
@@ -63,12 +63,13 @@ interface EditorBaseProps {
|
|
|
63
63
|
* Configures the content mode of the editor.
|
|
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'
|
|
67
68
|
*
|
|
68
69
|
* @private
|
|
69
70
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
70
71
|
*/
|
|
71
|
-
contentMode?: 'standard' | 'dense' | undefined;
|
|
72
|
+
contentMode?: 'standard' | 'dense' | 'compact' | undefined;
|
|
72
73
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
73
74
|
contextPanel?: ReactComponents;
|
|
74
75
|
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.4.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
65
65
|
"@atlaskit/react-ufo": "^4.12.0",
|
|
66
66
|
"@atlaskit/task-decision": "^19.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^13.14.0",
|
|
68
68
|
"@atlaskit/tokens": "^7.0.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.6.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"uuid": "^3.1.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@atlaskit/editor-common": "^110.
|
|
84
|
+
"@atlaskit/editor-common": "^110.15.0",
|
|
85
85
|
"@atlaskit/link-provider": "^4.0.0",
|
|
86
86
|
"@atlaskit/media-core": "^37.0.0",
|
|
87
87
|
"react": "^18.2.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
106
106
|
"@atlaskit/modal-dialog": "^14.5.0",
|
|
107
107
|
"@atlaskit/primitives": "^16.0.0",
|
|
108
|
-
"@atlaskit/renderer": "^124.
|
|
108
|
+
"@atlaskit/renderer": "^124.8.0",
|
|
109
109
|
"@atlaskit/section-message": "^8.7.0",
|
|
110
110
|
"@atlaskit/smart-card": "^43.2.0",
|
|
111
111
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|