@atlaskit/editor-common 120.13.0 → 120.13.1

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-common
2
2
 
3
+ ## 120.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c744811e22b13`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c744811e22b13) -
8
+ Clean up feature gate `platform_editor_sentry_breadcrumbs`
9
+ - [`6bcbe7ce95706`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6bcbe7ce95706) -
10
+ Deprecate cardRovoTitle after removing the visible Rovo label from suggestion cards.
11
+ - Updated dependencies
12
+
3
13
  ## 120.13.0
4
14
 
5
15
  ### Minor Changes
@@ -139,7 +139,7 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
139
139
  cardRovoTitle: {
140
140
  id: 'fabric.editor.ai.suggestions.card.rovoTitle.non-final',
141
141
  defaultMessage: 'Rovo',
142
- description: 'Title for Rovo branding on the AI suggestions card'
142
+ description: 'Deprecated title for Rovo branding on the AI suggestions card'
143
143
  },
144
144
  cardPrivateLabel: {
145
145
  id: 'fabric.editor.ai.suggestions.card.privateLabel.non-final',
@@ -11,7 +11,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
12
12
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
13
  var _browser = require("@sentry/browser");
14
- var _fg = require("@atlaskit/platform-feature-flags/fg");
15
14
  var _environment = require("./environment");
16
15
  var _normaliseSentryBreadcrumbs = require("./normalise-sentry-breadcrumbs");
17
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -28,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "120.12.1";
30
+ var packageVersion = "120.13.0";
32
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
32
  // Remove URL as it has UGC
34
33
  // Ignored via go/ees007
@@ -68,7 +67,7 @@ var logException = exports.logException = /*#__PURE__*/function () {
68
67
  case 3:
69
68
  _yield$import2 = _context.sent;
70
69
  ExtraErrorData = _yield$import2.ExtraErrorData;
71
- breadcrumbsIntegration = (0, _fg.fg)('platform_editor_sentry_breadcrumbs') ? new _browser.Integrations.Breadcrumbs({
70
+ breadcrumbsIntegration = new _browser.Integrations.Breadcrumbs({
72
71
  // only enable breadcrumbs for dom (UI clicks and inputs)
73
72
  // include 'data-test-id', 'data-testid' in the breadcrumbs if they are found
74
73
  dom: {
@@ -79,12 +78,12 @@ var logException = exports.logException = /*#__PURE__*/function () {
79
78
  console: false,
80
79
  history: false,
81
80
  sentry: false
82
- }) : undefined;
81
+ });
83
82
  sentryOptions = {
84
83
  dsn: (0, _environment.isFedRamp)() ? undefined : SENTRY_DSN,
85
84
  release: "".concat(packageName, "@").concat(packageVersion),
86
85
  environment: (_process$env$CLOUD_EN = process.env.CLOUD_ENV) !== null && _process$env$CLOUD_EN !== void 0 ? _process$env$CLOUD_EN : 'unknown',
87
- beforeBreadcrumb: (0, _fg.fg)('platform_editor_sentry_breadcrumbs') ? _normaliseSentryBreadcrumbs.normaliseSentryBreadcrumbs : undefined,
86
+ beforeBreadcrumb: _normaliseSentryBreadcrumbs.normaliseSentryBreadcrumbs,
88
87
  ignoreErrors: [
89
88
  // Network issues
90
89
  NETWORK_ERROR_REGEX, NETWORK_FAILURE_REGEX, 'TypeError: Failed to fetch',
@@ -95,7 +94,7 @@ var logException = exports.logException = /*#__PURE__*/function () {
95
94
  return [].concat((0, _toConsumableArray2.default)(defaultIntegrations.filter(function (_ref2) {
96
95
  var name = _ref2.name;
97
96
  return name !== 'Breadcrumbs';
98
- })), (0, _toConsumableArray2.default)(breadcrumbsIntegration ? [breadcrumbsIntegration] : []), [
97
+ })), [breadcrumbsIntegration,
99
98
  // Extracts all non-native attributes from the error object and attaches them to the event as the extra data
100
99
  // https://docs.sentry.io/platforms/javascript/configuration/integrations/plugin/?original_referrer=https%3A%2F%2Fduckduckgo.com%2F#extraerrordata
101
100
  new ExtraErrorData()]);
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "120.12.1";
27
+ var packageVersion = "120.13.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -133,7 +133,7 @@ export const aiSuggestionsMessages = defineMessages({
133
133
  cardRovoTitle: {
134
134
  id: 'fabric.editor.ai.suggestions.card.rovoTitle.non-final',
135
135
  defaultMessage: 'Rovo',
136
- description: 'Title for Rovo branding on the AI suggestions card'
136
+ description: 'Deprecated title for Rovo branding on the AI suggestions card'
137
137
  },
138
138
  cardPrivateLabel: {
139
139
  id: 'fabric.editor.ai.suggestions.card.privateLabel.non-final',
@@ -1,5 +1,4 @@
1
1
  import { Integrations } from '@sentry/browser';
2
- import { fg } from '@atlaskit/platform-feature-flags/fg';
3
2
  import { isFedRamp } from './environment';
4
3
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
4
 
@@ -14,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "120.12.1";
16
+ const packageVersion = "120.13.0";
18
17
  const sanitiseSentryEvents = (data, _hint) => {
19
18
  // Remove URL as it has UGC
20
19
  // Ignored via go/ees007
@@ -40,7 +39,7 @@ export const logException = async (error, tags) => {
40
39
  const {
41
40
  ExtraErrorData
42
41
  } = await import( /* webpackChunkName: "@atlaskit-internal_editor-sentryintegrations" */'@sentry/integrations');
43
- const breadcrumbsIntegration = fg('platform_editor_sentry_breadcrumbs') ? new Integrations.Breadcrumbs({
42
+ const breadcrumbsIntegration = new Integrations.Breadcrumbs({
44
43
  // only enable breadcrumbs for dom (UI clicks and inputs)
45
44
  // include 'data-test-id', 'data-testid' in the breadcrumbs if they are found
46
45
  dom: {
@@ -51,12 +50,12 @@ export const logException = async (error, tags) => {
51
50
  console: false,
52
51
  history: false,
53
52
  sentry: false
54
- }) : undefined;
53
+ });
55
54
  const sentryOptions = {
56
55
  dsn: isFedRamp() ? undefined : SENTRY_DSN,
57
56
  release: `${packageName}@${packageVersion}`,
58
57
  environment: (_process$env$CLOUD_EN = process.env.CLOUD_ENV) !== null && _process$env$CLOUD_EN !== void 0 ? _process$env$CLOUD_EN : 'unknown',
59
- beforeBreadcrumb: fg('platform_editor_sentry_breadcrumbs') ? normaliseSentryBreadcrumbs : undefined,
58
+ beforeBreadcrumb: normaliseSentryBreadcrumbs,
60
59
  ignoreErrors: [
61
60
  // Network issues
62
61
  NETWORK_ERROR_REGEX, NETWORK_FAILURE_REGEX, 'TypeError: Failed to fetch',
@@ -68,7 +67,7 @@ export const logException = async (error, tags) => {
68
67
  // https://docs.sentry.io/platforms/javascript/configuration/integrations/default/
69
68
  ...defaultIntegrations.filter(({
70
69
  name
71
- }) => name !== 'Breadcrumbs'), ...(breadcrumbsIntegration ? [breadcrumbsIntegration] : []),
70
+ }) => name !== 'Breadcrumbs'), breadcrumbsIntegration,
72
71
  // Extracts all non-native attributes from the error object and attaches them to the event as the extra data
73
72
  // https://docs.sentry.io/platforms/javascript/configuration/integrations/plugin/?original_referrer=https%3A%2F%2Fduckduckgo.com%2F#extraerrordata
74
73
  new ExtraErrorData()],
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "120.12.1";
17
+ const packageVersion = "120.13.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -133,7 +133,7 @@ export var aiSuggestionsMessages = defineMessages({
133
133
  cardRovoTitle: {
134
134
  id: 'fabric.editor.ai.suggestions.card.rovoTitle.non-final',
135
135
  defaultMessage: 'Rovo',
136
- description: 'Title for Rovo branding on the AI suggestions card'
136
+ description: 'Deprecated title for Rovo branding on the AI suggestions card'
137
137
  },
138
138
  cardPrivateLabel: {
139
139
  id: 'fabric.editor.ai.suggestions.card.privateLabel.non-final',
@@ -5,7 +5,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import { Integrations } from '@sentry/browser';
8
- import { fg } from '@atlaskit/platform-feature-flags/fg';
9
8
  import { isFedRamp } from './environment';
10
9
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
10
 
@@ -20,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "120.12.1";
22
+ var packageVersion = "120.13.0";
24
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
24
  // Remove URL as it has UGC
26
25
  // Ignored via go/ees007
@@ -56,7 +55,7 @@ export var logException = /*#__PURE__*/function () {
56
55
  case 3:
57
56
  _yield$import2 = _context.sent;
58
57
  ExtraErrorData = _yield$import2.ExtraErrorData;
59
- breadcrumbsIntegration = fg('platform_editor_sentry_breadcrumbs') ? new Integrations.Breadcrumbs({
58
+ breadcrumbsIntegration = new Integrations.Breadcrumbs({
60
59
  // only enable breadcrumbs for dom (UI clicks and inputs)
61
60
  // include 'data-test-id', 'data-testid' in the breadcrumbs if they are found
62
61
  dom: {
@@ -67,12 +66,12 @@ export var logException = /*#__PURE__*/function () {
67
66
  console: false,
68
67
  history: false,
69
68
  sentry: false
70
- }) : undefined;
69
+ });
71
70
  sentryOptions = {
72
71
  dsn: isFedRamp() ? undefined : SENTRY_DSN,
73
72
  release: "".concat(packageName, "@").concat(packageVersion),
74
73
  environment: (_process$env$CLOUD_EN = process.env.CLOUD_ENV) !== null && _process$env$CLOUD_EN !== void 0 ? _process$env$CLOUD_EN : 'unknown',
75
- beforeBreadcrumb: fg('platform_editor_sentry_breadcrumbs') ? normaliseSentryBreadcrumbs : undefined,
74
+ beforeBreadcrumb: normaliseSentryBreadcrumbs,
76
75
  ignoreErrors: [
77
76
  // Network issues
78
77
  NETWORK_ERROR_REGEX, NETWORK_FAILURE_REGEX, 'TypeError: Failed to fetch',
@@ -83,7 +82,7 @@ export var logException = /*#__PURE__*/function () {
83
82
  return [].concat(_toConsumableArray(defaultIntegrations.filter(function (_ref2) {
84
83
  var name = _ref2.name;
85
84
  return name !== 'Breadcrumbs';
86
- })), _toConsumableArray(breadcrumbsIntegration ? [breadcrumbsIntegration] : []), [
85
+ })), [breadcrumbsIntegration,
87
86
  // Extracts all non-native attributes from the error object and attaches them to the event as the extra data
88
87
  // https://docs.sentry.io/platforms/javascript/configuration/integrations/plugin/?original_referrer=https%3A%2F%2Fduckduckgo.com%2F#extraerrordata
89
88
  new ExtraErrorData()]);
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "120.12.1";
24
+ var packageVersion = "120.13.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -84,6 +84,10 @@ export declare const aiSuggestionsMessages: {
84
84
  description: string;
85
85
  id: string;
86
86
  };
87
+ /**
88
+ * @private
89
+ * @deprecated The suggestion card no longer displays a Rovo text label.
90
+ */
87
91
  cardRovoTitle: {
88
92
  defaultMessage: string;
89
93
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "120.13.0",
3
+ "version": "120.13.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -56,8 +56,8 @@
56
56
  "@atlaskit/link": "^5.1.0",
57
57
  "@atlaskit/link-datasource": "^6.11.0",
58
58
  "@atlaskit/link-picker": "^6.7.0",
59
- "@atlaskit/media-card": "^81.9.0",
60
- "@atlaskit/media-client": "^37.6.0",
59
+ "@atlaskit/media-card": "^81.10.0",
60
+ "@atlaskit/media-client": "^37.7.0",
61
61
  "@atlaskit/media-client-react": "^6.4.0",
62
62
  "@atlaskit/media-common": "^14.6.0",
63
63
  "@atlaskit/media-file-preview": "^1.3.0",
@@ -220,9 +220,6 @@
220
220
  "platform_editor_fix_mixed_types_column_sort": {
221
221
  "type": "boolean"
222
222
  },
223
- "platform_editor_sentry_breadcrumbs": {
224
- "type": "boolean"
225
- },
226
223
  "platform_fix_macro_renders_in_layouts": {
227
224
  "type": "boolean"
228
225
  },