@atlaskit/editor-common 117.2.2 → 117.3.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 +54 -0
- package/analytics/types/quick-insert-events/package.json +10 -0
- package/block-menu/block-transform-extension/package.json +10 -0
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/analytics/types/quick-insert-events.js +5 -0
- package/dist/cjs/block-menu/block-transform-extension.js +5 -0
- package/dist/cjs/messages/mentions.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/getQuickInsertMenuItemParents.js +62 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +28 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +75 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +60 -0
- package/dist/cjs/ui-color/index.js +7 -0
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/analytics/types/quick-insert-events.js +1 -0
- package/dist/es2019/block-menu/block-transform-extension.js +1 -0
- package/dist/es2019/messages/mentions.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/getQuickInsertMenuItemParents.js +40 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +21 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +75 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +60 -0
- package/dist/es2019/ui-color/index.js +1 -0
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/analytics/types/quick-insert-events.js +1 -0
- package/dist/esm/block-menu/block-transform-extension.js +1 -0
- package/dist/esm/messages/mentions.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/getQuickInsertMenuItemParents.js +55 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +21 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +75 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +60 -0
- package/dist/esm/ui-color/index.js +1 -0
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +8 -1
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/quick-insert-events.d.ts +41 -0
- package/dist/types/block-menu/block-transform-extension.d.ts +13 -0
- package/dist/types/block-menu/rank-deprecated.d.ts +60 -8
- package/dist/types/block-menu/rank.d.ts +56 -11
- package/dist/types/extensions/types/extension-manifest.d.ts +2 -0
- package/dist/types/messages/mentions.d.ts +0 -5
- package/dist/types/quick-insert/getQuickInsertMenuItemParents.d.ts +11 -0
- package/dist/types/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.d.ts +8 -0
- package/dist/types/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.d.ts +75 -0
- package/dist/types/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +60 -0
- package/dist/types/ui-color/index.d.ts +1 -0
- package/package.json +5 -5
- package/quick-insert/get-menu-item-parents/package.json +10 -0
- package/tsconfig.json +5 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 117.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`337e6777c26aa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/337e6777c26aa) -
|
|
8
|
+
Add Block Menu transform extension APIs. Extension manifests can declare ADF-only transform
|
|
9
|
+
capabilities without importing Editor internals:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
const extensionNode = {
|
|
13
|
+
blockTransform: {
|
|
14
|
+
key: 'convert-tabs-to-panel',
|
|
15
|
+
isSupported: ({ targetTypeName }) => targetTypeName === 'panel',
|
|
16
|
+
transform: ({ source }) => ({ output: [{ type: 'panel', content: source.content }] }),
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The Extension Plugin registers each keyed transform with Block Menu after manifests load. Block
|
|
22
|
+
Menu checks support, validates returned ADF, and owns replacement, selection, history, focus, and
|
|
23
|
+
analytics.
|
|
24
|
+
|
|
25
|
+
- [`34a4b81d50881`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/34a4b81d50881) -
|
|
26
|
+
Revert the mentions invite item to a whole-row selection trigger, removing the separate Invite
|
|
27
|
+
button
|
|
28
|
+
- [`b0682afb9fdf1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b0682afb9fdf1) -
|
|
29
|
+
Add lime, orange and magenta colours to the table cell background colour palette.
|
|
30
|
+
- [`cdb267f0c9d61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cdb267f0c9d61) -
|
|
31
|
+
Add experiment-gated passive Quick Insert information analytics with queryable app counts for
|
|
32
|
+
current and legacy categories. Consumers can map legacy provider categories to current Quick
|
|
33
|
+
Insert sections with `getQuickInsertMenuItemParents` from
|
|
34
|
+
`@atlaskit/editor-common/quick-insert/get-menu-item-parents`.
|
|
35
|
+
- [`c7e5aadc6bce1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c7e5aadc6bce1) -
|
|
36
|
+
The `aiSuggestions` `refreshSuggestions` action now takes an options object instead of a
|
|
37
|
+
positional `poll` argument, which was unused: `refreshSuggestions(false)` becomes
|
|
38
|
+
`refreshSuggestions()`.
|
|
39
|
+
|
|
40
|
+
Adds a `regenerateOnly` option to that object, which reconciles the suggestions already in plugin
|
|
41
|
+
state against the current document (regenerating stale ones in place) instead of re-fetching. Also
|
|
42
|
+
adds a `suggestionsPanelMount` entry point for generations started automatically when a
|
|
43
|
+
suggestions surface is opened.
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- [`c0fa56559ae63`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0fa56559ae63) -
|
|
48
|
+
Improve generated declaration accuracy and restore code-insights production declarations.
|
|
49
|
+
- Updated dependencies
|
|
50
|
+
|
|
51
|
+
## 117.2.3
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Updated dependencies
|
|
56
|
+
|
|
3
57
|
## 117.2.2
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/analytics/types/quick-insert-events",
|
|
3
|
+
"main": "../../../dist/cjs/analytics/types/quick-insert-events.js",
|
|
4
|
+
"module": "../../../dist/esm/analytics/types/quick-insert-events.js",
|
|
5
|
+
"module:es2019": "../../../dist/es2019/analytics/types/quick-insert-events.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../../dist/types/analytics/types/quick-insert-events.d.ts"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/block-menu/block-transform-extension",
|
|
3
|
+
"main": "../../dist/cjs/block-menu/block-transform-extension.js",
|
|
4
|
+
"module": "../../dist/esm/block-menu/block-transform-extension.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/block-menu/block-transform-extension.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/block-menu/block-transform-extension.d.ts"
|
|
10
|
+
}
|
|
@@ -114,6 +114,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
114
114
|
ACTION["PASTED_AS_PLAIN"] = "pastedAsPlain";
|
|
115
115
|
ACTION["PASTED_TIMED"] = "pastedTimed";
|
|
116
116
|
ACTION["PRESSED"] = "pressed";
|
|
117
|
+
ACTION["QUICK_INSERT_INFORMATION"] = "quickInsertInformation";
|
|
117
118
|
ACTION["PROSEMIRROR_RENDERED"] = "proseMirrorRendered";
|
|
118
119
|
ACTION["REACT_NODEVIEW_RENDERED"] = "reactNodeViewRendered";
|
|
119
120
|
ACTION["REFERENCE_SYNCED_BLOCK_DELETE"] = "referenceSyncedBlockDelete";
|
|
@@ -398,6 +399,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
398
399
|
ACTION_SUBJECT["BLOCK_MENU"] = "blockMenu";
|
|
399
400
|
ACTION_SUBJECT["BLOCK_MENU_ITEM"] = "blockMenuItem";
|
|
400
401
|
ACTION_SUBJECT["PASTE_ACTIONS_MENU"] = "pasteActionsMenu";
|
|
402
|
+
ACTION_SUBJECT["QUICK_INSERT"] = "quickInsert";
|
|
401
403
|
ACTION_SUBJECT["SYNCED_BLOCK"] = "syncedBlock";
|
|
402
404
|
ACTION_SUBJECT["NATIVE_EMBED"] = "nativeEmbed";
|
|
403
405
|
ACTION_SUBJECT["NATIVE_EMBED_FALLBACK"] = "nativeEmbedFallback";
|
|
@@ -41,11 +41,6 @@ var mentionMessages = exports.mentionMessages = (0, _reactIntl.defineMessages)({
|
|
|
41
41
|
defaultMessage: 'Send request to invite teammate',
|
|
42
42
|
description: 'By line text for send request to invite teammate option shown in mentions.'
|
|
43
43
|
},
|
|
44
|
-
inviteButton: {
|
|
45
|
-
id: 'fabric.editor.inviteItem.inviteButton',
|
|
46
|
-
defaultMessage: 'Invite',
|
|
47
|
-
description: 'Label for the invite button shown in the mention typeahead invite item.'
|
|
48
|
-
},
|
|
49
44
|
typeAheadSectionPeople: {
|
|
50
45
|
id: 'fabric.editor.typeAhead.mentionSection.people',
|
|
51
46
|
defaultMessage: 'People',
|
|
@@ -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.2.
|
|
31
|
+
var packageVersion = "117.2.3";
|
|
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,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getQuickInsertMenuItemParents = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _keys = require("./keys");
|
|
10
|
+
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
|
+
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
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
var categorySections = {
|
|
16
|
+
admin: _keys.STRUCTURE_SECTION,
|
|
17
|
+
ai: _keys.ROVO_SECTION,
|
|
18
|
+
'block-templates': _keys.BLOCK_TEMPLATES_SECTION,
|
|
19
|
+
communication: _keys.MEDIA_SECTION,
|
|
20
|
+
'confluence-content': _keys.STRUCTURE_SECTION,
|
|
21
|
+
'data-and-charts': _keys.DATA_AND_CHARTS_SECTION,
|
|
22
|
+
development: _keys.DATA_AND_CHARTS_SECTION,
|
|
23
|
+
embed: _keys.EMBED_SECTION,
|
|
24
|
+
'external-content': _keys.EMBED_SECTION,
|
|
25
|
+
formatting: _keys.STRUCTURE_SECTION,
|
|
26
|
+
media: _keys.MEDIA_SECTION,
|
|
27
|
+
navigation: _keys.STRUCTURE_SECTION,
|
|
28
|
+
other: _keys.OTHER_SECTION,
|
|
29
|
+
reporting: _keys.DATA_AND_CHARTS_SECTION,
|
|
30
|
+
skills: _keys.ROVO_SECTION,
|
|
31
|
+
structure: _keys.STRUCTURE_SECTION,
|
|
32
|
+
'text-formatting': _keys.TEXT_FORMATTING_SECTION,
|
|
33
|
+
visuals: _keys.MEDIA_SECTION
|
|
34
|
+
};
|
|
35
|
+
var getQuickInsertMenuItemParents = exports.getQuickInsertMenuItemParents = function getQuickInsertMenuItemParents(_ref) {
|
|
36
|
+
var categories = _ref.categories,
|
|
37
|
+
rank = _ref.rank;
|
|
38
|
+
var sections = new Map();
|
|
39
|
+
var _iterator = _createForOfIteratorHelper(categories !== null && categories !== void 0 ? categories : []),
|
|
40
|
+
_step;
|
|
41
|
+
try {
|
|
42
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
43
|
+
var category = _step.value;
|
|
44
|
+
var section = categorySections[category.trim().toLowerCase()];
|
|
45
|
+
if (section) {
|
|
46
|
+
sections.set(section.key, section);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
} catch (err) {
|
|
50
|
+
_iterator.e(err);
|
|
51
|
+
} finally {
|
|
52
|
+
_iterator.f();
|
|
53
|
+
}
|
|
54
|
+
if (sections.size === 0) {
|
|
55
|
+
sections.set(_keys.OTHER_SECTION.key, _keys.OTHER_SECTION);
|
|
56
|
+
}
|
|
57
|
+
return Array.from(sections.values(), function (section) {
|
|
58
|
+
return _objectSpread(_objectSpread({}, section), {}, {
|
|
59
|
+
rank: rank
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
};
|
|
@@ -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.2.
|
|
27
|
+
var packageVersion = "117.2.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _tableNodes = require("@atlaskit/adf-schema/tableNodes");
|
|
9
|
+
var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
|
|
10
|
+
var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
|
|
11
|
+
/**
|
|
12
|
+
* Expanded 10-column (30-entry) UI palette that adds lime, orange, and magenta columns
|
|
13
|
+
* and updates the bold row to use `subtler.hovered` design tokens.
|
|
14
|
+
* This is a superset of the default {@link cellBackgroundColorPalette}.
|
|
15
|
+
*/
|
|
16
|
+
var cellBackgroundColorPaletteNew = [];
|
|
17
|
+
_tableNodes.tableBackgroundColorPaletteNew.forEach(function (label, color) {
|
|
18
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
19
|
+
var key = label.toLowerCase().replace(' ', '-');
|
|
20
|
+
var message = (0, _getColorMessage.default)(_paletteMessages.default, key);
|
|
21
|
+
cellBackgroundColorPaletteNew.push({
|
|
22
|
+
value: color,
|
|
23
|
+
label: label,
|
|
24
|
+
border: _tableNodes.tableBackgroundBorderColor,
|
|
25
|
+
message: message
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _default = exports.default = cellBackgroundColorPaletteNew;
|
|
@@ -21,6 +21,11 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
|
|
|
21
21
|
defaultMessage: 'Bold blue',
|
|
22
22
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold blue color option.'
|
|
23
23
|
},
|
|
24
|
+
'#ADCBFB': {
|
|
25
|
+
id: 'fabric.theme.bold-blue-new',
|
|
26
|
+
defaultMessage: 'Bold blue',
|
|
27
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold blue color option.'
|
|
28
|
+
},
|
|
24
29
|
'#E6FCFF': {
|
|
25
30
|
id: 'fabric.theme.subtle-teal',
|
|
26
31
|
defaultMessage: 'Subtle teal',
|
|
@@ -36,6 +41,11 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
|
|
|
36
41
|
defaultMessage: 'Bold teal',
|
|
37
42
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold teal color option.'
|
|
38
43
|
},
|
|
44
|
+
'#B1E4F7': {
|
|
45
|
+
id: 'fabric.theme.bold-teal-new',
|
|
46
|
+
defaultMessage: 'Bold teal',
|
|
47
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold teal color option.'
|
|
48
|
+
},
|
|
39
49
|
'#E3FCEF': {
|
|
40
50
|
id: 'fabric.theme.subtle-green',
|
|
41
51
|
defaultMessage: 'Subtle green',
|
|
@@ -51,6 +61,11 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
|
|
|
51
61
|
defaultMessage: 'Bold green',
|
|
52
62
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold green color option.'
|
|
53
63
|
},
|
|
64
|
+
'#97EDC9': {
|
|
65
|
+
id: 'fabric.theme.bold-green-new',
|
|
66
|
+
defaultMessage: 'Bold green',
|
|
67
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold green color option.'
|
|
68
|
+
},
|
|
54
69
|
'#FFFAE6': {
|
|
55
70
|
id: 'fabric.theme.subtle-yellow',
|
|
56
71
|
defaultMessage: 'Subtle yellow',
|
|
@@ -86,6 +101,11 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
|
|
|
86
101
|
defaultMessage: 'Bold red',
|
|
87
102
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold red color option.'
|
|
88
103
|
},
|
|
104
|
+
'#FFB8B2': {
|
|
105
|
+
id: 'fabric.theme.bold-red-new',
|
|
106
|
+
defaultMessage: 'Bold red',
|
|
107
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold red color option.'
|
|
108
|
+
},
|
|
89
109
|
'#EAE6FF': {
|
|
90
110
|
id: 'fabric.theme.subtle-purple',
|
|
91
111
|
defaultMessage: 'Subtle purple',
|
|
@@ -101,6 +121,11 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
|
|
|
101
121
|
defaultMessage: 'Bold purple',
|
|
102
122
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold purple color option.'
|
|
103
123
|
},
|
|
124
|
+
'#E3BDFA': {
|
|
125
|
+
id: 'fabric.theme.bold-purple-new',
|
|
126
|
+
defaultMessage: 'Bold purple',
|
|
127
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold purple color option.'
|
|
128
|
+
},
|
|
104
129
|
'#FFFFFF': {
|
|
105
130
|
id: 'fabric.theme.white',
|
|
106
131
|
defaultMessage: 'White',
|
|
@@ -115,5 +140,55 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
|
|
|
115
140
|
id: 'fabric.theme.bold-gray',
|
|
116
141
|
defaultMessage: 'Bold gray',
|
|
117
142
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold gray color option.'
|
|
143
|
+
},
|
|
144
|
+
'#B7B9BE': {
|
|
145
|
+
id: 'fabric.theme.bold-gray-new',
|
|
146
|
+
defaultMessage: 'Bold gray',
|
|
147
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold gray color option.'
|
|
148
|
+
},
|
|
149
|
+
'#EFFFD6': {
|
|
150
|
+
id: 'fabric.theme.subtle-lime',
|
|
151
|
+
defaultMessage: 'Subtle lime',
|
|
152
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle lime color option.'
|
|
153
|
+
},
|
|
154
|
+
'#D3F1A7': {
|
|
155
|
+
id: 'fabric.theme.lime',
|
|
156
|
+
defaultMessage: 'Lime',
|
|
157
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the lime color option.'
|
|
158
|
+
},
|
|
159
|
+
'#BDE97C': {
|
|
160
|
+
id: 'fabric.theme.bold-lime',
|
|
161
|
+
defaultMessage: 'Bold lime',
|
|
162
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold lime color option.'
|
|
163
|
+
},
|
|
164
|
+
'#FFF5DB': {
|
|
165
|
+
id: 'fabric.theme.subtle-orange',
|
|
166
|
+
defaultMessage: 'Subtle orange',
|
|
167
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle orange color option.'
|
|
168
|
+
},
|
|
169
|
+
'#FCE4A6': {
|
|
170
|
+
id: 'fabric.theme.orange',
|
|
171
|
+
defaultMessage: 'Orange',
|
|
172
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the orange color option.'
|
|
173
|
+
},
|
|
174
|
+
'#FBD779': {
|
|
175
|
+
id: 'fabric.theme.bold-orange',
|
|
176
|
+
defaultMessage: 'Bold orange',
|
|
177
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold orange color option.'
|
|
178
|
+
},
|
|
179
|
+
'#FFECF8': {
|
|
180
|
+
id: 'fabric.theme.subtle-magenta',
|
|
181
|
+
defaultMessage: 'Subtle magenta',
|
|
182
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle magenta color option.'
|
|
183
|
+
},
|
|
184
|
+
'#FDD0EC': {
|
|
185
|
+
id: 'fabric.theme.magenta',
|
|
186
|
+
defaultMessage: 'Magenta',
|
|
187
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the magenta color option.'
|
|
188
|
+
},
|
|
189
|
+
'#FCB6E1': {
|
|
190
|
+
id: 'fabric.theme.bold-magenta',
|
|
191
|
+
defaultMessage: 'Bold magenta',
|
|
192
|
+
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold magenta color option.'
|
|
118
193
|
}
|
|
119
194
|
});
|
|
@@ -156,6 +156,66 @@ var _default_1 = (0, _reactIntl.defineMessages)({
|
|
|
156
156
|
defaultMessage: 'Bold gray',
|
|
157
157
|
description: 'Tooltip label for the bold gray color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
158
158
|
},
|
|
159
|
+
'subtle-lime': {
|
|
160
|
+
id: 'fabric.theme.subtle-lime',
|
|
161
|
+
defaultMessage: 'Subtle lime',
|
|
162
|
+
description: 'Tooltip label for the subtle lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
163
|
+
},
|
|
164
|
+
'bold-lime': {
|
|
165
|
+
id: 'fabric.theme.bold-lime',
|
|
166
|
+
defaultMessage: 'Bold lime',
|
|
167
|
+
description: 'Tooltip label for the bold lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
168
|
+
},
|
|
169
|
+
'subtle-orange': {
|
|
170
|
+
id: 'fabric.theme.subtle-orange',
|
|
171
|
+
defaultMessage: 'Subtle orange',
|
|
172
|
+
description: 'Tooltip label for the subtle orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
173
|
+
},
|
|
174
|
+
'bold-orange': {
|
|
175
|
+
id: 'fabric.theme.bold-orange',
|
|
176
|
+
defaultMessage: 'Bold orange',
|
|
177
|
+
description: 'Tooltip label for the bold orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
178
|
+
},
|
|
179
|
+
'subtle-magenta': {
|
|
180
|
+
id: 'fabric.theme.subtle-magenta',
|
|
181
|
+
defaultMessage: 'Subtle magenta',
|
|
182
|
+
description: 'Tooltip label for the subtle magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
183
|
+
},
|
|
184
|
+
'bold-magenta': {
|
|
185
|
+
id: 'fabric.theme.bold-magenta',
|
|
186
|
+
defaultMessage: 'Bold magenta',
|
|
187
|
+
description: 'Tooltip label for the bold magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
188
|
+
},
|
|
189
|
+
'bold-blue': {
|
|
190
|
+
id: 'fabric.theme.bold-blue',
|
|
191
|
+
defaultMessage: 'Bold blue',
|
|
192
|
+
description: 'Tooltip label for the bold blue color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
193
|
+
},
|
|
194
|
+
'bold-teal': {
|
|
195
|
+
id: 'fabric.theme.bold-teal',
|
|
196
|
+
defaultMessage: 'Bold teal',
|
|
197
|
+
description: 'Tooltip label for the bold teal color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
198
|
+
},
|
|
199
|
+
'bold-green': {
|
|
200
|
+
id: 'fabric.theme.bold-green',
|
|
201
|
+
defaultMessage: 'Bold green',
|
|
202
|
+
description: 'Tooltip label for the bold green color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
203
|
+
},
|
|
204
|
+
'bold-yellow': {
|
|
205
|
+
id: 'fabric.theme.bold-yellow',
|
|
206
|
+
defaultMessage: 'Bold yellow',
|
|
207
|
+
description: 'Tooltip label for the bold yellow color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
208
|
+
},
|
|
209
|
+
'bold-red': {
|
|
210
|
+
id: 'fabric.theme.bold-red',
|
|
211
|
+
defaultMessage: 'Bold red',
|
|
212
|
+
description: 'Tooltip label for the bold red color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
213
|
+
},
|
|
214
|
+
'bold-purple': {
|
|
215
|
+
id: 'fabric.theme.bold-purple',
|
|
216
|
+
defaultMessage: 'Bold purple',
|
|
217
|
+
description: 'Tooltip label for the bold purple color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
218
|
+
},
|
|
159
219
|
// Colors only used in highlight palette
|
|
160
220
|
'no-color': {
|
|
161
221
|
id: 'fabric.theme.no-color',
|
|
@@ -64,6 +64,12 @@ Object.defineProperty(exports, "cellBackgroundColorPalette", {
|
|
|
64
64
|
return _cellBackgroundColorPalette.default;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
+
Object.defineProperty(exports, "cellBackgroundColorPaletteNew", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function get() {
|
|
70
|
+
return _cellBackgroundColorPaletteNew.default;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
67
73
|
Object.defineProperty(exports, "chartsColorPaletteTooltipMessages", {
|
|
68
74
|
enumerable: true,
|
|
69
75
|
get: function get() {
|
|
@@ -175,6 +181,7 @@ var _utils = require("./ColorPalette/utils");
|
|
|
175
181
|
var _getHighlightColorInNonActiveTheme = require("./ColorPalette/getHighlightColorInNonActiveTheme");
|
|
176
182
|
var _getTextColorInNonActiveTheme = require("./ColorPalette/getTextColorInNonActiveTheme");
|
|
177
183
|
var _cellBackgroundColorPalette = _interopRequireDefault(require("./ColorPalette/Palettes/cellBackgroundColorPalette"));
|
|
184
|
+
var _cellBackgroundColorPaletteNew = _interopRequireDefault(require("./ColorPalette/Palettes/cellBackgroundColorPaletteNew"));
|
|
178
185
|
var _paletteMessages = _interopRequireDefault(require("./ColorPalette/Palettes/paletteMessages"));
|
|
179
186
|
var _panelBackgroundPalette = require("./ColorPalette/Palettes/panelBackgroundPalette");
|
|
180
187
|
var _panelBackgroundPaletteNew = require("./ColorPalette/Palettes/panelBackgroundPaletteNew");
|
|
@@ -110,6 +110,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
110
110
|
ACTION["PASTED_AS_PLAIN"] = "pastedAsPlain";
|
|
111
111
|
ACTION["PASTED_TIMED"] = "pastedTimed";
|
|
112
112
|
ACTION["PRESSED"] = "pressed";
|
|
113
|
+
ACTION["QUICK_INSERT_INFORMATION"] = "quickInsertInformation";
|
|
113
114
|
ACTION["PROSEMIRROR_RENDERED"] = "proseMirrorRendered";
|
|
114
115
|
ACTION["REACT_NODEVIEW_RENDERED"] = "reactNodeViewRendered";
|
|
115
116
|
ACTION["REFERENCE_SYNCED_BLOCK_DELETE"] = "referenceSyncedBlockDelete";
|
|
@@ -404,6 +405,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
404
405
|
ACTION_SUBJECT["BLOCK_MENU"] = "blockMenu";
|
|
405
406
|
ACTION_SUBJECT["BLOCK_MENU_ITEM"] = "blockMenuItem";
|
|
406
407
|
ACTION_SUBJECT["PASTE_ACTIONS_MENU"] = "pasteActionsMenu";
|
|
408
|
+
ACTION_SUBJECT["QUICK_INSERT"] = "quickInsert";
|
|
407
409
|
ACTION_SUBJECT["SYNCED_BLOCK"] = "syncedBlock";
|
|
408
410
|
ACTION_SUBJECT["NATIVE_EMBED"] = "nativeEmbed";
|
|
409
411
|
ACTION_SUBJECT["NATIVE_EMBED_FALLBACK"] = "nativeEmbedFallback";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -35,11 +35,6 @@ export const mentionMessages = defineMessages({
|
|
|
35
35
|
defaultMessage: 'Send request to invite teammate',
|
|
36
36
|
description: 'By line text for send request to invite teammate option shown in mentions.'
|
|
37
37
|
},
|
|
38
|
-
inviteButton: {
|
|
39
|
-
id: 'fabric.editor.inviteItem.inviteButton',
|
|
40
|
-
defaultMessage: 'Invite',
|
|
41
|
-
description: 'Label for the invite button shown in the mention typeahead invite item.'
|
|
42
|
-
},
|
|
43
38
|
typeAheadSectionPeople: {
|
|
44
39
|
id: 'fabric.editor.typeAhead.mentionSection.people',
|
|
45
40
|
defaultMessage: 'People',
|
|
@@ -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.2.
|
|
17
|
+
const packageVersion = "117.2.3";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BLOCK_TEMPLATES_SECTION, DATA_AND_CHARTS_SECTION, EMBED_SECTION, MEDIA_SECTION, OTHER_SECTION, ROVO_SECTION, STRUCTURE_SECTION, TEXT_FORMATTING_SECTION } from './keys';
|
|
2
|
+
const categorySections = {
|
|
3
|
+
admin: STRUCTURE_SECTION,
|
|
4
|
+
ai: ROVO_SECTION,
|
|
5
|
+
'block-templates': BLOCK_TEMPLATES_SECTION,
|
|
6
|
+
communication: MEDIA_SECTION,
|
|
7
|
+
'confluence-content': STRUCTURE_SECTION,
|
|
8
|
+
'data-and-charts': DATA_AND_CHARTS_SECTION,
|
|
9
|
+
development: DATA_AND_CHARTS_SECTION,
|
|
10
|
+
embed: EMBED_SECTION,
|
|
11
|
+
'external-content': EMBED_SECTION,
|
|
12
|
+
formatting: STRUCTURE_SECTION,
|
|
13
|
+
media: MEDIA_SECTION,
|
|
14
|
+
navigation: STRUCTURE_SECTION,
|
|
15
|
+
other: OTHER_SECTION,
|
|
16
|
+
reporting: DATA_AND_CHARTS_SECTION,
|
|
17
|
+
skills: ROVO_SECTION,
|
|
18
|
+
structure: STRUCTURE_SECTION,
|
|
19
|
+
'text-formatting': TEXT_FORMATTING_SECTION,
|
|
20
|
+
visuals: MEDIA_SECTION
|
|
21
|
+
};
|
|
22
|
+
export const getQuickInsertMenuItemParents = ({
|
|
23
|
+
categories,
|
|
24
|
+
rank
|
|
25
|
+
}) => {
|
|
26
|
+
const sections = new Map();
|
|
27
|
+
for (const category of categories !== null && categories !== void 0 ? categories : []) {
|
|
28
|
+
const section = categorySections[category.trim().toLowerCase()];
|
|
29
|
+
if (section) {
|
|
30
|
+
sections.set(section.key, section);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (sections.size === 0) {
|
|
34
|
+
sections.set(OTHER_SECTION.key, OTHER_SECTION);
|
|
35
|
+
}
|
|
36
|
+
return Array.from(sections.values(), section => ({
|
|
37
|
+
...section,
|
|
38
|
+
rank
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
@@ -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 = "117.2.
|
|
17
|
+
const packageVersion = "117.2.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tableBackgroundBorderColor, tableBackgroundColorPaletteNew } from '@atlaskit/adf-schema/tableNodes';
|
|
2
|
+
import getColorMessage from './getColorMessage';
|
|
3
|
+
import paletteMessages from './paletteMessages';
|
|
4
|
+
/**
|
|
5
|
+
* Expanded 10-column (30-entry) UI palette that adds lime, orange, and magenta columns
|
|
6
|
+
* and updates the bold row to use `subtler.hovered` design tokens.
|
|
7
|
+
* This is a superset of the default {@link cellBackgroundColorPalette}.
|
|
8
|
+
*/
|
|
9
|
+
const cellBackgroundColorPaletteNew = [];
|
|
10
|
+
tableBackgroundColorPaletteNew.forEach((label, color) => {
|
|
11
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
12
|
+
const key = label.toLowerCase().replace(' ', '-');
|
|
13
|
+
const message = getColorMessage(paletteMessages, key);
|
|
14
|
+
cellBackgroundColorPaletteNew.push({
|
|
15
|
+
value: color,
|
|
16
|
+
label,
|
|
17
|
+
border: tableBackgroundBorderColor,
|
|
18
|
+
message
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export default cellBackgroundColorPaletteNew;
|