@atlaskit/editor-common 105.11.0 → 105.11.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 +19 -0
- package/dist/cjs/annotation/index.js +6 -0
- package/dist/cjs/doc-utils/editor-use-only.js +3 -14
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/resizer.js +54 -5
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/annotation/index.js +6 -0
- package/dist/es2019/doc-utils/editor-use-only.js +3 -14
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/resizer.js +54 -5
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/annotation/index.js +6 -0
- package/dist/esm/doc-utils/editor-use-only.js +3 -14
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/resizer.js +54 -5
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/annotation/index.d.ts +9 -1
- package/dist/types-ts4.5/annotation/index.d.ts +9 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 105.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#160456](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160456)
|
|
8
|
+
[`f1c9353c46649`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1c9353c46649) -
|
|
9
|
+
[ux] ED-28026 fix resize handle styles for pragmatic-dnd resizer
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 105.11.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#157348](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157348)
|
|
17
|
+
[`2745ba38d05fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2745ba38d05fd) -
|
|
18
|
+
Implemented the new manager set selection and hover APIs. This will allow anyone with access to
|
|
19
|
+
the annotations manager the ability to control when/what annotation is selected/hovered.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 105.11.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -44,6 +44,12 @@ var AnnotationUpdateEmitter = exports.AnnotationUpdateEmitter = /*#__PURE__*/fun
|
|
|
44
44
|
/*
|
|
45
45
|
* This is the public interface for the AnnotationManager. It provides methods for interacting with the manager.
|
|
46
46
|
*/
|
|
47
|
+
/**
|
|
48
|
+
* This is a factory method which creates a new instance of the AnnotationManager.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* const annotationManager: AnnotationManager = createAnnotationManager();
|
|
52
|
+
*/
|
|
47
53
|
function createAnnotationManager() {
|
|
48
54
|
return new _manager.SharedAnnotationManager();
|
|
49
55
|
}
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.createEditorUseOnlyNotice = createEditorUseOnlyNotice;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
12
11
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
13
12
|
|
|
@@ -17,26 +16,16 @@ function AlternativePackagesMessage(_ref) {
|
|
|
17
16
|
return null;
|
|
18
17
|
}
|
|
19
18
|
if (alternatePackages.length === 1) {
|
|
20
|
-
return /*#__PURE__*/_react.default.createElement("p", null, "Consider using",
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("p", null, "Consider using ", /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
21
20
|
href: alternatePackages[0].link
|
|
22
|
-
}, alternatePackages[0].name)
|
|
23
|
-
/*#__PURE__*/
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
25
|
-
_react.default.createElement("a", {
|
|
26
|
-
href: alternatePackages[0].link
|
|
27
|
-
}, alternatePackages[0].name), "instead.");
|
|
21
|
+
}, alternatePackages[0].name), ' ', "instead.");
|
|
28
22
|
}
|
|
29
23
|
return /*#__PURE__*/_react.default.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/_react.default.createElement("ul", null, alternatePackages.map(function (p) {
|
|
30
24
|
return (
|
|
31
25
|
/*#__PURE__*/
|
|
32
26
|
// Ignored via go/ees005
|
|
33
27
|
// eslint-disable-next-line react/jsx-key
|
|
34
|
-
_react.default.createElement("li", null,
|
|
35
|
-
href: p.link
|
|
36
|
-
}, p.name) :
|
|
37
|
-
/*#__PURE__*/
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
39
|
-
_react.default.createElement("a", {
|
|
28
|
+
_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
40
29
|
href: p.link
|
|
41
30
|
}, p.name))
|
|
42
31
|
);
|
|
@@ -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 && {}.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 = "105.11.
|
|
20
|
+
var packageVersion = "105.11.2";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -36,6 +36,57 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmatic
|
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
return (0, _react.css)({
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
|
+
'.fabric-editor-breakout-mark': {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
42
|
+
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
44
|
+
'> .pm-breakout-resize-handle-left': {
|
|
45
|
+
left: '-12px'
|
|
46
|
+
},
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
48
|
+
'> .pm-breakout-resize-handle-right': {
|
|
49
|
+
right: '-12px'
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
+
'> .pm-breakout-resize-handle': {
|
|
53
|
+
height: 'calc(100% - 12px)'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
57
|
+
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
+
'> .pm-breakout-resize-handle-left': {
|
|
60
|
+
left: '-32px'
|
|
61
|
+
},
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
+
'> .pm-breakout-resize-handle-right': {
|
|
64
|
+
right: '-32px'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
68
|
+
'&:has([data-prosemirror-node-name="expand"])': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
70
|
+
'> .pm-breakout-resize-handle': {
|
|
71
|
+
height: 'calc(100% - 4px)'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
75
|
+
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
|
+
'> .pm-breakout-resize-handle': {
|
|
78
|
+
height: 'calc(100% - 8px)'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
// the first node in the document always has margin-top = 0
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
83
|
+
'&:has(.first-node-in-document)': {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
+
'> .pm-breakout-resize-handle': {
|
|
86
|
+
height: '100%'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
39
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
91
|
'.pm-breakout-resize-handle': {
|
|
41
92
|
position: 'relative',
|
|
@@ -44,7 +95,7 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmatic
|
|
|
44
95
|
justifyContent: 'center',
|
|
45
96
|
height: '100%',
|
|
46
97
|
width: 7,
|
|
47
|
-
alignSelf: '
|
|
98
|
+
alignSelf: 'end',
|
|
48
99
|
gridRow: 1,
|
|
49
100
|
gridColumn: 1,
|
|
50
101
|
cursor: 'col-resize',
|
|
@@ -60,13 +111,11 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmatic
|
|
|
60
111
|
},
|
|
61
112
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
62
113
|
'.pm-breakout-resize-handle-left': {
|
|
63
|
-
justifySelf: 'start'
|
|
64
|
-
left: -20
|
|
114
|
+
justifySelf: 'start'
|
|
65
115
|
},
|
|
66
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
67
117
|
'.pm-breakout-resize-handle-right': {
|
|
68
|
-
justifySelf: 'end'
|
|
69
|
-
right: -20
|
|
118
|
+
justifySelf: 'end'
|
|
70
119
|
},
|
|
71
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
121
|
'.pm-breakout-resize-handle-inner': {
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "105.11.
|
|
26
|
+
var packageVersion = "105.11.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -25,6 +25,12 @@ export class AnnotationUpdateEmitter extends EventEmitter {
|
|
|
25
25
|
* This is the public interface for the AnnotationManager. It provides methods for interacting with the manager.
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* This is a factory method which creates a new instance of the AnnotationManager.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* const annotationManager: AnnotationManager = createAnnotationManager();
|
|
33
|
+
*/
|
|
28
34
|
export function createAnnotationManager() {
|
|
29
35
|
return new SharedAnnotationManager();
|
|
30
36
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Link from '@atlaskit/link';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import SectionMessage from '@atlaskit/section-message';
|
|
6
5
|
function AlternativePackagesMessage({
|
|
7
6
|
alternatePackages
|
|
@@ -10,25 +9,15 @@ function AlternativePackagesMessage({
|
|
|
10
9
|
return null;
|
|
11
10
|
}
|
|
12
11
|
if (alternatePackages.length === 1) {
|
|
13
|
-
return /*#__PURE__*/React.createElement("p", null, "Consider using",
|
|
12
|
+
return /*#__PURE__*/React.createElement("p", null, "Consider using ", /*#__PURE__*/React.createElement(Link, {
|
|
14
13
|
href: alternatePackages[0].link
|
|
15
|
-
}, alternatePackages[0].name)
|
|
16
|
-
/*#__PURE__*/
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
18
|
-
React.createElement("a", {
|
|
19
|
-
href: alternatePackages[0].link
|
|
20
|
-
}, alternatePackages[0].name), "instead.");
|
|
14
|
+
}, alternatePackages[0].name), ' ', "instead.");
|
|
21
15
|
}
|
|
22
16
|
return /*#__PURE__*/React.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/React.createElement("ul", null, alternatePackages.map(p =>
|
|
23
17
|
/*#__PURE__*/
|
|
24
18
|
// Ignored via go/ees005
|
|
25
19
|
// eslint-disable-next-line react/jsx-key
|
|
26
|
-
React.createElement("li", null,
|
|
27
|
-
href: p.link
|
|
28
|
-
}, p.name) :
|
|
29
|
-
/*#__PURE__*/
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
31
|
-
React.createElement("a", {
|
|
20
|
+
React.createElement("li", null, /*#__PURE__*/React.createElement(Link, {
|
|
32
21
|
href: p.link
|
|
33
22
|
}, p.name)))));
|
|
34
23
|
}
|
|
@@ -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 = "105.11.
|
|
4
|
+
const packageVersion = "105.11.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -231,6 +231,57 @@ export const pragmaticResizerStyles = () => {
|
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
233
|
return css({
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
|
+
'.fabric-editor-breakout-mark': {
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
237
|
+
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
238
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
239
|
+
'> .pm-breakout-resize-handle-left': {
|
|
240
|
+
left: '-12px'
|
|
241
|
+
},
|
|
242
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
243
|
+
'> .pm-breakout-resize-handle-right': {
|
|
244
|
+
right: '-12px'
|
|
245
|
+
},
|
|
246
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
247
|
+
'> .pm-breakout-resize-handle': {
|
|
248
|
+
height: 'calc(100% - 12px)'
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
252
|
+
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
253
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
254
|
+
'> .pm-breakout-resize-handle-left': {
|
|
255
|
+
left: '-32px'
|
|
256
|
+
},
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
258
|
+
'> .pm-breakout-resize-handle-right': {
|
|
259
|
+
right: '-32px'
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
263
|
+
'&:has([data-prosemirror-node-name="expand"])': {
|
|
264
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
265
|
+
'> .pm-breakout-resize-handle': {
|
|
266
|
+
height: 'calc(100% - 4px)'
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
270
|
+
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
271
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
272
|
+
'> .pm-breakout-resize-handle': {
|
|
273
|
+
height: 'calc(100% - 8px)'
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
// the first node in the document always has margin-top = 0
|
|
277
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
278
|
+
'&:has(.first-node-in-document)': {
|
|
279
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
280
|
+
'> .pm-breakout-resize-handle': {
|
|
281
|
+
height: '100%'
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
234
285
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
286
|
'.pm-breakout-resize-handle': {
|
|
236
287
|
position: 'relative',
|
|
@@ -239,7 +290,7 @@ export const pragmaticResizerStyles = () => {
|
|
|
239
290
|
justifyContent: 'center',
|
|
240
291
|
height: '100%',
|
|
241
292
|
width: 7,
|
|
242
|
-
alignSelf: '
|
|
293
|
+
alignSelf: 'end',
|
|
243
294
|
gridRow: 1,
|
|
244
295
|
gridColumn: 1,
|
|
245
296
|
cursor: 'col-resize',
|
|
@@ -255,13 +306,11 @@ export const pragmaticResizerStyles = () => {
|
|
|
255
306
|
},
|
|
256
307
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
257
308
|
'.pm-breakout-resize-handle-left': {
|
|
258
|
-
justifySelf: 'start'
|
|
259
|
-
left: -20
|
|
309
|
+
justifySelf: 'start'
|
|
260
310
|
},
|
|
261
311
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
262
312
|
'.pm-breakout-resize-handle-right': {
|
|
263
|
-
justifySelf: 'end'
|
|
264
|
-
right: -20
|
|
313
|
+
justifySelf: 'end'
|
|
265
314
|
},
|
|
266
315
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
267
316
|
'.pm-breakout-resize-handle-inner': {
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "105.11.
|
|
16
|
+
const packageVersion = "105.11.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -44,6 +44,12 @@ export var AnnotationUpdateEmitter = /*#__PURE__*/function (_EventEmitter) {
|
|
|
44
44
|
* This is the public interface for the AnnotationManager. It provides methods for interacting with the manager.
|
|
45
45
|
*/
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* This is a factory method which creates a new instance of the AnnotationManager.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* const annotationManager: AnnotationManager = createAnnotationManager();
|
|
52
|
+
*/
|
|
47
53
|
export function createAnnotationManager() {
|
|
48
54
|
return new SharedAnnotationManager();
|
|
49
55
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Link from '@atlaskit/link';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import SectionMessage from '@atlaskit/section-message';
|
|
6
5
|
function AlternativePackagesMessage(_ref) {
|
|
7
6
|
var alternatePackages = _ref.alternatePackages;
|
|
@@ -9,26 +8,16 @@ function AlternativePackagesMessage(_ref) {
|
|
|
9
8
|
return null;
|
|
10
9
|
}
|
|
11
10
|
if (alternatePackages.length === 1) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("p", null, "Consider using",
|
|
11
|
+
return /*#__PURE__*/React.createElement("p", null, "Consider using ", /*#__PURE__*/React.createElement(Link, {
|
|
13
12
|
href: alternatePackages[0].link
|
|
14
|
-
}, alternatePackages[0].name)
|
|
15
|
-
/*#__PURE__*/
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
17
|
-
React.createElement("a", {
|
|
18
|
-
href: alternatePackages[0].link
|
|
19
|
-
}, alternatePackages[0].name), "instead.");
|
|
13
|
+
}, alternatePackages[0].name), ' ', "instead.");
|
|
20
14
|
}
|
|
21
15
|
return /*#__PURE__*/React.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/React.createElement("ul", null, alternatePackages.map(function (p) {
|
|
22
16
|
return (
|
|
23
17
|
/*#__PURE__*/
|
|
24
18
|
// Ignored via go/ees005
|
|
25
19
|
// eslint-disable-next-line react/jsx-key
|
|
26
|
-
React.createElement("li", null,
|
|
27
|
-
href: p.link
|
|
28
|
-
}, p.name) :
|
|
29
|
-
/*#__PURE__*/
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
31
|
-
React.createElement("a", {
|
|
20
|
+
React.createElement("li", null, /*#__PURE__*/React.createElement(Link, {
|
|
32
21
|
href: p.link
|
|
33
22
|
}, p.name))
|
|
34
23
|
);
|
|
@@ -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 = "105.11.
|
|
10
|
+
var packageVersion = "105.11.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -30,6 +30,57 @@ export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
return css({
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
34
|
+
'.fabric-editor-breakout-mark': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
36
|
+
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
38
|
+
'> .pm-breakout-resize-handle-left': {
|
|
39
|
+
left: '-12px'
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
|
+
'> .pm-breakout-resize-handle-right': {
|
|
43
|
+
right: '-12px'
|
|
44
|
+
},
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
46
|
+
'> .pm-breakout-resize-handle': {
|
|
47
|
+
height: 'calc(100% - 12px)'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
51
|
+
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
53
|
+
'> .pm-breakout-resize-handle-left': {
|
|
54
|
+
left: '-32px'
|
|
55
|
+
},
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
57
|
+
'> .pm-breakout-resize-handle-right': {
|
|
58
|
+
right: '-32px'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
62
|
+
'&:has([data-prosemirror-node-name="expand"])': {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
64
|
+
'> .pm-breakout-resize-handle': {
|
|
65
|
+
height: 'calc(100% - 4px)'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
69
|
+
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
71
|
+
'> .pm-breakout-resize-handle': {
|
|
72
|
+
height: 'calc(100% - 8px)'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
// the first node in the document always has margin-top = 0
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
77
|
+
'&:has(.first-node-in-document)': {
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
79
|
+
'> .pm-breakout-resize-handle': {
|
|
80
|
+
height: '100%'
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
33
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
34
85
|
'.pm-breakout-resize-handle': {
|
|
35
86
|
position: 'relative',
|
|
@@ -38,7 +89,7 @@ export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
|
38
89
|
justifyContent: 'center',
|
|
39
90
|
height: '100%',
|
|
40
91
|
width: 7,
|
|
41
|
-
alignSelf: '
|
|
92
|
+
alignSelf: 'end',
|
|
42
93
|
gridRow: 1,
|
|
43
94
|
gridColumn: 1,
|
|
44
95
|
cursor: 'col-resize',
|
|
@@ -54,13 +105,11 @@ export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
|
54
105
|
},
|
|
55
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
107
|
'.pm-breakout-resize-handle-left': {
|
|
57
|
-
justifySelf: 'start'
|
|
58
|
-
left: -20
|
|
108
|
+
justifySelf: 'start'
|
|
59
109
|
},
|
|
60
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
61
111
|
'.pm-breakout-resize-handle-right': {
|
|
62
|
-
justifySelf: 'end'
|
|
63
|
-
right: -20
|
|
112
|
+
justifySelf: 'end'
|
|
64
113
|
},
|
|
65
114
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
66
115
|
'.pm-breakout-resize-handle-inner': {
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "105.11.
|
|
23
|
+
var packageVersion = "105.11.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -91,7 +91,7 @@ export type ClearAnnotationResult = {
|
|
|
91
91
|
};
|
|
92
92
|
export type SelectAnnotationResult = {
|
|
93
93
|
success: false;
|
|
94
|
-
reason: ManagerFailureReasons | 'id-not-valid';
|
|
94
|
+
reason: ManagerFailureReasons | 'id-not-valid' | 'draft-in-progress';
|
|
95
95
|
} | {
|
|
96
96
|
success: true;
|
|
97
97
|
isSelected: boolean;
|
|
@@ -154,6 +154,8 @@ export type AnnotationManager = AnnotationManagerMethods & {
|
|
|
154
154
|
emit(event: {
|
|
155
155
|
name: 'draftAnnotationStarted';
|
|
156
156
|
data: AnnotationDraftStartedData;
|
|
157
|
+
} | {
|
|
158
|
+
name: 'draftAnnotationCleared';
|
|
157
159
|
} | {
|
|
158
160
|
name: 'annotationSelectionChanged';
|
|
159
161
|
data: AnnotationSelectedChangeData;
|
|
@@ -171,5 +173,11 @@ export type AnnotationManager = AnnotationManagerMethods & {
|
|
|
171
173
|
*/
|
|
172
174
|
unhook<H extends keyof AnnotationManagerMethods>(method: H, handler: AnnotationManagerMethods[H]): AnnotationManager;
|
|
173
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* This is a factory method which creates a new instance of the AnnotationManager.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* const annotationManager: AnnotationManager = createAnnotationManager();
|
|
181
|
+
*/
|
|
174
182
|
export declare function createAnnotationManager(): AnnotationManager;
|
|
175
183
|
export {};
|
|
@@ -91,7 +91,7 @@ export type ClearAnnotationResult = {
|
|
|
91
91
|
};
|
|
92
92
|
export type SelectAnnotationResult = {
|
|
93
93
|
success: false;
|
|
94
|
-
reason: ManagerFailureReasons | 'id-not-valid';
|
|
94
|
+
reason: ManagerFailureReasons | 'id-not-valid' | 'draft-in-progress';
|
|
95
95
|
} | {
|
|
96
96
|
success: true;
|
|
97
97
|
isSelected: boolean;
|
|
@@ -154,6 +154,8 @@ export type AnnotationManager = AnnotationManagerMethods & {
|
|
|
154
154
|
emit(event: {
|
|
155
155
|
name: 'draftAnnotationStarted';
|
|
156
156
|
data: AnnotationDraftStartedData;
|
|
157
|
+
} | {
|
|
158
|
+
name: 'draftAnnotationCleared';
|
|
157
159
|
} | {
|
|
158
160
|
name: 'annotationSelectionChanged';
|
|
159
161
|
data: AnnotationSelectedChangeData;
|
|
@@ -171,5 +173,11 @@ export type AnnotationManager = AnnotationManagerMethods & {
|
|
|
171
173
|
*/
|
|
172
174
|
unhook<H extends keyof AnnotationManagerMethods>(method: H, handler: AnnotationManagerMethods[H]): AnnotationManager;
|
|
173
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* This is a factory method which creates a new instance of the AnnotationManager.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* const annotationManager: AnnotationManager = createAnnotationManager();
|
|
181
|
+
*/
|
|
174
182
|
export declare function createAnnotationManager(): AnnotationManager;
|
|
175
183
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "105.11.
|
|
3
|
+
"version": "105.11.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/"
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
141
141
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
142
142
|
"@atlaskit/emoji": "^69.2.0",
|
|
143
|
-
"@atlaskit/icon": "^26.
|
|
143
|
+
"@atlaskit/icon": "^26.4.0",
|
|
144
144
|
"@atlaskit/icon-object": "^7.1.0",
|
|
145
145
|
"@atlaskit/link": "^3.2.0",
|
|
146
146
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@atlaskit/media-viewer": "^52.2.0",
|
|
156
156
|
"@atlaskit/mention": "^24.2.0",
|
|
157
157
|
"@atlaskit/menu": "^8.0.0",
|
|
158
|
-
"@atlaskit/onboarding": "^14.
|
|
158
|
+
"@atlaskit/onboarding": "^14.2.0",
|
|
159
159
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
160
160
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
161
161
|
"@atlaskit/popper": "^7.0.0",
|
|
@@ -169,9 +169,9 @@
|
|
|
169
169
|
"@atlaskit/task-decision": "^19.2.0",
|
|
170
170
|
"@atlaskit/textfield": "^8.0.0",
|
|
171
171
|
"@atlaskit/theme": "^18.0.0",
|
|
172
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
172
|
+
"@atlaskit/tmp-editor-statsig": "^5.2.0",
|
|
173
173
|
"@atlaskit/tokens": "^4.9.0",
|
|
174
|
-
"@atlaskit/tooltip": "^20.
|
|
174
|
+
"@atlaskit/tooltip": "^20.2.0",
|
|
175
175
|
"@atlaskit/width-detector": "^5.0.0",
|
|
176
176
|
"@babel/runtime": "^7.0.0",
|
|
177
177
|
"@compiled/react": "^0.18.3",
|