@atlaskit/editor-common 82.7.1 → 82.8.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,28 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 82.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#111851](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111851)
8
+ [`4aefbe38ee8e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4aefbe38ee8e2) -
9
+ ED-23129: Updated experiment ID and corresponding editor FF
10
+
11
+ ## 82.8.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#111788](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111788)
16
+ [`5a286a37540ff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5a286a37540ff) -
17
+ [ux] [EDF-770] Show agents in the floating toolbar dropdown
18
+
19
+ ### Patch Changes
20
+
21
+ - [#110948](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110948)
22
+ [`6567f4bf996b3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6567f4bf996b3) -
23
+ [ux] When we select caption comment, the comment badge should not be active (with FF) and rename
24
+ prop name to mediaSingleElement
25
+
3
26
  ## 82.7.1
4
27
 
5
28
  ### Patch Changes
@@ -43,7 +43,7 @@ var CommentBadge = exports.CommentBadge = function CommentBadge(_ref) {
43
43
  height = _ref.height,
44
44
  _ref$status = _ref.status,
45
45
  status = _ref$status === void 0 ? 'default' : _ref$status,
46
- mediaElement = _ref.mediaElement,
46
+ mediaSingleElement = _ref.mediaSingleElement,
47
47
  onClick = _ref.onClick,
48
48
  onMouseEnter = _ref.onMouseEnter,
49
49
  onMouseLeave = _ref.onMouseLeave,
@@ -63,13 +63,13 @@ var CommentBadge = exports.CommentBadge = function CommentBadge(_ref) {
63
63
  height = _entry$contentRect.height;
64
64
  setBadgeSize(getBadgeSize(width, height));
65
65
  }));
66
- if (mediaElement) {
67
- observer.observe(mediaElement);
66
+ if (mediaSingleElement) {
67
+ observer.observe(mediaSingleElement);
68
68
  }
69
69
  return function () {
70
70
  observer.disconnect();
71
71
  };
72
- }, [mediaElement]);
72
+ }, [mediaSingleElement]);
73
73
  var badgeDimensions = badgeSize === 'medium' ? '24px' : '16px';
74
74
  var colourToken = (0, _react.useMemo)(function () {
75
75
  switch (status) {
@@ -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 && Object.prototype.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 = "82.7.1";
20
+ var packageVersion = "82.8.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  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); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "82.7.1";
23
+ var packageVersion = "82.8.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -31,7 +31,7 @@ export const CommentBadge = ({
31
31
  width,
32
32
  height,
33
33
  status = 'default',
34
- mediaElement,
34
+ mediaSingleElement,
35
35
  onClick,
36
36
  onMouseEnter,
37
37
  onMouseLeave,
@@ -49,13 +49,13 @@ export const CommentBadge = ({
49
49
  } = entry.contentRect;
50
50
  setBadgeSize(getBadgeSize(width, height));
51
51
  }));
52
- if (mediaElement) {
53
- observer.observe(mediaElement);
52
+ if (mediaSingleElement) {
53
+ observer.observe(mediaSingleElement);
54
54
  }
55
55
  return () => {
56
56
  observer.disconnect();
57
57
  };
58
- }, [mediaElement]);
58
+ }, [mediaSingleElement]);
59
59
  const badgeDimensions = badgeSize === 'medium' ? '24px' : '16px';
60
60
  const colourToken = useMemo(() => {
61
61
  switch (status) {
@@ -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 = "82.7.1";
4
+ const packageVersion = "82.8.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "82.7.1";
10
+ const packageVersion = "82.8.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -35,7 +35,7 @@ export var CommentBadge = function CommentBadge(_ref) {
35
35
  height = _ref.height,
36
36
  _ref$status = _ref.status,
37
37
  status = _ref$status === void 0 ? 'default' : _ref$status,
38
- mediaElement = _ref.mediaElement,
38
+ mediaSingleElement = _ref.mediaSingleElement,
39
39
  onClick = _ref.onClick,
40
40
  onMouseEnter = _ref.onMouseEnter,
41
41
  onMouseLeave = _ref.onMouseLeave,
@@ -55,13 +55,13 @@ export var CommentBadge = function CommentBadge(_ref) {
55
55
  height = _entry$contentRect.height;
56
56
  setBadgeSize(getBadgeSize(width, height));
57
57
  }));
58
- if (mediaElement) {
59
- observer.observe(mediaElement);
58
+ if (mediaSingleElement) {
59
+ observer.observe(mediaSingleElement);
60
60
  }
61
61
  return function () {
62
62
  observer.disconnect();
63
63
  };
64
- }, [mediaElement]);
64
+ }, [mediaSingleElement]);
65
65
  var badgeDimensions = badgeSize === 'medium' ? '24px' : '16px';
66
66
  var colourToken = useMemo(function () {
67
67
  switch (status) {
@@ -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 = "82.7.1";
10
+ var packageVersion = "82.8.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "82.7.1";
18
+ var packageVersion = "82.8.1";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -6,7 +6,7 @@ export type CommentBadgeProps = {
6
6
  width?: number;
7
7
  height?: number;
8
8
  status?: 'default' | 'entered' | 'active';
9
- mediaElement?: HTMLElement | null;
9
+ mediaSingleElement?: HTMLElement | null;
10
10
  onClick: (e: React.MouseEvent) => void;
11
11
  onMouseEnter?: (e: React.MouseEvent) => void;
12
12
  onMouseLeave?: (e: React.MouseEvent) => void;
@@ -15,4 +15,4 @@ export type CommentBadgeProps = {
15
15
  badgeOffsetRight?: string;
16
16
  commentsOnMediaBugFixEnabled?: boolean;
17
17
  };
18
- export declare const CommentBadge: ({ intl, width, height, status, mediaElement, onClick, onMouseEnter, onMouseLeave, badgeOffsetRight, commentsOnMediaBugFixEnabled, }: CommentBadgeProps) => jsx.JSX.Element;
18
+ export declare const CommentBadge: ({ intl, width, height, status, mediaSingleElement, onClick, onMouseEnter, onMouseLeave, badgeOffsetRight, commentsOnMediaBugFixEnabled, }: CommentBadgeProps) => jsx.JSX.Element;
@@ -244,7 +244,7 @@ export type FeatureFlags = {
244
244
  * @see https://product-fabric.atlassian.net/browse/ED-23600
245
245
  * @default false
246
246
  */
247
- tableSortColumnDiscoverability?: boolean;
247
+ tableSortColumnReorder?: boolean;
248
248
  /**
249
249
  * @description
250
250
  * Enables new column resizing experience
@@ -33,6 +33,7 @@ export interface DropdownOptionT<T extends {}> {
33
33
  testId?: string;
34
34
  tooltip?: string;
35
35
  elemAfter?: React.ReactNode;
36
+ icon?: React.ReactNode;
36
37
  }
37
38
  export type typeOption =
38
39
  /** Dropdown menu item type
@@ -6,7 +6,7 @@ export type CommentBadgeProps = {
6
6
  width?: number;
7
7
  height?: number;
8
8
  status?: 'default' | 'entered' | 'active';
9
- mediaElement?: HTMLElement | null;
9
+ mediaSingleElement?: HTMLElement | null;
10
10
  onClick: (e: React.MouseEvent) => void;
11
11
  onMouseEnter?: (e: React.MouseEvent) => void;
12
12
  onMouseLeave?: (e: React.MouseEvent) => void;
@@ -15,4 +15,4 @@ export type CommentBadgeProps = {
15
15
  badgeOffsetRight?: string;
16
16
  commentsOnMediaBugFixEnabled?: boolean;
17
17
  };
18
- export declare const CommentBadge: ({ intl, width, height, status, mediaElement, onClick, onMouseEnter, onMouseLeave, badgeOffsetRight, commentsOnMediaBugFixEnabled, }: CommentBadgeProps) => jsx.JSX.Element;
18
+ export declare const CommentBadge: ({ intl, width, height, status, mediaSingleElement, onClick, onMouseEnter, onMouseLeave, badgeOffsetRight, commentsOnMediaBugFixEnabled, }: CommentBadgeProps) => jsx.JSX.Element;
@@ -244,7 +244,7 @@ export type FeatureFlags = {
244
244
  * @see https://product-fabric.atlassian.net/browse/ED-23600
245
245
  * @default false
246
246
  */
247
- tableSortColumnDiscoverability?: boolean;
247
+ tableSortColumnReorder?: boolean;
248
248
  /**
249
249
  * @description
250
250
  * Enables new column resizing experience
@@ -33,6 +33,7 @@ export interface DropdownOptionT<T extends {}> {
33
33
  testId?: string;
34
34
  tooltip?: string;
35
35
  elemAfter?: React.ReactNode;
36
+ icon?: React.ReactNode;
36
37
  }
37
38
  export type typeOption =
38
39
  /** Dropdown menu item type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "82.7.1",
3
+ "version": "82.8.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/"