@stll/folio-core 0.74.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-edits/clean-text.d.ts +4 -1
- package/dist/ai-edits/clean-text.js +21 -7
- package/dist/ai-edits/headless.d.ts +5 -2
- package/dist/ai-edits/headless.js +18 -9
- package/dist/ai-edits/note-references.d.ts +1 -1
- package/dist/ai-edits/note-references.js +1 -1
- package/dist/ai-edits/pending-suggestions.d.ts +9 -7
- package/dist/ai-edits/pending-suggestions.js +134 -88
- package/dist/ai-edits/pendingJoin.d.ts +5 -1
- package/dist/ai-edits/pendingJoin.js +6 -2
- package/dist/ai-edits/retired-comment-receipts.d.ts +2 -2
- package/dist/ai-edits/retired-comment-receipts.js +3 -18
- package/dist/ai-edits/tracked-batch-fidelity.d.ts +6 -10
- package/dist/ai-edits/tracked-batch-fidelity.js +3 -182
- package/dist/canonical/canonicalBatchReview.d.ts +4 -1
- package/dist/canonical/canonicalBatchReview.js +32 -14
- package/dist/canonical/canonicalComments.d.ts +6 -2
- package/dist/canonical/canonicalComments.js +8 -4
- package/dist/canonical/canonicalPublicOperations.js +29 -9
- package/dist/canonical/canonicalRefusalGrounds.d.ts +4 -0
- package/dist/canonical/canonicalRefusalGrounds.js +56 -0
- package/dist/canonical/canonicalSession.d.ts +12 -6
- package/dist/canonical/canonicalSession.js +116 -121
- package/dist/canonical/canonicalTrackedBatchFidelity.js +3 -3
- package/dist/compare/inline-atoms.d.ts +35 -41
- package/dist/compare/inline-atoms.js +2 -465
- package/dist/compare/section-boundary-properties.d.ts +3 -30
- package/dist/compare/section-boundary-properties.js +4 -72
- package/dist/controller/canonicalClipboard.js +43 -42
- package/dist/controller/canonicalComposition.d.ts +1 -1
- package/dist/controller/canonicalComposition.js +5 -5
- package/dist/controller/canonicalInput.d.ts +4 -2
- package/dist/controller/canonicalInput.js +33 -16
- package/dist/controller/canonicalStoryEditor.d.ts +2 -3
- package/dist/controller/canonicalStoryEditor.js +43 -25
- package/dist/controller/canonicalStructure.d.ts +19 -2
- package/dist/controller/canonicalStructure.js +139 -42
- package/dist/controller/deferredDisplayListPainter.d.ts +8 -0
- package/dist/controller/deferredDisplayListPainter.js +34 -0
- package/dist/controller/folioEditor.js +4 -2
- package/dist/controller/headerFooterEditorManager.js +3 -17
- package/dist/controller/hiddenEditorApi.d.ts +24 -3
- package/dist/controller/hiddenEditorApi.js +2 -0
- package/dist/controller/hiddenEditorManager.js +132 -189
- package/dist/controller/layoutPipeline.d.ts +4 -86
- package/dist/controller/layoutPipeline.js +8 -727
- package/dist/controller/layoutPipelineExecution.d.ts +94 -0
- package/dist/controller/layoutPipelineExecution.js +730 -0
- package/dist/controller/noteEditorManager.js +3 -16
- package/dist/docx/blockContentParser.d.ts +1 -3
- package/dist/docx/blockContentParser.js +3 -10
- package/dist/docx/canonicalSave.d.ts +4 -3
- package/dist/docx/canonicalSave.js +4 -3
- package/dist/docx/listMarkerComputation.d.ts +24 -17
- package/dist/docx/listMarkerComputation.js +31 -60
- package/dist/docx/listModelNormalization.js +8 -15
- package/dist/docx/rezip.d.ts +16 -3
- package/dist/docx/rezip.js +35 -9
- package/dist/docx/selectiveSave.js +13 -5
- package/dist/docx/server/templatePlan/apply.js +38 -3
- package/dist/docx/server/templatePlan/blocks.d.ts +16 -1
- package/dist/docx/server/templatePlan/blocks.js +93 -7
- package/dist/docx/server/templatePlan/builders.d.ts +37 -2
- package/dist/docx/server/templatePlan/builders.js +196 -5
- package/dist/docx/server/templatePlan/emit.d.ts +2 -0
- package/dist/docx/server/templatePlan/emit.js +2 -0
- package/dist/docx/server/templatePlan/inspect.js +19 -52
- package/dist/docx/server/templatePlan/labels.d.ts +7 -2
- package/dist/docx/server/templatePlan/labels.js +104 -22
- package/dist/docx/server/templatePlan/plan.d.ts +13 -1
- package/dist/docx/server/templatePlan/plan.js +22 -7
- package/dist/docx/server/templatePlan/planShape.js +31 -2
- package/dist/docx/server/templatePlan/story.d.ts +8 -0
- package/dist/docx/server/templatePlan/story.js +11 -1
- package/dist/docx/server/templatePlan/types.d.ts +138 -16
- package/dist/docx/server/templatePlan/verify.js +50 -9
- package/dist/i18n/messages/ar.gen.js +1 -0
- package/dist/i18n/messages/catalogs.gen.d.ts +17 -0
- package/dist/i18n/messages/catalogs.gen.js +17 -0
- package/dist/i18n/messages/cs.gen.js +1 -0
- package/dist/i18n/messages/de.gen.js +1 -0
- package/dist/i18n/messages/en.gen.js +1 -0
- package/dist/i18n/messages/es.gen.js +1 -0
- package/dist/i18n/messages/et.gen.js +1 -0
- package/dist/i18n/messages/fr.gen.js +1 -0
- package/dist/i18n/messages/he.gen.js +1 -0
- package/dist/i18n/messages/hi.gen.js +1 -0
- package/dist/i18n/messages/hu.gen.js +1 -0
- package/dist/i18n/messages/lt.gen.js +1 -0
- package/dist/i18n/messages/lv.gen.js +1 -0
- package/dist/i18n/messages/messages.gen.d.ts +1 -0
- package/dist/i18n/messages/pl.gen.js +1 -0
- package/dist/i18n/messages/pt-BR.gen.js +1 -0
- package/dist/i18n/messages/sk.gen.js +1 -0
- package/dist/i18n/messages/tr.gen.js +1 -0
- package/dist/i18n/messages/zh-CN.gen.js +1 -0
- package/dist/layout-bridge/convert/toFlowBlocks.js +0 -12
- package/dist/layout-bridge/convert/topLevelConversion.js +1 -10
- package/dist/prosemirror/extensions/features/ImagePasteExtension.js +1 -1
- package/dist/prosemirror/listMarker.d.ts +1 -6
- package/dist/prosemirror/listMarker.js +4 -56
- package/dist/server.d.ts +2 -2
- package/dist/types/canonicalCapabilities.d.ts +40 -45
- package/dist/types/canonicalCapabilities.js +51 -43
- package/dist/types/canonicalComments.d.ts +2 -2
- package/dist/types/canonicalSections.d.ts +2 -2
- package/dist/utils/clipboard.d.ts +2 -28
- package/dist/utils/clipboard.js +1 -96
- package/dist/utils/clipboardFiles.d.ts +27 -0
- package/dist/utils/clipboardFiles.js +98 -0
- package/dist/utils/rulerControl.d.ts +1 -0
- package/dist/utils/rulerControl.js +2 -1
- package/package.json +2 -2
|
@@ -1,88 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConvertHeaderFooterOptions, HeaderFooterMetrics } from "../layout-bridge/convert/headerFooterLayout.js";
|
|
3
|
-
import "../layout-engine/index.js";
|
|
4
|
-
import { ColumnLayout, FlowBlock, FootnoteContent, HeaderFooterContent, Layout, Measure, PageHeaderFooterRefs, PageMargins } from "../layout-engine/types.js";
|
|
5
|
-
import { BlockLookup, LayoutPainter } from "../layout-painter/index.js";
|
|
6
|
-
import { FootnoteRenderItem } from "../layout-painter/renderPage.js";
|
|
7
|
-
import { DisplayMode } from "../managers/EditorModeManager.js";
|
|
8
|
-
import { LayoutSelectionGate } from "../paged-layout/LayoutSelectionGate.js";
|
|
9
|
-
import { TemplatePreviewEntry, TemplatePreviewHiddenRange } from "../prosemirror/plugins/templatePreviewValues.js";
|
|
10
|
-
import { document_d_exports } from "../types/document.js";
|
|
11
|
-
import { DeepReadonly, ReadonlyDocument } from "../types/documentModel.js";
|
|
12
|
-
import { HyphenationReadiness } from "./hyphenationReadiness.js";
|
|
1
|
+
import { LayoutOutcome, LayoutPipelineDeps } from "./layoutPipelineExecution.js";
|
|
13
2
|
import { LayoutRunOptions } from "./layoutRunOptions.js";
|
|
14
|
-
import { LayoutSession } from "./layoutSession.js";
|
|
15
3
|
import { EditorState } from "prosemirror-state";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
layout?: Layout;
|
|
20
|
-
blockLookup?: BlockLookup;
|
|
21
|
-
};
|
|
22
|
-
export type LayoutPipelineDeps<THfPMs> = {
|
|
23
|
-
contentWidth: number;
|
|
24
|
-
columns: ColumnLayout | undefined;
|
|
25
|
-
pageSize: {
|
|
26
|
-
w: number;
|
|
27
|
-
h: number;
|
|
28
|
-
};
|
|
29
|
-
margins: PageMargins;
|
|
30
|
-
pageGap: number;
|
|
31
|
-
showMarginGuides: boolean;
|
|
32
|
-
marginGuideColor: string | undefined;
|
|
33
|
-
syncCoordinator: LayoutSelectionGate;
|
|
34
|
-
headerContent: document_d_exports.HeaderFooter | null | undefined;
|
|
35
|
-
footerContent: document_d_exports.HeaderFooter | null | undefined;
|
|
36
|
-
firstPageHeaderContent: document_d_exports.HeaderFooter | null | undefined;
|
|
37
|
-
firstPageFooterContent: document_d_exports.HeaderFooter | null | undefined;
|
|
38
|
-
headerContentRId: string | null | undefined;
|
|
39
|
-
footerContentRId: string | null | undefined;
|
|
40
|
-
firstPageHeaderContentRId: string | null | undefined;
|
|
41
|
-
firstPageFooterContentRId: string | null | undefined;
|
|
42
|
-
sectionHeaderFooterRefs: PageHeaderFooterRefs[] | undefined;
|
|
43
|
-
theme: DeepReadonly<document_d_exports.Theme> | null | undefined;
|
|
44
|
-
sectionProperties: document_d_exports.SectionProperties | null | undefined;
|
|
45
|
-
/** The model; the pipeline reads it through `readModel`. */
|
|
46
|
-
document: ReadonlyDocument | null;
|
|
47
|
-
defaultTabStop: number | undefined;
|
|
48
|
-
mirrorMargins: boolean;
|
|
49
|
-
styles: DeepReadonly<document_d_exports.StyleDefinitions> | null | undefined;
|
|
50
|
-
layout: Layout | null;
|
|
51
|
-
hfPMs: THfPMs;
|
|
52
|
-
painter: LayoutPainter | null;
|
|
53
|
-
pagesContainer: HTMLDivElement | null;
|
|
54
|
-
session: LayoutSession;
|
|
55
|
-
renderHfFromContentOrPm: (hf: document_d_exports.HeaderFooter | null | undefined, rId: string | null | undefined, hfPMs: THfPMs, contentWidth: number, metrics: HeaderFooterMetrics, options: ConvertHeaderFooterOptions) => HeaderFooterContent | undefined;
|
|
56
|
-
renderHeaderFooterContentByRId: (source: Map<string, document_d_exports.HeaderFooter> | undefined, hfPMs: THfPMs, contentWidth: number, metrics: HeaderFooterMetrics, options: ConvertHeaderFooterOptions) => Map<string, HeaderFooterContent> | undefined;
|
|
57
|
-
/** Names the faces measurement can use now (`fontReadiness.readFontSetSignature`). */
|
|
58
|
-
readFontSetSignature: () => string;
|
|
59
|
-
buildFootnoteRenderItems: (pageFootnoteMap: Map<number, number[]>, footnoteContentMap: Map<number, FootnoteContent>, doc: document_d_exports.Document | null) => Map<number, FootnoteRenderItem[]>;
|
|
60
|
-
describeInvalidHighlightMarks: (doc: EditorState["doc"]) => string;
|
|
61
|
-
/**
|
|
62
|
-
* Which renderer paints the pages. `"legacy"` is the painter that has always
|
|
63
|
-
* painted them; `"display-list"` builds the painter-neutral paint IR from
|
|
64
|
-
* this layout and paints the pages from it, so the editor and an export draw
|
|
65
|
-
* from one structure.
|
|
66
|
-
*
|
|
67
|
-
* Only the *painting* is swapped. Page shells, virtualization, the
|
|
68
|
-
* fingerprint comparison that skips an unchanged page and the painted event
|
|
69
|
-
* are page-container concerns and stay shared, because a second copy of them
|
|
70
|
-
* is how incremental repaint would quietly stop working on long documents.
|
|
71
|
-
*/
|
|
72
|
-
pageRenderer?: PageRendererName;
|
|
73
|
-
emptyTemplatePreviewEntries: readonly TemplatePreviewEntry[];
|
|
74
|
-
emptyTemplatePreviewHidden: readonly TemplatePreviewHiddenRange[];
|
|
75
|
-
/** Follows up on the hyphenation dictionaries a run lacked (relayout or error). */
|
|
76
|
-
hyphenationReadiness: HyphenationReadiness;
|
|
77
|
-
/**
|
|
78
|
-
* The review view the body is laid out for. A view other than All Markup
|
|
79
|
-
* lays out the text it shows (every revision accepted or rejected), not the
|
|
80
|
-
* authored text with runs hidden afterwards.
|
|
81
|
-
*/
|
|
82
|
-
markupView: DisplayMode;
|
|
83
|
-
/** Independent highlight visibility in All Markup; resolved views always hide comments. */
|
|
84
|
-
showCommentHighlights?: boolean;
|
|
85
|
-
/** Localised text for a `w:altChunk` that has no text of its own to show. */
|
|
86
|
-
altChunkMarkerText?: string;
|
|
87
|
-
};
|
|
88
|
-
export declare function runLayoutPipeline<THfPMs>(deps: LayoutPipelineDeps<THfPMs>, state: EditorState, options?: LayoutRunOptions): LayoutOutcome;
|
|
4
|
+
/** Run a synchronous layout pass for consumers of the core pipeline. */
|
|
5
|
+
export declare function runLayoutPipeline<THfPMs>(deps: LayoutPipelineDeps<THfPMs>, state: EditorState, options?: LayoutRunOptions): LayoutOutcome;
|
|
6
|
+
export type { LayoutOutcome, LayoutPipelineDeps };
|