@atlaskit/editor-plugin-base 7.2.8 → 7.2.10
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 +17 -0
- package/dist/cjs/basePlugin.js +1 -0
- package/dist/cjs/pm-plugins/scroll-gutter/plugin.js +1 -3
- package/dist/es2019/basePlugin.js +1 -0
- package/dist/es2019/pm-plugins/scroll-gutter/plugin.js +1 -3
- package/dist/esm/basePlugin.js +1 -0
- package/dist/esm/pm-plugins/scroll-gutter/plugin.js +1 -3
- package/dist/types/basePluginType.d.ts +1 -0
- package/dist/types-ts4.5/basePluginType.d.ts +1 -0
- package/package.json +5 -5
- package/tsconfig.app.json +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 7.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.2.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`1ba00564a98cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ba00564a98cd) -
|
|
14
|
+
Add allowScrollGutter to editor plugin base shared state
|
|
15
|
+
- [`1ba00564a98cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ba00564a98cd) -
|
|
16
|
+
Moves the scroll gutter fix behind platform_editor_scroll_gutter_fix out of the hydratable ui
|
|
17
|
+
experiment
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 7.2.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/basePlugin.js
CHANGED
|
@@ -83,6 +83,7 @@ var basePlugin = function basePlugin(_ref) {
|
|
|
83
83
|
name: 'base',
|
|
84
84
|
getSharedState: function getSharedState(editorState) {
|
|
85
85
|
return {
|
|
86
|
+
allowScrollGutter: options === null || options === void 0 ? void 0 : options.allowScrollGutter,
|
|
86
87
|
keyboardHeight: (0, _getKeyboardHeight.getKeyboardHeight)(editorState)
|
|
87
88
|
};
|
|
88
89
|
},
|
|
@@ -14,11 +14,9 @@ var GUTTER_SELECTOR_NAME = 'editor-scroll-gutter';
|
|
|
14
14
|
* Create a gutter element that can be added or removed from the DOM.
|
|
15
15
|
*/
|
|
16
16
|
function createGutter(gutterSize, parent) {
|
|
17
|
-
if ((0, _expVal.expVal)('
|
|
17
|
+
if ((0, _expVal.expVal)('platform_editor_scroll_gutter_fix', 'isEnabled', false)) {
|
|
18
18
|
var gutterRef = document.getElementById(GUTTER_SELECTOR_NAME);
|
|
19
19
|
if (gutterRef) {
|
|
20
|
-
gutterRef.style.paddingBottom = "".concat(gutterSize, "px");
|
|
21
|
-
gutterRef.style.display = 'block';
|
|
22
20
|
return function () {
|
|
23
21
|
return parent === null || parent === void 0 ? void 0 : parent.removeChild(gutterRef);
|
|
24
22
|
};
|
|
@@ -8,11 +8,9 @@ const GUTTER_SELECTOR_NAME = 'editor-scroll-gutter';
|
|
|
8
8
|
* Create a gutter element that can be added or removed from the DOM.
|
|
9
9
|
*/
|
|
10
10
|
function createGutter(gutterSize, parent) {
|
|
11
|
-
if (expVal('
|
|
11
|
+
if (expVal('platform_editor_scroll_gutter_fix', 'isEnabled', false)) {
|
|
12
12
|
const gutterRef = document.getElementById(GUTTER_SELECTOR_NAME);
|
|
13
13
|
if (gutterRef) {
|
|
14
|
-
gutterRef.style.paddingBottom = `${gutterSize}px`;
|
|
15
|
-
gutterRef.style.display = 'block';
|
|
16
14
|
return () => parent === null || parent === void 0 ? void 0 : parent.removeChild(gutterRef);
|
|
17
15
|
}
|
|
18
16
|
}
|
package/dist/esm/basePlugin.js
CHANGED
|
@@ -75,6 +75,7 @@ var basePlugin = function basePlugin(_ref) {
|
|
|
75
75
|
name: 'base',
|
|
76
76
|
getSharedState: function getSharedState(editorState) {
|
|
77
77
|
return {
|
|
78
|
+
allowScrollGutter: options === null || options === void 0 ? void 0 : options.allowScrollGutter,
|
|
78
79
|
keyboardHeight: getKeyboardHeight(editorState)
|
|
79
80
|
};
|
|
80
81
|
},
|
|
@@ -8,11 +8,9 @@ var GUTTER_SELECTOR_NAME = 'editor-scroll-gutter';
|
|
|
8
8
|
* Create a gutter element that can be added or removed from the DOM.
|
|
9
9
|
*/
|
|
10
10
|
function createGutter(gutterSize, parent) {
|
|
11
|
-
if (expVal('
|
|
11
|
+
if (expVal('platform_editor_scroll_gutter_fix', 'isEnabled', false)) {
|
|
12
12
|
var gutterRef = document.getElementById(GUTTER_SELECTOR_NAME);
|
|
13
13
|
if (gutterRef) {
|
|
14
|
-
gutterRef.style.paddingBottom = "".concat(gutterSize, "px");
|
|
15
|
-
gutterRef.style.display = 'block';
|
|
16
14
|
return function () {
|
|
17
15
|
return parent === null || parent === void 0 ? void 0 : parent.removeChild(gutterRef);
|
|
18
16
|
};
|
|
@@ -18,6 +18,7 @@ export interface BasePluginOptions {
|
|
|
18
18
|
inputTracking?: InputTracking;
|
|
19
19
|
}
|
|
20
20
|
export type BasePluginState = {
|
|
21
|
+
allowScrollGutter?: ScrollGutterPluginOptions;
|
|
21
22
|
/** Current height of keyboard (+ custom toolbar) in iOS app */
|
|
22
23
|
keyboardHeight: number | undefined;
|
|
23
24
|
};
|
|
@@ -18,6 +18,7 @@ export interface BasePluginOptions {
|
|
|
18
18
|
inputTracking?: InputTracking;
|
|
19
19
|
}
|
|
20
20
|
export type BasePluginState = {
|
|
21
|
+
allowScrollGutter?: ScrollGutterPluginOptions;
|
|
21
22
|
/** Current height of keyboard (+ custom toolbar) in iOS app */
|
|
22
23
|
keyboardHeight: number | undefined;
|
|
23
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.10",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
31
31
|
"@atlaskit/editor-plugin-context-identifier": "^6.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
33
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
33
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
34
34
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^16.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"techstack": {
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@atlaskit/editor-common": "^110.
|
|
77
|
+
"@atlaskit/editor-common": "^110.46.0"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/tsconfig.app.json
CHANGED
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
"outDir": "../../../tsDist/@atlaskit__editor-plugin-base/app"
|
|
32
32
|
},
|
|
33
33
|
"references": [
|
|
34
|
+
{
|
|
35
|
+
"path": "../adf-schema/tsconfig.app.json"
|
|
36
|
+
},
|
|
34
37
|
{
|
|
35
38
|
"path": "../editor-common/tsconfig.app.json"
|
|
36
39
|
},
|
|
@@ -40,6 +43,9 @@
|
|
|
40
43
|
{
|
|
41
44
|
"path": "../editor-plugin-feature-flags/tsconfig.app.json"
|
|
42
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"path": "../editor-prosemirror/tsconfig.app.json"
|
|
48
|
+
},
|
|
43
49
|
{
|
|
44
50
|
"path": "../prosemirror-history/tsconfig.app.json"
|
|
45
51
|
},
|