@atlaskit/editor-common 107.12.1 → 107.12.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,23 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#185241](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185241)
8
+ [`0d1bffce3fedd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d1bffce3fedd) -
9
+ [ux] View embed as block card when page width smaller or equal to 600px
10
+
11
+ ## 107.12.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#190502](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190502)
16
+ [`3eedf393ab015`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3eedf393ab015) -
17
+ ENGHEALTH-31576 Update ariaExpanded value to be false when search list is not present in
18
+ HyperlinkAddToolbar
19
+ - Updated dependencies
20
+
3
21
  ## 107.12.1
4
22
 
5
23
  ### Patch Changes
@@ -26,6 +26,7 @@ var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-n
26
26
  var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page/16"));
27
27
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
28
28
  var _primitives = require("@atlaskit/primitives");
29
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
29
30
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
30
31
  var _analytics = require("../../../analytics");
31
32
  var _ui = require("../../../ui");
@@ -874,7 +875,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
874
875
  id: screenReaderDescriptionId
875
876
  }, formatMessage(messages.searchLinkAriaDescription)), (0, _react2.jsx)(_ui.PanelTextInput, {
876
877
  role: "combobox",
877
- ariaExpanded: true,
878
+ ariaExpanded: (0, _expValEquals.expValEquals)('editor_enghealth_hyperlink_toolbar_aria_values', 'isEnabled', true, false) ? items && items.length > 0 && !isLoading : true,
878
879
  ariaActiveDescendant: ariaActiveDescendant,
879
880
  ariaControls: linkSearchListId,
880
881
  ariaAutoComplete: true,
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "107.12.0";
19
+ var packageVersion = "107.12.2";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -271,7 +271,7 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
271
271
  }
272
272
  }, {
273
273
  key: "viewShouldUpdate",
274
- value: function viewShouldUpdate(nextNode, decorations) {
274
+ value: function viewShouldUpdate(nextNode, _decorations) {
275
275
  if (this._viewShouldUpdate) {
276
276
  return this._viewShouldUpdate(nextNode);
277
277
  }
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "107.12.0";
26
+ var packageVersion = "107.12.2";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -17,6 +17,7 @@ import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
17
17
  import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
18
18
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
19
19
  import { Pressable, xcss } from '@atlaskit/primitives';
20
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
21
  import Tooltip from '@atlaskit/tooltip';
21
22
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
22
23
  import { Announcer, PanelTextInput } from '../../../ui';
@@ -726,7 +727,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
726
727
  id: screenReaderDescriptionId
727
728
  }, formatMessage(messages.searchLinkAriaDescription)), jsx(PanelTextInput, {
728
729
  role: "combobox",
729
- ariaExpanded: true,
730
+ ariaExpanded: expValEquals('editor_enghealth_hyperlink_toolbar_aria_values', 'isEnabled', true, false) ? items && items.length > 0 && !isLoading : true,
730
731
  ariaActiveDescendant: ariaActiveDescendant,
731
732
  ariaControls: linkSearchListId,
732
733
  ariaAutoComplete: true,
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "107.12.0";
4
+ const packageVersion = "107.12.2";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -222,7 +222,7 @@ export default class ReactNodeView {
222
222
  this.renderReactComponent(() => this.render(this.reactComponentProps, this.handleRef));
223
223
  return true;
224
224
  }
225
- viewShouldUpdate(nextNode, decorations) {
225
+ viewShouldUpdate(nextNode, _decorations) {
226
226
  if (this._viewShouldUpdate) {
227
227
  return this._viewShouldUpdate(nextNode);
228
228
  }
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "107.12.0";
16
+ const packageVersion = "107.12.2";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -28,6 +28,7 @@ import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
28
28
  import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
29
29
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
30
30
  import { Pressable, xcss } from '@atlaskit/primitives';
31
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
31
32
  import Tooltip from '@atlaskit/tooltip';
32
33
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
33
34
  import { Announcer, PanelTextInput } from '../../../ui';
@@ -870,7 +871,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
870
871
  id: screenReaderDescriptionId
871
872
  }, formatMessage(messages.searchLinkAriaDescription)), jsx(PanelTextInput, {
872
873
  role: "combobox",
873
- ariaExpanded: true,
874
+ ariaExpanded: expValEquals('editor_enghealth_hyperlink_toolbar_aria_values', 'isEnabled', true, false) ? items && items.length > 0 && !isLoading : true,
874
875
  ariaActiveDescendant: ariaActiveDescendant,
875
876
  ariaControls: linkSearchListId,
876
877
  ariaAutoComplete: true,
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "107.12.0";
10
+ var packageVersion = "107.12.2";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -253,7 +253,7 @@ var ReactNodeView = /*#__PURE__*/function () {
253
253
  }
254
254
  }, {
255
255
  key: "viewShouldUpdate",
256
- value: function viewShouldUpdate(nextNode, decorations) {
256
+ value: function viewShouldUpdate(nextNode, _decorations) {
257
257
  if (this._viewShouldUpdate) {
258
258
  return this._viewShouldUpdate(nextNode);
259
259
  }
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "107.12.0";
23
+ var packageVersion = "107.12.2";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -42,7 +42,7 @@ export default class ReactNodeView<P = ReactComponentProps> implements NodeView
42
42
  private _handleRef;
43
43
  render(props: P, forwardRef?: ForwardRef): React.ReactElement<any> | null;
44
44
  update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource, validUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
45
- viewShouldUpdate(nextNode: PMNode, decorations?: Array<Decoration>): boolean;
45
+ viewShouldUpdate(nextNode: PMNode, _decorations?: Array<Decoration>): boolean;
46
46
  /**
47
47
  * Copies the attributes from a ProseMirror Node to a DOM node.
48
48
  * @param node The Prosemirror Node from which to source the attributes
@@ -42,7 +42,7 @@ export default class ReactNodeView<P = ReactComponentProps> implements NodeView
42
42
  private _handleRef;
43
43
  render(props: P, forwardRef?: ForwardRef): React.ReactElement<any> | null;
44
44
  update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource, validUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
45
- viewShouldUpdate(nextNode: PMNode, decorations?: Array<Decoration>): boolean;
45
+ viewShouldUpdate(nextNode: PMNode, _decorations?: Array<Decoration>): boolean;
46
46
  /**
47
47
  * Copies the attributes from a ProseMirror Node to a DOM node.
48
48
  * @param node The Prosemirror Node from which to source the attributes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.12.1",
3
+ "version": "107.12.3",
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/"
@@ -141,7 +141,7 @@
141
141
  "@atlaskit/editor-shared-styles": "^3.5.0",
142
142
  "@atlaskit/editor-tables": "^2.9.0",
143
143
  "@atlaskit/emoji": "^69.3.0",
144
- "@atlaskit/icon": "^27.6.0",
144
+ "@atlaskit/icon": "^27.7.0",
145
145
  "@atlaskit/icon-object": "^7.1.0",
146
146
  "@atlaskit/link": "^3.2.0",
147
147
  "@atlaskit/link-datasource": "^4.14.0",
@@ -171,7 +171,7 @@
171
171
  "@atlaskit/task-decision": "^19.2.0",
172
172
  "@atlaskit/textfield": "^8.0.0",
173
173
  "@atlaskit/theme": "^19.0.0",
174
- "@atlaskit/tmp-editor-statsig": "^9.11.0",
174
+ "@atlaskit/tmp-editor-statsig": "^9.12.0",
175
175
  "@atlaskit/tokens": "^5.6.0",
176
176
  "@atlaskit/tooltip": "^20.3.0",
177
177
  "@atlaskit/width-detector": "^5.0.0",