@atlaskit/editor-core 215.3.2 → 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 CHANGED
@@ -1,5 +1,24 @@
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
+
14
+ ## 215.3.3
15
+
16
+ ### Patch Changes
17
+
18
+ - [`cb4c073423dc7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cb4c073423dc7) -
19
+ Added testId for Comment Editor Cancel button
20
+ - Updated dependencies
21
+
3
22
  ## 215.3.2
4
23
 
5
24
  ### 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
  }
@@ -285,6 +285,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
285
285
  }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(_new.default, {
286
286
  appearance: "subtle",
287
287
  onClick: handleCancel,
288
+ testId: "comment-cancel-button",
288
289
  isDisabled: disabled,
289
290
  interactionName: "editor-comment-cancel-button"
290
291
  }, intl.formatMessage(_messages.default.cancelButton))), (0, _react2.jsx)("span", {
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "215.3.1";
8
+ var version = exports.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
  }
@@ -274,6 +274,7 @@ export const CommentEditorWithIntl = props => {
274
274
  }, intl.formatMessage(messages.saveButton)), !!onCancel && jsx(Button, {
275
275
  appearance: "subtle",
276
276
  onClick: handleCancel,
277
+ testId: "comment-cancel-button",
277
278
  isDisabled: disabled,
278
279
  interactionName: "editor-comment-cancel-button"
279
280
  }, intl.formatMessage(messages.cancelButton))), jsx("span", {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.3.1";
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
  }
@@ -274,6 +274,7 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
274
274
  }, intl.formatMessage(messages.saveButton)), !!onCancel && jsx(Button, {
275
275
  appearance: "subtle",
276
276
  onClick: handleCancel,
277
+ testId: "comment-cancel-button",
277
278
  isDisabled: disabled,
278
279
  interactionName: "editor-comment-cancel-button"
279
280
  }, intl.formatMessage(messages.cancelButton))), jsx("span", {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.3.1";
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
- * - `"dense"` - content in editor has reduced size
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
- * - `"dense"` - content in editor has reduced size
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.2",
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.13.0",
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.14.0",
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,14 +105,14 @@
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.7.0",
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:^",
112
112
  "@atlaskit/toggle": "^15.1.0",
113
113
  "@atlaskit/util-data-test": "^18.3.0",
114
114
  "@atlassian/adf-schema-json": "^1.31.0",
115
- "@atlassian/feature-flags-test-utils": "^0.3.0",
115
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
116
116
  "@atlassian/search-provider": "^7.0.0",
117
117
  "@emotion/jest": "^11.8.0",
118
118
  "@storybook/addon-knobs": "^6.4.0",