@atlaskit/editor-plugin-base 2.0.12 → 2.1.1
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 +20 -0
- package/dist/cjs/basePlugin.js +70 -23
- package/dist/cjs/pm-plugins/frozen-editor.js +1 -4
- package/dist/cjs/pm-plugins/scroll-gutter/plugin.js +22 -239
- package/dist/es2019/basePlugin.js +68 -15
- package/dist/es2019/pm-plugins/frozen-editor.js +1 -4
- package/dist/es2019/pm-plugins/scroll-gutter/plugin.js +19 -224
- package/dist/esm/basePlugin.js +69 -23
- package/dist/esm/pm-plugins/frozen-editor.js +1 -4
- package/dist/esm/pm-plugins/scroll-gutter/plugin.js +21 -238
- package/dist/types/basePlugin.d.ts +3 -1
- package/dist/types/basePluginType.d.ts +11 -0
- package/dist/types/pm-plugins/scroll-gutter/plugin.d.ts +4 -0
- package/dist/types-ts4.5/basePlugin.d.ts +3 -1
- package/dist/types-ts4.5/basePluginType.d.ts +11 -0
- package/dist/types-ts4.5/pm-plugins/scroll-gutter/plugin.d.ts +4 -0
- package/package.json +4 -9
- package/tsconfig.app.json +0 -3
- package/dist/cjs/pm-plugins/scroll-gutter/plugin-next.js +0 -75
- package/dist/es2019/pm-plugins/scroll-gutter/plugin-next.js +0 -65
- package/dist/esm/pm-plugins/scroll-gutter/plugin-next.js +0 -69
- package/dist/types/pm-plugins/scroll-gutter/plugin-next.d.ts +0 -24
- package/dist/types-ts4.5/pm-plugins/scroll-gutter/plugin-next.d.ts +0 -24
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export type ScrollGutterPluginOptions = {
|
|
4
|
-
/** Element the page uses for scrolling */
|
|
5
|
-
getScrollElement?: (view: EditorView) => HTMLElement | null;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
*
|
|
9
|
-
* Whether to allow custom functionality to scroll to gutter element in
|
|
10
|
-
* plugin's handleScrollToSelection function
|
|
11
|
-
* Default is true
|
|
12
|
-
*/
|
|
13
|
-
allowCustomScrollHandler?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
*
|
|
17
|
-
* Persist scroll gutter when the mobile appearance is COMPACT
|
|
18
|
-
* Default is false
|
|
19
|
-
*/
|
|
20
|
-
persistScrollGutter?: boolean;
|
|
21
|
-
gutterSize?: number;
|
|
22
|
-
};
|
|
23
|
-
declare const _default: (pluginOptions?: ScrollGutterPluginOptions) => SafePlugin<{}> | undefined;
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export type ScrollGutterPluginOptions = {
|
|
4
|
-
/** Element the page uses for scrolling */
|
|
5
|
-
getScrollElement?: (view: EditorView) => HTMLElement | null;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
*
|
|
9
|
-
* Whether to allow custom functionality to scroll to gutter element in
|
|
10
|
-
* plugin's handleScrollToSelection function
|
|
11
|
-
* Default is true
|
|
12
|
-
*/
|
|
13
|
-
allowCustomScrollHandler?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
*
|
|
17
|
-
* Persist scroll gutter when the mobile appearance is COMPACT
|
|
18
|
-
* Default is false
|
|
19
|
-
*/
|
|
20
|
-
persistScrollGutter?: boolean;
|
|
21
|
-
gutterSize?: number;
|
|
22
|
-
};
|
|
23
|
-
declare const _default: (pluginOptions?: ScrollGutterPluginOptions) => SafePlugin<{}> | undefined;
|
|
24
|
-
export default _default;
|