@atlaskit/editor-plugin-block-type 3.0.17 → 3.0.19
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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 3.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.0.18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#67857](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67857) [`9f1035441959`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f1035441959) - [ED-21835] Change EditorAPI type to always union with undefined
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 3.0.17
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -20,8 +20,8 @@ function PrimaryToolbarComponent(_ref) {
|
|
|
20
20
|
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['blockType']),
|
|
21
21
|
blockTypeState = _useSharedPluginState.blockTypeState;
|
|
22
22
|
var boundSetBlockType = function boundSetBlockType(name) {
|
|
23
|
-
var _api$blockType;
|
|
24
|
-
return api === null || api === void 0 ? void 0 :
|
|
23
|
+
var _api$core, _api$blockType;
|
|
24
|
+
return api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 || (_api$blockType = api.blockType) === null || _api$blockType === void 0 || (_api$blockType = _api$blockType.commands) === null || _api$blockType === void 0 ? void 0 : _api$blockType.setTextLevel(name, _analytics.INPUT_METHOD.TOOLBAR));
|
|
25
25
|
};
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_ToolbarBlockType.default, {
|
|
27
27
|
isSmall: isSmall,
|
|
@@ -15,8 +15,8 @@ export function PrimaryToolbarComponent({
|
|
|
15
15
|
blockTypeState
|
|
16
16
|
} = useSharedPluginState(api, ['blockType']);
|
|
17
17
|
const boundSetBlockType = name => {
|
|
18
|
-
var _api$blockType, _api$blockType$comman;
|
|
19
|
-
return api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockType = api.blockType) === null || _api$blockType === void 0 ? void 0 : (_api$blockType$comman = _api$blockType.commands) === null || _api$blockType$comman === void 0 ? void 0 : _api$blockType$comman.setTextLevel(name, INPUT_METHOD.TOOLBAR));
|
|
18
|
+
var _api$core, _api$blockType, _api$blockType$comman;
|
|
19
|
+
return api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockType = api.blockType) === null || _api$blockType === void 0 ? void 0 : (_api$blockType$comman = _api$blockType.commands) === null || _api$blockType$comman === void 0 ? void 0 : _api$blockType$comman.setTextLevel(name, INPUT_METHOD.TOOLBAR));
|
|
20
20
|
};
|
|
21
21
|
return /*#__PURE__*/React.createElement(ToolbarBlockType, {
|
|
22
22
|
isSmall: isSmall,
|
|
@@ -13,8 +13,8 @@ export function PrimaryToolbarComponent(_ref) {
|
|
|
13
13
|
var _useSharedPluginState = useSharedPluginState(api, ['blockType']),
|
|
14
14
|
blockTypeState = _useSharedPluginState.blockTypeState;
|
|
15
15
|
var boundSetBlockType = function boundSetBlockType(name) {
|
|
16
|
-
var _api$blockType;
|
|
17
|
-
return api === null || api === void 0 ? void 0 :
|
|
16
|
+
var _api$core, _api$blockType;
|
|
17
|
+
return api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 || (_api$blockType = api.blockType) === null || _api$blockType === void 0 || (_api$blockType = _api$blockType.commands) === null || _api$blockType === void 0 ? void 0 : _api$blockType.setTextLevel(name, INPUT_METHOD.TOOLBAR));
|
|
18
18
|
};
|
|
19
19
|
return /*#__PURE__*/React.createElement(ToolbarBlockType, {
|
|
20
20
|
isSmall: isSmall,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.19",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/adf-schema": "^35.3.0",
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
39
|
+
"@atlaskit/editor-common": "^77.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
43
|
-
"@atlaskit/editor-tables": "^2.
|
|
43
|
+
"@atlaskit/editor-tables": "^2.4.0",
|
|
44
44
|
"@atlaskit/icon": "^22.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|
|
47
47
|
"@atlaskit/theme": "^12.6.0",
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.34.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1"
|
|
51
51
|
},
|