@atlaskit/editor-plugin-block-type 6.0.1 → 6.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 +9 -0
- package/dist/cjs/pm-plugins/ui/FloatingToolbarComponent.js +17 -8
- package/dist/cjs/pm-plugins/ui/PrimaryToolbarComponent.js +17 -8
- package/dist/es2019/pm-plugins/ui/FloatingToolbarComponent.js +17 -7
- package/dist/es2019/pm-plugins/ui/PrimaryToolbarComponent.js +17 -7
- package/dist/esm/pm-plugins/ui/FloatingToolbarComponent.js +18 -9
- package/dist/esm/pm-plugins/ui/PrimaryToolbarComponent.js +18 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 6.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#183109](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/183109)
|
|
8
|
+
[`3fd4ff5c71ef7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3fd4ff5c71ef7) -
|
|
9
|
+
Migrate to useSharedPluginStateWithSelector
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 6.0.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ exports.FloatingToolbarComponent = FloatingToolbarComponent;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
13
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
var _ToolbarBlockType = _interopRequireDefault(require("./ToolbarBlockType"));
|
|
15
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -20,11 +19,21 @@ var FloatingToolbarSettings = {
|
|
|
20
19
|
shouldUseDefaultRole: false
|
|
21
20
|
};
|
|
22
21
|
var useFloatingToolbarComponentPluginState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (api) {
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['blockType'], function (states) {
|
|
23
|
+
var _states$blockTypeStat, _states$blockTypeStat2, _states$blockTypeStat3, _states$blockTypeStat4, _states$blockTypeStat5;
|
|
24
|
+
return {
|
|
25
|
+
currentBlockType: (_states$blockTypeStat = states.blockTypeState) === null || _states$blockTypeStat === void 0 ? void 0 : _states$blockTypeStat.currentBlockType,
|
|
26
|
+
blockTypesDisabled: (_states$blockTypeStat2 = states.blockTypeState) === null || _states$blockTypeStat2 === void 0 ? void 0 : _states$blockTypeStat2.blockTypesDisabled,
|
|
27
|
+
availableBlockTypes: (_states$blockTypeStat3 = states.blockTypeState) === null || _states$blockTypeStat3 === void 0 ? void 0 : _states$blockTypeStat3.availableBlockTypes,
|
|
28
|
+
availableBlockTypesInDropdown: (_states$blockTypeStat4 = states.blockTypeState) === null || _states$blockTypeStat4 === void 0 ? void 0 : _states$blockTypeStat4.availableBlockTypesInDropdown,
|
|
29
|
+
formattingIsPresent: (_states$blockTypeStat5 = states.blockTypeState) === null || _states$blockTypeStat5 === void 0 ? void 0 : _states$blockTypeStat5.formattingIsPresent
|
|
30
|
+
};
|
|
31
|
+
}),
|
|
32
|
+
currentBlockType = _useSharedPluginState.currentBlockType,
|
|
33
|
+
blockTypesDisabled = _useSharedPluginState.blockTypesDisabled,
|
|
34
|
+
availableBlockTypes = _useSharedPluginState.availableBlockTypes,
|
|
35
|
+
availableBlockTypesInDropdown = _useSharedPluginState.availableBlockTypesInDropdown,
|
|
36
|
+
formattingIsPresent = _useSharedPluginState.formattingIsPresent;
|
|
28
37
|
return {
|
|
29
38
|
currentBlockType: currentBlockType,
|
|
30
39
|
blockTypesDisabled: blockTypesDisabled,
|
|
@@ -33,8 +42,8 @@ var useFloatingToolbarComponentPluginState = (0, _hooks.sharedPluginStateHookMig
|
|
|
33
42
|
formattingIsPresent: formattingIsPresent
|
|
34
43
|
};
|
|
35
44
|
}, function (api) {
|
|
36
|
-
var
|
|
37
|
-
blockTypeState =
|
|
45
|
+
var _useSharedPluginState2 = (0, _hooks.useSharedPluginState)(api, ['blockType']),
|
|
46
|
+
blockTypeState = _useSharedPluginState2.blockTypeState;
|
|
38
47
|
return {
|
|
39
48
|
currentBlockType: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.currentBlockType,
|
|
40
49
|
blockTypesDisabled: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.blockTypesDisabled,
|
|
@@ -8,14 +8,23 @@ exports.PrimaryToolbarComponent = PrimaryToolbarComponent;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
12
11
|
var _ToolbarBlockType = _interopRequireDefault(require("./ToolbarBlockType"));
|
|
13
12
|
var usePrimaryToolbarComponentPluginState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (api) {
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['blockType'], function (states) {
|
|
14
|
+
var _states$blockTypeStat, _states$blockTypeStat2, _states$blockTypeStat3, _states$blockTypeStat4, _states$blockTypeStat5;
|
|
15
|
+
return {
|
|
16
|
+
currentBlockType: (_states$blockTypeStat = states.blockTypeState) === null || _states$blockTypeStat === void 0 ? void 0 : _states$blockTypeStat.currentBlockType,
|
|
17
|
+
blockTypesDisabled: (_states$blockTypeStat2 = states.blockTypeState) === null || _states$blockTypeStat2 === void 0 ? void 0 : _states$blockTypeStat2.blockTypesDisabled,
|
|
18
|
+
availableBlockTypes: (_states$blockTypeStat3 = states.blockTypeState) === null || _states$blockTypeStat3 === void 0 ? void 0 : _states$blockTypeStat3.availableBlockTypes,
|
|
19
|
+
availableBlockTypesInDropdown: (_states$blockTypeStat4 = states.blockTypeState) === null || _states$blockTypeStat4 === void 0 ? void 0 : _states$blockTypeStat4.availableBlockTypesInDropdown,
|
|
20
|
+
formattingIsPresent: (_states$blockTypeStat5 = states.blockTypeState) === null || _states$blockTypeStat5 === void 0 ? void 0 : _states$blockTypeStat5.formattingIsPresent
|
|
21
|
+
};
|
|
22
|
+
}),
|
|
23
|
+
currentBlockType = _useSharedPluginState.currentBlockType,
|
|
24
|
+
blockTypesDisabled = _useSharedPluginState.blockTypesDisabled,
|
|
25
|
+
availableBlockTypes = _useSharedPluginState.availableBlockTypes,
|
|
26
|
+
availableBlockTypesInDropdown = _useSharedPluginState.availableBlockTypesInDropdown,
|
|
27
|
+
formattingIsPresent = _useSharedPluginState.formattingIsPresent;
|
|
19
28
|
return {
|
|
20
29
|
currentBlockType: currentBlockType,
|
|
21
30
|
blockTypesDisabled: blockTypesDisabled,
|
|
@@ -24,8 +33,8 @@ var usePrimaryToolbarComponentPluginState = (0, _hooks.sharedPluginStateHookMigr
|
|
|
24
33
|
formattingIsPresent: formattingIsPresent
|
|
25
34
|
};
|
|
26
35
|
}, function (api) {
|
|
27
|
-
var
|
|
28
|
-
blockTypeState =
|
|
36
|
+
var _useSharedPluginState2 = (0, _hooks.useSharedPluginState)(api, ['blockType']),
|
|
37
|
+
blockTypeState = _useSharedPluginState2.blockTypeState;
|
|
29
38
|
return {
|
|
30
39
|
currentBlockType: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.currentBlockType,
|
|
31
40
|
blockTypesDisabled: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.blockTypesDisabled,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
3
|
+
import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import ToolbarBlockType from './ToolbarBlockType';
|
|
7
6
|
const FloatingToolbarSettings = {
|
|
@@ -11,11 +10,22 @@ const FloatingToolbarSettings = {
|
|
|
11
10
|
shouldUseDefaultRole: false
|
|
12
11
|
};
|
|
13
12
|
const useFloatingToolbarComponentPluginState = sharedPluginStateHookMigratorFactory(api => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const {
|
|
14
|
+
currentBlockType,
|
|
15
|
+
blockTypesDisabled,
|
|
16
|
+
availableBlockTypes,
|
|
17
|
+
availableBlockTypesInDropdown,
|
|
18
|
+
formattingIsPresent
|
|
19
|
+
} = useSharedPluginStateWithSelector(api, ['blockType'], states => {
|
|
20
|
+
var _states$blockTypeStat, _states$blockTypeStat2, _states$blockTypeStat3, _states$blockTypeStat4, _states$blockTypeStat5;
|
|
21
|
+
return {
|
|
22
|
+
currentBlockType: (_states$blockTypeStat = states.blockTypeState) === null || _states$blockTypeStat === void 0 ? void 0 : _states$blockTypeStat.currentBlockType,
|
|
23
|
+
blockTypesDisabled: (_states$blockTypeStat2 = states.blockTypeState) === null || _states$blockTypeStat2 === void 0 ? void 0 : _states$blockTypeStat2.blockTypesDisabled,
|
|
24
|
+
availableBlockTypes: (_states$blockTypeStat3 = states.blockTypeState) === null || _states$blockTypeStat3 === void 0 ? void 0 : _states$blockTypeStat3.availableBlockTypes,
|
|
25
|
+
availableBlockTypesInDropdown: (_states$blockTypeStat4 = states.blockTypeState) === null || _states$blockTypeStat4 === void 0 ? void 0 : _states$blockTypeStat4.availableBlockTypesInDropdown,
|
|
26
|
+
formattingIsPresent: (_states$blockTypeStat5 = states.blockTypeState) === null || _states$blockTypeStat5 === void 0 ? void 0 : _states$blockTypeStat5.formattingIsPresent
|
|
27
|
+
};
|
|
28
|
+
});
|
|
19
29
|
return {
|
|
20
30
|
currentBlockType,
|
|
21
31
|
blockTypesDisabled,
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
3
|
+
import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import ToolbarBlockType from './ToolbarBlockType';
|
|
6
5
|
const usePrimaryToolbarComponentPluginState = sharedPluginStateHookMigratorFactory(api => {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const {
|
|
7
|
+
currentBlockType,
|
|
8
|
+
blockTypesDisabled,
|
|
9
|
+
availableBlockTypes,
|
|
10
|
+
availableBlockTypesInDropdown,
|
|
11
|
+
formattingIsPresent
|
|
12
|
+
} = useSharedPluginStateWithSelector(api, ['blockType'], states => {
|
|
13
|
+
var _states$blockTypeStat, _states$blockTypeStat2, _states$blockTypeStat3, _states$blockTypeStat4, _states$blockTypeStat5;
|
|
14
|
+
return {
|
|
15
|
+
currentBlockType: (_states$blockTypeStat = states.blockTypeState) === null || _states$blockTypeStat === void 0 ? void 0 : _states$blockTypeStat.currentBlockType,
|
|
16
|
+
blockTypesDisabled: (_states$blockTypeStat2 = states.blockTypeState) === null || _states$blockTypeStat2 === void 0 ? void 0 : _states$blockTypeStat2.blockTypesDisabled,
|
|
17
|
+
availableBlockTypes: (_states$blockTypeStat3 = states.blockTypeState) === null || _states$blockTypeStat3 === void 0 ? void 0 : _states$blockTypeStat3.availableBlockTypes,
|
|
18
|
+
availableBlockTypesInDropdown: (_states$blockTypeStat4 = states.blockTypeState) === null || _states$blockTypeStat4 === void 0 ? void 0 : _states$blockTypeStat4.availableBlockTypesInDropdown,
|
|
19
|
+
formattingIsPresent: (_states$blockTypeStat5 = states.blockTypeState) === null || _states$blockTypeStat5 === void 0 ? void 0 : _states$blockTypeStat5.formattingIsPresent
|
|
20
|
+
};
|
|
21
|
+
});
|
|
12
22
|
return {
|
|
13
23
|
currentBlockType,
|
|
14
24
|
blockTypesDisabled,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
3
|
+
import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import ToolbarBlockType from './ToolbarBlockType';
|
|
7
6
|
var FloatingToolbarSettings = {
|
|
@@ -11,11 +10,21 @@ var FloatingToolbarSettings = {
|
|
|
11
10
|
shouldUseDefaultRole: false
|
|
12
11
|
};
|
|
13
12
|
var useFloatingToolbarComponentPluginState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['blockType'], function (states) {
|
|
14
|
+
var _states$blockTypeStat, _states$blockTypeStat2, _states$blockTypeStat3, _states$blockTypeStat4, _states$blockTypeStat5;
|
|
15
|
+
return {
|
|
16
|
+
currentBlockType: (_states$blockTypeStat = states.blockTypeState) === null || _states$blockTypeStat === void 0 ? void 0 : _states$blockTypeStat.currentBlockType,
|
|
17
|
+
blockTypesDisabled: (_states$blockTypeStat2 = states.blockTypeState) === null || _states$blockTypeStat2 === void 0 ? void 0 : _states$blockTypeStat2.blockTypesDisabled,
|
|
18
|
+
availableBlockTypes: (_states$blockTypeStat3 = states.blockTypeState) === null || _states$blockTypeStat3 === void 0 ? void 0 : _states$blockTypeStat3.availableBlockTypes,
|
|
19
|
+
availableBlockTypesInDropdown: (_states$blockTypeStat4 = states.blockTypeState) === null || _states$blockTypeStat4 === void 0 ? void 0 : _states$blockTypeStat4.availableBlockTypesInDropdown,
|
|
20
|
+
formattingIsPresent: (_states$blockTypeStat5 = states.blockTypeState) === null || _states$blockTypeStat5 === void 0 ? void 0 : _states$blockTypeStat5.formattingIsPresent
|
|
21
|
+
};
|
|
22
|
+
}),
|
|
23
|
+
currentBlockType = _useSharedPluginState.currentBlockType,
|
|
24
|
+
blockTypesDisabled = _useSharedPluginState.blockTypesDisabled,
|
|
25
|
+
availableBlockTypes = _useSharedPluginState.availableBlockTypes,
|
|
26
|
+
availableBlockTypesInDropdown = _useSharedPluginState.availableBlockTypesInDropdown,
|
|
27
|
+
formattingIsPresent = _useSharedPluginState.formattingIsPresent;
|
|
19
28
|
return {
|
|
20
29
|
currentBlockType: currentBlockType,
|
|
21
30
|
blockTypesDisabled: blockTypesDisabled,
|
|
@@ -24,8 +33,8 @@ var useFloatingToolbarComponentPluginState = sharedPluginStateHookMigratorFactor
|
|
|
24
33
|
formattingIsPresent: formattingIsPresent
|
|
25
34
|
};
|
|
26
35
|
}, function (api) {
|
|
27
|
-
var
|
|
28
|
-
blockTypeState =
|
|
36
|
+
var _useSharedPluginState2 = useSharedPluginState(api, ['blockType']),
|
|
37
|
+
blockTypeState = _useSharedPluginState2.blockTypeState;
|
|
29
38
|
return {
|
|
30
39
|
currentBlockType: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.currentBlockType,
|
|
31
40
|
blockTypesDisabled: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.blockTypesDisabled,
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
3
|
+
import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import ToolbarBlockType from './ToolbarBlockType';
|
|
6
5
|
var usePrimaryToolbarComponentPluginState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['blockType'], function (states) {
|
|
7
|
+
var _states$blockTypeStat, _states$blockTypeStat2, _states$blockTypeStat3, _states$blockTypeStat4, _states$blockTypeStat5;
|
|
8
|
+
return {
|
|
9
|
+
currentBlockType: (_states$blockTypeStat = states.blockTypeState) === null || _states$blockTypeStat === void 0 ? void 0 : _states$blockTypeStat.currentBlockType,
|
|
10
|
+
blockTypesDisabled: (_states$blockTypeStat2 = states.blockTypeState) === null || _states$blockTypeStat2 === void 0 ? void 0 : _states$blockTypeStat2.blockTypesDisabled,
|
|
11
|
+
availableBlockTypes: (_states$blockTypeStat3 = states.blockTypeState) === null || _states$blockTypeStat3 === void 0 ? void 0 : _states$blockTypeStat3.availableBlockTypes,
|
|
12
|
+
availableBlockTypesInDropdown: (_states$blockTypeStat4 = states.blockTypeState) === null || _states$blockTypeStat4 === void 0 ? void 0 : _states$blockTypeStat4.availableBlockTypesInDropdown,
|
|
13
|
+
formattingIsPresent: (_states$blockTypeStat5 = states.blockTypeState) === null || _states$blockTypeStat5 === void 0 ? void 0 : _states$blockTypeStat5.formattingIsPresent
|
|
14
|
+
};
|
|
15
|
+
}),
|
|
16
|
+
currentBlockType = _useSharedPluginState.currentBlockType,
|
|
17
|
+
blockTypesDisabled = _useSharedPluginState.blockTypesDisabled,
|
|
18
|
+
availableBlockTypes = _useSharedPluginState.availableBlockTypes,
|
|
19
|
+
availableBlockTypesInDropdown = _useSharedPluginState.availableBlockTypesInDropdown,
|
|
20
|
+
formattingIsPresent = _useSharedPluginState.formattingIsPresent;
|
|
12
21
|
return {
|
|
13
22
|
currentBlockType: currentBlockType,
|
|
14
23
|
blockTypesDisabled: blockTypesDisabled,
|
|
@@ -17,8 +26,8 @@ var usePrimaryToolbarComponentPluginState = sharedPluginStateHookMigratorFactory
|
|
|
17
26
|
formattingIsPresent: formattingIsPresent
|
|
18
27
|
};
|
|
19
28
|
}, function (api) {
|
|
20
|
-
var
|
|
21
|
-
blockTypeState =
|
|
29
|
+
var _useSharedPluginState2 = useSharedPluginState(api, ['blockType']),
|
|
30
|
+
blockTypeState = _useSharedPluginState2.blockTypeState;
|
|
22
31
|
return {
|
|
23
32
|
currentBlockType: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.currentBlockType,
|
|
24
33
|
blockTypesDisabled: blockTypeState === null || blockTypeState === void 0 ? void 0 : blockTypeState.blockTypesDisabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/primitives": "^14.10.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
49
|
"@atlaskit/theme": "^18.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^9.1.0",
|
|
51
51
|
"@atlaskit/tokens": "^5.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|