@atlaskit/editor-common 118.12.0 → 119.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 +57 -0
- package/dist/cjs/extensions/buildMenuItem.js +7 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/keys.js +97 -13
- package/dist/cjs/quick-insert/rank.js +6 -5
- package/dist/cjs/transaction-agent-attribution.js +8 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensions/buildMenuItem.js +7 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/keys.js +96 -12
- package/dist/es2019/quick-insert/rank.js +26 -3
- package/dist/es2019/transaction-agent-attribution.js +2 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensions/buildMenuItem.js +7 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/keys.js +96 -12
- package/dist/esm/quick-insert/rank.js +6 -4
- package/dist/esm/transaction-agent-attribution.js +2 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/quick-insert-events.d.ts +15 -34
- package/dist/types/collab/agent-remote-edit-review.d.ts +14 -0
- package/dist/types/extensions/types/extension-manifest.d.ts +9 -0
- package/dist/types/extensions/types/utils.d.ts +2 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +3 -0
- package/dist/types/quick-insert/keys.d.ts +96 -12
- package/dist/types/quick-insert/rank.d.ts +7 -39
- package/dist/types/transaction-agent-attribution.d.ts +6 -0
- package/package.json +1 -1
- package/transaction-agent-attribution/package.json +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 119.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4273da2e1a648`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4273da2e1a648) -
|
|
8
|
+
Register native Quick Insert items behind `platform_editor_slash_command`.
|
|
9
|
+
- [`07647ca19d174`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/07647ca19d174) -
|
|
10
|
+
Tag agent-authored streaming update and commit transactions with attribution metadata.
|
|
11
|
+
|
|
12
|
+
Read the attribution attached to a transaction using the exported metadata key:
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import {
|
|
16
|
+
AGENT_ATTRIBUTION_META,
|
|
17
|
+
type AgentAttributionTransactionMeta,
|
|
18
|
+
} from '@atlaskit/editor-common/transaction-agent-attribution';
|
|
19
|
+
|
|
20
|
+
const attribution = transaction.getMeta(AGENT_ATTRIBUTION_META) as
|
|
21
|
+
| AgentAttributionTransactionMeta
|
|
22
|
+
| undefined;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 119.0.0
|
|
26
|
+
|
|
27
|
+
### Major Changes
|
|
28
|
+
|
|
29
|
+
- [`bb37742539a7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bb37742539a7d) -
|
|
30
|
+
Rename Quick Insert category analytics from app counts to macro counts, add reusable extension app
|
|
31
|
+
identity, and track internal, ecosystem, and all macro/app counts for externally provided items
|
|
32
|
+
behind `platform_editor_slash_app_category_analytics`. GUID-only app identities are grouped as
|
|
33
|
+
`unknown`.
|
|
34
|
+
|
|
35
|
+
Breaking change: `CategoryInformation` and `QuickInsertInformationAttributes` from
|
|
36
|
+
`@atlaskit/editor-common/analytics/types/quick-insert-events` have changed shape. Update usages to
|
|
37
|
+
the new fields (`internalMacroCount`, `internalAppCount`, `internalAppMacroMax`,
|
|
38
|
+
`ecosystemMacroCount`, `ecosystemAppCount`, `ecosystemAppMacroMax`, `allMacroCount`,
|
|
39
|
+
`allAppCount`, and `allAppMacroMax`) and add the `allCategories` aggregate. Remove references to
|
|
40
|
+
the removed `appCount` and `appMacros` fields. `ExtensionApp.ownership` has been replaced by
|
|
41
|
+
`ExtensionApp.source` (`internal` or `ecosystem`); update app metadata producers accordingly.
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- [`ddb1f3da1e991`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddb1f3da1e991) -
|
|
46
|
+
Track acceptance rate for backend-persisted agent edits. These arrive as remote collab steps
|
|
47
|
+
rather than frontend-streamed transformations, so they previously started no analytics session and
|
|
48
|
+
were absent from the metric. They now reuse the existing survival definition, and are recorded
|
|
49
|
+
only on the requesting user's client.
|
|
50
|
+
|
|
51
|
+
Gated by `platform_editor_agent_be_streaming`, which controls whether remote agent steps are
|
|
52
|
+
annotated at all, and by the agent type allowlist in
|
|
53
|
+
`platform_editor_backend_review_moment_agent_types`, which defaults to empty. Recording cannot
|
|
54
|
+
occur unless both permit it.
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Updated dependencies
|
|
59
|
+
|
|
3
60
|
## 118.12.0
|
|
4
61
|
|
|
5
62
|
### Minor Changes
|
|
@@ -6,17 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.buildMenuItem = buildMenuItem;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
9
10
|
var _manifestHelpers = require("./manifest-helpers");
|
|
10
11
|
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; }
|
|
11
12
|
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; }
|
|
12
13
|
function buildMenuItem(manifest, extensionModule) {
|
|
14
|
+
var _ref, _extensionModule$app;
|
|
13
15
|
var title = extensionModule.title || manifest.title;
|
|
14
16
|
var key = "".concat(manifest.key, ":").concat(extensionModule.key);
|
|
15
17
|
var node = (0, _manifestHelpers.buildAction)(extensionModule.action, manifest);
|
|
16
18
|
if (!node) {
|
|
17
19
|
throw new Error("Couldn't find any action for ".concat(title, " (").concat(key, ")"));
|
|
18
20
|
}
|
|
19
|
-
return _objectSpread(_objectSpread({
|
|
21
|
+
return _objectSpread(_objectSpread(_objectSpread({}, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_app_category_analytics') ? {
|
|
22
|
+
app: (_ref = (_extensionModule$app = extensionModule.app) !== null && _extensionModule$app !== void 0 ? _extensionModule$app : manifest.app) !== null && _ref !== void 0 ? _ref : {
|
|
23
|
+
key: manifest.key
|
|
24
|
+
}
|
|
25
|
+
} : {}), {}, {
|
|
20
26
|
key: key,
|
|
21
27
|
title: title,
|
|
22
28
|
extensionType: manifest.type,
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "
|
|
31
|
+
var packageVersion = "119.0.0";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getBlockTemplateMenuItem = exports.WARNING_PANEL_MENU_ITEM = exports.VIEW_ALL_ELEMENTS_MENU_ITEM = exports.UNORDERED_LIST_MENU_ITEM = exports.TEXT_FORMATTING_SECTION = exports.TABLE_MENU_ITEM = exports.SUCCESS_PANEL_MENU_ITEM = exports.STRUCTURE_SECTION = exports.STATUS_MENU_ITEM = exports.ROVO_SECTION = exports.RECOMMENDED_SECTION = exports.OTHER_SECTION = exports.ORDERED_LIST_MENU_ITEM = exports.NOTE_PANEL_MENU_ITEM = exports.MENU = exports.MEDIA_SECTION = exports.MEDIA_INSERT_MENU_ITEM = exports.LOOM_MENU_ITEM = exports.JIRA_WORK_ITEMS_MENU_ITEM = exports.INFO_PANEL_MENU_ITEM = exports.HYPERLINK_MENU_ITEM = exports.ERROR_PANEL_MENU_ITEM = exports.EMOJI_MENU_ITEM = exports.EMBED_SECTION = exports.DATE_MENU_ITEM = exports.DATA_AND_CHARTS_SECTION = exports.CUSTOM_PANEL_MENU_ITEM = exports.BLOCK_TEMPLATES_SECTION = exports.ASSETS_MENU_ITEM = exports.ASK_ROVO_MENU_ITEM = void 0;
|
|
6
|
+
exports.getBlockTemplateMenuItem = exports.WARNING_PANEL_MENU_ITEM = exports.VIEW_ALL_ELEMENTS_MENU_ITEM = exports.UNORDERED_LIST_MENU_ITEM = exports.TWO_COLUMNS_LAYOUT_MENU_ITEM = exports.THREE_COLUMNS_LAYOUT_MENU_ITEM = exports.TEXT_FORMATTING_SECTION = exports.TABLE_MENU_ITEM = exports.SYNCED_BLOCK_MENU_ITEM = exports.SUCCESS_PANEL_MENU_ITEM = exports.STRUCTURE_SECTION = exports.STATUS_MENU_ITEM = exports.RULE_MENU_ITEM = exports.ROVO_SECTION = exports.RECOMMENDED_SECTION = exports.PLACEHOLDER_TEXT_MENU_ITEM = exports.OTHER_SECTION = exports.ORDERED_LIST_MENU_ITEM = exports.NOTE_PANEL_MENU_ITEM = exports.MENU = exports.MENTION_MENU_ITEM = exports.MEDIA_SECTION = exports.MEDIA_INSERT_MENU_ITEM = exports.LOOM_MENU_ITEM = exports.JIRA_WORK_ITEMS_MENU_ITEM = exports.INFO_PANEL_MENU_ITEM = exports.HYPERLINK_MENU_ITEM = exports.HELP_DIALOG_MENU_ITEM = exports.HEADING_6_MENU_ITEM = exports.HEADING_5_MENU_ITEM = exports.HEADING_4_MENU_ITEM = exports.HEADING_3_MENU_ITEM = exports.HEADING_2_MENU_ITEM = exports.HEADING_1_MENU_ITEM = exports.FOUR_COLUMNS_LAYOUT_MENU_ITEM = exports.FIVE_COLUMNS_LAYOUT_MENU_ITEM = exports.EXPAND_MENU_ITEM = exports.ERROR_PANEL_MENU_ITEM = exports.EMOJI_MENU_ITEM = exports.EMBED_SECTION = exports.DECISION_MENU_ITEM = exports.DATE_MENU_ITEM = exports.DATA_AND_CHARTS_SECTION = exports.CUSTOM_PANEL_MENU_ITEM = exports.CODE_BLOCK_MENU_ITEM = exports.BLOCK_TEMPLATES_SECTION = exports.BLOCKQUOTE_MENU_ITEM = exports.ASSETS_MENU_ITEM = exports.ASK_ROVO_MENU_ITEM = exports.AI_IMAGE_GENERATION_MENU_ITEM = exports.ACTION_MENU_ITEM = void 0;
|
|
7
7
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
8
8
|
var MENU = exports.MENU = {
|
|
9
9
|
key: 'quick-insert-menu',
|
|
@@ -49,10 +49,34 @@ var VIEW_ALL_ELEMENTS_MENU_ITEM = exports.VIEW_ALL_ELEMENTS_MENU_ITEM = {
|
|
|
49
49
|
key: 'quick-insert-view-all-elements-menu-item',
|
|
50
50
|
type: 'menu-item'
|
|
51
51
|
};
|
|
52
|
+
var ACTION_MENU_ITEM = exports.ACTION_MENU_ITEM = {
|
|
53
|
+
key: 'quick-insert-action-menu-item',
|
|
54
|
+
type: 'menu-item'
|
|
55
|
+
};
|
|
52
56
|
var TABLE_MENU_ITEM = exports.TABLE_MENU_ITEM = {
|
|
53
57
|
key: 'quick-insert-table-menu-item',
|
|
54
58
|
type: 'menu-item'
|
|
55
59
|
};
|
|
60
|
+
var STATUS_MENU_ITEM = exports.STATUS_MENU_ITEM = {
|
|
61
|
+
key: 'quick-insert-status-menu-item',
|
|
62
|
+
type: 'menu-item'
|
|
63
|
+
};
|
|
64
|
+
var DATE_MENU_ITEM = exports.DATE_MENU_ITEM = {
|
|
65
|
+
key: 'quick-insert-date-menu-item',
|
|
66
|
+
type: 'menu-item'
|
|
67
|
+
};
|
|
68
|
+
var SYNCED_BLOCK_MENU_ITEM = exports.SYNCED_BLOCK_MENU_ITEM = {
|
|
69
|
+
key: 'quick-insert-synced-block-menu-item',
|
|
70
|
+
type: 'menu-item'
|
|
71
|
+
};
|
|
72
|
+
var EXPAND_MENU_ITEM = exports.EXPAND_MENU_ITEM = {
|
|
73
|
+
key: 'quick-insert-expand-menu-item',
|
|
74
|
+
type: 'menu-item'
|
|
75
|
+
};
|
|
76
|
+
var DECISION_MENU_ITEM = exports.DECISION_MENU_ITEM = {
|
|
77
|
+
key: 'quick-insert-decision-menu-item',
|
|
78
|
+
type: 'menu-item'
|
|
79
|
+
};
|
|
56
80
|
var INFO_PANEL_MENU_ITEM = exports.INFO_PANEL_MENU_ITEM = {
|
|
57
81
|
key: 'quick-insert-info-panel-menu-item',
|
|
58
82
|
type: 'menu-item'
|
|
@@ -77,36 +101,92 @@ var CUSTOM_PANEL_MENU_ITEM = exports.CUSTOM_PANEL_MENU_ITEM = {
|
|
|
77
101
|
key: 'quick-insert-custom-panel-menu-item',
|
|
78
102
|
type: 'menu-item'
|
|
79
103
|
};
|
|
80
|
-
var
|
|
81
|
-
key: 'quick-insert-
|
|
104
|
+
var TWO_COLUMNS_LAYOUT_MENU_ITEM = exports.TWO_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
105
|
+
key: 'quick-insert-two-columns-layout-menu-item',
|
|
82
106
|
type: 'menu-item'
|
|
83
107
|
};
|
|
84
|
-
var
|
|
85
|
-
key: 'quick-insert-
|
|
108
|
+
var THREE_COLUMNS_LAYOUT_MENU_ITEM = exports.THREE_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
109
|
+
key: 'quick-insert-three-columns-layout-menu-item',
|
|
110
|
+
type: 'menu-item'
|
|
111
|
+
};
|
|
112
|
+
var FOUR_COLUMNS_LAYOUT_MENU_ITEM = exports.FOUR_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
113
|
+
key: 'quick-insert-four-columns-layout-menu-item',
|
|
114
|
+
type: 'menu-item'
|
|
115
|
+
};
|
|
116
|
+
var FIVE_COLUMNS_LAYOUT_MENU_ITEM = exports.FIVE_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
117
|
+
key: 'quick-insert-five-columns-layout-menu-item',
|
|
118
|
+
type: 'menu-item'
|
|
119
|
+
};
|
|
120
|
+
var MEDIA_INSERT_MENU_ITEM = exports.MEDIA_INSERT_MENU_ITEM = {
|
|
121
|
+
key: 'quick-insert-media-insert-menu-item',
|
|
86
122
|
type: 'menu-item'
|
|
87
123
|
};
|
|
88
124
|
var HYPERLINK_MENU_ITEM = exports.HYPERLINK_MENU_ITEM = {
|
|
89
125
|
key: 'quick-insert-hyperlink-menu-item',
|
|
90
126
|
type: 'menu-item'
|
|
91
127
|
};
|
|
128
|
+
var EMOJI_MENU_ITEM = exports.EMOJI_MENU_ITEM = {
|
|
129
|
+
key: 'quick-insert-emoji-menu-item',
|
|
130
|
+
type: 'menu-item'
|
|
131
|
+
};
|
|
92
132
|
var LOOM_MENU_ITEM = exports.LOOM_MENU_ITEM = {
|
|
93
133
|
key: 'quick-insert-loom-menu-item',
|
|
94
134
|
type: 'menu-item'
|
|
95
135
|
};
|
|
96
|
-
var
|
|
97
|
-
key: 'quick-insert-
|
|
136
|
+
var MENTION_MENU_ITEM = exports.MENTION_MENU_ITEM = {
|
|
137
|
+
key: 'quick-insert-mention-menu-item',
|
|
98
138
|
type: 'menu-item'
|
|
99
139
|
};
|
|
100
|
-
var
|
|
101
|
-
key: 'quick-insert-
|
|
140
|
+
var AI_IMAGE_GENERATION_MENU_ITEM = exports.AI_IMAGE_GENERATION_MENU_ITEM = {
|
|
141
|
+
key: 'quick-insert-ai-image-generation-menu-item',
|
|
102
142
|
type: 'menu-item'
|
|
103
143
|
};
|
|
104
|
-
var
|
|
105
|
-
key: 'quick-insert-
|
|
144
|
+
var HEADING_1_MENU_ITEM = exports.HEADING_1_MENU_ITEM = {
|
|
145
|
+
key: 'quick-insert-heading-1-menu-item',
|
|
106
146
|
type: 'menu-item'
|
|
107
147
|
};
|
|
108
|
-
var
|
|
109
|
-
key: 'quick-insert-
|
|
148
|
+
var HEADING_2_MENU_ITEM = exports.HEADING_2_MENU_ITEM = {
|
|
149
|
+
key: 'quick-insert-heading-2-menu-item',
|
|
150
|
+
type: 'menu-item'
|
|
151
|
+
};
|
|
152
|
+
var HEADING_3_MENU_ITEM = exports.HEADING_3_MENU_ITEM = {
|
|
153
|
+
key: 'quick-insert-heading-3-menu-item',
|
|
154
|
+
type: 'menu-item'
|
|
155
|
+
};
|
|
156
|
+
var HEADING_4_MENU_ITEM = exports.HEADING_4_MENU_ITEM = {
|
|
157
|
+
key: 'quick-insert-heading-4-menu-item',
|
|
158
|
+
type: 'menu-item'
|
|
159
|
+
};
|
|
160
|
+
var HEADING_5_MENU_ITEM = exports.HEADING_5_MENU_ITEM = {
|
|
161
|
+
key: 'quick-insert-heading-5-menu-item',
|
|
162
|
+
type: 'menu-item'
|
|
163
|
+
};
|
|
164
|
+
var HEADING_6_MENU_ITEM = exports.HEADING_6_MENU_ITEM = {
|
|
165
|
+
key: 'quick-insert-heading-6-menu-item',
|
|
166
|
+
type: 'menu-item'
|
|
167
|
+
};
|
|
168
|
+
var BLOCKQUOTE_MENU_ITEM = exports.BLOCKQUOTE_MENU_ITEM = {
|
|
169
|
+
key: 'quick-insert-blockquote-menu-item',
|
|
170
|
+
type: 'menu-item'
|
|
171
|
+
};
|
|
172
|
+
var CODE_BLOCK_MENU_ITEM = exports.CODE_BLOCK_MENU_ITEM = {
|
|
173
|
+
key: 'quick-insert-code-block-menu-item',
|
|
174
|
+
type: 'menu-item'
|
|
175
|
+
};
|
|
176
|
+
var RULE_MENU_ITEM = exports.RULE_MENU_ITEM = {
|
|
177
|
+
key: 'quick-insert-rule-menu-item',
|
|
178
|
+
type: 'menu-item'
|
|
179
|
+
};
|
|
180
|
+
var PLACEHOLDER_TEXT_MENU_ITEM = exports.PLACEHOLDER_TEXT_MENU_ITEM = {
|
|
181
|
+
key: 'quick-insert-placeholder-text-menu-item',
|
|
182
|
+
type: 'menu-item'
|
|
183
|
+
};
|
|
184
|
+
var UNORDERED_LIST_MENU_ITEM = exports.UNORDERED_LIST_MENU_ITEM = {
|
|
185
|
+
key: 'quick-insert-unordered-list-menu-item',
|
|
186
|
+
type: 'menu-item'
|
|
187
|
+
};
|
|
188
|
+
var ORDERED_LIST_MENU_ITEM = exports.ORDERED_LIST_MENU_ITEM = {
|
|
189
|
+
key: 'quick-insert-ordered-list-menu-item',
|
|
110
190
|
type: 'menu-item'
|
|
111
191
|
};
|
|
112
192
|
var ASK_ROVO_MENU_ITEM = exports.ASK_ROVO_MENU_ITEM = {
|
|
@@ -121,6 +201,10 @@ var ASSETS_MENU_ITEM = exports.ASSETS_MENU_ITEM = {
|
|
|
121
201
|
key: 'quick-insert-assets-menu-item',
|
|
122
202
|
type: 'menu-item'
|
|
123
203
|
};
|
|
204
|
+
var HELP_DIALOG_MENU_ITEM = exports.HELP_DIALOG_MENU_ITEM = {
|
|
205
|
+
key: 'quick-insert-help-dialog-menu-item',
|
|
206
|
+
type: 'menu-item'
|
|
207
|
+
};
|
|
124
208
|
var getBlockTemplateMenuItem = exports.getBlockTemplateMenuItem = function getBlockTemplateMenuItem(id) {
|
|
125
209
|
return {
|
|
126
210
|
key: "quick-insert-block-template-".concat(id),
|
|
@@ -4,16 +4,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TEXT_FORMATTING_SECTION_RANK = exports.STRUCTURE_SECTION_RANK = exports.ROVO_SECTION_RANK = exports.QUICK_INSERT_MENU_RANK = exports.MEDIA_SECTION_RANK = exports.EXTENSION_ITEM_RANK = exports.DATA_AND_CHARTS_SECTION_RANK = exports.CATEGORY_VIEW_MORE_RANK = void 0;
|
|
7
|
+
exports.TEXT_FORMATTING_SECTION_RANK = exports.STRUCTURE_SECTION_RANK = exports.ROVO_SECTION_RANK = exports.QUICK_INSERT_MENU_RANK = exports.OTHER_SECTION_RANK = exports.MEDIA_SECTION_RANK = exports.EXTENSION_ITEM_RANK = exports.DATA_AND_CHARTS_SECTION_RANK = exports.CATEGORY_VIEW_MORE_RANK = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _keys = require("./keys");
|
|
10
|
+
var _STRUCTURE_SECTION_RA, _TEXT_FORMATTING_SECT;
|
|
10
11
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
11
|
-
|
|
12
12
|
var QUICK_INSERT_MENU_RANK = exports.QUICK_INSERT_MENU_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.RECOMMENDED_SECTION.key, 0), _keys.STRUCTURE_SECTION.key, 1), _keys.MEDIA_SECTION.key, 2), _keys.EMBED_SECTION.key, 3), _keys.TEXT_FORMATTING_SECTION.key, 4), _keys.ROVO_SECTION.key, 5), _keys.DATA_AND_CHARTS_SECTION.key, 6), _keys.BLOCK_TEMPLATES_SECTION.key, 7), _keys.OTHER_SECTION.key, 8);
|
|
13
|
-
var STRUCTURE_SECTION_RANK = exports.STRUCTURE_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
14
|
-
var MEDIA_SECTION_RANK = exports.MEDIA_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.MEDIA_INSERT_MENU_ITEM.key, 100), _keys.HYPERLINK_MENU_ITEM.key, 200), _keys.EMOJI_MENU_ITEM.key, 300), _keys.LOOM_MENU_ITEM.key, 400);
|
|
15
|
-
var TEXT_FORMATTING_SECTION_RANK = exports.TEXT_FORMATTING_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
13
|
+
var STRUCTURE_SECTION_RANK = exports.STRUCTURE_SECTION_RANK = (_STRUCTURE_SECTION_RA = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_STRUCTURE_SECTION_RA, _keys.ACTION_MENU_ITEM.key, 100), _keys.TABLE_MENU_ITEM.key, 200), _keys.STATUS_MENU_ITEM.key, 300), _keys.DATE_MENU_ITEM.key, 400), _keys.SYNCED_BLOCK_MENU_ITEM.key, 500), _keys.EXPAND_MENU_ITEM.key, 600), _keys.CODE_BLOCK_MENU_ITEM.key, 700), _keys.DECISION_MENU_ITEM.key, 800), _keys.INFO_PANEL_MENU_ITEM.key, 900), _keys.NOTE_PANEL_MENU_ITEM.key, 1000), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_STRUCTURE_SECTION_RA, _keys.SUCCESS_PANEL_MENU_ITEM.key, 1100), _keys.WARNING_PANEL_MENU_ITEM.key, 1200), _keys.ERROR_PANEL_MENU_ITEM.key, 1300), _keys.CUSTOM_PANEL_MENU_ITEM.key, 1400), _keys.TWO_COLUMNS_LAYOUT_MENU_ITEM.key, 1600), _keys.THREE_COLUMNS_LAYOUT_MENU_ITEM.key, 1700), _keys.FOUR_COLUMNS_LAYOUT_MENU_ITEM.key, 1800), _keys.FIVE_COLUMNS_LAYOUT_MENU_ITEM.key, 1900));
|
|
14
|
+
var MEDIA_SECTION_RANK = exports.MEDIA_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.MEDIA_INSERT_MENU_ITEM.key, 100), _keys.HYPERLINK_MENU_ITEM.key, 200), _keys.EMOJI_MENU_ITEM.key, 300), _keys.LOOM_MENU_ITEM.key, 400), _keys.MENTION_MENU_ITEM.key, 500), _keys.AI_IMAGE_GENERATION_MENU_ITEM.key, 600);
|
|
15
|
+
var TEXT_FORMATTING_SECTION_RANK = exports.TEXT_FORMATTING_SECTION_RANK = (_TEXT_FORMATTING_SECT = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_TEXT_FORMATTING_SECT, _keys.HEADING_1_MENU_ITEM.key, 100), _keys.HEADING_2_MENU_ITEM.key, 200), _keys.HEADING_3_MENU_ITEM.key, 300), _keys.HEADING_4_MENU_ITEM.key, 400), _keys.HEADING_5_MENU_ITEM.key, 500), _keys.HEADING_6_MENU_ITEM.key, 600), _keys.BLOCKQUOTE_MENU_ITEM.key, 700), _keys.RULE_MENU_ITEM.key, 800), _keys.PLACEHOLDER_TEXT_MENU_ITEM.key, 900), _keys.UNORDERED_LIST_MENU_ITEM.key, 1100), (0, _defineProperty2.default)(_TEXT_FORMATTING_SECT, _keys.ORDERED_LIST_MENU_ITEM.key, 1200));
|
|
16
16
|
var ROVO_SECTION_RANK = exports.ROVO_SECTION_RANK = (0, _defineProperty2.default)({}, _keys.ASK_ROVO_MENU_ITEM.key, 100);
|
|
17
17
|
var DATA_AND_CHARTS_SECTION_RANK = exports.DATA_AND_CHARTS_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.JIRA_WORK_ITEMS_MENU_ITEM.key, 300), _keys.ASSETS_MENU_ITEM.key, 500);
|
|
18
|
+
var OTHER_SECTION_RANK = exports.OTHER_SECTION_RANK = (0, _defineProperty2.default)({}, _keys.HELP_DIALOG_MENU_ITEM.key, 100);
|
|
18
19
|
var EXTENSION_ITEM_RANK = exports.EXTENSION_ITEM_RANK = 1500;
|
|
19
20
|
var CATEGORY_VIEW_MORE_RANK = exports.CATEGORY_VIEW_MORE_RANK = Number.MAX_SAFE_INTEGER;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AGENT_ATTRIBUTION_META = void 0;
|
|
7
|
+
/** Transaction metadata used to attribute an editor change to an agent. */
|
|
8
|
+
var AGENT_ATTRIBUTION_META = exports.AGENT_ATTRIBUTION_META = 'agentAttribution';
|
|
@@ -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 = "119.0.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
1
2
|
import { buildAction } from './manifest-helpers';
|
|
2
3
|
export function buildMenuItem(manifest, extensionModule) {
|
|
4
|
+
var _ref, _extensionModule$app;
|
|
3
5
|
const title = extensionModule.title || manifest.title;
|
|
4
6
|
const key = `${manifest.key}:${extensionModule.key}`;
|
|
5
7
|
const node = buildAction(extensionModule.action, manifest);
|
|
@@ -7,6 +9,11 @@ export function buildMenuItem(manifest, extensionModule) {
|
|
|
7
9
|
throw new Error(`Couldn't find any action for ${title} (${key})`);
|
|
8
10
|
}
|
|
9
11
|
return {
|
|
12
|
+
...(isExperimentEnabled('platform_editor_slash_app_category_analytics') ? {
|
|
13
|
+
app: (_ref = (_extensionModule$app = extensionModule.app) !== null && _extensionModule$app !== void 0 ? _extensionModule$app : manifest.app) !== null && _ref !== void 0 ? _ref : {
|
|
14
|
+
key: manifest.key
|
|
15
|
+
}
|
|
16
|
+
} : {}),
|
|
10
17
|
key,
|
|
11
18
|
title,
|
|
12
19
|
extensionType: manifest.type,
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "119.0.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -43,10 +43,34 @@ export const VIEW_ALL_ELEMENTS_MENU_ITEM = {
|
|
|
43
43
|
key: 'quick-insert-view-all-elements-menu-item',
|
|
44
44
|
type: 'menu-item'
|
|
45
45
|
};
|
|
46
|
+
export const ACTION_MENU_ITEM = {
|
|
47
|
+
key: 'quick-insert-action-menu-item',
|
|
48
|
+
type: 'menu-item'
|
|
49
|
+
};
|
|
46
50
|
export const TABLE_MENU_ITEM = {
|
|
47
51
|
key: 'quick-insert-table-menu-item',
|
|
48
52
|
type: 'menu-item'
|
|
49
53
|
};
|
|
54
|
+
export const STATUS_MENU_ITEM = {
|
|
55
|
+
key: 'quick-insert-status-menu-item',
|
|
56
|
+
type: 'menu-item'
|
|
57
|
+
};
|
|
58
|
+
export const DATE_MENU_ITEM = {
|
|
59
|
+
key: 'quick-insert-date-menu-item',
|
|
60
|
+
type: 'menu-item'
|
|
61
|
+
};
|
|
62
|
+
export const SYNCED_BLOCK_MENU_ITEM = {
|
|
63
|
+
key: 'quick-insert-synced-block-menu-item',
|
|
64
|
+
type: 'menu-item'
|
|
65
|
+
};
|
|
66
|
+
export const EXPAND_MENU_ITEM = {
|
|
67
|
+
key: 'quick-insert-expand-menu-item',
|
|
68
|
+
type: 'menu-item'
|
|
69
|
+
};
|
|
70
|
+
export const DECISION_MENU_ITEM = {
|
|
71
|
+
key: 'quick-insert-decision-menu-item',
|
|
72
|
+
type: 'menu-item'
|
|
73
|
+
};
|
|
50
74
|
export const INFO_PANEL_MENU_ITEM = {
|
|
51
75
|
key: 'quick-insert-info-panel-menu-item',
|
|
52
76
|
type: 'menu-item'
|
|
@@ -71,36 +95,92 @@ export const CUSTOM_PANEL_MENU_ITEM = {
|
|
|
71
95
|
key: 'quick-insert-custom-panel-menu-item',
|
|
72
96
|
type: 'menu-item'
|
|
73
97
|
};
|
|
74
|
-
export const
|
|
75
|
-
key: 'quick-insert-
|
|
98
|
+
export const TWO_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
99
|
+
key: 'quick-insert-two-columns-layout-menu-item',
|
|
76
100
|
type: 'menu-item'
|
|
77
101
|
};
|
|
78
|
-
export const
|
|
79
|
-
key: 'quick-insert-
|
|
102
|
+
export const THREE_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
103
|
+
key: 'quick-insert-three-columns-layout-menu-item',
|
|
104
|
+
type: 'menu-item'
|
|
105
|
+
};
|
|
106
|
+
export const FOUR_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
107
|
+
key: 'quick-insert-four-columns-layout-menu-item',
|
|
108
|
+
type: 'menu-item'
|
|
109
|
+
};
|
|
110
|
+
export const FIVE_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
111
|
+
key: 'quick-insert-five-columns-layout-menu-item',
|
|
112
|
+
type: 'menu-item'
|
|
113
|
+
};
|
|
114
|
+
export const MEDIA_INSERT_MENU_ITEM = {
|
|
115
|
+
key: 'quick-insert-media-insert-menu-item',
|
|
80
116
|
type: 'menu-item'
|
|
81
117
|
};
|
|
82
118
|
export const HYPERLINK_MENU_ITEM = {
|
|
83
119
|
key: 'quick-insert-hyperlink-menu-item',
|
|
84
120
|
type: 'menu-item'
|
|
85
121
|
};
|
|
122
|
+
export const EMOJI_MENU_ITEM = {
|
|
123
|
+
key: 'quick-insert-emoji-menu-item',
|
|
124
|
+
type: 'menu-item'
|
|
125
|
+
};
|
|
86
126
|
export const LOOM_MENU_ITEM = {
|
|
87
127
|
key: 'quick-insert-loom-menu-item',
|
|
88
128
|
type: 'menu-item'
|
|
89
129
|
};
|
|
90
|
-
export const
|
|
91
|
-
key: 'quick-insert-
|
|
130
|
+
export const MENTION_MENU_ITEM = {
|
|
131
|
+
key: 'quick-insert-mention-menu-item',
|
|
92
132
|
type: 'menu-item'
|
|
93
133
|
};
|
|
94
|
-
export const
|
|
95
|
-
key: 'quick-insert-
|
|
134
|
+
export const AI_IMAGE_GENERATION_MENU_ITEM = {
|
|
135
|
+
key: 'quick-insert-ai-image-generation-menu-item',
|
|
96
136
|
type: 'menu-item'
|
|
97
137
|
};
|
|
98
|
-
export const
|
|
99
|
-
key: 'quick-insert-
|
|
138
|
+
export const HEADING_1_MENU_ITEM = {
|
|
139
|
+
key: 'quick-insert-heading-1-menu-item',
|
|
100
140
|
type: 'menu-item'
|
|
101
141
|
};
|
|
102
|
-
export const
|
|
103
|
-
key: 'quick-insert-
|
|
142
|
+
export const HEADING_2_MENU_ITEM = {
|
|
143
|
+
key: 'quick-insert-heading-2-menu-item',
|
|
144
|
+
type: 'menu-item'
|
|
145
|
+
};
|
|
146
|
+
export const HEADING_3_MENU_ITEM = {
|
|
147
|
+
key: 'quick-insert-heading-3-menu-item',
|
|
148
|
+
type: 'menu-item'
|
|
149
|
+
};
|
|
150
|
+
export const HEADING_4_MENU_ITEM = {
|
|
151
|
+
key: 'quick-insert-heading-4-menu-item',
|
|
152
|
+
type: 'menu-item'
|
|
153
|
+
};
|
|
154
|
+
export const HEADING_5_MENU_ITEM = {
|
|
155
|
+
key: 'quick-insert-heading-5-menu-item',
|
|
156
|
+
type: 'menu-item'
|
|
157
|
+
};
|
|
158
|
+
export const HEADING_6_MENU_ITEM = {
|
|
159
|
+
key: 'quick-insert-heading-6-menu-item',
|
|
160
|
+
type: 'menu-item'
|
|
161
|
+
};
|
|
162
|
+
export const BLOCKQUOTE_MENU_ITEM = {
|
|
163
|
+
key: 'quick-insert-blockquote-menu-item',
|
|
164
|
+
type: 'menu-item'
|
|
165
|
+
};
|
|
166
|
+
export const CODE_BLOCK_MENU_ITEM = {
|
|
167
|
+
key: 'quick-insert-code-block-menu-item',
|
|
168
|
+
type: 'menu-item'
|
|
169
|
+
};
|
|
170
|
+
export const RULE_MENU_ITEM = {
|
|
171
|
+
key: 'quick-insert-rule-menu-item',
|
|
172
|
+
type: 'menu-item'
|
|
173
|
+
};
|
|
174
|
+
export const PLACEHOLDER_TEXT_MENU_ITEM = {
|
|
175
|
+
key: 'quick-insert-placeholder-text-menu-item',
|
|
176
|
+
type: 'menu-item'
|
|
177
|
+
};
|
|
178
|
+
export const UNORDERED_LIST_MENU_ITEM = {
|
|
179
|
+
key: 'quick-insert-unordered-list-menu-item',
|
|
180
|
+
type: 'menu-item'
|
|
181
|
+
};
|
|
182
|
+
export const ORDERED_LIST_MENU_ITEM = {
|
|
183
|
+
key: 'quick-insert-ordered-list-menu-item',
|
|
104
184
|
type: 'menu-item'
|
|
105
185
|
};
|
|
106
186
|
export const ASK_ROVO_MENU_ITEM = {
|
|
@@ -115,6 +195,10 @@ export const ASSETS_MENU_ITEM = {
|
|
|
115
195
|
key: 'quick-insert-assets-menu-item',
|
|
116
196
|
type: 'menu-item'
|
|
117
197
|
};
|
|
198
|
+
export const HELP_DIALOG_MENU_ITEM = {
|
|
199
|
+
key: 'quick-insert-help-dialog-menu-item',
|
|
200
|
+
type: 'menu-item'
|
|
201
|
+
};
|
|
118
202
|
export const getBlockTemplateMenuItem = id => ({
|
|
119
203
|
key: `quick-insert-block-template-${id}`,
|
|
120
204
|
type: 'menu-item'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
|
-
import { ASK_ROVO_MENU_ITEM, ASSETS_MENU_ITEM, BLOCK_TEMPLATES_SECTION, CUSTOM_PANEL_MENU_ITEM, DATE_MENU_ITEM, DATA_AND_CHARTS_SECTION,
|
|
2
|
+
import { ACTION_MENU_ITEM, AI_IMAGE_GENERATION_MENU_ITEM, ASK_ROVO_MENU_ITEM, ASSETS_MENU_ITEM, BLOCKQUOTE_MENU_ITEM, BLOCK_TEMPLATES_SECTION, CODE_BLOCK_MENU_ITEM, CUSTOM_PANEL_MENU_ITEM, DATE_MENU_ITEM, DATA_AND_CHARTS_SECTION, DECISION_MENU_ITEM, EMBED_SECTION, EMOJI_MENU_ITEM, ERROR_PANEL_MENU_ITEM, EXPAND_MENU_ITEM, FIVE_COLUMNS_LAYOUT_MENU_ITEM, FOUR_COLUMNS_LAYOUT_MENU_ITEM, HEADING_1_MENU_ITEM, HEADING_2_MENU_ITEM, HEADING_3_MENU_ITEM, HEADING_4_MENU_ITEM, HEADING_5_MENU_ITEM, HEADING_6_MENU_ITEM, HELP_DIALOG_MENU_ITEM, HYPERLINK_MENU_ITEM, INFO_PANEL_MENU_ITEM, JIRA_WORK_ITEMS_MENU_ITEM, LOOM_MENU_ITEM, MEDIA_INSERT_MENU_ITEM, MEDIA_SECTION, MENTION_MENU_ITEM, NOTE_PANEL_MENU_ITEM, ORDERED_LIST_MENU_ITEM, OTHER_SECTION, PLACEHOLDER_TEXT_MENU_ITEM, RECOMMENDED_SECTION, ROVO_SECTION, RULE_MENU_ITEM, STATUS_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, SYNCED_BLOCK_MENU_ITEM, TABLE_MENU_ITEM, TEXT_FORMATTING_SECTION, THREE_COLUMNS_LAYOUT_MENU_ITEM, TWO_COLUMNS_LAYOUT_MENU_ITEM, UNORDERED_LIST_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from './keys';
|
|
3
3
|
export const QUICK_INSERT_MENU_RANK = {
|
|
4
4
|
[RECOMMENDED_SECTION.key]: 0,
|
|
5
5
|
[STRUCTURE_SECTION.key]: 1,
|
|
@@ -12,23 +12,43 @@ export const QUICK_INSERT_MENU_RANK = {
|
|
|
12
12
|
[OTHER_SECTION.key]: 8
|
|
13
13
|
};
|
|
14
14
|
export const STRUCTURE_SECTION_RANK = {
|
|
15
|
+
[ACTION_MENU_ITEM.key]: 100,
|
|
15
16
|
[TABLE_MENU_ITEM.key]: 200,
|
|
16
17
|
[STATUS_MENU_ITEM.key]: 300,
|
|
17
18
|
[DATE_MENU_ITEM.key]: 400,
|
|
19
|
+
[SYNCED_BLOCK_MENU_ITEM.key]: 500,
|
|
20
|
+
[EXPAND_MENU_ITEM.key]: 600,
|
|
21
|
+
[CODE_BLOCK_MENU_ITEM.key]: 700,
|
|
22
|
+
[DECISION_MENU_ITEM.key]: 800,
|
|
18
23
|
[INFO_PANEL_MENU_ITEM.key]: 900,
|
|
19
24
|
[NOTE_PANEL_MENU_ITEM.key]: 1000,
|
|
20
25
|
[SUCCESS_PANEL_MENU_ITEM.key]: 1100,
|
|
21
26
|
[WARNING_PANEL_MENU_ITEM.key]: 1200,
|
|
22
27
|
[ERROR_PANEL_MENU_ITEM.key]: 1300,
|
|
23
|
-
[CUSTOM_PANEL_MENU_ITEM.key]: 1400
|
|
28
|
+
[CUSTOM_PANEL_MENU_ITEM.key]: 1400,
|
|
29
|
+
[TWO_COLUMNS_LAYOUT_MENU_ITEM.key]: 1600,
|
|
30
|
+
[THREE_COLUMNS_LAYOUT_MENU_ITEM.key]: 1700,
|
|
31
|
+
[FOUR_COLUMNS_LAYOUT_MENU_ITEM.key]: 1800,
|
|
32
|
+
[FIVE_COLUMNS_LAYOUT_MENU_ITEM.key]: 1900
|
|
24
33
|
};
|
|
25
34
|
export const MEDIA_SECTION_RANK = {
|
|
26
35
|
[MEDIA_INSERT_MENU_ITEM.key]: 100,
|
|
27
36
|
[HYPERLINK_MENU_ITEM.key]: 200,
|
|
28
37
|
[EMOJI_MENU_ITEM.key]: 300,
|
|
29
|
-
[LOOM_MENU_ITEM.key]: 400
|
|
38
|
+
[LOOM_MENU_ITEM.key]: 400,
|
|
39
|
+
[MENTION_MENU_ITEM.key]: 500,
|
|
40
|
+
[AI_IMAGE_GENERATION_MENU_ITEM.key]: 600
|
|
30
41
|
};
|
|
31
42
|
export const TEXT_FORMATTING_SECTION_RANK = {
|
|
43
|
+
[HEADING_1_MENU_ITEM.key]: 100,
|
|
44
|
+
[HEADING_2_MENU_ITEM.key]: 200,
|
|
45
|
+
[HEADING_3_MENU_ITEM.key]: 300,
|
|
46
|
+
[HEADING_4_MENU_ITEM.key]: 400,
|
|
47
|
+
[HEADING_5_MENU_ITEM.key]: 500,
|
|
48
|
+
[HEADING_6_MENU_ITEM.key]: 600,
|
|
49
|
+
[BLOCKQUOTE_MENU_ITEM.key]: 700,
|
|
50
|
+
[RULE_MENU_ITEM.key]: 800,
|
|
51
|
+
[PLACEHOLDER_TEXT_MENU_ITEM.key]: 900,
|
|
32
52
|
[UNORDERED_LIST_MENU_ITEM.key]: 1100,
|
|
33
53
|
[ORDERED_LIST_MENU_ITEM.key]: 1200
|
|
34
54
|
};
|
|
@@ -39,5 +59,8 @@ export const DATA_AND_CHARTS_SECTION_RANK = {
|
|
|
39
59
|
[JIRA_WORK_ITEMS_MENU_ITEM.key]: 300,
|
|
40
60
|
[ASSETS_MENU_ITEM.key]: 500
|
|
41
61
|
};
|
|
62
|
+
export const OTHER_SECTION_RANK = {
|
|
63
|
+
[HELP_DIALOG_MENU_ITEM.key]: 100
|
|
64
|
+
};
|
|
42
65
|
export const EXTENSION_ITEM_RANK = 1500;
|
|
43
66
|
export const CATEGORY_VIEW_MORE_RANK = Number.MAX_SAFE_INTEGER;
|
|
@@ -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 = "119.0.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
5
|
import { buildAction } from './manifest-helpers';
|
|
5
6
|
export function buildMenuItem(manifest, extensionModule) {
|
|
7
|
+
var _ref, _extensionModule$app;
|
|
6
8
|
var title = extensionModule.title || manifest.title;
|
|
7
9
|
var key = "".concat(manifest.key, ":").concat(extensionModule.key);
|
|
8
10
|
var node = buildAction(extensionModule.action, manifest);
|
|
9
11
|
if (!node) {
|
|
10
12
|
throw new Error("Couldn't find any action for ".concat(title, " (").concat(key, ")"));
|
|
11
13
|
}
|
|
12
|
-
return _objectSpread(_objectSpread({
|
|
14
|
+
return _objectSpread(_objectSpread(_objectSpread({}, isExperimentEnabled('platform_editor_slash_app_category_analytics') ? {
|
|
15
|
+
app: (_ref = (_extensionModule$app = extensionModule.app) !== null && _extensionModule$app !== void 0 ? _extensionModule$app : manifest.app) !== null && _ref !== void 0 ? _ref : {
|
|
16
|
+
key: manifest.key
|
|
17
|
+
}
|
|
18
|
+
} : {}), {}, {
|
|
13
19
|
key: key,
|
|
14
20
|
title: title,
|
|
15
21
|
extensionType: manifest.type,
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "
|
|
23
|
+
var packageVersion = "119.0.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -43,10 +43,34 @@ export var VIEW_ALL_ELEMENTS_MENU_ITEM = {
|
|
|
43
43
|
key: 'quick-insert-view-all-elements-menu-item',
|
|
44
44
|
type: 'menu-item'
|
|
45
45
|
};
|
|
46
|
+
export var ACTION_MENU_ITEM = {
|
|
47
|
+
key: 'quick-insert-action-menu-item',
|
|
48
|
+
type: 'menu-item'
|
|
49
|
+
};
|
|
46
50
|
export var TABLE_MENU_ITEM = {
|
|
47
51
|
key: 'quick-insert-table-menu-item',
|
|
48
52
|
type: 'menu-item'
|
|
49
53
|
};
|
|
54
|
+
export var STATUS_MENU_ITEM = {
|
|
55
|
+
key: 'quick-insert-status-menu-item',
|
|
56
|
+
type: 'menu-item'
|
|
57
|
+
};
|
|
58
|
+
export var DATE_MENU_ITEM = {
|
|
59
|
+
key: 'quick-insert-date-menu-item',
|
|
60
|
+
type: 'menu-item'
|
|
61
|
+
};
|
|
62
|
+
export var SYNCED_BLOCK_MENU_ITEM = {
|
|
63
|
+
key: 'quick-insert-synced-block-menu-item',
|
|
64
|
+
type: 'menu-item'
|
|
65
|
+
};
|
|
66
|
+
export var EXPAND_MENU_ITEM = {
|
|
67
|
+
key: 'quick-insert-expand-menu-item',
|
|
68
|
+
type: 'menu-item'
|
|
69
|
+
};
|
|
70
|
+
export var DECISION_MENU_ITEM = {
|
|
71
|
+
key: 'quick-insert-decision-menu-item',
|
|
72
|
+
type: 'menu-item'
|
|
73
|
+
};
|
|
50
74
|
export var INFO_PANEL_MENU_ITEM = {
|
|
51
75
|
key: 'quick-insert-info-panel-menu-item',
|
|
52
76
|
type: 'menu-item'
|
|
@@ -71,36 +95,92 @@ export var CUSTOM_PANEL_MENU_ITEM = {
|
|
|
71
95
|
key: 'quick-insert-custom-panel-menu-item',
|
|
72
96
|
type: 'menu-item'
|
|
73
97
|
};
|
|
74
|
-
export var
|
|
75
|
-
key: 'quick-insert-
|
|
98
|
+
export var TWO_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
99
|
+
key: 'quick-insert-two-columns-layout-menu-item',
|
|
76
100
|
type: 'menu-item'
|
|
77
101
|
};
|
|
78
|
-
export var
|
|
79
|
-
key: 'quick-insert-
|
|
102
|
+
export var THREE_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
103
|
+
key: 'quick-insert-three-columns-layout-menu-item',
|
|
104
|
+
type: 'menu-item'
|
|
105
|
+
};
|
|
106
|
+
export var FOUR_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
107
|
+
key: 'quick-insert-four-columns-layout-menu-item',
|
|
108
|
+
type: 'menu-item'
|
|
109
|
+
};
|
|
110
|
+
export var FIVE_COLUMNS_LAYOUT_MENU_ITEM = {
|
|
111
|
+
key: 'quick-insert-five-columns-layout-menu-item',
|
|
112
|
+
type: 'menu-item'
|
|
113
|
+
};
|
|
114
|
+
export var MEDIA_INSERT_MENU_ITEM = {
|
|
115
|
+
key: 'quick-insert-media-insert-menu-item',
|
|
80
116
|
type: 'menu-item'
|
|
81
117
|
};
|
|
82
118
|
export var HYPERLINK_MENU_ITEM = {
|
|
83
119
|
key: 'quick-insert-hyperlink-menu-item',
|
|
84
120
|
type: 'menu-item'
|
|
85
121
|
};
|
|
122
|
+
export var EMOJI_MENU_ITEM = {
|
|
123
|
+
key: 'quick-insert-emoji-menu-item',
|
|
124
|
+
type: 'menu-item'
|
|
125
|
+
};
|
|
86
126
|
export var LOOM_MENU_ITEM = {
|
|
87
127
|
key: 'quick-insert-loom-menu-item',
|
|
88
128
|
type: 'menu-item'
|
|
89
129
|
};
|
|
90
|
-
export var
|
|
91
|
-
key: 'quick-insert-
|
|
130
|
+
export var MENTION_MENU_ITEM = {
|
|
131
|
+
key: 'quick-insert-mention-menu-item',
|
|
92
132
|
type: 'menu-item'
|
|
93
133
|
};
|
|
94
|
-
export var
|
|
95
|
-
key: 'quick-insert-
|
|
134
|
+
export var AI_IMAGE_GENERATION_MENU_ITEM = {
|
|
135
|
+
key: 'quick-insert-ai-image-generation-menu-item',
|
|
96
136
|
type: 'menu-item'
|
|
97
137
|
};
|
|
98
|
-
export var
|
|
99
|
-
key: 'quick-insert-
|
|
138
|
+
export var HEADING_1_MENU_ITEM = {
|
|
139
|
+
key: 'quick-insert-heading-1-menu-item',
|
|
100
140
|
type: 'menu-item'
|
|
101
141
|
};
|
|
102
|
-
export var
|
|
103
|
-
key: 'quick-insert-
|
|
142
|
+
export var HEADING_2_MENU_ITEM = {
|
|
143
|
+
key: 'quick-insert-heading-2-menu-item',
|
|
144
|
+
type: 'menu-item'
|
|
145
|
+
};
|
|
146
|
+
export var HEADING_3_MENU_ITEM = {
|
|
147
|
+
key: 'quick-insert-heading-3-menu-item',
|
|
148
|
+
type: 'menu-item'
|
|
149
|
+
};
|
|
150
|
+
export var HEADING_4_MENU_ITEM = {
|
|
151
|
+
key: 'quick-insert-heading-4-menu-item',
|
|
152
|
+
type: 'menu-item'
|
|
153
|
+
};
|
|
154
|
+
export var HEADING_5_MENU_ITEM = {
|
|
155
|
+
key: 'quick-insert-heading-5-menu-item',
|
|
156
|
+
type: 'menu-item'
|
|
157
|
+
};
|
|
158
|
+
export var HEADING_6_MENU_ITEM = {
|
|
159
|
+
key: 'quick-insert-heading-6-menu-item',
|
|
160
|
+
type: 'menu-item'
|
|
161
|
+
};
|
|
162
|
+
export var BLOCKQUOTE_MENU_ITEM = {
|
|
163
|
+
key: 'quick-insert-blockquote-menu-item',
|
|
164
|
+
type: 'menu-item'
|
|
165
|
+
};
|
|
166
|
+
export var CODE_BLOCK_MENU_ITEM = {
|
|
167
|
+
key: 'quick-insert-code-block-menu-item',
|
|
168
|
+
type: 'menu-item'
|
|
169
|
+
};
|
|
170
|
+
export var RULE_MENU_ITEM = {
|
|
171
|
+
key: 'quick-insert-rule-menu-item',
|
|
172
|
+
type: 'menu-item'
|
|
173
|
+
};
|
|
174
|
+
export var PLACEHOLDER_TEXT_MENU_ITEM = {
|
|
175
|
+
key: 'quick-insert-placeholder-text-menu-item',
|
|
176
|
+
type: 'menu-item'
|
|
177
|
+
};
|
|
178
|
+
export var UNORDERED_LIST_MENU_ITEM = {
|
|
179
|
+
key: 'quick-insert-unordered-list-menu-item',
|
|
180
|
+
type: 'menu-item'
|
|
181
|
+
};
|
|
182
|
+
export var ORDERED_LIST_MENU_ITEM = {
|
|
183
|
+
key: 'quick-insert-ordered-list-menu-item',
|
|
104
184
|
type: 'menu-item'
|
|
105
185
|
};
|
|
106
186
|
export var ASK_ROVO_MENU_ITEM = {
|
|
@@ -115,6 +195,10 @@ export var ASSETS_MENU_ITEM = {
|
|
|
115
195
|
key: 'quick-insert-assets-menu-item',
|
|
116
196
|
type: 'menu-item'
|
|
117
197
|
};
|
|
198
|
+
export var HELP_DIALOG_MENU_ITEM = {
|
|
199
|
+
key: 'quick-insert-help-dialog-menu-item',
|
|
200
|
+
type: 'menu-item'
|
|
201
|
+
};
|
|
118
202
|
export var getBlockTemplateMenuItem = function getBlockTemplateMenuItem(id) {
|
|
119
203
|
return {
|
|
120
204
|
key: "quick-insert-block-template-".concat(id),
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
var _STRUCTURE_SECTION_RA, _TEXT_FORMATTING_SECT;
|
|
2
3
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
3
|
-
import { ASK_ROVO_MENU_ITEM, ASSETS_MENU_ITEM, BLOCK_TEMPLATES_SECTION, CUSTOM_PANEL_MENU_ITEM, DATE_MENU_ITEM, DATA_AND_CHARTS_SECTION,
|
|
4
|
+
import { ACTION_MENU_ITEM, AI_IMAGE_GENERATION_MENU_ITEM, ASK_ROVO_MENU_ITEM, ASSETS_MENU_ITEM, BLOCKQUOTE_MENU_ITEM, BLOCK_TEMPLATES_SECTION, CODE_BLOCK_MENU_ITEM, CUSTOM_PANEL_MENU_ITEM, DATE_MENU_ITEM, DATA_AND_CHARTS_SECTION, DECISION_MENU_ITEM, EMBED_SECTION, EMOJI_MENU_ITEM, ERROR_PANEL_MENU_ITEM, EXPAND_MENU_ITEM, FIVE_COLUMNS_LAYOUT_MENU_ITEM, FOUR_COLUMNS_LAYOUT_MENU_ITEM, HEADING_1_MENU_ITEM, HEADING_2_MENU_ITEM, HEADING_3_MENU_ITEM, HEADING_4_MENU_ITEM, HEADING_5_MENU_ITEM, HEADING_6_MENU_ITEM, HELP_DIALOG_MENU_ITEM, HYPERLINK_MENU_ITEM, INFO_PANEL_MENU_ITEM, JIRA_WORK_ITEMS_MENU_ITEM, LOOM_MENU_ITEM, MEDIA_INSERT_MENU_ITEM, MEDIA_SECTION, MENTION_MENU_ITEM, NOTE_PANEL_MENU_ITEM, ORDERED_LIST_MENU_ITEM, OTHER_SECTION, PLACEHOLDER_TEXT_MENU_ITEM, RECOMMENDED_SECTION, ROVO_SECTION, RULE_MENU_ITEM, STATUS_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, SYNCED_BLOCK_MENU_ITEM, TABLE_MENU_ITEM, TEXT_FORMATTING_SECTION, THREE_COLUMNS_LAYOUT_MENU_ITEM, TWO_COLUMNS_LAYOUT_MENU_ITEM, UNORDERED_LIST_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from './keys';
|
|
4
5
|
export var QUICK_INSERT_MENU_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RECOMMENDED_SECTION.key, 0), STRUCTURE_SECTION.key, 1), MEDIA_SECTION.key, 2), EMBED_SECTION.key, 3), TEXT_FORMATTING_SECTION.key, 4), ROVO_SECTION.key, 5), DATA_AND_CHARTS_SECTION.key, 6), BLOCK_TEMPLATES_SECTION.key, 7), OTHER_SECTION.key, 8);
|
|
5
|
-
export var STRUCTURE_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
6
|
-
export var MEDIA_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MEDIA_INSERT_MENU_ITEM.key, 100), HYPERLINK_MENU_ITEM.key, 200), EMOJI_MENU_ITEM.key, 300), LOOM_MENU_ITEM.key, 400);
|
|
7
|
-
export var TEXT_FORMATTING_SECTION_RANK = _defineProperty(_defineProperty(
|
|
6
|
+
export var STRUCTURE_SECTION_RANK = (_STRUCTURE_SECTION_RA = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_STRUCTURE_SECTION_RA, ACTION_MENU_ITEM.key, 100), TABLE_MENU_ITEM.key, 200), STATUS_MENU_ITEM.key, 300), DATE_MENU_ITEM.key, 400), SYNCED_BLOCK_MENU_ITEM.key, 500), EXPAND_MENU_ITEM.key, 600), CODE_BLOCK_MENU_ITEM.key, 700), DECISION_MENU_ITEM.key, 800), INFO_PANEL_MENU_ITEM.key, 900), NOTE_PANEL_MENU_ITEM.key, 1000), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_STRUCTURE_SECTION_RA, SUCCESS_PANEL_MENU_ITEM.key, 1100), WARNING_PANEL_MENU_ITEM.key, 1200), ERROR_PANEL_MENU_ITEM.key, 1300), CUSTOM_PANEL_MENU_ITEM.key, 1400), TWO_COLUMNS_LAYOUT_MENU_ITEM.key, 1600), THREE_COLUMNS_LAYOUT_MENU_ITEM.key, 1700), FOUR_COLUMNS_LAYOUT_MENU_ITEM.key, 1800), FIVE_COLUMNS_LAYOUT_MENU_ITEM.key, 1900));
|
|
7
|
+
export var MEDIA_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MEDIA_INSERT_MENU_ITEM.key, 100), HYPERLINK_MENU_ITEM.key, 200), EMOJI_MENU_ITEM.key, 300), LOOM_MENU_ITEM.key, 400), MENTION_MENU_ITEM.key, 500), AI_IMAGE_GENERATION_MENU_ITEM.key, 600);
|
|
8
|
+
export var TEXT_FORMATTING_SECTION_RANK = (_TEXT_FORMATTING_SECT = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_TEXT_FORMATTING_SECT, HEADING_1_MENU_ITEM.key, 100), HEADING_2_MENU_ITEM.key, 200), HEADING_3_MENU_ITEM.key, 300), HEADING_4_MENU_ITEM.key, 400), HEADING_5_MENU_ITEM.key, 500), HEADING_6_MENU_ITEM.key, 600), BLOCKQUOTE_MENU_ITEM.key, 700), RULE_MENU_ITEM.key, 800), PLACEHOLDER_TEXT_MENU_ITEM.key, 900), UNORDERED_LIST_MENU_ITEM.key, 1100), _defineProperty(_TEXT_FORMATTING_SECT, ORDERED_LIST_MENU_ITEM.key, 1200));
|
|
8
9
|
export var ROVO_SECTION_RANK = _defineProperty({}, ASK_ROVO_MENU_ITEM.key, 100);
|
|
9
10
|
export var DATA_AND_CHARTS_SECTION_RANK = _defineProperty(_defineProperty({}, JIRA_WORK_ITEMS_MENU_ITEM.key, 300), ASSETS_MENU_ITEM.key, 500);
|
|
11
|
+
export var OTHER_SECTION_RANK = _defineProperty({}, HELP_DIALOG_MENU_ITEM.key, 100);
|
|
10
12
|
export var EXTENSION_ITEM_RANK = 1500;
|
|
11
13
|
export var CATEGORY_VIEW_MORE_RANK = Number.MAX_SAFE_INTEGER;
|
|
@@ -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 = "119.0.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,41 +1,22 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { OperationalAEP } from './utils';
|
|
3
|
-
type CategoryInformation = {
|
|
4
|
-
|
|
3
|
+
export type CategoryInformation = {
|
|
4
|
+
internalMacroCount: number;
|
|
5
|
+
internalAppCount: number;
|
|
6
|
+
internalAppMacroMax: number;
|
|
7
|
+
ecosystemMacroCount: number;
|
|
8
|
+
ecosystemAppCount: number;
|
|
9
|
+
ecosystemAppMacroMax: number;
|
|
10
|
+
allMacroCount: number;
|
|
11
|
+
allAppCount: number;
|
|
12
|
+
allAppMacroMax: number;
|
|
5
13
|
};
|
|
14
|
+
export type CategoryKey = 'blockTemplates' | 'dataAndCharts' | 'embed' | 'media' | 'other' | 'rovo' | 'structure' | 'textFormatting';
|
|
15
|
+
export type LegacyCategoryKey = 'admin' | 'ai' | 'block-templates' | 'communication' | 'confluence-content' | 'data-and-charts' | 'development' | 'embed' | 'external-content' | 'formatting' | 'media' | 'navigation' | 'other' | 'reporting' | 'skills' | 'structure' | 'text-formatting' | 'uncategorized' | 'visuals';
|
|
6
16
|
export type QuickInsertInformationAttributes = {
|
|
7
|
-
category:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
embed: CategoryInformation;
|
|
11
|
-
media: CategoryInformation;
|
|
12
|
-
other: CategoryInformation;
|
|
13
|
-
rovo: CategoryInformation;
|
|
14
|
-
structure: CategoryInformation;
|
|
15
|
-
textFormatting: CategoryInformation;
|
|
16
|
-
};
|
|
17
|
-
legacyCategory: {
|
|
18
|
-
admin: CategoryInformation;
|
|
19
|
-
ai: CategoryInformation;
|
|
20
|
-
'block-templates': CategoryInformation;
|
|
21
|
-
communication: CategoryInformation;
|
|
22
|
-
'confluence-content': CategoryInformation;
|
|
23
|
-
'data-and-charts': CategoryInformation;
|
|
24
|
-
development: CategoryInformation;
|
|
25
|
-
embed: CategoryInformation;
|
|
26
|
-
'external-content': CategoryInformation;
|
|
27
|
-
formatting: CategoryInformation;
|
|
28
|
-
media: CategoryInformation;
|
|
29
|
-
navigation: CategoryInformation;
|
|
30
|
-
other: CategoryInformation;
|
|
31
|
-
reporting: CategoryInformation;
|
|
32
|
-
skills: CategoryInformation;
|
|
33
|
-
structure: CategoryInformation;
|
|
34
|
-
'text-formatting': CategoryInformation;
|
|
35
|
-
uncategorized: CategoryInformation;
|
|
36
|
-
visuals: CategoryInformation;
|
|
37
|
-
};
|
|
17
|
+
category: Record<CategoryKey, CategoryInformation>;
|
|
18
|
+
legacyCategory: Record<LegacyCategoryKey, CategoryInformation>;
|
|
19
|
+
allCategories: CategoryInformation;
|
|
38
20
|
};
|
|
39
21
|
export type QuickInsertInformationAEP = OperationalAEP<ACTION.QUICK_INSERT_INFORMATION, ACTION_SUBJECT.QUICK_INSERT, undefined, QuickInsertInformationAttributes>;
|
|
40
22
|
export type QuickInsertInformationEventPayload = QuickInsertInformationAEP;
|
|
41
|
-
export {};
|
|
@@ -67,6 +67,20 @@ export interface AgentRemoteEditReviewData {
|
|
|
67
67
|
* waiting for the idle debounce. `false`/absent ⇒ rely on the debounce.
|
|
68
68
|
*/
|
|
69
69
|
complete?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the local client is the one that requested this agent edit, resolved by
|
|
72
|
+
* matching `actorUserId` against the local collab participant's AAID.
|
|
73
|
+
*
|
|
74
|
+
* Agent steps are broadcast to every collaborator, so anything that must happen
|
|
75
|
+
* exactly once per edit (notably acceptance-rate analytics) has to run on a single
|
|
76
|
+
* client. `false` when the local user is not the requester, and also when either AAID
|
|
77
|
+
* is unavailable: an unattributable batch would otherwise emit one event per connected
|
|
78
|
+
* client, and silently inflating a metric is worse than a known gap.
|
|
79
|
+
*
|
|
80
|
+
* Optional so producers predating this field stay valid; `undefined` is treated as
|
|
81
|
+
* "not the requester", keeping the fail-closed behaviour.
|
|
82
|
+
*/
|
|
83
|
+
isLocalUserRequester?: boolean;
|
|
70
84
|
/**
|
|
71
85
|
* The coarse reviewable segments derived from the batch — one per edited
|
|
72
86
|
* top-level region, with closed whole-node slices. Appended verbatim to
|
|
@@ -26,8 +26,16 @@ export type ExtensionModuleActionObject<T extends Parameters = Parameters> = {
|
|
|
26
26
|
export type MaybeADFEntity = MaybeESModule<ADFEntity | Array<ADFEntity> | void>;
|
|
27
27
|
export type ExtensionModuleActionHandler = (extensionAPI: ExtensionAPI) => Promise<MaybeADFEntity>;
|
|
28
28
|
export type ExtensionModuleAction<T extends Parameters = Parameters> = ExtensionModuleActionObject<T> | ExtensionModuleActionHandler;
|
|
29
|
+
/** Identifies the app contributing an extension manifest or module. */
|
|
30
|
+
export type ExtensionApp = {
|
|
31
|
+
/** Stable, non-localized key shared by every extension contributed by the app. */
|
|
32
|
+
key: string;
|
|
33
|
+
/** Provenance of the extension contribution. Omit when provenance cannot be determined. */
|
|
34
|
+
source?: 'internal' | 'ecosystem';
|
|
35
|
+
};
|
|
29
36
|
export type ExtensionModule<T extends Parameters = Parameters> = {
|
|
30
37
|
action: ExtensionModuleAction<T>;
|
|
38
|
+
app?: ExtensionApp;
|
|
31
39
|
categories?: string[];
|
|
32
40
|
description?: string;
|
|
33
41
|
featured?: boolean;
|
|
@@ -103,6 +111,7 @@ export type ExtensionDeprecationStatus = {
|
|
|
103
111
|
message?: string | React.ReactNode;
|
|
104
112
|
};
|
|
105
113
|
export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
114
|
+
app?: ExtensionApp;
|
|
106
115
|
autoConvert?: {
|
|
107
116
|
matchers: Array<AutoConvertMatches>;
|
|
108
117
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
-
import type { ExtensionKey, ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
|
|
3
|
+
import type { ExtensionApp, ExtensionKey, ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
|
|
4
4
|
export type MenuItem = {
|
|
5
|
+
app?: ExtensionApp;
|
|
5
6
|
categories: string[];
|
|
6
7
|
description?: string;
|
|
7
8
|
documentationUrl?: string;
|
|
@@ -2,6 +2,7 @@ import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
|
2
2
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { RegisterMenuItem } from '@atlaskit/editor-ui-control-model/types';
|
|
4
4
|
import type { INPUT_METHOD } from '../analytics/types/enums';
|
|
5
|
+
import type { ExtensionApp } from '../extensions/types/extension-manifest';
|
|
5
6
|
import type { TypeAheadItem } from '../types/type-ahead';
|
|
6
7
|
export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
|
|
7
8
|
selectInlineNode?: boolean;
|
|
@@ -16,6 +17,8 @@ export type QuickInsertItem = TypeAheadItem & {
|
|
|
16
17
|
* @see packages/editor/editor-core/src/plugins/insert-block/ui/ToolbarInsertBlock/index.tsx for details
|
|
17
18
|
*/
|
|
18
19
|
action: (insert: QuickInsertActionInsert, state: EditorState, source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER) => Transaction | false;
|
|
20
|
+
/** App contributing this item. */
|
|
21
|
+
app?: ExtensionApp;
|
|
19
22
|
/** categories where to find the item */
|
|
20
23
|
categories?: Array<string>;
|
|
21
24
|
/** indicates if the item will be highlighted where appropriate (plus menu for now) */
|
|
@@ -42,10 +42,34 @@ export declare const VIEW_ALL_ELEMENTS_MENU_ITEM: {
|
|
|
42
42
|
readonly key: 'quick-insert-view-all-elements-menu-item';
|
|
43
43
|
readonly type: 'menu-item';
|
|
44
44
|
};
|
|
45
|
+
export declare const ACTION_MENU_ITEM: {
|
|
46
|
+
readonly key: 'quick-insert-action-menu-item';
|
|
47
|
+
readonly type: 'menu-item';
|
|
48
|
+
};
|
|
45
49
|
export declare const TABLE_MENU_ITEM: {
|
|
46
50
|
readonly key: 'quick-insert-table-menu-item';
|
|
47
51
|
readonly type: 'menu-item';
|
|
48
52
|
};
|
|
53
|
+
export declare const STATUS_MENU_ITEM: {
|
|
54
|
+
readonly key: 'quick-insert-status-menu-item';
|
|
55
|
+
readonly type: 'menu-item';
|
|
56
|
+
};
|
|
57
|
+
export declare const DATE_MENU_ITEM: {
|
|
58
|
+
readonly key: 'quick-insert-date-menu-item';
|
|
59
|
+
readonly type: 'menu-item';
|
|
60
|
+
};
|
|
61
|
+
export declare const SYNCED_BLOCK_MENU_ITEM: {
|
|
62
|
+
readonly key: 'quick-insert-synced-block-menu-item';
|
|
63
|
+
readonly type: 'menu-item';
|
|
64
|
+
};
|
|
65
|
+
export declare const EXPAND_MENU_ITEM: {
|
|
66
|
+
readonly key: 'quick-insert-expand-menu-item';
|
|
67
|
+
readonly type: 'menu-item';
|
|
68
|
+
};
|
|
69
|
+
export declare const DECISION_MENU_ITEM: {
|
|
70
|
+
readonly key: 'quick-insert-decision-menu-item';
|
|
71
|
+
readonly type: 'menu-item';
|
|
72
|
+
};
|
|
49
73
|
export declare const INFO_PANEL_MENU_ITEM: {
|
|
50
74
|
readonly key: 'quick-insert-info-panel-menu-item';
|
|
51
75
|
readonly type: 'menu-item';
|
|
@@ -70,36 +94,92 @@ export declare const CUSTOM_PANEL_MENU_ITEM: {
|
|
|
70
94
|
readonly key: 'quick-insert-custom-panel-menu-item';
|
|
71
95
|
readonly type: 'menu-item';
|
|
72
96
|
};
|
|
73
|
-
export declare const
|
|
74
|
-
readonly key: 'quick-insert-
|
|
97
|
+
export declare const TWO_COLUMNS_LAYOUT_MENU_ITEM: {
|
|
98
|
+
readonly key: 'quick-insert-two-columns-layout-menu-item';
|
|
75
99
|
readonly type: 'menu-item';
|
|
76
100
|
};
|
|
77
|
-
export declare const
|
|
78
|
-
readonly key: 'quick-insert-
|
|
101
|
+
export declare const THREE_COLUMNS_LAYOUT_MENU_ITEM: {
|
|
102
|
+
readonly key: 'quick-insert-three-columns-layout-menu-item';
|
|
103
|
+
readonly type: 'menu-item';
|
|
104
|
+
};
|
|
105
|
+
export declare const FOUR_COLUMNS_LAYOUT_MENU_ITEM: {
|
|
106
|
+
readonly key: 'quick-insert-four-columns-layout-menu-item';
|
|
107
|
+
readonly type: 'menu-item';
|
|
108
|
+
};
|
|
109
|
+
export declare const FIVE_COLUMNS_LAYOUT_MENU_ITEM: {
|
|
110
|
+
readonly key: 'quick-insert-five-columns-layout-menu-item';
|
|
111
|
+
readonly type: 'menu-item';
|
|
112
|
+
};
|
|
113
|
+
export declare const MEDIA_INSERT_MENU_ITEM: {
|
|
114
|
+
readonly key: 'quick-insert-media-insert-menu-item';
|
|
79
115
|
readonly type: 'menu-item';
|
|
80
116
|
};
|
|
81
117
|
export declare const HYPERLINK_MENU_ITEM: {
|
|
82
118
|
readonly key: 'quick-insert-hyperlink-menu-item';
|
|
83
119
|
readonly type: 'menu-item';
|
|
84
120
|
};
|
|
121
|
+
export declare const EMOJI_MENU_ITEM: {
|
|
122
|
+
readonly key: 'quick-insert-emoji-menu-item';
|
|
123
|
+
readonly type: 'menu-item';
|
|
124
|
+
};
|
|
85
125
|
export declare const LOOM_MENU_ITEM: {
|
|
86
126
|
readonly key: 'quick-insert-loom-menu-item';
|
|
87
127
|
readonly type: 'menu-item';
|
|
88
128
|
};
|
|
89
|
-
export declare const
|
|
90
|
-
readonly key: 'quick-insert-
|
|
129
|
+
export declare const MENTION_MENU_ITEM: {
|
|
130
|
+
readonly key: 'quick-insert-mention-menu-item';
|
|
91
131
|
readonly type: 'menu-item';
|
|
92
132
|
};
|
|
93
|
-
export declare const
|
|
94
|
-
readonly key: 'quick-insert-
|
|
133
|
+
export declare const AI_IMAGE_GENERATION_MENU_ITEM: {
|
|
134
|
+
readonly key: 'quick-insert-ai-image-generation-menu-item';
|
|
95
135
|
readonly type: 'menu-item';
|
|
96
136
|
};
|
|
97
|
-
export declare const
|
|
98
|
-
readonly key: 'quick-insert-
|
|
137
|
+
export declare const HEADING_1_MENU_ITEM: {
|
|
138
|
+
readonly key: 'quick-insert-heading-1-menu-item';
|
|
99
139
|
readonly type: 'menu-item';
|
|
100
140
|
};
|
|
101
|
-
export declare const
|
|
102
|
-
readonly key: 'quick-insert-
|
|
141
|
+
export declare const HEADING_2_MENU_ITEM: {
|
|
142
|
+
readonly key: 'quick-insert-heading-2-menu-item';
|
|
143
|
+
readonly type: 'menu-item';
|
|
144
|
+
};
|
|
145
|
+
export declare const HEADING_3_MENU_ITEM: {
|
|
146
|
+
readonly key: 'quick-insert-heading-3-menu-item';
|
|
147
|
+
readonly type: 'menu-item';
|
|
148
|
+
};
|
|
149
|
+
export declare const HEADING_4_MENU_ITEM: {
|
|
150
|
+
readonly key: 'quick-insert-heading-4-menu-item';
|
|
151
|
+
readonly type: 'menu-item';
|
|
152
|
+
};
|
|
153
|
+
export declare const HEADING_5_MENU_ITEM: {
|
|
154
|
+
readonly key: 'quick-insert-heading-5-menu-item';
|
|
155
|
+
readonly type: 'menu-item';
|
|
156
|
+
};
|
|
157
|
+
export declare const HEADING_6_MENU_ITEM: {
|
|
158
|
+
readonly key: 'quick-insert-heading-6-menu-item';
|
|
159
|
+
readonly type: 'menu-item';
|
|
160
|
+
};
|
|
161
|
+
export declare const BLOCKQUOTE_MENU_ITEM: {
|
|
162
|
+
readonly key: 'quick-insert-blockquote-menu-item';
|
|
163
|
+
readonly type: 'menu-item';
|
|
164
|
+
};
|
|
165
|
+
export declare const CODE_BLOCK_MENU_ITEM: {
|
|
166
|
+
readonly key: 'quick-insert-code-block-menu-item';
|
|
167
|
+
readonly type: 'menu-item';
|
|
168
|
+
};
|
|
169
|
+
export declare const RULE_MENU_ITEM: {
|
|
170
|
+
readonly key: 'quick-insert-rule-menu-item';
|
|
171
|
+
readonly type: 'menu-item';
|
|
172
|
+
};
|
|
173
|
+
export declare const PLACEHOLDER_TEXT_MENU_ITEM: {
|
|
174
|
+
readonly key: 'quick-insert-placeholder-text-menu-item';
|
|
175
|
+
readonly type: 'menu-item';
|
|
176
|
+
};
|
|
177
|
+
export declare const UNORDERED_LIST_MENU_ITEM: {
|
|
178
|
+
readonly key: 'quick-insert-unordered-list-menu-item';
|
|
179
|
+
readonly type: 'menu-item';
|
|
180
|
+
};
|
|
181
|
+
export declare const ORDERED_LIST_MENU_ITEM: {
|
|
182
|
+
readonly key: 'quick-insert-ordered-list-menu-item';
|
|
103
183
|
readonly type: 'menu-item';
|
|
104
184
|
};
|
|
105
185
|
export declare const ASK_ROVO_MENU_ITEM: {
|
|
@@ -114,6 +194,10 @@ export declare const ASSETS_MENU_ITEM: {
|
|
|
114
194
|
readonly key: 'quick-insert-assets-menu-item';
|
|
115
195
|
readonly type: 'menu-item';
|
|
116
196
|
};
|
|
197
|
+
export declare const HELP_DIALOG_MENU_ITEM: {
|
|
198
|
+
readonly key: 'quick-insert-help-dialog-menu-item';
|
|
199
|
+
readonly type: 'menu-item';
|
|
200
|
+
};
|
|
117
201
|
export declare const getBlockTemplateMenuItem: (id: string) => {
|
|
118
202
|
readonly key: string;
|
|
119
203
|
readonly type: 'menu-item';
|
|
@@ -1,41 +1,9 @@
|
|
|
1
|
-
export declare const QUICK_INSERT_MENU_RANK:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly 'quick-insert-rovo-section': 5;
|
|
9
|
-
readonly 'quick-insert-structure-section': 1;
|
|
10
|
-
readonly 'quick-insert-text-formatting-section': 4;
|
|
11
|
-
};
|
|
12
|
-
export declare const STRUCTURE_SECTION_RANK: {
|
|
13
|
-
readonly 'quick-insert-custom-panel-menu-item': 1400;
|
|
14
|
-
readonly 'quick-insert-date-menu-item': 400;
|
|
15
|
-
readonly 'quick-insert-error-panel-menu-item': 1300;
|
|
16
|
-
readonly 'quick-insert-info-panel-menu-item': 900;
|
|
17
|
-
readonly 'quick-insert-note-panel-menu-item': 1000;
|
|
18
|
-
readonly 'quick-insert-status-menu-item': 300;
|
|
19
|
-
readonly 'quick-insert-success-panel-menu-item': 1100;
|
|
20
|
-
readonly 'quick-insert-table-menu-item': 200;
|
|
21
|
-
readonly 'quick-insert-warning-panel-menu-item': 1200;
|
|
22
|
-
};
|
|
23
|
-
export declare const MEDIA_SECTION_RANK: {
|
|
24
|
-
readonly 'quick-insert-emoji-menu-item': 300;
|
|
25
|
-
readonly 'quick-insert-hyperlink-menu-item': 200;
|
|
26
|
-
readonly 'quick-insert-loom-menu-item': 400;
|
|
27
|
-
readonly 'quick-insert-media-insert-menu-item': 100;
|
|
28
|
-
};
|
|
29
|
-
export declare const TEXT_FORMATTING_SECTION_RANK: {
|
|
30
|
-
readonly 'quick-insert-ordered-list-menu-item': 1200;
|
|
31
|
-
readonly 'quick-insert-unordered-list-menu-item': 1100;
|
|
32
|
-
};
|
|
33
|
-
export declare const ROVO_SECTION_RANK: {
|
|
34
|
-
readonly 'quick-insert-ask-rovo-menu-item': 100;
|
|
35
|
-
};
|
|
36
|
-
export declare const DATA_AND_CHARTS_SECTION_RANK: {
|
|
37
|
-
readonly 'quick-insert-assets-menu-item': 500;
|
|
38
|
-
readonly 'quick-insert-jira-work-items-menu-item': 300;
|
|
39
|
-
};
|
|
1
|
+
export declare const QUICK_INSERT_MENU_RANK: Readonly<Record<string, number>>;
|
|
2
|
+
export declare const STRUCTURE_SECTION_RANK: Readonly<Record<string, number>>;
|
|
3
|
+
export declare const MEDIA_SECTION_RANK: Readonly<Record<string, number>>;
|
|
4
|
+
export declare const TEXT_FORMATTING_SECTION_RANK: Readonly<Record<string, number>>;
|
|
5
|
+
export declare const ROVO_SECTION_RANK: Readonly<Record<string, number>>;
|
|
6
|
+
export declare const DATA_AND_CHARTS_SECTION_RANK: Readonly<Record<string, number>>;
|
|
7
|
+
export declare const OTHER_SECTION_RANK: Readonly<Record<string, number>>;
|
|
40
8
|
export declare const EXTENSION_ITEM_RANK = 1500;
|
|
41
9
|
export declare const CATEGORY_VIEW_MORE_RANK: number;
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/transaction-agent-attribution",
|
|
3
|
+
"main": "../dist/cjs/transaction-agent-attribution.js",
|
|
4
|
+
"module": "../dist/esm/transaction-agent-attribution.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/transaction-agent-attribution.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/transaction-agent-attribution.d.ts"
|
|
10
|
+
}
|