@atlaskit/editor-common 116.40.0 → 116.40.2
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 +14 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +8 -2
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.40.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 116.40.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2386c7bdee2e7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2386c7bdee2e7) -
|
|
14
|
+
added operational analytics for conversation errors in suggested edits
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 116.40.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -438,6 +438,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
438
438
|
ACTION_SUBJECT_ID["CODE_BLOCK"] = "codeBlock";
|
|
439
439
|
ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
|
|
440
440
|
ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
|
|
441
|
+
ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
|
|
441
442
|
ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
|
|
442
443
|
ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
|
|
443
444
|
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 = "116.
|
|
31
|
+
var packageVersion = "116.40.1";
|
|
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 = "116.
|
|
27
|
+
var packageVersion = "116.40.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -446,6 +446,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
446
446
|
ACTION_SUBJECT_ID["CODE_BLOCK"] = "codeBlock";
|
|
447
447
|
ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
|
|
448
448
|
ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
|
|
449
|
+
ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
|
|
449
450
|
ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
|
|
450
451
|
ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
|
|
451
452
|
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 = "116.
|
|
17
|
+
const packageVersion = "116.40.1";
|
|
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 = "116.
|
|
17
|
+
const packageVersion = "116.40.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -446,6 +446,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
446
446
|
ACTION_SUBJECT_ID["CODE_BLOCK"] = "codeBlock";
|
|
447
447
|
ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
|
|
448
448
|
ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
|
|
449
|
+
ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
|
|
449
450
|
ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
|
|
450
451
|
ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
|
|
451
452
|
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 = "116.
|
|
23
|
+
var packageVersion = "116.40.1";
|
|
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 = "116.
|
|
24
|
+
var packageVersion = "116.40.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -59,4 +59,4 @@ export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './type
|
|
|
59
59
|
export type { BlockMenuEventPayload } from './types/block-menu-events';
|
|
60
60
|
export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
|
|
61
61
|
export type { RendererSyncBlockEventPayload, SyncBlockEventPayload, SyncedBlockSSRErrorAEP, } from './types/sync-block-events';
|
|
62
|
-
export type { AiSuggestionInteractionPoint, AiSuggestionsEntryPoint, AiSuggestionsEventPayload, } from './types/ai-suggestions-events';
|
|
62
|
+
export type { AiSuggestionsConversationErrorReason, AiSuggestionInteractionPoint, AiSuggestionsEntryPoint, AiSuggestionsEventPayload, } from './types/ai-suggestions-events';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { OperationalAEP, TrackAEP } from './utils';
|
|
3
3
|
export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState';
|
|
4
4
|
export type AiSuggestionInteractionPoint = 'sidebar' | 'card' | 'statusBar';
|
|
5
|
+
export type AiSuggestionsConversationErrorReason = 'agentDeactivated' | 'conversationSetup' | 'streamError';
|
|
5
6
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
6
7
|
suggestionType: string;
|
|
7
8
|
toolCalls: {
|
|
@@ -10,6 +11,11 @@ type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.A
|
|
|
10
11
|
nodeTypes: string[];
|
|
11
12
|
}[];
|
|
12
13
|
}>;
|
|
14
|
+
type ConversationErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.CONVERSATION_ERROR, {
|
|
15
|
+
errorCode?: string;
|
|
16
|
+
reason: AiSuggestionsConversationErrorReason;
|
|
17
|
+
statusCode?: number;
|
|
18
|
+
}>;
|
|
13
19
|
type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
14
20
|
entryPoint: AiSuggestionsEntryPoint;
|
|
15
21
|
}, undefined>;
|
|
@@ -48,5 +54,5 @@ type SubmitFeedbackSuggestionAEP = TrackAEP<ACTION.SUBMITTED, ACTION_SUBJECT.AI_
|
|
|
48
54
|
sentiment: SuggestionFeedbackSentiment;
|
|
49
55
|
suggestionType: string;
|
|
50
56
|
}, undefined>;
|
|
51
|
-
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP | SubmitFeedbackSuggestionAEP;
|
|
57
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP | SubmitFeedbackSuggestionAEP;
|
|
52
58
|
export {};
|
|
@@ -420,6 +420,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
420
420
|
CODE_BLOCK = "codeBlock",
|
|
421
421
|
CODEBLOCK_COPY = "codeBlockCopy",
|
|
422
422
|
CODEBLOCK_WRAP = "codeBlockWrap",
|
|
423
|
+
CONVERSATION_ERROR = "conversationError",
|
|
423
424
|
COPY_BUTTON = "copyButton",
|
|
424
425
|
COPY_LINK_TO_ANCHOR = "copyLinkToAnchor",
|
|
425
426
|
COPY_BLOCK = "copyBlock",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.40.
|
|
3
|
+
"version": "116.40.2",
|
|
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/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/editor-toolbar": "^2.3.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.1.0",
|
|
52
52
|
"@atlaskit/emoji": "^71.13.0",
|
|
53
|
-
"@atlaskit/icon": "^37.
|
|
53
|
+
"@atlaskit/icon": "^37.2.0",
|
|
54
54
|
"@atlaskit/link": "^4.3.0",
|
|
55
55
|
"@atlaskit/link-datasource": "^6.3.0",
|
|
56
56
|
"@atlaskit/link-picker": "^6.3.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
71
71
|
"@atlaskit/primitives": "^22.2.0",
|
|
72
|
-
"@atlaskit/profilecard": "^26.
|
|
72
|
+
"@atlaskit/profilecard": "^26.14.0",
|
|
73
73
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
74
74
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@atlaskit/task-decision": "^21.7.0",
|
|
81
81
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
82
82
|
"@atlaskit/textfield": "^9.1.0",
|
|
83
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^134.0.0",
|
|
84
84
|
"@atlaskit/tokens": "^16.3.0",
|
|
85
85
|
"@atlaskit/tooltip": "^23.1.0",
|
|
86
86
|
"@atlaskit/width-detector": "^6.2.0",
|