@atlaskit/editor-plugin-floating-toolbar 25.0.0 → 25.0.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,24 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 25.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`01a66c61973bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01a66c61973bc) -
8
+ Remove lazy-loaded components from SSR bundle.
9
+ - Updated dependencies
10
+
11
+ ## 25.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`457c77d8f6992`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/457c77d8f6992) -
16
+ Behind `platform-dst-top-layer-tooltip`: tooltips whose content changes on press (for example
17
+ "Copy" to "Copied!") stay open to show the new content. `@atlaskit/editor-common` floating toolbar
18
+ buttons and `@atlaskit/smart-card` stack-item actions add an optional
19
+ `hasNewContentOnTriggerClick` prop.
20
+ - Updated dependencies
21
+
3
22
  ## 25.0.0
4
23
 
5
24
  ### 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]);
@@ -175,6 +175,7 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
175
175
  tooltipContent: item.tooltipContent,
176
176
  testId: item.testId,
177
177
  hideTooltipOnClick: item.hideTooltipOnClick,
178
+ hasNewContentOnTriggerClick: item.hasNewContentOnTriggerClick,
178
179
  ariaHasPopup: item.ariaHasPopup,
179
180
  tabIndex: item.tabIndex,
180
181
  isRadioButton: item.isRadioButton,
@@ -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, {
@@ -156,6 +156,7 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
156
156
  tooltipContent: item.tooltipContent,
157
157
  testId: item.testId,
158
158
  hideTooltipOnClick: item.hideTooltipOnClick,
159
+ hasNewContentOnTriggerClick: item.hasNewContentOnTriggerClick,
159
160
  ariaHasPopup: item.ariaHasPopup,
160
161
  tabIndex: item.tabIndex,
161
162
  isRadioButton: item.isRadioButton,
@@ -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]);
@@ -170,6 +170,7 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
170
170
  tooltipContent: item.tooltipContent,
171
171
  testId: item.testId,
172
172
  hideTooltipOnClick: item.hideTooltipOnClick,
173
+ hasNewContentOnTriggerClick: item.hasNewContentOnTriggerClick,
173
174
  ariaHasPopup: item.ariaHasPopup,
174
175
  tabIndex: item.tabIndex,
175
176
  isRadioButton: item.isRadioButton,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "25.0.0",
3
+ "version": "25.0.2",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,9 +44,9 @@
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
- "@atlaskit/tooltip": "^24.3.0",
49
+ "@atlaskit/tooltip": "^24.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "bind-event-listener": "^3.0.0",
@@ -56,7 +56,7 @@
56
56
  "react-loosely-lazy": "^1.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^127.0.0",
59
+ "@atlaskit/editor-common": "^127.2.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"