@atlaskit/editor-common 74.58.1 → 74.58.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,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.58.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete adf-schema from AFE and rely on npm package for adf-schema
8
+ - [`111ff4f4f1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/111ff4f4f1f) - Add input resizing event analytics
9
+ - [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete adf-schema, use published version
10
+
11
+ ## 74.58.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`546c2038081`](https://bitbucket.org/atlassian/atlassian-frontend/commits/546c2038081) - ED-19888 fix handler styles
16
+
3
17
  ## 74.58.1
4
18
 
5
19
  ### Patch Changes
@@ -5296,42 +5310,42 @@ Bumped dependencies.
5296
5310
 
5297
5311
  ## 20.2.3
5298
5312
 
5299
- - [patch][8fb4b1e" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8fb4b1e"
5313
+ - [patch][8fb4b1e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8fb4b1e"
5300
5314
  d):
5301
5315
 
5302
5316
  - ED-5274 Fixes tables have excessive margin above
5303
5317
 
5304
5318
  ## 20.2.2
5305
5319
 
5306
- - [patch][67325ee" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67325ee"
5320
+ - [patch][67325ee](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67325ee"
5307
5321
  d):
5308
5322
 
5309
5323
  - fixing image size inside tables
5310
5324
 
5311
5325
  ## 20.2.1
5312
5326
 
5313
- - [patch][534f6ab" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/534f6ab"
5327
+ - [patch][534f6ab](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/534f6ab"
5314
5328
  d):
5315
5329
 
5316
5330
  - ED-5615: Fix block element padding inside table cells.
5317
5331
 
5318
5332
  ## 20.2.0
5319
5333
 
5320
- - [minor][03947b2" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/03947b2"
5334
+ - [minor][03947b2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/03947b2"
5321
5335
  d):
5322
5336
 
5323
5337
  - Change selected state for horizontal rule
5324
5338
 
5325
5339
  ## 20.1.9
5326
5340
 
5327
- - [patch][ef26075" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ef26075"
5341
+ - [patch][ef26075](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ef26075"
5328
5342
  d):
5329
5343
 
5330
5344
  - ED-5622: fix table selection when adding columns/rows very fast
5331
5345
 
5332
5346
  ## 20.1.8
5333
5347
 
5334
- - [patch][08e6a0c" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/08e6a0c"
5348
+ - [patch][08e6a0c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/08e6a0c"
5335
5349
  d):
5336
5350
 
5337
5351
  - Fix panel icon shrinking when a lot of text in a panel
@@ -5344,7 +5358,7 @@ Bumped dependencies.
5344
5358
 
5345
5359
  ## 20.1.6
5346
5360
 
5347
- - [patch][1662ae0" d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1662ae0"
5361
+ - [patch][1662ae0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1662ae0"
5348
5362
  d):
5349
5363
 
5350
5364
  - ED-5440 convert sections to use percentages
@@ -325,7 +325,6 @@ var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
325
325
  ACTION_SUBJECT_ID["REACT_NODE_VIEW"] = "reactNodeView";
326
326
  ACTION_SUBJECT_ID["RECENT_ACTIVITIES"] = "recentActivities";
327
327
  ACTION_SUBJECT_ID["RESIZED"] = "resized";
328
- ACTION_SUBJECT_ID["INPUT_RESIZED"] = "input resized";
329
328
  ACTION_SUBJECT_ID["RICH_MEDIA_LAYOUT"] = "richMediaLayout";
330
329
  ACTION_SUBJECT_ID["SAVE"] = "save";
331
330
  ACTION_SUBJECT_ID["SECTION"] = "section";
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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 = "74.58.1";
19
+ var packageVersion = "74.58.3";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -181,6 +181,7 @@ function ResizerNext(props) {
181
181
  },
182
182
  className: resizerClassName,
183
183
  handleClasses: handles,
184
+ handleWrapperClass: _resizer.handleWrapperClass,
184
185
  handleStyles: nextHandleStyles,
185
186
  onResizeStart: onResizeStart,
186
187
  onResize: onResize,
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleZIndex = exports.resizerHandleTrackClassName = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerDangerClassName = void 0;
7
+ exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleZIndex = exports.resizerHandleTrackClassName = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerDangerClassName = exports.handleWrapperClass = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
@@ -30,7 +30,9 @@ var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger");
30
30
  // akEditorSelectedNodeClassName from '@atlaskit/editor-shared-styles';
31
31
  exports.resizerDangerClassName = resizerDangerClassName;
32
32
  var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
33
+ var handleWrapperClass = 'resizer-handle-wrapper';
34
+ exports.handleWrapperClass = handleWrapperClass;
33
35
  var resizerHandleZIndex = 99;
34
36
  exports.resizerHandleZIndex = resizerHandleZIndex;
35
- var resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: -16px;\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n\n min-height: 24px;\n background: ", ";\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n padding: 0 ", ";\n position: relative;\n display: inline-block;\n width: 100%;\n left: -12px;\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table .", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), resizerHandleClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(_colors.N60, ")"), resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(_colors.B50, ")"), "var(--ds-background-selected, ".concat(_colors.B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerHoverZoneClassName, "var(--ds-space-150, 12px)", resizerHoverZoneClassName);
37
+ var resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n\n min-height: 24px;\n background: ", ";\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n padding: 0 ", ";\n position: relative;\n display: inline-block;\n width: 100%;\n left: ", ";\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table .", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(_colors.N60, ")"), resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(_colors.B50, ")"), "var(--ds-background-selected, ".concat(_colors.B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerHoverZoneClassName, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName);
36
38
  exports.resizerStyles = resizerStyles;
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "74.58.1";
27
+ var packageVersion = "74.58.3";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -314,7 +314,6 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
314
314
  ACTION_SUBJECT_ID["REACT_NODE_VIEW"] = "reactNodeView";
315
315
  ACTION_SUBJECT_ID["RECENT_ACTIVITIES"] = "recentActivities";
316
316
  ACTION_SUBJECT_ID["RESIZED"] = "resized";
317
- ACTION_SUBJECT_ID["INPUT_RESIZED"] = "input resized";
318
317
  ACTION_SUBJECT_ID["RICH_MEDIA_LAYOUT"] = "richMediaLayout";
319
318
  ACTION_SUBJECT_ID["SAVE"] = "save";
320
319
  ACTION_SUBJECT_ID["SECTION"] = "section";
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "74.58.1";
3
+ const packageVersion = "74.58.3";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -3,7 +3,7 @@ import React, { useMemo, useRef, useState } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { Resizable } from 're-resizable';
5
5
  import Tooltip from '@atlaskit/tooltip';
6
- import { resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
6
+ import { handleWrapperClass, resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
7
7
  export default function ResizerNext(props) {
8
8
  const [isResizing, setIsResizing] = useState(false);
9
9
  const resizable = useRef(null);
@@ -163,6 +163,7 @@ export default function ResizerNext(props) {
163
163
  },
164
164
  className: resizerClassName,
165
165
  handleClasses: handles,
166
+ handleWrapperClass: handleWrapperClass,
166
167
  handleStyles: nextHandleStyles,
167
168
  onResizeStart: onResizeStart,
168
169
  onResize: onResize,
@@ -15,6 +15,7 @@ export const resizerDangerClassName = `${resizerHandleClassName}-danger`;
15
15
 
16
16
  // akEditorSelectedNodeClassName from '@atlaskit/editor-shared-styles';
17
17
  const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
18
+ export const handleWrapperClass = 'resizer-handle-wrapper';
18
19
  export const resizerHandleZIndex = 99;
19
20
  export const resizerStyles = css`
20
21
  .${resizerItemClassName} {
@@ -22,7 +23,7 @@ export const resizerStyles = css`
22
23
 
23
24
  &:hover,
24
25
  &.display-handle {
25
- & .${resizerHandleClassName} {
26
+ & > .${handleWrapperClass} > .${resizerHandleClassName} {
26
27
  visibility: visible;
27
28
  opacity: 1;
28
29
  }
@@ -63,7 +64,7 @@ export const resizerStyles = css`
63
64
  flex-direction: column;
64
65
  justify-content: center;
65
66
  align-items: center;
66
- margin-top: -16px;
67
+ margin-top: ${"var(--ds-space-negative-200, -16px)"};
67
68
  white-space: normal;
68
69
  }
69
70
 
@@ -167,7 +168,7 @@ export const resizerStyles = css`
167
168
  position: relative;
168
169
  display: inline-block;
169
170
  width: 100%;
170
- left: -12px;
171
+ left: ${"var(--ds-space-negative-150, -12px)"};
171
172
  }
172
173
 
173
174
  // This below style is here to make sure the image width is correct when nested in a table
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "74.58.1";
12
+ const packageVersion = "74.58.3";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -314,7 +314,6 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
314
314
  ACTION_SUBJECT_ID["REACT_NODE_VIEW"] = "reactNodeView";
315
315
  ACTION_SUBJECT_ID["RECENT_ACTIVITIES"] = "recentActivities";
316
316
  ACTION_SUBJECT_ID["RESIZED"] = "resized";
317
- ACTION_SUBJECT_ID["INPUT_RESIZED"] = "input resized";
318
317
  ACTION_SUBJECT_ID["RICH_MEDIA_LAYOUT"] = "richMediaLayout";
319
318
  ACTION_SUBJECT_ID["SAVE"] = "save";
320
319
  ACTION_SUBJECT_ID["SECTION"] = "section";
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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) { _defineProperty(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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "74.58.1";
9
+ var packageVersion = "74.58.3";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -9,7 +9,7 @@ import React, { useMemo, useRef, useState } from 'react';
9
9
  import classnames from 'classnames';
10
10
  import { Resizable } from 're-resizable';
11
11
  import Tooltip from '@atlaskit/tooltip';
12
- import { resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
12
+ import { handleWrapperClass, resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
13
13
  export default function ResizerNext(props) {
14
14
  var _useState = useState(false),
15
15
  _useState2 = _slicedToArray(_useState, 2),
@@ -171,6 +171,7 @@ export default function ResizerNext(props) {
171
171
  },
172
172
  className: resizerClassName,
173
173
  handleClasses: handles,
174
+ handleWrapperClass: handleWrapperClass,
174
175
  handleStyles: nextHandleStyles,
175
176
  onResizeStart: onResizeStart,
176
177
  onResize: onResize,
@@ -17,5 +17,6 @@ export var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger")
17
17
 
18
18
  // akEditorSelectedNodeClassName from '@atlaskit/editor-shared-styles';
19
19
  var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
20
+ export var handleWrapperClass = 'resizer-handle-wrapper';
20
21
  export var resizerHandleZIndex = 99;
21
- export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: -16px;\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n\n min-height: 24px;\n background: ", ";\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n padding: 0 ", ";\n position: relative;\n display: inline-block;\n width: 100%;\n left: -12px;\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table .", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, "var(--ds-space-150, 12px)", resizerHoverZoneClassName);
22
+ export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n\n min-height: 24px;\n background: ", ";\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n padding: 0 ", ";\n position: relative;\n display: inline-block;\n width: 100%;\n left: ", ";\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table .", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName);
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
19
19
  import { borderRadius } from '@atlaskit/theme/constants';
20
20
  import Layer from '../Layer';
21
21
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "74.58.1";
22
+ var packageVersion = "74.58.3";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -317,7 +317,6 @@ export declare enum ACTION_SUBJECT_ID {
317
317
  REACT_NODE_VIEW = "reactNodeView",
318
318
  RECENT_ACTIVITIES = "recentActivities",
319
319
  RESIZED = "resized",
320
- INPUT_RESIZED = "input resized",
321
320
  RICH_MEDIA_LAYOUT = "richMediaLayout",
322
321
  SAVE = "save",
323
322
  SECTION = "section",
@@ -24,7 +24,7 @@ type MediaInputResizeAttributes = {
24
24
  validation: 'valid' | 'greater-than-max' | 'less-than-min';
25
25
  parentNode?: string;
26
26
  };
27
- export type MediaInputResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.INPUT_RESIZED, MediaInputResizeAttributes, undefined>;
27
+ export type MediaInputResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, MediaInputResizeAttributes, undefined>;
28
28
  type MediaSwitchType = ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_GROUP;
29
29
  type ChangeMediaAEP = TrackAEP<ACTION.CHANGED_TYPE, ACTION_SUBJECT.MEDIA, undefined, {
30
30
  newType: MediaSwitchType;
@@ -4,5 +4,6 @@ export declare const resizerHandleClassName = "resizer-handle";
4
4
  export declare const resizerHandleTrackClassName: string;
5
5
  export declare const resizerHandleThumbClassName: string;
6
6
  export declare const resizerDangerClassName: string;
7
+ export declare const handleWrapperClass = "resizer-handle-wrapper";
7
8
  export declare const resizerHandleZIndex = 99;
8
9
  export declare const resizerStyles: import("@emotion/react").SerializedStyles;
@@ -317,7 +317,6 @@ export declare enum ACTION_SUBJECT_ID {
317
317
  REACT_NODE_VIEW = "reactNodeView",
318
318
  RECENT_ACTIVITIES = "recentActivities",
319
319
  RESIZED = "resized",
320
- INPUT_RESIZED = "input resized",
321
320
  RICH_MEDIA_LAYOUT = "richMediaLayout",
322
321
  SAVE = "save",
323
322
  SECTION = "section",
@@ -24,7 +24,7 @@ type MediaInputResizeAttributes = {
24
24
  validation: 'valid' | 'greater-than-max' | 'less-than-min';
25
25
  parentNode?: string;
26
26
  };
27
- export type MediaInputResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.INPUT_RESIZED, MediaInputResizeAttributes, undefined>;
27
+ export type MediaInputResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, MediaInputResizeAttributes, undefined>;
28
28
  type MediaSwitchType = ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_GROUP;
29
29
  type ChangeMediaAEP = TrackAEP<ACTION.CHANGED_TYPE, ACTION_SUBJECT.MEDIA, undefined, {
30
30
  newType: MediaSwitchType;
@@ -4,5 +4,6 @@ export declare const resizerHandleClassName = "resizer-handle";
4
4
  export declare const resizerHandleTrackClassName: string;
5
5
  export declare const resizerHandleThumbClassName: string;
6
6
  export declare const resizerDangerClassName: string;
7
+ export declare const handleWrapperClass = "resizer-handle-wrapper";
7
8
  export declare const resizerHandleZIndex = 99;
8
9
  export declare const resizerStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.58.1",
3
+ "version": "74.58.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/"
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@atlaskit/activity-provider": "^2.4.0",
85
- "@atlaskit/adf-schema": "28.1.2",
85
+ "@atlaskit/adf-schema": "^29.1.0",
86
86
  "@atlaskit/adf-utils": "^19.0.0",
87
87
  "@atlaskit/analytics-listeners": "^8.7.0",
88
88
  "@atlaskit/analytics-namespaced-context": "^6.7.0",