@atlaskit/editor-core 187.12.0 → 187.13.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,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8695abdde8e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8695abdde8e) - [ED-18289] Clean-up Editor Sentry feature flag
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 187.12.0
4
14
 
5
15
  ### Minor Changes
@@ -19,7 +19,6 @@ var _uuid = _interopRequireDefault(require("uuid"));
19
19
  var _ufo = require("@atlaskit/editor-common/ufo");
20
20
  var _ui = require("@atlaskit/editor-common/ui");
21
21
  var _utils = require("@atlaskit/editor-common/utils");
22
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
22
  var _analytics = require("../plugins/analytics");
24
23
  var _consts = require("../plugins/analytics/consts");
25
24
  var _documentLogger = require("../utils/document-logger");
@@ -88,12 +87,10 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
88
87
  errorStack: errorStack
89
88
  }));
90
89
  }
91
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.sentry-error-monitoring_6bksu')) {
92
- (0, _monitoring.logException)(error, {
93
- location: 'editor-core/create-editor',
94
- product: product
95
- });
96
- }
90
+ (0, _monitoring.logException)(error, {
91
+ location: 'editor-core/create-editor',
92
+ product: product
93
+ });
97
94
  case 11:
98
95
  case "end":
99
96
  return _context.stop();
@@ -14,7 +14,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _monitoring = require("@atlaskit/editor-common/monitoring");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _analytics = require("../../plugins/analytics");
19
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
20
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -60,11 +59,9 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
60
59
  }
61
60
  });
62
61
  }
63
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.sentry-error-monitoring_6bksu')) {
64
- (0, _monitoring.logException)(error, {
65
- location: 'editor-core/ui'
66
- });
67
- }
62
+ (0, _monitoring.logException)(error, {
63
+ location: 'editor-core/ui'
64
+ });
68
65
  if (this.hasFallback()) {
69
66
  this.setState({
70
67
  errorCaptured: true
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.12.0";
9
+ var version = "187.13.0";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.12.0",
3
+ "version": "187.13.0",
4
4
  "sideEffects": false
5
5
  }
@@ -4,7 +4,6 @@ import uuid from 'uuid';
4
4
  import { ExperienceStore } from '@atlaskit/editor-common/ufo';
5
5
  import { IntlErrorBoundary } from '@atlaskit/editor-common/ui';
6
6
  import { sniffUserBrowserExtensions } from '@atlaskit/editor-common/utils';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
7
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../plugins/analytics';
9
8
  import { editorAnalyticsChannel } from '../plugins/analytics/consts';
10
9
  import { getDocStructure } from '../utils/document-logger';
@@ -64,12 +63,10 @@ export class ErrorBoundaryWithEditorView extends React.Component {
64
63
  errorStack
65
64
  });
66
65
  }
67
- if (getBooleanFF('platform.editor.sentry-error-monitoring_6bksu')) {
68
- logException(error, {
69
- location: 'editor-core/create-editor',
70
- product
71
- });
72
- }
66
+ logException(error, {
67
+ location: 'editor-core/create-editor',
68
+ product
69
+ });
73
70
  });
74
71
  _defineProperty(this, "getProductName", async () => {
75
72
  const {
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { logException } from '@atlaskit/editor-common/monitoring';
4
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
4
  import { ACTION, EVENT_TYPE } from '../../plugins/analytics';
6
5
  export class ErrorBoundary extends React.Component {
7
6
  constructor(...args) {
@@ -31,11 +30,9 @@ export class ErrorBoundary extends React.Component {
31
30
  }
32
31
  });
33
32
  }
34
- if (getBooleanFF('platform.editor.sentry-error-monitoring_6bksu')) {
35
- logException(error, {
36
- location: 'editor-core/ui'
37
- });
38
- }
33
+ logException(error, {
34
+ location: 'editor-core/ui'
35
+ });
39
36
  if (this.hasFallback()) {
40
37
  this.setState({
41
38
  errorCaptured: true
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.12.0";
2
+ export const version = "187.13.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.12.0",
3
+ "version": "187.13.0",
4
4
  "sideEffects": false
5
5
  }
@@ -16,7 +16,6 @@ import uuid from 'uuid';
16
16
  import { ExperienceStore } from '@atlaskit/editor-common/ufo';
17
17
  import { IntlErrorBoundary } from '@atlaskit/editor-common/ui';
18
18
  import { sniffUserBrowserExtensions } from '@atlaskit/editor-common/utils';
19
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
20
19
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../plugins/analytics';
21
20
  import { editorAnalyticsChannel } from '../plugins/analytics/consts';
22
21
  import { getDocStructure } from '../utils/document-logger';
@@ -82,12 +81,10 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
82
81
  errorStack: errorStack
83
82
  }));
84
83
  }
85
- if (getBooleanFF('platform.editor.sentry-error-monitoring_6bksu')) {
86
- logException(error, {
87
- location: 'editor-core/create-editor',
88
- product: product
89
- });
90
- }
84
+ logException(error, {
85
+ location: 'editor-core/create-editor',
86
+ product: product
87
+ });
91
88
  case 11:
92
89
  case "end":
93
90
  return _context.stop();
@@ -9,7 +9,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React from 'react';
11
11
  import { logException } from '@atlaskit/editor-common/monitoring';
12
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
13
12
  import { ACTION, EVENT_TYPE } from '../../plugins/analytics';
14
13
  export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
15
14
  _inherits(ErrorBoundary, _React$Component);
@@ -53,11 +52,9 @@ export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
53
52
  }
54
53
  });
55
54
  }
56
- if (getBooleanFF('platform.editor.sentry-error-monitoring_6bksu')) {
57
- logException(error, {
58
- location: 'editor-core/ui'
59
- });
60
- }
55
+ logException(error, {
56
+ location: 'editor-core/ui'
57
+ });
61
58
  if (this.hasFallback()) {
62
59
  this.setState({
63
60
  errorCaptured: true
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.12.0";
2
+ export var version = "187.13.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.12.0",
3
+ "version": "187.13.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { DispatchAnalyticsEvent } from '../../plugins/analytics/types';
3
- import { ACTION, ErrorEventPayload } from '../../plugins/analytics';
2
+ import type { DispatchAnalyticsEvent } from '../../plugins/analytics/types';
3
+ import type { ErrorEventPayload } from '../../plugins/analytics';
4
+ import { ACTION } from '../../plugins/analytics';
4
5
  type ErrorCrashPayload = Extract<ErrorEventPayload, {
5
6
  action: ACTION.EDITOR_CRASHED;
6
7
  }>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { DispatchAnalyticsEvent } from '../../plugins/analytics/types';
3
- import { ACTION, ErrorEventPayload } from '../../plugins/analytics';
2
+ import type { DispatchAnalyticsEvent } from '../../plugins/analytics/types';
3
+ import type { ErrorEventPayload } from '../../plugins/analytics';
4
+ import { ACTION } from '../../plugins/analytics';
4
5
  type ErrorCrashPayload = Extract<ErrorEventPayload, {
5
6
  action: ACTION.EDITOR_CRASHED;
6
7
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.12.0",
3
+ "version": "187.13.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/code": "^14.6.0",
56
56
  "@atlaskit/date": "^0.10.0",
57
57
  "@atlaskit/datetime-picker": "^12.7.0",
58
- "@atlaskit/editor-common": "^74.35.0",
58
+ "@atlaskit/editor-common": "^74.36.0",
59
59
  "@atlaskit/editor-json-transformer": "^8.10.0",
60
60
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
61
61
  "@atlaskit/editor-palette": "1.5.1",
@@ -156,7 +156,7 @@
156
156
  "@atlaskit/media-test-helpers": "^33.0.0",
157
157
  "@atlaskit/menu": "^1.9.0",
158
158
  "@atlaskit/platform-feature-flags": "^0.2.0",
159
- "@atlaskit/renderer": "^108.8.0",
159
+ "@atlaskit/renderer": "^108.9.0",
160
160
  "@atlaskit/section-message": "^6.4.0",
161
161
  "@atlaskit/smart-user-picker": "^6.1.0",
162
162
  "@atlaskit/synchrony-test-helpers": "^2.3.0",
@@ -224,9 +224,6 @@
224
224
  },
225
225
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
226
226
  "platform-feature-flags": {
227
- "platform.editor.sentry-error-monitoring_6bksu": {
228
- "type": "boolean"
229
- },
230
227
  "platform.editor.custom-table-width": {
231
228
  "type": "boolean"
232
229
  },