@atlaskit/editor-plugin-toolbar-lists-indentation 3.2.5 → 3.2.7
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 3.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#160568](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160568)
|
|
14
|
+
[`d0ada9a83d2ed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0ada9a83d2ed) -
|
|
15
|
+
Re-render PrimaryToolbarComponent when decorationSet changes so the toolbar states updates
|
|
16
|
+
regularly
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 3.2.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -102,6 +102,8 @@ var useSharedState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (
|
|
|
102
102
|
var isIndentationAllowed = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'indentation.isIndentationAllowed');
|
|
103
103
|
var indentDisabled = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'indentation.indentDisabled');
|
|
104
104
|
var outdentDisabled = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'indentation.outdentDisabled');
|
|
105
|
+
// decorationSet is required to re-render PrimaryToolbarComponent component, so that the toolbar states updates regularly
|
|
106
|
+
(0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'list.decorationSet');
|
|
105
107
|
return {
|
|
106
108
|
bulletListActive: bulletListActive,
|
|
107
109
|
bulletListDisabled: bulletListDisabled,
|
|
@@ -91,6 +91,8 @@ const useSharedState = sharedPluginStateHookMigratorFactory(api => {
|
|
|
91
91
|
const isIndentationAllowed = useSharedPluginStateSelector(api, 'indentation.isIndentationAllowed');
|
|
92
92
|
const indentDisabled = useSharedPluginStateSelector(api, 'indentation.indentDisabled');
|
|
93
93
|
const outdentDisabled = useSharedPluginStateSelector(api, 'indentation.outdentDisabled');
|
|
94
|
+
// decorationSet is required to re-render PrimaryToolbarComponent component, so that the toolbar states updates regularly
|
|
95
|
+
useSharedPluginStateSelector(api, 'list.decorationSet');
|
|
94
96
|
return {
|
|
95
97
|
bulletListActive,
|
|
96
98
|
bulletListDisabled,
|
|
@@ -91,6 +91,8 @@ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
|
91
91
|
var isIndentationAllowed = useSharedPluginStateSelector(api, 'indentation.isIndentationAllowed');
|
|
92
92
|
var indentDisabled = useSharedPluginStateSelector(api, 'indentation.indentDisabled');
|
|
93
93
|
var outdentDisabled = useSharedPluginStateSelector(api, 'indentation.outdentDisabled');
|
|
94
|
+
// decorationSet is required to re-render PrimaryToolbarComponent component, so that the toolbar states updates regularly
|
|
95
|
+
useSharedPluginStateSelector(api, 'list.decorationSet');
|
|
94
96
|
return {
|
|
95
97
|
bulletListActive: bulletListActive,
|
|
96
98
|
bulletListDisabled: bulletListDisabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.7",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/css": "^0.10.0",
|
|
37
|
-
"@atlaskit/editor-common": "^105.
|
|
37
|
+
"@atlaskit/editor-common": "^105.10.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-block-type": "^5.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^5.1.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
48
|
-
"@atlaskit/icon": "^26.
|
|
48
|
+
"@atlaskit/icon": "^26.3.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
-
"@atlaskit/tokens": "^4.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^5.0.0",
|
|
51
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|