@atlaskit/editor-common 110.27.0 → 110.27.2
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 +14 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +11 -2
- package/dist/cjs/media-single/MediaBadges.js +9 -2
- package/dist/cjs/messages/block-type.js +5 -0
- package/dist/cjs/messages/syncBlock.js +6 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +12 -3
- package/dist/es2019/media-single/MediaBadges.js +9 -3
- package/dist/es2019/messages/block-type.js +5 -0
- package/dist/es2019/messages/syncBlock.js +6 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +12 -3
- package/dist/esm/media-single/MediaBadges.js +9 -3
- package/dist/esm/messages/block-type.js +5 -0
- package/dist/esm/messages/syncBlock.js +6 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/block-type.d.ts +5 -0
- package/dist/types/messages/syncBlock.d.ts +5 -0
- package/dist/types/types/type-ahead.d.ts +1 -0
- package/dist/types-ts4.5/messages/block-type.d.ts +5 -0
- package/dist/types-ts4.5/messages/syncBlock.d.ts +5 -0
- package/dist/types-ts4.5/types/type-ahead.d.ts +1 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.27.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7e8c949e9c8c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7e8c949e9c8c0) -
|
|
8
|
+
[ux] Add new lozenge next to create synced block in toolbar and typeahead, and text updates
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 110.27.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 110.27.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -398,7 +398,8 @@ function ElementItem(_ref6) {
|
|
|
398
398
|
title = item.title,
|
|
399
399
|
description = item.description,
|
|
400
400
|
keyshortcut = item.keyshortcut,
|
|
401
|
-
isDisabled = item.isDisabled
|
|
401
|
+
isDisabled = item.isDisabled,
|
|
402
|
+
lozenge = item.lozenge;
|
|
402
403
|
return (0, _react2.jsx)(_tooltip.default, {
|
|
403
404
|
content: description,
|
|
404
405
|
testId: "element-item-tooltip-".concat(index)
|
|
@@ -424,7 +425,8 @@ function ElementItem(_ref6) {
|
|
|
424
425
|
title: title,
|
|
425
426
|
description: description,
|
|
426
427
|
keyshortcut: keyshortcut,
|
|
427
|
-
isDisabled: isDisabled
|
|
428
|
+
isDisabled: isDisabled,
|
|
429
|
+
lozenge: lozenge
|
|
428
430
|
})));
|
|
429
431
|
}
|
|
430
432
|
|
|
@@ -444,6 +446,7 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref8) {
|
|
|
444
446
|
var title = _ref8.title,
|
|
445
447
|
description = _ref8.description,
|
|
446
448
|
keyshortcut = _ref8.keyshortcut,
|
|
449
|
+
lozenge = _ref8.lozenge,
|
|
447
450
|
isDisabled = _ref8.isDisabled;
|
|
448
451
|
if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
|
|
449
452
|
return (
|
|
@@ -457,9 +460,15 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref8) {
|
|
|
457
460
|
space: "space.025"
|
|
458
461
|
}, (0, _react2.jsx)("div", {
|
|
459
462
|
css: itemTitleWrapper
|
|
463
|
+
}, (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true) ? (0, _react2.jsx)(_compiled.Flex, {
|
|
464
|
+
alignItems: "center",
|
|
465
|
+
gap: "space.050"
|
|
460
466
|
}, (0, _react2.jsx)(_compiled.Text, {
|
|
461
467
|
color: isDisabled ? 'color.text.disabled' : undefined,
|
|
462
468
|
maxLines: 1
|
|
469
|
+
}, title), lozenge) : (0, _react2.jsx)(_compiled.Text, {
|
|
470
|
+
color: isDisabled ? 'color.text.disabled' : undefined,
|
|
471
|
+
maxLines: 1
|
|
463
472
|
}, title), (0, _react2.jsx)("div", {
|
|
464
473
|
css: itemAfter
|
|
465
474
|
}, keyshortcut && (0, _react2.jsx)("div", {
|
|
@@ -9,6 +9,7 @@ exports.MediaBadges = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _primitives = require("@atlaskit/primitives");
|
|
13
14
|
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); }
|
|
14
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -77,8 +78,14 @@ var MediaBadges = exports.MediaBadges = function MediaBadges(_ref) {
|
|
|
77
78
|
visible: visible
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
|
|
82
|
+
// delete this block on cleanup of media-perf-uplift-mutation-fix
|
|
83
|
+
if (!(0, _platformFeatureFlags.fg)('media-perf-uplift-mutation-fix')) {
|
|
84
|
+
// becuase it is wrapped in a fragment, React.Children.count(children) will always be 1.
|
|
85
|
+
// That makes this check a source of late mutations that we don't need.
|
|
86
|
+
if (!mediaElement || _react.default.Children.count(children) === 0) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
82
89
|
}
|
|
83
90
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
84
91
|
as: "div",
|
|
@@ -161,6 +161,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
161
161
|
defaultMessage: 'Sync content across multiple locations',
|
|
162
162
|
description: 'Description of the synced block that auto-updates content across Atlassian apps'
|
|
163
163
|
},
|
|
164
|
+
newLozenge: {
|
|
165
|
+
id: 'fabric.editor.quickinsert.new.lozenge',
|
|
166
|
+
defaultMessage: 'New',
|
|
167
|
+
description: 'Text in lozenge that appears next to new quick insert items'
|
|
168
|
+
},
|
|
164
169
|
panel: {
|
|
165
170
|
id: 'fabric.editor.panel',
|
|
166
171
|
defaultMessage: 'Panel',
|
|
@@ -108,7 +108,12 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
108
108
|
},
|
|
109
109
|
createSyncBlockLabel: {
|
|
110
110
|
id: 'fabric.editor.createSyncBlockLabel',
|
|
111
|
-
defaultMessage: 'Create
|
|
111
|
+
defaultMessage: 'Create synced block',
|
|
112
112
|
description: 'Label for button which creates a new synced block'
|
|
113
|
+
},
|
|
114
|
+
newLozenge: {
|
|
115
|
+
id: 'fabric.editor.syncBlock.toolbar.newLozenge',
|
|
116
|
+
defaultMessage: 'New',
|
|
117
|
+
description: 'Text in lozenge that appears next to the create synced block button in the toolbar dropdown menu to show that it is a new feature'
|
|
113
118
|
}
|
|
114
119
|
});
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
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
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "110.
|
|
19
|
+
var packageVersion = "110.27.1";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "110.
|
|
27
|
+
var packageVersion = "110.27.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -15,7 +15,7 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
15
15
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
16
16
|
import { ButtonItem } from '@atlaskit/menu';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import { Stack, Text } from '@atlaskit/primitives/compiled';
|
|
18
|
+
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
20
|
import Tooltip from '@atlaskit/tooltip';
|
|
21
21
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
@@ -389,7 +389,8 @@ export function ElementItem({
|
|
|
389
389
|
title,
|
|
390
390
|
description,
|
|
391
391
|
keyshortcut,
|
|
392
|
-
isDisabled
|
|
392
|
+
isDisabled,
|
|
393
|
+
lozenge
|
|
393
394
|
} = item;
|
|
394
395
|
return jsx(Tooltip, {
|
|
395
396
|
content: description,
|
|
@@ -416,7 +417,8 @@ export function ElementItem({
|
|
|
416
417
|
title: title,
|
|
417
418
|
description: description,
|
|
418
419
|
keyshortcut: keyshortcut,
|
|
419
|
-
isDisabled: isDisabled
|
|
420
|
+
isDisabled: isDisabled,
|
|
421
|
+
lozenge: lozenge
|
|
420
422
|
})));
|
|
421
423
|
}
|
|
422
424
|
|
|
@@ -435,6 +437,7 @@ const ItemContent = /*#__PURE__*/memo(({
|
|
|
435
437
|
title,
|
|
436
438
|
description,
|
|
437
439
|
keyshortcut,
|
|
440
|
+
lozenge,
|
|
438
441
|
isDisabled
|
|
439
442
|
}) => {
|
|
440
443
|
if (fg('platform_editor_typography_ugc')) {
|
|
@@ -449,9 +452,15 @@ const ItemContent = /*#__PURE__*/memo(({
|
|
|
449
452
|
space: "space.025"
|
|
450
453
|
}, jsx("div", {
|
|
451
454
|
css: itemTitleWrapper
|
|
455
|
+
}, expValEquals('platform_synced_block', 'isEnabled', true) ? jsx(Flex, {
|
|
456
|
+
alignItems: "center",
|
|
457
|
+
gap: "space.050"
|
|
452
458
|
}, jsx(Text, {
|
|
453
459
|
color: isDisabled ? 'color.text.disabled' : undefined,
|
|
454
460
|
maxLines: 1
|
|
461
|
+
}, title), lozenge) : jsx(Text, {
|
|
462
|
+
color: isDisabled ? 'color.text.disabled' : undefined,
|
|
463
|
+
maxLines: 1
|
|
455
464
|
}, title), jsx("div", {
|
|
456
465
|
css: itemAfter
|
|
457
466
|
}, keyshortcut && jsx("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
|
-
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
6
|
const MEDIA_BADGE_VISIBILITY_BREAKPOINT = 200;
|
|
@@ -64,8 +64,14 @@ export const MediaBadges = ({
|
|
|
64
64
|
visible
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
|
|
68
|
+
// delete this block on cleanup of media-perf-uplift-mutation-fix
|
|
69
|
+
if (!fg('media-perf-uplift-mutation-fix')) {
|
|
70
|
+
// becuase it is wrapped in a fragment, React.Children.count(children) will always be 1.
|
|
71
|
+
// That makes this check a source of late mutations that we don't need.
|
|
72
|
+
if (!mediaElement || React.Children.count(children) === 0) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
69
75
|
}
|
|
70
76
|
return /*#__PURE__*/React.createElement(Box, {
|
|
71
77
|
as: "div",
|
|
@@ -155,6 +155,11 @@ export const messages = defineMessages({
|
|
|
155
155
|
defaultMessage: 'Sync content across multiple locations',
|
|
156
156
|
description: 'Description of the synced block that auto-updates content across Atlassian apps'
|
|
157
157
|
},
|
|
158
|
+
newLozenge: {
|
|
159
|
+
id: 'fabric.editor.quickinsert.new.lozenge',
|
|
160
|
+
defaultMessage: 'New',
|
|
161
|
+
description: 'Text in lozenge that appears next to new quick insert items'
|
|
162
|
+
},
|
|
158
163
|
panel: {
|
|
159
164
|
id: 'fabric.editor.panel',
|
|
160
165
|
defaultMessage: 'Panel',
|
|
@@ -102,7 +102,12 @@ export const syncBlockMessages = defineMessages({
|
|
|
102
102
|
},
|
|
103
103
|
createSyncBlockLabel: {
|
|
104
104
|
id: 'fabric.editor.createSyncBlockLabel',
|
|
105
|
-
defaultMessage: 'Create
|
|
105
|
+
defaultMessage: 'Create synced block',
|
|
106
106
|
description: 'Label for button which creates a new synced block'
|
|
107
|
+
},
|
|
108
|
+
newLozenge: {
|
|
109
|
+
id: 'fabric.editor.syncBlock.toolbar.newLozenge',
|
|
110
|
+
defaultMessage: 'New',
|
|
111
|
+
description: 'Text in lozenge that appears next to the create synced block button in the toolbar dropdown menu to show that it is a new feature'
|
|
107
112
|
}
|
|
108
113
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "110.
|
|
4
|
+
const packageVersion = "110.27.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "110.
|
|
17
|
+
const packageVersion = "110.27.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -16,7 +16,7 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
16
16
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
17
17
|
import { ButtonItem } from '@atlaskit/menu';
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
-
import { Stack, Text } from '@atlaskit/primitives/compiled';
|
|
19
|
+
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
21
|
import Tooltip from '@atlaskit/tooltip';
|
|
22
22
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
@@ -387,7 +387,8 @@ export function ElementItem(_ref6) {
|
|
|
387
387
|
title = item.title,
|
|
388
388
|
description = item.description,
|
|
389
389
|
keyshortcut = item.keyshortcut,
|
|
390
|
-
isDisabled = item.isDisabled
|
|
390
|
+
isDisabled = item.isDisabled,
|
|
391
|
+
lozenge = item.lozenge;
|
|
391
392
|
return jsx(Tooltip, {
|
|
392
393
|
content: description,
|
|
393
394
|
testId: "element-item-tooltip-".concat(index)
|
|
@@ -413,7 +414,8 @@ export function ElementItem(_ref6) {
|
|
|
413
414
|
title: title,
|
|
414
415
|
description: description,
|
|
415
416
|
keyshortcut: keyshortcut,
|
|
416
|
-
isDisabled: isDisabled
|
|
417
|
+
isDisabled: isDisabled,
|
|
418
|
+
lozenge: lozenge
|
|
417
419
|
})));
|
|
418
420
|
}
|
|
419
421
|
|
|
@@ -433,6 +435,7 @@ var ItemContent = /*#__PURE__*/memo(function (_ref8) {
|
|
|
433
435
|
var title = _ref8.title,
|
|
434
436
|
description = _ref8.description,
|
|
435
437
|
keyshortcut = _ref8.keyshortcut,
|
|
438
|
+
lozenge = _ref8.lozenge,
|
|
436
439
|
isDisabled = _ref8.isDisabled;
|
|
437
440
|
if (fg('platform_editor_typography_ugc')) {
|
|
438
441
|
return (
|
|
@@ -446,9 +449,15 @@ var ItemContent = /*#__PURE__*/memo(function (_ref8) {
|
|
|
446
449
|
space: "space.025"
|
|
447
450
|
}, jsx("div", {
|
|
448
451
|
css: itemTitleWrapper
|
|
452
|
+
}, expValEquals('platform_synced_block', 'isEnabled', true) ? jsx(Flex, {
|
|
453
|
+
alignItems: "center",
|
|
454
|
+
gap: "space.050"
|
|
449
455
|
}, jsx(Text, {
|
|
450
456
|
color: isDisabled ? 'color.text.disabled' : undefined,
|
|
451
457
|
maxLines: 1
|
|
458
|
+
}, title), lozenge) : jsx(Text, {
|
|
459
|
+
color: isDisabled ? 'color.text.disabled' : undefined,
|
|
460
|
+
maxLines: 1
|
|
452
461
|
}, title), jsx("div", {
|
|
453
462
|
css: itemAfter
|
|
454
463
|
}, keyshortcut && jsx("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
|
-
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
6
6
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
7
7
|
var MEDIA_BADGE_VISIBILITY_BREAKPOINT = 200;
|
|
@@ -68,8 +68,14 @@ export var MediaBadges = function MediaBadges(_ref) {
|
|
|
68
68
|
visible: visible
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
|
|
72
|
+
// delete this block on cleanup of media-perf-uplift-mutation-fix
|
|
73
|
+
if (!fg('media-perf-uplift-mutation-fix')) {
|
|
74
|
+
// becuase it is wrapped in a fragment, React.Children.count(children) will always be 1.
|
|
75
|
+
// That makes this check a source of late mutations that we don't need.
|
|
76
|
+
if (!mediaElement || React.Children.count(children) === 0) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
73
79
|
}
|
|
74
80
|
return /*#__PURE__*/React.createElement(Box, {
|
|
75
81
|
as: "div",
|
|
@@ -155,6 +155,11 @@ export var messages = defineMessages({
|
|
|
155
155
|
defaultMessage: 'Sync content across multiple locations',
|
|
156
156
|
description: 'Description of the synced block that auto-updates content across Atlassian apps'
|
|
157
157
|
},
|
|
158
|
+
newLozenge: {
|
|
159
|
+
id: 'fabric.editor.quickinsert.new.lozenge',
|
|
160
|
+
defaultMessage: 'New',
|
|
161
|
+
description: 'Text in lozenge that appears next to new quick insert items'
|
|
162
|
+
},
|
|
158
163
|
panel: {
|
|
159
164
|
id: 'fabric.editor.panel',
|
|
160
165
|
defaultMessage: 'Panel',
|
|
@@ -102,7 +102,12 @@ export var syncBlockMessages = defineMessages({
|
|
|
102
102
|
},
|
|
103
103
|
createSyncBlockLabel: {
|
|
104
104
|
id: 'fabric.editor.createSyncBlockLabel',
|
|
105
|
-
defaultMessage: 'Create
|
|
105
|
+
defaultMessage: 'Create synced block',
|
|
106
106
|
description: 'Label for button which creates a new synced block'
|
|
107
|
+
},
|
|
108
|
+
newLozenge: {
|
|
109
|
+
id: 'fabric.editor.syncBlock.toolbar.newLozenge',
|
|
110
|
+
defaultMessage: 'New',
|
|
111
|
+
description: 'Text in lozenge that appears next to the create synced block button in the toolbar dropdown menu to show that it is a new feature'
|
|
107
112
|
}
|
|
108
113
|
});
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "110.
|
|
10
|
+
var packageVersion = "110.27.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "110.
|
|
24
|
+
var packageVersion = "110.27.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -39,6 +39,7 @@ export type TypeAheadItem = {
|
|
|
39
39
|
isDisabledOffline?: boolean;
|
|
40
40
|
key?: string | number;
|
|
41
41
|
keyshortcut?: string;
|
|
42
|
+
lozenge?: ReactNode;
|
|
42
43
|
render?: (props: TypeAheadItemRenderProps) => React.ReactElement<TypeAheadItemRenderProps> | null;
|
|
43
44
|
title: string;
|
|
44
45
|
};
|
|
@@ -39,6 +39,7 @@ export type TypeAheadItem = {
|
|
|
39
39
|
isDisabledOffline?: boolean;
|
|
40
40
|
key?: string | number;
|
|
41
41
|
keyshortcut?: string;
|
|
42
|
+
lozenge?: ReactNode;
|
|
42
43
|
render?: (props: TypeAheadItemRenderProps) => React.ReactElement<TypeAheadItemRenderProps> | null;
|
|
43
44
|
title: string;
|
|
44
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.27.
|
|
3
|
+
"version": "110.27.2",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
33
33
|
"@atlaskit/adf-schema": "^51.3.2",
|
|
34
34
|
"@atlaskit/adf-utils": "^19.26.0",
|
|
35
|
-
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.
|
|
35
|
+
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.10.0",
|
|
36
36
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/editor-toolbar": "^0.17.0",
|
|
52
52
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
53
53
|
"@atlaskit/emoji": "^69.7.0",
|
|
54
|
-
"@atlaskit/icon": "^
|
|
54
|
+
"@atlaskit/icon": "^29.0.0",
|
|
55
55
|
"@atlaskit/icon-object": "^7.3.0",
|
|
56
56
|
"@atlaskit/link": "^3.2.0",
|
|
57
57
|
"@atlaskit/link-datasource": "^4.29.0",
|
|
@@ -186,6 +186,9 @@
|
|
|
186
186
|
"platform_editor_multi_body_extension_extensibility": {
|
|
187
187
|
"type": "boolean"
|
|
188
188
|
},
|
|
189
|
+
"media-perf-uplift-mutation-fix": {
|
|
190
|
+
"type": "boolean"
|
|
191
|
+
},
|
|
189
192
|
"platform_editor_ai_local_id_short": {
|
|
190
193
|
"type": "boolean"
|
|
191
194
|
},
|