@atlaskit/editor-common 112.15.0 → 112.15.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,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 112.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3f10d190b50a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f10d190b50a6) -
8
+ Clean up platform_editor_a11y_add_role_to_popup
9
+ - Updated dependencies
10
+
3
11
  ## 112.15.0
4
12
 
5
13
  ### Minor Changes
@@ -579,7 +579,6 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
579
579
  ACTION_SUBJECT_ID["SYNCED_BLOCK_LABEL"] = "syncedBlockLabel";
580
580
  ACTION_SUBJECT_ID["SYNCED_BLOCK_SSR_ERROR"] = "syncedBlockSSRError";
581
581
  ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
582
- ACTION_SUBJECT_ID["NATIVE_EMBED"] = "nativeEmbed";
583
582
  return ACTION_SUBJECT_ID;
584
583
  }({});
585
584
  var FLOATING_CONTROLS_TITLE = exports.FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "112.14.0";
22
+ var packageVersion = "112.15.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -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 = "112.14.0";
27
+ var packageVersion = "112.15.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -330,7 +330,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
330
330
  // Provide a valid role only when aria-label is present to satisfy a11y rules, as when aria-label is present, role is required
331
331
  // use role = dialog as default role, as dialog role itself is not a parent role that requires specific children to function as some other ARIA roles(menu) do
332
332
  // if set default role to menu, tons of integration tests will fail as many of our popup usages do not have children that satisfy menu role requirements
333
- if (ariaLabel && (0, _platformFeatureFlags.fg)('platform_editor_a11y_add_role_to_popup')) {
333
+ if (ariaLabel) {
334
334
  return _this3.props.role || 'dialog';
335
335
  }
336
336
  return undefined;
@@ -573,7 +573,6 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
573
573
  ACTION_SUBJECT_ID["SYNCED_BLOCK_LABEL"] = "syncedBlockLabel";
574
574
  ACTION_SUBJECT_ID["SYNCED_BLOCK_SSR_ERROR"] = "syncedBlockSSRError";
575
575
  ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
576
- ACTION_SUBJECT_ID["NATIVE_EMBED"] = "nativeEmbed";
577
576
  return ACTION_SUBJECT_ID;
578
577
  }({});
579
578
  export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "112.14.0";
7
+ const packageVersion = "112.15.0";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "112.14.0";
17
+ const packageVersion = "112.15.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -297,7 +297,7 @@ export default class Popup extends React.Component {
297
297
  // Provide a valid role only when aria-label is present to satisfy a11y rules, as when aria-label is present, role is required
298
298
  // use role = dialog as default role, as dialog role itself is not a parent role that requires specific children to function as some other ARIA roles(menu) do
299
299
  // if set default role to menu, tons of integration tests will fail as many of our popup usages do not have children that satisfy menu role requirements
300
- if (ariaLabel && fg('platform_editor_a11y_add_role_to_popup')) {
300
+ if (ariaLabel) {
301
301
  return this.props.role || 'dialog';
302
302
  }
303
303
  return undefined;
@@ -573,7 +573,6 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
573
573
  ACTION_SUBJECT_ID["SYNCED_BLOCK_LABEL"] = "syncedBlockLabel";
574
574
  ACTION_SUBJECT_ID["SYNCED_BLOCK_SSR_ERROR"] = "syncedBlockSSRError";
575
575
  ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
576
- ACTION_SUBJECT_ID["NATIVE_EMBED"] = "nativeEmbed";
577
576
  return ACTION_SUBJECT_ID;
578
577
  }({});
579
578
  export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "112.14.0";
13
+ var packageVersion = "112.15.0";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "112.14.0";
24
+ var packageVersion = "112.15.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -323,7 +323,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
323
323
  // Provide a valid role only when aria-label is present to satisfy a11y rules, as when aria-label is present, role is required
324
324
  // use role = dialog as default role, as dialog role itself is not a parent role that requires specific children to function as some other ARIA roles(menu) do
325
325
  // if set default role to menu, tons of integration tests will fail as many of our popup usages do not have children that satisfy menu role requirements
326
- if (ariaLabel && fg('platform_editor_a11y_add_role_to_popup')) {
326
+ if (ariaLabel) {
327
327
  return _this3.props.role || 'dialog';
328
328
  }
329
329
  return undefined;
@@ -563,8 +563,7 @@ export declare enum ACTION_SUBJECT_ID {
563
563
  SYNCED_BLOCK_CLICK_SYNCED_LOCATION = "syncedBlockClickSyncedLocation",
564
564
  SYNCED_BLOCK_LABEL = "syncedBlockLabel",
565
565
  SYNCED_BLOCK_SSR_ERROR = "syncedBlockSSRError",
566
- TABLE_STICKY_HEADER = "tableStickyHeader",
567
- NATIVE_EMBED = "nativeEmbed"
566
+ TABLE_STICKY_HEADER = "tableStickyHeader"
568
567
  }
569
568
  export declare enum FLOATING_CONTROLS_TITLE {
570
569
  CODE_BLOCK = "codeBlockFloatingControls",
@@ -1,7 +1,7 @@
1
- import type { ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
- import type { InsertAEP } from './utils';
1
+ import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
2
+ import type { TrackAEP } from './utils';
3
3
  export type InputMethodInsertNativeEmbed = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
4
- export type InsertNativeEmbedAEP = InsertAEP<ACTION_SUBJECT_ID.NATIVE_EMBED, {
4
+ export type InsertNativeEmbedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.NATIVE_EMBED, undefined, {
5
5
  inputMethod: InputMethodInsertNativeEmbed;
6
6
  insertedCount: number;
7
7
  }, undefined>;
@@ -563,8 +563,7 @@ export declare enum ACTION_SUBJECT_ID {
563
563
  SYNCED_BLOCK_CLICK_SYNCED_LOCATION = "syncedBlockClickSyncedLocation",
564
564
  SYNCED_BLOCK_LABEL = "syncedBlockLabel",
565
565
  SYNCED_BLOCK_SSR_ERROR = "syncedBlockSSRError",
566
- TABLE_STICKY_HEADER = "tableStickyHeader",
567
- NATIVE_EMBED = "nativeEmbed"
566
+ TABLE_STICKY_HEADER = "tableStickyHeader"
568
567
  }
569
568
  export declare enum FLOATING_CONTROLS_TITLE {
570
569
  CODE_BLOCK = "codeBlockFloatingControls",
@@ -1,7 +1,7 @@
1
- import type { ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
- import type { InsertAEP } from './utils';
1
+ import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
2
+ import type { TrackAEP } from './utils';
3
3
  export type InputMethodInsertNativeEmbed = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
4
- export type InsertNativeEmbedAEP = InsertAEP<ACTION_SUBJECT_ID.NATIVE_EMBED, {
4
+ export type InsertNativeEmbedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.NATIVE_EMBED, undefined, {
5
5
  inputMethod: InputMethodInsertNativeEmbed;
6
6
  insertedCount: number;
7
7
  }, undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "112.15.0",
3
+ "version": "112.15.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/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-toolbar": "^0.20.0",
52
52
  "@atlaskit/editor-toolbar-model": "^0.4.0",
53
53
  "@atlaskit/emoji": "^69.10.0",
54
- "@atlaskit/icon": "^33.1.0",
54
+ "@atlaskit/icon": "^34.0.0",
55
55
  "@atlaskit/icon-object": "^7.5.0",
56
56
  "@atlaskit/link": "^3.3.0",
57
57
  "@atlaskit/link-datasource": "^4.34.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/spinner": "^19.0.0",
81
81
  "@atlaskit/task-decision": "^19.3.0",
82
82
  "@atlaskit/textfield": "^8.2.0",
83
- "@atlaskit/tmp-editor-statsig": "^52.1.0",
83
+ "@atlaskit/tmp-editor-statsig": "^53.0.0",
84
84
  "@atlaskit/tokens": "^11.4.0",
85
85
  "@atlaskit/tooltip": "^21.1.0",
86
86
  "@atlaskit/width-detector": "^5.0.0",
@@ -197,9 +197,6 @@
197
197
  "platform_editor_fix_media_in_renderer": {
198
198
  "type": "boolean"
199
199
  },
200
- "platform_editor_a11y_add_role_to_popup": {
201
- "type": "boolean"
202
- },
203
200
  "cc_comments_log_draft_annotation_ancestor_nodes": {
204
201
  "type": "boolean"
205
202
  },