@atlaskit/editor-plugin-layout 2.9.10 → 3.0.0
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,53 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
8
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
9
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
10
|
+
|
|
11
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
12
|
+
all editor plugin packages.
|
|
13
|
+
|
|
14
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
15
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
16
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
17
|
+
shared context or singletons.
|
|
18
|
+
|
|
19
|
+
**HOW TO ADJUST:**
|
|
20
|
+
|
|
21
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
22
|
+
any of these editor plugins.
|
|
23
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
24
|
+
- You can use the
|
|
25
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
26
|
+
verify that all required peer dependencies are installed and compatible.
|
|
27
|
+
- Example install command:
|
|
28
|
+
```
|
|
29
|
+
npm install @atlaskit/editor-common
|
|
30
|
+
```
|
|
31
|
+
or
|
|
32
|
+
```
|
|
33
|
+
yarn add @atlaskit/editor-common
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
37
|
+
application level, you may see errors or unexpected behavior.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
43
|
+
## 2.9.11
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- [#176058](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176058)
|
|
48
|
+
[`38c6611bdd480`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38c6611bdd480) -
|
|
49
|
+
ED-28085 Clean up platform_editor_hide_expand_selection_states
|
|
50
|
+
|
|
3
51
|
## 2.9.10
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/rea
|
|
|
17
17
|
var _resizer = require("@atlaskit/editor-common/resizer");
|
|
18
18
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
19
19
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
21
|
var _utils = require("../pm-plugins/utils");
|
|
23
22
|
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); }
|
|
@@ -95,7 +94,7 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
95
94
|
// put the selection into the first column of the layout
|
|
96
95
|
(0, _utils.selectIntoLayout)(view, pos, 0);
|
|
97
96
|
}, [getPos, view]);
|
|
98
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
97
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
99
98
|
return null;
|
|
100
99
|
}
|
|
101
100
|
return /*#__PURE__*/_react.default.createElement(_resizer.BreakoutResizer, {
|
|
@@ -4,7 +4,6 @@ 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';
|
|
6
6
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { selectIntoLayout } from '../pm-plugins/utils';
|
|
10
9
|
const layoutDynamicFullWidthGuidelineOffset = 16;
|
|
@@ -82,7 +81,7 @@ const LayoutBreakoutResizer = ({
|
|
|
82
81
|
// put the selection into the first column of the layout
|
|
83
82
|
selectIntoLayout(view, pos, 0);
|
|
84
83
|
}, [getPos, view]);
|
|
85
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
84
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
86
85
|
return null;
|
|
87
86
|
}
|
|
88
87
|
return /*#__PURE__*/React.createElement(BreakoutResizer, {
|
|
@@ -11,7 +11,6 @@ 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';
|
|
13
13
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { selectIntoLayout } from '../pm-plugins/utils';
|
|
17
16
|
var layoutDynamicFullWidthGuidelineOffset = 16;
|
|
@@ -86,7 +85,7 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
86
85
|
// put the selection into the first column of the layout
|
|
87
86
|
selectIntoLayout(view, pos, 0);
|
|
88
87
|
}, [getPos, view]);
|
|
89
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
88
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
90
89
|
return null;
|
|
91
90
|
}
|
|
92
91
|
return /*#__PURE__*/React.createElement(BreakoutResizer, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export declare const getMaybeLayoutSection: (state: EditorState) => ContentNodeWithPos | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* This helper function is used to select a position inside a layout section.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export declare const getMaybeLayoutSection: (state: EditorState) => ContentNodeWithPos | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* This helper function is used to select a position inside a layout section.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Jenga",
|
|
12
|
-
"singleton": true
|
|
13
|
-
"runReact18": true
|
|
12
|
+
"singleton": true
|
|
14
13
|
},
|
|
15
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
15
|
"main": "dist/cjs/index.js",
|
|
@@ -34,25 +33,25 @@
|
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
35
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-
|
|
38
|
-
"@atlaskit/editor-plugin-
|
|
39
|
-
"@atlaskit/editor-plugin-
|
|
40
|
-
"@atlaskit/editor-plugin-
|
|
41
|
-
"@atlaskit/editor-plugin-
|
|
42
|
-
"@atlaskit/editor-plugin-
|
|
43
|
-
"@atlaskit/editor-plugin-
|
|
44
|
-
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-decorations": "^3.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-editor-disabled": "^3.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-guideline": "^3.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-interaction": "^4.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-selection": "^3.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-width": "^4.0.0",
|
|
45
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
44
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
47
|
-
"@atlaskit/icon": "^27.
|
|
48
|
-
"@atlaskit/icon-lab": "^5.
|
|
45
|
+
"@atlaskit/icon": "^27.2.0",
|
|
46
|
+
"@atlaskit/icon-lab": "^5.1.0",
|
|
49
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
51
49
|
"@atlaskit/tokens": "^5.4.0",
|
|
52
50
|
"@babel/runtime": "^7.0.0",
|
|
53
51
|
"@emotion/react": "^11.7.1"
|
|
54
52
|
},
|
|
55
53
|
"peerDependencies": {
|
|
54
|
+
"@atlaskit/editor-common": "^107.6.0",
|
|
56
55
|
"react": "^18.2.0",
|
|
57
56
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
58
57
|
},
|
|
@@ -109,9 +108,6 @@
|
|
|
109
108
|
},
|
|
110
109
|
"platform_editor_column_count_analytics": {
|
|
111
110
|
"type": "boolean"
|
|
112
|
-
},
|
|
113
|
-
"platform_editor_hide_expand_selection_states": {
|
|
114
|
-
"type": "boolean"
|
|
115
111
|
}
|
|
116
112
|
}
|
|
117
113
|
}
|