@gcforms/editor 1.0.14 → 1.0.15
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
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.15] - 2026-03-24
|
|
9
|
+
|
|
10
|
+
- Update TypeScript compatibility for link editor event handling
|
|
11
|
+
|
|
8
12
|
## [1.0.14] - 2025-12-22
|
|
9
13
|
|
|
10
14
|
- Update config to load QuoteNode for future use
|
package/package.json
CHANGED
|
@@ -213,7 +213,7 @@ function FloatingLinkEditor({
|
|
|
213
213
|
const monitorInputInteraction = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
214
214
|
if (event.key === "Enter") {
|
|
215
215
|
if (isValidUrl(editedLinkUrl)) {
|
|
216
|
-
handleLinkSubmission(event
|
|
216
|
+
handleLinkSubmission(event);
|
|
217
217
|
}
|
|
218
218
|
} else if (event.key === "Escape") {
|
|
219
219
|
event.preventDefault();
|
|
@@ -224,9 +224,7 @@ function FloatingLinkEditor({
|
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
const handleLinkSubmission = (
|
|
228
|
-
event: React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLElement>
|
|
229
|
-
) => {
|
|
227
|
+
const handleLinkSubmission = (event: React.SyntheticEvent<HTMLElement>) => {
|
|
230
228
|
event.preventDefault();
|
|
231
229
|
if (lastSelection !== null) {
|
|
232
230
|
if (editedLinkUrl !== "") {
|
|
@@ -296,7 +294,7 @@ function FloatingLinkEditor({
|
|
|
296
294
|
onClick={handleLinkSubmission}
|
|
297
295
|
onKeyDown={(event) => {
|
|
298
296
|
if (event.key === "Enter") {
|
|
299
|
-
handleLinkSubmission(event
|
|
297
|
+
handleLinkSubmission(event);
|
|
300
298
|
}
|
|
301
299
|
if (event.key === "Escape") {
|
|
302
300
|
event.preventDefault();
|