@stll/folio-react 0.29.0 → 0.31.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/README.md +2 -0
- package/dist/{CommentsSidebar-D7eTgHpL.js → CommentsSidebar-jIMSYslR.js} +22 -26
- package/dist/{FindReplaceDialog-CUd8xdgd.js → FindReplaceDialog-C3njN6OI.js} +114 -12
- 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 +20 -20
- package/dist/compat/eigenpal.js +1 -1
- package/dist/{dialogs-BENP66Ly.d.ts → dialogs-CMAVdDEV.d.ts} +14 -8
- package/dist/dialogs.d.ts +1 -1
- package/dist/dialogs.js +2 -2
- 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 +17 -16
- package/dist/index.js +4 -4
- package/dist/{renderAsync-D3Bxr14I.js → renderAsync-CXgKj7iM.js} +5575 -5344
- package/dist/{renderAsync-DsMKdbU5.d.ts → renderAsync-CZ_bTgOh.d.ts} +21 -12
- package/dist/standalone.css +1 -1
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
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-
|
|
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-CZ_bTgOh.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-CMAVdDEV.js";
|
|
3
3
|
import React, { CSSProperties, ReactNode, 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 {
|
|
16
|
-
import { BlockRect } from "@stll/folio-core/paged-layout/blockGeometry";
|
|
17
|
+
import { FindMatch, FindOptions, FindResult, ReplaceAllSummary, ReplaceEligibility } from "@stll/folio-core/utils/findReplace";
|
|
17
18
|
import { OutlineDepth } from "@stll/folio-core/utils/outlineDepth";
|
|
18
19
|
import { PictureWatermark, TextWatermark, Watermark, getDocumentWatermark, setDocumentWatermark } from "@stll/folio-core/watermark";
|
|
19
20
|
import { DocumentStyleCatalog, DocumentStyleCatalogEntry, ExtractDocumentStyleSetOptions, extractDocumentStyleSet, extractDocumentStyleSetFromDocx, inspectDocumentStyles, inspectDocumentStylesFromDocx } from "@stll/folio-core/style-sets/extract";
|
|
@@ -37,7 +38,7 @@ import { ImageMeta, ImageRef, MarkdownOptions, MarkdownResult, fromMarkdown, toM
|
|
|
37
38
|
/**
|
|
38
39
|
* DocxEditor - Complete DOCX editor component
|
|
39
40
|
*/
|
|
40
|
-
declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorProps & import("react").RefAttributes<DocxEditorRef>>;
|
|
41
|
+
export declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorProps & import("react").RefAttributes<DocxEditorRef>>;
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/components/FormattingBar.d.ts
|
|
43
44
|
type FormattingBarProps = {
|
|
@@ -54,7 +55,7 @@ type FormattingBarProps = {
|
|
|
54
55
|
stylePickerLabelStyle?: CSSProperties | undefined;
|
|
55
56
|
inline?: boolean;
|
|
56
57
|
} & ToolbarProps;
|
|
57
|
-
declare function FormattingBar(props: FormattingBarProps): React.JSX.Element;
|
|
58
|
+
export declare function FormattingBar(props: FormattingBarProps): React.JSX.Element;
|
|
58
59
|
//#endregion
|
|
59
60
|
//#region src/components/ui/ZoomControl.d.ts
|
|
60
61
|
/**
|
|
@@ -82,7 +83,7 @@ type ZoomControlProps = {
|
|
|
82
83
|
/** Render the trigger at the smaller toolbar-chrome size. */
|
|
83
84
|
compact?: boolean;
|
|
84
85
|
};
|
|
85
|
-
declare function ZoomControl({ value, onChange, levels, disabled, className, compact }: ZoomControlProps): import("react").JSX.Element;
|
|
86
|
+
export declare function ZoomControl({ value, onChange, levels, disabled, className, compact }: ZoomControlProps): import("react").JSX.Element;
|
|
86
87
|
//#endregion
|
|
87
88
|
//#region src/hooks/useWheelZoom.d.ts
|
|
88
89
|
/**
|
|
@@ -155,23 +156,23 @@ type UseWheelZoomReturn = {
|
|
|
155
156
|
* Preset zoom levels for wheel/keyboard snapping within the shared
|
|
156
157
|
* `[ZOOM_MIN, ZOOM_MAX]` range (see `@stll/folio-core/utils/zoom`).
|
|
157
158
|
*/
|
|
158
|
-
declare const ZOOM_PRESETS: number[];
|
|
159
|
+
export declare const ZOOM_PRESETS: number[];
|
|
159
160
|
/**
|
|
160
161
|
* React hook for Ctrl+scroll zoom functionality
|
|
161
162
|
*/
|
|
162
|
-
declare function useWheelZoom(options?: UseWheelZoomOptions): UseWheelZoomReturn;
|
|
163
|
+
export declare function useWheelZoom(options?: UseWheelZoomOptions): UseWheelZoomReturn;
|
|
163
164
|
/**
|
|
164
165
|
* Format zoom level for display
|
|
165
166
|
*/
|
|
166
|
-
declare function formatZoom(zoom: number): string;
|
|
167
|
+
export declare function formatZoom(zoom: number): string;
|
|
167
168
|
/**
|
|
168
169
|
* Parse zoom from percentage string
|
|
169
170
|
*/
|
|
170
|
-
declare function parseZoom(zoomString: string): number | null;
|
|
171
|
+
export declare function parseZoom(zoomString: string): number | null;
|
|
171
172
|
/**
|
|
172
173
|
* Clamp zoom to valid range
|
|
173
174
|
*/
|
|
174
|
-
declare function clampZoom(zoom: number, minZoom?: number, maxZoom?: number): number;
|
|
175
|
+
export declare function clampZoom(zoom: number, minZoom?: number, maxZoom?: number): number;
|
|
175
176
|
//#endregion
|
|
176
177
|
//#region src/paged-editor/AutocompleteCaretOverlay.d.ts
|
|
177
178
|
type AutocompleteCaretRect = {
|
|
@@ -201,6 +202,6 @@ type AutocompleteCaretOverlayProps = {
|
|
|
201
202
|
/** Whether tokens are still arriving from the model. */
|
|
202
203
|
isStreaming: boolean;
|
|
203
204
|
};
|
|
204
|
-
declare const AutocompleteCaretOverlay: ({ caret, text, isStreaming }: AutocompleteCaretOverlayProps) => React.JSX.Element | null;
|
|
205
|
+
export declare const AutocompleteCaretOverlay: ({ caret, text, isStreaming }: AutocompleteCaretOverlayProps) => React.JSX.Element | null;
|
|
205
206
|
//#endregion
|
|
206
|
-
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,
|
|
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, 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
|
-
import { t as FindReplaceDialog } from "./FindReplaceDialog-
|
|
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";
|