@atlaskit/editor-common 137.5.2 → 137.6.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 +16 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +5 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +5 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +5 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +8 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 137.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b7b9e9bfa653f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7b9e9bfa653f) -
|
|
8
|
+
Correlate suggested-edits reviews from every entry point with a reviewSessionId, keeping source on
|
|
9
|
+
the initial click and retaining the ID across retries. Enable session tracking and duplicate-start
|
|
10
|
+
protection behind the treatment variants of platform_editor_rovo_chat_review_cta.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`499573c4f48b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/499573c4f48b2) -
|
|
15
|
+
Remove the inappropriate current state from editor insertion actions behind
|
|
16
|
+
a11y_remediation_pipeline_2.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 137.5.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _CellMeasurer = require("react-virtualized/dist/commonjs/CellMeasurer");
|
|
|
18
18
|
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
19
19
|
var _main = require("@atlaskit/editor-shared-styles/shortcut/main");
|
|
20
20
|
var _buttonItem = _interopRequireDefault(require("@atlaskit/menu/button-item"));
|
|
21
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
21
22
|
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
22
23
|
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
23
24
|
var _text = require("@atlaskit/primitives/compiled/text");
|
|
@@ -441,7 +442,7 @@ function ElementItem(_ref6) {
|
|
|
441
442
|
}) : renderItem();
|
|
442
443
|
}
|
|
443
444
|
var ElementItemButton = function ElementItemButton(_ref7) {
|
|
444
|
-
var _triggerProps$isSelec;
|
|
445
|
+
var _triggerProps$isSelec, _triggerProps$isSelec2;
|
|
445
446
|
var item = _ref7.item,
|
|
446
447
|
index = _ref7.index,
|
|
447
448
|
inlineMode = _ref7.inlineMode,
|
|
@@ -469,6 +470,7 @@ var ElementItemButton = function ElementItemButton(_ref7) {
|
|
|
469
470
|
keyshortcut = item.keyshortcut,
|
|
470
471
|
isDisabled = item.isDisabled,
|
|
471
472
|
lozenge = item.lozenge;
|
|
473
|
+
var ariaCurrent = ((_triggerProps$isSelec = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.isSelected) !== null && _triggerProps$isSelec !== void 0 ? _triggerProps$isSelec : selected) ? 'true' : undefined;
|
|
472
474
|
return (0, _react2.jsx)(_Tooltip.default, {
|
|
473
475
|
content: description,
|
|
474
476
|
testId: "element-item-tooltip-".concat(index)
|
|
@@ -478,7 +480,8 @@ var ElementItemButton = function ElementItemButton(_ref7) {
|
|
|
478
480
|
icon: icon,
|
|
479
481
|
title: title
|
|
480
482
|
}),
|
|
481
|
-
isSelected: (_triggerProps$
|
|
483
|
+
isSelected: (_triggerProps$isSelec2 = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.isSelected) !== null && _triggerProps$isSelec2 !== void 0 ? _triggerProps$isSelec2 : selected,
|
|
484
|
+
"aria-current": (0, _isExperimentEnabled.isExperimentEnabled)('a11y_remediation_pipeline_2') ? undefined : ariaCurrent,
|
|
482
485
|
"aria-controls": triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps['aria-controls'],
|
|
483
486
|
"aria-label": title,
|
|
484
487
|
ref: setTriggerRef,
|
|
@@ -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 = "137.5.
|
|
30
|
+
var packageVersion = "137.5.2";
|
|
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 = "137.5.
|
|
26
|
+
var packageVersion = "137.5.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -16,6 +16,7 @@ import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs
|
|
|
16
16
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
17
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
18
18
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
19
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
20
|
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
20
21
|
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
21
22
|
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
@@ -440,7 +441,7 @@ const ElementItemButton = ({
|
|
|
440
441
|
focusRef,
|
|
441
442
|
triggerProps
|
|
442
443
|
}) => {
|
|
443
|
-
var _triggerProps$isSelec;
|
|
444
|
+
var _triggerProps$isSelec, _triggerProps$isSelec2;
|
|
444
445
|
const popupRef = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.ref;
|
|
445
446
|
const setTriggerRef = useCallback(element => {
|
|
446
447
|
Object.assign(focusRef, {
|
|
@@ -462,6 +463,7 @@ const ElementItemButton = ({
|
|
|
462
463
|
isDisabled,
|
|
463
464
|
lozenge
|
|
464
465
|
} = item;
|
|
466
|
+
const ariaCurrent = ((_triggerProps$isSelec = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.isSelected) !== null && _triggerProps$isSelec !== void 0 ? _triggerProps$isSelec : selected) ? 'true' : undefined;
|
|
465
467
|
return jsx(Tooltip, {
|
|
466
468
|
content: description,
|
|
467
469
|
testId: `element-item-tooltip-${index}`
|
|
@@ -471,7 +473,8 @@ const ElementItemButton = ({
|
|
|
471
473
|
icon: icon,
|
|
472
474
|
title: title
|
|
473
475
|
}),
|
|
474
|
-
isSelected: (_triggerProps$
|
|
476
|
+
isSelected: (_triggerProps$isSelec2 = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.isSelected) !== null && _triggerProps$isSelec2 !== void 0 ? _triggerProps$isSelec2 : selected,
|
|
477
|
+
"aria-current": isExperimentEnabled('a11y_remediation_pipeline_2') ? undefined : ariaCurrent,
|
|
475
478
|
"aria-controls": triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps['aria-controls'],
|
|
476
479
|
"aria-label": title,
|
|
477
480
|
ref: setTriggerRef,
|
|
@@ -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 = "137.5.
|
|
16
|
+
const packageVersion = "137.5.2";
|
|
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 = "137.5.
|
|
16
|
+
const packageVersion = "137.5.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -17,6 +17,7 @@ import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs
|
|
|
17
17
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
18
18
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
19
19
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
20
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
21
|
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
21
22
|
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
22
23
|
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
@@ -431,7 +432,7 @@ export function ElementItem(_ref6) {
|
|
|
431
432
|
}) : renderItem();
|
|
432
433
|
}
|
|
433
434
|
var ElementItemButton = function ElementItemButton(_ref7) {
|
|
434
|
-
var _triggerProps$isSelec;
|
|
435
|
+
var _triggerProps$isSelec, _triggerProps$isSelec2;
|
|
435
436
|
var item = _ref7.item,
|
|
436
437
|
index = _ref7.index,
|
|
437
438
|
inlineMode = _ref7.inlineMode,
|
|
@@ -459,6 +460,7 @@ var ElementItemButton = function ElementItemButton(_ref7) {
|
|
|
459
460
|
keyshortcut = item.keyshortcut,
|
|
460
461
|
isDisabled = item.isDisabled,
|
|
461
462
|
lozenge = item.lozenge;
|
|
463
|
+
var ariaCurrent = ((_triggerProps$isSelec = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.isSelected) !== null && _triggerProps$isSelec !== void 0 ? _triggerProps$isSelec : selected) ? 'true' : undefined;
|
|
462
464
|
return jsx(Tooltip, {
|
|
463
465
|
content: description,
|
|
464
466
|
testId: "element-item-tooltip-".concat(index)
|
|
@@ -468,7 +470,8 @@ var ElementItemButton = function ElementItemButton(_ref7) {
|
|
|
468
470
|
icon: icon,
|
|
469
471
|
title: title
|
|
470
472
|
}),
|
|
471
|
-
isSelected: (_triggerProps$
|
|
473
|
+
isSelected: (_triggerProps$isSelec2 = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.isSelected) !== null && _triggerProps$isSelec2 !== void 0 ? _triggerProps$isSelec2 : selected,
|
|
474
|
+
"aria-current": isExperimentEnabled('a11y_remediation_pipeline_2') ? undefined : ariaCurrent,
|
|
472
475
|
"aria-controls": triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps['aria-controls'],
|
|
473
476
|
"aria-label": title,
|
|
474
477
|
ref: setTriggerRef,
|
|
@@ -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 = "137.5.
|
|
22
|
+
var packageVersion = "137.5.2";
|
|
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 = "137.5.
|
|
23
|
+
var packageVersion = "137.5.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -94,7 +94,11 @@ type RegenerateSuggestionsCompletedAEP = OperationalAEP<ACTION.REGENERATION_COMP
|
|
|
94
94
|
stillStaleSuggestionCount: number;
|
|
95
95
|
updatedSuggestionCount: number;
|
|
96
96
|
}>;
|
|
97
|
-
type
|
|
97
|
+
type ReviewSessionAttributes = {
|
|
98
|
+
/** Client review flow ID shared by lifecycle events and retries. */
|
|
99
|
+
reviewSessionId?: string;
|
|
100
|
+
};
|
|
101
|
+
type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, ReviewSessionAttributes & {
|
|
98
102
|
entryPoint: AiSuggestionsEntryPoint;
|
|
99
103
|
}, undefined>;
|
|
100
104
|
/**
|
|
@@ -102,7 +106,7 @@ type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIO
|
|
|
102
106
|
* edits error screen (the thinking bar's error state). Lets us measure how
|
|
103
107
|
* often users attempt to recover from a suggestions failure.
|
|
104
108
|
*/
|
|
105
|
-
type SuggestionsErrorRetryClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_ERROR_RETRY, undefined, undefined>;
|
|
109
|
+
type SuggestionsErrorRetryClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_ERROR_RETRY, ReviewSessionAttributes | undefined, undefined>;
|
|
106
110
|
type EntryPointExposureAEP = TrackAEP<ACTION.EXPOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
107
111
|
entryPoint: AiSuggestionsEntryPoint;
|
|
108
112
|
}, undefined> & {
|
|
@@ -130,7 +134,7 @@ type UndoAcceptedSuggestionAEP = TrackAEP<ACTION.UNDO_PERFORMED, ACTION_SUBJECT.
|
|
|
130
134
|
suggestionType?: string;
|
|
131
135
|
}, undefined>;
|
|
132
136
|
type DiscardedSuggestionAttributes = SuggestionLifecycleAttributes;
|
|
133
|
-
type CancelSuggestionsAEP = TrackAEP<ACTION.CANCELLED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
137
|
+
type CancelSuggestionsAEP = TrackAEP<ACTION.CANCELLED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, ReviewSessionAttributes & {
|
|
134
138
|
interactionPoint: AiSuggestionInteractionPoint;
|
|
135
139
|
}, undefined>;
|
|
136
140
|
type DiscardSuggestionAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, DiscardedSuggestionAttributes, undefined>;
|
|
@@ -167,7 +171,7 @@ type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJE
|
|
|
167
171
|
suggestionId: string;
|
|
168
172
|
suggestionType?: string;
|
|
169
173
|
}, undefined>;
|
|
170
|
-
type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
174
|
+
type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, ReviewSessionAttributes & {
|
|
171
175
|
generationDurationMs: number;
|
|
172
176
|
hadExistingSuggestions: boolean;
|
|
173
177
|
numberOfSuggestions: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "137.
|
|
3
|
+
"version": "137.6.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/"
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"@atlaskit/task-decision": "^21.16.0",
|
|
88
88
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
89
89
|
"@atlaskit/textfield": "^11.0.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^267.0.0",
|
|
91
91
|
"@atlaskit/tokens": "^20.14.0",
|
|
92
92
|
"@atlaskit/tooltip": "^24.4.0",
|
|
93
93
|
"@atlaskit/width-detector": "^7.2.0",
|
|
94
94
|
"@babel/runtime": "^7.0.0",
|
|
95
|
-
"@compiled/react": "^
|
|
95
|
+
"@compiled/react": "^2.0.0",
|
|
96
96
|
"@emotion/react": "^11.7.1",
|
|
97
97
|
"@popperjs/core": "^2.11.8",
|
|
98
98
|
"@sentry/browser": "^6.18.2",
|