@atlaskit/editor-plugin-insert-block 1.1.3 → 1.1.4
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 1.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#76323](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76323) [`5beb55a40496`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5beb55a40496) - updated EXTRA_SPACE_EXCLUDING_ELEMENTLIST to fix single item scroll issue
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.1.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -132,7 +132,7 @@ var getSvgIconForItem = function getSvgIconForItem(_ref2) {
|
|
|
132
132
|
var getInsertMenuHeight = function getInsertMenuHeight(_ref3) {
|
|
133
133
|
var itemCount = _ref3.itemCount;
|
|
134
134
|
// Figure based on visuals to exclude the searchbar, padding/margin, and the ViewMore item.
|
|
135
|
-
var EXTRA_SPACE_EXCLUDING_ELEMENTLIST =
|
|
135
|
+
var EXTRA_SPACE_EXCLUDING_ELEMENTLIST = 128;
|
|
136
136
|
if (itemCount > 0 && itemCount < 6) {
|
|
137
137
|
return itemCount * _elementBrowser.ELEMENT_ITEM_HEIGHT + EXTRA_SPACE_EXCLUDING_ELEMENTLIST;
|
|
138
138
|
}
|
|
@@ -117,7 +117,7 @@ const getInsertMenuHeight = ({
|
|
|
117
117
|
itemCount
|
|
118
118
|
}) => {
|
|
119
119
|
// Figure based on visuals to exclude the searchbar, padding/margin, and the ViewMore item.
|
|
120
|
-
const EXTRA_SPACE_EXCLUDING_ELEMENTLIST =
|
|
120
|
+
const EXTRA_SPACE_EXCLUDING_ELEMENTLIST = 128;
|
|
121
121
|
if (itemCount > 0 && itemCount < 6) {
|
|
122
122
|
return itemCount * ELEMENT_ITEM_HEIGHT + EXTRA_SPACE_EXCLUDING_ELEMENTLIST;
|
|
123
123
|
}
|
|
@@ -126,7 +126,7 @@ var getSvgIconForItem = function getSvgIconForItem(_ref2) {
|
|
|
126
126
|
var getInsertMenuHeight = function getInsertMenuHeight(_ref3) {
|
|
127
127
|
var itemCount = _ref3.itemCount;
|
|
128
128
|
// Figure based on visuals to exclude the searchbar, padding/margin, and the ViewMore item.
|
|
129
|
-
var EXTRA_SPACE_EXCLUDING_ELEMENTLIST =
|
|
129
|
+
var EXTRA_SPACE_EXCLUDING_ELEMENTLIST = 128;
|
|
130
130
|
if (itemCount > 0 && itemCount < 6) {
|
|
131
131
|
return itemCount * ELEMENT_ITEM_HEIGHT + EXTRA_SPACE_EXCLUDING_ELEMENTLIST;
|
|
132
132
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^78.
|
|
36
|
+
"@atlaskit/editor-common": "^78.11.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-block-type": "^3.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-code-block": "^1.1.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-hyperlink": "^1.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-image-upload": "^1.0.0",
|
|
46
46
|
"@atlaskit/editor-plugin-layout": "^1.0.0",
|
|
47
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
47
|
+
"@atlaskit/editor-plugin-media": "^1.8.0",
|
|
48
48
|
"@atlaskit/editor-plugin-mentions": "^1.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-panel": "^1.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-placeholder-text": "^1.0.0",
|