@atlaskit/editor-common 110.1.0 → 110.2.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 +14 -0
- package/dist/cjs/ai-messages/ai-failed-state.js +5 -0
- package/dist/cjs/analytics/types/enums.js +3 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-failed-state.js +5 -0
- package/dist/es2019/analytics/types/enums.js +3 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-failed-state.js +5 -0
- package/dist/esm/analytics/types/enums.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-failed-state.d.ts +5 -0
- package/dist/types/analytics/linking-utils.d.ts +1 -1
- package/dist/types/analytics/types/enums.d.ts +4 -1
- package/dist/types/analytics/types/events.d.ts +2 -2
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +5 -0
- package/dist/types-ts4.5/ai-messages/ai-failed-state.d.ts +5 -0
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +4 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +5 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cf5a3d397221d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf5a3d397221d) -
|
|
8
|
+
EDITOR-1803 Show error screen with relevant message when selection has no textual content for non
|
|
9
|
+
freegen prompts.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`49444f7239178`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/49444f7239178) -
|
|
14
|
+
Added analytics events to preview panel hover overlays and toolbar button
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 110.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -102,5 +102,10 @@ var aiFailedStateMessages = exports.aiFailedStateMessages = (0, _reactIntlNext.d
|
|
|
102
102
|
id: 'fabric.editor.ai.experience.aifcAdfStreamingError',
|
|
103
103
|
defaultMessage: 'Our apologies, we couldn’t get a response.',
|
|
104
104
|
description: 'This error message is displayed when error(s) are encountered during processing of LLM response in ADF format.'
|
|
105
|
+
},
|
|
106
|
+
noTextualContentError: {
|
|
107
|
+
id: 'fabric.editor.ai.experience.noTextualContentError',
|
|
108
|
+
defaultMessage: 'More content needed to complete your request. Please select more content and try again.',
|
|
109
|
+
description: 'Error message when the input has no textual content.'
|
|
105
110
|
}
|
|
106
111
|
});
|
|
@@ -237,6 +237,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
237
237
|
INPUT_METHOD["META_CLICK"] = "metaClick";
|
|
238
238
|
INPUT_METHOD["INLINE_SUGGESTION_FLOATING_TB"] = "inlineSuggestionFloatingToolbar";
|
|
239
239
|
INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
|
|
240
|
+
INPUT_METHOD["SMART_LINK"] = "smartLink";
|
|
240
241
|
return INPUT_METHOD;
|
|
241
242
|
}({});
|
|
242
243
|
var INSERT_MEDIA_VIA = exports.INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
|
|
@@ -419,6 +420,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
419
420
|
ACTION_SUBJECT_ID["FRAGMENT_MARK"] = "fragmentMark";
|
|
420
421
|
ACTION_SUBJECT_ID["GOTO_SMART_LINK_SETTINGS"] = "goToSmartLinkSettings";
|
|
421
422
|
ACTION_SUBJECT_ID["HELP_QUICK_INSERT"] = "helpQuickInsert";
|
|
423
|
+
ACTION_SUBJECT_ID["HOVER_LABEL"] = "hoverLabel";
|
|
422
424
|
ACTION_SUBJECT_ID["HYPERLINK"] = "hyperlink";
|
|
423
425
|
ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
|
|
424
426
|
ACTION_SUBJECT_ID["LAYOUT"] = "layout";
|
|
@@ -492,6 +494,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
492
494
|
ACTION_SUBJECT_ID["TYPEAHEAD_LINK"] = "linkTypeAhead";
|
|
493
495
|
ACTION_SUBJECT_ID["TYPEAHEAD_MENTION"] = "mentionTypeAhead";
|
|
494
496
|
ACTION_SUBJECT_ID["TYPEAHEAD_QUICK_INSERT"] = "quickInsertTypeAhead";
|
|
497
|
+
ACTION_SUBJECT_ID["TOOLBAR_PREVIEW"] = "previewFromToolbar";
|
|
495
498
|
ACTION_SUBJECT_ID["UNKNOWN_NODE"] = "unknownNode";
|
|
496
499
|
ACTION_SUBJECT_ID["UNLINK"] = "unlink";
|
|
497
500
|
ACTION_SUBJECT_ID["HEADING_ANCHOR_LINK"] = "headingAnchorLink";
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
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); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "110.
|
|
19
|
+
var packageVersion = "110.1.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// 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 = "110.
|
|
27
|
+
var packageVersion = "110.1.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -95,5 +95,10 @@ export const aiFailedStateMessages = defineMessages({
|
|
|
95
95
|
id: 'fabric.editor.ai.experience.aifcAdfStreamingError',
|
|
96
96
|
defaultMessage: 'Our apologies, we couldn’t get a response.',
|
|
97
97
|
description: 'This error message is displayed when error(s) are encountered during processing of LLM response in ADF format.'
|
|
98
|
+
},
|
|
99
|
+
noTextualContentError: {
|
|
100
|
+
id: 'fabric.editor.ai.experience.noTextualContentError',
|
|
101
|
+
defaultMessage: 'More content needed to complete your request. Please select more content and try again.',
|
|
102
|
+
description: 'Error message when the input has no textual content.'
|
|
98
103
|
}
|
|
99
104
|
});
|
|
@@ -231,6 +231,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
231
231
|
INPUT_METHOD["META_CLICK"] = "metaClick";
|
|
232
232
|
INPUT_METHOD["INLINE_SUGGESTION_FLOATING_TB"] = "inlineSuggestionFloatingToolbar";
|
|
233
233
|
INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
|
|
234
|
+
INPUT_METHOD["SMART_LINK"] = "smartLink";
|
|
234
235
|
return INPUT_METHOD;
|
|
235
236
|
}({});
|
|
236
237
|
export let INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
|
|
@@ -413,6 +414,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
413
414
|
ACTION_SUBJECT_ID["FRAGMENT_MARK"] = "fragmentMark";
|
|
414
415
|
ACTION_SUBJECT_ID["GOTO_SMART_LINK_SETTINGS"] = "goToSmartLinkSettings";
|
|
415
416
|
ACTION_SUBJECT_ID["HELP_QUICK_INSERT"] = "helpQuickInsert";
|
|
417
|
+
ACTION_SUBJECT_ID["HOVER_LABEL"] = "hoverLabel";
|
|
416
418
|
ACTION_SUBJECT_ID["HYPERLINK"] = "hyperlink";
|
|
417
419
|
ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
|
|
418
420
|
ACTION_SUBJECT_ID["LAYOUT"] = "layout";
|
|
@@ -486,6 +488,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
486
488
|
ACTION_SUBJECT_ID["TYPEAHEAD_LINK"] = "linkTypeAhead";
|
|
487
489
|
ACTION_SUBJECT_ID["TYPEAHEAD_MENTION"] = "mentionTypeAhead";
|
|
488
490
|
ACTION_SUBJECT_ID["TYPEAHEAD_QUICK_INSERT"] = "quickInsertTypeAhead";
|
|
491
|
+
ACTION_SUBJECT_ID["TOOLBAR_PREVIEW"] = "previewFromToolbar";
|
|
489
492
|
ACTION_SUBJECT_ID["UNKNOWN_NODE"] = "unknownNode";
|
|
490
493
|
ACTION_SUBJECT_ID["UNLINK"] = "unlink";
|
|
491
494
|
ACTION_SUBJECT_ID["HEADING_ANCHOR_LINK"] = "headingAnchorLink";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "110.
|
|
4
|
+
const packageVersion = "110.1.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// 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 = "110.
|
|
17
|
+
const packageVersion = "110.1.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -95,5 +95,10 @@ export var aiFailedStateMessages = defineMessages({
|
|
|
95
95
|
id: 'fabric.editor.ai.experience.aifcAdfStreamingError',
|
|
96
96
|
defaultMessage: 'Our apologies, we couldn’t get a response.',
|
|
97
97
|
description: 'This error message is displayed when error(s) are encountered during processing of LLM response in ADF format.'
|
|
98
|
+
},
|
|
99
|
+
noTextualContentError: {
|
|
100
|
+
id: 'fabric.editor.ai.experience.noTextualContentError',
|
|
101
|
+
defaultMessage: 'More content needed to complete your request. Please select more content and try again.',
|
|
102
|
+
description: 'Error message when the input has no textual content.'
|
|
98
103
|
}
|
|
99
104
|
});
|
|
@@ -231,6 +231,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
231
231
|
INPUT_METHOD["META_CLICK"] = "metaClick";
|
|
232
232
|
INPUT_METHOD["INLINE_SUGGESTION_FLOATING_TB"] = "inlineSuggestionFloatingToolbar";
|
|
233
233
|
INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
|
|
234
|
+
INPUT_METHOD["SMART_LINK"] = "smartLink";
|
|
234
235
|
return INPUT_METHOD;
|
|
235
236
|
}({});
|
|
236
237
|
export var INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
|
|
@@ -413,6 +414,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
413
414
|
ACTION_SUBJECT_ID["FRAGMENT_MARK"] = "fragmentMark";
|
|
414
415
|
ACTION_SUBJECT_ID["GOTO_SMART_LINK_SETTINGS"] = "goToSmartLinkSettings";
|
|
415
416
|
ACTION_SUBJECT_ID["HELP_QUICK_INSERT"] = "helpQuickInsert";
|
|
417
|
+
ACTION_SUBJECT_ID["HOVER_LABEL"] = "hoverLabel";
|
|
416
418
|
ACTION_SUBJECT_ID["HYPERLINK"] = "hyperlink";
|
|
417
419
|
ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
|
|
418
420
|
ACTION_SUBJECT_ID["LAYOUT"] = "layout";
|
|
@@ -486,6 +488,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
486
488
|
ACTION_SUBJECT_ID["TYPEAHEAD_LINK"] = "linkTypeAhead";
|
|
487
489
|
ACTION_SUBJECT_ID["TYPEAHEAD_MENTION"] = "mentionTypeAhead";
|
|
488
490
|
ACTION_SUBJECT_ID["TYPEAHEAD_QUICK_INSERT"] = "quickInsertTypeAhead";
|
|
491
|
+
ACTION_SUBJECT_ID["TOOLBAR_PREVIEW"] = "previewFromToolbar";
|
|
489
492
|
ACTION_SUBJECT_ID["UNKNOWN_NODE"] = "unknownNode";
|
|
490
493
|
ACTION_SUBJECT_ID["UNLINK"] = "unlink";
|
|
491
494
|
ACTION_SUBJECT_ID["HEADING_ANCHOR_LINK"] = "headingAnchorLink";
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "110.
|
|
10
|
+
var packageVersion = "110.1.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// 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 = "110.
|
|
24
|
+
var packageVersion = "110.1.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types/events';
|
|
3
3
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
4
|
-
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
4
|
+
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK | ACTION_SUBJECT_ID.HOVER_LABEL;
|
|
5
5
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
6
6
|
export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.META_CLICK) => AnalyticsEventPayload;
|
|
7
7
|
export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
@@ -228,7 +228,8 @@ export declare enum INPUT_METHOD {
|
|
|
228
228
|
DOUBLE_CLICK = "doubleClick",
|
|
229
229
|
META_CLICK = "metaClick",
|
|
230
230
|
INLINE_SUGGESTION_FLOATING_TB = "inlineSuggestionFloatingToolbar",
|
|
231
|
-
BLOCK_MENU = "blockMenu"
|
|
231
|
+
BLOCK_MENU = "blockMenu",
|
|
232
|
+
SMART_LINK = "smartLink"
|
|
232
233
|
}
|
|
233
234
|
export declare enum INSERT_MEDIA_VIA {
|
|
234
235
|
LOCAL_UPLOAD = "localUpload",
|
|
@@ -405,6 +406,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
405
406
|
FRAGMENT_MARK = "fragmentMark",
|
|
406
407
|
GOTO_SMART_LINK_SETTINGS = "goToSmartLinkSettings",
|
|
407
408
|
HELP_QUICK_INSERT = "helpQuickInsert",
|
|
409
|
+
HOVER_LABEL = "hoverLabel",
|
|
408
410
|
HYPERLINK = "hyperlink",
|
|
409
411
|
INLINE_COMMENT = "inlineComment",
|
|
410
412
|
LAYOUT = "layout",
|
|
@@ -478,6 +480,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
478
480
|
TYPEAHEAD_LINK = "linkTypeAhead",
|
|
479
481
|
TYPEAHEAD_MENTION = "mentionTypeAhead",
|
|
480
482
|
TYPEAHEAD_QUICK_INSERT = "quickInsertTypeAhead",
|
|
483
|
+
TOOLBAR_PREVIEW = "previewFromToolbar",
|
|
481
484
|
UNKNOWN_NODE = "unknownNode",
|
|
482
485
|
UNLINK = "unlink",
|
|
483
486
|
HEADING_ANCHOR_LINK = "headingAnchorLink",
|
|
@@ -33,7 +33,7 @@ import type { HighlightActionsEventPayload } from './highlight-actions-menu-even
|
|
|
33
33
|
import type { HighlightEventPayload } from './highlight-events';
|
|
34
34
|
import type { InsertEventPayload } from './insert-events';
|
|
35
35
|
import type { VisitedLinkAEP } from './link-events';
|
|
36
|
-
import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
|
|
36
|
+
import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, PreviewItemClickedAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
|
|
37
37
|
import type { ListEventPayload } from './list-events';
|
|
38
38
|
import type { LoomEventPayload } from './loom-events';
|
|
39
39
|
import type { MediaEventPayload } from './media-events';
|
|
@@ -63,7 +63,7 @@ export type SimplifiedNode = {
|
|
|
63
63
|
pos: number;
|
|
64
64
|
type: string;
|
|
65
65
|
};
|
|
66
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | BlockMenuEventPayload;
|
|
66
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | BlockMenuEventPayload;
|
|
67
67
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
68
68
|
newColor: string;
|
|
69
69
|
previousColor: string;
|
|
@@ -68,5 +68,10 @@ export type SelectedSearchResultsAEP = UIAEP<ACTION.SELECTED, ACTION_SUBJECT.SEA
|
|
|
68
68
|
}, undefined>;
|
|
69
69
|
export type EditLinkToolbarAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.HYPERLINK, ACTION_SUBJECT_ID.EDIT_LINK, {}, undefined>;
|
|
70
70
|
export type UnlinkToolbarAEP = UIAEP<ACTION.UNLINK, ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.HYPERLINK, ACTION_SUBJECT_ID.CARD_INLINE | undefined, {}, undefined>;
|
|
71
|
+
export type PreviewItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.HOVER_LABEL | ACTION_SUBJECT_ID.TOOLBAR_PREVIEW, {
|
|
72
|
+
destinationProduct?: string | null;
|
|
73
|
+
destinationSubproduct?: string | null;
|
|
74
|
+
previewType: 'panel' | 'modal';
|
|
75
|
+
}, undefined>;
|
|
71
76
|
export type CreateLinkInlineDialogEventPayload = QuickSearchPerfAEP | RecentActivitiesPerfAEP | ViewedCreateLinkInlineDialogAEP | EnteredTextLinkSearchInputAEP | ShownPreQuerySearchResultsAEP | ShownPostQuerySearchResultsAEP | HighlightedSearchResultsAEP | SelectedSearchResultsAEP | DismissedCreateLinkInlineDialogAEP;
|
|
72
77
|
export type CreateLinkInlineDialogActionType = ACTION.INVOKED | ACTION.VIEWED | ACTION.ENTERED | ACTION.SHOWN;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types/events';
|
|
3
3
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
4
|
-
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
4
|
+
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK | ACTION_SUBJECT_ID.HOVER_LABEL;
|
|
5
5
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
6
6
|
export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.META_CLICK) => AnalyticsEventPayload;
|
|
7
7
|
export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
@@ -228,7 +228,8 @@ export declare enum INPUT_METHOD {
|
|
|
228
228
|
DOUBLE_CLICK = "doubleClick",
|
|
229
229
|
META_CLICK = "metaClick",
|
|
230
230
|
INLINE_SUGGESTION_FLOATING_TB = "inlineSuggestionFloatingToolbar",
|
|
231
|
-
BLOCK_MENU = "blockMenu"
|
|
231
|
+
BLOCK_MENU = "blockMenu",
|
|
232
|
+
SMART_LINK = "smartLink"
|
|
232
233
|
}
|
|
233
234
|
export declare enum INSERT_MEDIA_VIA {
|
|
234
235
|
LOCAL_UPLOAD = "localUpload",
|
|
@@ -405,6 +406,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
405
406
|
FRAGMENT_MARK = "fragmentMark",
|
|
406
407
|
GOTO_SMART_LINK_SETTINGS = "goToSmartLinkSettings",
|
|
407
408
|
HELP_QUICK_INSERT = "helpQuickInsert",
|
|
409
|
+
HOVER_LABEL = "hoverLabel",
|
|
408
410
|
HYPERLINK = "hyperlink",
|
|
409
411
|
INLINE_COMMENT = "inlineComment",
|
|
410
412
|
LAYOUT = "layout",
|
|
@@ -478,6 +480,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
478
480
|
TYPEAHEAD_LINK = "linkTypeAhead",
|
|
479
481
|
TYPEAHEAD_MENTION = "mentionTypeAhead",
|
|
480
482
|
TYPEAHEAD_QUICK_INSERT = "quickInsertTypeAhead",
|
|
483
|
+
TOOLBAR_PREVIEW = "previewFromToolbar",
|
|
481
484
|
UNKNOWN_NODE = "unknownNode",
|
|
482
485
|
UNLINK = "unlink",
|
|
483
486
|
HEADING_ANCHOR_LINK = "headingAnchorLink",
|
|
@@ -33,7 +33,7 @@ import type { HighlightActionsEventPayload } from './highlight-actions-menu-even
|
|
|
33
33
|
import type { HighlightEventPayload } from './highlight-events';
|
|
34
34
|
import type { InsertEventPayload } from './insert-events';
|
|
35
35
|
import type { VisitedLinkAEP } from './link-events';
|
|
36
|
-
import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
|
|
36
|
+
import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, PreviewItemClickedAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
|
|
37
37
|
import type { ListEventPayload } from './list-events';
|
|
38
38
|
import type { LoomEventPayload } from './loom-events';
|
|
39
39
|
import type { MediaEventPayload } from './media-events';
|
|
@@ -63,7 +63,7 @@ export type SimplifiedNode = {
|
|
|
63
63
|
pos: number;
|
|
64
64
|
type: string;
|
|
65
65
|
};
|
|
66
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | BlockMenuEventPayload;
|
|
66
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | BlockMenuEventPayload;
|
|
67
67
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
68
68
|
newColor: string;
|
|
69
69
|
previousColor: string;
|
|
@@ -68,5 +68,10 @@ export type SelectedSearchResultsAEP = UIAEP<ACTION.SELECTED, ACTION_SUBJECT.SEA
|
|
|
68
68
|
}, undefined>;
|
|
69
69
|
export type EditLinkToolbarAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.HYPERLINK, ACTION_SUBJECT_ID.EDIT_LINK, {}, undefined>;
|
|
70
70
|
export type UnlinkToolbarAEP = UIAEP<ACTION.UNLINK, ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.HYPERLINK, ACTION_SUBJECT_ID.CARD_INLINE | undefined, {}, undefined>;
|
|
71
|
+
export type PreviewItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.HOVER_LABEL | ACTION_SUBJECT_ID.TOOLBAR_PREVIEW, {
|
|
72
|
+
destinationProduct?: string | null;
|
|
73
|
+
destinationSubproduct?: string | null;
|
|
74
|
+
previewType: 'panel' | 'modal';
|
|
75
|
+
}, undefined>;
|
|
71
76
|
export type CreateLinkInlineDialogEventPayload = QuickSearchPerfAEP | RecentActivitiesPerfAEP | ViewedCreateLinkInlineDialogAEP | EnteredTextLinkSearchInputAEP | ShownPreQuerySearchResultsAEP | ShownPostQuerySearchResultsAEP | HighlightedSearchResultsAEP | SelectedSearchResultsAEP | DismissedCreateLinkInlineDialogAEP;
|
|
72
77
|
export type CreateLinkInlineDialogActionType = ACTION.INVOKED | ACTION.VIEWED | ACTION.ENTERED | ACTION.SHOWN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.2.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/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/profilecard": "^24.14.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^4.11.0",
|
|
76
76
|
"@atlaskit/section-message": "^8.7.0",
|
|
77
|
-
"@atlaskit/smart-card": "^42.
|
|
77
|
+
"@atlaskit/smart-card": "^42.3.0",
|
|
78
78
|
"@atlaskit/smart-user-picker": "^8.3.0",
|
|
79
79
|
"@atlaskit/spinner": "^19.0.0",
|
|
80
80
|
"@atlaskit/status": "^3.0.0",
|