@atlaskit/editor-common 133.7.0 → 133.7.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 +16 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +0 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -6
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +0 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +2 -6
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +0 -4
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +2 -6
- 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 +7 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 133.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ba1d65046dd55`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba1d65046dd55) -
|
|
8
|
+
Include optional originating generation batch instrumentation in suggestion analytics.
|
|
9
|
+
|
|
10
|
+
## 133.7.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`f546ba7760cde`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f546ba7760cde) -
|
|
15
|
+
Clean up experiment confluence_native_tabs_m15: MultiBodiedExtension now always moves the
|
|
16
|
+
selection into the target frame on `changeActive` and always shows the empty frame placeholder.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 133.7.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
13
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
13
|
var _analytics = require("../../analytics");
|
|
15
14
|
var _utils = require("./utils");
|
|
@@ -34,9 +33,6 @@ var useMultiBodiedExtensionActions = exports.useMultiBodiedExtensionActions = fu
|
|
|
34
33
|
(0, _utils.sendMBEAnalyticsEvent)(_analytics.ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
35
34
|
}
|
|
36
35
|
var selection = (_options$selection = options === null || options === void 0 ? void 0 : options.selection) !== null && _options$selection !== void 0 ? _options$selection : 'none';
|
|
37
|
-
if (selection === 'none' && !(0, _isExperimentEnabled.isExperimentEnabled)('confluence_native_tabs_m15')) {
|
|
38
|
-
return updateActiveChildResult;
|
|
39
|
-
}
|
|
40
36
|
var pos = getPos();
|
|
41
37
|
if (typeof pos !== 'number') {
|
|
42
38
|
return updateActiveChildResult;
|
|
@@ -17,7 +17,6 @@ var _bindEventListener = require("bind-event-listener");
|
|
|
17
17
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
18
18
|
var _reactIntl = require("react-intl");
|
|
19
19
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
20
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
21
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
21
|
var _hooks = require("../../hooks");
|
|
23
22
|
var _placeholderText = require("../../messages/placeholder-text");
|
|
@@ -75,13 +74,12 @@ var MultiBodiedExtensionFrames = function MultiBodiedExtensionFrames(_ref) {
|
|
|
75
74
|
var activeChildIndex = _ref.activeChildIndex,
|
|
76
75
|
articleRef = _ref.articleRef,
|
|
77
76
|
emptyFramePlaceholderText = _ref.emptyFramePlaceholderText,
|
|
78
|
-
shouldShowEmptyFramePlaceholder = _ref.shouldShowEmptyFramePlaceholder,
|
|
79
77
|
showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
|
|
80
78
|
return (0, _react2.jsx)("article", {
|
|
81
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
80
|
className: "multiBodiedExtension--frames",
|
|
83
81
|
css: [/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
|
|
84
|
-
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates),
|
|
82
|
+
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates), getEmptyFramePlaceholderStyles(activeChildIndex, emptyFramePlaceholderText)
|
|
85
83
|
/* eslint-enable @atlaskit/design-system/consistent-css-prop-usage */],
|
|
86
84
|
"data-testid": "multiBodiedExtension--frames",
|
|
87
85
|
"data-multibodiedextension-frames": true,
|
|
@@ -228,7 +226,6 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
228
226
|
var articleRef = _react.default.useCallback(function (node) {
|
|
229
227
|
return handleContentDOMRef(node);
|
|
230
228
|
}, [handleContentDOMRef]);
|
|
231
|
-
var shouldShowEmptyFramePlaceholder = (0, _isExperimentEnabled.isExperimentEnabled)('confluence_native_tabs_m15');
|
|
232
229
|
var emptyFramePlaceholderText = _react.default.useMemo(function () {
|
|
233
230
|
return JSON.stringify(formatMessage(_placeholderText.placeholderTextMessages.multiBodiedExtensionEmptyFramePlaceholderText));
|
|
234
231
|
}, [formatMessage]);
|
|
@@ -237,10 +234,9 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
237
234
|
activeChildIndex: activeChildIndex,
|
|
238
235
|
articleRef: articleRef,
|
|
239
236
|
emptyFramePlaceholderText: emptyFramePlaceholderText,
|
|
240
|
-
shouldShowEmptyFramePlaceholder: shouldShowEmptyFramePlaceholder,
|
|
241
237
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
242
238
|
});
|
|
243
|
-
}, [activeChildIndex, articleRef, emptyFramePlaceholderText,
|
|
239
|
+
}, [activeChildIndex, articleRef, emptyFramePlaceholderText, showMacroInteractionDesignUpdates]);
|
|
244
240
|
var actions = (0, _actionApi.useMultiBodiedExtensionActions)({
|
|
245
241
|
updateActiveChild: updateActiveChild,
|
|
246
242
|
editorView: editorView,
|
|
@@ -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.
|
|
30
|
+
var packageVersion = "133.7.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.
|
|
26
|
+
var packageVersion = "133.7.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { ACTION } from '../../analytics';
|
|
6
5
|
import { sendMBEAnalyticsEvent } from './utils';
|
|
@@ -26,9 +25,6 @@ export const useMultiBodiedExtensionActions = ({
|
|
|
26
25
|
sendMBEAnalyticsEvent(ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
27
26
|
}
|
|
28
27
|
const selection = (_options$selection = options === null || options === void 0 ? void 0 : options.selection) !== null && _options$selection !== void 0 ? _options$selection : 'none';
|
|
29
|
-
if (selection === 'none' && !isExperimentEnabled('confluence_native_tabs_m15')) {
|
|
30
|
-
return updateActiveChildResult;
|
|
31
|
-
}
|
|
32
28
|
const pos = getPos();
|
|
33
29
|
if (typeof pos !== 'number') {
|
|
34
30
|
return updateActiveChildResult;
|
|
@@ -13,7 +13,6 @@ import { bind } from 'bind-event-listener';
|
|
|
13
13
|
import classnames from 'classnames';
|
|
14
14
|
import { useIntl } from 'react-intl';
|
|
15
15
|
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
16
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { useSharedPluginStateWithSelector } from '../../hooks';
|
|
19
18
|
import { placeholderTextMessages } from '../../messages/placeholder-text';
|
|
@@ -69,14 +68,13 @@ const MultiBodiedExtensionFrames = ({
|
|
|
69
68
|
activeChildIndex,
|
|
70
69
|
articleRef,
|
|
71
70
|
emptyFramePlaceholderText,
|
|
72
|
-
shouldShowEmptyFramePlaceholder,
|
|
73
71
|
showMacroInteractionDesignUpdates
|
|
74
72
|
}) => {
|
|
75
73
|
return jsx("article", {
|
|
76
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
75
|
className: "multiBodiedExtension--frames",
|
|
78
76
|
css: [/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
|
|
79
|
-
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates),
|
|
77
|
+
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates), getEmptyFramePlaceholderStyles(activeChildIndex, emptyFramePlaceholderText)
|
|
80
78
|
/* eslint-enable @atlaskit/design-system/consistent-css-prop-usage */],
|
|
81
79
|
"data-testid": "multiBodiedExtension--frames",
|
|
82
80
|
"data-multibodiedextension-frames": true,
|
|
@@ -220,17 +218,15 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
220
218
|
const articleRef = React.useCallback(node => {
|
|
221
219
|
return handleContentDOMRef(node);
|
|
222
220
|
}, [handleContentDOMRef]);
|
|
223
|
-
const shouldShowEmptyFramePlaceholder = isExperimentEnabled('confluence_native_tabs_m15');
|
|
224
221
|
const emptyFramePlaceholderText = React.useMemo(() => JSON.stringify(formatMessage(placeholderTextMessages.multiBodiedExtensionEmptyFramePlaceholderText)), [formatMessage]);
|
|
225
222
|
const childrenContainer = React.useMemo(() => {
|
|
226
223
|
return jsx(MultiBodiedExtensionFrames, {
|
|
227
224
|
activeChildIndex: activeChildIndex,
|
|
228
225
|
articleRef: articleRef,
|
|
229
226
|
emptyFramePlaceholderText: emptyFramePlaceholderText,
|
|
230
|
-
shouldShowEmptyFramePlaceholder: shouldShowEmptyFramePlaceholder,
|
|
231
227
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
232
228
|
});
|
|
233
|
-
}, [activeChildIndex, articleRef, emptyFramePlaceholderText,
|
|
229
|
+
}, [activeChildIndex, articleRef, emptyFramePlaceholderText, showMacroInteractionDesignUpdates]);
|
|
234
230
|
const actions = useMultiBodiedExtensionActions({
|
|
235
231
|
updateActiveChild,
|
|
236
232
|
editorView,
|
|
@@ -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.
|
|
16
|
+
const packageVersion = "133.7.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.
|
|
16
|
+
const packageVersion = "133.7.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -4,7 +4,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { ACTION } from '../../analytics';
|
|
10
9
|
import { sendMBEAnalyticsEvent } from './utils';
|
|
@@ -27,9 +26,6 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
27
26
|
sendMBEAnalyticsEvent(ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
28
27
|
}
|
|
29
28
|
var selection = (_options$selection = options === null || options === void 0 ? void 0 : options.selection) !== null && _options$selection !== void 0 ? _options$selection : 'none';
|
|
30
|
-
if (selection === 'none' && !isExperimentEnabled('confluence_native_tabs_m15')) {
|
|
31
|
-
return updateActiveChildResult;
|
|
32
|
-
}
|
|
33
29
|
var pos = getPos();
|
|
34
30
|
if (typeof pos !== 'number') {
|
|
35
31
|
return updateActiveChildResult;
|
|
@@ -18,7 +18,6 @@ import { bind } from 'bind-event-listener';
|
|
|
18
18
|
import classnames from 'classnames';
|
|
19
19
|
import { useIntl } from 'react-intl';
|
|
20
20
|
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
21
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
22
|
import { useSharedPluginStateWithSelector } from '../../hooks';
|
|
24
23
|
import { placeholderTextMessages } from '../../messages/placeholder-text';
|
|
@@ -68,13 +67,12 @@ var MultiBodiedExtensionFrames = function MultiBodiedExtensionFrames(_ref) {
|
|
|
68
67
|
var activeChildIndex = _ref.activeChildIndex,
|
|
69
68
|
articleRef = _ref.articleRef,
|
|
70
69
|
emptyFramePlaceholderText = _ref.emptyFramePlaceholderText,
|
|
71
|
-
shouldShowEmptyFramePlaceholder = _ref.shouldShowEmptyFramePlaceholder,
|
|
72
70
|
showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
|
|
73
71
|
return jsx("article", {
|
|
74
72
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
73
|
className: "multiBodiedExtension--frames",
|
|
76
74
|
css: [/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
|
|
77
|
-
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates),
|
|
75
|
+
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates), getEmptyFramePlaceholderStyles(activeChildIndex, emptyFramePlaceholderText)
|
|
78
76
|
/* eslint-enable @atlaskit/design-system/consistent-css-prop-usage */],
|
|
79
77
|
"data-testid": "multiBodiedExtension--frames",
|
|
80
78
|
"data-multibodiedextension-frames": true,
|
|
@@ -221,7 +219,6 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
221
219
|
var articleRef = React.useCallback(function (node) {
|
|
222
220
|
return handleContentDOMRef(node);
|
|
223
221
|
}, [handleContentDOMRef]);
|
|
224
|
-
var shouldShowEmptyFramePlaceholder = isExperimentEnabled('confluence_native_tabs_m15');
|
|
225
222
|
var emptyFramePlaceholderText = React.useMemo(function () {
|
|
226
223
|
return JSON.stringify(formatMessage(placeholderTextMessages.multiBodiedExtensionEmptyFramePlaceholderText));
|
|
227
224
|
}, [formatMessage]);
|
|
@@ -230,10 +227,9 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
230
227
|
activeChildIndex: activeChildIndex,
|
|
231
228
|
articleRef: articleRef,
|
|
232
229
|
emptyFramePlaceholderText: emptyFramePlaceholderText,
|
|
233
|
-
shouldShowEmptyFramePlaceholder: shouldShowEmptyFramePlaceholder,
|
|
234
230
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
235
231
|
});
|
|
236
|
-
}, [activeChildIndex, articleRef, emptyFramePlaceholderText,
|
|
232
|
+
}, [activeChildIndex, articleRef, emptyFramePlaceholderText, showMacroInteractionDesignUpdates]);
|
|
237
233
|
var actions = useMultiBodiedExtensionActions({
|
|
238
234
|
updateActiveChild: updateActiveChild,
|
|
239
235
|
editorView: editorView,
|
|
@@ -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.
|
|
22
|
+
var packageVersion = "133.7.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.
|
|
23
|
+
var packageVersion = "133.7.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -52,6 +52,7 @@ type TimeSinceGenerationAttribute = {
|
|
|
52
52
|
type RegenerationSuggestionDetails = SuggestionRemixAttributes & TimeSinceGenerationAttribute & {
|
|
53
53
|
actionKind: string;
|
|
54
54
|
outcome?: AiSuggestionsRegenerationOutcome;
|
|
55
|
+
singleInstrumentationId?: string;
|
|
55
56
|
suggestionId: string;
|
|
56
57
|
suggestionType?: string;
|
|
57
58
|
};
|
|
@@ -62,6 +63,7 @@ type RegenerationCommonAttributes = {
|
|
|
62
63
|
trigger: AiSuggestionsRegenerationTrigger;
|
|
63
64
|
};
|
|
64
65
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
66
|
+
singleInstrumentationId?: string;
|
|
65
67
|
suggestionType?: string;
|
|
66
68
|
toolCalls: {
|
|
67
69
|
localIds: string[];
|
|
@@ -106,6 +108,7 @@ type SuggestionLifecycleAttributes = SuggestionRemixAttributes & TimeSinceGenera
|
|
|
106
108
|
agentId?: string;
|
|
107
109
|
hasSources: boolean;
|
|
108
110
|
interactionPoint: AiSuggestionInteractionPoint;
|
|
111
|
+
singleInstrumentationId?: string;
|
|
109
112
|
suggestionId: string;
|
|
110
113
|
suggestionType?: string;
|
|
111
114
|
};
|
|
@@ -116,6 +119,7 @@ type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIO
|
|
|
116
119
|
}, undefined>;
|
|
117
120
|
type UndoAcceptedSuggestionAEP = TrackAEP<ACTION.UNDO_PERFORMED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, TimeSinceGenerationAttribute & {
|
|
118
121
|
actionKind: string;
|
|
122
|
+
singleInstrumentationId?: string;
|
|
119
123
|
suggestionId: string;
|
|
120
124
|
suggestionType?: string;
|
|
121
125
|
}, undefined>;
|
|
@@ -141,6 +145,7 @@ type RightRailViewedAEP = TrackAEP<ACTION.RIGHT_RAIL_VIEWED, ACTION_SUBJECT.AI_S
|
|
|
141
145
|
suggestionDetails: Array<SuggestionRemixAttributes & TimeSinceGenerationAttribute & {
|
|
142
146
|
actionKind: string;
|
|
143
147
|
affectedBlocks: number;
|
|
148
|
+
singleInstrumentationId?: string;
|
|
144
149
|
suggestionType?: string;
|
|
145
150
|
}>;
|
|
146
151
|
}, undefined>;
|
|
@@ -152,6 +157,7 @@ type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJE
|
|
|
152
157
|
hasSources: boolean;
|
|
153
158
|
interactionPoint: AiSuggestionInteractionPoint;
|
|
154
159
|
reasoningCharacterCount: number;
|
|
160
|
+
singleInstrumentationId?: string;
|
|
155
161
|
suggestionId: string;
|
|
156
162
|
suggestionType?: string;
|
|
157
163
|
}, undefined>;
|
|
@@ -164,6 +170,7 @@ type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGG
|
|
|
164
170
|
affectedBlocks: number;
|
|
165
171
|
agentId?: string;
|
|
166
172
|
hasSources: boolean;
|
|
173
|
+
singleInstrumentationId?: string;
|
|
167
174
|
suggestionId: string;
|
|
168
175
|
suggestionType?: string;
|
|
169
176
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "133.7.
|
|
3
|
+
"version": "133.7.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/"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/task-decision": "^21.13.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.2.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^246.
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^246.1.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.7.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|