@livepreso/react-plugin-textfield 0.1.0 → 0.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.
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"/@tiptap/extension-bold@3.0.9(@tiptap/core@3.0.9)": "sha512-rVULIFt9ZO+fO5ty9zuC3HwY3knxUw7q9JBztpKPfQQCuIJ+iQnOfB8NtI3L8hxVSxhIR1pqr8B3S/8vlpXbVg==",
|
|
134
134
|
"/@tiptap/extension-bubble-menu@3.0.9(@tiptap/core@3.0.9)(@tiptap/pm@3.0.9)": "sha512-fZQfdSbKJl3J+Yi+s8NrcLBgXHOaGVD4g+vn+orTPUlZdG9FWvEoon8DexOdK9OvYnW6QMM7kS8whOgpogVyUQ==",
|
|
135
135
|
"/@tiptap/extension-document@3.0.9(@tiptap/core@3.0.9)": "sha512-DB/R5e6QvuGhY8EhCkfNjR2xQfz/TOWoxfQGhDuy5U+oK3WBwCcHq9t5+nbSCMHtKfi/i49aHKDvv7TQCpuP0w==",
|
|
136
|
-
"/@tiptap/extension-floating-menu@3.4.
|
|
136
|
+
"/@tiptap/extension-floating-menu@3.4.2(@tiptap/core@3.0.9)(@tiptap/pm@3.0.9)": "sha512-2jDugvR7e506fDfmO22cHU0XnRyBsvig8XNSBPEcXyP3xy53kxiaCF4CzRC8DyzuC7u1NilII27TnwV5iM+9Pg==",
|
|
137
137
|
"/@tiptap/extension-hard-break@3.0.9(@tiptap/core@3.0.9)": "sha512-PWNYsUwVsMWt/R5/OWjfGb+7DQT0DvH+1owBimRq0pWZepg8qkz1jdPGgsRmUFyERRsXeEpgj3VaQfrgbyUfrA==",
|
|
138
138
|
"/@tiptap/extension-heading@3.0.9(@tiptap/core@3.0.9)": "sha512-LRLCIt87fvDZ5CdkinzhkCwRz5ax6FlsjJzG32MJ3wXyvVslqeLXBvH28JFUZEyzgcd/SnYmYxnef5+yvAX61g==",
|
|
139
139
|
"/@tiptap/extension-image@3.0.9(@tiptap/core@3.0.9)": "sha512-/2igN/oIF58zqX5fcg00bf6qGLcQyXHysl5I8GiurkvO95d+SQTlYbJneSRUpt6CgrUKbhRnMBPVubmapgg+Zw==",
|
package/CHANGELOG.json
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/react-plugin-textfield",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.1",
|
|
6
|
+
"tag": "@livepreso/react-plugin-textfield_v0.1.1",
|
|
7
|
+
"date": "Wed, 01 Oct 2025 02:27:21 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Remove TextField component toolbar inset as it is no longer required."
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.0",
|
|
6
18
|
"tag": "@livepreso/react-plugin-textfield_v0.1.0",
|
|
7
|
-
"date": "
|
|
19
|
+
"date": "Mon, 29 Sep 2025 23:56:57 GMT",
|
|
8
20
|
"comments": {
|
|
9
21
|
"minor": [
|
|
10
22
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
# Change Log - @livepreso/react-plugin-textfield
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 01 Oct 2025 02:27:21 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.1.1
|
|
6
|
+
Wed, 01 Oct 2025 02:27:21 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Remove TextField component toolbar inset as it is no longer required.
|
|
4
11
|
|
|
5
12
|
## 0.1.0
|
|
6
|
-
|
|
13
|
+
Mon, 29 Sep 2025 23:56:57 GMT
|
|
7
14
|
|
|
8
15
|
### Minor changes
|
|
9
16
|
|
package/components/BubbleMenu.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
|
8
8
|
import { OverlayPortal, useTransitions } from "@livepreso/content-react";
|
|
9
9
|
import style from "./BubbleMenu.module.scss";
|
|
10
10
|
import { EDITABLE_OUTER_SELECTOR } from "../constants";
|
|
11
|
-
import {
|
|
11
|
+
import { getTestRect } from "./utils";
|
|
12
12
|
|
|
13
13
|
class UnscaledBubbleMenuView extends BubbleMenuView {
|
|
14
14
|
show() {
|
|
@@ -27,12 +27,7 @@ class UnscaledBubbleMenuView extends BubbleMenuView {
|
|
|
27
27
|
|
|
28
28
|
const div = window.Bridge.UI.overlay;
|
|
29
29
|
const divRect = div.getBoundingClientRect();
|
|
30
|
-
|
|
31
|
-
// Percentage applied to maxWidth keeps toolbars out of the way of left/right slide navigation
|
|
32
|
-
// Calculated based on the current current's raw dimensions, against our standard 120px left/right padding
|
|
33
|
-
const { width: rawWidth } = getContentDimensions();
|
|
34
|
-
const widthPerc = rawWidth ? (rawWidth - 240) / rawWidth : 1;
|
|
35
|
-
this.element.style.maxWidth = `${divRect.width * widthPerc}px`;
|
|
30
|
+
this.element.style.maxWidth = `${divRect.width}px`;
|
|
36
31
|
this.element.style.maxHeight = `${divRect.height}px`;
|
|
37
32
|
|
|
38
33
|
const getBoundingClientRect = () => {
|