@atlaskit/editor-common 119.15.0 → 119.15.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,15 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 119.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e4462b86bc887`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e4462b86bc887) -
8
+ [ux] [ux] Add analytics tracking for the "Try again" retry button on the AI suggested edits error
9
+ screen. Clicking retry now fires an `ai suggestions clicked` track event with
10
+ `actionSubjectId: suggestionsErrorRetry`.
11
+ - Updated dependencies
12
+
3
13
  ## 119.15.0
4
14
 
5
15
  ### Minor Changes
@@ -447,6 +447,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
447
447
  ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
448
448
  ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
449
449
  ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
450
+ ACTION_SUBJECT_ID["SUGGESTIONS_ERROR_RETRY"] = "suggestionsErrorRetry";
450
451
  ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
451
452
  ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
452
453
  ACTION_SUBJECT_ID["COPY_BLOCK"] = "copyBlock";
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "119.14.0";
31
+ var packageVersion = "119.15.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // 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 = "119.14.0";
27
+ var packageVersion = "119.15.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -455,6 +455,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
455
455
  ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
456
456
  ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
457
457
  ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
458
+ ACTION_SUBJECT_ID["SUGGESTIONS_ERROR_RETRY"] = "suggestionsErrorRetry";
458
459
  ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
459
460
  ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
460
461
  ACTION_SUBJECT_ID["COPY_BLOCK"] = "copyBlock";
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "119.14.0";
17
+ const packageVersion = "119.15.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // 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 = "119.14.0";
17
+ const packageVersion = "119.15.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -455,6 +455,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
455
455
  ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
456
456
  ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
457
457
  ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
458
+ ACTION_SUBJECT_ID["SUGGESTIONS_ERROR_RETRY"] = "suggestionsErrorRetry";
458
459
  ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
459
460
  ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
460
461
  ACTION_SUBJECT_ID["COPY_BLOCK"] = "copyBlock";
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "119.14.0";
23
+ var packageVersion = "119.15.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // 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 = "119.14.0";
24
+ var packageVersion = "119.15.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -38,6 +38,12 @@ type RegenerateSuggestionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJE
38
38
  type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
39
39
  entryPoint: AiSuggestionsEntryPoint;
40
40
  }, undefined>;
41
+ /**
42
+ * Fired when the user clicks the "Try again" / retry button on the suggested
43
+ * edits error screen (the thinking bar's error state). Lets us measure how
44
+ * often users attempt to recover from a suggestions failure.
45
+ */
46
+ type SuggestionsErrorRetryClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_ERROR_RETRY, undefined, undefined>;
41
47
  type EntryPointExposureAEP = TrackAEP<ACTION.EXPOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
42
48
  entryPoint: AiSuggestionsEntryPoint;
43
49
  }, undefined>;
@@ -84,5 +90,5 @@ type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJE
84
90
  reasoningCharacterCount: number;
85
91
  suggestionType: string;
86
92
  }, undefined>;
87
- export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | RegenerateSuggestionsErrorAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP | RightRailViewedAEP | ViewSuggestionReasoningAEP;
93
+ export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | RegenerateSuggestionsErrorAEP | EntryPointClickedAEP | SuggestionsErrorRetryClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP | RightRailViewedAEP | ViewSuggestionReasoningAEP;
88
94
  export {};
@@ -429,6 +429,7 @@ export declare enum ACTION_SUBJECT_ID {
429
429
  CODEBLOCK_WRAP = "codeBlockWrap",
430
430
  CONVERSATION_ERROR = "conversationError",
431
431
  SUGGESTIONS_REGENERATION_ERROR = "suggestionsRegenerationError",
432
+ SUGGESTIONS_ERROR_RETRY = "suggestionsErrorRetry",
432
433
  COPY_BUTTON = "copyButton",
433
434
  COPY_LINK_TO_ANCHOR = "copyLinkToAnchor",
434
435
  COPY_BLOCK = "copyBlock",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "119.15.0",
3
+ "version": "119.15.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/"
@@ -73,7 +73,7 @@
73
73
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
74
74
  "@atlaskit/popper": "^9.3.0",
75
75
  "@atlaskit/primitives": "^22.4.0",
76
- "@atlaskit/profilecard": "^26.18.0",
76
+ "@atlaskit/profilecard": "^26.19.0",
77
77
  "@atlaskit/prosemirror-history": "^1.2.0",
78
78
  "@atlaskit/react-compiler-gating": "^0.2.0",
79
79
  "@atlaskit/react-ufo": "^7.7.0",