@atlaskit/editor-plugin-table 10.10.5 → 10.10.6
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 +10 -0
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +2 -0
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +2 -0
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +2 -0
- package/package.json +2 -2
- package/src/nodeviews/TableComponentWithSharedState.tsx +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.10.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#160340](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160340)
|
|
8
|
+
[`4abcfffdd3620`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4abcfffdd3620) -
|
|
9
|
+
Re-render TableComponentWithSharedState when `targetCellPosition` changes so that table controls
|
|
10
|
+
re-renders
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 10.10.5
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -27,6 +27,8 @@ var useSharedState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (
|
|
|
27
27
|
var hoveredRows = (0, _useInternalTablePluginStateSelector.useInternalTablePluginStateSelector)(api, 'hoveredRows');
|
|
28
28
|
var isTableHovered = (0, _useInternalTablePluginStateSelector.useInternalTablePluginStateSelector)(api, 'isTableHovered');
|
|
29
29
|
var isWholeTableInDanger = (0, _useInternalTablePluginStateSelector.useInternalTablePluginStateSelector)(api, 'isWholeTableInDanger');
|
|
30
|
+
// Required so that table controls re-renders
|
|
31
|
+
(0, _useInternalTablePluginStateSelector.useInternalTablePluginStateSelector)(api, 'targetCellPosition');
|
|
30
32
|
|
|
31
33
|
// mediaState
|
|
32
34
|
var isFullscreen = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'media.isFullscreen');
|
|
@@ -21,6 +21,8 @@ const useSharedState = sharedPluginStateHookMigratorFactory(api => {
|
|
|
21
21
|
const hoveredRows = useInternalTablePluginStateSelector(api, 'hoveredRows');
|
|
22
22
|
const isTableHovered = useInternalTablePluginStateSelector(api, 'isTableHovered');
|
|
23
23
|
const isWholeTableInDanger = useInternalTablePluginStateSelector(api, 'isWholeTableInDanger');
|
|
24
|
+
// Required so that table controls re-renders
|
|
25
|
+
useInternalTablePluginStateSelector(api, 'targetCellPosition');
|
|
24
26
|
|
|
25
27
|
// mediaState
|
|
26
28
|
const isFullscreen = useSharedPluginStateSelector(api, 'media.isFullscreen');
|
|
@@ -21,6 +21,8 @@ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
|
21
21
|
var hoveredRows = useInternalTablePluginStateSelector(api, 'hoveredRows');
|
|
22
22
|
var isTableHovered = useInternalTablePluginStateSelector(api, 'isTableHovered');
|
|
23
23
|
var isWholeTableInDanger = useInternalTablePluginStateSelector(api, 'isWholeTableInDanger');
|
|
24
|
+
// Required so that table controls re-renders
|
|
25
|
+
useInternalTablePluginStateSelector(api, 'targetCellPosition');
|
|
24
26
|
|
|
25
27
|
// mediaState
|
|
26
28
|
var isFullscreen = useSharedPluginStateSelector(api, 'media.isFullscreen');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.10.
|
|
3
|
+
"version": "10.10.6",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
55
55
|
"@atlaskit/primitives": "^14.8.0",
|
|
56
56
|
"@atlaskit/theme": "^18.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^4.25.0",
|
|
58
58
|
"@atlaskit/toggle": "^15.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^4.9.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.0.0",
|
|
@@ -52,6 +52,8 @@ const useSharedState = sharedPluginStateHookMigratorFactory(
|
|
|
52
52
|
const hoveredRows = useInternalTablePluginStateSelector(api, 'hoveredRows');
|
|
53
53
|
const isTableHovered = useInternalTablePluginStateSelector(api, 'isTableHovered');
|
|
54
54
|
const isWholeTableInDanger = useInternalTablePluginStateSelector(api, 'isWholeTableInDanger');
|
|
55
|
+
// Required so that table controls re-renders
|
|
56
|
+
useInternalTablePluginStateSelector(api, 'targetCellPosition');
|
|
55
57
|
|
|
56
58
|
// mediaState
|
|
57
59
|
const isFullscreen = useSharedPluginStateSelector(api, 'media.isFullscreen');
|