@atlaskit/editor-plugin-floating-toolbar 25.0.1 → 26.0.0

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-floating-toolbar
2
2
 
3
+ ## 26.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 25.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`01a66c61973bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01a66c61973bc) -
14
+ Remove lazy-loaded components from SSR bundle.
15
+ - Updated dependencies
16
+
3
17
  ## 25.0.1
4
18
 
5
19
  ### Patch Changes
@@ -59,7 +59,7 @@ var ButtonIconLazy = function ButtonIconLazy(_ref2) {
59
59
  var icon = _ref2.icon,
60
60
  label = _ref2.label;
61
61
  var Icon = _react.default.useMemo(function () {
62
- return (0, _reactLooselyLazy.lazyForPaint)(function () {
62
+ return (0, _reactLooselyLazy.lazy)(function () {
63
63
  return resolveExtensionIcon(icon);
64
64
  });
65
65
  }, [icon]);
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import Loadable from 'react-loadable';
3
3
  // oxlint-disable-next-line @atlassian/no-restricted-imports
4
- import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
4
+ import { lazy, LazySuspense } from 'react-loosely-lazy';
5
5
  import ButtonGroup from '@atlaskit/button/button-group';
6
6
  import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/extensions';
7
7
  import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
@@ -24,7 +24,7 @@ const ButtonIconLazy = ({
24
24
  icon,
25
25
  label
26
26
  }) => {
27
- const Icon = React.useMemo(() => lazyForPaint(() => resolveExtensionIcon(icon)), [icon]);
27
+ const Icon = React.useMemo(() => lazy(() => resolveExtensionIcon(icon)), [icon]);
28
28
  return /*#__PURE__*/React.createElement(LazySuspense, {
29
29
  fallback: null
30
30
  }, /*#__PURE__*/React.createElement(Icon, {
@@ -4,7 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import React, { useEffect, useState } from 'react';
5
5
  import Loadable from 'react-loadable';
6
6
  // oxlint-disable-next-line @atlassian/no-restricted-imports
7
- import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
7
+ import { lazy, LazySuspense } from 'react-loosely-lazy';
8
8
  import ButtonGroup from '@atlaskit/button/button-group';
9
9
  import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/extensions';
10
10
  import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
@@ -49,7 +49,7 @@ var ButtonIconLazy = function ButtonIconLazy(_ref2) {
49
49
  var icon = _ref2.icon,
50
50
  label = _ref2.label;
51
51
  var Icon = React.useMemo(function () {
52
- return lazyForPaint(function () {
52
+ return lazy(function () {
53
53
  return resolveExtensionIcon(icon);
54
54
  });
55
55
  }, [icon]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "25.0.1",
3
+ "version": "26.0.0",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,16 +25,16 @@
25
25
  "@atlaskit/button": "^25.4.0",
26
26
  "@atlaskit/checkbox": "^19.2.0",
27
27
  "@atlaskit/editor-palette": "^3.5.0",
28
- "@atlaskit/editor-plugin-analytics": "^23.0.0",
29
- "@atlaskit/editor-plugin-context-panel": "^25.0.0",
30
- "@atlaskit/editor-plugin-copy-button": "^23.0.0",
31
- "@atlaskit/editor-plugin-decorations": "^23.0.0",
32
- "@atlaskit/editor-plugin-editor-disabled": "^23.0.0",
33
- "@atlaskit/editor-plugin-editor-viewmode": "^25.0.0",
34
- "@atlaskit/editor-plugin-emoji": "^24.0.0",
35
- "@atlaskit/editor-plugin-extension": "^26.0.0",
36
- "@atlaskit/editor-plugin-interaction": "^37.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^21.0.0",
28
+ "@atlaskit/editor-plugin-analytics": "^24.0.0",
29
+ "@atlaskit/editor-plugin-context-panel": "^26.0.0",
30
+ "@atlaskit/editor-plugin-copy-button": "^24.0.0",
31
+ "@atlaskit/editor-plugin-decorations": "^24.0.0",
32
+ "@atlaskit/editor-plugin-editor-disabled": "^24.0.0",
33
+ "@atlaskit/editor-plugin-editor-viewmode": "^26.0.0",
34
+ "@atlaskit/editor-plugin-emoji": "^25.0.0",
35
+ "@atlaskit/editor-plugin-extension": "^27.0.0",
36
+ "@atlaskit/editor-plugin-interaction": "^38.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^22.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^9.0.0",
39
39
  "@atlaskit/emoji": "^72.4.0",
40
40
  "@atlaskit/icon": "^38.0.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/primitives": "^22.5.0",
46
46
  "@atlaskit/select": "^23.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^219.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^220.0.0",
48
48
  "@atlaskit/tokens": "^20.1.0",
49
49
  "@atlaskit/tooltip": "^24.4.0",
50
50
  "@babel/runtime": "^7.0.0",
@@ -56,7 +56,7 @@
56
56
  "react-loosely-lazy": "^1.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^127.1.0",
59
+ "@atlaskit/editor-common": "^128.0.0",
60
60
  "react": "^18.2.0 || ^19.2.0",
61
61
  "react-dom": "^18.2.0 || ^19.2.0",
62
62
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"