@atlaskit/editor-common 114.55.0 → 115.0.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 +46 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +5 -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/cjs/utils/macro.js +4 -1
- package/dist/es2019/ai-messages/ai-suggestions.js +5 -0
- 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/es2019/utils/macro.js +4 -1
- package/dist/esm/ai-messages/ai-suggestions.js +5 -0
- 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/esm/utils/macro.js +4 -1
- package/dist/types/ai-messages/ai-suggestions.d.ts +5 -0
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +9 -2
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/ai-suggestions-events.d.ts +9 -2
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/package.json +8 -8
- package/{Emoji → ui-emoji}/package.json +1 -1
- package/{Expand → ui-expand}/package.json +1 -1
- package/{Expand → ui-expand}/sharedStyles/package.json +1 -1
- package/{Mention → ui-mention}/mention-with-profilecard/package.json +1 -1
- package/{Mention → ui-mention}/package.json +1 -1
- package/{Messages → ui-messages}/package.json +1 -1
- package/{Toolbar → ui-toolbar}/ButtonGroup/package.json +1 -1
- package/{Toolbar → ui-toolbar}/DropdownTriggerWrapper/package.json +1 -1
- package/{Toolbar → ui-toolbar}/DropdownWrapper/package.json +1 -1
- package/{Toolbar → ui-toolbar}/ExpandIcon/package.json +1 -1
- package/{Toolbar → ui-toolbar}/Separator/package.json +1 -1
- package/{Toolbar → ui-toolbar}/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 115.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8cb3cdbbc5467`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8cb3cdbbc5467) -
|
|
8
|
+
Fix TypeError in getExtensionLozengeData when macroMetadata.placeholder is not an array
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 115.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [`e8d5026406906`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8d5026406906) -
|
|
16
|
+
Renamed PascalCase UI subpath exports to a `./ui-<name>` prefix to avoid conflicts with existing
|
|
17
|
+
lowercase logic subpaths in case-insensitive environments (e.g. `./toolbar` vs `./Toolbar`). The
|
|
18
|
+
new names follow the existing `./ui-color`, `./ui-menu`, `./ui-react` convention.
|
|
19
|
+
|
|
20
|
+
**Breaking change** — the following subpath exports have been renamed and consumers must update
|
|
21
|
+
their imports:
|
|
22
|
+
|
|
23
|
+
| Old subpath | New subpath |
|
|
24
|
+
| ------------------------------------ | --------------------------------------- |
|
|
25
|
+
| `./Toolbar` | `./ui-toolbar` |
|
|
26
|
+
| `./Toolbar/ButtonGroup` | `./ui-toolbar/ButtonGroup` |
|
|
27
|
+
| `./Toolbar/DropdownTriggerWrapper` | `./ui-toolbar/DropdownTriggerWrapper` |
|
|
28
|
+
| `./Toolbar/DropdownWrapper` | `./ui-toolbar/DropdownWrapper` |
|
|
29
|
+
| `./Toolbar/ExpandIcon` | `./ui-toolbar/ExpandIcon` |
|
|
30
|
+
| `./Toolbar/Separator` | `./ui-toolbar/Separator` |
|
|
31
|
+
| `./Emoji` | `./ui-emoji` |
|
|
32
|
+
| `./Expand` | `./ui-expand` |
|
|
33
|
+
| `./Expand/sharedStyles` | `./ui-expand/sharedStyles` |
|
|
34
|
+
| `./Mention` | `./ui-mention` |
|
|
35
|
+
| `./Mention/mention-with-profilecard` | `./ui-mention/mention-with-profilecard` |
|
|
36
|
+
| `./Messages` | `./ui-messages` |
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- [`908d9972eb6cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/908d9972eb6cd) -
|
|
41
|
+
EDITOR-7417: Wire up thinking transitions based on the thinking state.
|
|
42
|
+
- [`c062600f9940b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c062600f9940b) -
|
|
43
|
+
EDITOR-7306 Added analytics for accepting a suggestion in suggested edits
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies
|
|
48
|
+
|
|
3
49
|
## 114.55.0
|
|
4
50
|
|
|
5
51
|
### Minor Changes
|
|
@@ -201,6 +201,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
201
201
|
defaultMessage: 'Suggestions ready',
|
|
202
202
|
description: 'Text shown when the AI has finished reviewing the content'
|
|
203
203
|
},
|
|
204
|
+
thinkingCompleteNoSuggestions: {
|
|
205
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.noSuggestions.non-final',
|
|
206
|
+
defaultMessage: 'No suggestions found',
|
|
207
|
+
description: 'Text shown when the AI has finished reviewing the content and no suggestions were found'
|
|
208
|
+
},
|
|
204
209
|
thinkingCompleteViewSuggestions: {
|
|
205
210
|
id: 'fabric.editor.ai.suggestions.thinkingComplete.viewSuggestions.non-final',
|
|
206
211
|
defaultMessage: 'View',
|
|
@@ -98,6 +98,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
98
98
|
ACTION["MATCHED"] = "matched";
|
|
99
99
|
ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
|
|
100
100
|
ACTION["NODE_CONTENT_SANITIZED"] = "nodeContentSanitized";
|
|
101
|
+
ACTION["ACCEPTED"] = "accepted";
|
|
101
102
|
ACTION["NO_DIFF_FOUND"] = "noDiffFound";
|
|
102
103
|
ACTION["OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR"] = "offlineStorageTooManyRetriesError";
|
|
103
104
|
ACTION["OFFLINE_STORAGE_FAILED_STEPS"] = "offlineStorageFailedSteps";
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
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 = "
|
|
22
|
+
var packageVersion = "115.0.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "
|
|
27
|
+
var packageVersion = "115.0.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
package/dist/cjs/utils/macro.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getExtensionLozengeData = void 0;
|
|
7
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
7
8
|
var getExtensionLozengeData = exports.getExtensionLozengeData = function getExtensionLozengeData(_ref) {
|
|
8
9
|
var node = _ref.node,
|
|
9
10
|
type = _ref.type;
|
|
@@ -11,7 +12,9 @@ var getExtensionLozengeData = exports.getExtensionLozengeData = function getExte
|
|
|
11
12
|
return;
|
|
12
13
|
}
|
|
13
14
|
var macroMetadata = node.attrs.parameters.macroMetadata;
|
|
14
|
-
|
|
15
|
+
// EDITOR-4007: guard against non-array placeholder to prevent `TypeError: ... forEach is not a function`.
|
|
16
|
+
var hasValidPlaceholder = (0, _expValEquals.expValEquals)('platform_editor_macro_placeholder_array_guard', 'isEnabled', true) ? macroMetadata && Array.isArray(macroMetadata.placeholder) : macroMetadata && macroMetadata.placeholder;
|
|
17
|
+
if (hasValidPlaceholder) {
|
|
15
18
|
var placeholderData;
|
|
16
19
|
// Ignored via go/ees005
|
|
17
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -195,6 +195,11 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
195
195
|
defaultMessage: 'Suggestions ready',
|
|
196
196
|
description: 'Text shown when the AI has finished reviewing the content'
|
|
197
197
|
},
|
|
198
|
+
thinkingCompleteNoSuggestions: {
|
|
199
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.noSuggestions.non-final',
|
|
200
|
+
defaultMessage: 'No suggestions found',
|
|
201
|
+
description: 'Text shown when the AI has finished reviewing the content and no suggestions were found'
|
|
202
|
+
},
|
|
198
203
|
thinkingCompleteViewSuggestions: {
|
|
199
204
|
id: 'fabric.editor.ai.suggestions.thinkingComplete.viewSuggestions.non-final',
|
|
200
205
|
defaultMessage: 'View',
|
|
@@ -92,6 +92,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
92
92
|
ACTION["MATCHED"] = "matched";
|
|
93
93
|
ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
|
|
94
94
|
ACTION["NODE_CONTENT_SANITIZED"] = "nodeContentSanitized";
|
|
95
|
+
ACTION["ACCEPTED"] = "accepted";
|
|
95
96
|
ACTION["NO_DIFF_FOUND"] = "noDiffFound";
|
|
96
97
|
ACTION["OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR"] = "offlineStorageTooManyRetriesError";
|
|
97
98
|
ACTION["OFFLINE_STORAGE_FAILED_STEPS"] = "offlineStorageFailedSteps";
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "115.0.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// 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 = "
|
|
17
|
+
const packageVersion = "115.0.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
1
2
|
export const getExtensionLozengeData = ({
|
|
2
3
|
node,
|
|
3
4
|
type
|
|
@@ -8,7 +9,9 @@ export const getExtensionLozengeData = ({
|
|
|
8
9
|
const {
|
|
9
10
|
macroMetadata
|
|
10
11
|
} = node.attrs.parameters;
|
|
11
|
-
|
|
12
|
+
// EDITOR-4007: guard against non-array placeholder to prevent `TypeError: ... forEach is not a function`.
|
|
13
|
+
const hasValidPlaceholder = expValEquals('platform_editor_macro_placeholder_array_guard', 'isEnabled', true) ? macroMetadata && Array.isArray(macroMetadata.placeholder) : macroMetadata && macroMetadata.placeholder;
|
|
14
|
+
if (hasValidPlaceholder) {
|
|
12
15
|
let placeholderData;
|
|
13
16
|
// Ignored via go/ees005
|
|
14
17
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -195,6 +195,11 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
195
195
|
defaultMessage: 'Suggestions ready',
|
|
196
196
|
description: 'Text shown when the AI has finished reviewing the content'
|
|
197
197
|
},
|
|
198
|
+
thinkingCompleteNoSuggestions: {
|
|
199
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.noSuggestions.non-final',
|
|
200
|
+
defaultMessage: 'No suggestions found',
|
|
201
|
+
description: 'Text shown when the AI has finished reviewing the content and no suggestions were found'
|
|
202
|
+
},
|
|
198
203
|
thinkingCompleteViewSuggestions: {
|
|
199
204
|
id: 'fabric.editor.ai.suggestions.thinkingComplete.viewSuggestions.non-final',
|
|
200
205
|
defaultMessage: 'View',
|
|
@@ -92,6 +92,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
92
92
|
ACTION["MATCHED"] = "matched";
|
|
93
93
|
ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
|
|
94
94
|
ACTION["NODE_CONTENT_SANITIZED"] = "nodeContentSanitized";
|
|
95
|
+
ACTION["ACCEPTED"] = "accepted";
|
|
95
96
|
ACTION["NO_DIFF_FOUND"] = "noDiffFound";
|
|
96
97
|
ACTION["OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR"] = "offlineStorageTooManyRetriesError";
|
|
97
98
|
ACTION["OFFLINE_STORAGE_FAILED_STEPS"] = "offlineStorageFailedSteps";
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "115.0.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// 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 = "
|
|
24
|
+
var packageVersion = "115.0.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/dist/esm/utils/macro.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
1
2
|
export var getExtensionLozengeData = function getExtensionLozengeData(_ref) {
|
|
2
3
|
var node = _ref.node,
|
|
3
4
|
type = _ref.type;
|
|
@@ -5,7 +6,9 @@ export var getExtensionLozengeData = function getExtensionLozengeData(_ref) {
|
|
|
5
6
|
return;
|
|
6
7
|
}
|
|
7
8
|
var macroMetadata = node.attrs.parameters.macroMetadata;
|
|
8
|
-
|
|
9
|
+
// EDITOR-4007: guard against non-array placeholder to prevent `TypeError: ... forEach is not a function`.
|
|
10
|
+
var hasValidPlaceholder = expValEquals('platform_editor_macro_placeholder_array_guard', 'isEnabled', true) ? macroMetadata && Array.isArray(macroMetadata.placeholder) : macroMetadata && macroMetadata.placeholder;
|
|
11
|
+
if (hasValidPlaceholder) {
|
|
9
12
|
var placeholderData;
|
|
10
13
|
// Ignored via go/ees005
|
|
11
14
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -159,6 +159,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
159
159
|
description: string;
|
|
160
160
|
id: string;
|
|
161
161
|
};
|
|
162
|
+
thinkingCompleteNoSuggestions: {
|
|
163
|
+
defaultMessage: string;
|
|
164
|
+
description: string;
|
|
165
|
+
id: string;
|
|
166
|
+
};
|
|
162
167
|
thinkingCompleteReviewComplete: {
|
|
163
168
|
defaultMessage: string;
|
|
164
169
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
-
import type { OperationalAEP } from './utils';
|
|
2
|
+
import type { OperationalAEP, TrackAEP } from './utils';
|
|
3
3
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
4
4
|
suggestionType: string;
|
|
5
5
|
toolCalls: {
|
|
@@ -8,5 +8,12 @@ type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.A
|
|
|
8
8
|
nodeTypes: string[];
|
|
9
9
|
}[];
|
|
10
10
|
}>;
|
|
11
|
-
|
|
11
|
+
type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
12
|
+
affectedBlocks: number;
|
|
13
|
+
charactersAdded: number;
|
|
14
|
+
charactersRemoved: number;
|
|
15
|
+
entryPoint: 'sidebar' | 'card';
|
|
16
|
+
suggestionType: string;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | AcceptSuggestionAEP;
|
|
12
19
|
export {};
|
|
@@ -91,6 +91,7 @@ export declare enum ACTION {
|
|
|
91
91
|
MATCHED = "matched",
|
|
92
92
|
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed",
|
|
93
93
|
NODE_CONTENT_SANITIZED = "nodeContentSanitized",
|
|
94
|
+
ACCEPTED = "accepted",
|
|
94
95
|
NO_DIFF_FOUND = "noDiffFound",
|
|
95
96
|
OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR = "offlineStorageTooManyRetriesError",
|
|
96
97
|
OFFLINE_STORAGE_FAILED_STEPS = "offlineStorageFailedSteps",
|
|
@@ -159,6 +159,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
159
159
|
description: string;
|
|
160
160
|
id: string;
|
|
161
161
|
};
|
|
162
|
+
thinkingCompleteNoSuggestions: {
|
|
163
|
+
defaultMessage: string;
|
|
164
|
+
description: string;
|
|
165
|
+
id: string;
|
|
166
|
+
};
|
|
162
167
|
thinkingCompleteReviewComplete: {
|
|
163
168
|
defaultMessage: string;
|
|
164
169
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
-
import type { OperationalAEP } from './utils';
|
|
2
|
+
import type { OperationalAEP, TrackAEP } from './utils';
|
|
3
3
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
4
4
|
suggestionType: string;
|
|
5
5
|
toolCalls: {
|
|
@@ -8,5 +8,12 @@ type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.A
|
|
|
8
8
|
nodeTypes: string[];
|
|
9
9
|
}[];
|
|
10
10
|
}>;
|
|
11
|
-
|
|
11
|
+
type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
12
|
+
affectedBlocks: number;
|
|
13
|
+
charactersAdded: number;
|
|
14
|
+
charactersRemoved: number;
|
|
15
|
+
entryPoint: 'sidebar' | 'card';
|
|
16
|
+
suggestionType: string;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | AcceptSuggestionAEP;
|
|
12
19
|
export {};
|
|
@@ -91,6 +91,7 @@ export declare enum ACTION {
|
|
|
91
91
|
MATCHED = "matched",
|
|
92
92
|
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed",
|
|
93
93
|
NODE_CONTENT_SANITIZED = "nodeContentSanitized",
|
|
94
|
+
ACCEPTED = "accepted",
|
|
94
95
|
NO_DIFF_FOUND = "noDiffFound",
|
|
95
96
|
OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR = "offlineStorageTooManyRetriesError",
|
|
96
97
|
OFFLINE_STORAGE_FAILED_STEPS = "offlineStorageFailedSteps",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "115.0.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/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/activity-provider": "^2.6.0",
|
|
40
|
-
"@atlaskit/adf-schema": "^52.
|
|
40
|
+
"@atlaskit/adf-schema": "^52.16.0",
|
|
41
41
|
"@atlaskit/adf-utils": "^19.32.0",
|
|
42
42
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.18.0",
|
|
43
43
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
58
58
|
"@atlaskit/editor-toolbar": "^1.9.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
60
|
-
"@atlaskit/emoji": "^70.
|
|
61
|
-
"@atlaskit/icon": "^35.
|
|
60
|
+
"@atlaskit/emoji": "^70.15.0",
|
|
61
|
+
"@atlaskit/icon": "^35.4.0",
|
|
62
62
|
"@atlaskit/link": "^3.4.0",
|
|
63
|
-
"@atlaskit/link-datasource": "^5.
|
|
63
|
+
"@atlaskit/link-datasource": "^5.6.0",
|
|
64
64
|
"@atlaskit/link-picker": "^5.3.0",
|
|
65
65
|
"@atlaskit/media-card": "^80.7.0",
|
|
66
66
|
"@atlaskit/media-client": "^36.3.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
78
78
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
79
79
|
"@atlaskit/primitives": "^19.0.0",
|
|
80
|
-
"@atlaskit/profilecard": "^25.
|
|
80
|
+
"@atlaskit/profilecard": "^25.8.0",
|
|
81
81
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
82
82
|
"@atlaskit/react-ufo": "^6.6.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.13.0",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"@atlaskit/task-decision": "^20.1.0",
|
|
88
88
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
89
89
|
"@atlaskit/textfield": "^8.3.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^88.2.0",
|
|
91
91
|
"@atlaskit/tokens": "^13.1.0",
|
|
92
|
-
"@atlaskit/tooltip": "^22.
|
|
92
|
+
"@atlaskit/tooltip": "^22.6.0",
|
|
93
93
|
"@atlaskit/width-detector": "^5.1.0",
|
|
94
94
|
"@babel/runtime": "^7.0.0",
|
|
95
95
|
"@compiled/react": "^0.20.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-expand/sharedStyles",
|
|
3
3
|
"main": "../../dist/cjs/ui/Expand/sharedStyles.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Expand/sharedStyles.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Expand/sharedStyles.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-mention/mention-with-profilecard",
|
|
3
3
|
"main": "../../dist/cjs/ui/Mention/mention-with-profilecard.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Mention/mention-with-profilecard.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Mention/mention-with-profilecard.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-toolbar/ButtonGroup",
|
|
3
3
|
"main": "../../dist/cjs/ui/Toolbar/ButtonGroup.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Toolbar/ButtonGroup.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Toolbar/ButtonGroup.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-toolbar/DropdownTriggerWrapper",
|
|
3
3
|
"main": "../../dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Toolbar/DropdownTriggerWrapper.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-toolbar/DropdownWrapper",
|
|
3
3
|
"main": "../../dist/cjs/ui/Toolbar/DropdownWrapper.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Toolbar/DropdownWrapper.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Toolbar/DropdownWrapper.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-toolbar/ExpandIcon",
|
|
3
3
|
"main": "../../dist/cjs/ui/Toolbar/ExpandIcon.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Toolbar/ExpandIcon.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Toolbar/ExpandIcon.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@atlaskit/editor-common/
|
|
2
|
+
"name": "@atlaskit/editor-common/ui-toolbar/Separator",
|
|
3
3
|
"main": "../../dist/cjs/ui/Toolbar/Separator.js",
|
|
4
4
|
"module": "../../dist/esm/ui/Toolbar/Separator.js",
|
|
5
5
|
"module:es2019": "../../dist/es2019/ui/Toolbar/Separator.js",
|