@stll/folio-react 0.19.3 → 0.19.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.
@@ -1,4 +1,4 @@
1
- import { d as containedHandler } from "./renderAsync-CKbqa0RR.js";
1
+ import { d as containedHandler } from "./renderAsync-DQTZEYip.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";
@@ -1,4 +1,4 @@
1
- import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-CKbqa0RR.js";
1
+ import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-DQTZEYip.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-CKbqa0RR.js";
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-DQTZEYip.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";
@@ -3049,8 +3049,7 @@ const PagedEditor = forwardRef(function PagedEditor(props, ref) {
3049
3049
  const columns = useMemo(() => getColumns(sectionProperties), [sectionProperties]);
3050
3050
  const contentWidth = pageSize.w - margins.left - margins.right;
3051
3051
  const defaultTabStop = document?.package.settings?.defaultTabStop;
3052
- const documentSettings = document?.package.settings;
3053
- const mirrorMargins = documentSettings !== void 0 && "mirrorMargins" in documentSettings && documentSettings.mirrorMargins === true;
3052
+ const mirrorMargins = document?.package.settings?.mirrorMargins === true;
3054
3053
  const sectionHeaderFooterRefs = useMemo(() => resolveSectionHeaderFooterRefs(document), [document]);
3055
3054
  const layoutInputSignature = useMemo(() => buildLayoutInputSignature({
3056
3055
  columns,
@@ -12296,7 +12295,7 @@ function useFolioComments({ doc, autoOpenReviewSidebar, anchorPositions, editorC
12296
12295
  * - Error boundary
12297
12296
  * - Loading states
12298
12297
  */
12299
- const CommentsSidebar = lazy(() => import("./CommentsSidebar-BOaLk877.js").then((m) => ({ default: m.CommentsSidebar })));
12298
+ const CommentsSidebar = lazy(() => import("./CommentsSidebar-hQ1cFDNj.js").then((m) => ({ default: m.CommentsSidebar })));
12300
12299
  const TextContextMenu = lazy(() => import("./TextContextMenu-Ci7-M4oU.js").then((m) => ({ default: m.TextContextMenu })));
12301
12300
  const loadAttemptSelectiveSave = async () => {
12302
12301
  const { attemptSelectiveSave } = await import("@stll/folio-core/docx/selectiveSave");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/folio-react",
3
- "version": "0.19.3",
3
+ "version": "0.19.4",
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.39.1",
71
+ "@stll/folio-core": "^0.40.0",
72
72
  "better-result": "3.0.1",
73
73
  "lucide-react": "1.24.0",
74
74
  "prosemirror-history": "^1.5.0",