@atlaskit/editor-plugin-breakout 2.4.1 → 2.4.3
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/breakoutPlugin.js +39 -12
- package/dist/cjs/editor-commands/set-breakout-width.js +16 -1
- package/dist/cjs/pm-plugins/get-guidelines.js +5 -2
- package/dist/cjs/pm-plugins/pragmatic-resizer.js +60 -0
- package/dist/cjs/pm-plugins/resizer-callbacks.js +4 -4
- package/dist/cjs/pm-plugins/resizing-mark-view.js +3 -68
- package/dist/cjs/pm-plugins/utils/single-player-expand.js +27 -4
- package/dist/cjs/ui/LayoutButton.js +7 -3
- package/dist/es2019/breakoutPlugin.js +23 -4
- package/dist/es2019/editor-commands/set-breakout-width.js +16 -1
- package/dist/es2019/pm-plugins/get-guidelines.js +5 -2
- package/dist/es2019/pm-plugins/pragmatic-resizer.js +56 -0
- package/dist/es2019/pm-plugins/resizer-callbacks.js +5 -5
- package/dist/es2019/pm-plugins/resizing-mark-view.js +2 -69
- package/dist/es2019/pm-plugins/utils/single-player-expand.js +27 -3
- package/dist/es2019/ui/LayoutButton.js +7 -3
- package/dist/esm/breakoutPlugin.js +37 -12
- package/dist/esm/editor-commands/set-breakout-width.js +16 -1
- package/dist/esm/pm-plugins/get-guidelines.js +5 -2
- package/dist/esm/pm-plugins/pragmatic-resizer.js +54 -0
- package/dist/esm/pm-plugins/resizer-callbacks.js +5 -5
- package/dist/esm/pm-plugins/resizing-mark-view.js +2 -67
- package/dist/esm/pm-plugins/utils/single-player-expand.js +26 -3
- package/dist/esm/ui/LayoutButton.js +7 -3
- package/dist/types/pm-plugins/pragmatic-resizer.d.ts +10 -0
- package/dist/types/pm-plugins/resizer-callbacks.d.ts +6 -5
- package/dist/types/pm-plugins/resizing-mark-view.d.ts +0 -11
- package/dist/types/pm-plugins/utils/single-player-expand.d.ts +9 -0
- package/dist/types/ui/LayoutButton.d.ts +3 -0
- package/dist/types-ts4.5/pm-plugins/pragmatic-resizer.d.ts +10 -0
- package/dist/types-ts4.5/pm-plugins/resizer-callbacks.d.ts +6 -5
- package/dist/types-ts4.5/pm-plugins/resizing-mark-view.d.ts +0 -11
- package/dist/types-ts4.5/pm-plugins/utils/single-player-expand.d.ts +9 -0
- package/dist/types-ts4.5/ui/LayoutButton.d.ts +3 -0
- package/package.json +4 -4
|
@@ -3,9 +3,6 @@ import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
|
3
3
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { BreakoutPlugin } from '../breakoutPluginType';
|
|
5
5
|
export declare const LOCAL_RESIZE_PROPERTY = "--local-resizing-width";
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
6
|
export declare class ResizingMarkView implements NodeView {
|
|
10
7
|
dom: HTMLElement;
|
|
11
8
|
contentDOM: HTMLElement;
|
|
@@ -22,14 +19,6 @@ export declare class ResizingMarkView implements NodeView {
|
|
|
22
19
|
* ```
|
|
23
20
|
*/
|
|
24
21
|
constructor(mark: Mark, view: EditorView, api: ExtractInjectionAPI<BreakoutPlugin> | undefined);
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
*/
|
|
29
22
|
ignoreMutation(): boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
*/
|
|
34
23
|
destroy(): void;
|
|
35
24
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
3
|
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
+
interface UpdateExpandedStateNew {
|
|
5
|
+
tr: Transaction;
|
|
6
|
+
node: PMNode;
|
|
7
|
+
pos: number;
|
|
8
|
+
isLivePage?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const updateExpandedStateNew: ({ tr, node, pos, isLivePage }: UpdateExpandedStateNew) => void;
|
|
3
11
|
export declare const updateExpandedState: (tr: Transaction, node: ContentNodeWithPos, isLivePage?: boolean) => void;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { BreakoutMode } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
export interface Props {
|
|
@@ -10,6 +11,8 @@ export interface Props {
|
|
|
10
11
|
scrollableElement?: HTMLElement;
|
|
11
12
|
handleClick?: Function;
|
|
12
13
|
isLivePage?: boolean;
|
|
14
|
+
isBreakoutNodePresent: boolean;
|
|
15
|
+
breakoutMode: BreakoutMode | undefined;
|
|
13
16
|
}
|
|
14
17
|
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
18
|
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
42
|
+
"@atlaskit/editor-plugin-interaction": "^2.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-user-intent": "^0.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
50
50
|
"@atlaskit/theme": "^18.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
52
|
-
"@atlaskit/tokens": "^
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^5.8.0",
|
|
52
|
+
"@atlaskit/tokens": "^5.0.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1"
|
|
55
55
|
},
|