@atlaskit/editor-common 112.10.1 → 112.11.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 +23 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +15 -0
- package/dist/cjs/messages/paste-options-toolbar.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-suggestions.js +15 -0
- package/dist/es2019/messages/paste-options-toolbar.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-suggestions.js +15 -0
- package/dist/esm/messages/paste-options-toolbar.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-suggestions.d.ts +51 -36
- package/dist/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/ai-autocomplete-events.d.ts +4 -1
- package/dist/types/messages/paste-options-toolbar.d.ts +19 -14
- package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +51 -36
- package/dist/types-ts4.5/analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/ai-autocomplete-events.d.ts +4 -1
- package/dist/types-ts4.5/messages/paste-options-toolbar.d.ts +19 -14
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0189eb81c663c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0189eb81c663c) -
|
|
8
|
+
Update types to include new autocomplete use workflow
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 112.11.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`15d5b8e4805ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15d5b8e4805ae) -
|
|
16
|
+
EDITOR-4680: Create a second anchor to mount a popup onto for better card positioning.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`3b007c601e102`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b007c601e102) -
|
|
21
|
+
EDITOR-6092 Remove 100 character limit on legacy paste actions for new editor AI paste actions
|
|
22
|
+
menu. Also redesigns the legacy paste actions to more closely resemble the legacy paste floating
|
|
23
|
+
toolbar when there are no AI actions present.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 112.10.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -61,6 +61,21 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntlNext.d
|
|
|
61
61
|
defaultMessage: 'Loading…',
|
|
62
62
|
description: 'Label for the fetch suggestions button when loading'
|
|
63
63
|
},
|
|
64
|
+
fetchGenerateFromDocument: {
|
|
65
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
66
|
+
defaultMessage: 'Suggested edits (generate)',
|
|
67
|
+
description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
|
|
68
|
+
},
|
|
69
|
+
fetchFromSavedContent: {
|
|
70
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.fromSavedContent.non-final',
|
|
71
|
+
defaultMessage: 'Suggested edits (ERS)',
|
|
72
|
+
description: 'Quick insert: fetch AI suggestions using saved content (ERS)'
|
|
73
|
+
},
|
|
74
|
+
fetchGenerateFromAdf: {
|
|
75
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
|
|
76
|
+
defaultMessage: 'Suggested edits (generate from ADF)',
|
|
77
|
+
description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
|
|
78
|
+
},
|
|
64
79
|
originalViewLabel: {
|
|
65
80
|
id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
|
|
66
81
|
defaultMessage: 'Original • View only',
|
|
@@ -45,5 +45,10 @@ var pasteOptionsToolbarMessages = exports.pasteOptionsToolbarMessages = (0, _rea
|
|
|
45
45
|
id: 'fabric.editor.pasteMenuActionsTitle',
|
|
46
46
|
defaultMessage: 'Paste actions',
|
|
47
47
|
description: 'Section title for actions in the paste options menu'
|
|
48
|
+
},
|
|
49
|
+
pasteMenuActionsPasteAs: {
|
|
50
|
+
id: 'fabric.editor.pasteMenuActionsPasteAs',
|
|
51
|
+
defaultMessage: 'Paste as',
|
|
52
|
+
description: 'Submenu title to surface pasting options to paste content as Markdown, Rich text or Plain text'
|
|
48
53
|
}
|
|
49
54
|
});
|
|
@@ -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 _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); 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 = "112.
|
|
22
|
+
var packageVersion = "112.11.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 = "112.
|
|
27
|
+
var packageVersion = "112.11.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -55,6 +55,21 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
55
55
|
defaultMessage: 'Loading…',
|
|
56
56
|
description: 'Label for the fetch suggestions button when loading'
|
|
57
57
|
},
|
|
58
|
+
fetchGenerateFromDocument: {
|
|
59
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
60
|
+
defaultMessage: 'Suggested edits (generate)',
|
|
61
|
+
description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
|
|
62
|
+
},
|
|
63
|
+
fetchFromSavedContent: {
|
|
64
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.fromSavedContent.non-final',
|
|
65
|
+
defaultMessage: 'Suggested edits (ERS)',
|
|
66
|
+
description: 'Quick insert: fetch AI suggestions using saved content (ERS)'
|
|
67
|
+
},
|
|
68
|
+
fetchGenerateFromAdf: {
|
|
69
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
|
|
70
|
+
defaultMessage: 'Suggested edits (generate from ADF)',
|
|
71
|
+
description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
|
|
72
|
+
},
|
|
58
73
|
originalViewLabel: {
|
|
59
74
|
id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
|
|
60
75
|
defaultMessage: 'Original • View only',
|
|
@@ -39,5 +39,10 @@ export const pasteOptionsToolbarMessages = defineMessages({
|
|
|
39
39
|
id: 'fabric.editor.pasteMenuActionsTitle',
|
|
40
40
|
defaultMessage: 'Paste actions',
|
|
41
41
|
description: 'Section title for actions in the paste options menu'
|
|
42
|
+
},
|
|
43
|
+
pasteMenuActionsPasteAs: {
|
|
44
|
+
id: 'fabric.editor.pasteMenuActionsPasteAs',
|
|
45
|
+
defaultMessage: 'Paste as',
|
|
46
|
+
description: 'Submenu title to surface pasting options to paste content as Markdown, Rich text or Plain text'
|
|
42
47
|
}
|
|
43
48
|
});
|
|
@@ -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 = "112.
|
|
7
|
+
const packageVersion = "112.11.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 = "112.
|
|
17
|
+
const packageVersion = "112.11.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -55,6 +55,21 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
55
55
|
defaultMessage: 'Loading…',
|
|
56
56
|
description: 'Label for the fetch suggestions button when loading'
|
|
57
57
|
},
|
|
58
|
+
fetchGenerateFromDocument: {
|
|
59
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
60
|
+
defaultMessage: 'Suggested edits (generate)',
|
|
61
|
+
description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
|
|
62
|
+
},
|
|
63
|
+
fetchFromSavedContent: {
|
|
64
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.fromSavedContent.non-final',
|
|
65
|
+
defaultMessage: 'Suggested edits (ERS)',
|
|
66
|
+
description: 'Quick insert: fetch AI suggestions using saved content (ERS)'
|
|
67
|
+
},
|
|
68
|
+
fetchGenerateFromAdf: {
|
|
69
|
+
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
|
|
70
|
+
defaultMessage: 'Suggested edits (generate from ADF)',
|
|
71
|
+
description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
|
|
72
|
+
},
|
|
58
73
|
originalViewLabel: {
|
|
59
74
|
id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
|
|
60
75
|
defaultMessage: 'Original • View only',
|
|
@@ -39,5 +39,10 @@ export var pasteOptionsToolbarMessages = defineMessages({
|
|
|
39
39
|
id: 'fabric.editor.pasteMenuActionsTitle',
|
|
40
40
|
defaultMessage: 'Paste actions',
|
|
41
41
|
description: 'Section title for actions in the paste options menu'
|
|
42
|
+
},
|
|
43
|
+
pasteMenuActionsPasteAs: {
|
|
44
|
+
id: 'fabric.editor.pasteMenuActionsPasteAs',
|
|
45
|
+
defaultMessage: 'Paste as',
|
|
46
|
+
description: 'Submenu title to surface pasting options to paste content as Markdown, Rich text or Plain text'
|
|
42
47
|
}
|
|
43
48
|
});
|
|
@@ -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 = "112.
|
|
13
|
+
var packageVersion = "112.11.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 = "112.
|
|
24
|
+
var packageVersion = "112.11.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,107 +1,122 @@
|
|
|
1
1
|
export declare const aiSuggestionsMessages: {
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
2
|
+
applyChangesButtonLabel: {
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
suggestionsToolbarButtonLoadingLabel: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
cardAcceptButtonLabel: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
11
|
-
};
|
|
12
|
-
suggestionsToolbarButtonReadyLabel: {
|
|
13
10
|
id: string;
|
|
11
|
+
};
|
|
12
|
+
cardCloseButtonLabel: {
|
|
14
13
|
defaultMessage: string;
|
|
15
14
|
description: string;
|
|
16
|
-
};
|
|
17
|
-
suggestionsToolbarButtonErrorLabel: {
|
|
18
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
cardCollapseButtonLabel: {
|
|
19
18
|
defaultMessage: string;
|
|
20
19
|
description: string;
|
|
21
|
-
};
|
|
22
|
-
previewLabel: {
|
|
23
20
|
id: string;
|
|
21
|
+
};
|
|
22
|
+
cardDiscardButtonLabel: {
|
|
24
23
|
defaultMessage: string;
|
|
25
24
|
description: string;
|
|
26
|
-
};
|
|
27
|
-
viewLabel: {
|
|
28
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
cardExpandButtonLabel: {
|
|
29
28
|
defaultMessage: string;
|
|
30
29
|
description: string;
|
|
31
|
-
};
|
|
32
|
-
titleLabel: {
|
|
33
30
|
id: string;
|
|
31
|
+
};
|
|
32
|
+
cardPrivateLabel: {
|
|
34
33
|
defaultMessage: string;
|
|
35
34
|
description: string;
|
|
35
|
+
id: string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
cardRovoTitle: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
38
40
|
id: string;
|
|
41
|
+
};
|
|
42
|
+
fetchFromSavedContent: {
|
|
39
43
|
defaultMessage: string;
|
|
40
44
|
description: string;
|
|
45
|
+
id: string;
|
|
41
46
|
};
|
|
42
|
-
|
|
47
|
+
fetchGenerateFromAdf: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
43
50
|
id: string;
|
|
51
|
+
};
|
|
52
|
+
fetchGenerateFromDocument: {
|
|
44
53
|
defaultMessage: string;
|
|
45
54
|
description: string;
|
|
55
|
+
id: string;
|
|
46
56
|
};
|
|
47
57
|
fetchSuggestionsButtonLabel: {
|
|
48
|
-
id: string;
|
|
49
58
|
defaultMessage: string;
|
|
50
59
|
description: string;
|
|
60
|
+
id: string;
|
|
51
61
|
};
|
|
52
62
|
fetchSuggestionsButtonLoadingLabel: {
|
|
53
|
-
id: string;
|
|
54
63
|
defaultMessage: string;
|
|
55
64
|
description: string;
|
|
65
|
+
id: string;
|
|
56
66
|
};
|
|
57
67
|
originalViewLabel: {
|
|
58
|
-
id: string;
|
|
59
68
|
defaultMessage: string;
|
|
60
69
|
description: string;
|
|
61
|
-
};
|
|
62
|
-
suggestedLabel: {
|
|
63
70
|
id: string;
|
|
71
|
+
};
|
|
72
|
+
previewLabel: {
|
|
64
73
|
defaultMessage: string;
|
|
65
74
|
description: string;
|
|
66
|
-
};
|
|
67
|
-
suggestionsLabel: {
|
|
68
75
|
id: string;
|
|
76
|
+
};
|
|
77
|
+
reviewNote: {
|
|
69
78
|
defaultMessage: string;
|
|
70
79
|
description: string;
|
|
71
|
-
};
|
|
72
|
-
cardExpandButtonLabel: {
|
|
73
80
|
id: string;
|
|
81
|
+
};
|
|
82
|
+
suggestedLabel: {
|
|
74
83
|
defaultMessage: string;
|
|
75
84
|
description: string;
|
|
76
|
-
};
|
|
77
|
-
cardCollapseButtonLabel: {
|
|
78
85
|
id: string;
|
|
86
|
+
};
|
|
87
|
+
suggestionsLabel: {
|
|
79
88
|
defaultMessage: string;
|
|
80
89
|
description: string;
|
|
81
|
-
};
|
|
82
|
-
cardCloseButtonLabel: {
|
|
83
90
|
id: string;
|
|
91
|
+
};
|
|
92
|
+
suggestionsToolbarButtonErrorLabel: {
|
|
84
93
|
defaultMessage: string;
|
|
85
94
|
description: string;
|
|
86
|
-
};
|
|
87
|
-
cardRovoTitle: {
|
|
88
95
|
id: string;
|
|
96
|
+
};
|
|
97
|
+
suggestionsToolbarButtonLabel: {
|
|
89
98
|
defaultMessage: string;
|
|
90
99
|
description: string;
|
|
91
|
-
};
|
|
92
|
-
cardPrivateLabel: {
|
|
93
100
|
id: string;
|
|
101
|
+
};
|
|
102
|
+
suggestionsToolbarButtonLoadingLabel: {
|
|
94
103
|
defaultMessage: string;
|
|
95
104
|
description: string;
|
|
96
|
-
};
|
|
97
|
-
cardAcceptButtonLabel: {
|
|
98
105
|
id: string;
|
|
106
|
+
};
|
|
107
|
+
suggestionsToolbarButtonReadyLabel: {
|
|
99
108
|
defaultMessage: string;
|
|
100
109
|
description: string;
|
|
110
|
+
id: string;
|
|
101
111
|
};
|
|
102
|
-
|
|
112
|
+
titleLabel: {
|
|
113
|
+
defaultMessage: string;
|
|
114
|
+
description: string;
|
|
103
115
|
id: string;
|
|
116
|
+
};
|
|
117
|
+
viewLabel: {
|
|
104
118
|
defaultMessage: string;
|
|
105
119
|
description: string;
|
|
120
|
+
id: string;
|
|
106
121
|
};
|
|
107
122
|
};
|
|
@@ -46,6 +46,7 @@ export type { RequestToEditAEP } from './types/general-events';
|
|
|
46
46
|
export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
|
|
47
47
|
export type { AIProactiveEventPayload } from './types/ai-proactive-events';
|
|
48
48
|
export type { AIQuickPromptEventPayload } from './types/ai-quick-prompt-events';
|
|
49
|
+
export type { AiAutocompleteEventPayload, TriggerType } from './types/ai-autocomplete-events';
|
|
49
50
|
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
50
51
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
51
52
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
|
-
type AiAutocompleteInvokedAEP = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined,
|
|
3
|
+
type AiAutocompleteInvokedAEP = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, {
|
|
4
|
+
triggerType: TriggerType;
|
|
5
|
+
}, undefined>;
|
|
4
6
|
type AiAutocompleteViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
5
7
|
type AiAutocompleteAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
6
8
|
type AiAutocompleteRejectedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
9
|
+
export type TriggerType = 'summary-heading' | 'summary-first-lines' | 'summary-panel' | 'cmd+shift+space';
|
|
7
10
|
export type AiAutocompleteEventPayload = AiAutocompleteInvokedAEP | AiAutocompleteViewedAEP | AiAutocompleteAcceptedAEP | AiAutocompleteRejectedAEP;
|
|
8
11
|
export {};
|
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
export declare const pasteOptionsToolbarMessages: {
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
2
|
+
markdown: {
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
plainText: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
markdownAction: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
10
|
+
id: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
pasteMenuActionsPasteAs: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
13
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
pasteMenuActionsTitle: {
|
|
14
18
|
defaultMessage: string;
|
|
15
19
|
description: string;
|
|
20
|
+
id: string;
|
|
16
21
|
};
|
|
17
|
-
|
|
22
|
+
pasteOptions: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
18
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
plainText: {
|
|
19
28
|
defaultMessage: string;
|
|
20
29
|
description: string;
|
|
30
|
+
id: string;
|
|
21
31
|
};
|
|
22
32
|
plainTextAction: {
|
|
23
|
-
id: string;
|
|
24
33
|
defaultMessage: string;
|
|
25
34
|
description: string;
|
|
26
|
-
};
|
|
27
|
-
markdownAction: {
|
|
28
35
|
id: string;
|
|
36
|
+
};
|
|
37
|
+
richText: {
|
|
29
38
|
defaultMessage: string;
|
|
30
39
|
description: string;
|
|
40
|
+
id: string;
|
|
31
41
|
};
|
|
32
42
|
richTextAction: {
|
|
33
|
-
id: string;
|
|
34
43
|
defaultMessage: string;
|
|
35
44
|
description: string;
|
|
36
|
-
};
|
|
37
|
-
pasteMenuActionsTitle: {
|
|
38
45
|
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
46
|
};
|
|
42
47
|
};
|
|
@@ -1,107 +1,122 @@
|
|
|
1
1
|
export declare const aiSuggestionsMessages: {
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
2
|
+
applyChangesButtonLabel: {
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
suggestionsToolbarButtonLoadingLabel: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
cardAcceptButtonLabel: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
11
|
-
};
|
|
12
|
-
suggestionsToolbarButtonReadyLabel: {
|
|
13
10
|
id: string;
|
|
11
|
+
};
|
|
12
|
+
cardCloseButtonLabel: {
|
|
14
13
|
defaultMessage: string;
|
|
15
14
|
description: string;
|
|
16
|
-
};
|
|
17
|
-
suggestionsToolbarButtonErrorLabel: {
|
|
18
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
cardCollapseButtonLabel: {
|
|
19
18
|
defaultMessage: string;
|
|
20
19
|
description: string;
|
|
21
|
-
};
|
|
22
|
-
previewLabel: {
|
|
23
20
|
id: string;
|
|
21
|
+
};
|
|
22
|
+
cardDiscardButtonLabel: {
|
|
24
23
|
defaultMessage: string;
|
|
25
24
|
description: string;
|
|
26
|
-
};
|
|
27
|
-
viewLabel: {
|
|
28
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
cardExpandButtonLabel: {
|
|
29
28
|
defaultMessage: string;
|
|
30
29
|
description: string;
|
|
31
|
-
};
|
|
32
|
-
titleLabel: {
|
|
33
30
|
id: string;
|
|
31
|
+
};
|
|
32
|
+
cardPrivateLabel: {
|
|
34
33
|
defaultMessage: string;
|
|
35
34
|
description: string;
|
|
35
|
+
id: string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
cardRovoTitle: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
38
40
|
id: string;
|
|
41
|
+
};
|
|
42
|
+
fetchFromSavedContent: {
|
|
39
43
|
defaultMessage: string;
|
|
40
44
|
description: string;
|
|
45
|
+
id: string;
|
|
41
46
|
};
|
|
42
|
-
|
|
47
|
+
fetchGenerateFromAdf: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
43
50
|
id: string;
|
|
51
|
+
};
|
|
52
|
+
fetchGenerateFromDocument: {
|
|
44
53
|
defaultMessage: string;
|
|
45
54
|
description: string;
|
|
55
|
+
id: string;
|
|
46
56
|
};
|
|
47
57
|
fetchSuggestionsButtonLabel: {
|
|
48
|
-
id: string;
|
|
49
58
|
defaultMessage: string;
|
|
50
59
|
description: string;
|
|
60
|
+
id: string;
|
|
51
61
|
};
|
|
52
62
|
fetchSuggestionsButtonLoadingLabel: {
|
|
53
|
-
id: string;
|
|
54
63
|
defaultMessage: string;
|
|
55
64
|
description: string;
|
|
65
|
+
id: string;
|
|
56
66
|
};
|
|
57
67
|
originalViewLabel: {
|
|
58
|
-
id: string;
|
|
59
68
|
defaultMessage: string;
|
|
60
69
|
description: string;
|
|
61
|
-
};
|
|
62
|
-
suggestedLabel: {
|
|
63
70
|
id: string;
|
|
71
|
+
};
|
|
72
|
+
previewLabel: {
|
|
64
73
|
defaultMessage: string;
|
|
65
74
|
description: string;
|
|
66
|
-
};
|
|
67
|
-
suggestionsLabel: {
|
|
68
75
|
id: string;
|
|
76
|
+
};
|
|
77
|
+
reviewNote: {
|
|
69
78
|
defaultMessage: string;
|
|
70
79
|
description: string;
|
|
71
|
-
};
|
|
72
|
-
cardExpandButtonLabel: {
|
|
73
80
|
id: string;
|
|
81
|
+
};
|
|
82
|
+
suggestedLabel: {
|
|
74
83
|
defaultMessage: string;
|
|
75
84
|
description: string;
|
|
76
|
-
};
|
|
77
|
-
cardCollapseButtonLabel: {
|
|
78
85
|
id: string;
|
|
86
|
+
};
|
|
87
|
+
suggestionsLabel: {
|
|
79
88
|
defaultMessage: string;
|
|
80
89
|
description: string;
|
|
81
|
-
};
|
|
82
|
-
cardCloseButtonLabel: {
|
|
83
90
|
id: string;
|
|
91
|
+
};
|
|
92
|
+
suggestionsToolbarButtonErrorLabel: {
|
|
84
93
|
defaultMessage: string;
|
|
85
94
|
description: string;
|
|
86
|
-
};
|
|
87
|
-
cardRovoTitle: {
|
|
88
95
|
id: string;
|
|
96
|
+
};
|
|
97
|
+
suggestionsToolbarButtonLabel: {
|
|
89
98
|
defaultMessage: string;
|
|
90
99
|
description: string;
|
|
91
|
-
};
|
|
92
|
-
cardPrivateLabel: {
|
|
93
100
|
id: string;
|
|
101
|
+
};
|
|
102
|
+
suggestionsToolbarButtonLoadingLabel: {
|
|
94
103
|
defaultMessage: string;
|
|
95
104
|
description: string;
|
|
96
|
-
};
|
|
97
|
-
cardAcceptButtonLabel: {
|
|
98
105
|
id: string;
|
|
106
|
+
};
|
|
107
|
+
suggestionsToolbarButtonReadyLabel: {
|
|
99
108
|
defaultMessage: string;
|
|
100
109
|
description: string;
|
|
110
|
+
id: string;
|
|
101
111
|
};
|
|
102
|
-
|
|
112
|
+
titleLabel: {
|
|
113
|
+
defaultMessage: string;
|
|
114
|
+
description: string;
|
|
103
115
|
id: string;
|
|
116
|
+
};
|
|
117
|
+
viewLabel: {
|
|
104
118
|
defaultMessage: string;
|
|
105
119
|
description: string;
|
|
120
|
+
id: string;
|
|
106
121
|
};
|
|
107
122
|
};
|
|
@@ -46,6 +46,7 @@ export type { RequestToEditAEP } from './types/general-events';
|
|
|
46
46
|
export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
|
|
47
47
|
export type { AIProactiveEventPayload } from './types/ai-proactive-events';
|
|
48
48
|
export type { AIQuickPromptEventPayload } from './types/ai-quick-prompt-events';
|
|
49
|
+
export type { AiAutocompleteEventPayload, TriggerType } from './types/ai-autocomplete-events';
|
|
49
50
|
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
50
51
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
51
52
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
|
-
type AiAutocompleteInvokedAEP = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined,
|
|
3
|
+
type AiAutocompleteInvokedAEP = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, {
|
|
4
|
+
triggerType: TriggerType;
|
|
5
|
+
}, undefined>;
|
|
4
6
|
type AiAutocompleteViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
5
7
|
type AiAutocompleteAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
6
8
|
type AiAutocompleteRejectedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
9
|
+
export type TriggerType = 'summary-heading' | 'summary-first-lines' | 'summary-panel' | 'cmd+shift+space';
|
|
7
10
|
export type AiAutocompleteEventPayload = AiAutocompleteInvokedAEP | AiAutocompleteViewedAEP | AiAutocompleteAcceptedAEP | AiAutocompleteRejectedAEP;
|
|
8
11
|
export {};
|
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
export declare const pasteOptionsToolbarMessages: {
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
2
|
+
markdown: {
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
plainText: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
markdownAction: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
10
|
+
id: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
pasteMenuActionsPasteAs: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
13
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
pasteMenuActionsTitle: {
|
|
14
18
|
defaultMessage: string;
|
|
15
19
|
description: string;
|
|
20
|
+
id: string;
|
|
16
21
|
};
|
|
17
|
-
|
|
22
|
+
pasteOptions: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
18
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
plainText: {
|
|
19
28
|
defaultMessage: string;
|
|
20
29
|
description: string;
|
|
30
|
+
id: string;
|
|
21
31
|
};
|
|
22
32
|
plainTextAction: {
|
|
23
|
-
id: string;
|
|
24
33
|
defaultMessage: string;
|
|
25
34
|
description: string;
|
|
26
|
-
};
|
|
27
|
-
markdownAction: {
|
|
28
35
|
id: string;
|
|
36
|
+
};
|
|
37
|
+
richText: {
|
|
29
38
|
defaultMessage: string;
|
|
30
39
|
description: string;
|
|
40
|
+
id: string;
|
|
31
41
|
};
|
|
32
42
|
richTextAction: {
|
|
33
|
-
id: string;
|
|
34
43
|
defaultMessage: string;
|
|
35
44
|
description: string;
|
|
36
|
-
};
|
|
37
|
-
pasteMenuActionsTitle: {
|
|
38
45
|
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
46
|
};
|
|
42
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.
|
|
3
|
+
"version": "112.11.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/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
72
72
|
"@atlaskit/popper": "^7.1.0",
|
|
73
73
|
"@atlaskit/primitives": "^18.1.0",
|
|
74
|
-
"@atlaskit/profilecard": "^24.
|
|
74
|
+
"@atlaskit/profilecard": "^24.45.0",
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^5.5.0",
|
|
77
77
|
"@atlaskit/section-message": "^8.12.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/status": "^3.1.0",
|
|
82
82
|
"@atlaskit/task-decision": "^19.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.2.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^48.0.0",
|
|
85
85
|
"@atlaskit/tokens": "^11.3.0",
|
|
86
86
|
"@atlaskit/tooltip": "^21.0.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|