@atlaskit/editor-common 103.16.0 → 103.16.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
+ ## 103.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#146038](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146038)
8
+ [`3b0e0fffbbfe7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b0e0fffbbfe7) -
9
+ ED-27645 fix wide and full width label is overlapped by content below
10
+
3
11
  ## 103.16.0
4
12
 
5
13
  ### Minor Changes
@@ -151,7 +151,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
151
151
  'hide-icon': isBodiedMacro && !isNodeHovered
152
152
  });
153
153
  return (
154
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
154
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
155
155
  (0, _react.jsx)("div", {
156
156
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
157
157
  css: containerStyles
@@ -43,7 +43,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
43
43
  },
44
44
  panelLoadingError: {
45
45
  id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
46
- defaultMessage: "We're having a bit of trouble loading the configuration panel. Try refreshing the page.",
46
+ defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
47
47
  description: 'Error message when loading the configuration panel'
48
48
  }
49
49
  });
@@ -36,7 +36,7 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
36
36
  var borderStyleVars = borderSize && borderColor ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _styles.INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), _styles.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, (0, _editorPalette.hexToEditorBorderPaletteColor)(borderColor) || borderColor) : {};
37
37
  var aspectStyleVars = aspectRatio ? (0, _defineProperty2.default)({}, _styles.INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
38
38
  return (
39
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
39
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
40
40
  (0, _react.jsx)("span", (0, _extends2.default)({
41
41
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
42
42
  style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "103.16.0";
20
+ var packageVersion = "103.16.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -24,13 +24,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
24
24
  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) { (0, _defineProperty2.default)(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; }
25
25
  var resizerLabelStyles = (0, _primitives.xcss)({
26
26
  position: 'absolute',
27
- bottom: "var(--ds-space-negative-400, -32px)",
27
+ bottom: "var(--ds-space-0, 0)",
28
28
  width: '100%',
29
29
  overflow: 'visible',
30
30
  display: 'flex',
31
31
  justifyContent: 'center',
32
32
  alignItems: 'center',
33
- height: "var(--ds-space-0, 0px)"
33
+ height: "var(--ds-space-0, 0px)",
34
+ zIndex: 'layer' // 400 same z-index as the floating toolbar
34
35
  });
35
36
  var SUPPORTED_HANDLES = ['left', 'right'];
36
37
  var inheritedCSS = {
@@ -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 = "103.16.0";
26
+ var packageVersion = "103.16.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -144,7 +144,7 @@ export const ExtensionLabel = ({
144
144
  'hide-icon': isBodiedMacro && !isNodeHovered
145
145
  });
146
146
  return (
147
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
147
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
148
148
  jsx("div", {
149
149
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
150
150
  css: containerStyles
@@ -37,7 +37,7 @@ export const messages = defineMessages({
37
37
  },
38
38
  panelLoadingError: {
39
39
  id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
40
- defaultMessage: "We're having a bit of trouble loading the configuration panel. Try refreshing the page.",
40
+ defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
41
41
  description: 'Error message when loading the configuration panel'
42
42
  }
43
43
  });
@@ -35,7 +35,7 @@ export const InlineImageWrapper = ({
35
35
  [INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY]: aspectRatio
36
36
  } : {};
37
37
  return (
38
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
38
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
39
39
  jsx("span", _extends({
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
41
41
  style: {
@@ -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 = "103.16.0";
4
+ const packageVersion = "103.16.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -8,13 +8,14 @@ import Tooltip from '@atlaskit/tooltip';
8
8
  import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
9
9
  const resizerLabelStyles = xcss({
10
10
  position: 'absolute',
11
- bottom: "var(--ds-space-negative-400, -32px)",
11
+ bottom: "var(--ds-space-0, 0)",
12
12
  width: '100%',
13
13
  overflow: 'visible',
14
14
  display: 'flex',
15
15
  justifyContent: 'center',
16
16
  alignItems: 'center',
17
- height: "var(--ds-space-0, 0px)"
17
+ height: "var(--ds-space-0, 0px)",
18
+ zIndex: 'layer' // 400 same z-index as the floating toolbar
18
19
  });
19
20
  const SUPPORTED_HANDLES = ['left', 'right'];
20
21
  const inheritedCSS = {
@@ -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 = "103.16.0";
16
+ const packageVersion = "103.16.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -143,7 +143,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
143
143
  'hide-icon': isBodiedMacro && !isNodeHovered
144
144
  });
145
145
  return (
146
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
146
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
147
147
  jsx("div", {
148
148
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
149
149
  css: containerStyles
@@ -37,7 +37,7 @@ export var messages = defineMessages({
37
37
  },
38
38
  panelLoadingError: {
39
39
  id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
40
- defaultMessage: "We're having a bit of trouble loading the configuration panel. Try refreshing the page.",
40
+ defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
41
41
  description: 'Error message when loading the configuration panel'
42
42
  }
43
43
  });
@@ -33,7 +33,7 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
33
33
  var borderStyleVars = borderSize && borderColor ? _defineProperty(_defineProperty({}, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, hexToEditorBorderPaletteColor(borderColor) || borderColor) : {};
34
34
  var aspectStyleVars = aspectRatio ? _defineProperty({}, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
35
35
  return (
36
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
36
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
37
37
  jsx("span", _extends({
38
38
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
39
39
  style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
@@ -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 = "103.16.0";
10
+ var packageVersion = "103.16.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -14,13 +14,14 @@ import Tooltip from '@atlaskit/tooltip';
14
14
  import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
15
15
  var resizerLabelStyles = xcss({
16
16
  position: 'absolute',
17
- bottom: "var(--ds-space-negative-400, -32px)",
17
+ bottom: "var(--ds-space-0, 0)",
18
18
  width: '100%',
19
19
  overflow: 'visible',
20
20
  display: 'flex',
21
21
  justifyContent: 'center',
22
22
  alignItems: 'center',
23
- height: "var(--ds-space-0, 0px)"
23
+ height: "var(--ds-space-0, 0px)",
24
+ zIndex: 'layer' // 400 same z-index as the floating toolbar
24
25
  });
25
26
  var SUPPORTED_HANDLES = ['left', 'right'];
26
27
  var inheritedCSS = {
@@ -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 = "103.16.0";
23
+ var packageVersion = "103.16.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "103.16.0",
3
+ "version": "103.16.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/"
@@ -139,7 +139,7 @@
139
139
  "@atlaskit/emoji": "^69.1.0",
140
140
  "@atlaskit/icon": "^25.6.0",
141
141
  "@atlaskit/icon-object": "^7.1.0",
142
- "@atlaskit/link-datasource": "^4.6.0",
142
+ "@atlaskit/link-datasource": "^4.7.0",
143
143
  "@atlaskit/link-picker": "^3.2.0",
144
144
  "@atlaskit/media-card": "^79.2.0",
145
145
  "@atlaskit/media-client": "^32.0.0",
@@ -157,7 +157,7 @@
157
157
  "@atlaskit/primitives": "^14.4.0",
158
158
  "@atlaskit/profilecard": "^23.8.0",
159
159
  "@atlaskit/section-message": "^8.2.0",
160
- "@atlaskit/smart-card": "^36.9.0",
160
+ "@atlaskit/smart-card": "^36.10.0",
161
161
  "@atlaskit/smart-user-picker": "^8.0.0",
162
162
  "@atlaskit/spinner": "^18.0.0",
163
163
  "@atlaskit/task-decision": "^19.1.0",
@@ -201,11 +201,11 @@
201
201
  "react-intl-next": "npm:react-intl@^5.18.1"
202
202
  },
203
203
  "devDependencies": {
204
- "@af/visual-regression": "^1.3.0",
204
+ "@af/visual-regression": "workspace:^",
205
205
  "@atlaskit/media-core": "^35.0.0",
206
206
  "@atlaskit/media-test-helpers": "^35.0.0",
207
207
  "@atlaskit/util-data-test": "^18.0.0",
208
- "@atlaskit/visual-regression": "^0.10.0",
208
+ "@atlaskit/visual-regression": "workspace:^",
209
209
  "@testing-library/dom": "^10.1.0",
210
210
  "@testing-library/jest-dom": "^6.4.5",
211
211
  "@testing-library/react": "^13.4.0",