@atlaskit/editor-common 112.19.0 → 112.19.2

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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 112.19.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9e290511c0bea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e290511c0bea) -
8
+ Clean up stale experiment gate editor_enghealth_hyperlink_toolbar_aria_values, permanently
9
+ enabling the improved aria values behaviour
10
+ - Updated dependencies
11
+
12
+ ## 112.19.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [`24dad72901730`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24dad72901730) -
17
+ Editor-6083: Fix border no shown when resize embed inside synced block
18
+
3
19
  ## 112.19.0
4
20
 
5
21
  ### Minor Changes
@@ -913,7 +913,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
913
913
  id: screenReaderDescriptionId
914
914
  }, formatMessage(messages.searchLinkAriaDescription)), (0, _react2.jsx)(_ui.PanelTextInput, {
915
915
  role: "combobox",
916
- ariaExpanded: (0, _expValEquals.expValEquals)('editor_enghealth_hyperlink_toolbar_aria_values', 'isEnabled', true, false) ? items && items.length > 0 && !isLoading : true,
916
+ ariaExpanded: items && items.length > 0 && !isLoading,
917
917
  ariaActiveDescendant: ariaActiveDescendant,
918
918
  ariaControls: linkSearchListId,
919
919
  ariaAutoComplete: true,
@@ -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.18.10";
22
+ var packageVersion = "112.19.1";
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.18.10";
27
+ var packageVersion = "112.19.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -65,9 +65,13 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
65
65
  displayGrid = _this$props.displayGrid,
66
66
  layout = _this$props.layout,
67
67
  width = _this$props.width,
68
- snapPoints = _this$props.snapPoints;
68
+ snapPoints = _this$props.snapPoints,
69
+ onResizeStart = _this$props.onResizeStart;
69
70
  // prevent creating a drag event on Firefox
70
71
  event.preventDefault();
72
+ if (onResizeStart) {
73
+ onResizeStart();
74
+ }
71
75
  _this.setState({
72
76
  isResizing: true
73
77
  }, function () {
@@ -767,7 +767,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
767
767
  id: screenReaderDescriptionId
768
768
  }, formatMessage(messages.searchLinkAriaDescription)), jsx(PanelTextInput, {
769
769
  role: "combobox",
770
- ariaExpanded: expValEquals('editor_enghealth_hyperlink_toolbar_aria_values', 'isEnabled', true, false) ? items && items.length > 0 && !isLoading : true,
770
+ ariaExpanded: items && items.length > 0 && !isLoading,
771
771
  ariaActiveDescendant: ariaActiveDescendant,
772
772
  ariaControls: linkSearchListId,
773
773
  ariaAutoComplete: true,
@@ -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.18.10";
7
+ const packageVersion = "112.19.1";
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.18.10";
17
+ const packageVersion = "112.19.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -43,10 +43,14 @@ export default class Resizer extends React.Component {
43
43
  displayGrid,
44
44
  layout,
45
45
  width,
46
- snapPoints
46
+ snapPoints,
47
+ onResizeStart
47
48
  } = this.props;
48
49
  // prevent creating a drag event on Firefox
49
50
  event.preventDefault();
51
+ if (onResizeStart) {
52
+ onResizeStart();
53
+ }
50
54
  this.setState({
51
55
  isResizing: true
52
56
  }, () => {
@@ -910,7 +910,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
910
910
  id: screenReaderDescriptionId
911
911
  }, formatMessage(messages.searchLinkAriaDescription)), jsx(PanelTextInput, {
912
912
  role: "combobox",
913
- ariaExpanded: expValEquals('editor_enghealth_hyperlink_toolbar_aria_values', 'isEnabled', true, false) ? items && items.length > 0 && !isLoading : true,
913
+ ariaExpanded: items && items.length > 0 && !isLoading,
914
914
  ariaActiveDescendant: ariaActiveDescendant,
915
915
  ariaControls: linkSearchListId,
916
916
  ariaAutoComplete: true,
@@ -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.18.10";
13
+ var packageVersion = "112.19.1";
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.18.10";
24
+ var packageVersion = "112.19.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -58,9 +58,13 @@ var Resizer = /*#__PURE__*/function (_React$Component) {
58
58
  displayGrid = _this$props.displayGrid,
59
59
  layout = _this$props.layout,
60
60
  width = _this$props.width,
61
- snapPoints = _this$props.snapPoints;
61
+ snapPoints = _this$props.snapPoints,
62
+ onResizeStart = _this$props.onResizeStart;
62
63
  // prevent creating a drag event on Firefox
63
64
  event.preventDefault();
65
+ if (onResizeStart) {
66
+ onResizeStart();
67
+ }
64
68
  _this.setState({
65
69
  isResizing: true
66
70
  }, function () {
@@ -22,6 +22,7 @@ export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> &
22
22
  highlights: (width: number, snapPoints: number[]) => number[] | string[];
23
23
  innerPadding?: number;
24
24
  nodeType?: 'media' | 'embed';
25
+ onResizeStart?: () => void;
25
26
  ratio?: string;
26
27
  scaleFactor?: number;
27
28
  selected?: boolean;
@@ -22,6 +22,7 @@ export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> &
22
22
  highlights: (width: number, snapPoints: number[]) => number[] | string[];
23
23
  innerPadding?: number;
24
24
  nodeType?: 'media' | 'embed';
25
+ onResizeStart?: () => void;
25
26
  ratio?: string;
26
27
  scaleFactor?: number;
27
28
  selected?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "112.19.0",
3
+ "version": "112.19.2",
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/"
@@ -79,7 +79,7 @@
79
79
  "@atlaskit/spinner": "^19.1.0",
80
80
  "@atlaskit/task-decision": "^19.3.0",
81
81
  "@atlaskit/textfield": "^8.3.0",
82
- "@atlaskit/tmp-editor-statsig": "^56.2.0",
82
+ "@atlaskit/tmp-editor-statsig": "^57.0.0",
83
83
  "@atlaskit/tokens": "^12.0.0",
84
84
  "@atlaskit/tooltip": "^21.1.0",
85
85
  "@atlaskit/width-detector": "^5.0.0",