@atlaskit/editor-common 133.0.1 → 133.1.0
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 +32 -0
- package/dist/cjs/messages/insert-block.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/insert-block.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/insert-block.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/ai-unified-events.d.ts +16 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 133.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3304359a4e416`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3304359a4e416) -
|
|
8
|
+
CWR-25: report the backend's generated image / MAUI app block counts of a Rovo page edit
|
|
9
|
+
(`aifc-adf-update`) on the edit acceptance-rate events: the chat-stream `aiResult viewed` and the
|
|
10
|
+
Editor AI `aiResult actioned` (`accepted` / `automaticallyInserted`).
|
|
11
|
+
- `@atlassian/rovo-content-bridge-api-commands`: new
|
|
12
|
+
`./commands/generated-edit-visual-block-counts` entry point exporting
|
|
13
|
+
`getGeneratedEditVisualBlockCounts`, which copies the eight counts only when all are present as
|
|
14
|
+
non-negative integers, so `0` stays distinct from absent (not eligible).
|
|
15
|
+
- `@atlassian/conversation-assistant-action-helpers`: optional counts on
|
|
16
|
+
`AIFCADFUpdateActionPayload`.
|
|
17
|
+
- `@atlaskit/editor-common`: new `AIResultVisualBlockCounts` type, accepted on the
|
|
18
|
+
`aiResult actioned` payload.
|
|
19
|
+
- `@atlassian/editor-plugin-ai`: optional `singleInstrumentationId` / `visualBlockCounts` on
|
|
20
|
+
`EndSessionMetadata`. A finished session's counts are added to that result's queued accepted
|
|
21
|
+
event.
|
|
22
|
+
- `@atlassian/editor-plugin-ai-streaming-orchestrator`: `endSession` accepts the same optional
|
|
23
|
+
fields and passes them on when the session finishes.
|
|
24
|
+
- `@atlassian/editor-rovo-bridge`: hands the counts from the final page-edit payload to the
|
|
25
|
+
session end.
|
|
26
|
+
- `@atlassian/conversation-assistant`: the chat-stream `aiResult viewed` reports the counts when
|
|
27
|
+
the response has exactly one page-create or page-edit action.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [`a801a2321cc04`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a801a2321cc04) -
|
|
32
|
+
Update the Mention description copy to "Notify someone by mentioning them".
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 133.0.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -78,7 +78,7 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
|
|
|
78
78
|
},
|
|
79
79
|
mentionDescription: {
|
|
80
80
|
id: 'fabric.editor.mention.description',
|
|
81
|
-
defaultMessage: '
|
|
81
|
+
defaultMessage: 'Notify someone by mentioning them',
|
|
82
82
|
description: 'Reference another person in your document'
|
|
83
83
|
},
|
|
84
84
|
emoji: {
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "133.0.
|
|
30
|
+
var packageVersion = "133.0.1";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "133.0.
|
|
26
|
+
var packageVersion = "133.0.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -72,7 +72,7 @@ export const toolbarInsertBlockMessages = defineMessages({
|
|
|
72
72
|
},
|
|
73
73
|
mentionDescription: {
|
|
74
74
|
id: 'fabric.editor.mention.description',
|
|
75
|
-
defaultMessage: '
|
|
75
|
+
defaultMessage: 'Notify someone by mentioning them',
|
|
76
76
|
description: 'Reference another person in your document'
|
|
77
77
|
},
|
|
78
78
|
emoji: {
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "133.0.
|
|
16
|
+
const packageVersion = "133.0.1";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -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 = "133.0.
|
|
16
|
+
const packageVersion = "133.0.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -72,7 +72,7 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
72
72
|
},
|
|
73
73
|
mentionDescription: {
|
|
74
74
|
id: 'fabric.editor.mention.description',
|
|
75
|
-
defaultMessage: '
|
|
75
|
+
defaultMessage: 'Notify someone by mentioning them',
|
|
76
76
|
description: 'Reference another person in your document'
|
|
77
77
|
},
|
|
78
78
|
emoji: {
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "133.0.
|
|
22
|
+
var packageVersion = "133.0.1";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "133.0.
|
|
23
|
+
var packageVersion = "133.0.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -46,13 +46,27 @@ type AIInteractionInitiatedAEP = TrackAEP<ACTION.INITIATED, ACTION_SUBJECT.AI_IN
|
|
|
46
46
|
type AIInteractionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
|
|
47
47
|
type AIInteractionDiscardedAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
|
|
48
48
|
type AIResultViewedAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
|
|
49
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Generated image / MAUI app block counts of the Rovo page edit behind an AI result, copied from the
|
|
51
|
+
* backend edit action data. Either all are present or none are; absent means not eligible or unknown.
|
|
52
|
+
*/
|
|
53
|
+
export type AIResultVisualBlockCounts = {
|
|
54
|
+
addedImageBlocks?: number;
|
|
55
|
+
addedMauiAppBlocks?: number;
|
|
56
|
+
imageBlocks?: number;
|
|
57
|
+
mauiAppBlocks?: number;
|
|
58
|
+
removedImageBlocks?: number;
|
|
59
|
+
removedMauiAppBlocks?: number;
|
|
60
|
+
replacedImageBlocks?: number;
|
|
61
|
+
replacedMauiAppBlocks?: number;
|
|
62
|
+
};
|
|
63
|
+
type AIResultActionedAEP = TrackAEP<ACTION.ACTIONED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & AIResultVisualBlockCounts & {
|
|
50
64
|
aiActionedType?: string;
|
|
51
65
|
aiGroupId: string | undefined;
|
|
52
66
|
aiResultAction: string;
|
|
53
67
|
promptType?: string;
|
|
54
68
|
refinementCount?: number;
|
|
55
|
-
wasRedone?:
|
|
69
|
+
wasRedone?: boolean;
|
|
56
70
|
}, undefined>;
|
|
57
71
|
type AIResultErrorAEP = TrackAEP<ACTION.ERROR, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
|
|
58
72
|
aiErrorCode?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "133.0
|
|
3
|
+
"version": "133.1.0",
|
|
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/"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/task-decision": "^21.12.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.2.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^243.0.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.6.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|