@atlaskit/editor-common 112.0.0 → 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 +19 -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/floating-toolbar/DropdownMenuExtensionItems.js +6 -23
- 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/floating-toolbar/DropdownMenuExtensionItems.js +3 -16
- 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/floating-toolbar/DropdownMenuExtensionItems.js +6 -23
- 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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
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
|
+
|
|
14
|
+
## 112.0.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`617d79798517c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/617d79798517c) -
|
|
19
|
+
Cleanup platform_editor_table_toolbar_icon_ext_fix_exp gate
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 112.0.0
|
|
4
23
|
|
|
5
24
|
### Major 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";
|
|
@@ -8,18 +8,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.DropdownMenuExtensionItems = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
13
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
15
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
14
|
var _extensions = require("../extensions");
|
|
17
15
|
var _utils = require("../utils");
|
|
18
16
|
var _DropdownMenuItem = require("./DropdownMenuItem");
|
|
19
17
|
var _DropdownSeparator = require("./DropdownSeparator");
|
|
20
18
|
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); }
|
|
21
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
19
|
var noop = function noop() {
|
|
24
20
|
return null;
|
|
25
21
|
};
|
|
@@ -59,12 +55,6 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
59
55
|
node = _ref2.node,
|
|
60
56
|
extension = _ref2.extension,
|
|
61
57
|
IconComponent = _ref2.IconComponent;
|
|
62
|
-
var ButtonIcon = item.icon ? (0, _reactLoadable.default)({
|
|
63
|
-
loader: function loader() {
|
|
64
|
-
return resolveExtensionIcon(item.icon);
|
|
65
|
-
},
|
|
66
|
-
loading: noop
|
|
67
|
-
}) : undefined;
|
|
68
58
|
var title = '';
|
|
69
59
|
if (item.label) {
|
|
70
60
|
title = item.label;
|
|
@@ -76,12 +66,7 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
76
66
|
item.disabled = (disabled === null || disabled === void 0 ? void 0 : disabled(item.key)) || false;
|
|
77
67
|
var getIcon = function getIcon() {
|
|
78
68
|
var label = item.label || '';
|
|
79
|
-
|
|
80
|
-
return IconComponent ? /*#__PURE__*/_react.default.createElement(IconComponent, {
|
|
81
|
-
label: label
|
|
82
|
-
}) : undefined;
|
|
83
|
-
}
|
|
84
|
-
return ButtonIcon ? /*#__PURE__*/_react.default.createElement(ButtonIcon, {
|
|
69
|
+
return IconComponent ? /*#__PURE__*/_react.default.createElement(IconComponent, {
|
|
85
70
|
label: label
|
|
86
71
|
}) : undefined;
|
|
87
72
|
};
|
|
@@ -100,7 +85,6 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
100
85
|
};
|
|
101
86
|
};
|
|
102
87
|
var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
103
|
-
var _iconRef$current;
|
|
104
88
|
var item = _ref3.item,
|
|
105
89
|
editorView = _ref3.editorView,
|
|
106
90
|
disabled = _ref3.disabled,
|
|
@@ -109,7 +93,7 @@ var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
|
109
93
|
dropdownOptions = _ref3.dropdownOptions;
|
|
110
94
|
// Use ref to keep icon component stable across renders
|
|
111
95
|
var iconRef = (0, _react.useRef)(null);
|
|
112
|
-
if (!iconRef.current && item.icon
|
|
96
|
+
if (!iconRef.current && item.icon) {
|
|
113
97
|
iconRef.current = (0, _reactLoadable.default)({
|
|
114
98
|
loader: function loader() {
|
|
115
99
|
return resolveExtensionIcon(item.icon);
|
|
@@ -117,14 +101,13 @@ var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
|
117
101
|
loading: noop
|
|
118
102
|
});
|
|
119
103
|
}
|
|
120
|
-
var dropdownItem = convertExtensionToDropdownMenuItem(
|
|
104
|
+
var dropdownItem = convertExtensionToDropdownMenuItem({
|
|
121
105
|
item: item,
|
|
122
106
|
disabled: disabled,
|
|
123
107
|
node: node,
|
|
124
|
-
extension: extension
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} : {}));
|
|
108
|
+
extension: extension,
|
|
109
|
+
IconComponent: iconRef.current
|
|
110
|
+
});
|
|
128
111
|
if (!dropdownItem) {
|
|
129
112
|
return null;
|
|
130
113
|
}
|
|
@@ -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";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
5
4
|
import { nodeToJSON } from '../utils';
|
|
6
5
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
@@ -23,10 +22,6 @@ const convertExtensionToDropdownMenuItem = ({
|
|
|
23
22
|
extension,
|
|
24
23
|
IconComponent
|
|
25
24
|
}) => {
|
|
26
|
-
const ButtonIcon = item.icon ? Loadable({
|
|
27
|
-
loader: () => resolveExtensionIcon(item.icon),
|
|
28
|
-
loading: noop
|
|
29
|
-
}) : undefined;
|
|
30
25
|
let title = '';
|
|
31
26
|
if (item.label) {
|
|
32
27
|
title = item.label;
|
|
@@ -38,12 +33,7 @@ const convertExtensionToDropdownMenuItem = ({
|
|
|
38
33
|
item.disabled = (disabled === null || disabled === void 0 ? void 0 : disabled(item.key)) || false;
|
|
39
34
|
const getIcon = () => {
|
|
40
35
|
const label = item.label || '';
|
|
41
|
-
|
|
42
|
-
return IconComponent ? /*#__PURE__*/React.createElement(IconComponent, {
|
|
43
|
-
label: label
|
|
44
|
-
}) : undefined;
|
|
45
|
-
}
|
|
46
|
-
return ButtonIcon ? /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
36
|
+
return IconComponent ? /*#__PURE__*/React.createElement(IconComponent, {
|
|
47
37
|
label: label
|
|
48
38
|
}) : undefined;
|
|
49
39
|
};
|
|
@@ -69,10 +59,9 @@ const DropdownMenuExtensionItem = ({
|
|
|
69
59
|
extension,
|
|
70
60
|
dropdownOptions
|
|
71
61
|
}) => {
|
|
72
|
-
var _iconRef$current;
|
|
73
62
|
// Use ref to keep icon component stable across renders
|
|
74
63
|
const iconRef = useRef(null);
|
|
75
|
-
if (!iconRef.current && item.icon
|
|
64
|
+
if (!iconRef.current && item.icon) {
|
|
76
65
|
iconRef.current = Loadable({
|
|
77
66
|
loader: () => resolveExtensionIcon(item.icon),
|
|
78
67
|
loading: noop
|
|
@@ -83,9 +72,7 @@ const DropdownMenuExtensionItem = ({
|
|
|
83
72
|
disabled,
|
|
84
73
|
node,
|
|
85
74
|
extension,
|
|
86
|
-
|
|
87
|
-
IconComponent: (_iconRef$current = iconRef.current) !== null && _iconRef$current !== void 0 ? _iconRef$current : undefined
|
|
88
|
-
} : {})
|
|
75
|
+
IconComponent: iconRef.current
|
|
89
76
|
});
|
|
90
77
|
if (!dropdownItem) {
|
|
91
78
|
return null;
|
|
@@ -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";
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
8
5
|
import Loadable from 'react-loadable';
|
|
9
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
6
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
11
7
|
import { nodeToJSON } from '../utils';
|
|
12
8
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
@@ -50,12 +46,6 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
50
46
|
node = _ref2.node,
|
|
51
47
|
extension = _ref2.extension,
|
|
52
48
|
IconComponent = _ref2.IconComponent;
|
|
53
|
-
var ButtonIcon = item.icon ? Loadable({
|
|
54
|
-
loader: function loader() {
|
|
55
|
-
return resolveExtensionIcon(item.icon);
|
|
56
|
-
},
|
|
57
|
-
loading: noop
|
|
58
|
-
}) : undefined;
|
|
59
49
|
var title = '';
|
|
60
50
|
if (item.label) {
|
|
61
51
|
title = item.label;
|
|
@@ -67,12 +57,7 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
67
57
|
item.disabled = (disabled === null || disabled === void 0 ? void 0 : disabled(item.key)) || false;
|
|
68
58
|
var getIcon = function getIcon() {
|
|
69
59
|
var label = item.label || '';
|
|
70
|
-
|
|
71
|
-
return IconComponent ? /*#__PURE__*/React.createElement(IconComponent, {
|
|
72
|
-
label: label
|
|
73
|
-
}) : undefined;
|
|
74
|
-
}
|
|
75
|
-
return ButtonIcon ? /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
60
|
+
return IconComponent ? /*#__PURE__*/React.createElement(IconComponent, {
|
|
76
61
|
label: label
|
|
77
62
|
}) : undefined;
|
|
78
63
|
};
|
|
@@ -91,7 +76,6 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
91
76
|
};
|
|
92
77
|
};
|
|
93
78
|
var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
94
|
-
var _iconRef$current;
|
|
95
79
|
var item = _ref3.item,
|
|
96
80
|
editorView = _ref3.editorView,
|
|
97
81
|
disabled = _ref3.disabled,
|
|
@@ -100,7 +84,7 @@ var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
|
100
84
|
dropdownOptions = _ref3.dropdownOptions;
|
|
101
85
|
// Use ref to keep icon component stable across renders
|
|
102
86
|
var iconRef = useRef(null);
|
|
103
|
-
if (!iconRef.current && item.icon
|
|
87
|
+
if (!iconRef.current && item.icon) {
|
|
104
88
|
iconRef.current = Loadable({
|
|
105
89
|
loader: function loader() {
|
|
106
90
|
return resolveExtensionIcon(item.icon);
|
|
@@ -108,14 +92,13 @@ var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
|
108
92
|
loading: noop
|
|
109
93
|
});
|
|
110
94
|
}
|
|
111
|
-
var dropdownItem = convertExtensionToDropdownMenuItem(
|
|
95
|
+
var dropdownItem = convertExtensionToDropdownMenuItem({
|
|
112
96
|
item: item,
|
|
113
97
|
disabled: disabled,
|
|
114
98
|
node: node,
|
|
115
|
-
extension: extension
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} : {}));
|
|
99
|
+
extension: extension,
|
|
100
|
+
IconComponent: iconRef.current
|
|
101
|
+
});
|
|
119
102
|
if (!dropdownItem) {
|
|
120
103
|
return null;
|
|
121
104
|
}
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.
|
|
3
|
+
"version": "112.1.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/"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/task-decision": "^19.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.2.0",
|
|
84
84
|
"@atlaskit/theme": "^22.0.0",
|
|
85
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
85
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
86
86
|
"@atlaskit/tokens": "^11.1.0",
|
|
87
87
|
"@atlaskit/tooltip": "^20.14.0",
|
|
88
88
|
"@atlaskit/width-detector": "^5.0.0",
|