@atlaskit/editor-plugin-emoji 13.0.24 → 13.0.26

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,18 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 13.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.0.25
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c8476b968b952`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8476b968b952) -
14
+ Prevent emoji hover tooltips from rendering during SSR.
15
+
3
16
  ## 13.0.24
4
17
 
5
18
  ### Patch Changes
@@ -258,6 +258,9 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
258
258
  if (!(0, _expValEquals.expValEquals)('platform_editor_emoji_hover_show_tooltip', 'isEnabled', true)) {
259
259
  return;
260
260
  }
261
+ if ((0, _coreUtils.isSSR)()) {
262
+ return;
263
+ }
261
264
  var tooltipId = typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function' ? "emoji-tooltip-".concat(crypto.randomUUID()) : (0, _uniqueId.default)('emoji-tooltip-');
262
265
  try {
263
266
  var tooltipInstance = new _vanillaTooltip.VanillaTooltip(
@@ -227,6 +227,9 @@ export class EmojiNodeView {
227
227
  if (!expValEquals('platform_editor_emoji_hover_show_tooltip', 'isEnabled', true)) {
228
228
  return;
229
229
  }
230
+ if (isSSR()) {
231
+ return;
232
+ }
230
233
  const tooltipId = typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function' ? `emoji-tooltip-${crypto.randomUUID()}` : uniqueId('emoji-tooltip-');
231
234
  try {
232
235
  const tooltipInstance = new VanillaTooltip(
@@ -250,6 +250,9 @@ export var EmojiNodeView = /*#__PURE__*/function () {
250
250
  if (!expValEquals('platform_editor_emoji_hover_show_tooltip', 'isEnabled', true)) {
251
251
  return;
252
252
  }
253
+ if (isSSR()) {
254
+ return;
255
+ }
253
256
  var tooltipId = typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function' ? "emoji-tooltip-".concat(crypto.randomUUID()) : uniqueId('emoji-tooltip-');
254
257
  try {
255
258
  var tooltipInstance = new VanillaTooltip(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "13.0.24",
3
+ "version": "13.0.26",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,7 +21,7 @@
21
21
  "singleton": true
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^56.0.0",
24
+ "@atlaskit/adf-schema": "^56.1.0",
25
25
  "@atlaskit/browser-apis": "^1.1.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
27
27
  "@atlaskit/editor-plugin-annotation": "^12.0.0",
@@ -37,15 +37,15 @@
37
37
  "@atlaskit/node-data-provider": "^13.0.0",
38
38
  "@atlaskit/platform-feature-flags": "^2.0.0",
39
39
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
40
- "@atlaskit/tmp-editor-statsig": "^121.0.0",
41
- "@atlaskit/tokens": "^15.4.0",
40
+ "@atlaskit/tmp-editor-statsig": "^122.0.0",
41
+ "@atlaskit/tokens": "^15.5.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
44
44
  "lodash": "^4.17.21",
45
45
  "react-loadable": "^5.1.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^116.22.0",
48
+ "@atlaskit/editor-common": "^116.24.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0",
51
51
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"