@stll/folio-react 0.5.0 → 0.6.0
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/dist/{CommentsSidebar-BMD21hiD.js → CommentsSidebar-_utmEkA9.js} +1 -1
- package/dist/{FindReplaceDialog-By2OhOPu.js → FindReplaceDialog-DLdBekSR.js} +4 -2
- package/dist/{FootnotePropertiesDialog-CoPGKND_.js → FootnotePropertiesDialog-CUjq9c6H.js} +4 -2
- package/dist/{ImagePositionDialog-B_md0l56.js → ImagePositionDialog-BMuO9rLT.js} +4 -2
- package/dist/{ImagePropertiesDialog-UcGv8qr3.js → ImagePropertiesDialog-C8iEgdmN.js} +4 -2
- package/dist/{PageSetupDialog-Ba7bs6m3.js → PageSetupDialog-BKsSMCGb.js} +4 -2
- package/dist/{TablePropertiesDialog-Ci6h1tk2.js → TablePropertiesDialog-Dw8gvL78.js} +4 -2
- package/dist/compat/eigenpal.d.ts +1 -1
- package/dist/compat/eigenpal.js +1 -1
- package/dist/dialogs-CzvXYJyG.js +1080 -0
- package/dist/dialogs-j7qyw17x.d.ts +318 -0
- package/dist/dialogs.d.ts +2 -0
- package/dist/dialogs.js +8 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +11 -2
- package/dist/messages.js +1 -26
- package/dist/{renderAsync-C_Jb8BBI.d.ts → renderAsync-B7UJsZye.d.ts} +3 -2
- package/dist/{renderAsync-B4SrVWHb.js → renderAsync-CwHTsxBN.js} +26 -855
- package/dist/rolldown-runtime-BBjsoOtd.js +27 -0
- package/dist/standalone.css +1 -1
- package/dist/useFindReplace-BPBpMWS9.js +842 -0
- package/package.json +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as containedHandler } from "./renderAsync-CwHTsxBN.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,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { o as useFolioUI } from "./useFindReplace-BPBpMWS9.js";
|
|
2
3
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
3
4
|
import { ChevronDownIcon, ChevronUpIcon, SearchIcon, XIcon } from "lucide-react";
|
|
4
5
|
import { useTranslations } from "use-intl";
|
|
@@ -48,6 +49,7 @@ function getFindEnterAction({ searchText, result, shiftKey }) {
|
|
|
48
49
|
* - findReplaceUtils.ts — Pure search/replace functions and types
|
|
49
50
|
* - useFindReplace.ts — React hook for dialog state management
|
|
50
51
|
*/
|
|
52
|
+
var FindReplaceDialog_exports = /* @__PURE__ */ __exportAll({ FindReplaceDialog: () => FindReplaceDialog });
|
|
51
53
|
/**
|
|
52
54
|
* FindReplaceDialog component - Modal for finding and replacing text
|
|
53
55
|
*/
|
|
@@ -354,4 +356,4 @@ function FindReplaceDialog({ isOpen, onClose, onFind, onFindNext, onFindPrevious
|
|
|
354
356
|
});
|
|
355
357
|
}
|
|
356
358
|
//#endregion
|
|
357
|
-
export { FindReplaceDialog };
|
|
359
|
+
export { FindReplaceDialog_exports as n, FindReplaceDialog as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { o as useFolioUI } from "./useFindReplace-BPBpMWS9.js";
|
|
2
3
|
import { useId, useState } from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/dialogs/FootnotePropertiesDialog.tsx
|
|
@@ -7,6 +8,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
8
|
*
|
|
8
9
|
* Edits position, numbering format, start number, and restart rules.
|
|
9
10
|
*/
|
|
11
|
+
var FootnotePropertiesDialog_exports = /* @__PURE__ */ __exportAll({ FootnotePropertiesDialog: () => FootnotePropertiesDialog });
|
|
10
12
|
const numberFormatOptions = [
|
|
11
13
|
{
|
|
12
14
|
value: "decimal",
|
|
@@ -262,4 +264,4 @@ function FootnotePropertiesDialog({ isOpen, onClose, onApply, footnotePr, endnot
|
|
|
262
264
|
});
|
|
263
265
|
}
|
|
264
266
|
//#endregion
|
|
265
|
-
export { FootnotePropertiesDialog };
|
|
267
|
+
export { FootnotePropertiesDialog_exports as n, FootnotePropertiesDialog as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { o as useFolioUI } from "./useFindReplace-BPBpMWS9.js";
|
|
2
3
|
import { useEffect, useId, useState } from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/dialogs/ImagePositionDialog.tsx
|
|
@@ -10,6 +11,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
10
11
|
* - Vertical: alignment or offset, relative to page/margin/paragraph/line
|
|
11
12
|
* - Distance from text (top/bottom/left/right)
|
|
12
13
|
*/
|
|
14
|
+
var ImagePositionDialog_exports = /* @__PURE__ */ __exportAll({ ImagePositionDialog: () => ImagePositionDialog });
|
|
13
15
|
function ImagePositionDialog({ isOpen, onClose, onApply, currentData }) {
|
|
14
16
|
const { Root: Dialog, Portal: DialogPortal, Backdrop: DialogBackdrop, Popup: DialogPopup, Title: DialogTitle, Close: DialogClose } = useFolioUI().Dialog;
|
|
15
17
|
const id = useId();
|
|
@@ -390,4 +392,4 @@ function ImagePositionDialog({ isOpen, onClose, onApply, currentData }) {
|
|
|
390
392
|
});
|
|
391
393
|
}
|
|
392
394
|
//#endregion
|
|
393
|
-
export { ImagePositionDialog };
|
|
395
|
+
export { ImagePositionDialog_exports as n, ImagePositionDialog as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { o as useFolioUI } from "./useFindReplace-BPBpMWS9.js";
|
|
2
3
|
import { useEffect, useId, useState } from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/dialogs/ImagePropertiesDialog.tsx
|
|
@@ -9,6 +10,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
10
|
* - Alt text for accessibility
|
|
10
11
|
* - Border/outline style, color, and width
|
|
11
12
|
*/
|
|
13
|
+
var ImagePropertiesDialog_exports = /* @__PURE__ */ __exportAll({ ImagePropertiesDialog: () => ImagePropertiesDialog });
|
|
12
14
|
function ImagePropertiesDialog({ isOpen, onClose, onApply, currentData }) {
|
|
13
15
|
const { Root: Dialog, Portal: DialogPortal, Backdrop: DialogBackdrop, Popup: DialogPopup, Title: DialogTitle, Close: DialogClose } = useFolioUI().Dialog;
|
|
14
16
|
const id = useId();
|
|
@@ -193,4 +195,4 @@ function ImagePropertiesDialog({ isOpen, onClose, onApply, currentData }) {
|
|
|
193
195
|
});
|
|
194
196
|
}
|
|
195
197
|
//#endregion
|
|
196
|
-
export { ImagePropertiesDialog };
|
|
198
|
+
export { ImagePropertiesDialog_exports as n, ImagePropertiesDialog as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { o as useFolioUI } from "./useFindReplace-BPBpMWS9.js";
|
|
2
3
|
import { useEffect, useId, useState } from "react";
|
|
3
4
|
import { TWIPS_PER_INCH } from "@stll/folio-core/utils/units";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -11,6 +12,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
11
12
|
* - Orientation (portrait/landscape)
|
|
12
13
|
* - Margins (top, bottom, left, right) in inches
|
|
13
14
|
*/
|
|
15
|
+
var PageSetupDialog_exports = /* @__PURE__ */ __exportAll({ PageSetupDialog: () => PageSetupDialog });
|
|
14
16
|
/** Common page sizes in twips (width x height in portrait orientation) */
|
|
15
17
|
const PAGE_SIZES = [
|
|
16
18
|
{
|
|
@@ -307,4 +309,4 @@ function PageSetupDialog({ isOpen, onClose, onApply, currentProps }) {
|
|
|
307
309
|
});
|
|
308
310
|
}
|
|
309
311
|
//#endregion
|
|
310
|
-
export { PageSetupDialog };
|
|
312
|
+
export { PageSetupDialog_exports as n, PageSetupDialog as t };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { o as useFolioUI } from "./useFindReplace-BPBpMWS9.js";
|
|
2
3
|
import { useCallback, useEffect, useId, useState } from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/dialogs/TablePropertiesDialog.tsx
|
|
5
6
|
/**
|
|
6
7
|
* Table Properties Dialog — width type, width value, alignment.
|
|
7
8
|
*/
|
|
9
|
+
var TablePropertiesDialog_exports = /* @__PURE__ */ __exportAll({ TablePropertiesDialog: () => TablePropertiesDialog });
|
|
8
10
|
function TablePropertiesDialog({ isOpen, onClose, onApply, currentProps }) {
|
|
9
11
|
const { Root: Dialog, Portal: DialogPortal, Backdrop: DialogBackdrop, Popup: DialogPopup, Title: DialogTitle, Close: DialogClose } = useFolioUI().Dialog;
|
|
10
12
|
const id = useId();
|
|
@@ -154,4 +156,4 @@ function TablePropertiesDialog({ isOpen, onClose, onApply, currentProps }) {
|
|
|
154
156
|
});
|
|
155
157
|
}
|
|
156
158
|
//#endregion
|
|
157
|
-
export { TablePropertiesDialog };
|
|
159
|
+
export { TablePropertiesDialog_exports as n, TablePropertiesDialog as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as renderAsync, n as EditorHandle, o as DocxEditorProps, r as RenderAsyncOptions, s as DocxEditorRef, t as DocxEditorHandle } from "../renderAsync-
|
|
1
|
+
import { i as renderAsync, n as EditorHandle, o as DocxEditorProps, r as RenderAsyncOptions, s as DocxEditorRef, t as DocxEditorHandle } from "../renderAsync-B7UJsZye.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from "@stll/folio-core/utils/createDocument";
|
|
4
4
|
|
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-CwHTsxBN.js";
|
|
2
2
|
import { t as messages_exports } from "../messages.js";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { IntlProvider, useTranslations } from "use-intl";
|