@atlaskit/editor-plugin-breakout 16.1.0 → 16.1.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,59 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 16.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`27143ffe51a5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/27143ffe51a5a) -
|
|
8
|
+
`@atlaskit/editor-common/vanilla-tooltip` now exports `VANILLA_TOOLTIP_DEFAULT_CLASS`. Compose
|
|
9
|
+
tooltip class names from it rather than repeating the `ak-editor-vanilla-tooltip-default` literal.
|
|
10
|
+
|
|
11
|
+
Behind the `platform_editor_use_vanilla_components` experiment, `VanillaTooltip`:
|
|
12
|
+
- no longer throws `InvalidStateError` when shown again before its open delay has elapsed
|
|
13
|
+
- is `pointer-events: none`, so it cannot swallow pointer events meant for the content beneath —
|
|
14
|
+
pass `pointerEvents` in `styles` to opt out
|
|
15
|
+
- closes its popover before `destroy()` removes it from the document
|
|
16
|
+
|
|
17
|
+
Remaining changes are internal: tooltip consumers adopt the new constant, and the emoji tooltip
|
|
18
|
+
uses the shared class in place of an equivalent inline style object.
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 16.1.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
|
|
27
|
+
Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
|
|
28
|
+
|
|
29
|
+
`uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
|
|
30
|
+
export, so all internal call sites were migrated to named imports:
|
|
31
|
+
|
|
32
|
+
```diff
|
|
33
|
+
-import uuid from 'uuid/v4';
|
|
34
|
+
+import { v4 as uuid } from 'uuid';
|
|
35
|
+
|
|
36
|
+
-import uuid from 'uuid';
|
|
37
|
+
+import { v4 as uuid } from 'uuid';
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
With the exception of `@atlassian/integrations` (below), this is an internal implementation change
|
|
41
|
+
only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
|
|
42
|
+
(`uuid@3`'s default export was already `v4`).
|
|
43
|
+
|
|
44
|
+
`@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
|
|
45
|
+
`^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
|
|
46
|
+
`patch` for that package.
|
|
47
|
+
|
|
48
|
+
The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
|
|
49
|
+
and so are intentionally not listed in the frontmatter above:
|
|
50
|
+
- `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
|
|
51
|
+
`npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
|
|
52
|
+
- `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
|
|
53
|
+
- `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
|
|
54
|
+
|
|
55
|
+
- Updated dependencies
|
|
56
|
+
|
|
3
57
|
## 16.1.0
|
|
4
58
|
|
|
5
59
|
### Minor Changes
|
|
@@ -86,11 +86,11 @@ var RailWithTooltip = function RailWithTooltip(_ref) {
|
|
|
86
86
|
var TOOLTIP_CLASS_NAME = 'pm-breakout-resize-tooltip';
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
89
|
+
* Classes applied to the tooltip element: the shared default look, plus our own hook. The default
|
|
90
|
+
* still reaches a `[popover]` because the tooltip is painted in the top layer but stays in the DOM
|
|
91
|
+
* under `.ProseMirror`.
|
|
92
92
|
*/
|
|
93
|
-
var TOOLTIP_CLASS_NAMES = "
|
|
93
|
+
var TOOLTIP_CLASS_NAMES = "".concat(_vanillaTooltip.VANILLA_TOOLTIP_DEFAULT_CLASS, " ").concat(TOOLTIP_CLASS_NAME);
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Vanilla DOM equivalent of `RailWithTooltip`, behind `platform_editor_use_vanilla_components`.
|
|
@@ -112,11 +112,9 @@ var createHandleTooltip = function createHandleTooltip(_ref2) {
|
|
|
112
112
|
// Let the tooltip generate its own id.
|
|
113
113
|
undefined, TOOLTIP_CLASS_NAMES,
|
|
114
114
|
// Default delay, matching the ADS tooltip.
|
|
115
|
-
300,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
pointerEvents: 'none'
|
|
119
|
-
},
|
|
115
|
+
300,
|
|
116
|
+
// No inline styles
|
|
117
|
+
undefined,
|
|
120
118
|
// No `onShow`.
|
|
121
119
|
undefined,
|
|
122
120
|
// Below the cursor, matching the control arm's `position="mouse"`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useState } from 'react';
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
3
|
import { breakoutMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import { VanillaTooltip } from '@atlaskit/editor-common/vanilla-tooltip';
|
|
4
|
+
import { VANILLA_TOOLTIP_DEFAULT_CLASS, VanillaTooltip } from '@atlaskit/editor-common/vanilla-tooltip';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
7
7
|
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/disable-native-drag-preview';
|
|
@@ -73,11 +73,11 @@ const RailWithTooltip = ({
|
|
|
73
73
|
const TOOLTIP_CLASS_NAME = 'pm-breakout-resize-tooltip';
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
76
|
+
* Classes applied to the tooltip element: the shared default look, plus our own hook. The default
|
|
77
|
+
* still reaches a `[popover]` because the tooltip is painted in the top layer but stays in the DOM
|
|
78
|
+
* under `.ProseMirror`.
|
|
79
79
|
*/
|
|
80
|
-
const TOOLTIP_CLASS_NAMES =
|
|
80
|
+
const TOOLTIP_CLASS_NAMES = `${VANILLA_TOOLTIP_DEFAULT_CLASS} ${TOOLTIP_CLASS_NAME}`;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Vanilla DOM equivalent of `RailWithTooltip`, behind `platform_editor_use_vanilla_components`.
|
|
@@ -100,11 +100,9 @@ const createHandleTooltip = ({
|
|
|
100
100
|
// Let the tooltip generate its own id.
|
|
101
101
|
undefined, TOOLTIP_CLASS_NAMES,
|
|
102
102
|
// Default delay, matching the ADS tooltip.
|
|
103
|
-
300,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
pointerEvents: 'none'
|
|
107
|
-
},
|
|
103
|
+
300,
|
|
104
|
+
// No inline styles
|
|
105
|
+
undefined,
|
|
108
106
|
// No `onShow`.
|
|
109
107
|
undefined,
|
|
110
108
|
// Below the cursor, matching the control arm's `position="mouse"`.
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import React, { useLayoutEffect, useState } from 'react';
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import { breakoutMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { VanillaTooltip } from '@atlaskit/editor-common/vanilla-tooltip';
|
|
6
|
+
import { VANILLA_TOOLTIP_DEFAULT_CLASS, VanillaTooltip } from '@atlaskit/editor-common/vanilla-tooltip';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
8
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
9
9
|
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/disable-native-drag-preview';
|
|
@@ -77,11 +77,11 @@ var RailWithTooltip = function RailWithTooltip(_ref) {
|
|
|
77
77
|
var TOOLTIP_CLASS_NAME = 'pm-breakout-resize-tooltip';
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
80
|
+
* Classes applied to the tooltip element: the shared default look, plus our own hook. The default
|
|
81
|
+
* still reaches a `[popover]` because the tooltip is painted in the top layer but stays in the DOM
|
|
82
|
+
* under `.ProseMirror`.
|
|
83
83
|
*/
|
|
84
|
-
var TOOLTIP_CLASS_NAMES = "
|
|
84
|
+
var TOOLTIP_CLASS_NAMES = "".concat(VANILLA_TOOLTIP_DEFAULT_CLASS, " ").concat(TOOLTIP_CLASS_NAME);
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Vanilla DOM equivalent of `RailWithTooltip`, behind `platform_editor_use_vanilla_components`.
|
|
@@ -103,11 +103,9 @@ var createHandleTooltip = function createHandleTooltip(_ref2) {
|
|
|
103
103
|
// Let the tooltip generate its own id.
|
|
104
104
|
undefined, TOOLTIP_CLASS_NAMES,
|
|
105
105
|
// Default delay, matching the ADS tooltip.
|
|
106
|
-
300,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
pointerEvents: 'none'
|
|
110
|
-
},
|
|
106
|
+
300,
|
|
107
|
+
// No inline styles
|
|
108
|
+
undefined,
|
|
111
109
|
// No `onShow`.
|
|
112
110
|
undefined,
|
|
113
111
|
// Below the cursor, matching the control arm's `position="mouse"`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.2",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@emotion/react": "^11.7.1",
|
|
44
44
|
"bind-event-listener": "^3.0.0",
|
|
45
45
|
"memoize-one": "^6.0.0",
|
|
46
|
-
"uuid": "^
|
|
46
|
+
"uuid": "^11.1.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^120.
|
|
49
|
+
"@atlaskit/editor-common": "^120.15.0",
|
|
50
50
|
"react": "^18.2.0 || ^19.2.0",
|
|
51
51
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
52
52
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|