@stll/folio-react 0.32.0 → 0.32.2
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-C9bLPobu.js → CommentsSidebar-DnxzLs1o.js} +2 -3
- package/dist/{FindReplaceDialog-C3njN6OI.js → FindReplaceDialog-B446W1cL.js} +5 -8
- package/dist/{FootnotePropertiesDialog-BEs7N62_.js → FootnotePropertiesDialog-J5zg-K3w.js} +4 -5
- package/dist/{ImagePositionDialog-Oap9knQ-.js → ImagePositionDialog-DdokSGoN.js} +4 -5
- package/dist/{ImagePropertiesDialog-lLMKHv0u.js → ImagePropertiesDialog-C-xQU8Eq.js} +4 -5
- package/dist/{InsertSymbolDialog-CepZECp0.js → InsertSymbolDialog-p7UOS4me.js} +4 -5
- package/dist/{PageSetupDialog-DTWCdPkX.js → PageSetupDialog-BXK9tKw5.js} +4 -5
- package/dist/{SetNumberingValueDialog-twVIZMLc.js → SetNumberingValueDialog-DZUrre78.js} +3 -4
- package/dist/{TablePropertiesDialog-uSTmyEcu.js → TablePropertiesDialog-edzovlyc.js} +4 -5
- package/dist/{TextContextMenu-DHe4vOW7.js → TextContextMenu-BxnNvhJg.js} +1 -2
- package/dist/compat/eigenpal.d.ts +1 -3
- package/dist/compat/eigenpal.js +3 -4
- package/dist/{dialogChrome-BoGYPgeu.js → dialogChrome-JDeVEuZn.js} +1 -2
- package/dist/{dialogs-DGa8PuE4.d.ts → dialogs-CQHVbEgA.d.ts} +0 -26
- package/dist/{dialogs-DGrcp10A.js → dialogs-CahXRDm_.js} +8 -14
- package/dist/dialogs.d.ts +1 -1
- package/dist/dialogs.js +8 -8
- package/dist/{folio-ui-ruRywxeb.js → folio-ui-B8i_O5aS.js} +12 -24
- package/dist/index.d.ts +2 -12
- package/dist/index.js +10 -10
- package/dist/messages-DjrCTI3y.js +6 -0
- package/dist/messages.js +1 -7
- package/dist/{renderAsync-BQ1iwDIr.js → renderAsync-BCste7wu.js} +75 -138
- package/dist/{renderAsync-POQXlmNh.d.ts → renderAsync-fuEtQwqD.d.ts} +0 -14
- package/dist/{rolldown-runtime-BBjsoOtd.js → rolldown-runtime-782esTHO.js} +1 -2
- package/package.json +5 -5
|
@@ -39,7 +39,6 @@ import "@stll/folio-core/managers/DocumentLoaderManager";
|
|
|
39
39
|
import "@stll/folio-core/managers/HistoryManager";
|
|
40
40
|
import { TableAction } from "@stll/folio-core/utils/tableOperations";
|
|
41
41
|
import "react/jsx-runtime";
|
|
42
|
-
//#region src/paged-editor/hostFonts.d.ts
|
|
43
42
|
/**
|
|
44
43
|
* Declarative description of one custom font face the host registers with the
|
|
45
44
|
* editor. Multiple entries can share `family` to register distinct weights.
|
|
@@ -54,8 +53,6 @@ type FontDefinition = {
|
|
|
54
53
|
/** CSS `font-style` for this face (for example `italic`). Defaults to `normal`. */
|
|
55
54
|
style?: string;
|
|
56
55
|
};
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region src/paged-editor/PagedEditor.d.ts
|
|
59
56
|
type PagedEditorRef = {
|
|
60
57
|
/** The headless editor controller (imperative API + events; Seam 6). */
|
|
61
58
|
getEditor: () => FolioEditor;
|
|
@@ -137,8 +134,6 @@ type PagedEditorRef = {
|
|
|
137
134
|
/** Subscribe to changes in the set or contents of painted pages. */
|
|
138
135
|
onLayoutChange: (listener: () => void) => () => void;
|
|
139
136
|
};
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region src/ui/folio-ui.d.ts
|
|
142
137
|
/**
|
|
143
138
|
* Folio chrome (toolbars, dialogs, pickers, find/replace) renders UI primitives
|
|
144
139
|
* that a consumer can override with its own design system. Each entry in
|
|
@@ -402,15 +397,11 @@ declare function FolioUIProvider({ components, children }: {
|
|
|
402
397
|
components?: Partial<FolioUIComponents> | undefined;
|
|
403
398
|
children: ReactNode;
|
|
404
399
|
}): JSX.Element;
|
|
405
|
-
//#endregion
|
|
406
|
-
//#region src/components/ui/FontPicker.d.ts
|
|
407
400
|
type FontOption = {
|
|
408
401
|
name: string;
|
|
409
402
|
fontFamily: string;
|
|
410
403
|
category?: "sans-serif" | "serif" | "monospace" | "other";
|
|
411
404
|
};
|
|
412
|
-
//#endregion
|
|
413
|
-
//#region src/components/toolbarPrimitives.d.ts
|
|
414
405
|
/**
|
|
415
406
|
* Current formatting state of the selection
|
|
416
407
|
*/
|
|
@@ -604,8 +595,6 @@ type ToolbarProps = {
|
|
|
604
595
|
/** Callback when a table action is triggered */
|
|
605
596
|
onTableAction?: ((action: TableAction) => void) | undefined;
|
|
606
597
|
};
|
|
607
|
-
//#endregion
|
|
608
|
-
//#region src/components/DocxEditor.props.d.ts
|
|
609
598
|
type DocxEditorProps = {
|
|
610
599
|
/** Active document search result, including the zero-based current match index. */
|
|
611
600
|
onFindResultChange?: (result: FindResult | null) => void;
|
|
@@ -1225,8 +1214,6 @@ type DocxEditorRef = {
|
|
|
1225
1214
|
force?: boolean;
|
|
1226
1215
|
}) => boolean;
|
|
1227
1216
|
};
|
|
1228
|
-
//#endregion
|
|
1229
|
-
//#region src/renderAsync.d.ts
|
|
1230
1217
|
/** Framework-agnostic handle for an imperatively mounted editor instance. */
|
|
1231
1218
|
type EditorHandle = {
|
|
1232
1219
|
/** Save the document and return the DOCX as a Blob. */
|
|
@@ -1259,5 +1246,4 @@ type RenderAsyncOptions = Omit<DocxEditorProps, "documentBuffer" | "document"> &
|
|
|
1259
1246
|
* Rejects if `onError` runs before that milestone.
|
|
1260
1247
|
*/
|
|
1261
1248
|
declare const renderAsync: (input: DocxInput, container: HTMLElement, options?: RenderAsyncOptions) => Promise<DocxEditorHandle>;
|
|
1262
|
-
//#endregion
|
|
1263
1249
|
export { FolioUIProvider as _, DocxEditorApplyDocumentOperationsOptions as a, DocxEditorRef as c, ToolbarProps as d, FontOption as f, FolioUIComponents as g, FolioButtonProps as h, renderAsync as i, HighlightPassageOptions as l, ColorPreset as m, EditorHandle as n, DocxEditorCollaboration as o, EditorMode as p, RenderAsyncOptions as r, DocxEditorProps as s, DocxEditorHandle as t, HighlightPassageResult as u, OutlineItem as v, FontDefinition as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,5 +23,4 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
23
23
|
return to;
|
|
24
24
|
};
|
|
25
25
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
-
//#endregion
|
|
27
26
|
export { __reExport as n, __exportAll as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-react",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
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",
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"@fontsource/noto-sans-arabic": "^5.2.7",
|
|
85
85
|
"@fontsource/source-sans-3": "^5.3.1",
|
|
86
86
|
"@fontsource/tinos": "^5.2.7",
|
|
87
|
-
"@stll/folio-core": "^0.
|
|
88
|
-
"@stll/utf8-boundaries": "0.
|
|
87
|
+
"@stll/folio-core": "^0.66.0",
|
|
88
|
+
"@stll/utf8-boundaries": "0.2.0",
|
|
89
89
|
"@types/react": "^19.3.0",
|
|
90
90
|
"@types/react-dom": "^19.3.0",
|
|
91
91
|
"better-result": "3.0.1",
|
|
92
|
-
"lucide-react": "1.
|
|
92
|
+
"lucide-react": "1.61.0",
|
|
93
93
|
"react-compiler-runtime": "^1.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"prosemirror-model": "^1.25.9",
|
|
99
99
|
"prosemirror-state": "^1.4.4",
|
|
100
100
|
"prosemirror-tables": "^1.8.5",
|
|
101
|
-
"prosemirror-view": "^1.42.
|
|
101
|
+
"prosemirror-view": "^1.42.7",
|
|
102
102
|
"tailwindcss": "4.3.3",
|
|
103
103
|
"y-prosemirror": "^1.3.7",
|
|
104
104
|
"yjs": "^13.6.33"
|