@stll/folio-react 0.30.0 → 0.31.1
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-6K9GbqAA.js → CommentsSidebar-jIMSYslR.js} +7 -6
- package/dist/{InsertSymbolDialog-Drm40-9j.js → InsertSymbolDialog-CepZECp0.js} +2 -1
- package/dist/{TextContextMenu-DZ3AUFKh.js → TextContextMenu-DHe4vOW7.js} +0 -1
- package/dist/compat/eigenpal.d.ts +22 -22
- 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/dialogs.js +1 -1
- package/dist/i18n/messages/ar.js +1 -2
- package/dist/i18n/messages/cs.js +1 -2
- package/dist/i18n/messages/de.js +1 -2
- package/dist/i18n/messages/en.js +1 -2
- package/dist/i18n/messages/es.js +1 -2
- package/dist/i18n/messages/et.js +1 -2
- package/dist/i18n/messages/fr.js +1 -2
- package/dist/i18n/messages/he.js +1 -2
- package/dist/i18n/messages/hi.js +1 -2
- package/dist/i18n/messages/hu.js +1 -2
- package/dist/i18n/messages/locales.js +1 -2
- package/dist/i18n/messages/lt.js +1 -2
- package/dist/i18n/messages/lv.js +1 -2
- package/dist/i18n/messages/pl.js +1 -2
- package/dist/i18n/messages/pt-BR.js +1 -2
- package/dist/i18n/messages/sk.js +1 -2
- package/dist/i18n/messages/tr.js +1 -2
- package/dist/i18n/messages/zh-CN.js +1 -2
- package/dist/index.d.ts +18 -27
- package/dist/index.js +3 -3
- package/dist/{renderAsync-D6N8PUZ_.js → renderAsync-CXgKj7iM.js} +4903 -4996
- package/dist/{renderAsync-EOS7mrGK.d.ts → renderAsync-POQXlmNh.d.ts} +16 -31
- package/dist/standalone.css +1 -1
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as useDrawerFocus, s as containedHandler } from "./renderAsync-CXgKj7iM.js";
|
|
2
2
|
import { useCallback, useEffect, useEffectEvent, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { CheckIcon, MoreVerticalIcon } from "lucide-react";
|
|
4
4
|
import { useLocale, useTranslations } from "use-intl";
|
|
@@ -37,12 +37,13 @@ function formatDate(dateStr, locale) {
|
|
|
37
37
|
}).format(d);
|
|
38
38
|
}
|
|
39
39
|
function getInitials(name) {
|
|
40
|
+
const initials = name.split(/\s+/u).map((word) => sliceText({
|
|
41
|
+
text: word,
|
|
42
|
+
units: "graphemes",
|
|
43
|
+
end: 1
|
|
44
|
+
})).join("").toUpperCase();
|
|
40
45
|
return sliceText({
|
|
41
|
-
text:
|
|
42
|
-
text: word,
|
|
43
|
-
units: "graphemes",
|
|
44
|
-
end: 1
|
|
45
|
-
})).join("").toUpperCase(),
|
|
46
|
+
text: initials,
|
|
46
47
|
units: "graphemes",
|
|
47
48
|
end: 2
|
|
48
49
|
});
|
|
@@ -120,10 +120,11 @@ function InsertSymbolDialog(t0) {
|
|
|
120
120
|
t6 = !search && /* @__PURE__ */ jsx("div", {
|
|
121
121
|
className: "flex flex-wrap gap-0.5",
|
|
122
122
|
children: SYMBOL_CATEGORIES.map((category_0) => {
|
|
123
|
+
const active = activeCategory === category_0.name;
|
|
123
124
|
return /* @__PURE__ */ jsx("button", {
|
|
124
125
|
type: "button",
|
|
125
126
|
onClick: () => setActiveCategory(category_0.name),
|
|
126
|
-
className: `rounded px-2 py-1 text-[11px] ${
|
|
127
|
+
className: `rounded px-2 py-1 text-[11px] ${active ? "bg-accent text-accent-foreground font-semibold" : "text-muted-foreground hover:bg-muted"}`,
|
|
127
128
|
children: t(category_0.nameKey)
|
|
128
129
|
}, category_0.name);
|
|
129
130
|
})
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as DocxEditorRef, i as renderAsync, n as EditorHandle, r as RenderAsyncOptions, s as DocxEditorProps, t as DocxEditorHandle } from "../renderAsync-
|
|
2
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { c as DocxEditorRef, i as renderAsync, n as EditorHandle, r as RenderAsyncOptions, s as DocxEditorProps, t as DocxEditorHandle } from "../renderAsync-POQXlmNh.js";
|
|
2
|
+
import { ForwardRefExoticComponent, JSX, ReactNode, RefAttributes } from "react";
|
|
3
3
|
import { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from "@stll/folio-core/utils/createDocument";
|
|
4
4
|
//#region src/compat/eigenpal.d.ts
|
|
5
|
-
declare const VERSION = "folio-compat-eigenpal";
|
|
5
|
+
export declare const VERSION = "folio-compat-eigenpal";
|
|
6
6
|
type LegacyTranslations = {
|
|
7
7
|
_lang?: string;
|
|
8
8
|
};
|
|
9
|
-
type LocaleCode = "en" | "de" | "fr" | "he" | "hi" | "pl" | "pt-BR" | "tr" | "zh-CN";
|
|
10
|
-
type LocaleProviderProps = {
|
|
9
|
+
export type LocaleCode = "en" | "de" | "fr" | "he" | "hi" | "pl" | "pt-BR" | "tr" | "zh-CN";
|
|
10
|
+
export type LocaleProviderProps = {
|
|
11
11
|
children?: ReactNode | undefined;
|
|
12
12
|
i18n?: LegacyTranslations | undefined;
|
|
13
13
|
locale?: string | undefined;
|
|
14
14
|
};
|
|
15
|
-
type TFunction = (key: string, vars?: Record<string, string | number>) => string;
|
|
16
|
-
type LegacyDocxEditorProps = DocxEditorProps & {
|
|
15
|
+
export type TFunction = (key: string, vars?: Record<string, string | number>) => string;
|
|
16
|
+
export type LegacyDocxEditorProps = DocxEditorProps & {
|
|
17
17
|
agentPanel?: unknown;
|
|
18
18
|
colorMode?: "light" | "dark" | "system";
|
|
19
19
|
commentsSidebarOpen?: boolean;
|
|
@@ -43,39 +43,39 @@ type LegacyDocxEditorProps = DocxEditorProps & {
|
|
|
43
43
|
showOutlineButton?: boolean;
|
|
44
44
|
watermarkPresets?: readonly string[];
|
|
45
45
|
};
|
|
46
|
-
declare const en: {
|
|
46
|
+
export declare const en: {
|
|
47
47
|
_lang: string;
|
|
48
48
|
};
|
|
49
|
-
declare const de: {
|
|
49
|
+
export declare const de: {
|
|
50
50
|
_lang: string;
|
|
51
51
|
};
|
|
52
|
-
declare const fr: {
|
|
52
|
+
export declare const fr: {
|
|
53
53
|
_lang: string;
|
|
54
54
|
};
|
|
55
|
-
declare const he: {
|
|
55
|
+
export declare const he: {
|
|
56
56
|
_lang: string;
|
|
57
57
|
};
|
|
58
|
-
declare const hi: {
|
|
58
|
+
export declare const hi: {
|
|
59
59
|
_lang: string;
|
|
60
60
|
};
|
|
61
|
-
declare const pl: {
|
|
61
|
+
export declare const pl: {
|
|
62
62
|
_lang: string;
|
|
63
63
|
};
|
|
64
|
-
declare const ptBR: {
|
|
64
|
+
export declare const ptBR: {
|
|
65
65
|
_lang: string;
|
|
66
66
|
};
|
|
67
|
-
declare const tr: {
|
|
67
|
+
export declare const tr: {
|
|
68
68
|
_lang: string;
|
|
69
69
|
};
|
|
70
|
-
declare const zhCN: {
|
|
70
|
+
export declare const zhCN: {
|
|
71
71
|
_lang: string;
|
|
72
72
|
};
|
|
73
|
-
declare const locales: Record<LocaleCode, LegacyTranslations>;
|
|
74
|
-
declare const LocaleProvider: ({ children, i18n, locale }: LocaleProviderProps) =>
|
|
75
|
-
declare const useTranslation: () => {
|
|
73
|
+
export declare const locales: Record<LocaleCode, LegacyTranslations>;
|
|
74
|
+
export declare const LocaleProvider: ({ children, i18n, locale }: LocaleProviderProps) => JSX.Element;
|
|
75
|
+
export declare const useTranslation: () => {
|
|
76
76
|
t: TFunction;
|
|
77
77
|
};
|
|
78
|
-
declare const DocxEditor:
|
|
78
|
+
export declare const DocxEditor: ForwardRefExoticComponent<DocxEditorProps & {
|
|
79
79
|
agentPanel?: unknown;
|
|
80
80
|
colorMode?: "light" | "dark" | "system";
|
|
81
81
|
commentsSidebarOpen?: boolean;
|
|
@@ -104,6 +104,6 @@ declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorPr
|
|
|
104
104
|
showHelpMenu?: boolean;
|
|
105
105
|
showOutlineButton?: boolean;
|
|
106
106
|
watermarkPresets?: readonly string[];
|
|
107
|
-
} &
|
|
107
|
+
} & RefAttributes<DocxEditorRef>>;
|
|
108
108
|
//#endregion
|
|
109
|
-
export { type CreateEmptyDocumentOptions,
|
|
109
|
+
export { type CreateEmptyDocumentOptions, type DocxEditorHandle, type DocxEditorRef, type EditorHandle, type RenderAsyncOptions, createDocumentWithText, createEmptyDocument, renderAsync };
|
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-CXgKj7iM.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { CSSProperties } from "react";
|
|
1
|
+
import React, { CSSProperties, JSX } from "react";
|
|
2
2
|
import { EndnoteProperties, FootnoteProperties, SectionProperties } from "@stll/folio-core/types/document";
|
|
3
3
|
import { FindMatch as FindMatch$1, FindOptions as FindOptions$1, FindResult as FindResult$1, ReplaceAllSummary } from "@stll/folio-core/utils/findReplace";
|
|
4
4
|
import { TablePropertiesCommand } from "@stll/folio-core/utils/tableOperations";
|
|
@@ -56,7 +56,7 @@ type FootnotePropertiesDialogProps = {
|
|
|
56
56
|
footnotePr?: FootnoteProperties;
|
|
57
57
|
endnotePr?: EndnoteProperties;
|
|
58
58
|
};
|
|
59
|
-
declare function FootnotePropertiesDialog({ isOpen, onClose, onApply, footnotePr, endnotePr }: FootnotePropertiesDialogProps):
|
|
59
|
+
declare function FootnotePropertiesDialog({ isOpen, onClose, onApply, footnotePr, endnotePr }: FootnotePropertiesDialogProps): JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/components/dialogs/HyperlinkDialog.d.ts
|
|
62
62
|
type HyperlinkBookmarkOption = {
|
|
@@ -77,17 +77,9 @@ type HyperlinkDialogProps = {
|
|
|
77
77
|
selectedText?: string;
|
|
78
78
|
bookmarks?: readonly HyperlinkBookmarkOption[];
|
|
79
79
|
};
|
|
80
|
-
declare function HyperlinkDialog(props: HyperlinkDialogProps):
|
|
80
|
+
declare function HyperlinkDialog(props: HyperlinkDialogProps): JSX.Element | null;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/components/dialogs/ImagePositionDialog.d.ts
|
|
83
|
-
/**
|
|
84
|
-
* Image Position Dialog
|
|
85
|
-
*
|
|
86
|
-
* Modal for editing image positioning settings:
|
|
87
|
-
* - Horizontal: alignment or offset, relative to page/column/margin/paragraph
|
|
88
|
-
* - Vertical: alignment or offset, relative to page/margin/paragraph/line
|
|
89
|
-
* - Distance from text (top/bottom/left/right)
|
|
90
|
-
*/
|
|
91
83
|
type ImagePositionData = {
|
|
92
84
|
horizontal?: {
|
|
93
85
|
relativeTo?: string;
|
|
@@ -110,16 +102,9 @@ type ImagePositionDialogProps = {
|
|
|
110
102
|
onApply: (data: ImagePositionData) => void;
|
|
111
103
|
currentData?: ImagePositionData;
|
|
112
104
|
};
|
|
113
|
-
declare function ImagePositionDialog(props: ImagePositionDialogProps):
|
|
105
|
+
declare function ImagePositionDialog(props: ImagePositionDialogProps): JSX.Element | null;
|
|
114
106
|
//#endregion
|
|
115
107
|
//#region src/components/dialogs/ImagePropertiesDialog.d.ts
|
|
116
|
-
/**
|
|
117
|
-
* Image Properties Dialog
|
|
118
|
-
*
|
|
119
|
-
* Modal for editing image properties:
|
|
120
|
-
* - Alt text for accessibility
|
|
121
|
-
* - Border/outline style, color, and width
|
|
122
|
-
*/
|
|
123
108
|
type ImagePropertiesData = {
|
|
124
109
|
alt?: string;
|
|
125
110
|
borderWidth?: number;
|
|
@@ -132,7 +117,7 @@ type ImagePropertiesDialogProps = {
|
|
|
132
117
|
onApply: (data: ImagePropertiesData) => void;
|
|
133
118
|
currentData?: ImagePropertiesData;
|
|
134
119
|
};
|
|
135
|
-
declare function ImagePropertiesDialog(props: ImagePropertiesDialogProps):
|
|
120
|
+
declare function ImagePropertiesDialog(props: ImagePropertiesDialogProps): JSX.Element | null;
|
|
136
121
|
//#endregion
|
|
137
122
|
//#region src/components/dialogs/InsertImageDialog.d.ts
|
|
138
123
|
type InsertImageDialogData = {
|
|
@@ -147,7 +132,7 @@ type InsertImageDialogProps = {
|
|
|
147
132
|
onInsert: (data: InsertImageDialogData) => void;
|
|
148
133
|
accept?: string;
|
|
149
134
|
};
|
|
150
|
-
declare function InsertImageDialog(props: InsertImageDialogProps):
|
|
135
|
+
declare function InsertImageDialog(props: InsertImageDialogProps): JSX.Element | null;
|
|
151
136
|
//#endregion
|
|
152
137
|
//#region src/components/dialogs/InsertSymbolDialog.d.ts
|
|
153
138
|
type InsertSymbolDialogProps = {
|
|
@@ -155,7 +140,7 @@ type InsertSymbolDialogProps = {
|
|
|
155
140
|
onClose: () => void;
|
|
156
141
|
onInsert: (symbol: string) => void;
|
|
157
142
|
};
|
|
158
|
-
declare function InsertSymbolDialog({ isOpen, onClose, onInsert }: InsertSymbolDialogProps):
|
|
143
|
+
declare function InsertSymbolDialog({ isOpen, onClose, onInsert }: InsertSymbolDialogProps): JSX.Element;
|
|
159
144
|
//#endregion
|
|
160
145
|
//#region src/components/dialogs/InsertTableDialog.d.ts
|
|
161
146
|
type InsertTableDialogData = {
|
|
@@ -176,7 +161,7 @@ type InsertTableDialogProps = {
|
|
|
176
161
|
defaultColumns?: number;
|
|
177
162
|
styleOptions?: readonly InsertTableStyleOption[];
|
|
178
163
|
};
|
|
179
|
-
declare function InsertTableDialog(props: InsertTableDialogProps):
|
|
164
|
+
declare function InsertTableDialog(props: InsertTableDialogProps): JSX.Element | null;
|
|
180
165
|
//#endregion
|
|
181
166
|
//#region src/components/dialogs/PageSetupDialog.d.ts
|
|
182
167
|
type PageSetupDialogProps = {
|
|
@@ -185,7 +170,7 @@ type PageSetupDialogProps = {
|
|
|
185
170
|
onApply: (props: Partial<SectionProperties>) => void;
|
|
186
171
|
currentProps?: SectionProperties;
|
|
187
172
|
};
|
|
188
|
-
declare function PageSetupDialog(props: PageSetupDialogProps):
|
|
173
|
+
declare function PageSetupDialog(props: PageSetupDialogProps): JSX.Element | null;
|
|
189
174
|
//#endregion
|
|
190
175
|
//#region src/components/dialogs/PasteSpecialDialog.d.ts
|
|
191
176
|
type PasteSpecialMode = "keepFormatting" | "mergeFormatting" | "plainText";
|
|
@@ -195,7 +180,7 @@ type PasteSpecialDialogProps = {
|
|
|
195
180
|
onPaste: (mode: PasteSpecialMode) => void;
|
|
196
181
|
defaultMode?: PasteSpecialMode;
|
|
197
182
|
};
|
|
198
|
-
declare function PasteSpecialDialog(props: PasteSpecialDialogProps):
|
|
183
|
+
declare function PasteSpecialDialog(props: PasteSpecialDialogProps): JSX.Element | null;
|
|
199
184
|
//#endregion
|
|
200
185
|
//#region src/components/dialogs/SplitCellDialog.d.ts
|
|
201
186
|
type SplitCellDialogData = {
|
|
@@ -210,7 +195,7 @@ type SplitCellDialogProps = {
|
|
|
210
195
|
defaultRows?: number;
|
|
211
196
|
defaultColumns?: number;
|
|
212
197
|
};
|
|
213
|
-
declare function SplitCellDialog(props: SplitCellDialogProps):
|
|
198
|
+
declare function SplitCellDialog(props: SplitCellDialogProps): JSX.Element | null;
|
|
214
199
|
//#endregion
|
|
215
200
|
//#region src/components/dialogs/TablePropertiesDialog.d.ts
|
|
216
201
|
type TableProperties = TablePropertiesCommand;
|
|
@@ -220,7 +205,7 @@ type TablePropertiesDialogProps = {
|
|
|
220
205
|
onApply: (props: TableProperties) => void;
|
|
221
206
|
currentProps?: TableProperties;
|
|
222
207
|
};
|
|
223
|
-
declare function TablePropertiesDialog(props: TablePropertiesDialogProps):
|
|
208
|
+
declare function TablePropertiesDialog(props: TablePropertiesDialogProps): JSX.Element | null;
|
|
224
209
|
//#endregion
|
|
225
210
|
//#region src/components/dialogs/WatermarkDialog.d.ts
|
|
226
211
|
type WatermarkDialogProps = {
|
|
@@ -229,6 +214,6 @@ type WatermarkDialogProps = {
|
|
|
229
214
|
onApply: (watermark: Watermark | undefined) => void;
|
|
230
215
|
currentWatermark?: Watermark;
|
|
231
216
|
};
|
|
232
|
-
declare function WatermarkDialog(props: WatermarkDialogProps):
|
|
217
|
+
declare function WatermarkDialog(props: WatermarkDialogProps): JSX.Element | null;
|
|
233
218
|
//#endregion
|
|
234
219
|
export { HyperlinkDialog as A, ImagePropertiesData as C, ImagePositionDialog as D, ImagePositionData as E, FindReplaceDialog as F, FindReplaceDialogProps as I, HyperlinkDialogProps as M, FootnotePropertiesDialog as N, ImagePositionDialogProps as O, FootnotePropertiesDialogProps as P, InsertImageDialogProps as S, ImagePropertiesDialogProps as T, InsertTableStyleOption as _, TablePropertiesDialogProps as a, InsertImageDialog as b, SplitCellDialogProps as c, PasteSpecialMode as d, PageSetupDialog as f, InsertTableDialogProps as g, InsertTableDialogData as h, TablePropertiesDialog as i, HyperlinkDialogData as j, HyperlinkBookmarkOption as k, PasteSpecialDialog as l, InsertTableDialog as m, WatermarkDialogProps as n, SplitCellDialog as o, PageSetupDialogProps as p, TableProperties as r, SplitCellDialogData as s, WatermarkDialog as t, PasteSpecialDialogProps as u, InsertSymbolDialog as v, ImagePropertiesDialog as w, InsertImageDialogData as x, InsertSymbolDialogProps as y };
|
package/dist/dialogs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as HyperlinkDialog, C as ImagePropertiesData, D as ImagePositionDialog, E as ImagePositionData, F as FindReplaceDialog, I as FindReplaceDialogProps, M as HyperlinkDialogProps, N as FootnotePropertiesDialog, O as ImagePositionDialogProps, P as FootnotePropertiesDialogProps, S as InsertImageDialogProps, T as ImagePropertiesDialogProps, _ as InsertTableStyleOption, a as TablePropertiesDialogProps, b as InsertImageDialog, c as SplitCellDialogProps, d as PasteSpecialMode, f as PageSetupDialog, g as InsertTableDialogProps, h as InsertTableDialogData, i as TablePropertiesDialog, j as HyperlinkDialogData, k as HyperlinkBookmarkOption, l as PasteSpecialDialog, m as InsertTableDialog, n as WatermarkDialogProps, o as SplitCellDialog, p as PageSetupDialogProps, r as TableProperties, s as SplitCellDialogData, t as WatermarkDialog, u as PasteSpecialDialogProps, v as InsertSymbolDialog, w as ImagePropertiesDialog, x as InsertImageDialogData, y as InsertSymbolDialogProps } from "./dialogs-
|
|
1
|
+
import { A as HyperlinkDialog, C as ImagePropertiesData, D as ImagePositionDialog, E as ImagePositionData, F as FindReplaceDialog, I as FindReplaceDialogProps, M as HyperlinkDialogProps, N as FootnotePropertiesDialog, O as ImagePositionDialogProps, P as FootnotePropertiesDialogProps, S as InsertImageDialogProps, T as ImagePropertiesDialogProps, _ as InsertTableStyleOption, a as TablePropertiesDialogProps, b as InsertImageDialog, c as SplitCellDialogProps, d as PasteSpecialMode, f as PageSetupDialog, g as InsertTableDialogProps, h as InsertTableDialogData, i as TablePropertiesDialog, j as HyperlinkDialogData, k as HyperlinkBookmarkOption, l as PasteSpecialDialog, m as InsertTableDialog, n as WatermarkDialogProps, o as SplitCellDialog, p as PageSetupDialogProps, r as TableProperties, s as SplitCellDialogData, t as WatermarkDialog, u as PasteSpecialDialogProps, v as InsertSymbolDialog, w as ImagePropertiesDialog, x as InsertImageDialogData, y as InsertSymbolDialogProps } from "./dialogs-DGa8PuE4.js";
|
|
2
2
|
export { FindReplaceDialog, type FindReplaceDialogProps, FootnotePropertiesDialog, type FootnotePropertiesDialogProps, type HyperlinkBookmarkOption, HyperlinkDialog, type HyperlinkDialogData, type HyperlinkDialogProps, type ImagePositionData, ImagePositionDialog, type ImagePositionDialogProps, type ImagePropertiesData, ImagePropertiesDialog, type ImagePropertiesDialogProps, InsertImageDialog, type InsertImageDialogData, type InsertImageDialogProps, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogData, type InsertTableDialogProps, type InsertTableStyleOption, PageSetupDialog, type PageSetupDialogProps, PasteSpecialDialog, type PasteSpecialDialogProps, type PasteSpecialMode, SplitCellDialog, type SplitCellDialogData, type SplitCellDialogProps, type TableProperties, TablePropertiesDialog, type TablePropertiesDialogProps, WatermarkDialog, type WatermarkDialogProps };
|
package/dist/dialogs.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t as FootnotePropertiesDialog } from "./FootnotePropertiesDialog-BEs7N6
|
|
|
3
3
|
import { a as InsertImageDialog, i as InsertTableDialog, n as SplitCellDialog, o as HyperlinkDialog, r as PasteSpecialDialog, t as WatermarkDialog } from "./dialogs-DGrcp10A.js";
|
|
4
4
|
import { t as ImagePositionDialog } from "./ImagePositionDialog-Oap9knQ-.js";
|
|
5
5
|
import { t as ImagePropertiesDialog } from "./ImagePropertiesDialog-lLMKHv0u.js";
|
|
6
|
-
import { t as InsertSymbolDialog } from "./InsertSymbolDialog-
|
|
6
|
+
import { t as InsertSymbolDialog } from "./InsertSymbolDialog-CepZECp0.js";
|
|
7
7
|
import { t as PageSetupDialog } from "./PageSetupDialog-DTWCdPkX.js";
|
|
8
8
|
import { t as TablePropertiesDialog } from "./TablePropertiesDialog-uSTmyEcu.js";
|
|
9
9
|
export { FindReplaceDialog, FootnotePropertiesDialog, HyperlinkDialog, ImagePositionDialog, ImagePropertiesDialog, InsertImageDialog, InsertSymbolDialog, InsertTableDialog, PageSetupDialog, PasteSpecialDialog, SplitCellDialog, TablePropertiesDialog, WatermarkDialog };
|
package/dist/i18n/messages/ar.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ar_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/ar";
|
package/dist/i18n/messages/cs.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { cs_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/cs";
|
package/dist/i18n/messages/de.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { de_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/de";
|
package/dist/i18n/messages/en.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { en_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/en";
|
package/dist/i18n/messages/es.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { es_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/es";
|
package/dist/i18n/messages/et.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { et_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/et";
|
package/dist/i18n/messages/fr.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { fr_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/fr";
|
package/dist/i18n/messages/he.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { he_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/he";
|
package/dist/i18n/messages/hi.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { hi_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/hi";
|
package/dist/i18n/messages/hu.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { hu_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/hu";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { FOLIO_LOCALES };
|
|
1
|
+
export { FOLIO_LOCALES } from "@stll/folio-core/i18n/messages/locales";
|
package/dist/i18n/messages/lt.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { lt_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/lt";
|
package/dist/i18n/messages/lv.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { lv_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/lv";
|
package/dist/i18n/messages/pl.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { pl_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/pl";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { pt_BR_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/pt-BR";
|
package/dist/i18n/messages/sk.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { sk_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/sk";
|
package/dist/i18n/messages/tr.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { tr_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/tr";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { zh_CN_default as default, messages };
|
|
1
|
+
export { default, messages } from "@stll/folio-core/i18n/messages/zh-CN";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as FolioUIProvider, a as DocxEditorApplyDocumentOperationsOptions, c as DocxEditorRef, d as ToolbarProps, f as
|
|
2
|
-
import { A as HyperlinkDialog, C as ImagePropertiesData, D as ImagePositionDialog, E as ImagePositionData, F as FindReplaceDialog, I as FindReplaceDialogProps, M as HyperlinkDialogProps, N as FootnotePropertiesDialog, O as ImagePositionDialogProps, P as FootnotePropertiesDialogProps, S as InsertImageDialogProps, T as ImagePropertiesDialogProps, _ as InsertTableStyleOption, a as TablePropertiesDialogProps, b as InsertImageDialog, c as SplitCellDialogProps, d as PasteSpecialMode, f as PageSetupDialog, g as InsertTableDialogProps, h as InsertTableDialogData, i as TablePropertiesDialog, j as HyperlinkDialogData, k as HyperlinkBookmarkOption, l as PasteSpecialDialog, m as InsertTableDialog, n as WatermarkDialogProps, o as SplitCellDialog, p as PageSetupDialogProps, r as TableProperties, s as SplitCellDialogData, t as WatermarkDialog, u as PasteSpecialDialogProps, v as InsertSymbolDialog, w as ImagePropertiesDialog, x as InsertImageDialogData, y as InsertSymbolDialogProps } from "./dialogs-
|
|
3
|
-
import React, { CSSProperties, ReactNode, RefObject } from "react";
|
|
1
|
+
import { _ as FolioUIProvider, a as DocxEditorApplyDocumentOperationsOptions, c as DocxEditorRef, d as ToolbarProps, f as FontOption, g as FolioUIComponents, h as FolioButtonProps, i as renderAsync, l as HighlightPassageOptions, m as ColorPreset, n as EditorHandle, o as DocxEditorCollaboration, p as EditorMode, r as RenderAsyncOptions, s as DocxEditorProps, t as DocxEditorHandle, u as HighlightPassageResult, v as OutlineItem, y as FontDefinition } from "./renderAsync-POQXlmNh.js";
|
|
2
|
+
import { A as HyperlinkDialog, C as ImagePropertiesData, D as ImagePositionDialog, E as ImagePositionData, F as FindReplaceDialog, I as FindReplaceDialogProps, M as HyperlinkDialogProps, N as FootnotePropertiesDialog, O as ImagePositionDialogProps, P as FootnotePropertiesDialogProps, S as InsertImageDialogProps, T as ImagePropertiesDialogProps, _ as InsertTableStyleOption, a as TablePropertiesDialogProps, b as InsertImageDialog, c as SplitCellDialogProps, d as PasteSpecialMode, f as PageSetupDialog, g as InsertTableDialogProps, h as InsertTableDialogData, i as TablePropertiesDialog, j as HyperlinkDialogData, k as HyperlinkBookmarkOption, l as PasteSpecialDialog, m as InsertTableDialog, n as WatermarkDialogProps, o as SplitCellDialog, p as PageSetupDialogProps, r as TableProperties, s as SplitCellDialogData, t as WatermarkDialog, u as PasteSpecialDialogProps, v as InsertSymbolDialog, w as ImagePropertiesDialog, x as InsertImageDialogData, y as InsertSymbolDialogProps } from "./dialogs-DGa8PuE4.js";
|
|
3
|
+
import React, { CSSProperties, ForwardRefExoticComponent, JSX, ReactNode, RefAttributes, RefObject } from "react";
|
|
4
4
|
import { CreateEmptyDocumentOptions, createEmptyDocument } from "@stll/folio-core/utils/createDocument";
|
|
5
5
|
import { FolioAIBlock, FolioAIBlockAnchor, FolioAIBlockKind, FolioAIBlockPreviewRun, FolioAIComment, FolioAIEditAppliedOperation, FolioAIEditApplyMode, FolioAIEditApplyResult, FolioAIEditOperation, FolioAIEditReviewMeta, FolioAIEditSeverity, FolioAIEditSkipReason, FolioAIEditSkippedOperation, FolioAIEditSnapshot, FolioAISignatureParty, WordDiffSegment, applyFolioAIEditOperations, createFolioAIEditSnapshot, diffWordSegments, hashFolioAIBlockText, normalizeFolioAIBlockText } from "@stll/folio-core/ai-edits";
|
|
6
|
-
import {
|
|
6
|
+
import { DocxCompatibility } from "@stll/folio-core/docx/compatibility";
|
|
7
7
|
import { EditorReadOnlyReason } from "@stll/folio-core/managers/EditorModeManager";
|
|
8
|
+
import { KeyboardShortcutScope, KeyboardShortcutScope as KeyboardShortcutScope$1 } from "@stll/folio-core/managers/editorShortcuts";
|
|
8
9
|
import { ReviewDisplayMode } from "@stll/folio-core/managers/reviewDisplayMode";
|
|
9
|
-
import {
|
|
10
|
+
import { BlockRect } from "@stll/folio-core/paged-layout/blockGeometry";
|
|
11
|
+
import { ScrollToParaIdOptions } from "@stll/folio-core/paged-layout/paragraphFlash";
|
|
10
12
|
import { insertImageFromFile, insertPageBreakInView, insertTableInView, insertTableOfContentsInView } from "@stll/folio-core/prosemirror";
|
|
11
13
|
import { FolioSuggestion, SuggestionAppliedAs, SuggestionKind } from "@stll/folio-core/prosemirror/commands/comments";
|
|
12
14
|
import { AnonymizationMatch, AnonymizationTerm, anonymizationDecorationsKey, getAnonymizationMatches, setAnonymizationTermsMeta } from "@stll/folio-core/prosemirror/plugins/anonymizationDecorations";
|
|
13
15
|
import { TemplateSlashMenuKeyAction, TemplateSlashMenuState, clearTemplateSlashMenu, consumeTemplateSlashQuery, getTemplateSlashMenu, resetTemplateSlashQuery, templateSlashMenuKey } from "@stll/folio-core/prosemirror/plugins/templateSlashMenu";
|
|
14
16
|
import { Document } from "@stll/folio-core/types/document";
|
|
15
|
-
import { ScrollToParaIdOptions } from "@stll/folio-core/paged-layout/paragraphFlash";
|
|
16
|
-
import { BlockRect } from "@stll/folio-core/paged-layout/blockGeometry";
|
|
17
|
-
import { OutlineDepth } from "@stll/folio-core/utils/outlineDepth";
|
|
18
17
|
import { FindMatch, FindOptions, FindResult, ReplaceAllSummary, ReplaceEligibility } from "@stll/folio-core/utils/findReplace";
|
|
18
|
+
import { OutlineDepth } from "@stll/folio-core/utils/outlineDepth";
|
|
19
19
|
import { PictureWatermark, TextWatermark, Watermark, getDocumentWatermark, setDocumentWatermark } from "@stll/folio-core/watermark";
|
|
20
20
|
import { DocumentStyleCatalog, DocumentStyleCatalogEntry, ExtractDocumentStyleSetOptions, extractDocumentStyleSet, extractDocumentStyleSetFromDocx, inspectDocumentStyles, inspectDocumentStylesFromDocx } from "@stll/folio-core/style-sets/extract";
|
|
21
21
|
import { STELLA_STYLE_SET_NAME, createStellaStyleDocumentPreset, createStellaStyleSet } from "@stll/folio-core/style-sets/stellaStyle";
|
|
@@ -38,7 +38,7 @@ import { ImageMeta, ImageRef, MarkdownOptions, MarkdownResult, fromMarkdown, toM
|
|
|
38
38
|
/**
|
|
39
39
|
* DocxEditor - Complete DOCX editor component
|
|
40
40
|
*/
|
|
41
|
-
declare const DocxEditor:
|
|
41
|
+
export declare const DocxEditor: ForwardRefExoticComponent<DocxEditorProps & RefAttributes<DocxEditorRef>>;
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/components/FormattingBar.d.ts
|
|
44
44
|
type FormattingBarProps = {
|
|
@@ -55,18 +55,9 @@ type FormattingBarProps = {
|
|
|
55
55
|
stylePickerLabelStyle?: CSSProperties | undefined;
|
|
56
56
|
inline?: boolean;
|
|
57
57
|
} & ToolbarProps;
|
|
58
|
-
declare function FormattingBar(props: FormattingBarProps): React.JSX.Element;
|
|
58
|
+
export declare function FormattingBar(props: FormattingBarProps): React.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/components/ui/ZoomControl.d.ts
|
|
61
|
-
/**
|
|
62
|
-
* Zoom Control
|
|
63
|
-
*
|
|
64
|
-
* A compact dropdown for choosing the editor's document zoom level. Renders the
|
|
65
|
-
* injectable folio Select primitive (so a consumer's design-system Select can
|
|
66
|
-
* override it), mirroring FontSizePicker. Opt-in: folio chrome renders this only
|
|
67
|
-
* when both a zoom value and an onChange handler are supplied (see
|
|
68
|
-
* FormattingBar).
|
|
69
|
-
*/
|
|
70
61
|
type ZoomLevel = {
|
|
71
62
|
value: number;
|
|
72
63
|
label: string;
|
|
@@ -83,7 +74,7 @@ type ZoomControlProps = {
|
|
|
83
74
|
/** Render the trigger at the smaller toolbar-chrome size. */
|
|
84
75
|
compact?: boolean;
|
|
85
76
|
};
|
|
86
|
-
declare function ZoomControl({ value, onChange, levels, disabled, className, compact }: ZoomControlProps):
|
|
77
|
+
export declare function ZoomControl({ value, onChange, levels, disabled, className, compact }: ZoomControlProps): JSX.Element;
|
|
87
78
|
//#endregion
|
|
88
79
|
//#region src/hooks/useWheelZoom.d.ts
|
|
89
80
|
/**
|
|
@@ -156,23 +147,23 @@ type UseWheelZoomReturn = {
|
|
|
156
147
|
* Preset zoom levels for wheel/keyboard snapping within the shared
|
|
157
148
|
* `[ZOOM_MIN, ZOOM_MAX]` range (see `@stll/folio-core/utils/zoom`).
|
|
158
149
|
*/
|
|
159
|
-
declare const ZOOM_PRESETS: number[];
|
|
150
|
+
export declare const ZOOM_PRESETS: number[];
|
|
160
151
|
/**
|
|
161
152
|
* React hook for Ctrl+scroll zoom functionality
|
|
162
153
|
*/
|
|
163
|
-
declare function useWheelZoom(options?: UseWheelZoomOptions): UseWheelZoomReturn;
|
|
154
|
+
export declare function useWheelZoom(options?: UseWheelZoomOptions): UseWheelZoomReturn;
|
|
164
155
|
/**
|
|
165
156
|
* Format zoom level for display
|
|
166
157
|
*/
|
|
167
|
-
declare function formatZoom(zoom: number): string;
|
|
158
|
+
export declare function formatZoom(zoom: number): string;
|
|
168
159
|
/**
|
|
169
160
|
* Parse zoom from percentage string
|
|
170
161
|
*/
|
|
171
|
-
declare function parseZoom(zoomString: string): number | null;
|
|
162
|
+
export declare function parseZoom(zoomString: string): number | null;
|
|
172
163
|
/**
|
|
173
164
|
* Clamp zoom to valid range
|
|
174
165
|
*/
|
|
175
|
-
declare function clampZoom(zoom: number, minZoom?: number, maxZoom?: number): number;
|
|
166
|
+
export declare function clampZoom(zoom: number, minZoom?: number, maxZoom?: number): number;
|
|
176
167
|
//#endregion
|
|
177
168
|
//#region src/paged-editor/AutocompleteCaretOverlay.d.ts
|
|
178
169
|
type AutocompleteCaretRect = {
|
|
@@ -202,6 +193,6 @@ type AutocompleteCaretOverlayProps = {
|
|
|
202
193
|
/** Whether tokens are still arriving from the model. */
|
|
203
194
|
isStreaming: boolean;
|
|
204
195
|
};
|
|
205
|
-
declare const AutocompleteCaretOverlay: ({ caret, text, isStreaming }: AutocompleteCaretOverlayProps) => React.JSX.Element | null;
|
|
196
|
+
export declare const AutocompleteCaretOverlay: ({ caret, text, isStreaming }: AutocompleteCaretOverlayProps) => React.JSX.Element | null;
|
|
206
197
|
//#endregion
|
|
207
|
-
export { type AIBarStatus, type AIChatMode, type AICitation, type AICitationRange, type AICitationSource, type AIGenerateInput, type AISuggestion, type AISuggestionApplyMode, type AISuggestionPreset, type AISuggestionSeverity, type AISuggestionStatus, type AcceptAutocompleteResult, type AnonymizationMatch, type AnonymizationTerm, type ApplyResult,
|
|
198
|
+
export { type AIBarStatus, type AIChatMode, type AICitation, type AICitationRange, type AICitationSource, type AIGenerateInput, type AISuggestion, type AISuggestionApplyMode, type AISuggestionPreset, type AISuggestionSeverity, type AISuggestionStatus, type AcceptAutocompleteResult, type AnonymizationMatch, type AnonymizationTerm, type ApplyResult, type AutocompleteCaretOverlayProps, type AutocompleteCaretRect, type AutocompleteSuggestionPluginOptions, type AutocompleteSuggestionState, type AutocompleteSuggestionStatus, type AutocompleteTriggerCheck, type AutocompleteTriggerOptions, type AutocompleteTriggerSkipReason, type BlockRect, type ColorPreset, type CreateEmptyDocumentOptions, DEFAULT_AI_SUGGESTION_PRESETS, DEFAULT_AUTOCOMPLETE_DEAD_ZONE_NODES, DOCUMENT_PRESET_VERSION, DOCUMENT_STYLE_SET_VERSION, type DeriveBlockIdInput, type DirectiveKind, type DirectiveRange, type Document, type DocumentPreset, type DocumentStyleCatalog, type DocumentStyleCatalogEntry, type DocumentStyleSet, type DocxCompatibility, type DocxEditorApplyDocumentOperationsOptions, type DocxEditorCollaboration, type DocxEditorHandle, type DocxEditorProps, type DocxEditorRef, type EditorHandle, type EditorMode, type EditorReadOnlyReason, type ExtractDocumentStyleSetOptions, type FindMatch, type FindOptions, FindReplaceDialog, type FindReplaceDialogProps, type FindResult, type FolioAIBlock, type FolioAIBlockAnchor, type FolioAIBlockKind, type FolioAIBlockPreviewRun, type FolioAIComment, type FolioAIEditAppliedOperation, type FolioAIEditApplyMode, type FolioAIEditApplyResult, type FolioAIEditOperation, type FolioAIEditReviewMeta, type FolioAIEditSeverity, type FolioAIEditSkipReason, type FolioAIEditSkippedOperation, type FolioAIEditSnapshot, type FolioAISignatureParty, type FolioBlockId, type FolioButtonProps, type FolioSuggestion, type FolioUIComponents, FolioUIProvider, type FontDefinition, type FontOption, FootnotePropertiesDialog, type FootnotePropertiesDialogProps, type FormattingBarProps, type HighlightPassageOptions, type HighlightPassageResult, type HyperlinkBookmarkOption, HyperlinkDialog, type HyperlinkDialogData, type HyperlinkDialogProps, type ImageMeta, type ImagePositionData, ImagePositionDialog, type ImagePositionDialogProps, type ImagePropertiesData, ImagePropertiesDialog, type ImagePropertiesDialogProps, type ImageRef, InsertImageDialog, type InsertImageDialogData, type InsertImageDialogProps, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogData, type InsertTableDialogProps, type InsertTableStyleOption, type KeyboardShortcutScope, type MarkdownOptions, type MarkdownResult, type OutlineDepth, type OutlineItem, PageSetupDialog, type PageSetupDialogProps, PasteSpecialDialog, type PasteSpecialDialogProps, type PasteSpecialMode, type PictureWatermark, type PositionalText, type RenderAsyncOptions, type ReplaceAllSummary, type ReplaceEligibility, type ResolvedAnchor, type ReviewDisplayMode, STELLA_STYLE_SET_NAME, type ScrollToParaIdOptions, SplitCellDialog, type SplitCellDialogData, type SplitCellDialogProps, type SuggestionAppliedAs, type SuggestionKind, type TableProperties, TablePropertiesDialog, type TablePropertiesDialogProps, type TemplatePreviewHiddenRange, type TemplatePreviewSpan, type TemplatePreviewValue, type TemplatePreviewValues, type TemplateSlashMenuKeyAction, type TemplateSlashMenuState, type TextWatermark, type UseWheelZoomOptions, type UseWheelZoomReturn, type Watermark, WatermarkDialog, type WatermarkDialogProps, type WordDiffSegment, type ZoomControlProps, type ZoomLevel, acceptAutocompleteSuggestion, acceptAutocompleteWord, anonymizationDecorationsKey, appendAutocompleteToken, applyFolioAIEditOperations, applySuggestions, autocompleteSuggestionKey, autocompleteSuggestionPlugin, buildPositionalText, clearAutocompleteSuggestion, clearTemplateSlashMenu, consumeTemplateSlashQuery, createAICitationDecorationsPlugin, createDocx, createEmptyDocument, createFolioAIEditSnapshot, createStellaStyleDocumentPreset, createStellaStyleSet, deriveBlockId, diffWordSegments, extractDocumentStyleSet, extractDocumentStyleSetFromDocx, finishAutocompleteSuggestion, fromMarkdown, getAnonymizationMatches, getAutocompleteSuggestion, getDocumentWatermark, getFolioCaretViewportRect, getFolioParaIdFromBlockId, getFolioSelectionViewportRect, getTemplateDirectives, getTemplateSlashMenu, hashFolioAIBlockText, insertImageFromFile, insertPageBreakInView, insertTableInView, insertTableOfContentsInView, inspectDocumentStyles, inspectDocumentStylesFromDocx, isFolioBlockId, isSequentialFolioBlockId, isSuggestionStale, normalizeFolioAIBlockText, renderAsync, resetTemplateSlashQuery, resolveSuggestionAnchor, scanDirectives, scrollFolioPositionIntoView, setAICitationsMeta, setAISuggestionsMeta, setActiveCitationMeta, setAnonymizationTermsMeta, setDocumentWatermark, setFocusedSuggestionMeta, setTemplatePreviewValues, shouldTriggerAutocomplete, startAutocompleteSuggestion, templateSlashMenuKey, toMarkdown, toMarkdownResult };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ZOOM_PRESETS, d as parseZoom, f as useWheelZoom, i as ZoomControl, l as clampZoom, n as DocxEditor, o as AutocompleteCaretOverlay, r as FormattingBar, t as renderAsync, u as formatZoom } from "./renderAsync-CXgKj7iM.js";
|
|
2
2
|
import { n as FolioUIProvider } from "./folio-ui-ruRywxeb.js";
|
|
3
3
|
import { t as FindReplaceDialog } from "./FindReplaceDialog-C3njN6OI.js";
|
|
4
4
|
import { t as FootnotePropertiesDialog } from "./FootnotePropertiesDialog-BEs7N62_.js";
|
|
5
5
|
import { a as InsertImageDialog, i as InsertTableDialog, n as SplitCellDialog, o as HyperlinkDialog, r as PasteSpecialDialog, t as WatermarkDialog } from "./dialogs-DGrcp10A.js";
|
|
6
6
|
import { t as ImagePositionDialog } from "./ImagePositionDialog-Oap9knQ-.js";
|
|
7
7
|
import { t as ImagePropertiesDialog } from "./ImagePropertiesDialog-lLMKHv0u.js";
|
|
8
|
-
import { t as InsertSymbolDialog } from "./InsertSymbolDialog-
|
|
8
|
+
import { t as InsertSymbolDialog } from "./InsertSymbolDialog-CepZECp0.js";
|
|
9
9
|
import { t as PageSetupDialog } from "./PageSetupDialog-DTWCdPkX.js";
|
|
10
10
|
import { t as TablePropertiesDialog } from "./TablePropertiesDialog-uSTmyEcu.js";
|
|
11
11
|
import { applyFolioAIEditOperations, createFolioAIEditSnapshot, diffWordSegments, hashFolioAIBlockText, normalizeFolioAIBlockText } from "@stll/folio-core/ai-edits";
|
|
@@ -17,8 +17,8 @@ import { DEFAULT_AUTOCOMPLETE_DEAD_ZONE_NODES, acceptAutocompleteSuggestion, acc
|
|
|
17
17
|
import { getTemplateDirectives, scanDirectives } from "@stll/folio-core/prosemirror/plugins/templateDirectives";
|
|
18
18
|
import { setTemplatePreviewValues } from "@stll/folio-core/prosemirror/plugins/templatePreviewValues";
|
|
19
19
|
import { clearTemplateSlashMenu, consumeTemplateSlashQuery, getTemplateSlashMenu, resetTemplateSlashQuery, templateSlashMenuKey } from "@stll/folio-core/prosemirror/plugins/templateSlashMenu";
|
|
20
|
-
import { scrollFolioPositionIntoView } from "@stll/folio-core/paged-layout/scrollToPmPosition";
|
|
21
20
|
import { deriveBlockId, getFolioParaIdFromBlockId, isFolioBlockId, isSequentialFolioBlockId } from "@stll/folio-core/types/block-id";
|
|
21
|
+
import { scrollFolioPositionIntoView } from "@stll/folio-core/paged-layout/scrollToPmPosition";
|
|
22
22
|
import { getDocumentWatermark, setDocumentWatermark } from "@stll/folio-core/watermark";
|
|
23
23
|
import { createEmptyDocument } from "@stll/folio-core/utils/createDocument";
|
|
24
24
|
import { extractDocumentStyleSet, extractDocumentStyleSetFromDocx, inspectDocumentStyles, inspectDocumentStylesFromDocx } from "@stll/folio-core/style-sets/extract";
|