@squiz/formatted-text-editor 1.66.2 → 1.66.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,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 1.66.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 8421756: Selected image assets in the resource browser will now display the actual image instead of just the image asset icon if they have a URL specified
|
8
|
+
- Updated dependencies [8421756]
|
9
|
+
- @squiz/resource-browser@1.66.3
|
10
|
+
|
11
|
+
## 1.66.3
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- 7234d6c: Fixed FTE popover menu from having unusual positioning in certain circumstances
|
16
|
+
|
3
17
|
## 1.66.2
|
4
18
|
|
5
19
|
### Patch Changes
|
@@ -86,7 +86,9 @@ const createToolbarPositioner = ({ types }) => {
|
|
86
86
|
const headerBarBottom = (headerBarRects?.top ?? 0) + headerBarHeight;
|
87
87
|
// If floating toolbar will overlap fixed toolbar, set position to under selection
|
88
88
|
const isOverlapping = headerBarBottom + headerBarHeight > topmost;
|
89
|
-
|
89
|
+
// This is a good bottom position instead of it being on top of the toolbar when there is an overlap
|
90
|
+
const bottomPosition = parent.scrollTop + bottommost - parentRect.top + 62;
|
91
|
+
const y = isOverlapping ? bottomPosition : top;
|
90
92
|
return { rect, y, x: left, height, width, visible };
|
91
93
|
},
|
92
94
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/formatted-text-editor",
|
3
|
-
"version": "1.66.
|
3
|
+
"version": "1.66.4",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"private": false,
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"@mui/icons-material": "5.11.16",
|
25
25
|
"@remirror/react": "2.0.25",
|
26
26
|
"@squiz/dx-json-schema-lib": "^1.65.0",
|
27
|
-
"@squiz/resource-browser": "^1.
|
27
|
+
"@squiz/resource-browser": "^1.66.3",
|
28
28
|
"clsx": "1.2.1",
|
29
29
|
"react-hook-form": "7.43.2",
|
30
30
|
"react-image-size": "2.0.0",
|
@@ -118,7 +118,9 @@ export const createToolbarPositioner = ({ types }: ToolbarPositionerProps) => {
|
|
118
118
|
|
119
119
|
// If floating toolbar will overlap fixed toolbar, set position to under selection
|
120
120
|
const isOverlapping = headerBarBottom + headerBarHeight > topmost;
|
121
|
-
|
121
|
+
// This is a good bottom position instead of it being on top of the toolbar when there is an overlap
|
122
|
+
const bottomPosition = parent.scrollTop + bottommost - parentRect.top + 62;
|
123
|
+
const y = isOverlapping ? bottomPosition : top;
|
122
124
|
|
123
125
|
return { rect, y, x: left, height, width, visible };
|
124
126
|
},
|