@atlaskit/editor-common 105.11.1 → 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 CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 105.11.1
4
13
 
5
14
  ### Patch 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 && {}.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.1";
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: 'center',
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.1";
26
+ var packageVersion = "105.11.2";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -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.1";
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: 'center',
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.1";
16
+ const packageVersion = "105.11.2";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -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.1";
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: 'center',
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.1";
23
+ var packageVersion = "105.11.2";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "105.11.1",
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.3.0",
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.1.0",
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.1.0",
172
+ "@atlaskit/tmp-editor-statsig": "^5.2.0",
173
173
  "@atlaskit/tokens": "^4.9.0",
174
- "@atlaskit/tooltip": "^20.1.0",
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",