@atlaskit/editor-common 116.19.3 → 116.19.5

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,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.19.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9416cb872d58f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9416cb872d58f) -
8
+ Clean up the `ally_30205_accessibility_label_fix` feature gate.
9
+
10
+ ## 116.19.4
11
+
12
+ ### Patch Changes
13
+
14
+ - [`a72d5084ae782`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a72d5084ae782) -
15
+ Add a rendered analytics event for remix generated images
16
+ - Updated dependencies
17
+
3
18
  ## 116.19.3
4
19
 
5
20
  ### Patch Changes
@@ -14,7 +14,6 @@ var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-
14
14
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
15
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
16
16
  var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
19
18
  var _constants = require("../constants");
20
19
  var _useFocus = _interopRequireDefault(require("../hooks/use-focus"));
@@ -115,7 +114,7 @@ function ElementSearch(_ref) {
115
114
  css: styledShortcut
116
115
  }, "\u23CE ", formatMessage(_messages.default.elementAfterInputMessage))),
117
116
  placeholder: formatMessage(_messages.default.placeHolderMessage),
118
- "aria-label": formatMessage((0, _platformFeatureFlags.fg)('ally_30205_accessibility_label_fix') ? _messages.default.searchAriaLabelNew : _messages.default.searchAriaLabel),
117
+ "aria-label": formatMessage(_messages.default.searchAriaLabelNew),
119
118
  "aria-describedby": "search-assistive"
120
119
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
121
120
  ,
@@ -21,11 +21,6 @@ var message = (0, _reactIntl.defineMessages)({
21
21
  defaultMessage: 'Select element',
22
22
  description: 'The text is used as an aria-label for the element browser listbox. It provides an accessible name for screen readers to identify the list of elements that can be selected and inserted.'
23
23
  },
24
- searchAriaLabel: {
25
- id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
26
- defaultMessage: 'Search',
27
- description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
28
- },
29
24
  searchAriaLabelNew: {
30
25
  id: 'fabric.editor.elementbrowser.searchbar.ariaLabel.new',
31
26
  defaultMessage: 'Search elements',
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.19.2";
31
+ var packageVersion = "116.19.4";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // 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 = "116.19.2";
27
+ var packageVersion = "116.19.4";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -11,7 +11,6 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
11
11
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
12
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
13
13
  import SearchIcon from '@atlaskit/icon/core/search';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import Textfield from '@atlaskit/textfield';
16
15
  import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
17
16
  import useFocus from '../hooks/use-focus';
@@ -107,7 +106,7 @@ function ElementSearch({
107
106
  css: styledShortcut
108
107
  }, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
109
108
  placeholder: formatMessage(commonMessages.placeHolderMessage),
110
- "aria-label": formatMessage(fg('ally_30205_accessibility_label_fix') ? commonMessages.searchAriaLabelNew : commonMessages.searchAriaLabel),
109
+ "aria-label": formatMessage(commonMessages.searchAriaLabelNew),
111
110
  "aria-describedby": "search-assistive"
112
111
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
113
112
  ,
@@ -15,11 +15,6 @@ const message = defineMessages({
15
15
  defaultMessage: 'Select element',
16
16
  description: 'The text is used as an aria-label for the element browser listbox. It provides an accessible name for screen readers to identify the list of elements that can be selected and inserted.'
17
17
  },
18
- searchAriaLabel: {
19
- id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
20
- defaultMessage: 'Search',
21
- description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
22
- },
23
18
  searchAriaLabelNew: {
24
19
  id: 'fabric.editor.elementbrowser.searchbar.ariaLabel.new',
25
20
  defaultMessage: 'Search elements',
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.19.2";
17
+ const packageVersion = "116.19.4";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // 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 = "116.19.2";
17
+ const packageVersion = "116.19.4";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -12,7 +12,6 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
12
12
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
13
13
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
14
14
  import SearchIcon from '@atlaskit/icon/core/search';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import Textfield from '@atlaskit/textfield';
17
16
  import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
18
17
  import useFocus from '../hooks/use-focus';
@@ -105,7 +104,7 @@ function ElementSearch(_ref) {
105
104
  css: styledShortcut
106
105
  }, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
107
106
  placeholder: formatMessage(commonMessages.placeHolderMessage),
108
- "aria-label": formatMessage(fg('ally_30205_accessibility_label_fix') ? commonMessages.searchAriaLabelNew : commonMessages.searchAriaLabel),
107
+ "aria-label": formatMessage(commonMessages.searchAriaLabelNew),
109
108
  "aria-describedby": "search-assistive"
110
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
111
110
  ,
@@ -15,11 +15,6 @@ var message = defineMessages({
15
15
  defaultMessage: 'Select element',
16
16
  description: 'The text is used as an aria-label for the element browser listbox. It provides an accessible name for screen readers to identify the list of elements that can be selected and inserted.'
17
17
  },
18
- searchAriaLabel: {
19
- id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
20
- defaultMessage: 'Search',
21
- description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
22
- },
23
18
  searchAriaLabelNew: {
24
19
  id: 'fabric.editor.elementbrowser.searchbar.ariaLabel.new',
25
20
  defaultMessage: 'Search elements',
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.19.2";
23
+ var packageVersion = "116.19.4";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // 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 = "116.19.2";
24
+ var packageVersion = "116.19.4";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -13,7 +13,7 @@ export { CHANGE_ALIGNMENT_REASON, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_C
13
13
  export type { TableEventPayload, OverflowStateInfo } from './types/table-events';
14
14
  export { PasteContents, PasteSources, PasteTypes } from './types/paste-events';
15
15
  export type { PASTE_ACTION_SUBJECT_ID, PasteActionsMenuEventPayload, PasteActionsMenuOpenedAEP, PasteContent, PasteEventPayload, PasteSource, PasteType, } from './types/paste-events';
16
- export type { MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, CaptionTrackAction, MediaResizeTrackAction, MediaInputResizeTrackAction, } from './types/media-events';
16
+ export type { MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, CaptionTrackAction, MediaResizeTrackAction, MediaInputResizeTrackAction, MediaRenderedAEP, } from './types/media-events';
17
17
  export type { MoveContentEventPayload } from './types/move-content-events';
18
18
  export type { DispatchAnalyticsEvent } from './types/dispatch-analytics-event';
19
19
  export { DELETE_DIRECTION, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS, } from './types/list-events';
@@ -48,5 +48,10 @@ export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR,
48
48
  nestedUnder?: string;
49
49
  reason: string;
50
50
  }, undefined>;
51
- export type MediaEventPayload = MediaLinkAEP | MediaAltTextAction | MediaUIAction | MediaResizeTrackAction | MediaInputResizeTrackAction | MediaBorderTrackAction | CaptionTrackAction | ChangeMediaAEP | MediaViewerEventAction | MediaRenderErrorEvent;
51
+ export type MediaRenderedAEP = TrackAEP<ACTION.RENDERED, ACTION_SUBJECT.MEDIA, string | undefined, {
52
+ infographicType: string;
53
+ mediaId: string | undefined;
54
+ pageMode: 'view' | 'edit';
55
+ }, undefined>;
56
+ export type MediaEventPayload = MediaLinkAEP | MediaAltTextAction | MediaUIAction | MediaResizeTrackAction | MediaInputResizeTrackAction | MediaBorderTrackAction | CaptionTrackAction | ChangeMediaAEP | MediaViewerEventAction | MediaRenderErrorEvent | MediaRenderedAEP;
52
57
  export {};
@@ -1,4 +1,4 @@
1
- type MessageKeys = 'assistiveTextDefault' | 'assistiveTextResult' | 'elementAfterInputMessage' | 'elementListAriaLabel' | 'placeHolderMessage' | 'searchAriaLabel' | 'searchAriaLabelNew';
1
+ type MessageKeys = 'assistiveTextDefault' | 'assistiveTextResult' | 'elementAfterInputMessage' | 'elementListAriaLabel' | 'placeHolderMessage' | 'searchAriaLabelNew';
2
2
  declare const message: Record<MessageKeys, {
3
3
  defaultMessage: string;
4
4
  description?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.19.3",
3
+ "version": "116.19.5",
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/"
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/task-decision": "^21.4.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^119.2.0",
83
+ "@atlaskit/tmp-editor-statsig": "^119.3.0",
84
84
  "@atlaskit/tokens": "^15.3.0",
85
85
  "@atlaskit/tooltip": "^23.1.0",
86
86
  "@atlaskit/width-detector": "^6.1.0",
@@ -226,9 +226,6 @@
226
226
  "platform_fix_macro_renders_in_layouts": {
227
227
  "type": "boolean"
228
228
  },
229
- "ally_30205_accessibility_label_fix": {
230
- "type": "boolean"
231
- },
232
229
  "platform_editor_native_anchor_patch_3": {
233
230
  "type": "boolean"
234
231
  },