@atlaskit/editor-common 117.1.1 → 117.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
- package/dist/cjs/quick-insert/QuickInsertMenuItem.js +63 -0
- package/dist/cjs/quick-insert/QuickInsertMenuRoot.js +13 -0
- package/dist/cjs/quick-insert/QuickInsertMenuSection.js +16 -0
- package/dist/cjs/quick-insert/keys.js +79 -1
- package/dist/cjs/quick-insert/messages.js +45 -0
- package/dist/cjs/quick-insert/rank.js +7 -2
- package/dist/cjs/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +8 -0
- package/dist/cjs/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +8 -0
- package/dist/cjs/type-ahead/getMenuFooterSectionKey.js +11 -0
- package/dist/cjs/type-ahead/getSectionOverflowItemKey.js +11 -0
- package/dist/cjs/type-ahead/isMenuFooterSectionKey.js +11 -0
- package/dist/cjs/type-ahead/isSectionOverflowItemKey.js +11 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
- package/dist/es2019/quick-insert/QuickInsertMenuItem.js +51 -0
- package/dist/es2019/quick-insert/QuickInsertMenuRoot.js +5 -0
- package/dist/es2019/quick-insert/QuickInsertMenuSection.js +8 -0
- package/dist/es2019/quick-insert/keys.js +77 -1
- package/dist/es2019/quick-insert/messages.js +45 -0
- package/dist/es2019/quick-insert/rank.js +30 -4
- package/dist/es2019/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +2 -0
- package/dist/es2019/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +2 -0
- package/dist/es2019/type-ahead/getMenuFooterSectionKey.js +4 -0
- package/dist/es2019/type-ahead/getSectionOverflowItemKey.js +4 -0
- package/dist/es2019/type-ahead/isMenuFooterSectionKey.js +4 -0
- package/dist/es2019/type-ahead/isSectionOverflowItemKey.js +4 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
- package/dist/esm/quick-insert/QuickInsertMenuItem.js +54 -0
- package/dist/esm/quick-insert/QuickInsertMenuRoot.js +6 -0
- package/dist/esm/quick-insert/QuickInsertMenuSection.js +9 -0
- package/dist/esm/quick-insert/keys.js +78 -0
- package/dist/esm/quick-insert/messages.js +45 -0
- package/dist/esm/quick-insert/rank.js +7 -2
- package/dist/esm/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +2 -0
- package/dist/esm/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +2 -0
- package/dist/esm/type-ahead/getMenuFooterSectionKey.js +6 -0
- package/dist/esm/type-ahead/getSectionOverflowItemKey.js +6 -0
- package/dist/esm/type-ahead/isMenuFooterSectionKey.js +6 -0
- package/dist/esm/type-ahead/isSectionOverflowItemKey.js +6 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/list-events.d.ts +1 -1
- package/dist/types/quick-insert/QuickInsertContext.d.ts +0 -1
- package/dist/types/quick-insert/QuickInsertMenuItem.d.ts +21 -0
- package/dist/types/quick-insert/QuickInsertMenuRoot.d.ts +2 -0
- package/dist/types/quick-insert/QuickInsertMenuSection.d.ts +4 -0
- package/dist/types/quick-insert/keys.d.ts +76 -0
- package/dist/types/quick-insert/messages.d.ts +4 -87
- package/dist/types/quick-insert/rank.d.ts +28 -2
- package/dist/types/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.d.ts +2 -0
- package/dist/types/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.d.ts +2 -0
- package/dist/types/type-ahead/getMenuFooterSectionKey.d.ts +2 -0
- package/dist/types/type-ahead/getSectionOverflowItemKey.d.ts +2 -0
- package/dist/types/type-ahead/isMenuFooterSectionKey.d.ts +2 -0
- package/dist/types/type-ahead/isSectionOverflowItemKey.d.ts +2 -0
- package/dist/types/types/quick-insert.d.ts +4 -0
- package/package.json +4 -4
- package/quick-insert/menu-item/package.json +10 -0
- package/quick-insert/menu-root/package.json +10 -0
- package/quick-insert/menu-section/package.json +10 -0
- package/type-ahead-get-menu-footer-section-key/package.json +10 -0
- package/type-ahead-get-section-overflow-item-key/package.json +10 -0
- package/type-ahead-is-menu-footer-section-key/package.json +10 -0
- package/type-ahead-is-section-overflow-item-key/package.json +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 117.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7087f393ec725`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7087f393ec725) -
|
|
8
|
+
Add the categorized registered Quick Insert browse experience with representative native elements
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 117.1.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -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 = "117.1.
|
|
31
|
+
var packageVersion = "117.1.1";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
+
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
4
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
5
|
+
._18zr1b66{padding-inline:var(--ds-space-050,4px)}
|
|
6
|
+
._1dqonqa1{border-style:solid}
|
|
7
|
+
._1h6d1l7x{border-color:var(--ds-border,#0b120e24)}
|
|
8
|
+
._1rjcv77o{padding-block:var(--ds-space-025,2px)}
|
|
9
|
+
._18m915vq{overflow-y:hidden}
|
|
10
|
+
._1bah1h6o{justify-content:center}
|
|
11
|
+
._1bsbzwfg{width:2pc}
|
|
12
|
+
._1e0c1txw{display:flex}
|
|
13
|
+
._1reo15vq{overflow-x:hidden}
|
|
14
|
+
._4cvr1h6o{align-items:center}
|
|
15
|
+
._4t3izwfg{height:2pc}
|
|
16
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
17
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
18
|
+
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* QuickInsertMenuItem.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.QuickInsertMenuItem = void 0;
|
|
10
|
+
require("./QuickInsertMenuItem.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _buttonItem = _interopRequireDefault(require("@atlaskit/menu/button-item"));
|
|
14
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
|
+
var _useQuickInsertContext = require("./useQuickInsertContext");
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
+
var styles = {
|
|
18
|
+
icon: "_2rko1qi0 _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
|
|
19
|
+
shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
|
|
20
|
+
};
|
|
21
|
+
var QuickInsertMenuItem = exports.QuickInsertMenuItem = function QuickInsertMenuItem(_ref) {
|
|
22
|
+
var _item$isSelected;
|
|
23
|
+
var ariaLabel = _ref.ariaLabel,
|
|
24
|
+
iconBefore = _ref.iconBefore,
|
|
25
|
+
isDisabled = _ref.isDisabled,
|
|
26
|
+
onSelect = _ref.onSelect,
|
|
27
|
+
shortcut = _ref.shortcut,
|
|
28
|
+
_ref$shouldWrapIcon = _ref.shouldWrapIcon,
|
|
29
|
+
shouldWrapIcon = _ref$shouldWrapIcon === void 0 ? true : _ref$shouldWrapIcon,
|
|
30
|
+
title = _ref.title;
|
|
31
|
+
var _useQuickInsertContex = (0, _useQuickInsertContext.useQuickInsertContext)(),
|
|
32
|
+
editorView = _useQuickInsertContex.editorView,
|
|
33
|
+
item = _useQuickInsertContex.item,
|
|
34
|
+
select = _useQuickInsertContex.select;
|
|
35
|
+
var isSelected = (_item$isSelected = item === null || item === void 0 ? void 0 : item.isSelected) !== null && _item$isSelected !== void 0 ? _item$isSelected : false;
|
|
36
|
+
var handleClick = (0, _react.useCallback)(function () {
|
|
37
|
+
return select(function (selectionContext) {
|
|
38
|
+
return onSelect({
|
|
39
|
+
editorView: editorView,
|
|
40
|
+
insert: selectionContext.insert,
|
|
41
|
+
source: selectionContext.source
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}, [editorView, onSelect, select]);
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_buttonItem.default, {
|
|
46
|
+
"aria-label": ariaLabel,
|
|
47
|
+
"aria-selected": isSelected,
|
|
48
|
+
iconBefore: iconBefore && shouldWrapIcon ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
49
|
+
xcss: styles.icon
|
|
50
|
+
}, iconBefore) : iconBefore,
|
|
51
|
+
id: item === null || item === void 0 ? void 0 : item.id,
|
|
52
|
+
isDisabled: isDisabled,
|
|
53
|
+
isSelected: isSelected,
|
|
54
|
+
onClick: handleClick,
|
|
55
|
+
role: "option"
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
57
|
+
alignBlock: "center",
|
|
58
|
+
spread: "space-between"
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, title), shortcut && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
60
|
+
as: "span",
|
|
61
|
+
xcss: styles.shortcut
|
|
62
|
+
}, shortcut)));
|
|
63
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.QuickInsertMenuRoot = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _menuGroup = _interopRequireDefault(require("@atlaskit/menu/menu-group"));
|
|
10
|
+
var QuickInsertMenuRoot = exports.QuickInsertMenuRoot = function QuickInsertMenuRoot(_ref) {
|
|
11
|
+
var children = _ref.children;
|
|
12
|
+
return /*#__PURE__*/_react.default.createElement(_menuGroup.default, null, children);
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.QuickInsertMenuSection = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _section = _interopRequireDefault(require("@atlaskit/menu/section"));
|
|
10
|
+
var QuickInsertMenuSection = exports.QuickInsertMenuSection = function QuickInsertMenuSection(_ref) {
|
|
11
|
+
var children = _ref.children,
|
|
12
|
+
title = _ref.title;
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement(_section.default, {
|
|
14
|
+
title: title
|
|
15
|
+
}, children);
|
|
16
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TEXT_FORMATTING_SECTION = exports.TABLE_MENU_ITEM = exports.STRUCTURE_SECTION = exports.ROVO_SECTION = exports.RECOMMENDED_SECTION = exports.OTHER_SECTION = exports.MENU = exports.MEDIA_SECTION = exports.EMBED_SECTION = exports.DATA_AND_CHARTS_SECTION = exports.BLOCK_TEMPLATES_SECTION = void 0;
|
|
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;
|
|
7
7
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
8
8
|
var MENU = exports.MENU = {
|
|
9
9
|
key: 'quick-insert-menu',
|
|
@@ -45,7 +45,85 @@ var OTHER_SECTION = exports.OTHER_SECTION = {
|
|
|
45
45
|
key: 'quick-insert-other-section',
|
|
46
46
|
type: 'menu-section'
|
|
47
47
|
};
|
|
48
|
+
var VIEW_ALL_ELEMENTS_MENU_ITEM = exports.VIEW_ALL_ELEMENTS_MENU_ITEM = {
|
|
49
|
+
key: 'quick-insert-view-all-elements-menu-item',
|
|
50
|
+
type: 'menu-item'
|
|
51
|
+
};
|
|
48
52
|
var TABLE_MENU_ITEM = exports.TABLE_MENU_ITEM = {
|
|
49
53
|
key: 'quick-insert-table-menu-item',
|
|
50
54
|
type: 'menu-item'
|
|
55
|
+
};
|
|
56
|
+
var INFO_PANEL_MENU_ITEM = exports.INFO_PANEL_MENU_ITEM = {
|
|
57
|
+
key: 'quick-insert-info-panel-menu-item',
|
|
58
|
+
type: 'menu-item'
|
|
59
|
+
};
|
|
60
|
+
var NOTE_PANEL_MENU_ITEM = exports.NOTE_PANEL_MENU_ITEM = {
|
|
61
|
+
key: 'quick-insert-note-panel-menu-item',
|
|
62
|
+
type: 'menu-item'
|
|
63
|
+
};
|
|
64
|
+
var SUCCESS_PANEL_MENU_ITEM = exports.SUCCESS_PANEL_MENU_ITEM = {
|
|
65
|
+
key: 'quick-insert-success-panel-menu-item',
|
|
66
|
+
type: 'menu-item'
|
|
67
|
+
};
|
|
68
|
+
var WARNING_PANEL_MENU_ITEM = exports.WARNING_PANEL_MENU_ITEM = {
|
|
69
|
+
key: 'quick-insert-warning-panel-menu-item',
|
|
70
|
+
type: 'menu-item'
|
|
71
|
+
};
|
|
72
|
+
var ERROR_PANEL_MENU_ITEM = exports.ERROR_PANEL_MENU_ITEM = {
|
|
73
|
+
key: 'quick-insert-error-panel-menu-item',
|
|
74
|
+
type: 'menu-item'
|
|
75
|
+
};
|
|
76
|
+
var CUSTOM_PANEL_MENU_ITEM = exports.CUSTOM_PANEL_MENU_ITEM = {
|
|
77
|
+
key: 'quick-insert-custom-panel-menu-item',
|
|
78
|
+
type: 'menu-item'
|
|
79
|
+
};
|
|
80
|
+
var MEDIA_INSERT_MENU_ITEM = exports.MEDIA_INSERT_MENU_ITEM = {
|
|
81
|
+
key: 'quick-insert-media-insert-menu-item',
|
|
82
|
+
type: 'menu-item'
|
|
83
|
+
};
|
|
84
|
+
var EMOJI_MENU_ITEM = exports.EMOJI_MENU_ITEM = {
|
|
85
|
+
key: 'quick-insert-emoji-menu-item',
|
|
86
|
+
type: 'menu-item'
|
|
87
|
+
};
|
|
88
|
+
var HYPERLINK_MENU_ITEM = exports.HYPERLINK_MENU_ITEM = {
|
|
89
|
+
key: 'quick-insert-hyperlink-menu-item',
|
|
90
|
+
type: 'menu-item'
|
|
91
|
+
};
|
|
92
|
+
var LOOM_MENU_ITEM = exports.LOOM_MENU_ITEM = {
|
|
93
|
+
key: 'quick-insert-loom-menu-item',
|
|
94
|
+
type: 'menu-item'
|
|
95
|
+
};
|
|
96
|
+
var UNORDERED_LIST_MENU_ITEM = exports.UNORDERED_LIST_MENU_ITEM = {
|
|
97
|
+
key: 'quick-insert-unordered-list-menu-item',
|
|
98
|
+
type: 'menu-item'
|
|
99
|
+
};
|
|
100
|
+
var ORDERED_LIST_MENU_ITEM = exports.ORDERED_LIST_MENU_ITEM = {
|
|
101
|
+
key: 'quick-insert-ordered-list-menu-item',
|
|
102
|
+
type: 'menu-item'
|
|
103
|
+
};
|
|
104
|
+
var STATUS_MENU_ITEM = exports.STATUS_MENU_ITEM = {
|
|
105
|
+
key: 'quick-insert-status-menu-item',
|
|
106
|
+
type: 'menu-item'
|
|
107
|
+
};
|
|
108
|
+
var DATE_MENU_ITEM = exports.DATE_MENU_ITEM = {
|
|
109
|
+
key: 'quick-insert-date-menu-item',
|
|
110
|
+
type: 'menu-item'
|
|
111
|
+
};
|
|
112
|
+
var ASK_ROVO_MENU_ITEM = exports.ASK_ROVO_MENU_ITEM = {
|
|
113
|
+
key: 'quick-insert-ask-rovo-menu-item',
|
|
114
|
+
type: 'menu-item'
|
|
115
|
+
};
|
|
116
|
+
var JIRA_WORK_ITEMS_MENU_ITEM = exports.JIRA_WORK_ITEMS_MENU_ITEM = {
|
|
117
|
+
key: 'quick-insert-jira-work-items-menu-item',
|
|
118
|
+
type: 'menu-item'
|
|
119
|
+
};
|
|
120
|
+
var ASSETS_MENU_ITEM = exports.ASSETS_MENU_ITEM = {
|
|
121
|
+
key: 'quick-insert-assets-menu-item',
|
|
122
|
+
type: 'menu-item'
|
|
123
|
+
};
|
|
124
|
+
var getBlockTemplateMenuItem = exports.getBlockTemplateMenuItem = function getBlockTemplateMenuItem(id) {
|
|
125
|
+
return {
|
|
126
|
+
key: "quick-insert-block-template-".concat(id),
|
|
127
|
+
type: 'menu-item'
|
|
128
|
+
};
|
|
51
129
|
};
|
|
@@ -90,5 +90,50 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
90
90
|
id: 'fabric.editor.elementbrowser.sidebar.heading',
|
|
91
91
|
defaultMessage: 'Browse',
|
|
92
92
|
description: 'Heading text displayed at the top of the element browser sidebar where users can browse and filter available elements to insert.'
|
|
93
|
+
},
|
|
94
|
+
categoryRecommended: {
|
|
95
|
+
id: 'editor-common.quick-insert.categoryRecommended',
|
|
96
|
+
defaultMessage: 'Recommended',
|
|
97
|
+
description: 'Recommended items in the Quick Insert menu.'
|
|
98
|
+
},
|
|
99
|
+
categoryStructure: {
|
|
100
|
+
id: 'editor-common.quick-insert.categoryStructure',
|
|
101
|
+
defaultMessage: 'Structure',
|
|
102
|
+
description: 'Structure items in the Quick Insert menu.'
|
|
103
|
+
},
|
|
104
|
+
categoryMedia: {
|
|
105
|
+
id: 'editor-common.quick-insert.categoryMedia',
|
|
106
|
+
defaultMessage: 'Media',
|
|
107
|
+
description: 'Media items in the Quick Insert menu.'
|
|
108
|
+
},
|
|
109
|
+
categoryEmbed: {
|
|
110
|
+
id: 'editor-common.quick-insert.categoryEmbed',
|
|
111
|
+
defaultMessage: 'Embed',
|
|
112
|
+
description: 'Embed items in the Quick Insert menu.'
|
|
113
|
+
},
|
|
114
|
+
categoryTextFormatting: {
|
|
115
|
+
id: 'editor-common.quick-insert.categoryTextFormatting',
|
|
116
|
+
defaultMessage: 'Text formatting',
|
|
117
|
+
description: 'Text formatting items in the Quick Insert menu.'
|
|
118
|
+
},
|
|
119
|
+
categoryRovo: {
|
|
120
|
+
id: 'editor-common.quick-insert.categoryRovo',
|
|
121
|
+
defaultMessage: 'Rovo',
|
|
122
|
+
description: 'Rovo items in the Quick Insert menu.'
|
|
123
|
+
},
|
|
124
|
+
categoryDataAndCharts: {
|
|
125
|
+
id: 'editor-common.quick-insert.categoryDataAndCharts',
|
|
126
|
+
defaultMessage: 'Data and charts',
|
|
127
|
+
description: 'Data and chart items in the Quick Insert menu.'
|
|
128
|
+
},
|
|
129
|
+
categoryBlockTemplates: {
|
|
130
|
+
id: 'editor-common.quick-insert.categoryBlockTemplates',
|
|
131
|
+
defaultMessage: 'Block templates',
|
|
132
|
+
description: 'Block template items in the Quick Insert menu.'
|
|
133
|
+
},
|
|
134
|
+
categoryOther: {
|
|
135
|
+
id: 'editor-common.quick-insert.categoryOther',
|
|
136
|
+
defaultMessage: 'Other',
|
|
137
|
+
description: 'Other items in the Quick Insert menu.'
|
|
93
138
|
}
|
|
94
139
|
});
|
|
@@ -4,10 +4,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.TEXT_FORMATTING_SECTION_RANK = exports.STRUCTURE_SECTION_RANK = exports.ROVO_SECTION_RANK = exports.QUICK_INSERT_MENU_RANK = exports.MEDIA_SECTION_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
10
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
11
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
|
|
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)({}, _keys.TABLE_MENU_ITEM.key, 200), _keys.STATUS_MENU_ITEM.key, 300), _keys.DATE_MENU_ITEM.key, 400), _keys.INFO_PANEL_MENU_ITEM.key, 900), _keys.NOTE_PANEL_MENU_ITEM.key, 1000), _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);
|
|
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)({}, _keys.UNORDERED_LIST_MENU_ITEM.key, 1100), _keys.ORDERED_LIST_MENU_ITEM.key, 1200);
|
|
16
|
+
var ROVO_SECTION_RANK = exports.ROVO_SECTION_RANK = (0, _defineProperty2.default)({}, _keys.ASK_ROVO_MENU_ITEM.key, 100);
|
|
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 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.MENU_FOOTER_SECTION_KEY_SUFFIX = void 0;
|
|
7
|
+
/** Identifies reserved type-ahead sections whose item is rendered as the persistent menu footer. */
|
|
8
|
+
var MENU_FOOTER_SECTION_KEY_SUFFIX = exports.MENU_FOOTER_SECTION_KEY_SUFFIX = '--system-menu-footer';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SECTION_OVERFLOW_ITEM_KEY_SUFFIX = void 0;
|
|
7
|
+
/** Identifies system items that reveal the remaining items in a type-ahead section. */
|
|
8
|
+
var SECTION_OVERFLOW_ITEM_KEY_SUFFIX = exports.SECTION_OVERFLOW_ITEM_KEY_SUFFIX = '--system-section-overflow';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getMenuFooterSectionKey = void 0;
|
|
7
|
+
var _MENU_FOOTER_SECTION_KEY_SUFFIX = require("./MENU_FOOTER_SECTION_KEY_SUFFIX");
|
|
8
|
+
/** Returns the reserved section key for a type-ahead menu's persistent footer item. */
|
|
9
|
+
var getMenuFooterSectionKey = exports.getMenuFooterSectionKey = function getMenuFooterSectionKey(menuKey) {
|
|
10
|
+
return "".concat(menuKey).concat(_MENU_FOOTER_SECTION_KEY_SUFFIX.MENU_FOOTER_SECTION_KEY_SUFFIX);
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSectionOverflowItemKey = void 0;
|
|
7
|
+
var _SECTION_OVERFLOW_ITEM_KEY_SUFFIX = require("./SECTION_OVERFLOW_ITEM_KEY_SUFFIX");
|
|
8
|
+
/** Returns the reserved key for the item that reveals the remainder of a type-ahead section. */
|
|
9
|
+
var getSectionOverflowItemKey = exports.getSectionOverflowItemKey = function getSectionOverflowItemKey(sectionKey) {
|
|
10
|
+
return "".concat(sectionKey).concat(_SECTION_OVERFLOW_ITEM_KEY_SUFFIX.SECTION_OVERFLOW_ITEM_KEY_SUFFIX);
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isMenuFooterSectionKey = void 0;
|
|
7
|
+
var _MENU_FOOTER_SECTION_KEY_SUFFIX = require("./MENU_FOOTER_SECTION_KEY_SUFFIX");
|
|
8
|
+
/** Identifies reserved type-ahead sections whose item is rendered as a persistent footer. */
|
|
9
|
+
var isMenuFooterSectionKey = exports.isMenuFooterSectionKey = function isMenuFooterSectionKey(key) {
|
|
10
|
+
return key.endsWith(_MENU_FOOTER_SECTION_KEY_SUFFIX.MENU_FOOTER_SECTION_KEY_SUFFIX);
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isSectionOverflowItemKey = void 0;
|
|
7
|
+
var _SECTION_OVERFLOW_ITEM_KEY_SUFFIX = require("./SECTION_OVERFLOW_ITEM_KEY_SUFFIX");
|
|
8
|
+
/** Identifies items reserved for revealing the remainder of a type-ahead section. */
|
|
9
|
+
var isSectionOverflowItemKey = exports.isSectionOverflowItemKey = function isSectionOverflowItemKey(key) {
|
|
10
|
+
return key.endsWith(_SECTION_OVERFLOW_ITEM_KEY_SUFFIX.SECTION_OVERFLOW_ITEM_KEY_SUFFIX);
|
|
11
|
+
};
|
|
@@ -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 = "117.1.
|
|
27
|
+
var packageVersion = "117.1.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -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 = "117.1.
|
|
17
|
+
const packageVersion = "117.1.1";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
+
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
4
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
5
|
+
._18zr1b66{padding-inline:var(--ds-space-050,4px)}
|
|
6
|
+
._1dqonqa1{border-style:solid}
|
|
7
|
+
._1h6d1l7x{border-color:var(--ds-border,#0b120e24)}
|
|
8
|
+
._1rjcv77o{padding-block:var(--ds-space-025,2px)}
|
|
9
|
+
._18m915vq{overflow-y:hidden}
|
|
10
|
+
._1bah1h6o{justify-content:center}
|
|
11
|
+
._1bsbzwfg{width:2pc}
|
|
12
|
+
._1e0c1txw{display:flex}
|
|
13
|
+
._1reo15vq{overflow-x:hidden}
|
|
14
|
+
._4cvr1h6o{align-items:center}
|
|
15
|
+
._4t3izwfg{height:2pc}
|
|
16
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
17
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
18
|
+
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* QuickInsertMenuItem.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
|
+
import "./QuickInsertMenuItem.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React, { useCallback } from 'react';
|
|
5
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
6
|
+
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { useQuickInsertContext } from './useQuickInsertContext';
|
|
8
|
+
const styles = {
|
|
9
|
+
icon: "_2rko1qi0 _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
|
|
10
|
+
shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
|
|
11
|
+
};
|
|
12
|
+
export const QuickInsertMenuItem = ({
|
|
13
|
+
ariaLabel,
|
|
14
|
+
iconBefore,
|
|
15
|
+
isDisabled,
|
|
16
|
+
onSelect,
|
|
17
|
+
shortcut,
|
|
18
|
+
shouldWrapIcon = true,
|
|
19
|
+
title
|
|
20
|
+
}) => {
|
|
21
|
+
var _item$isSelected;
|
|
22
|
+
const {
|
|
23
|
+
editorView,
|
|
24
|
+
item,
|
|
25
|
+
select
|
|
26
|
+
} = useQuickInsertContext();
|
|
27
|
+
const isSelected = (_item$isSelected = item === null || item === void 0 ? void 0 : item.isSelected) !== null && _item$isSelected !== void 0 ? _item$isSelected : false;
|
|
28
|
+
const handleClick = useCallback(() => select(selectionContext => onSelect({
|
|
29
|
+
editorView,
|
|
30
|
+
insert: selectionContext.insert,
|
|
31
|
+
source: selectionContext.source
|
|
32
|
+
})), [editorView, onSelect, select]);
|
|
33
|
+
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
34
|
+
"aria-label": ariaLabel,
|
|
35
|
+
"aria-selected": isSelected,
|
|
36
|
+
iconBefore: iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
xcss: styles.icon
|
|
38
|
+
}, iconBefore) : iconBefore,
|
|
39
|
+
id: item === null || item === void 0 ? void 0 : item.id,
|
|
40
|
+
isDisabled: isDisabled,
|
|
41
|
+
isSelected: isSelected,
|
|
42
|
+
onClick: handleClick,
|
|
43
|
+
role: "option"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
45
|
+
alignBlock: "center",
|
|
46
|
+
spread: "space-between"
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Text, null, title), shortcut && /*#__PURE__*/React.createElement(Box, {
|
|
48
|
+
as: "span",
|
|
49
|
+
xcss: styles.shortcut
|
|
50
|
+
}, shortcut)));
|
|
51
|
+
};
|
|
@@ -39,7 +39,83 @@ export const OTHER_SECTION = {
|
|
|
39
39
|
key: 'quick-insert-other-section',
|
|
40
40
|
type: 'menu-section'
|
|
41
41
|
};
|
|
42
|
+
export const VIEW_ALL_ELEMENTS_MENU_ITEM = {
|
|
43
|
+
key: 'quick-insert-view-all-elements-menu-item',
|
|
44
|
+
type: 'menu-item'
|
|
45
|
+
};
|
|
42
46
|
export const TABLE_MENU_ITEM = {
|
|
43
47
|
key: 'quick-insert-table-menu-item',
|
|
44
48
|
type: 'menu-item'
|
|
45
|
-
};
|
|
49
|
+
};
|
|
50
|
+
export const INFO_PANEL_MENU_ITEM = {
|
|
51
|
+
key: 'quick-insert-info-panel-menu-item',
|
|
52
|
+
type: 'menu-item'
|
|
53
|
+
};
|
|
54
|
+
export const NOTE_PANEL_MENU_ITEM = {
|
|
55
|
+
key: 'quick-insert-note-panel-menu-item',
|
|
56
|
+
type: 'menu-item'
|
|
57
|
+
};
|
|
58
|
+
export const SUCCESS_PANEL_MENU_ITEM = {
|
|
59
|
+
key: 'quick-insert-success-panel-menu-item',
|
|
60
|
+
type: 'menu-item'
|
|
61
|
+
};
|
|
62
|
+
export const WARNING_PANEL_MENU_ITEM = {
|
|
63
|
+
key: 'quick-insert-warning-panel-menu-item',
|
|
64
|
+
type: 'menu-item'
|
|
65
|
+
};
|
|
66
|
+
export const ERROR_PANEL_MENU_ITEM = {
|
|
67
|
+
key: 'quick-insert-error-panel-menu-item',
|
|
68
|
+
type: 'menu-item'
|
|
69
|
+
};
|
|
70
|
+
export const CUSTOM_PANEL_MENU_ITEM = {
|
|
71
|
+
key: 'quick-insert-custom-panel-menu-item',
|
|
72
|
+
type: 'menu-item'
|
|
73
|
+
};
|
|
74
|
+
export const MEDIA_INSERT_MENU_ITEM = {
|
|
75
|
+
key: 'quick-insert-media-insert-menu-item',
|
|
76
|
+
type: 'menu-item'
|
|
77
|
+
};
|
|
78
|
+
export const EMOJI_MENU_ITEM = {
|
|
79
|
+
key: 'quick-insert-emoji-menu-item',
|
|
80
|
+
type: 'menu-item'
|
|
81
|
+
};
|
|
82
|
+
export const HYPERLINK_MENU_ITEM = {
|
|
83
|
+
key: 'quick-insert-hyperlink-menu-item',
|
|
84
|
+
type: 'menu-item'
|
|
85
|
+
};
|
|
86
|
+
export const LOOM_MENU_ITEM = {
|
|
87
|
+
key: 'quick-insert-loom-menu-item',
|
|
88
|
+
type: 'menu-item'
|
|
89
|
+
};
|
|
90
|
+
export const UNORDERED_LIST_MENU_ITEM = {
|
|
91
|
+
key: 'quick-insert-unordered-list-menu-item',
|
|
92
|
+
type: 'menu-item'
|
|
93
|
+
};
|
|
94
|
+
export const ORDERED_LIST_MENU_ITEM = {
|
|
95
|
+
key: 'quick-insert-ordered-list-menu-item',
|
|
96
|
+
type: 'menu-item'
|
|
97
|
+
};
|
|
98
|
+
export const STATUS_MENU_ITEM = {
|
|
99
|
+
key: 'quick-insert-status-menu-item',
|
|
100
|
+
type: 'menu-item'
|
|
101
|
+
};
|
|
102
|
+
export const DATE_MENU_ITEM = {
|
|
103
|
+
key: 'quick-insert-date-menu-item',
|
|
104
|
+
type: 'menu-item'
|
|
105
|
+
};
|
|
106
|
+
export const ASK_ROVO_MENU_ITEM = {
|
|
107
|
+
key: 'quick-insert-ask-rovo-menu-item',
|
|
108
|
+
type: 'menu-item'
|
|
109
|
+
};
|
|
110
|
+
export const JIRA_WORK_ITEMS_MENU_ITEM = {
|
|
111
|
+
key: 'quick-insert-jira-work-items-menu-item',
|
|
112
|
+
type: 'menu-item'
|
|
113
|
+
};
|
|
114
|
+
export const ASSETS_MENU_ITEM = {
|
|
115
|
+
key: 'quick-insert-assets-menu-item',
|
|
116
|
+
type: 'menu-item'
|
|
117
|
+
};
|
|
118
|
+
export const getBlockTemplateMenuItem = id => ({
|
|
119
|
+
key: `quick-insert-block-template-${id}`,
|
|
120
|
+
type: 'menu-item'
|
|
121
|
+
});
|
|
@@ -84,5 +84,50 @@ export const messages = defineMessages({
|
|
|
84
84
|
id: 'fabric.editor.elementbrowser.sidebar.heading',
|
|
85
85
|
defaultMessage: 'Browse',
|
|
86
86
|
description: 'Heading text displayed at the top of the element browser sidebar where users can browse and filter available elements to insert.'
|
|
87
|
+
},
|
|
88
|
+
categoryRecommended: {
|
|
89
|
+
id: 'editor-common.quick-insert.categoryRecommended',
|
|
90
|
+
defaultMessage: 'Recommended',
|
|
91
|
+
description: 'Recommended items in the Quick Insert menu.'
|
|
92
|
+
},
|
|
93
|
+
categoryStructure: {
|
|
94
|
+
id: 'editor-common.quick-insert.categoryStructure',
|
|
95
|
+
defaultMessage: 'Structure',
|
|
96
|
+
description: 'Structure items in the Quick Insert menu.'
|
|
97
|
+
},
|
|
98
|
+
categoryMedia: {
|
|
99
|
+
id: 'editor-common.quick-insert.categoryMedia',
|
|
100
|
+
defaultMessage: 'Media',
|
|
101
|
+
description: 'Media items in the Quick Insert menu.'
|
|
102
|
+
},
|
|
103
|
+
categoryEmbed: {
|
|
104
|
+
id: 'editor-common.quick-insert.categoryEmbed',
|
|
105
|
+
defaultMessage: 'Embed',
|
|
106
|
+
description: 'Embed items in the Quick Insert menu.'
|
|
107
|
+
},
|
|
108
|
+
categoryTextFormatting: {
|
|
109
|
+
id: 'editor-common.quick-insert.categoryTextFormatting',
|
|
110
|
+
defaultMessage: 'Text formatting',
|
|
111
|
+
description: 'Text formatting items in the Quick Insert menu.'
|
|
112
|
+
},
|
|
113
|
+
categoryRovo: {
|
|
114
|
+
id: 'editor-common.quick-insert.categoryRovo',
|
|
115
|
+
defaultMessage: 'Rovo',
|
|
116
|
+
description: 'Rovo items in the Quick Insert menu.'
|
|
117
|
+
},
|
|
118
|
+
categoryDataAndCharts: {
|
|
119
|
+
id: 'editor-common.quick-insert.categoryDataAndCharts',
|
|
120
|
+
defaultMessage: 'Data and charts',
|
|
121
|
+
description: 'Data and chart items in the Quick Insert menu.'
|
|
122
|
+
},
|
|
123
|
+
categoryBlockTemplates: {
|
|
124
|
+
id: 'editor-common.quick-insert.categoryBlockTemplates',
|
|
125
|
+
defaultMessage: 'Block templates',
|
|
126
|
+
description: 'Block template items in the Quick Insert menu.'
|
|
127
|
+
},
|
|
128
|
+
categoryOther: {
|
|
129
|
+
id: 'editor-common.quick-insert.categoryOther',
|
|
130
|
+
defaultMessage: 'Other',
|
|
131
|
+
description: 'Other items in the Quick Insert menu.'
|
|
87
132
|
}
|
|
88
133
|
});
|