@atlaskit/editor-plugin-base 0.3.0 → 0.3.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.
@@ -0,0 +1,22 @@
1
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
+ export declare const getKeyboardHeight: (state?: EditorState) => number | undefined;
5
+ export type ScrollGutterPluginOptions = {
6
+ /** Element the page uses for scrolling */
7
+ getScrollElement?: (view: EditorView) => HTMLElement | null;
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
+ * Persist scroll gutter when the mobile appearance is COMPACT
16
+ * Default is false
17
+ */
18
+ persistScrollGutter?: boolean;
19
+ gutterSize?: number;
20
+ };
21
+ declare const _default: (pluginOptions?: ScrollGutterPluginOptions) => SafePlugin<{}> | undefined;
22
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,10 +32,11 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^35.2.0",
36
- "@atlaskit/editor-common": "^76.29.0",
35
+ "@atlaskit/adf-schema": "^35.3.0",
36
+ "@atlaskit/editor-common": "^76.35.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.0.1",
38
38
  "@atlaskit/editor-prosemirror": "1.1.0",
39
+ "@atlaskit/platform-feature-flags": "^0.2.0",
39
40
  "@babel/runtime": "^7.0.0"
40
41
  },
41
42
  "devDependencies": {
@@ -45,7 +46,7 @@
45
46
  "@atlaskit/editor-plugin-guideline": "^0.5.0",
46
47
  "@atlaskit/editor-plugin-selection": "^0.1.0",
47
48
  "@atlaskit/editor-plugin-table": "^5.7.0",
48
- "@atlaskit/editor-plugin-type-ahead": "^0.8.0",
49
+ "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
49
50
  "@atlaskit/editor-plugin-width": "^0.2.0",
50
51
  "@atlaskit/util-data-test": "^17.8.0",
51
52
  "@atlaskit/webdriver-runner": "*",
@@ -85,5 +86,10 @@
85
86
  ]
86
87
  }
87
88
  },
88
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
89
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
90
+ "platform-feature-flags": {
91
+ "platform.editor.scroll-gutter.reflow-optimisation": {
92
+ "type": "boolean"
93
+ }
94
+ }
89
95
  }
package/tsconfig.app.json CHANGED
@@ -37,6 +37,9 @@
37
37
  },
38
38
  {
39
39
  "path": "../editor-plugin-feature-flags/tsconfig.app.json"
40
+ },
41
+ {
42
+ "path": "../../platform/feature-flags/tsconfig.app.json"
40
43
  }
41
44
  ]
42
45
  }