@atlaskit/editor-plugin-layout 3.2.0 → 3.2.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 +18 -0
- package/dist/cjs/nodeviews/index.js +2 -11
- package/dist/es2019/nodeviews/index.js +2 -12
- package/dist/esm/nodeviews/index.js +3 -12
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 3.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a024ea6d25dc1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a024ea6d25dc1) -
|
|
8
|
+
[ED-29106] cleans up usages of sharedPluginStateHookMigratorFactory
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 3.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`fb67102acfc05`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fb67102acfc05) -
|
|
16
|
+
EDITOR-1443 Use layoutSectionWithLocalId behind fg('platform_editor_adf_with_localid')
|
|
17
|
+
- [`a2cd8c46a3e94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2cd8c46a3e94) -
|
|
18
|
+
EDITOR-1442 Bump adf-schema
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 3.2.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -54,15 +54,6 @@ var selector = function selector(states) {
|
|
|
54
54
|
editorDisabled: (_states$editorDisable = states.editorDisabledState) === null || _states$editorDisable === void 0 ? void 0 : _states$editorDisable.editorDisabled
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
var useSharedState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (api) {
|
|
58
|
-
return (0, _hooks.useSharedPluginStateWithSelector)(api, ['editorDisabled'], selector);
|
|
59
|
-
}, function (api) {
|
|
60
|
-
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['editorDisabled']),
|
|
61
|
-
editorDisabledState = _useSharedPluginState.editorDisabledState;
|
|
62
|
-
return {
|
|
63
|
-
editorDisabled: editorDisabledState === null || editorDisabledState === void 0 ? void 0 : editorDisabledState.editorDisabled
|
|
64
|
-
};
|
|
65
|
-
});
|
|
66
57
|
var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
67
58
|
var _pluginInjectionApi$a;
|
|
68
59
|
var pluginInjectionApi = _ref.pluginInjectionApi,
|
|
@@ -70,8 +61,8 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
70
61
|
getPos = _ref.getPos,
|
|
71
62
|
view = _ref.view,
|
|
72
63
|
parentRef = _ref.parentRef;
|
|
73
|
-
var
|
|
74
|
-
editorDisabled =
|
|
64
|
+
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(pluginInjectionApi, ['editorDisabled'], selector),
|
|
65
|
+
editorDisabled = _useSharedPluginState.editorDisabled;
|
|
75
66
|
var interactionState = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'interaction.interactionState');
|
|
76
67
|
var getEditorWidth = function getEditorWidth() {
|
|
77
68
|
var _pluginInjectionApi$w;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
4
4
|
import { BreakoutResizer, ignoreResizerMutations } from '@atlaskit/editor-common/resizer';
|
|
5
5
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
@@ -38,16 +38,6 @@ const selector = states => {
|
|
|
38
38
|
editorDisabled: (_states$editorDisable = states.editorDisabledState) === null || _states$editorDisable === void 0 ? void 0 : _states$editorDisable.editorDisabled
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
const useSharedState = sharedPluginStateHookMigratorFactory(api => {
|
|
42
|
-
return useSharedPluginStateWithSelector(api, ['editorDisabled'], selector);
|
|
43
|
-
}, api => {
|
|
44
|
-
const {
|
|
45
|
-
editorDisabledState
|
|
46
|
-
} = useSharedPluginState(api, ['editorDisabled']);
|
|
47
|
-
return {
|
|
48
|
-
editorDisabled: editorDisabledState === null || editorDisabledState === void 0 ? void 0 : editorDisabledState.editorDisabled
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
41
|
const LayoutBreakoutResizer = ({
|
|
52
42
|
pluginInjectionApi,
|
|
53
43
|
forwardRef,
|
|
@@ -58,7 +48,7 @@ const LayoutBreakoutResizer = ({
|
|
|
58
48
|
var _pluginInjectionApi$a;
|
|
59
49
|
const {
|
|
60
50
|
editorDisabled
|
|
61
|
-
} =
|
|
51
|
+
} = useSharedPluginStateWithSelector(pluginInjectionApi, ['editorDisabled'], selector);
|
|
62
52
|
const interactionState = useSharedPluginStateSelector(pluginInjectionApi, 'interaction.interactionState');
|
|
63
53
|
const getEditorWidth = () => {
|
|
64
54
|
var _pluginInjectionApi$w;
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React, { useCallback } from 'react';
|
|
9
|
-
import {
|
|
9
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
10
10
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
11
11
|
import { BreakoutResizer, ignoreResizerMutations } from '@atlaskit/editor-common/resizer';
|
|
12
12
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
@@ -45,15 +45,6 @@ var selector = function selector(states) {
|
|
|
45
45
|
editorDisabled: (_states$editorDisable = states.editorDisabledState) === null || _states$editorDisable === void 0 ? void 0 : _states$editorDisable.editorDisabled
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
49
|
-
return useSharedPluginStateWithSelector(api, ['editorDisabled'], selector);
|
|
50
|
-
}, function (api) {
|
|
51
|
-
var _useSharedPluginState = useSharedPluginState(api, ['editorDisabled']),
|
|
52
|
-
editorDisabledState = _useSharedPluginState.editorDisabledState;
|
|
53
|
-
return {
|
|
54
|
-
editorDisabled: editorDisabledState === null || editorDisabledState === void 0 ? void 0 : editorDisabledState.editorDisabled
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
48
|
var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
58
49
|
var _pluginInjectionApi$a;
|
|
59
50
|
var pluginInjectionApi = _ref.pluginInjectionApi,
|
|
@@ -61,8 +52,8 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
61
52
|
getPos = _ref.getPos,
|
|
62
53
|
view = _ref.view,
|
|
63
54
|
parentRef = _ref.parentRef;
|
|
64
|
-
var
|
|
65
|
-
editorDisabled =
|
|
55
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(pluginInjectionApi, ['editorDisabled'], selector),
|
|
56
|
+
editorDisabled = _useSharedPluginState.editorDisabled;
|
|
66
57
|
var interactionState = useSharedPluginStateSelector(pluginInjectionApi, 'interaction.interactionState');
|
|
67
58
|
var getEditorWidth = function getEditorWidth() {
|
|
68
59
|
var _pluginInjectionApi$w;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,11 +28,8 @@
|
|
|
28
28
|
"*.compiled.css"
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
|
-
"af:exports": {
|
|
32
|
-
".": "./src/index.ts"
|
|
33
|
-
},
|
|
34
31
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
32
|
+
"@atlaskit/adf-schema": "^50.2.3",
|
|
36
33
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
37
34
|
"@atlaskit/editor-plugin-decorations": "^3.1.0",
|
|
38
35
|
"@atlaskit/editor-plugin-editor-disabled": "^3.0.0",
|
|
@@ -42,16 +39,16 @@
|
|
|
42
39
|
"@atlaskit/editor-plugin-width": "^4.0.0",
|
|
43
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
41
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
45
|
-
"@atlaskit/icon": "^28.
|
|
46
|
-
"@atlaskit/icon-lab": "^5.
|
|
42
|
+
"@atlaskit/icon": "^28.1.0",
|
|
43
|
+
"@atlaskit/icon-lab": "^5.7.0",
|
|
47
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
49
|
-
"@atlaskit/tokens": "^6.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^11.9.0",
|
|
46
|
+
"@atlaskit/tokens": "^6.1.0",
|
|
50
47
|
"@babel/runtime": "^7.0.0",
|
|
51
48
|
"@emotion/react": "^11.7.1"
|
|
52
49
|
},
|
|
53
50
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^107.
|
|
51
|
+
"@atlaskit/editor-common": "^107.33.0",
|
|
55
52
|
"react": "^18.2.0",
|
|
56
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
57
54
|
},
|