@atlaskit/editor-common 110.7.0 → 110.7.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
+ ## 110.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e9b5c112e0316`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9b5c112e0316) -
8
+ EDITOR-2252 - Accept reject button analytics
9
+ - Updated dependencies
10
+
3
11
  ## 110.7.0
4
12
 
5
13
  ### Minor Changes
@@ -342,6 +342,8 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
342
342
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
343
343
  ACTION_SUBJECT_ID["ACTION"] = "action";
344
344
  ACTION_SUBJECT_ID["ACTIVITY"] = "activity";
345
+ ACTION_SUBJECT_ID["AI_CHANGES_ACCEPT_BUTTON"] = "aiChangesAcceptButton";
346
+ ACTION_SUBJECT_ID["AI_CHANGES_REJECT_BUTTON"] = "aiChangesRejectButton";
345
347
  ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
346
348
  ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
347
349
  ACTION_SUBJECT_ID["AI_INLINE_SUGGESTION"] = "aiInlineSuggestion";
@@ -241,7 +241,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
241
241
  id = _this$props7.id,
242
242
  role = _this$props7.role;
243
243
  return (
244
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions, @atlassian/a11y/no-noninteractive-element-interactions
244
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, @atlassian/a11y/no-noninteractive-element-interactions, @atlassian/a11y/click-events-have-key-events
245
245
  (0, _react2.jsx)("li", {
246
246
  css: [container, selected && containerSelected],
247
247
  role: role,
@@ -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, @atlassian/a11y/interactive-element-not-keyboard-focusable
39
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/click-events-have-key-events
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)
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
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 = "110.6.0";
19
+ var packageVersion = "110.7.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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 = "110.6.0";
27
+ var packageVersion = "110.7.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -336,6 +336,8 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
336
336
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
337
337
  ACTION_SUBJECT_ID["ACTION"] = "action";
338
338
  ACTION_SUBJECT_ID["ACTIVITY"] = "activity";
339
+ ACTION_SUBJECT_ID["AI_CHANGES_ACCEPT_BUTTON"] = "aiChangesAcceptButton";
340
+ ACTION_SUBJECT_ID["AI_CHANGES_REJECT_BUTTON"] = "aiChangesRejectButton";
339
341
  ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
340
342
  ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
341
343
  ACTION_SUBJECT_ID["AI_INLINE_SUGGESTION"] = "aiInlineSuggestion";
@@ -226,7 +226,7 @@ class LinkSearchListItem extends React.PureComponent {
226
226
  role
227
227
  } = this.props;
228
228
  return (
229
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions, @atlassian/a11y/no-noninteractive-element-interactions
229
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, @atlassian/a11y/no-noninteractive-element-interactions, @atlassian/a11y/click-events-have-key-events
230
230
  jsx("li", {
231
231
  css: [container, selected && containerSelected],
232
232
  role: role,
@@ -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, @atlassian/a11y/interactive-element-not-keyboard-focusable
38
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/click-events-have-key-events
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 = "110.6.0";
4
+ const packageVersion = "110.7.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // 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 = "110.6.0";
17
+ const packageVersion = "110.7.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -336,6 +336,8 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
336
336
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
337
337
  ACTION_SUBJECT_ID["ACTION"] = "action";
338
338
  ACTION_SUBJECT_ID["ACTIVITY"] = "activity";
339
+ ACTION_SUBJECT_ID["AI_CHANGES_ACCEPT_BUTTON"] = "aiChangesAcceptButton";
340
+ ACTION_SUBJECT_ID["AI_CHANGES_REJECT_BUTTON"] = "aiChangesRejectButton";
339
341
  ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
340
342
  ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
341
343
  ACTION_SUBJECT_ID["AI_INLINE_SUGGESTION"] = "aiInlineSuggestion";
@@ -236,7 +236,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
236
236
  id = _this$props7.id,
237
237
  role = _this$props7.role;
238
238
  return (
239
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions, @atlassian/a11y/no-noninteractive-element-interactions
239
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, @atlassian/a11y/no-noninteractive-element-interactions, @atlassian/a11y/click-events-have-key-events
240
240
  jsx("li", {
241
241
  css: [container, selected && containerSelected],
242
242
  role: role,
@@ -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, @atlassian/a11y/interactive-element-not-keyboard-focusable
36
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/click-events-have-key-events
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 = "110.6.0";
10
+ var packageVersion = "110.7.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // 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 = "110.6.0";
24
+ var packageVersion = "110.7.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,5 +1,5 @@
1
1
  import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
- import type { OperationalAEP } from './utils';
2
+ import type { OperationalAEP, UIAEP } from './utils';
3
3
  type AILocalIdNotFoundErrorAEP = OperationalAEP<ACTION.LOCAL_ID_NOT_FOUND, ACTION_SUBJECT.AI_STREAMING, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
4
4
  docSize: number | undefined;
5
5
  localId: string;
@@ -15,5 +15,17 @@ type AIStreamingDiscardStreamError = OperationalAEP<ACTION.ERRORED, ACTION_SUBJE
15
15
  errorMessage?: string;
16
16
  errorStack: string;
17
17
  }>;
18
- export type AIStreamingEventPayload = AILocalIdNotFoundErrorAEP | AIStreamingUpdateStreamError | AIStreamingDiscardStreamError;
18
+ type AIChangesAcceptButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_CHANGES_ACCEPT_BUTTON, {
19
+ appearance: string | undefined;
20
+ configItemTitle: string | undefined;
21
+ lastTriggeredFrom: string | undefined;
22
+ product: string | undefined;
23
+ }, undefined>;
24
+ type AIChangesRejectButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_CHANGES_REJECT_BUTTON, {
25
+ appearance: string | undefined;
26
+ configItemTitle: string | undefined;
27
+ lastTriggeredFrom: string | undefined;
28
+ product: string | undefined;
29
+ }, undefined>;
30
+ export type AIStreamingEventPayload = AILocalIdNotFoundErrorAEP | AIStreamingUpdateStreamError | AIStreamingDiscardStreamError | AIChangesAcceptButtonClickedAEP | AIChangesRejectButtonClickedAEP;
19
31
  export {};
@@ -328,6 +328,8 @@ export declare enum ACTION_SUBJECT {
328
328
  export declare enum ACTION_SUBJECT_ID {
329
329
  ACTION = "action",
330
330
  ACTIVITY = "activity",
331
+ AI_CHANGES_ACCEPT_BUTTON = "aiChangesAcceptButton",
332
+ AI_CHANGES_REJECT_BUTTON = "aiChangesRejectButton",
331
333
  AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
332
334
  AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
333
335
  AI_INLINE_SUGGESTION = "aiInlineSuggestion",
@@ -1,5 +1,5 @@
1
1
  import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
- import type { OperationalAEP } from './utils';
2
+ import type { OperationalAEP, UIAEP } from './utils';
3
3
  type AILocalIdNotFoundErrorAEP = OperationalAEP<ACTION.LOCAL_ID_NOT_FOUND, ACTION_SUBJECT.AI_STREAMING, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
4
4
  docSize: number | undefined;
5
5
  localId: string;
@@ -15,5 +15,17 @@ type AIStreamingDiscardStreamError = OperationalAEP<ACTION.ERRORED, ACTION_SUBJE
15
15
  errorMessage?: string;
16
16
  errorStack: string;
17
17
  }>;
18
- export type AIStreamingEventPayload = AILocalIdNotFoundErrorAEP | AIStreamingUpdateStreamError | AIStreamingDiscardStreamError;
18
+ type AIChangesAcceptButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_CHANGES_ACCEPT_BUTTON, {
19
+ appearance: string | undefined;
20
+ configItemTitle: string | undefined;
21
+ lastTriggeredFrom: string | undefined;
22
+ product: string | undefined;
23
+ }, undefined>;
24
+ type AIChangesRejectButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_CHANGES_REJECT_BUTTON, {
25
+ appearance: string | undefined;
26
+ configItemTitle: string | undefined;
27
+ lastTriggeredFrom: string | undefined;
28
+ product: string | undefined;
29
+ }, undefined>;
30
+ export type AIStreamingEventPayload = AILocalIdNotFoundErrorAEP | AIStreamingUpdateStreamError | AIStreamingDiscardStreamError | AIChangesAcceptButtonClickedAEP | AIChangesRejectButtonClickedAEP;
19
31
  export {};
@@ -328,6 +328,8 @@ export declare enum ACTION_SUBJECT {
328
328
  export declare enum ACTION_SUBJECT_ID {
329
329
  ACTION = "action",
330
330
  ACTIVITY = "activity",
331
+ AI_CHANGES_ACCEPT_BUTTON = "aiChangesAcceptButton",
332
+ AI_CHANGES_REJECT_BUTTON = "aiChangesRejectButton",
331
333
  AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
332
334
  AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
333
335
  AI_INLINE_SUGGESTION = "aiInlineSuggestion",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.7.0",
3
+ "version": "110.7.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/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-toolbar": "^0.14.0",
52
52
  "@atlaskit/editor-toolbar-model": "^0.2.0",
53
53
  "@atlaskit/emoji": "^69.5.0",
54
- "@atlaskit/icon": "^28.4.0",
54
+ "@atlaskit/icon": "^28.5.0",
55
55
  "@atlaskit/icon-object": "^7.2.0",
56
56
  "@atlaskit/link": "^3.2.0",
57
57
  "@atlaskit/link-datasource": "^4.25.0",
@@ -107,7 +107,7 @@
107
107
  "raf-schd": "^4.0.3",
108
108
  "re-resizable": "6.0.0",
109
109
  "react-loadable": "^5.1.0",
110
- "react-virtualized": "^9.8.0",
110
+ "react-virtualized": "^9.22.6",
111
111
  "rusha": "^0.8.13",
112
112
  "uuid": "^3.1.0",
113
113
  "w3c-keyname": "^2.1.8"