@stll/folio-react 0.31.0 → 0.32.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-jIMSYslR.js → CommentsSidebar-C9bLPobu.js} +1 -1
- package/dist/compat/eigenpal.d.ts +5 -5
- package/dist/compat/eigenpal.js +1 -1
- package/dist/{dialogs-CMAVdDEV.d.ts → dialogs-DGa8PuE4.d.ts} +13 -28
- package/dist/dialogs.d.ts +1 -1
- package/dist/index.d.ts +5 -14
- package/dist/index.js +1 -1
- package/dist/{renderAsync-CXgKj7iM.js → renderAsync-BQ1iwDIr.js} +588 -618
- package/dist/{renderAsync-CZ_bTgOh.d.ts → renderAsync-POQXlmNh.d.ts} +3 -18
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { CSSProperties, ComponentProps, ComponentType, ReactNode, RefAttributes, RefObject } from "react";
|
|
1
|
+
import React$1, { CSSProperties, ComponentProps, ComponentType, ForwardRefExoticComponent, JSX, ReactNode, RefAttributes, RefObject } from "react";
|
|
2
2
|
import { EditorState, Plugin, Transaction } from "prosemirror-state";
|
|
3
3
|
import { EditorView } from "prosemirror-view";
|
|
4
4
|
import { XmlFragment } from "yjs";
|
|
@@ -38,19 +38,8 @@ import { Select } from "@base-ui/react/select";
|
|
|
38
38
|
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
|
+
import "react/jsx-runtime";
|
|
41
42
|
//#region src/paged-editor/hostFonts.d.ts
|
|
42
|
-
/**
|
|
43
|
-
* Host-app custom fonts — the `fonts` prop on `DocxEditor`.
|
|
44
|
-
*
|
|
45
|
-
* The host passes its own brand/web font faces; they register with the browser
|
|
46
|
-
* through the same best-effort `FontFace` path as embedded document fonts
|
|
47
|
-
* ({@link registerFontFace}), so a bad entry is skipped rather than throwing.
|
|
48
|
-
* Once registered, the family name is available for rendering and can be listed
|
|
49
|
-
* in the font-family picker via the `fontFamilies` prop.
|
|
50
|
-
*
|
|
51
|
-
* The prop normalizer ({@link toFontFaceInputs}) is pure (no DOM), so it is
|
|
52
|
-
* unit-tested directly; the DOM registration is visual-only.
|
|
53
|
-
*/
|
|
54
43
|
/**
|
|
55
44
|
* Declarative description of one custom font face the host registers with the
|
|
56
45
|
* editor. Multiple entries can share `family` to register distinct weights.
|
|
@@ -412,13 +401,9 @@ type FolioUIComponents = {
|
|
|
412
401
|
declare function FolioUIProvider({ components, children }: {
|
|
413
402
|
components?: Partial<FolioUIComponents> | undefined;
|
|
414
403
|
children: ReactNode;
|
|
415
|
-
}):
|
|
404
|
+
}): JSX.Element;
|
|
416
405
|
//#endregion
|
|
417
406
|
//#region src/components/ui/FontPicker.d.ts
|
|
418
|
-
/**
|
|
419
|
-
* Font Picker — uses Stella's Select component.
|
|
420
|
-
* Each item rendered in its own font for preview.
|
|
421
|
-
*/
|
|
422
407
|
type FontOption = {
|
|
423
408
|
name: string;
|
|
424
409
|
fontFamily: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
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,8 +84,8 @@
|
|
|
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.1.
|
|
87
|
+
"@stll/folio-core": "^0.64.0",
|
|
88
|
+
"@stll/utf8-boundaries": "0.1.2",
|
|
89
89
|
"@types/react": "^19.3.0",
|
|
90
90
|
"@types/react-dom": "^19.3.0",
|
|
91
91
|
"better-result": "3.0.1",
|