@atlaskit/editor-core 215.3.1 → 215.3.3

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,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb4c073423dc7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cb4c073423dc7) -
8
+ Added testId for Comment Editor Cancel button
9
+ - Updated dependencies
10
+
11
+ ## 215.3.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`5bdcb96c64433`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5bdcb96c64433) -
16
+ Fix exposure firing for editor no ssr experiment
17
+ - Updated dependencies
18
+
3
19
  ## 215.3.1
4
20
 
5
21
  ### Patch Changes
@@ -554,7 +554,7 @@ function ReactEditorView(props) {
554
554
  };
555
555
  }, []);
556
556
  var handleEditorViewRef = (0, _react.useCallback)(function (node) {
557
- if ((0, _coreUtils.isSSR)() && (0, _expVal.expVal)('platform_editor_no_ssr', 'isEnabled', false)) {
557
+ if ((0, _expVal.expVal)('platform_editor_no_ssr', 'isEnabled', false) && (0, _coreUtils.isSSR)()) {
558
558
  return;
559
559
  }
560
560
  if (node) {
@@ -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 = "0.0.0-development";
8
+ var version = exports.version = "215.3.2";
@@ -511,7 +511,7 @@ export function ReactEditorView(props) {
511
511
  };
512
512
  }, []);
513
513
  const handleEditorViewRef = useCallback(node => {
514
- if (isSSR() && expVal('platform_editor_no_ssr', 'isEnabled', false)) {
514
+ if (expVal('platform_editor_no_ssr', 'isEnabled', false) && isSSR()) {
515
515
  return;
516
516
  }
517
517
  if (node) {
@@ -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 = "0.0.0-development";
2
+ export const version = "215.3.2";
@@ -544,7 +544,7 @@ export function ReactEditorView(props) {
544
544
  };
545
545
  }, []);
546
546
  var handleEditorViewRef = useCallback(function (node) {
547
- if (isSSR() && expVal('platform_editor_no_ssr', 'isEnabled', false)) {
547
+ if (expVal('platform_editor_no_ssr', 'isEnabled', false) && isSSR()) {
548
548
  return;
549
549
  }
550
550
  if (node) {
@@ -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 = "0.0.0-development";
2
+ export var version = "215.3.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.3.1",
3
+ "version": "215.3.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -112,7 +112,7 @@
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",