@atlaskit/editor-common 86.2.0 → 86.2.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 +20 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +15 -1
- package/dist/cjs/utils/annotation/index.js +16 -8
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +15 -1
- package/dist/es2019/utils/annotation/index.js +16 -8
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/annotation.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +15 -1
- package/dist/esm/utils/annotation/index.js +16 -8
- package/dist/types/react-node-view/generateUniqueNodeKey.d.ts +1 -1
- package/dist/types/styles/shared/annotation.d.ts +6 -0
- package/dist/types-ts4.5/react-node-view/generateUniqueNodeKey.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +6 -0
- package/package.json +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 86.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#121764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121764)
|
|
8
|
+
[`50becb2c435c7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/50becb2c435c7) -
|
|
9
|
+
Fix color picker popup not opening in react 18
|
|
10
|
+
|
|
11
|
+
## 86.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#121315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121315)
|
|
16
|
+
[`f550b1a0c6e85`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f550b1a0c6e85) -
|
|
17
|
+
[ux] ED-24237 Fix comment appearances in renderer to match editor
|
|
18
|
+
- [#120992](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120992)
|
|
19
|
+
[`a61cfb5567823`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a61cfb5567823) -
|
|
20
|
+
ED-23357 Update annotation node name calculations to avoid crashes on invalid ranges
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 86.2.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "86.2.
|
|
20
|
+
var packageVersion = "86.2.2";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -36,7 +36,9 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
|
|
|
36
36
|
borderBottom: '2px solid transparent',
|
|
37
37
|
cursor: 'pointer',
|
|
38
38
|
padding: '1px 0 2px',
|
|
39
|
-
'&:has(.card), &:has([data-inline-card])': {
|
|
39
|
+
'&:has(.card), &:has([data-inline-card])': (0, _platformFeatureFlags.fg)('annotations_align_editor_and_renderer_styles') ? {
|
|
40
|
+
padding: '5px 0 3px 0'
|
|
41
|
+
} : {
|
|
40
42
|
paddingTop: '4px',
|
|
41
43
|
border: 'none',
|
|
42
44
|
boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")"))
|
|
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "86.2.
|
|
23
|
+
var packageVersion = "86.2.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -11,10 +11,12 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
12
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
13
13
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
16
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
17
|
var _analytics = require("../../analytics");
|
|
17
18
|
var _uiColor = require("../../ui-color");
|
|
19
|
+
var _uiReact = require("../../ui-react");
|
|
18
20
|
var _Popup = _interopRequireDefault(require("../../ui/Popup"));
|
|
19
21
|
var _withOuterListeners = _interopRequireDefault(require("../../ui/with-outer-listeners"));
|
|
20
22
|
var _ArrowKeyNavigationProvider = require("../ArrowKeyNavigationProvider");
|
|
@@ -46,6 +48,7 @@ var colorPickerWrapper = function colorPickerWrapper() {
|
|
|
46
48
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
47
49
|
|
|
48
50
|
var ColorPaletteWithListeners = (0, _withOuterListeners.default)(_uiColor.ColorPalette);
|
|
51
|
+
var ColorPaletteWithReactViewListeners = (0, _uiReact.withReactEditorViewOuterListeners)(_uiColor.ColorPalette);
|
|
49
52
|
var ColorPickerButton = function ColorPickerButton(props) {
|
|
50
53
|
var buttonRef = _react.default.useRef(null);
|
|
51
54
|
var _React$useState = _react.default.useState(false),
|
|
@@ -158,7 +161,18 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
158
161
|
isOpenedByKeyboard: isOpenedByKeyboard,
|
|
159
162
|
isPopupPositioned: isPopupPositioned,
|
|
160
163
|
ignoreEscapeKey: props.returnEscToButton
|
|
161
|
-
}, (0, _react2.jsx)(
|
|
164
|
+
}, (0, _platformFeatureFlags.fg)('react_18_color_picker_concurrent_mode') ? (0, _react2.jsx)(ColorPaletteWithReactViewListeners, {
|
|
165
|
+
cols: props.cols,
|
|
166
|
+
selectedColor: selectedColor,
|
|
167
|
+
onClick: onColorSelected,
|
|
168
|
+
handleClickOutside: togglePopup,
|
|
169
|
+
handleEscapeKeydown: handleEsc,
|
|
170
|
+
paletteOptions: {
|
|
171
|
+
palette: props.colorPalette,
|
|
172
|
+
hexToPaletteColor: props.hexToPaletteColor,
|
|
173
|
+
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
174
|
+
}
|
|
175
|
+
}) : (0, _react2.jsx)(ColorPaletteWithListeners, {
|
|
162
176
|
cols: props.cols,
|
|
163
177
|
selectedColor: selectedColor,
|
|
164
178
|
onClick: onColorSelected,
|
|
@@ -107,15 +107,23 @@ function getRangeInlineNodeNames(_ref) {
|
|
|
107
107
|
return undefined;
|
|
108
108
|
}
|
|
109
109
|
var nodeNames = new Set();
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
try {
|
|
111
|
+
doc.nodesBetween(pos.from, pos.to, function (node) {
|
|
112
|
+
if (node.isInline) {
|
|
113
|
+
nodeNames.add(node.type.name);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
115
116
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
// We sort the list alphabetically to make human consumption of the list easier (in tools like the analytics extension)
|
|
118
|
+
var sortedNames = (0, _toConsumableArray2.default)(nodeNames).sort();
|
|
119
|
+
return sortedNames;
|
|
120
|
+
} catch (_unused) {
|
|
121
|
+
// Some callers have existing gaps where the positions are not valid,
|
|
122
|
+
// and so when called in the current document can throw an error if out of range.
|
|
123
|
+
//
|
|
124
|
+
// This is a defensive check to ensure we don't throw an error in those cases.
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
/**
|
|
@@ -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 = "86.2.
|
|
4
|
+
const packageVersion = "86.2.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -28,7 +28,9 @@ export const AnnotationSharedCSSByState = () => {
|
|
|
28
28
|
borderBottom: '2px solid transparent',
|
|
29
29
|
cursor: 'pointer',
|
|
30
30
|
padding: '1px 0 2px',
|
|
31
|
-
'&:has(.card), &:has([data-inline-card])': {
|
|
31
|
+
'&:has(.card), &:has([data-inline-card])': fg('annotations_align_editor_and_renderer_styles') ? {
|
|
32
|
+
padding: '5px 0 3px 0'
|
|
33
|
+
} : {
|
|
32
34
|
paddingTop: '4px',
|
|
33
35
|
border: 'none',
|
|
34
36
|
boxShadow: `0 2px 0 0 ${`var(--ds-border-accent-yellow, ${Y200a})`}`
|
|
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
9
9
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "86.2.
|
|
12
|
+
const packageVersion = "86.2.2";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -6,10 +6,12 @@ import { css, jsx } from '@emotion/react';
|
|
|
6
6
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
7
|
import Button from '@atlaskit/button/standard-button';
|
|
8
8
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
10
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
12
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
12
13
|
import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
|
|
14
|
+
import { withReactEditorViewOuterListeners } from '../../ui-react';
|
|
13
15
|
import { default as Popup } from '../../ui/Popup';
|
|
14
16
|
import { default as withOuterListeners } from '../../ui/with-outer-listeners';
|
|
15
17
|
import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
@@ -36,6 +38,7 @@ const colorPickerWrapper = () => css({
|
|
|
36
38
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
37
39
|
|
|
38
40
|
const ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
41
|
+
const ColorPaletteWithReactViewListeners = withReactEditorViewOuterListeners(ColorPalette);
|
|
39
42
|
const ColorPickerButton = props => {
|
|
40
43
|
const buttonRef = React.useRef(null);
|
|
41
44
|
const [isPopupOpen, setIsPopupOpen] = React.useState(false);
|
|
@@ -138,7 +141,18 @@ const ColorPickerButton = props => {
|
|
|
138
141
|
isOpenedByKeyboard: isOpenedByKeyboard,
|
|
139
142
|
isPopupPositioned: isPopupPositioned,
|
|
140
143
|
ignoreEscapeKey: props.returnEscToButton
|
|
141
|
-
}, jsx(
|
|
144
|
+
}, fg('react_18_color_picker_concurrent_mode') ? jsx(ColorPaletteWithReactViewListeners, {
|
|
145
|
+
cols: props.cols,
|
|
146
|
+
selectedColor: selectedColor,
|
|
147
|
+
onClick: onColorSelected,
|
|
148
|
+
handleClickOutside: togglePopup,
|
|
149
|
+
handleEscapeKeydown: handleEsc,
|
|
150
|
+
paletteOptions: {
|
|
151
|
+
palette: props.colorPalette,
|
|
152
|
+
hexToPaletteColor: props.hexToPaletteColor,
|
|
153
|
+
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
154
|
+
}
|
|
155
|
+
}) : jsx(ColorPaletteWithListeners, {
|
|
142
156
|
cols: props.cols,
|
|
143
157
|
selectedColor: selectedColor,
|
|
144
158
|
onClick: onColorSelected,
|
|
@@ -105,15 +105,23 @@ export function getRangeInlineNodeNames({
|
|
|
105
105
|
return undefined;
|
|
106
106
|
}
|
|
107
107
|
let nodeNames = new Set();
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
try {
|
|
109
|
+
doc.nodesBetween(pos.from, pos.to, node => {
|
|
110
|
+
if (node.isInline) {
|
|
111
|
+
nodeNames.add(node.type.name);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
// We sort the list alphabetically to make human consumption of the list easier (in tools like the analytics extension)
|
|
116
|
+
const sortedNames = [...nodeNames].sort();
|
|
117
|
+
return sortedNames;
|
|
118
|
+
} catch {
|
|
119
|
+
// Some callers have existing gaps where the positions are not valid,
|
|
120
|
+
// and so when called in the current document can throw an error if out of range.
|
|
121
|
+
//
|
|
122
|
+
// This is a defensive check to ensure we don't throw an error in those cases.
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
117
125
|
}
|
|
118
126
|
|
|
119
127
|
/**
|
|
@@ -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 = "86.2.
|
|
10
|
+
var packageVersion = "86.2.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -30,7 +30,9 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
|
30
30
|
borderBottom: '2px solid transparent',
|
|
31
31
|
cursor: 'pointer',
|
|
32
32
|
padding: '1px 0 2px',
|
|
33
|
-
'&:has(.card), &:has([data-inline-card])': {
|
|
33
|
+
'&:has(.card), &:has([data-inline-card])': fg('annotations_align_editor_and_renderer_styles') ? {
|
|
34
|
+
padding: '5px 0 3px 0'
|
|
35
|
+
} : {
|
|
34
36
|
paddingTop: '4px',
|
|
35
37
|
border: 'none',
|
|
36
38
|
boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")"))
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "86.2.
|
|
20
|
+
var packageVersion = "86.2.2";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -7,10 +7,12 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
9
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
13
14
|
import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
|
|
15
|
+
import { withReactEditorViewOuterListeners } from '../../ui-react';
|
|
14
16
|
import { default as Popup } from '../../ui/Popup';
|
|
15
17
|
import { default as withOuterListeners } from '../../ui/with-outer-listeners';
|
|
16
18
|
import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
@@ -39,6 +41,7 @@ var colorPickerWrapper = function colorPickerWrapper() {
|
|
|
39
41
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
40
42
|
|
|
41
43
|
var ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
44
|
+
var ColorPaletteWithReactViewListeners = withReactEditorViewOuterListeners(ColorPalette);
|
|
42
45
|
var ColorPickerButton = function ColorPickerButton(props) {
|
|
43
46
|
var buttonRef = React.useRef(null);
|
|
44
47
|
var _React$useState = React.useState(false),
|
|
@@ -151,7 +154,18 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
151
154
|
isOpenedByKeyboard: isOpenedByKeyboard,
|
|
152
155
|
isPopupPositioned: isPopupPositioned,
|
|
153
156
|
ignoreEscapeKey: props.returnEscToButton
|
|
154
|
-
}, jsx(
|
|
157
|
+
}, fg('react_18_color_picker_concurrent_mode') ? jsx(ColorPaletteWithReactViewListeners, {
|
|
158
|
+
cols: props.cols,
|
|
159
|
+
selectedColor: selectedColor,
|
|
160
|
+
onClick: onColorSelected,
|
|
161
|
+
handleClickOutside: togglePopup,
|
|
162
|
+
handleEscapeKeydown: handleEsc,
|
|
163
|
+
paletteOptions: {
|
|
164
|
+
palette: props.colorPalette,
|
|
165
|
+
hexToPaletteColor: props.hexToPaletteColor,
|
|
166
|
+
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
167
|
+
}
|
|
168
|
+
}) : jsx(ColorPaletteWithListeners, {
|
|
155
169
|
cols: props.cols,
|
|
156
170
|
selectedColor: selectedColor,
|
|
157
171
|
onClick: onColorSelected,
|
|
@@ -95,15 +95,23 @@ export function getRangeInlineNodeNames(_ref) {
|
|
|
95
95
|
return undefined;
|
|
96
96
|
}
|
|
97
97
|
var nodeNames = new Set();
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
try {
|
|
99
|
+
doc.nodesBetween(pos.from, pos.to, function (node) {
|
|
100
|
+
if (node.isInline) {
|
|
101
|
+
nodeNames.add(node.type.name);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
// We sort the list alphabetically to make human consumption of the list easier (in tools like the analytics extension)
|
|
106
|
+
var sortedNames = _toConsumableArray(nodeNames).sort();
|
|
107
|
+
return sortedNames;
|
|
108
|
+
} catch (_unused) {
|
|
109
|
+
// Some callers have existing gaps where the positions are not valid,
|
|
110
|
+
// and so when called in the current document can throw an error if out of range.
|
|
111
|
+
//
|
|
112
|
+
// This is a defensive check to ensure we don't throw an error in those cases.
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const generateUniqueNodeKey: () =>
|
|
1
|
+
export declare const generateUniqueNodeKey: () => any;
|
|
@@ -16,9 +16,15 @@ export declare const AnnotationSharedCSSByState: () => {
|
|
|
16
16
|
cursor: string;
|
|
17
17
|
padding: string;
|
|
18
18
|
'&:has(.card), &:has([data-inline-card])': {
|
|
19
|
+
padding: string;
|
|
20
|
+
paddingTop?: undefined;
|
|
21
|
+
border?: undefined;
|
|
22
|
+
boxShadow?: undefined;
|
|
23
|
+
} | {
|
|
19
24
|
paddingTop: string;
|
|
20
25
|
border: string;
|
|
21
26
|
boxShadow: string;
|
|
27
|
+
padding?: undefined;
|
|
22
28
|
};
|
|
23
29
|
'&:has(.date-lozenger-container)': {
|
|
24
30
|
paddingTop: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const generateUniqueNodeKey: () =>
|
|
1
|
+
export declare const generateUniqueNodeKey: () => any;
|
|
@@ -16,9 +16,15 @@ export declare const AnnotationSharedCSSByState: () => {
|
|
|
16
16
|
cursor: string;
|
|
17
17
|
padding: string;
|
|
18
18
|
'&:has(.card), &:has([data-inline-card])': {
|
|
19
|
+
padding: string;
|
|
20
|
+
paddingTop?: undefined;
|
|
21
|
+
border?: undefined;
|
|
22
|
+
boxShadow?: undefined;
|
|
23
|
+
} | {
|
|
19
24
|
paddingTop: string;
|
|
20
25
|
border: string;
|
|
21
26
|
boxShadow: string;
|
|
27
|
+
padding?: undefined;
|
|
22
28
|
};
|
|
23
29
|
'&:has(.date-lozenger-container)': {
|
|
24
30
|
paddingTop: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "86.2.
|
|
3
|
+
"version": "86.2.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/"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
104
104
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
105
105
|
"@atlaskit/atlassian-context": "^0.0.0",
|
|
106
|
-
"@atlaskit/button": "^
|
|
106
|
+
"@atlaskit/button": "^19.0.0",
|
|
107
107
|
"@atlaskit/code": "^15.4.0",
|
|
108
108
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
109
109
|
"@atlaskit/custom-steps": "^0.4.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@atlaskit/media-file-preview": "^0.6.0",
|
|
126
126
|
"@atlaskit/media-picker": "^66.4.0",
|
|
127
127
|
"@atlaskit/media-ui": "^25.10.0",
|
|
128
|
-
"@atlaskit/media-viewer": "48.6.
|
|
128
|
+
"@atlaskit/media-viewer": "48.6.12",
|
|
129
129
|
"@atlaskit/mention": "^23.2.0",
|
|
130
130
|
"@atlaskit/menu": "^2.8.0",
|
|
131
131
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"@atlaskit/task-decision": "^17.10.0",
|
|
139
139
|
"@atlaskit/textfield": "^6.4.0",
|
|
140
140
|
"@atlaskit/theme": "^12.11.0",
|
|
141
|
-
"@atlaskit/tokens": "^1.
|
|
141
|
+
"@atlaskit/tokens": "^1.56.0",
|
|
142
142
|
"@atlaskit/tooltip": "^18.5.0",
|
|
143
143
|
"@atlaskit/ufo": "^0.2.0",
|
|
144
144
|
"@atlaskit/width-detector": "^4.2.0",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"devDependencies": {
|
|
177
177
|
"@af/visual-regression": "*",
|
|
178
178
|
"@atlaskit/media-core": "^34.2.0",
|
|
179
|
-
"@atlaskit/media-test-helpers": "^
|
|
179
|
+
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
180
180
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
181
181
|
"@atlaskit/visual-regression": "*",
|
|
182
182
|
"@atlassian/feature-flags-test-utils": "*",
|
|
@@ -244,6 +244,9 @@
|
|
|
244
244
|
"platform_editor_tables_padding_increase": {
|
|
245
245
|
"type": "boolean"
|
|
246
246
|
},
|
|
247
|
+
"annotations_align_editor_and_renderer_styles": {
|
|
248
|
+
"type": "boolean"
|
|
249
|
+
},
|
|
247
250
|
"platform-editor-a11y-image-border-options-dropdown": {
|
|
248
251
|
"type": "boolean"
|
|
249
252
|
},
|
|
@@ -255,6 +258,9 @@
|
|
|
255
258
|
},
|
|
256
259
|
"platform.editor.review-text-highlighting-styling": {
|
|
257
260
|
"type": "boolean"
|
|
261
|
+
},
|
|
262
|
+
"react_18_color_picker_concurrent_mode": {
|
|
263
|
+
"type": "boolean"
|
|
258
264
|
}
|
|
259
265
|
}
|
|
260
266
|
}
|