@atlaskit/editor-plugin-breakout 2.9.1 → 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 +48 -0
- package/dist/cjs/breakoutPlugin.js +10 -6
- package/dist/es2019/breakoutPlugin.js +10 -6
- package/dist/esm/breakoutPlugin.js +10 -6
- package/dist/types/breakoutPluginType.d.ts +2 -1
- package/dist/types/pm-plugins/get-guidelines.d.ts +1 -1
- package/dist/types/pm-plugins/resizer-callbacks.d.ts +2 -2
- package/dist/types/pm-plugins/resizing-plugin.d.ts +1 -1
- package/dist/types/pm-plugins/utils/analytics.d.ts +1 -1
- package/dist/types/ui/GuidelineLabel.d.ts +1 -1
- package/dist/types-ts4.5/breakoutPluginType.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/get-guidelines.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/resizer-callbacks.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/resizing-plugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +1 -1
- package/dist/types-ts4.5/ui/GuidelineLabel.d.ts +1 -1
- package/package.json +16 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
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.2
|
|
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.1
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
|
@@ -36,7 +36,7 @@ var BreakoutView = /*#__PURE__*/(0, _createClass2.default)(function BreakoutView
|
|
|
36
36
|
* of the prosemirror and prosemirror types mean using PMNode
|
|
37
37
|
* is not problematic.
|
|
38
38
|
*/
|
|
39
|
-
mark, view) {
|
|
39
|
+
mark, view, appearance) {
|
|
40
40
|
(0, _classCallCheck2.default)(this, BreakoutView);
|
|
41
41
|
var dom = document.createElement('div');
|
|
42
42
|
var contentDOM = document.createElement('div');
|
|
@@ -59,7 +59,11 @@ mark, view) {
|
|
|
59
59
|
contentDOM.style.minWidth = "max(var(--ak-editor--line-length), min(var(--ak-editor--full-width-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))))";
|
|
60
60
|
}
|
|
61
61
|
if (mark.attrs.mode === 'wide') {
|
|
62
|
-
|
|
62
|
+
if (appearance && appearance === 'full-width' && (0, _experiments.editorExperiment)('single_column_layouts', true) && (0, _platformFeatureFlags.fg)('platform_editor_layout_guideline_full_width_fix')) {
|
|
63
|
+
contentDOM.style.minWidth = "min(var(--ak-editor--breakout-wide-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding)))";
|
|
64
|
+
} else {
|
|
65
|
+
contentDOM.style.minWidth = "max(var(--ak-editor--line-length), min(var(--ak-editor--breakout-wide-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))))";
|
|
66
|
+
}
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
} else {
|
|
@@ -82,7 +86,7 @@ function shouldPluginStateUpdate(newBreakoutNode, currentBreakoutNode) {
|
|
|
82
86
|
}
|
|
83
87
|
return newBreakoutNode || currentBreakoutNode ? true : false;
|
|
84
88
|
}
|
|
85
|
-
function createPlugin(api, _ref) {
|
|
89
|
+
function createPlugin(api, _ref, appearance) {
|
|
86
90
|
var dispatch = _ref.dispatch;
|
|
87
91
|
return new _safePlugin.SafePlugin({
|
|
88
92
|
state: {
|
|
@@ -112,7 +116,7 @@ function createPlugin(api, _ref) {
|
|
|
112
116
|
// See the following link for more details:
|
|
113
117
|
// https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews.
|
|
114
118
|
breakout: function breakout(mark, view) {
|
|
115
|
-
return new BreakoutView(mark, view);
|
|
119
|
+
return new BreakoutView(mark, view, appearance);
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
}
|
|
@@ -182,7 +186,7 @@ var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
|
|
|
182
186
|
}
|
|
183
187
|
});
|
|
184
188
|
var interactionState = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'interaction.interactionState');
|
|
185
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
189
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
186
190
|
return null;
|
|
187
191
|
}
|
|
188
192
|
if (isDragging || isPMDragging) {
|
|
@@ -223,7 +227,7 @@ var breakoutPlugin = exports.breakoutPlugin = function breakoutPlugin(_ref4) {
|
|
|
223
227
|
return [{
|
|
224
228
|
name: 'breakout',
|
|
225
229
|
plugin: function plugin(props) {
|
|
226
|
-
return createPlugin(api, props);
|
|
230
|
+
return createPlugin(api, props, options === null || options === void 0 ? void 0 : options.appearance);
|
|
227
231
|
}
|
|
228
232
|
}];
|
|
229
233
|
},
|
|
@@ -22,7 +22,7 @@ class BreakoutView {
|
|
|
22
22
|
* of the prosemirror and prosemirror types mean using PMNode
|
|
23
23
|
* is not problematic.
|
|
24
24
|
*/
|
|
25
|
-
mark, view) {
|
|
25
|
+
mark, view, appearance) {
|
|
26
26
|
const dom = document.createElement('div');
|
|
27
27
|
const contentDOM = document.createElement('div');
|
|
28
28
|
contentDOM.className = BreakoutCssClassName.BREAKOUT_MARK_DOM;
|
|
@@ -44,7 +44,11 @@ class BreakoutView {
|
|
|
44
44
|
contentDOM.style.minWidth = `max(var(--ak-editor--line-length), min(var(--ak-editor--full-width-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))))`;
|
|
45
45
|
}
|
|
46
46
|
if (mark.attrs.mode === 'wide') {
|
|
47
|
-
|
|
47
|
+
if (appearance && appearance === 'full-width' && editorExperiment('single_column_layouts', true) && fg('platform_editor_layout_guideline_full_width_fix')) {
|
|
48
|
+
contentDOM.style.minWidth = `min(var(--ak-editor--breakout-wide-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding)))`;
|
|
49
|
+
} else {
|
|
50
|
+
contentDOM.style.minWidth = `max(var(--ak-editor--line-length), min(var(--ak-editor--breakout-wide-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))))`;
|
|
51
|
+
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
} else {
|
|
@@ -70,7 +74,7 @@ function shouldPluginStateUpdate(newBreakoutNode, currentBreakoutNode) {
|
|
|
70
74
|
}
|
|
71
75
|
function createPlugin(api, {
|
|
72
76
|
dispatch
|
|
73
|
-
}) {
|
|
77
|
+
}, appearance) {
|
|
74
78
|
return new SafePlugin({
|
|
75
79
|
state: {
|
|
76
80
|
init() {
|
|
@@ -100,7 +104,7 @@ function createPlugin(api, {
|
|
|
100
104
|
// See the following link for more details:
|
|
101
105
|
// https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews.
|
|
102
106
|
breakout: (mark, view) => {
|
|
103
|
-
return new BreakoutView(mark, view);
|
|
107
|
+
return new BreakoutView(mark, view, appearance);
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
}
|
|
@@ -168,7 +172,7 @@ const LayoutButtonWrapper = ({
|
|
|
168
172
|
}
|
|
169
173
|
});
|
|
170
174
|
const interactionState = useSharedPluginStateSelector(api, 'interaction.interactionState');
|
|
171
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
175
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
172
176
|
return null;
|
|
173
177
|
}
|
|
174
178
|
if (isDragging || isPMDragging) {
|
|
@@ -207,7 +211,7 @@ export const breakoutPlugin = ({
|
|
|
207
211
|
}
|
|
208
212
|
return [{
|
|
209
213
|
name: 'breakout',
|
|
210
|
-
plugin: props => createPlugin(api, props)
|
|
214
|
+
plugin: props => createPlugin(api, props, options === null || options === void 0 ? void 0 : options.appearance)
|
|
211
215
|
}];
|
|
212
216
|
},
|
|
213
217
|
marks() {
|
|
@@ -27,7 +27,7 @@ var BreakoutView = /*#__PURE__*/_createClass(function BreakoutView(
|
|
|
27
27
|
* of the prosemirror and prosemirror types mean using PMNode
|
|
28
28
|
* is not problematic.
|
|
29
29
|
*/
|
|
30
|
-
mark, view) {
|
|
30
|
+
mark, view, appearance) {
|
|
31
31
|
_classCallCheck(this, BreakoutView);
|
|
32
32
|
var dom = document.createElement('div');
|
|
33
33
|
var contentDOM = document.createElement('div');
|
|
@@ -50,7 +50,11 @@ mark, view) {
|
|
|
50
50
|
contentDOM.style.minWidth = "max(var(--ak-editor--line-length), min(var(--ak-editor--full-width-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))))";
|
|
51
51
|
}
|
|
52
52
|
if (mark.attrs.mode === 'wide') {
|
|
53
|
-
|
|
53
|
+
if (appearance && appearance === 'full-width' && editorExperiment('single_column_layouts', true) && fg('platform_editor_layout_guideline_full_width_fix')) {
|
|
54
|
+
contentDOM.style.minWidth = "min(var(--ak-editor--breakout-wide-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding)))";
|
|
55
|
+
} else {
|
|
56
|
+
contentDOM.style.minWidth = "max(var(--ak-editor--line-length), min(var(--ak-editor--breakout-wide-layout-width), calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))))";
|
|
57
|
+
}
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
} else {
|
|
@@ -73,7 +77,7 @@ function shouldPluginStateUpdate(newBreakoutNode, currentBreakoutNode) {
|
|
|
73
77
|
}
|
|
74
78
|
return newBreakoutNode || currentBreakoutNode ? true : false;
|
|
75
79
|
}
|
|
76
|
-
function createPlugin(api, _ref) {
|
|
80
|
+
function createPlugin(api, _ref, appearance) {
|
|
77
81
|
var dispatch = _ref.dispatch;
|
|
78
82
|
return new SafePlugin({
|
|
79
83
|
state: {
|
|
@@ -103,7 +107,7 @@ function createPlugin(api, _ref) {
|
|
|
103
107
|
// See the following link for more details:
|
|
104
108
|
// https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews.
|
|
105
109
|
breakout: function breakout(mark, view) {
|
|
106
|
-
return new BreakoutView(mark, view);
|
|
110
|
+
return new BreakoutView(mark, view, appearance);
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
}
|
|
@@ -173,7 +177,7 @@ var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
|
|
|
173
177
|
}
|
|
174
178
|
});
|
|
175
179
|
var interactionState = useSharedPluginStateSelector(api, 'interaction.interactionState');
|
|
176
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
180
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
177
181
|
return null;
|
|
178
182
|
}
|
|
179
183
|
if (isDragging || isPMDragging) {
|
|
@@ -214,7 +218,7 @@ export var breakoutPlugin = function breakoutPlugin(_ref4) {
|
|
|
214
218
|
return [{
|
|
215
219
|
name: 'breakout',
|
|
216
220
|
plugin: function plugin(props) {
|
|
217
|
-
return createPlugin(api, props);
|
|
221
|
+
return createPlugin(api, props, options === null || options === void 0 ? void 0 : options.appearance);
|
|
218
222
|
}
|
|
219
223
|
}];
|
|
220
224
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAppearance, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
4
4
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
@@ -15,6 +15,7 @@ export interface BreakoutPluginState {
|
|
|
15
15
|
}
|
|
16
16
|
export interface BreakoutPluginOptions {
|
|
17
17
|
allowBreakoutButton?: boolean;
|
|
18
|
+
appearance?: EditorAppearance;
|
|
18
19
|
}
|
|
19
20
|
export type BreakoutPluginDependencies = [
|
|
20
21
|
WidthPlugin,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
|
|
2
2
|
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export declare const GUIDELINE_KEYS: {
|
|
5
5
|
readonly lineLengthLeft: "grid_left";
|
|
6
6
|
readonly lineLengthRight: "grid_right";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import { type Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
5
5
|
import type { BaseEventPayload, DragLocationHistory, ElementDragType } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
6
6
|
import type { BreakoutPlugin } from '../breakoutPluginType';
|
|
@@ -4,7 +4,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { BreakoutPlugin, BreakoutPluginOptions, BreakoutPluginState } from '../breakoutPluginType';
|
|
7
|
-
import { GUIDELINE_KEYS } from './get-guidelines';
|
|
7
|
+
import { type GUIDELINE_KEYS } from './get-guidelines';
|
|
8
8
|
export declare const resizingPluginKey: PluginKey<BreakoutPluginState>;
|
|
9
9
|
export type ActiveGuidelineKey = Exclude<(typeof GUIDELINE_KEYS)[keyof typeof GUIDELINE_KEYS], 'grid_left' | 'grid_right'>;
|
|
10
10
|
export declare const createResizingPlugin: (api: ExtractInjectionAPI<BreakoutPlugin> | undefined, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI, options?: BreakoutPluginOptions) => SafePlugin<BreakoutPluginState | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BreakoutEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const generateResizeFrameRatePayloads: (props: {
|
|
4
4
|
docSize: number;
|
|
5
5
|
frameRateSamples: number[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { BreakoutPlugin } from '../breakoutPluginType';
|
|
5
5
|
type GuidelineLabelProps = {
|
|
6
6
|
api: ExtractInjectionAPI<BreakoutPlugin> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAppearance, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
4
4
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
@@ -15,6 +15,7 @@ export interface BreakoutPluginState {
|
|
|
15
15
|
}
|
|
16
16
|
export interface BreakoutPluginOptions {
|
|
17
17
|
allowBreakoutButton?: boolean;
|
|
18
|
+
appearance?: EditorAppearance;
|
|
18
19
|
}
|
|
19
20
|
export type BreakoutPluginDependencies = [
|
|
20
21
|
WidthPlugin,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
|
|
2
2
|
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export declare const GUIDELINE_KEYS: {
|
|
5
5
|
readonly lineLengthLeft: "grid_left";
|
|
6
6
|
readonly lineLengthRight: "grid_right";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import { type Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
5
5
|
import type { BaseEventPayload, DragLocationHistory, ElementDragType } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
6
6
|
import type { BreakoutPlugin } from '../breakoutPluginType';
|
|
@@ -4,7 +4,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { BreakoutPlugin, BreakoutPluginOptions, BreakoutPluginState } from '../breakoutPluginType';
|
|
7
|
-
import { GUIDELINE_KEYS } from './get-guidelines';
|
|
7
|
+
import { type GUIDELINE_KEYS } from './get-guidelines';
|
|
8
8
|
export declare const resizingPluginKey: PluginKey<BreakoutPluginState>;
|
|
9
9
|
export type ActiveGuidelineKey = Exclude<(typeof GUIDELINE_KEYS)[keyof typeof GUIDELINE_KEYS], 'grid_left' | 'grid_right'>;
|
|
10
10
|
export declare const createResizingPlugin: (api: ExtractInjectionAPI<BreakoutPlugin> | undefined, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI, options?: BreakoutPluginOptions) => SafePlugin<BreakoutPluginState | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BreakoutEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const generateResizeFrameRatePayloads: (props: {
|
|
4
4
|
docSize: number;
|
|
5
5
|
frameRateSamples: number[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { BreakoutPlugin } from '../breakoutPluginType';
|
|
5
5
|
type GuidelineLabelProps = {
|
|
6
6
|
api: ExtractInjectionAPI<BreakoutPlugin> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Breakout 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,21 +33,20 @@
|
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
35
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-
|
|
38
|
-
"@atlaskit/editor-plugin-
|
|
39
|
-
"@atlaskit/editor-plugin-editor-
|
|
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-block-controls": "^4.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-editor-disabled": "^3.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-guideline": "^3.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-interaction": "^4.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-user-intent": "^1.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.
|
|
45
|
+
"@atlaskit/icon": "^27.2.0",
|
|
48
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
47
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
50
48
|
"@atlaskit/theme": "^18.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
52
50
|
"@atlaskit/tokens": "^5.4.0",
|
|
53
51
|
"@atlaskit/tooltip": "^20.3.0",
|
|
54
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,6 +56,7 @@
|
|
|
58
56
|
"uuid": "^3.1.0"
|
|
59
57
|
},
|
|
60
58
|
"peerDependencies": {
|
|
59
|
+
"@atlaskit/editor-common": "^107.6.0",
|
|
61
60
|
"react": "^18.2.0",
|
|
62
61
|
"react-dom": "^18.2.0",
|
|
63
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -65,9 +64,9 @@
|
|
|
65
64
|
"devDependencies": {
|
|
66
65
|
"@af/integration-testing": "workspace:^",
|
|
67
66
|
"@af/visual-regression": "workspace:^",
|
|
68
|
-
"@atlaskit/editor-plugin-code-block": "^
|
|
69
|
-
"@atlaskit/editor-plugin-composition": "^
|
|
70
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
67
|
+
"@atlaskit/editor-plugin-code-block": "^5.0.0",
|
|
68
|
+
"@atlaskit/editor-plugin-composition": "^2.0.0",
|
|
69
|
+
"@atlaskit/editor-plugin-decorations": "^3.0.0",
|
|
71
70
|
"@atlaskit/ssr": "workspace:^",
|
|
72
71
|
"@atlaskit/visual-regression": "workspace:^",
|
|
73
72
|
"@testing-library/react": "^13.4.0",
|
|
@@ -114,7 +113,7 @@
|
|
|
114
113
|
"platform-editor-single-player-expand": {
|
|
115
114
|
"type": "boolean"
|
|
116
115
|
},
|
|
117
|
-
"
|
|
116
|
+
"platform_editor_layout_guideline_full_width_fix": {
|
|
118
117
|
"type": "boolean"
|
|
119
118
|
},
|
|
120
119
|
"platform_editor_breakout_resizing_hello_release": {
|