@atlaskit/editor-common 112.0.1 → 112.1.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 +11 -0
- package/dist/cjs/analytics/types/ai-quick-prompt-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +3 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/messages/native-embed-toolbar.js +24 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/ai-quick-prompt-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +3 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/messages/native-embed-toolbar.js +18 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/ai-quick-prompt-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +3 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/messages/native-embed-toolbar.js +18 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/ai-quick-prompt-events.d.ts +15 -0
- package/dist/types/analytics/types/enums.d.ts +3 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/messages/native-embed-toolbar.d.ts +17 -0
- package/dist/types-ts4.5/analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/ai-quick-prompt-events.d.ts +15 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +3 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/messages/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/native-embed-toolbar.d.ts +17 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3261a68797c81`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3261a68797c81) -
|
|
8
|
+
EDITOR-5725 Add analytics event types and wiring for ai-quick-prompt
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 112.0.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -50,6 +50,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
50
50
|
/** used in @atlassian/editor-referentiality */
|
|
51
51
|
ACTION["DISCONNECTED_TARGET"] = "disconnectedTarget";
|
|
52
52
|
ACTION["DISMISSED"] = "dismissed";
|
|
53
|
+
ACTION["DISPLAYED"] = "displayed";
|
|
53
54
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
54
55
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
55
56
|
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
|
@@ -139,6 +140,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
139
140
|
ACTION["SYNCHRONY_ERROR"] = "synchronyError";
|
|
140
141
|
ACTION["TEXT_LINK_MARK_TRANSFORMED"] = "textLinkMarkTransformed";
|
|
141
142
|
ACTION["TOGGLED"] = "toggled";
|
|
143
|
+
ACTION["TRIGGERED"] = "triggered";
|
|
142
144
|
ACTION["DEDUPE_MARKS_TRANSFORMED_V2"] = "dedupeMarksTransformedV2";
|
|
143
145
|
ACTION["NODES_MISSING_CONTENT_TRANSFORMED"] = "nodesMissingContentTransformed";
|
|
144
146
|
ACTION["INDENTATION_MARKS_TRANSFORMED"] = "indentationMarksTransformed";
|
|
@@ -360,6 +362,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
360
362
|
ACTION_SUBJECT["EDITOR_PLUGIN_AI"] = "editorPluginAI";
|
|
361
363
|
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
362
364
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
365
|
+
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
363
366
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
364
367
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
365
368
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -184,6 +184,12 @@ Object.defineProperty(exports, "mentionMessages", {
|
|
|
184
184
|
return _mentions.mentionMessages;
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
+
Object.defineProperty(exports, "nativeEmbedToolbarMessages", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function get() {
|
|
190
|
+
return _nativeEmbedToolbar.nativeEmbedToolbarMessages;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
187
193
|
Object.defineProperty(exports, "panelMessages", {
|
|
188
194
|
enumerable: true,
|
|
189
195
|
get: function get() {
|
|
@@ -327,6 +333,7 @@ var _roleDescription = require("./roleDescription");
|
|
|
327
333
|
var _syncBlock = require("./syncBlock");
|
|
328
334
|
var _limitedMode = require("./limited-mode");
|
|
329
335
|
var _companyHubTextColor = require("./company-hub-text-color");
|
|
336
|
+
var _nativeEmbedToolbar = require("./native-embed-toolbar");
|
|
330
337
|
// Disable no-re-export rule for entry point files
|
|
331
338
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
332
339
|
var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.nativeEmbedToolbarMessages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var nativeEmbedToolbarMessages = exports.nativeEmbedToolbarMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
alwaysShowTitle: {
|
|
10
|
+
id: 'fabric.editor.alwaysShowTitle.non-final',
|
|
11
|
+
defaultMessage: 'Always show title',
|
|
12
|
+
description: 'Label for the toggle to enable or disable the behaviour of always showing the title of the embed.'
|
|
13
|
+
},
|
|
14
|
+
refresh: {
|
|
15
|
+
id: 'fabric.editor.refresh.non-final',
|
|
16
|
+
defaultMessage: 'Refresh',
|
|
17
|
+
description: 'Label for the button to refresh the embedded link.'
|
|
18
|
+
},
|
|
19
|
+
setEmbedType: {
|
|
20
|
+
id: 'fabric.editor.setEmbedType.non-final',
|
|
21
|
+
defaultMessage: 'Set embed type',
|
|
22
|
+
description: 'Label for the button to set the type of embed.'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -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 = "
|
|
22
|
+
var packageVersion = "112.0.1";
|
|
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 = "112.0.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -44,6 +44,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
44
44
|
/** used in @atlassian/editor-referentiality */
|
|
45
45
|
ACTION["DISCONNECTED_TARGET"] = "disconnectedTarget";
|
|
46
46
|
ACTION["DISMISSED"] = "dismissed";
|
|
47
|
+
ACTION["DISPLAYED"] = "displayed";
|
|
47
48
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
48
49
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
49
50
|
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
|
@@ -133,6 +134,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
133
134
|
ACTION["SYNCHRONY_ERROR"] = "synchronyError";
|
|
134
135
|
ACTION["TEXT_LINK_MARK_TRANSFORMED"] = "textLinkMarkTransformed";
|
|
135
136
|
ACTION["TOGGLED"] = "toggled";
|
|
137
|
+
ACTION["TRIGGERED"] = "triggered";
|
|
136
138
|
ACTION["DEDUPE_MARKS_TRANSFORMED_V2"] = "dedupeMarksTransformedV2";
|
|
137
139
|
ACTION["NODES_MISSING_CONTENT_TRANSFORMED"] = "nodesMissingContentTransformed";
|
|
138
140
|
ACTION["INDENTATION_MARKS_TRANSFORMED"] = "indentationMarksTransformed";
|
|
@@ -354,6 +356,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
354
356
|
ACTION_SUBJECT["EDITOR_PLUGIN_AI"] = "editorPluginAI";
|
|
355
357
|
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
356
358
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
359
|
+
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
357
360
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
358
361
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
359
362
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -48,6 +48,7 @@ export { roleDescriptionMessages } from './roleDescription';
|
|
|
48
48
|
export { syncBlockMessages } from './syncBlock';
|
|
49
49
|
export { limitedModeMessages } from './limited-mode';
|
|
50
50
|
export { companyHubTextColorMessages } from './company-hub-text-color';
|
|
51
|
+
export { nativeEmbedToolbarMessages } from './native-embed-toolbar';
|
|
51
52
|
export default defineMessages({
|
|
52
53
|
layoutFixedWidth: {
|
|
53
54
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export const nativeEmbedToolbarMessages = defineMessages({
|
|
3
|
+
alwaysShowTitle: {
|
|
4
|
+
id: 'fabric.editor.alwaysShowTitle.non-final',
|
|
5
|
+
defaultMessage: 'Always show title',
|
|
6
|
+
description: 'Label for the toggle to enable or disable the behaviour of always showing the title of the embed.'
|
|
7
|
+
},
|
|
8
|
+
refresh: {
|
|
9
|
+
id: 'fabric.editor.refresh.non-final',
|
|
10
|
+
defaultMessage: 'Refresh',
|
|
11
|
+
description: 'Label for the button to refresh the embedded link.'
|
|
12
|
+
},
|
|
13
|
+
setEmbedType: {
|
|
14
|
+
id: 'fabric.editor.setEmbedType.non-final',
|
|
15
|
+
defaultMessage: 'Set embed type',
|
|
16
|
+
description: 'Label for the button to set the type of embed.'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -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 = "112.0.1";
|
|
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 = "112.0.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -44,6 +44,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
44
44
|
/** used in @atlassian/editor-referentiality */
|
|
45
45
|
ACTION["DISCONNECTED_TARGET"] = "disconnectedTarget";
|
|
46
46
|
ACTION["DISMISSED"] = "dismissed";
|
|
47
|
+
ACTION["DISPLAYED"] = "displayed";
|
|
47
48
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
48
49
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
49
50
|
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
|
@@ -133,6 +134,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
133
134
|
ACTION["SYNCHRONY_ERROR"] = "synchronyError";
|
|
134
135
|
ACTION["TEXT_LINK_MARK_TRANSFORMED"] = "textLinkMarkTransformed";
|
|
135
136
|
ACTION["TOGGLED"] = "toggled";
|
|
137
|
+
ACTION["TRIGGERED"] = "triggered";
|
|
136
138
|
ACTION["DEDUPE_MARKS_TRANSFORMED_V2"] = "dedupeMarksTransformedV2";
|
|
137
139
|
ACTION["NODES_MISSING_CONTENT_TRANSFORMED"] = "nodesMissingContentTransformed";
|
|
138
140
|
ACTION["INDENTATION_MARKS_TRANSFORMED"] = "indentationMarksTransformed";
|
|
@@ -354,6 +356,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
354
356
|
ACTION_SUBJECT["EDITOR_PLUGIN_AI"] = "editorPluginAI";
|
|
355
357
|
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
356
358
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
359
|
+
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
357
360
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
358
361
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
359
362
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -48,6 +48,7 @@ export { roleDescriptionMessages } from './roleDescription';
|
|
|
48
48
|
export { syncBlockMessages } from './syncBlock';
|
|
49
49
|
export { limitedModeMessages } from './limited-mode';
|
|
50
50
|
export { companyHubTextColorMessages } from './company-hub-text-color';
|
|
51
|
+
export { nativeEmbedToolbarMessages } from './native-embed-toolbar';
|
|
51
52
|
export default defineMessages({
|
|
52
53
|
layoutFixedWidth: {
|
|
53
54
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var nativeEmbedToolbarMessages = defineMessages({
|
|
3
|
+
alwaysShowTitle: {
|
|
4
|
+
id: 'fabric.editor.alwaysShowTitle.non-final',
|
|
5
|
+
defaultMessage: 'Always show title',
|
|
6
|
+
description: 'Label for the toggle to enable or disable the behaviour of always showing the title of the embed.'
|
|
7
|
+
},
|
|
8
|
+
refresh: {
|
|
9
|
+
id: 'fabric.editor.refresh.non-final',
|
|
10
|
+
defaultMessage: 'Refresh',
|
|
11
|
+
description: 'Label for the button to refresh the embedded link.'
|
|
12
|
+
},
|
|
13
|
+
setEmbedType: {
|
|
14
|
+
id: 'fabric.editor.setEmbedType.non-final',
|
|
15
|
+
defaultMessage: 'Set embed type',
|
|
16
|
+
description: 'Label for the button to set the type of embed.'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -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 = "112.0.1";
|
|
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 = "112.0.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -45,6 +45,7 @@ export type { LinkType } from './linking-utils';
|
|
|
45
45
|
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
|
+
export type { AIQuickPromptEventPayload } from './types/ai-quick-prompt-events';
|
|
48
49
|
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
49
50
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
50
51
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { UIAEP } from './utils';
|
|
3
|
+
type AIQuickPromptDisplayedAEP = UIAEP<ACTION.DISPLAYED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
4
|
+
experienceName: string;
|
|
5
|
+
}>;
|
|
6
|
+
type AIQuickPromptDismissedAEP = UIAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
7
|
+
experienceName: string;
|
|
8
|
+
method: string;
|
|
9
|
+
}>;
|
|
10
|
+
type AIQuickPromptTriggeredAEP = UIAEP<ACTION.TRIGGERED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
11
|
+
experienceName: string;
|
|
12
|
+
method: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP;
|
|
15
|
+
export {};
|
|
@@ -43,6 +43,7 @@ export declare enum ACTION {
|
|
|
43
43
|
/** used in @atlassian/editor-referentiality */
|
|
44
44
|
DISCONNECTED_TARGET = "disconnectedTarget",
|
|
45
45
|
DISMISSED = "dismissed",
|
|
46
|
+
DISPLAYED = "displayed",
|
|
46
47
|
DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
|
|
47
48
|
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
48
49
|
DOUBLE_CLICKED = "doubleClicked",
|
|
@@ -132,6 +133,7 @@ export declare enum ACTION {
|
|
|
132
133
|
SYNCHRONY_ERROR = "synchronyError",
|
|
133
134
|
TEXT_LINK_MARK_TRANSFORMED = "textLinkMarkTransformed",
|
|
134
135
|
TOGGLED = "toggled",
|
|
136
|
+
TRIGGERED = "triggered",
|
|
135
137
|
DEDUPE_MARKS_TRANSFORMED_V2 = "dedupeMarksTransformedV2",
|
|
136
138
|
NODES_MISSING_CONTENT_TRANSFORMED = "nodesMissingContentTransformed",
|
|
137
139
|
INDENTATION_MARKS_TRANSFORMED = "indentationMarksTransformed",
|
|
@@ -346,6 +348,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
346
348
|
EDITOR_PLUGIN_AI = "editorPluginAI",
|
|
347
349
|
EDITOR_PLUGIN_SELECTION_EXTENSION = "editorPluginSelectionExtension",
|
|
348
350
|
AI_DEFINITIONS = "aiDefinitions",
|
|
351
|
+
AI_QUICK_PROMPT = "aiQuickPrompt",
|
|
349
352
|
USER_PREFERENCES = "userPreferences",
|
|
350
353
|
ALIGNMENT = "alignment",
|
|
351
354
|
OFFLINE_EDITING = "offlineEditing",
|
|
@@ -9,6 +9,7 @@ import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
|
9
9
|
import type { AIEventPayload } from './ai-events';
|
|
10
10
|
import type { AIInlineSuggestionPayload } from './ai-inline-suggestion-events';
|
|
11
11
|
import type { AIProactiveEventPayload } from './ai-proactive-events';
|
|
12
|
+
import type { AIQuickPromptEventPayload } from './ai-quick-prompt-events';
|
|
12
13
|
import type { AIStreamingEventPayload } from './ai-streaming';
|
|
13
14
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
14
15
|
import type { AlignmentEventPayload } from './alignment-events';
|
|
@@ -66,7 +67,7 @@ export type SimplifiedNode = {
|
|
|
66
67
|
pos: number;
|
|
67
68
|
type: string;
|
|
68
69
|
};
|
|
69
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | 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 | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
70
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | 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 | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
70
71
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
71
72
|
newColor: string;
|
|
72
73
|
previousColor: string;
|
|
@@ -44,6 +44,7 @@ export { roleDescriptionMessages } from './roleDescription';
|
|
|
44
44
|
export { syncBlockMessages } from './syncBlock';
|
|
45
45
|
export { limitedModeMessages } from './limited-mode';
|
|
46
46
|
export { companyHubTextColorMessages } from './company-hub-text-color';
|
|
47
|
+
export { nativeEmbedToolbarMessages } from './native-embed-toolbar';
|
|
47
48
|
declare const _default: {
|
|
48
49
|
layoutFixedWidth: {
|
|
49
50
|
id: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const nativeEmbedToolbarMessages: {
|
|
2
|
+
alwaysShowTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
refresh: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
setEmbedType: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -45,6 +45,7 @@ export type { LinkType } from './linking-utils';
|
|
|
45
45
|
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
|
+
export type { AIQuickPromptEventPayload } from './types/ai-quick-prompt-events';
|
|
48
49
|
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
49
50
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
50
51
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { UIAEP } from './utils';
|
|
3
|
+
type AIQuickPromptDisplayedAEP = UIAEP<ACTION.DISPLAYED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
4
|
+
experienceName: string;
|
|
5
|
+
}>;
|
|
6
|
+
type AIQuickPromptDismissedAEP = UIAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
7
|
+
experienceName: string;
|
|
8
|
+
method: string;
|
|
9
|
+
}>;
|
|
10
|
+
type AIQuickPromptTriggeredAEP = UIAEP<ACTION.TRIGGERED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
11
|
+
experienceName: string;
|
|
12
|
+
method: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP;
|
|
15
|
+
export {};
|
|
@@ -43,6 +43,7 @@ export declare enum ACTION {
|
|
|
43
43
|
/** used in @atlassian/editor-referentiality */
|
|
44
44
|
DISCONNECTED_TARGET = "disconnectedTarget",
|
|
45
45
|
DISMISSED = "dismissed",
|
|
46
|
+
DISPLAYED = "displayed",
|
|
46
47
|
DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
|
|
47
48
|
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
48
49
|
DOUBLE_CLICKED = "doubleClicked",
|
|
@@ -132,6 +133,7 @@ export declare enum ACTION {
|
|
|
132
133
|
SYNCHRONY_ERROR = "synchronyError",
|
|
133
134
|
TEXT_LINK_MARK_TRANSFORMED = "textLinkMarkTransformed",
|
|
134
135
|
TOGGLED = "toggled",
|
|
136
|
+
TRIGGERED = "triggered",
|
|
135
137
|
DEDUPE_MARKS_TRANSFORMED_V2 = "dedupeMarksTransformedV2",
|
|
136
138
|
NODES_MISSING_CONTENT_TRANSFORMED = "nodesMissingContentTransformed",
|
|
137
139
|
INDENTATION_MARKS_TRANSFORMED = "indentationMarksTransformed",
|
|
@@ -346,6 +348,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
346
348
|
EDITOR_PLUGIN_AI = "editorPluginAI",
|
|
347
349
|
EDITOR_PLUGIN_SELECTION_EXTENSION = "editorPluginSelectionExtension",
|
|
348
350
|
AI_DEFINITIONS = "aiDefinitions",
|
|
351
|
+
AI_QUICK_PROMPT = "aiQuickPrompt",
|
|
349
352
|
USER_PREFERENCES = "userPreferences",
|
|
350
353
|
ALIGNMENT = "alignment",
|
|
351
354
|
OFFLINE_EDITING = "offlineEditing",
|
|
@@ -9,6 +9,7 @@ import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
|
9
9
|
import type { AIEventPayload } from './ai-events';
|
|
10
10
|
import type { AIInlineSuggestionPayload } from './ai-inline-suggestion-events';
|
|
11
11
|
import type { AIProactiveEventPayload } from './ai-proactive-events';
|
|
12
|
+
import type { AIQuickPromptEventPayload } from './ai-quick-prompt-events';
|
|
12
13
|
import type { AIStreamingEventPayload } from './ai-streaming';
|
|
13
14
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
14
15
|
import type { AlignmentEventPayload } from './alignment-events';
|
|
@@ -66,7 +67,7 @@ export type SimplifiedNode = {
|
|
|
66
67
|
pos: number;
|
|
67
68
|
type: string;
|
|
68
69
|
};
|
|
69
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | 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 | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
70
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | 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 | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
70
71
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
71
72
|
newColor: string;
|
|
72
73
|
previousColor: string;
|
|
@@ -44,6 +44,7 @@ export { roleDescriptionMessages } from './roleDescription';
|
|
|
44
44
|
export { syncBlockMessages } from './syncBlock';
|
|
45
45
|
export { limitedModeMessages } from './limited-mode';
|
|
46
46
|
export { companyHubTextColorMessages } from './company-hub-text-color';
|
|
47
|
+
export { nativeEmbedToolbarMessages } from './native-embed-toolbar';
|
|
47
48
|
declare const _default: {
|
|
48
49
|
layoutFixedWidth: {
|
|
49
50
|
id: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const nativeEmbedToolbarMessages: {
|
|
2
|
+
alwaysShowTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
refresh: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
setEmbedType: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/package.json
CHANGED