@stll/folio-react 0.18.2 → 0.18.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as containedHandler } from "./renderAsync-
|
|
1
|
+
import { d as containedHandler } from "./renderAsync-DGrsfWzv.js";
|
|
2
2
|
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { CheckIcon, MoreVerticalIcon } from "lucide-react";
|
|
4
4
|
import { useLocale, useTranslations } from "use-intl";
|
package/dist/compat/eigenpal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-
|
|
1
|
+
import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-DGrsfWzv.js";
|
|
2
2
|
import { t as messages_exports } from "../messages.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { forwardRef } from "react";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as formatZoom, c as FormattingBar, i as clampZoom, l as ZoomControl, n as DocxEditor, o as parseZoom, r as ZOOM_PRESETS, s as useWheelZoom, t as renderAsync, u as AutocompleteCaretOverlay } from "./renderAsync-
|
|
1
|
+
import { a as formatZoom, c as FormattingBar, i as clampZoom, l as ZoomControl, n as DocxEditor, o as parseZoom, r as ZOOM_PRESETS, s as useWheelZoom, t as renderAsync, u as AutocompleteCaretOverlay } from "./renderAsync-DGrsfWzv.js";
|
|
2
2
|
import { n as FolioUIProvider } from "./folio-ui-BgDDRsUX.js";
|
|
3
3
|
import { t as FindReplaceDialog } from "./FindReplaceDialog-CqKK82nE.js";
|
|
4
4
|
import { t as FootnotePropertiesDialog } from "./FootnotePropertiesDialog-CixRdIiT.js";
|
|
@@ -12153,6 +12153,7 @@ function useFolioComments({ doc, autoOpenReviewSidebar, anchorPositions, editorC
|
|
|
12153
12153
|
const commentsDirtyRef = useRef(false);
|
|
12154
12154
|
const commentsRef = useRef(comments);
|
|
12155
12155
|
commentsRef.current = comments;
|
|
12156
|
+
const readonlyCommentsRef = commentsRef;
|
|
12156
12157
|
const onCommentsChangeRef = useRef(onCommentsChange);
|
|
12157
12158
|
onCommentsChangeRef.current = onCommentsChange;
|
|
12158
12159
|
const setComments = useCallback((next) => {
|
|
@@ -12270,7 +12271,7 @@ function useFolioComments({ doc, autoOpenReviewSidebar, anchorPositions, editorC
|
|
|
12270
12271
|
comments,
|
|
12271
12272
|
setComments,
|
|
12272
12273
|
isControlledComments,
|
|
12273
|
-
commentsRef,
|
|
12274
|
+
commentsRef: readonlyCommentsRef,
|
|
12274
12275
|
commentsDirtyRef,
|
|
12275
12276
|
commentsLoadedRef,
|
|
12276
12277
|
showCommentsSidebar,
|
|
@@ -12304,7 +12305,7 @@ function useFolioComments({ doc, autoOpenReviewSidebar, anchorPositions, editorC
|
|
|
12304
12305
|
* - Error boundary
|
|
12305
12306
|
* - Loading states
|
|
12306
12307
|
*/
|
|
12307
|
-
const CommentsSidebar = lazy(() => import("./CommentsSidebar-
|
|
12308
|
+
const CommentsSidebar = lazy(() => import("./CommentsSidebar-BkH5oCm8.js").then((m) => ({ default: m.CommentsSidebar })));
|
|
12308
12309
|
const TextContextMenu = lazy(() => import("./TextContextMenu-Ci7-M4oU.js").then((m) => ({ default: m.TextContextMenu })));
|
|
12309
12310
|
const loadAttemptSelectiveSave = async () => {
|
|
12310
12311
|
const { attemptSelectiveSave } = await import("@stll/folio-core/docx/selectiveSave");
|
|
@@ -12860,7 +12861,6 @@ const DocxEditor = forwardRef(function DocxEditor({ documentBuffer, password, do
|
|
|
12860
12861
|
}, [history.state, commentsRef]);
|
|
12861
12862
|
const replaceComments = useCallback((nextComments) => {
|
|
12862
12863
|
commentsDirtyRef.current = true;
|
|
12863
|
-
commentsRef.current = nextComments;
|
|
12864
12864
|
setComments(nextComments);
|
|
12865
12865
|
const currentDocument = buildCurrentDocument();
|
|
12866
12866
|
if (!currentDocument) return;
|
|
@@ -12868,7 +12868,6 @@ const DocxEditor = forwardRef(function DocxEditor({ documentBuffer, password, do
|
|
|
12868
12868
|
}, [
|
|
12869
12869
|
buildCurrentDocument,
|
|
12870
12870
|
commentsDirtyRef,
|
|
12871
|
-
commentsRef,
|
|
12872
12871
|
onChange,
|
|
12873
12872
|
setComments
|
|
12874
12873
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-react",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "React editor for folio: a Word-document (.docx) editor for the browser, built on @stll/folio-core and ProseMirror.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"document-editor",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@fontsource/noto-sans-arabic": "^5.2.7",
|
|
69
69
|
"@fontsource/source-sans-3": "^5.2.9",
|
|
70
70
|
"@fontsource/tinos": "^5.2.7",
|
|
71
|
-
"@stll/folio-core": "^0.37.
|
|
71
|
+
"@stll/folio-core": "^0.37.1",
|
|
72
72
|
"better-result": "3.0.1",
|
|
73
73
|
"lucide-react": "1.24.0",
|
|
74
74
|
"prosemirror-history": "^1.5.0",
|