@stll/folio-react 0.30.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.
@@ -1,4 +1,4 @@
1
- import { f as containedHandler, u as useDrawerFocus } from "./renderAsync-D6N8PUZ_.js";
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: name.split(/\s+/u).map((word) => sliceText({
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] ${activeCategory === category_0.name ? "bg-accent text-accent-foreground font-semibold" : "text-muted-foreground hover:bg-muted"}`,
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
  })
@@ -367,7 +367,6 @@ const TextContextMenu = ({ isOpen, position, hasSelection, isEditable, hasClipbo
367
367
  }
368
368
  break;
369
369
  }
370
- default: break;
371
370
  }
372
371
  };
373
372
  document.addEventListener("keydown", handleKeyDown);
@@ -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-EOS7mrGK.js";
1
+ import { c as DocxEditorRef, i as renderAsync, n as EditorHandle, r as RenderAsyncOptions, s as DocxEditorProps, t as DocxEditorHandle } from "../renderAsync-CZ_bTgOh.js";
2
2
  import { ReactNode } 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) => import("react").JSX.Element;
75
- declare const useTranslation: () => {
73
+ export declare const locales: Record<LocaleCode, LegacyTranslations>;
74
+ export declare const LocaleProvider: ({ children, i18n, locale }: LocaleProviderProps) => import("react").JSX.Element;
75
+ export declare const useTranslation: () => {
76
76
  t: TFunction;
77
77
  };
78
- declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorProps & {
78
+ export declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorProps & {
79
79
  agentPanel?: unknown;
80
80
  colorMode?: "light" | "dark" | "system";
81
81
  commentsSidebarOpen?: boolean;
@@ -106,4 +106,4 @@ declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorPr
106
106
  watermarkPresets?: readonly string[];
107
107
  } & import("react").RefAttributes<DocxEditorRef>>;
108
108
  //#endregion
109
- export { type CreateEmptyDocumentOptions, DocxEditor, type DocxEditorHandle, type DocxEditorRef, type EditorHandle, LegacyDocxEditorProps, LocaleCode, LocaleProvider, LocaleProviderProps, type RenderAsyncOptions, TFunction, VERSION, createDocumentWithText, createEmptyDocument, de, en, fr, he, hi, locales, pl, ptBR, renderAsync, tr, useTranslation, zhCN };
109
+ export { type CreateEmptyDocumentOptions, type DocxEditorHandle, type DocxEditorRef, type EditorHandle, type RenderAsyncOptions, createDocumentWithText, createEmptyDocument, renderAsync };
@@ -1,4 +1,4 @@
1
- import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-D6N8PUZ_.js";
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";
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-Drm40-9j.js";
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 };
@@ -1,2 +1 @@
1
- import ar_default, { messages } from "@stll/folio-core/i18n/messages/ar";
2
- export { ar_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/ar";
@@ -1,2 +1 @@
1
- import cs_default, { messages } from "@stll/folio-core/i18n/messages/cs";
2
- export { cs_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/cs";
@@ -1,2 +1 @@
1
- import de_default, { messages } from "@stll/folio-core/i18n/messages/de";
2
- export { de_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/de";
@@ -1,2 +1 @@
1
- import en_default, { messages } from "@stll/folio-core/i18n/messages/en";
2
- export { en_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/en";
@@ -1,2 +1 @@
1
- import es_default, { messages } from "@stll/folio-core/i18n/messages/es";
2
- export { es_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/es";
@@ -1,2 +1 @@
1
- import et_default, { messages } from "@stll/folio-core/i18n/messages/et";
2
- export { et_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/et";
@@ -1,2 +1 @@
1
- import fr_default, { messages } from "@stll/folio-core/i18n/messages/fr";
2
- export { fr_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/fr";
@@ -1,2 +1 @@
1
- import he_default, { messages } from "@stll/folio-core/i18n/messages/he";
2
- export { he_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/he";
@@ -1,2 +1 @@
1
- import hi_default, { messages } from "@stll/folio-core/i18n/messages/hi";
2
- export { hi_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/hi";
@@ -1,2 +1 @@
1
- import hu_default, { messages } from "@stll/folio-core/i18n/messages/hu";
2
- export { hu_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/hu";
@@ -1,2 +1 @@
1
- import { FOLIO_LOCALES } from "@stll/folio-core/i18n/messages/locales";
2
- export { FOLIO_LOCALES };
1
+ export { FOLIO_LOCALES } from "@stll/folio-core/i18n/messages/locales";
@@ -1,2 +1 @@
1
- import lt_default, { messages } from "@stll/folio-core/i18n/messages/lt";
2
- export { lt_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/lt";
@@ -1,2 +1 @@
1
- import lv_default, { messages } from "@stll/folio-core/i18n/messages/lv";
2
- export { lv_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/lv";
@@ -1,2 +1 @@
1
- import pl_default, { messages } from "@stll/folio-core/i18n/messages/pl";
2
- export { pl_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/pl";
@@ -1,2 +1 @@
1
- import pt_BR_default, { messages } from "@stll/folio-core/i18n/messages/pt-BR";
2
- export { pt_BR_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/pt-BR";
@@ -1,2 +1 @@
1
- import sk_default, { messages } from "@stll/folio-core/i18n/messages/sk";
2
- export { sk_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/sk";
@@ -1,2 +1 @@
1
- import tr_default, { messages } from "@stll/folio-core/i18n/messages/tr";
2
- export { tr_default as default, messages };
1
+ export { default, messages } from "@stll/folio-core/i18n/messages/tr";
@@ -1,2 +1 @@
1
- import zh_CN_default, { messages } from "@stll/folio-core/i18n/messages/zh-CN";
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 EditorMode, g as FolioUIComponents, h as FolioButtonProps, i as renderAsync, l as HighlightPassageOptions, m as ColorPreset, n as EditorHandle, o as DocxEditorCollaboration, p as FontOption, r as RenderAsyncOptions, s as DocxEditorProps, t as DocxEditorHandle, u as HighlightPassageResult, v as OutlineItem, y as FontDefinition } from "./renderAsync-EOS7mrGK.js";
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
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 { KeyboardShortcutScope, KeyboardShortcutScope as KeyboardShortcutScope$1 } from "@stll/folio-core/managers/editorShortcuts";
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 { DocxCompatibility } from "@stll/folio-core/docx/compatibility";
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: import("react").ForwardRefExoticComponent<DocxEditorProps & import("react").RefAttributes<DocxEditorRef>>;
41
+ export declare const DocxEditor: import("react").ForwardRefExoticComponent<DocxEditorProps & import("react").RefAttributes<DocxEditorRef>>;
42
42
  //#endregion
43
43
  //#region src/components/FormattingBar.d.ts
44
44
  type FormattingBarProps = {
@@ -55,7 +55,7 @@ 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
61
  /**
@@ -83,7 +83,7 @@ type ZoomControlProps = {
83
83
  /** Render the trigger at the smaller toolbar-chrome size. */
84
84
  compact?: boolean;
85
85
  };
86
- 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;
87
87
  //#endregion
88
88
  //#region src/hooks/useWheelZoom.d.ts
89
89
  /**
@@ -156,23 +156,23 @@ type UseWheelZoomReturn = {
156
156
  * Preset zoom levels for wheel/keyboard snapping within the shared
157
157
  * `[ZOOM_MIN, ZOOM_MAX]` range (see `@stll/folio-core/utils/zoom`).
158
158
  */
159
- declare const ZOOM_PRESETS: number[];
159
+ export declare const ZOOM_PRESETS: number[];
160
160
  /**
161
161
  * React hook for Ctrl+scroll zoom functionality
162
162
  */
163
- declare function useWheelZoom(options?: UseWheelZoomOptions): UseWheelZoomReturn;
163
+ export declare function useWheelZoom(options?: UseWheelZoomOptions): UseWheelZoomReturn;
164
164
  /**
165
165
  * Format zoom level for display
166
166
  */
167
- declare function formatZoom(zoom: number): string;
167
+ export declare function formatZoom(zoom: number): string;
168
168
  /**
169
169
  * Parse zoom from percentage string
170
170
  */
171
- declare function parseZoom(zoomString: string): number | null;
171
+ export declare function parseZoom(zoomString: string): number | null;
172
172
  /**
173
173
  * Clamp zoom to valid range
174
174
  */
175
- declare function clampZoom(zoom: number, minZoom?: number, maxZoom?: number): number;
175
+ export declare function clampZoom(zoom: number, minZoom?: number, maxZoom?: number): number;
176
176
  //#endregion
177
177
  //#region src/paged-editor/AutocompleteCaretOverlay.d.ts
178
178
  type AutocompleteCaretRect = {
@@ -202,6 +202,6 @@ type AutocompleteCaretOverlayProps = {
202
202
  /** Whether tokens are still arriving from the model. */
203
203
  isStreaming: boolean;
204
204
  };
205
- declare const AutocompleteCaretOverlay: ({ caret, text, isStreaming }: AutocompleteCaretOverlayProps) => React.JSX.Element | null;
205
+ export declare const AutocompleteCaretOverlay: ({ caret, text, isStreaming }: AutocompleteCaretOverlayProps) => React.JSX.Element | null;
206
206
  //#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, AutocompleteCaretOverlay, 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, DocxEditor, 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, FormattingBar, 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, ZOOM_PRESETS, ZoomControl, type ZoomControlProps, type ZoomLevel, acceptAutocompleteSuggestion, acceptAutocompleteWord, anonymizationDecorationsKey, appendAutocompleteToken, applyFolioAIEditOperations, applySuggestions, autocompleteSuggestionKey, autocompleteSuggestionPlugin, buildPositionalText, clampZoom, clearAutocompleteSuggestion, clearTemplateSlashMenu, consumeTemplateSlashQuery, createAICitationDecorationsPlugin, createDocx, createEmptyDocument, createFolioAIEditSnapshot, createStellaStyleDocumentPreset, createStellaStyleSet, deriveBlockId, diffWordSegments, extractDocumentStyleSet, extractDocumentStyleSetFromDocx, finishAutocompleteSuggestion, formatZoom, fromMarkdown, getAnonymizationMatches, getAutocompleteSuggestion, getDocumentWatermark, getFolioCaretViewportRect, getFolioParaIdFromBlockId, getFolioSelectionViewportRect, getTemplateDirectives, getTemplateSlashMenu, hashFolioAIBlockText, insertImageFromFile, insertPageBreakInView, insertTableInView, insertTableOfContentsInView, inspectDocumentStyles, inspectDocumentStylesFromDocx, isFolioBlockId, isSequentialFolioBlockId, isSuggestionStale, normalizeFolioAIBlockText, parseZoom, renderAsync, resetTemplateSlashQuery, resolveSuggestionAnchor, scanDirectives, scrollFolioPositionIntoView, setAICitationsMeta, setAISuggestionsMeta, setActiveCitationMeta, setAnonymizationTermsMeta, setDocumentWatermark, setFocusedSuggestionMeta, setTemplatePreviewValues, shouldTriggerAutocomplete, startAutocompleteSuggestion, templateSlashMenuKey, toMarkdown, toMarkdownResult, useWheelZoom };
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 { a as formatZoom, c as FormattingBar, d as AutocompleteCaretOverlay, i as clampZoom, l as ZoomControl, n as DocxEditor, o as parseZoom, r as ZOOM_PRESETS, s as useWheelZoom, t as renderAsync } from "./renderAsync-D6N8PUZ_.js";
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-Drm40-9j.js";
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";