@atlaskit/editor-plugin-emoji 17.0.4 → 17.0.5
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 17.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d1701a4710adf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d1701a4710adf) -
|
|
8
|
+
EDITOR-8658 improve vanilla tooltip api
|
|
9
|
+
|
|
10
|
+
`VanillaTooltip` now accepts any `HTMLElement` as its trigger, generates its own tooltip id when
|
|
11
|
+
none is passed, and only binds its Escape listener while the tooltip is visible.
|
|
12
|
+
|
|
13
|
+
These changes are behind the `platform_editor_use_vanilla_components` experiment.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 17.0.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -272,9 +272,7 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
|
|
|
272
272
|
try {
|
|
273
273
|
// Flag-on (platform-dst-top-layer), positioning is async via a React root;
|
|
274
274
|
// safe here as VanillaTooltip stays hidden until positioned.
|
|
275
|
-
var tooltipInstance = new _vanillaTooltip.VanillaTooltip(
|
|
276
|
-
// VanillaTooltip types expect HTMLButtonElement but works with any HTMLElement
|
|
277
|
-
element, shortName, tooltipId, EMOJI_TOOLTIP_CLASS,
|
|
275
|
+
var tooltipInstance = new _vanillaTooltip.VanillaTooltip(element, shortName, tooltipId, EMOJI_TOOLTIP_CLASS,
|
|
278
276
|
// default timeout
|
|
279
277
|
300,
|
|
280
278
|
// Inline styles are required because the Popover API promotes the tooltip
|
|
@@ -240,9 +240,7 @@ export class EmojiNodeView {
|
|
|
240
240
|
try {
|
|
241
241
|
// Flag-on (platform-dst-top-layer), positioning is async via a React root;
|
|
242
242
|
// safe here as VanillaTooltip stays hidden until positioned.
|
|
243
|
-
const tooltipInstance = new VanillaTooltip(
|
|
244
|
-
// VanillaTooltip types expect HTMLButtonElement but works with any HTMLElement
|
|
245
|
-
element, shortName, tooltipId, EMOJI_TOOLTIP_CLASS,
|
|
243
|
+
const tooltipInstance = new VanillaTooltip(element, shortName, tooltipId, EMOJI_TOOLTIP_CLASS,
|
|
246
244
|
// default timeout
|
|
247
245
|
300,
|
|
248
246
|
// Inline styles are required because the Popover API promotes the tooltip
|
|
@@ -264,9 +264,7 @@ export var EmojiNodeView = /*#__PURE__*/function () {
|
|
|
264
264
|
try {
|
|
265
265
|
// Flag-on (platform-dst-top-layer), positioning is async via a React root;
|
|
266
266
|
// safe here as VanillaTooltip stays hidden until positioned.
|
|
267
|
-
var tooltipInstance = new VanillaTooltip(
|
|
268
|
-
// VanillaTooltip types expect HTMLButtonElement but works with any HTMLElement
|
|
269
|
-
element, shortName, tooltipId, EMOJI_TOOLTIP_CLASS,
|
|
267
|
+
var tooltipInstance = new VanillaTooltip(element, shortName, tooltipId, EMOJI_TOOLTIP_CLASS,
|
|
270
268
|
// default timeout
|
|
271
269
|
300,
|
|
272
270
|
// Inline styles are required because the Popover API promotes the tooltip
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.5",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-loadable": "^5.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^120.
|
|
53
|
+
"@atlaskit/editor-common": "^120.4.0",
|
|
54
54
|
"react": "^18.2.0 || ^19.2.0",
|
|
55
55
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|