@atlaskit/editor-common 95.0.0 → 95.1.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/analytics/types/enums.js +1 -0
  3. package/dist/cjs/media-inline/inline-image-wrapper.js +1 -4
  4. package/dist/cjs/media-inline/media-inline-image-card.js +0 -1
  5. package/dist/cjs/media-inline/styles.js +2 -7
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/es2019/analytics/types/enums.js +1 -0
  9. package/dist/es2019/media-inline/inline-image-wrapper.js +2 -5
  10. package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
  11. package/dist/es2019/media-inline/styles.js +1 -6
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/ui/DropList/index.js +1 -1
  14. package/dist/esm/analytics/types/enums.js +1 -0
  15. package/dist/esm/media-inline/inline-image-wrapper.js +2 -5
  16. package/dist/esm/media-inline/media-inline-image-card.js +0 -1
  17. package/dist/esm/media-inline/styles.js +1 -6
  18. package/dist/esm/monitoring/error.js +1 -1
  19. package/dist/esm/ui/DropList/index.js +1 -1
  20. package/dist/types/analytics/index.d.ts +1 -0
  21. package/dist/types/analytics/types/ai-definitions-events.d.ts +5 -2
  22. package/dist/types/analytics/types/enums.d.ts +2 -1
  23. package/dist/types/media-inline/inline-image-wrapper.d.ts +1 -2
  24. package/dist/types/media-inline/styles.d.ts +0 -1
  25. package/dist/types-ts4.5/analytics/index.d.ts +1 -0
  26. package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +5 -2
  27. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  28. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +1 -2
  29. package/dist/types-ts4.5/media-inline/styles.d.ts +0 -1
  30. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 95.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#166487](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166487)
8
+ [`9764cdca27869`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9764cdca27869) -
9
+ [ux] ED-25708 change all media cursors to pointer events in editor
10
+
11
+ ## 95.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#166267](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166267)
16
+ [`fb6305ddf2788`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb6305ddf2788) -
17
+ EDF-2000 - Resolve todo, folder structure refactor, add aiDefinitions errored operational event
18
+ that will be fired when there is an error when updating auto-highlights decorations.
19
+
3
20
  ## 95.0.0
4
21
 
5
22
  ### Major Changes
@@ -268,6 +268,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
268
268
  ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
269
269
  ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
270
270
  ACTION_SUBJECT["DECORATION"] = "decoration";
271
+ ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
271
272
  return ACTION_SUBJECT;
272
273
  }({});
273
274
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -28,7 +28,6 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
28
28
  var _ref2;
29
29
  var children = _ref.children,
30
30
  isSelected = _ref.isSelected,
31
- isInteractive = _ref.isInteractive,
32
31
  aspectRatio = _ref.aspectRatio,
33
32
  borderSize = _ref.borderSize,
34
33
  borderColor = _ref.borderColor,
@@ -51,9 +50,7 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
51
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
52
51
  borderSize && borderColor && _styles.borderStyle,
53
52
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
54
- isSelected && _styles.selectedStyle,
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
56
- isInteractive && _styles.interactiveStyle],
53
+ isSelected && _styles.selectedStyle],
57
54
  "data-testid": "inline-image-wrapper",
58
55
  onClick: onClick
59
56
  }, htmlAttrs), (0, _react.jsx)("span", {
@@ -214,7 +214,6 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
214
214
  }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
215
215
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_inlineImageWrapper.InlineImageWrapper, {
216
216
  isSelected: isSelected,
217
- isInteractive: shouldOpenMediaViewer,
218
217
  aspectRatio: aspectRatio,
219
218
  borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
220
219
  borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
@@ -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.wrapperStyle = exports.selectedStyle = exports.mediaInlineImageStyles = exports.interactiveStyle = exports.borderStyle = exports.INLINE_IMAGE_WRAPPER_CLASS_NAME = exports.INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY = exports.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = exports.INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY = void 0;
7
+ exports.wrapperStyle = exports.selectedStyle = exports.mediaInlineImageStyles = exports.borderStyle = exports.INLINE_IMAGE_WRAPPER_CLASS_NAME = exports.INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY = exports.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = exports.INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _constants = require("./constants");
@@ -33,6 +33,7 @@ var mediaInlineImageStyles = exports.mediaInlineImageStyles = (0, _react.css)(_t
33
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
34
34
  var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
35
35
  display: 'inline-flex',
36
+ cursor: 'pointer',
36
37
  justifyContent: 'center',
37
38
  alignItems: 'center',
38
39
  verticalAlign: 'middle',
@@ -45,16 +46,10 @@ var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
45
46
 
46
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
47
48
  var selectedStyle = exports.selectedStyle = (0, _react.css)({
48
- cursor: 'pointer',
49
49
  boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
50
50
  outline: 'none'
51
51
  });
52
52
 
53
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
54
- var interactiveStyle = exports.interactiveStyle = (0, _react.css)({
55
- cursor: 'pointer'
56
- });
57
-
58
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
59
54
  var borderStyle = exports.borderStyle = (0, _react.css)({
60
55
  borderColor: "var(".concat(INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, ")"),
@@ -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 = "95.0.0";
20
+ var packageVersion = "95.1.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
@@ -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 = "95.0.0";
27
+ var packageVersion = "95.1.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -262,6 +262,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
262
262
  ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
263
263
  ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
264
264
  ACTION_SUBJECT["DECORATION"] = "decoration";
265
+ ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
265
266
  return ACTION_SUBJECT;
266
267
  }({});
267
268
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
10
- import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, interactiveStyle, selectedStyle, wrapperStyle } from './styles';
10
+ import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, selectedStyle, wrapperStyle } from './styles';
11
11
 
12
12
  // The MediaImage component needs to obtain its parent's dimensions.
13
13
  // To achieve this, we have added an additional wrapper that allows
@@ -21,7 +21,6 @@ const sizeWrapperStyle = css({
21
21
  export const InlineImageWrapper = ({
22
22
  children,
23
23
  isSelected,
24
- isInteractive,
25
24
  aspectRatio,
26
25
  borderSize,
27
26
  borderColor,
@@ -52,9 +51,7 @@ export const InlineImageWrapper = ({
52
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
53
52
  borderSize && borderColor && borderStyle,
54
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
55
- isSelected && selectedStyle,
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
57
- isInteractive && interactiveStyle],
54
+ isSelected && selectedStyle],
58
55
  "data-testid": "inline-image-wrapper",
59
56
  onClick: onClick
60
57
  }, htmlAttrs), jsx("span", {
@@ -189,7 +189,6 @@ export const MediaInlineImageCardInternal = ({
189
189
  }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
190
190
  return jsx(Fragment, null, jsx(InlineImageWrapper, {
191
191
  isSelected: isSelected,
192
- isInteractive: shouldOpenMediaViewer,
193
192
  aspectRatio: aspectRatio,
194
193
  borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
195
194
  borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
@@ -62,6 +62,7 @@ export const mediaInlineImageStyles = css`
62
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
63
63
  export const wrapperStyle = css({
64
64
  display: 'inline-flex',
65
+ cursor: 'pointer',
65
66
  justifyContent: 'center',
66
67
  alignItems: 'center',
67
68
  verticalAlign: 'middle',
@@ -74,16 +75,10 @@ export const wrapperStyle = css({
74
75
 
75
76
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
76
77
  export const selectedStyle = css({
77
- cursor: 'pointer',
78
78
  boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}`,
79
79
  outline: 'none'
80
80
  });
81
81
 
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
83
- export const interactiveStyle = css({
84
- cursor: 'pointer'
85
- });
86
-
87
82
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
88
83
  export const borderStyle = css({
89
84
  borderColor: `var(${INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY})`,
@@ -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 = "95.0.0";
4
+ const packageVersion = "95.1.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
@@ -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 = "95.0.0";
16
+ const packageVersion = "95.1.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -262,6 +262,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
262
262
  ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
263
263
  ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
264
264
  ACTION_SUBJECT["DECORATION"] = "decoration";
265
+ ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
265
266
  return ACTION_SUBJECT;
266
267
  }({});
267
268
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { css, jsx } from '@emotion/react';
12
12
  import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
13
- import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, interactiveStyle, selectedStyle, wrapperStyle } from './styles';
13
+ import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, selectedStyle, wrapperStyle } from './styles';
14
14
 
15
15
  // The MediaImage component needs to obtain its parent's dimensions.
16
16
  // To achieve this, we have added an additional wrapper that allows
@@ -25,7 +25,6 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
25
25
  var _ref2;
26
26
  var children = _ref.children,
27
27
  isSelected = _ref.isSelected,
28
- isInteractive = _ref.isInteractive,
29
28
  aspectRatio = _ref.aspectRatio,
30
29
  borderSize = _ref.borderSize,
31
30
  borderColor = _ref.borderColor,
@@ -48,9 +47,7 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
48
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
49
48
  borderSize && borderColor && borderStyle,
50
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
51
- isSelected && selectedStyle,
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
53
- isInteractive && interactiveStyle],
50
+ isSelected && selectedStyle],
54
51
  "data-testid": "inline-image-wrapper",
55
52
  onClick: onClick
56
53
  }, htmlAttrs), jsx("span", {
@@ -210,7 +210,6 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
210
210
  }, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
211
211
  return jsx(Fragment, null, jsx(InlineImageWrapper, {
212
212
  isSelected: isSelected,
213
- isInteractive: shouldOpenMediaViewer,
214
213
  aspectRatio: aspectRatio,
215
214
  borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
216
215
  borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
@@ -27,6 +27,7 @@ export var mediaInlineImageStyles = css(_templateObject2 || (_templateObject2 =
27
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
28
28
  export var wrapperStyle = css({
29
29
  display: 'inline-flex',
30
+ cursor: 'pointer',
30
31
  justifyContent: 'center',
31
32
  alignItems: 'center',
32
33
  verticalAlign: 'middle',
@@ -39,16 +40,10 @@ export var wrapperStyle = css({
39
40
 
40
41
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
41
42
  export var selectedStyle = css({
42
- cursor: 'pointer',
43
43
  boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
44
44
  outline: 'none'
45
45
  });
46
46
 
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
48
- export var interactiveStyle = css({
49
- cursor: 'pointer'
50
- });
51
-
52
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
53
48
  export var borderStyle = css({
54
49
  borderColor: "var(".concat(INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, ")"),
@@ -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 = "95.0.0";
10
+ var packageVersion = "95.1.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
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "95.0.0";
24
+ var packageVersion = "95.1.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -42,3 +42,4 @@ export { getAnalyticsEventsFromTransaction } from './utils';
42
42
  export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
43
43
  export type { LinkType } from './linking-utils';
44
44
  export type { RequestToEditAEP } from './types/general-events';
45
+ export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
@@ -1,9 +1,12 @@
1
1
  import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
- import { type UIAEP } from './utils';
2
+ import { type OperationalAEP, type UIAEP } from './utils';
3
3
  type CommonAttributes = {
4
4
  readingAidsSessionId: string;
5
5
  };
6
6
  type DefineButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_DEFINITIONS_DEFINE_BUTTON, CommonAttributes, undefined>;
7
7
  type AutoHighlightClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.DECORATION, ACTION_SUBJECT_ID.AI_DEFINITIONS_AUTO_HIGHLIGHT, CommonAttributes, undefined>;
8
- export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP;
8
+ type AIDefinitionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_DEFINITIONS, ACTION_SUBJECT_ID, {
9
+ errorMessage?: string;
10
+ }>;
11
+ export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP | AIDefinitionsErrorAEP;
9
12
  export {};
@@ -264,7 +264,8 @@ export declare enum ACTION_SUBJECT {
264
264
  INLINE_DIALOG = "inlineDialog",
265
265
  ENGAGEMENT_PLATFORM = "engagementPlatform",
266
266
  MEDIA_VIEWER = "mediaViewer",
267
- DECORATION = "decoration"
267
+ DECORATION = "decoration",
268
+ AI_DEFINITIONS = "aiDefinitions"
268
269
  }
269
270
  export declare enum ACTION_SUBJECT_ID {
270
271
  ACTION = "action",
@@ -7,7 +7,6 @@ import { jsx } from '@emotion/react';
7
7
  type Props = {
8
8
  children: ReactElement;
9
9
  isSelected?: boolean;
10
- isInteractive?: boolean;
11
10
  aspectRatio?: number | string;
12
11
  borderSize?: number;
13
12
  borderColor?: string;
@@ -16,5 +15,5 @@ type Props = {
16
15
  };
17
16
  onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
18
17
  };
19
- export declare const InlineImageWrapper: ({ children, isSelected, isInteractive, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
18
+ export declare const InlineImageWrapper: ({ children, isSelected, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
20
19
  export {};
@@ -11,5 +11,4 @@ export declare const INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = "--editor-media-inl
11
11
  export declare const mediaInlineImageStyles: import("@emotion/react").SerializedStyles;
12
12
  export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
13
13
  export declare const selectedStyle: import("@emotion/react").SerializedStyles;
14
- export declare const interactiveStyle: import("@emotion/react").SerializedStyles;
15
14
  export declare const borderStyle: import("@emotion/react").SerializedStyles;
@@ -42,3 +42,4 @@ export { getAnalyticsEventsFromTransaction } from './utils';
42
42
  export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
43
43
  export type { LinkType } from './linking-utils';
44
44
  export type { RequestToEditAEP } from './types/general-events';
45
+ export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
@@ -1,9 +1,12 @@
1
1
  import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
- import { type UIAEP } from './utils';
2
+ import { type OperationalAEP, type UIAEP } from './utils';
3
3
  type CommonAttributes = {
4
4
  readingAidsSessionId: string;
5
5
  };
6
6
  type DefineButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_DEFINITIONS_DEFINE_BUTTON, CommonAttributes, undefined>;
7
7
  type AutoHighlightClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.DECORATION, ACTION_SUBJECT_ID.AI_DEFINITIONS_AUTO_HIGHLIGHT, CommonAttributes, undefined>;
8
- export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP;
8
+ type AIDefinitionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_DEFINITIONS, ACTION_SUBJECT_ID, {
9
+ errorMessage?: string;
10
+ }>;
11
+ export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP | AIDefinitionsErrorAEP;
9
12
  export {};
@@ -264,7 +264,8 @@ export declare enum ACTION_SUBJECT {
264
264
  INLINE_DIALOG = "inlineDialog",
265
265
  ENGAGEMENT_PLATFORM = "engagementPlatform",
266
266
  MEDIA_VIEWER = "mediaViewer",
267
- DECORATION = "decoration"
267
+ DECORATION = "decoration",
268
+ AI_DEFINITIONS = "aiDefinitions"
268
269
  }
269
270
  export declare enum ACTION_SUBJECT_ID {
270
271
  ACTION = "action",
@@ -7,7 +7,6 @@ import { jsx } from '@emotion/react';
7
7
  type Props = {
8
8
  children: ReactElement;
9
9
  isSelected?: boolean;
10
- isInteractive?: boolean;
11
10
  aspectRatio?: number | string;
12
11
  borderSize?: number;
13
12
  borderColor?: string;
@@ -16,5 +15,5 @@ type Props = {
16
15
  };
17
16
  onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
18
17
  };
19
- export declare const InlineImageWrapper: ({ children, isSelected, isInteractive, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
18
+ export declare const InlineImageWrapper: ({ children, isSelected, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
20
19
  export {};
@@ -11,5 +11,4 @@ export declare const INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = "--editor-media-inl
11
11
  export declare const mediaInlineImageStyles: import("@emotion/react").SerializedStyles;
12
12
  export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
13
13
  export declare const selectedStyle: import("@emotion/react").SerializedStyles;
14
- export declare const interactiveStyle: import("@emotion/react").SerializedStyles;
15
14
  export declare const borderStyle: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "95.0.0",
3
+ "version": "95.1.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/"
@@ -128,7 +128,7 @@
128
128
  "@atlaskit/editor-shared-styles": "^3.2.0",
129
129
  "@atlaskit/editor-tables": "^2.8.0",
130
130
  "@atlaskit/emoji": "^67.11.0",
131
- "@atlaskit/icon": "^22.24.0",
131
+ "@atlaskit/icon": "^22.25.0",
132
132
  "@atlaskit/icon-object": "^6.7.0",
133
133
  "@atlaskit/link-datasource": "^3.11.0",
134
134
  "@atlaskit/link-picker": "^1.47.0",