@betteroffice/docx 0.4.0 → 0.4.2
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 -1
- package/dist/chunk-4PRCO6EC.mjs +1 -0
- package/dist/chunk-5Z22FORG.mjs +1 -0
- package/dist/chunk-7SUVUKWT.mjs +1 -0
- package/dist/chunk-7ZV6P6NZ.mjs +57 -0
- package/dist/{chunk-2QHGQA3V.mjs → chunk-AXFMDV66.mjs} +1 -1
- package/dist/{chunk-YLFKV2NT.mjs → chunk-EBYC3CX7.mjs} +1 -1
- package/dist/{chunk-3CYO46ML.mjs → chunk-GKWXOZZH.mjs} +1 -1
- package/dist/chunk-HGKSOBXK.mjs +1 -0
- package/dist/chunk-LIOWZSE7.mjs +1 -0
- package/dist/chunk-ML6E23W2.mjs +1 -0
- package/dist/{chunk-NVN26RHH.mjs → chunk-MLEMGJP7.mjs} +1 -1
- package/dist/chunk-QBMNRD5V.mjs +2 -0
- package/dist/chunk-RNNTXPXC.mjs +1 -0
- package/dist/chunk-UBUTIWXN.mjs +1 -0
- package/dist/chunk-VH7P4734.mjs +16 -0
- package/dist/collaboration/index.d.mts +6 -5
- package/dist/compareDocx-CWOYEBCE.mjs +1 -0
- package/dist/{computeLayout-4MNWHE2T.mjs → computeLayout-ZTO6TBWX.mjs} +1 -1
- package/dist/{content-BzoC6bSz.d.mts → content-DSb-6a9T.d.mts} +5 -5
- package/dist/core.d.mts +5 -5
- package/dist/core.mjs +1 -1
- package/dist/{displayListQueries-H5YnU_hX.d.mts → displayListQueries-BVBDVXoP.d.mts} +2 -2
- package/dist/docx/index.d.mts +3 -3
- package/dist/docx/index.mjs +2 -2
- package/dist/editor/index.d.mts +11 -6
- package/dist/editor/index.mjs +1 -1
- package/dist/{frameDelta-ByU7HBuB.d.mts → frameDelta-CLeO7K5z.d.mts} +5 -2
- package/dist/generated/edit/docx_edit_bg.wasm +0 -0
- package/dist/generated/layout/docx_layout_bg.wasm +0 -0
- package/dist/generated/opc/ooxml_opc_bg.wasm +0 -0
- package/dist/generated/parse/docx_parse_bg.wasm +0 -0
- package/dist/{index-CHy6_Yuo.d.mts → index-DzZVJC8-.d.mts} +453 -12
- package/dist/layout/index.d.mts +2 -2
- package/dist/layout/index.mjs +1 -1
- package/dist/layout/pagination/index.d.mts +3 -3
- package/dist/layout/render/index.d.mts +32 -11
- package/dist/layout/render/index.mjs +1 -1
- package/dist/{pagedExport---0Dlmzo.d.mts → pagedExport-BmSlEhoP.d.mts} +1 -1
- package/dist/{parseWasm-NLAG22EU.mjs → parseWasm-BESKFFA3.mjs} +1 -1
- package/dist/plugin-api/RenderedDomContext.d.mts +5 -5
- package/dist/plugin-api/index.d.mts +1 -1
- package/dist/plugin-api/resolveItemPositions.d.mts +1 -1
- package/dist/{rustDisplayList-LcRZHCSL.d.mts → rustDisplayList-B7uPoItK.d.mts} +2 -2
- package/dist/types/content.d.mts +1 -1
- package/dist/types/document.d.mts +2 -2
- package/dist/{types-D6Pra38E.d.mts → types-Cz7S77Ut.d.mts} +23 -1
- package/dist/utils/comments.d.mts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/{wasm-K6DRABAA.mjs → wasm-GFT55YT6.mjs} +1 -1
- package/dist/wasm-QI7MWC5D.mjs +1 -0
- package/dist/wasm-QXYYV7LU.mjs +1 -0
- package/dist/wasm-edit.d.mts +41 -2
- package/dist/wasm-edit.mjs +1 -1
- package/dist/wasm-layout.mjs +1 -1
- package/dist/wasm-opc.mjs +1 -1
- package/dist/wasm-parse.mjs +1 -1
- package/dist/yrs/index.d.mts +5 -4
- package/dist/yrs/index.mjs +1 -1
- package/dist/yrs/residentEngineWorker.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-24Z6ZVFZ.mjs +0 -1
- package/dist/chunk-6CHGYCFU.mjs +0 -1
- package/dist/chunk-F2VBW6RB.mjs +0 -1
- package/dist/chunk-L2ML3DDI.mjs +0 -1
- package/dist/chunk-LIGZ75FP.mjs +0 -1
- package/dist/chunk-ND3FBCB3.mjs +0 -16
- package/dist/chunk-NMDQHUQB.mjs +0 -57
- package/dist/chunk-OK5UFGX3.mjs +0 -1
- package/dist/chunk-RZQ3OXZY.mjs +0 -2
- package/dist/compareDocx-IHFPGIGV.mjs +0 -1
- package/dist/wasm-GSI2XMOH.mjs +0 -1
- package/dist/wasm-NF6B3AH7.mjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SidebarItem, RenderedDomContext } from './index.mjs';
|
|
2
2
|
import '../types/document.mjs';
|
|
3
|
-
import '../content-
|
|
3
|
+
import '../content-DSb-6a9T.mjs';
|
|
4
4
|
import '../formatting-gqLFeJ9X.mjs';
|
|
5
5
|
import '../docx/wrapTypes.mjs';
|
|
6
6
|
import '../styles-AryxLAhx.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as Layout } from './types-
|
|
1
|
+
import { L as Layout } from './types-Cz7S77Ut.mjs';
|
|
2
2
|
import { MeasuredBlock } from './layout/pagination/index.mjs';
|
|
3
|
-
import { D as DisplayList, R as RetainedFrame } from './frameDelta-
|
|
3
|
+
import { D as DisplayList, R as RetainedFrame } from './frameDelta-CLeO7K5z.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* JS seam to the Rust display-list builder.
|
package/dist/types/content.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { B as BlockContent, l as BlockSdt, m as BookmarkEnd, n as BookmarkStart, o as BreakContent, d as Chart, p as ChartAxis, q as ChartContent, t as ChartLegend, x as ChartSeries, y as ChartType, z as Column, e as Comment, J as CommentRangeEnd, K as CommentRangeStart, M as ComplexField, Q as DEFAULT_WATERMARK_PRESETS, T as Deletion, g as DocumentBody, U as DrawingContent, j as Endnote, X as EndnotePosition, E as EndnoteProperties, Y as Field, Z as FieldCharContent, a0 as FieldType, a1 as FooterReference, i as Footnote, a2 as FootnotePosition, F as FootnoteProperties, H as HeaderFooter, a3 as HeaderFooterType, a4 as HeaderReference, a6 as Hyperlink, a8 as Image, a9 as ImageCrop, ac as ImagePadding, ad as ImagePosition, af as ImageSize, ag as ImageTransform, ah as ImageWrap, aj as InlineSdt, ak as Insertion, al as InstrTextContent, an as LineNumberRestart, aq as MathEquation, ar as MoveFrom, as as MoveFromRangeEnd, at as MoveFromRangeStart, au as MoveTo, av as MoveToRangeEnd, aw as MoveToRangeStart, ax as NoBreakHyphenContent, ay as NoteNumberRestart, az as NoteRefMarkContent, aA as NoteReferenceContent, aF as PageOrientation, P as Paragraph, aG as ParagraphContent, aH as ParagraphPropertyChange, aI as PictureWatermark, aJ as PropertyChangeInfo, bi as RawXml, aK as Run, aL as RunContent, aM as RunPropertyChange, aO as SdtDataBinding, a as SdtProperties, aR as SdtType, aS as Section, f as SectionProperties, aT as SectionStart, aU as SeparatorContent, aV as Shape, aW as ShapeContent, aZ as ShapeTextBody, a_ as SimpleField, a$ as SoftHyphenContent, b2 as SymbolContent, b3 as TabContent, b4 as Table, b5 as TableCell, b6 as TableCellPropertyChange, b7 as TablePropertyChange, b8 as TableRow, b9 as TableRowPropertyChange, ba as TableStructuralChangeInfo, bb as TextBox, bc as TextContent, bd as TextWatermark, be as TrackedChangeInfo, bf as TrackedRunChange, bg as VerticalAlign, W as Watermark, bh as pictureWatermarkDisplayEmu } from '../content-
|
|
1
|
+
export { B as BlockContent, l as BlockSdt, m as BookmarkEnd, n as BookmarkStart, o as BreakContent, d as Chart, p as ChartAxis, q as ChartContent, t as ChartLegend, x as ChartSeries, y as ChartType, z as Column, e as Comment, J as CommentRangeEnd, K as CommentRangeStart, M as ComplexField, Q as DEFAULT_WATERMARK_PRESETS, T as Deletion, g as DocumentBody, U as DrawingContent, j as Endnote, X as EndnotePosition, E as EndnoteProperties, Y as Field, Z as FieldCharContent, a0 as FieldType, a1 as FooterReference, i as Footnote, a2 as FootnotePosition, F as FootnoteProperties, H as HeaderFooter, a3 as HeaderFooterType, a4 as HeaderReference, a6 as Hyperlink, a8 as Image, a9 as ImageCrop, ac as ImagePadding, ad as ImagePosition, af as ImageSize, ag as ImageTransform, ah as ImageWrap, aj as InlineSdt, ak as Insertion, al as InstrTextContent, an as LineNumberRestart, aq as MathEquation, ar as MoveFrom, as as MoveFromRangeEnd, at as MoveFromRangeStart, au as MoveTo, av as MoveToRangeEnd, aw as MoveToRangeStart, ax as NoBreakHyphenContent, ay as NoteNumberRestart, az as NoteRefMarkContent, aA as NoteReferenceContent, aF as PageOrientation, P as Paragraph, aG as ParagraphContent, aH as ParagraphPropertyChange, aI as PictureWatermark, aJ as PropertyChangeInfo, bi as RawXml, aK as Run, aL as RunContent, aM as RunPropertyChange, aO as SdtDataBinding, a as SdtProperties, aR as SdtType, aS as Section, f as SectionProperties, aT as SectionStart, aU as SeparatorContent, aV as Shape, aW as ShapeContent, aZ as ShapeTextBody, a_ as SimpleField, a$ as SoftHyphenContent, b2 as SymbolContent, b3 as TabContent, b4 as Table, b5 as TableCell, b6 as TableCellPropertyChange, b7 as TablePropertyChange, b8 as TableRow, b9 as TableRowPropertyChange, ba as TableStructuralChangeInfo, bb as TextBox, bc as TextContent, bd as TextWatermark, be as TrackedChangeInfo, bf as TrackedRunChange, bg as VerticalAlign, W as Watermark, bh as pictureWatermarkDisplayEmu } from '../content-DSb-6a9T.mjs';
|
|
2
2
|
export { k as ShapeFill, l as ShapeOutline, m as ShapeType } from '../formatting-gqLFeJ9X.mjs';
|
|
3
3
|
import '../docx/wrapTypes.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FootnoteProperties, E as EndnoteProperties, g as DocumentBody, h as NumberingDefinitions, i as Footnote, j as Endnote, H as HeaderFooter, d as Chart, k as BookmarkRange } from '../content-
|
|
2
|
-
export { A as AbstractNumbering, B as BlockContent, l as BlockSdt, m as BookmarkEnd, n as BookmarkStart, o as BreakContent, p as ChartAxis, q as ChartContent, r as ChartDataLabels, s as ChartGrouping, t as ChartLegend, u as ChartPlotGroup, v as ChartPoint, w as ChartPointLabel, x as ChartSeries, y as ChartType, z as Column, e as Comment, G as CommentAnchorRange, I as CommentAuthor, J as CommentRangeEnd, K as CommentRangeStart, L as CommentReferenceContent, M as ComplexField, O as ContentPosition, Q as DEFAULT_WATERMARK_PRESETS, T as Deletion, U as DrawingContent, D as DrawingScene, V as DrawingSceneNode, X as EndnotePosition, Y as Field, Z as FieldCharContent, _ as FieldFormData, $ as FieldInlineContent, a0 as FieldType, a1 as FooterReference, a2 as FootnotePosition, a3 as HeaderFooterType, a4 as HeaderReference, a5 as HorizontalRuleContent, a6 as Hyperlink, a7 as HyperlinkContent, a8 as Image, a9 as ImageCrop, aa as ImageEffect, ab as ImageHyperlink, ac as ImagePadding, ad as ImagePosition, ae as ImageRotationBounds, af as ImageSize, ag as ImageTransform, ah as ImageWrap, ai as ImageWrapPoint, aj as InlineSdt, ak as Insertion, al as InstrTextContent, am as LevelSuffix, an as LineNumberRestart, ao as ListLevel, ap as ListRendering, aq as MathEquation, ar as MoveFrom, as as MoveFromRangeEnd, at as MoveFromRangeStart, au as MoveTo, av as MoveToRangeEnd, aw as MoveToRangeStart, ax as NoBreakHyphenContent, N as NoteKind, ay as NoteNumberRestart, az as NoteRefMarkContent, aA as NoteReferenceContent, aB as NoteSeparatorReference, aC as NumberFormat, aD as NumberingInstance, aE as PageNumberingProperties, aF as PageOrientation, P as Paragraph, aG as ParagraphContent, aH as ParagraphPropertyChange, aI as PictureWatermark, aJ as PropertyChangeInfo, aK as Run, aL as RunContent, aM as RunPropertyChange, aN as SdtCheckboxGlyph, S as SdtControlState, aO as SdtDataBinding, aP as SdtDateState, aQ as SdtGalleryState, a as SdtProperties, aR as SdtType, aS as Section, f as SectionProperties, aT as SectionStart, aU as SeparatorContent, aV as Shape, aW as ShapeContent, b as ShapeEffect, aX as ShapeFillPaint, aY as ShapeStrokePaint, aZ as ShapeTextBody, c as ShapeTextBodyProperties, a_ as SimpleField, a$ as SoftHyphenContent, b0 as StructuredFieldContent, b1 as StructuredFieldTree, b2 as SymbolContent, b3 as TabContent, b4 as Table, b5 as TableCell, b6 as TableCellPropertyChange, b7 as TablePropertyChange, b8 as TableRow, b9 as TableRowPropertyChange, ba as TableStructuralChangeInfo, bb as TextBox, bc as TextContent, bd as TextWatermark, be as TrackedChangeInfo, bf as TrackedRunChange, bg as VerticalAlign, W as Watermark, bh as pictureWatermarkDisplayEmu } from '../content-
|
|
1
|
+
import { F as FootnoteProperties, E as EndnoteProperties, g as DocumentBody, h as NumberingDefinitions, i as Footnote, j as Endnote, H as HeaderFooter, d as Chart, k as BookmarkRange } from '../content-DSb-6a9T.mjs';
|
|
2
|
+
export { A as AbstractNumbering, B as BlockContent, l as BlockSdt, m as BookmarkEnd, n as BookmarkStart, o as BreakContent, p as ChartAxis, q as ChartContent, r as ChartDataLabels, s as ChartGrouping, t as ChartLegend, u as ChartPlotGroup, v as ChartPoint, w as ChartPointLabel, x as ChartSeries, y as ChartType, z as Column, e as Comment, G as CommentAnchorRange, I as CommentAuthor, J as CommentRangeEnd, K as CommentRangeStart, L as CommentReferenceContent, M as ComplexField, O as ContentPosition, Q as DEFAULT_WATERMARK_PRESETS, T as Deletion, U as DrawingContent, D as DrawingScene, V as DrawingSceneNode, X as EndnotePosition, Y as Field, Z as FieldCharContent, _ as FieldFormData, $ as FieldInlineContent, a0 as FieldType, a1 as FooterReference, a2 as FootnotePosition, a3 as HeaderFooterType, a4 as HeaderReference, a5 as HorizontalRuleContent, a6 as Hyperlink, a7 as HyperlinkContent, a8 as Image, a9 as ImageCrop, aa as ImageEffect, ab as ImageHyperlink, ac as ImagePadding, ad as ImagePosition, ae as ImageRotationBounds, af as ImageSize, ag as ImageTransform, ah as ImageWrap, ai as ImageWrapPoint, aj as InlineSdt, ak as Insertion, al as InstrTextContent, am as LevelSuffix, an as LineNumberRestart, ao as ListLevel, ap as ListRendering, aq as MathEquation, ar as MoveFrom, as as MoveFromRangeEnd, at as MoveFromRangeStart, au as MoveTo, av as MoveToRangeEnd, aw as MoveToRangeStart, ax as NoBreakHyphenContent, N as NoteKind, ay as NoteNumberRestart, az as NoteRefMarkContent, aA as NoteReferenceContent, aB as NoteSeparatorReference, aC as NumberFormat, aD as NumberingInstance, aE as PageNumberingProperties, aF as PageOrientation, P as Paragraph, aG as ParagraphContent, aH as ParagraphPropertyChange, aI as PictureWatermark, aJ as PropertyChangeInfo, aK as Run, aL as RunContent, aM as RunPropertyChange, aN as SdtCheckboxGlyph, S as SdtControlState, aO as SdtDataBinding, aP as SdtDateState, aQ as SdtGalleryState, a as SdtProperties, aR as SdtType, aS as Section, f as SectionProperties, aT as SectionStart, aU as SeparatorContent, aV as Shape, aW as ShapeContent, b as ShapeEffect, aX as ShapeFillPaint, aY as ShapeStrokePaint, aZ as ShapeTextBody, c as ShapeTextBodyProperties, a_ as SimpleField, a$ as SoftHyphenContent, b0 as StructuredFieldContent, b1 as StructuredFieldTree, b2 as SymbolContent, b3 as TabContent, b4 as Table, b5 as TableCell, b6 as TableCellPropertyChange, b7 as TablePropertyChange, b8 as TableRow, b9 as TableRowPropertyChange, ba as TableStructuralChangeInfo, bb as TextBox, bc as TextContent, bd as TextWatermark, be as TrackedChangeInfo, bf as TrackedRunChange, bg as VerticalAlign, W as Watermark, bh as pictureWatermarkDisplayEmu } from '../content-DSb-6a9T.mjs';
|
|
3
3
|
import { f as Theme, C as ColorValue } from '../formatting-gqLFeJ9X.mjs';
|
|
4
4
|
export { B as BorderSpec, g as CellMargins, h as ConditionalFormatStyle, E as EmphasisMark, F as FloatingTableProperties, L as LineSpacingRule, i as ParagraphAlignment, a as ParagraphFormatting, R as RunFontHint, j as RunLanguage, S as ShadingProperties, k as ShapeFill, l as ShapeOutline, m as ShapeType, n as TabLeader, o as TabStop, p as TabStopAlignment, q as TableBorders, e as TableCellFormatting, c as TableFormatting, r as TableLook, s as TableMeasurement, d as TableRowFormatting, t as TableStyleCascade, u as TableStyleRegion, v as TableWidthType, w as TextEffect, b as TextFormatting, T as TextModernEffects, x as ThemeColorScheme, y as ThemeColorSlot, z as ThemeFont, A as ThemeFontScheme, U as UnderlineStyle } from '../formatting-gqLFeJ9X.mjs';
|
|
5
5
|
import { S as StyleDefinitions, F as FontTable, R as RelationshipMap, M as MediaFile } from '../styles-AryxLAhx.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SdtControlState, a as SdtProperties, R as RevisionInfo, C as CellMarker, D as DrawingScene, b as ShapeEffect, c as ShapeTextBodyProperties, d as Chart, W as Watermark, F as FootnoteProperties, E as EndnoteProperties } from './content-
|
|
1
|
+
import { S as SdtControlState, a as SdtProperties, R as RevisionInfo, C as CellMarker, D as DrawingScene, b as ShapeEffect, c as ShapeTextBodyProperties, d as Chart, W as Watermark, F as FootnoteProperties, E as EndnoteProperties } from './content-DSb-6a9T.mjs';
|
|
2
2
|
import { T as TextModernEffects, P as PresetGeometryPathCommand, B as BorderSpec } from './formatting-gqLFeJ9X.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1089,6 +1089,8 @@ type TypesetRow = {
|
|
|
1089
1089
|
* as marginTop on the line element; measurement adds it to totalHeight.
|
|
1090
1090
|
*/
|
|
1091
1091
|
floatSkipBefore?: number;
|
|
1092
|
+
/** Extra first-line indent after a list number overruns its hanging indent. */
|
|
1093
|
+
markerTabOffset?: number;
|
|
1092
1094
|
/** Exact per-run advances in visual paint order. Undefined = legacy estimation. */
|
|
1093
1095
|
runAdvances?: TypesetRunAdvance[];
|
|
1094
1096
|
/** Exact shaped cluster advances. Undefined = legacy estimation. */
|
|
@@ -1435,6 +1437,8 @@ type Page = {
|
|
|
1435
1437
|
fragments: Fragment[];
|
|
1436
1438
|
/** Page margins. */
|
|
1437
1439
|
margins: PageMargins;
|
|
1440
|
+
bodyMargins?: PageMargins;
|
|
1441
|
+
bodyAnchorMargins?: PageMargins;
|
|
1438
1442
|
/** Page size (width, height). */
|
|
1439
1443
|
size: {
|
|
1440
1444
|
w: number;
|
|
@@ -1594,6 +1598,24 @@ type LayoutOptions = {
|
|
|
1594
1598
|
footnoteReservedHeights?: Map<number, number>;
|
|
1595
1599
|
/** Section break type for the body-level (final) section (for section transition logic). */
|
|
1596
1600
|
bodyBreakType?: 'continuous' | 'nextPage' | 'evenPage' | 'oddPage' | 'nextColumn';
|
|
1601
|
+
sectionPageFloatBands?: Array<{
|
|
1602
|
+
default: Array<{
|
|
1603
|
+
top: number;
|
|
1604
|
+
bottom: number;
|
|
1605
|
+
oddPage?: boolean;
|
|
1606
|
+
}>;
|
|
1607
|
+
first?: Array<{
|
|
1608
|
+
top: number;
|
|
1609
|
+
bottom: number;
|
|
1610
|
+
oddPage?: boolean;
|
|
1611
|
+
}> | null;
|
|
1612
|
+
even?: Array<{
|
|
1613
|
+
top: number;
|
|
1614
|
+
bottom: number;
|
|
1615
|
+
oddPage?: boolean;
|
|
1616
|
+
}> | null;
|
|
1617
|
+
anchorMargins?: PageMargins;
|
|
1618
|
+
}>;
|
|
1597
1619
|
/** Effective section states, indexed by section. Undefined = legacy globals. */
|
|
1598
1620
|
sections?: Array<{
|
|
1599
1621
|
sectionId?: string;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { F as FontTable } from '../styles-AryxLAhx.mjs';
|
|
|
6
6
|
import { Document } from '../types/document.mjs';
|
|
7
7
|
import { FontOption } from './fontOptions.mjs';
|
|
8
8
|
export { MIN_CARD_GAP, SIDEBAR_DOCUMENT_SHIFT, SIDEBAR_PAGE_GAP, SIDEBAR_WIDTH } from './sidebarConstants.mjs';
|
|
9
|
-
import { e as Comment } from '../content-
|
|
9
|
+
import { e as Comment } from '../content-DSb-6a9T.mjs';
|
|
10
10
|
import '../formatting-gqLFeJ9X.mjs';
|
|
11
11
|
import '../docx/wrapTypes.mjs';
|
|
12
12
|
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as MIN_CARD_GAP,c as SIDEBAR_DOCUMENT_SHIFT,b as SIDEBAR_PAGE_GAP,a as SIDEBAR_WIDTH}from'../chunk-YUOKI2HB.mjs';export{f as blendColors,r as colorsEqual,o as createRgbColor,n as createThemeColor,d as darkenColor,p as ensureHexPrefix,h as generateThemeTintShadeMatrix,c as getContrastingColor,g as getThemeTintShadeHex,k as isBlack,l as isWhite,e as lightenColor,m as parseColorString,a as resolveColor,b as resolveColorToHex,i as resolveHighlightColor,q as resolveHighlightToCss,j as resolveShadingColor}from'../chunk-LTVVQMHB.mjs';export{a as PIXELS_PER_INCH,e as TWIPS_PER_INCH,p as clamp,n as eighthsToPixels,b as emuToPixels,i as emuToTwips,q as formatPx,k as halfPointsToPixels,l as halfPointsToPoints,c as pixelsToEmu,h as pixelsToTwips,m as pointsToHalfPoints,d as pointsToPixels,o as roundPixels,j as twipsToEmu,g as twipsToPixels}from'../chunk-CTBUQRYQ.mjs';import {n,d}from'../chunk-ND3FBCB3.mjs';export{s as FONT_MAPPING,n as canRenderFont,z as createFontLoadScope,c as deobfuscateFont,C as extractEmbeddedFontFaces,x as extractFontsFromDocument,B as getEmbeddedFontFaces,A as getEmbeddedFontFamilies,t as getGoogleFontEquivalent,k as getLoadedFonts,g as isFontLoaded,i as isGoogleFontsEnabled,j as isLoading,b as isValidFontKey,y as loadDocumentFonts,E as loadEmbeddedFontFamilies,D as loadEmbeddedFonts,e as loadFont,r as loadFontDefinitions,o as loadFontFromBuffer,q as loadFontFromUrl,u as loadFontWithMapping,f as loadFonts,v as loadFontsWithMapping,m as onFontError,l as onFontsLoaded,w as preloadCommonFonts,p as registerDocumentFaces,h as setGoogleFontsEnabled,a as toArrayBuffer}from'../chunk-ND3FBCB3.mjs';import'../chunk-YLFKV2NT.mjs';import'../chunk-LT2GCWZ3.mjs';import'../chunk-HPZFJGGM.mjs';import'../chunk-2QHGQA3V.mjs';import'../chunk-3CYO46ML.mjs';import'../chunk-6CHGYCFU.mjs';import'../chunk-DLXIZBB6.mjs';import'../chunk-TTRUPDAB.mjs';function H(e){let t=new Set,o=e.package;if(o.theme&&st(o.theme,t),o.styles&&it(o.styles,t),o.document)for(let n of o.document.content)T(n,t);if(o.headers)for(let n of o.headers.values())O(n,t);if(o.footers)for(let n of o.footers.values())O(n,t);if(o.footnotes)for(let n of o.footnotes)gt(n,t);if(o.endnotes)for(let n of o.endnotes)ht(n,t);return Array.from(t).sort()}function st(e,t){let o=e.fontScheme;o&&(o.majorFont&&_(o.majorFont,t),o.minorFont&&_(o.minorFont,t));}function _(e,t){if(e.latin&&t.add(e.latin),e.ea&&t.add(e.ea),e.cs&&t.add(e.cs),e.fonts)for(let o of Object.values(e.fonts))o&&t.add(o);}function it(e,t){e.docDefaults&&(e.docDefaults.rPr&&h(e.docDefaults.rPr,t),e.docDefaults.pPr?.runProperties&&h(e.docDefaults.pPr.runProperties,t));for(let o of e.styles)o.rPr&&h(o.rPr,t),o.pPr?.runProperties&&h(o.pPr.runProperties,t);}function h(e,t){let o=e.fontFamily;o&&(o.ascii&&t.add(o.ascii),o.hAnsi&&t.add(o.hAnsi),o.eastAsia&&t.add(o.eastAsia),o.cs&&t.add(o.cs));}function lt(e,t){e.runProperties&&h(e.runProperties,t);}function T(e,t){e.type==="paragraph"?ct(e,t):e.type==="table"&&ut(e,t);}function ct(e,t){e.formatting&<(e.formatting,t);for(let o of e.content)ft(o,t);}function ft(e,t){if(e.type==="run")b(e,t);else if(e.type==="hyperlink")dt(e,t);else if(e.type==="simpleField"||e.type==="complexField"){if("content"in e)for(let o of e.content)o.type==="run"&&b(o,t);if("fieldResult"in e)for(let o of e.fieldResult)b(o,t);}}function b(e,t){e.formatting&&h(e.formatting,t);}function dt(e,t){for(let o of e.children)o.type==="run"&&b(o,t);}function ut(e,t){for(let o of e.rows)mt(o,t);}function mt(e,t){for(let o of e.cells)pt(o,t);}function pt(e,t){for(let o of e.content)T(o,t);}function O(e,t){for(let o of e.content)T(o,t);}function gt(e,t){for(let o of e.content)T(o,t);}function ht(e,t){for(let o of e.content)T(o,t);}var xt=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui"]);function L(e,t={}){let o=t.canRender??n,n$1=new Set;for(let i of t.exclude??[])n$1.add(i.trim().toLowerCase());let r=new Set;for(let i of t.embeddedFamilies??[])r.add(i.trim().toLowerCase());let s=[],a=new Set;for(let i of e){let c=i.trim(),f=c.toLowerCase();!c||xt.has(f)||n$1.has(f)||a.has(f)||!r.has(f)&&!o(c)||(a.add(f),s.push({name:c,fontFamily:d(c).cssFallback,category:"other"}));}return s}function Ft(e,t={}){return L(H(e),t)}function Tt(e,t){if(!e||e.length===0)return [];let o=new Set;for(let s of t)o.add(s.trim().toLowerCase());let n=new Set,r=[];for(let s of e){let a=s.name.trim().toLowerCase();o.has(a)||n.has(a)||(n.add(a),r.push(s));}return r}function bt(e){let t=[];return e.descendants((o,n)=>{if(o.type.name==="paragraph"){let r=o.attrs.outlineLevel,s=o.attrs.styleId,a=r;if(a==null&&s){let i=s.match(/^[Hh]eading(\d)$/);i&&(a=parseInt(i[1],10)-1);}if(a!=null&&a>=0&&a<=8){let i="";o.forEach(c=>{c.isText&&(i+=c.text||"");}),i.trim()&&t.push({text:i.trim(),level:a,pmPos:n});}}}),t}var N="rgba(255, 235, 59, 0.55)",yt=1200,y="docx-paragraph-flash",S=new WeakMap;function Ct(e){let t=globalThis;return typeof t.CSS?.escape=="function"?t.CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function At(e){return e?.color?.trim()||N}function St(e){let t=e?.durationMs;return t==null||!Number.isFinite(t)||t<0?1200:t}function k(e,t){if(!t||!t.trim())return [];let o=Ct(t);return Array.from(e.querySelectorAll(`.layout-paragraph[data-para-id="${o}"]`))}function W(e,t){let o=0,n=At(t),r=St(t);for(let s of e){o++;let a=S.get(s);a!==void 0&&clearTimeout(a),s.classList.remove(y),s.offsetWidth,s.style.setProperty("--docx-paragraph-flash-color",n),s.style.setProperty("--docx-paragraph-flash-duration",`${r}ms`),s.classList.add(y);let i=setTimeout(()=>{s.classList.remove(y),s.style.removeProperty("--docx-paragraph-flash-color"),s.style.removeProperty("--docx-paragraph-flash-duration"),S.delete(s);},r);S.set(s,i);}return o}function Et(e,t,o){let n=k(e,t);return W(n,o)>0}function B(e,t,o){let n=0;for(let r=t;r<t+o&&r<e.length;r++)n+=e[r];return n}function wt(e,t,o,n){let r=B(e,t,o),s=Math.floor(r/Math.max(n,1)),a=r-s*n,i=Array.from({length:n},(c,f)=>s+(f<a?1:0));return [...e.slice(0,t),...i,...e.slice(t+o)]}function Pt(e,t,o,n,r,s){let a=o-t.rowspan,i=n-t.colspan,c=r+a,f=t.row+t.rowspan,F=t.col+t.colspan,p=[];for(let l of e){if(l===t)continue;let g=l.row+l.rowspan,C=l.col+l.colspan,I=l.row<f&&g>t.row,v=l.col<F&&C>t.col;p.push({data:l.data,row:l.row>=f?l.row+a:l.row,col:l.col>=F?l.col+i:l.col,rowspan:l.rowspan+(a>0&&I&&!v?a:0),colspan:l.colspan+(i>0&&v&&!I?i:0)});}for(let l=0;l<o;l++)for(let g=0;g<n;g++){let C=l===0&&g===0;p.push({data:s(C,l,g),row:t.row+l,col:t.col+g,rowspan:1,colspan:1});}return {anchors:p,deltaRows:a,deltaCols:i,newRowCount:c}}function Rt(e){let t=new Map,o=new Map;for(let n of e){t.set(`${n.row}-${n.col}`,n);for(let r=n.row;r<n.row+n.rowspan;r++)for(let s=n.col;s<n.col+n.colspan;s++)o.set(`${r}-${s}`,n);}return {byStart:t,byCoveredSlot:o}}function Dt(e,t){let o=e>1||t>1;return {minRows:e,minCols:t,initialRows:e,initialCols:o?t:t+1}}var It=/[\p{L}\p{N}\p{M}_''\-]/u,vt=/\s/;function E(e){return !e||e.length===0?false:It.test(e)}function w(e){return !e||e.length===0?false:vt.test(e)}function m(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(w(o)){let n=t,r=t;for(;n>0&&w(e[n-1]);)n--;for(;r<e.length&&w(e[r]);)r++;return [n,r]}if(E(o)){let n=t,r=t;for(;n>0&&E(e[n-1]);)n--;for(;r<e.length&&E(e[r]);)r++;return [n,r]}return [t,t+1]}function Mt(e,t){let[o,n]=m(e,t);return e.slice(o,n)}function _t(e,t){let[o,n]=m(e,t);return {word:e.slice(o,n),startIndex:o,endIndex:n}}function D(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let n=o.textContent||"",r=t.startOffset,[s,a]=m(n,r);if(a>s)return t.setStart(o,s),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let n=o,r=G(n);if(r.length>0){let s=t.startOffset,a=null,i=s;if(s<n.childNodes.length){let c=n.childNodes[s];if(c.nodeType===Node.TEXT_NODE)a=c,i=0;else if(c instanceof Element){let f=G(c);f.length>0&&(a=f[0],i=0);}}if(!a&&r.length>0&&(a=r[0],i=0),a){let c=a.textContent||"",[f,F]=m(c,i);if(F>f){let p=document.createRange();return p.setStart(a,f),p.setEnd(a,F),e.removeAllRanges(),e.addRange(p),true}}}}return false}function Ot(e,t){let o=window.getSelection();if(!o)return false;let n=e.textContent||"",[r,s]=m(n,t);if(s>r){let a=document.createRange();return a.setStart(e,r),a.setEnd(e,s),o.removeAllRanges(),o.addRange(a),true}return false}function Ht(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return D();let o=t.startContainer,n=t.endContainer,r=t.startOffset,s=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[i]=m(a,t.startOffset);r=i;}if(n.nodeType===Node.TEXT_NODE){let a=n.textContent||"",i=Math.max(0,t.endOffset-1),[,c]=m(a,i);s=c;}try{return t.setStart(o,r),t.setEnd(n,s),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function X(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,n=Lt(o);if(n){let r=document.createRange();return r.selectNodeContents(n),e.removeAllRanges(),e.addRange(r),true}return false}function Lt(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function G(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),n;for(;n=o.nextNode();)n.nodeType===Node.TEXT_NODE&&t.push(n);return t}var P=0,x=null,R=null,Nt=500;function U(){P=0,R=null,x&&(clearTimeout(x),x=null);}function K(e){return e.target!==R&&U(),P++,R=e.target,x&&clearTimeout(x),x=setTimeout(U,Nt),Math.min(P,3)}function kt(){return e=>{e.ctrlKey||e.metaKey||e.altKey||D();}}function Wt(){return e=>{if(K(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;X();}}}async function Bt(e){let t=e.target;if(!t||!t.files)return null;let o=t.files[0];return t.value="",o?{buffer:await o.arrayBuffer(),name:o.name.replace(/\.docx$/i,"")}:null}var $="(prefers-color-scheme: dark)";function z(){return typeof window<"u"&&typeof window.matchMedia=="function"}function Gt(){return z()?window.matchMedia($).matches:false}function Ut(e,t){return e==="dark"||e==="system"&&t}function Xt(e){if(!z())return ()=>{};let t=window.matchMedia($);e(t.matches);let o=n=>e(n.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}var Kt=-1;function $t(){let e=1;return {next:()=>e++,seedAbove(t){t>=e&&(e=t+1);}}}function zt(e,t,o,n){return {id:e.next(),author:o,date:new Date().toISOString(),content:[{type:"paragraph",formatting:{},content:[{type:"run",formatting:{},content:[{type:"text",text:t}]}]}],...n!==void 0&&{parentId:n}}}var jt=/^[a-z][a-z0-9+.-]*:/i,qt=/^(https?|mailto|tel|ftp):/i;function Qt(e){if(!e)return;let t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(t)return jt.test(t)?qt.test(t)?e:void 0:e}export{N as DEFAULT_PARAGRAPH_FLASH_COLOR,yt as DEFAULT_PARAGRAPH_FLASH_DURATION_MS,y as PARAGRAPH_FLASH_CLASS_NAME,Kt as PENDING_COMMENT_ID,Rt as buildAnchorMaps,bt as collectHeadings,Dt as computeSplitDialogDefaults,Pt as computeSplitLayout,zt as createComment,$t as createCommentIdAllocator,kt as createDoubleClickWordSelector,Wt as createTripleClickParagraphSelector,Tt as excludeFontsByName,Ht as expandSelectionToWordBoundaries,k as findParagraphFragmentsByParaId,_t as findWordAt,m as findWordBoundaries,W as flashParagraphElements,Et as flashParagraphFragmentsByParaId,Ft as getRenderableDocumentFonts,Mt as getWordAt,K as handleClickForMultiClick,Gt as prefersColorSchemeDark,Bt as readDocxFileFromInput,wt as redistributeColumnWidths,Ut as resolveIsDark,Qt as sanitizeHref,X as selectParagraphAtCursor,L as selectRenderableFonts,D as selectWordAtCursor,Ot as selectWordInTextNode,Xt as subscribeSystemDark,B as sumColumnWidths};
|
|
1
|
+
export{d as MIN_CARD_GAP,c as SIDEBAR_DOCUMENT_SHIFT,b as SIDEBAR_PAGE_GAP,a as SIDEBAR_WIDTH}from'../chunk-YUOKI2HB.mjs';export{f as blendColors,r as colorsEqual,o as createRgbColor,n as createThemeColor,d as darkenColor,p as ensureHexPrefix,h as generateThemeTintShadeMatrix,c as getContrastingColor,g as getThemeTintShadeHex,k as isBlack,l as isWhite,e as lightenColor,m as parseColorString,a as resolveColor,b as resolveColorToHex,i as resolveHighlightColor,q as resolveHighlightToCss,j as resolveShadingColor}from'../chunk-LTVVQMHB.mjs';export{a as PIXELS_PER_INCH,e as TWIPS_PER_INCH,p as clamp,n as eighthsToPixels,b as emuToPixels,i as emuToTwips,q as formatPx,k as halfPointsToPixels,l as halfPointsToPoints,c as pixelsToEmu,h as pixelsToTwips,m as pointsToHalfPoints,d as pointsToPixels,o as roundPixels,j as twipsToEmu,g as twipsToPixels}from'../chunk-CTBUQRYQ.mjs';import {n,d}from'../chunk-VH7P4734.mjs';export{s as FONT_MAPPING,n as canRenderFont,z as createFontLoadScope,c as deobfuscateFont,C as extractEmbeddedFontFaces,x as extractFontsFromDocument,B as getEmbeddedFontFaces,A as getEmbeddedFontFamilies,t as getGoogleFontEquivalent,k as getLoadedFonts,g as isFontLoaded,i as isGoogleFontsEnabled,j as isLoading,b as isValidFontKey,y as loadDocumentFonts,E as loadEmbeddedFontFamilies,D as loadEmbeddedFonts,e as loadFont,r as loadFontDefinitions,o as loadFontFromBuffer,q as loadFontFromUrl,u as loadFontWithMapping,f as loadFonts,v as loadFontsWithMapping,m as onFontError,l as onFontsLoaded,w as preloadCommonFonts,p as registerDocumentFaces,h as setGoogleFontsEnabled,a as toArrayBuffer}from'../chunk-VH7P4734.mjs';import'../chunk-EBYC3CX7.mjs';import {a}from'../chunk-UBUTIWXN.mjs';import'../chunk-LT2GCWZ3.mjs';import'../chunk-HPZFJGGM.mjs';import'../chunk-AXFMDV66.mjs';import'../chunk-GKWXOZZH.mjs';import'../chunk-HGKSOBXK.mjs';import'../chunk-DLXIZBB6.mjs';import'../chunk-TTRUPDAB.mjs';function L(e){let t=new Set,o=e.package;if(o.theme&&it(o.theme,t),o.styles&<(o.styles,t),o.document)for(let n of o.document.content)y(n,t);if(o.headers)for(let n of o.headers.values())H(n,t);if(o.footers)for(let n of o.footers.values())H(n,t);if(o.footnotes)for(let n of o.footnotes)ht(n,t);if(o.endnotes)for(let n of o.endnotes)xt(n,t);return Array.from(t).sort()}function it(e,t){let o=e.fontScheme;o&&(o.majorFont&&O(o.majorFont,t),o.minorFont&&O(o.minorFont,t));}function O(e,t){if(e.latin&&t.add(e.latin),e.ea&&t.add(e.ea),e.cs&&t.add(e.cs),e.fonts)for(let o of Object.values(e.fonts))o&&t.add(o);}function lt(e,t){e.docDefaults&&(e.docDefaults.rPr&&x(e.docDefaults.rPr,t),e.docDefaults.pPr?.runProperties&&x(e.docDefaults.pPr.runProperties,t));for(let o of e.styles)o.rPr&&x(o.rPr,t),o.pPr?.runProperties&&x(o.pPr.runProperties,t);}function x(e,t){let o=e.fontFamily;o&&(o.ascii&&t.add(o.ascii),o.hAnsi&&t.add(o.hAnsi),o.eastAsia&&t.add(o.eastAsia),o.cs&&t.add(o.cs));}function ct(e,t){e.runProperties&&x(e.runProperties,t);}function y(e,t){e.type==="paragraph"?ft(e,t):e.type==="table"&&mt(e,t);}function ft(e,t){e.formatting&&ct(e.formatting,t);for(let o of e.content)dt(o,t);}function dt(e,t){if(e.type==="run")h(e,t);else if(e.type==="hyperlink")ut(e,t),a(e,o=>{o.type==="run"&&h(o,t);});else if(e.type==="inlineSdt"||e.type==="insertion"||e.type==="deletion"||e.type==="moveFrom"||e.type==="moveTo")a(e,o=>{o.type==="run"&&h(o,t);});else if(e.type==="simpleField"||e.type==="complexField"){if("content"in e)for(let o of e.content)o.type==="run"&&h(o,t);if("fieldResult"in e)for(let o of e.fieldResult)h(o,t);a(e,o=>{o.type==="run"&&h(o,t);});}}function h(e,t){e.formatting&&x(e.formatting,t);}function ut(e,t){for(let o of e.children)o.type==="run"&&h(o,t);}function mt(e,t){for(let o of e.rows)pt(o,t);}function pt(e,t){for(let o of e.cells)gt(o,t);}function gt(e,t){for(let o of e.content)y(o,t);}function H(e,t){for(let o of e.content)y(o,t);}function ht(e,t){for(let o of e.content)y(o,t);}function xt(e,t){for(let o of e.content)y(o,t);}var Ft=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui"]);function N(e,t={}){let o=t.canRender??n,n$1=new Set;for(let i of t.exclude??[])n$1.add(i.trim().toLowerCase());let r=new Set;for(let i of t.embeddedFamilies??[])r.add(i.trim().toLowerCase());let s=[],a=new Set;for(let i of e){let c=i.trim(),f=c.toLowerCase();!c||Ft.has(f)||n$1.has(f)||a.has(f)||!r.has(f)&&!o(c)||(a.add(f),s.push({name:c,fontFamily:d(c).cssFallback,category:"other"}));}return s}function Tt(e,t={}){return N(L(e),t)}function yt(e,t){if(!e||e.length===0)return [];let o=new Set;for(let s of t)o.add(s.trim().toLowerCase());let n=new Set,r=[];for(let s of e){let a=s.name.trim().toLowerCase();o.has(a)||n.has(a)||(n.add(a),r.push(s));}return r}function bt(e){let t=[];return e.descendants((o,n)=>{if(o.type.name==="paragraph"){let r=o.attrs.outlineLevel,s=o.attrs.styleId,a=r;if(a==null&&s){let i=s.match(/^[Hh]eading(\d)$/);i&&(a=parseInt(i[1],10)-1);}if(a!=null&&a>=0&&a<=8){let i="";o.forEach(c=>{c.isText&&(i+=c.text||"");}),i.trim()&&t.push({text:i.trim(),level:a,pmPos:n});}}}),t}var k="rgba(255, 235, 59, 0.55)",Ct=1200,C="docx-paragraph-flash",E=new WeakMap;function At(e){let t=globalThis;return typeof t.CSS?.escape=="function"?t.CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function St(e){return e?.color?.trim()||k}function Et(e){let t=e?.durationMs;return t==null||!Number.isFinite(t)||t<0?1200:t}function W(e,t){if(!t||!t.trim())return [];let o=At(t);return Array.from(e.querySelectorAll(`.layout-paragraph[data-para-id="${o}"]`))}function B(e,t){let o=0,n=St(t),r=Et(t);for(let s of e){o++;let a=E.get(s);a!==void 0&&clearTimeout(a),s.classList.remove(C),s.offsetWidth,s.style.setProperty("--docx-paragraph-flash-color",n),s.style.setProperty("--docx-paragraph-flash-duration",`${r}ms`),s.classList.add(C);let i=setTimeout(()=>{s.classList.remove(C),s.style.removeProperty("--docx-paragraph-flash-color"),s.style.removeProperty("--docx-paragraph-flash-duration"),E.delete(s);},r);E.set(s,i);}return o}function wt(e,t,o){let n=W(e,t);return B(n,o)>0}function G(e,t,o){let n=0;for(let r=t;r<t+o&&r<e.length;r++)n+=e[r];return n}function Pt(e,t,o,n){let r=G(e,t,o),s=Math.floor(r/Math.max(n,1)),a=r-s*n,i=Array.from({length:n},(c,f)=>s+(f<a?1:0));return [...e.slice(0,t),...i,...e.slice(t+o)]}function Rt(e,t,o,n,r,s){let a=o-t.rowspan,i=n-t.colspan,c=r+a,f=t.row+t.rowspan,T=t.col+t.colspan,p=[];for(let l of e){if(l===t)continue;let g=l.row+l.rowspan,A=l.col+l.colspan,I=l.row<f&&g>t.row,M=l.col<T&&A>t.col;p.push({data:l.data,row:l.row>=f?l.row+a:l.row,col:l.col>=T?l.col+i:l.col,rowspan:l.rowspan+(a>0&&I&&!M?a:0),colspan:l.colspan+(i>0&&M&&!I?i:0)});}for(let l=0;l<o;l++)for(let g=0;g<n;g++){let A=l===0&&g===0;p.push({data:s(A,l,g),row:t.row+l,col:t.col+g,rowspan:1,colspan:1});}return {anchors:p,deltaRows:a,deltaCols:i,newRowCount:c}}function Dt(e){let t=new Map,o=new Map;for(let n of e){t.set(`${n.row}-${n.col}`,n);for(let r=n.row;r<n.row+n.rowspan;r++)for(let s=n.col;s<n.col+n.colspan;s++)o.set(`${r}-${s}`,n);}return {byStart:t,byCoveredSlot:o}}function vt(e,t){let o=e>1||t>1;return {minRows:e,minCols:t,initialRows:e,initialCols:o?t:t+1}}var It=/[\p{L}\p{N}\p{M}_''\-]/u,Mt=/\s/;function w(e){return !e||e.length===0?false:It.test(e)}function P(e){return !e||e.length===0?false:Mt.test(e)}function m(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(P(o)){let n=t,r=t;for(;n>0&&P(e[n-1]);)n--;for(;r<e.length&&P(e[r]);)r++;return [n,r]}if(w(o)){let n=t,r=t;for(;n>0&&w(e[n-1]);)n--;for(;r<e.length&&w(e[r]);)r++;return [n,r]}return [t,t+1]}function _t(e,t){let[o,n]=m(e,t);return e.slice(o,n)}function Ot(e,t){let[o,n]=m(e,t);return {word:e.slice(o,n),startIndex:o,endIndex:n}}function v(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let n=o.textContent||"",r=t.startOffset,[s,a]=m(n,r);if(a>s)return t.setStart(o,s),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let n=o,r=U(n);if(r.length>0){let s=t.startOffset,a=null,i=s;if(s<n.childNodes.length){let c=n.childNodes[s];if(c.nodeType===Node.TEXT_NODE)a=c,i=0;else if(c instanceof Element){let f=U(c);f.length>0&&(a=f[0],i=0);}}if(!a&&r.length>0&&(a=r[0],i=0),a){let c=a.textContent||"",[f,T]=m(c,i);if(T>f){let p=document.createRange();return p.setStart(a,f),p.setEnd(a,T),e.removeAllRanges(),e.addRange(p),true}}}}return false}function Ht(e,t){let o=window.getSelection();if(!o)return false;let n=e.textContent||"",[r,s]=m(n,t);if(s>r){let a=document.createRange();return a.setStart(e,r),a.setEnd(e,s),o.removeAllRanges(),o.addRange(a),true}return false}function Lt(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return v();let o=t.startContainer,n=t.endContainer,r=t.startOffset,s=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[i]=m(a,t.startOffset);r=i;}if(n.nodeType===Node.TEXT_NODE){let a=n.textContent||"",i=Math.max(0,t.endOffset-1),[,c]=m(a,i);s=c;}try{return t.setStart(o,r),t.setEnd(n,s),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function K(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,n=Nt(o);if(n){let r=document.createRange();return r.selectNodeContents(n),e.removeAllRanges(),e.addRange(r),true}return false}function Nt(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function U(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),n;for(;n=o.nextNode();)n.nodeType===Node.TEXT_NODE&&t.push(n);return t}var R=0,F=null,D=null,kt=500;function X(){R=0,D=null,F&&(clearTimeout(F),F=null);}function $(e){return e.target!==D&&X(),R++,D=e.target,F&&clearTimeout(F),F=setTimeout(X,kt),Math.min(R,3)}function Wt(){return e=>{e.ctrlKey||e.metaKey||e.altKey||v();}}function Bt(){return e=>{if($(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;K();}}}async function Gt(e){let t=e.target;if(!t||!t.files)return null;let o=t.files[0];return t.value="",o?{buffer:await o.arrayBuffer(),name:o.name.replace(/\.docx$/i,"")}:null}var z="(prefers-color-scheme: dark)";function j(){return typeof window<"u"&&typeof window.matchMedia=="function"}function Ut(){return j()?window.matchMedia(z).matches:false}function Xt(e,t){return e==="dark"||e==="system"&&t}function Kt(e){if(!j())return ()=>{};let t=window.matchMedia(z);e(t.matches);let o=n=>e(n.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}var $t=-1;function zt(){let e=1;return {next:()=>e++,seedAbove(t){t>=e&&(e=t+1);}}}function jt(e,t,o,n){return {id:e.next(),author:o,date:new Date().toISOString(),content:[{type:"paragraph",formatting:{},content:[{type:"run",formatting:{},content:[{type:"text",text:t}]}]}],...n!==void 0&&{parentId:n}}}var qt=/^[a-z][a-z0-9+.-]*:/i,Qt=/^(https?|mailto|tel|ftp):/i;function Vt(e){if(!e)return;let t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(t)return qt.test(t)?Qt.test(t)?e:void 0:e}export{k as DEFAULT_PARAGRAPH_FLASH_COLOR,Ct as DEFAULT_PARAGRAPH_FLASH_DURATION_MS,C as PARAGRAPH_FLASH_CLASS_NAME,$t as PENDING_COMMENT_ID,Dt as buildAnchorMaps,bt as collectHeadings,vt as computeSplitDialogDefaults,Rt as computeSplitLayout,jt as createComment,zt as createCommentIdAllocator,Wt as createDoubleClickWordSelector,Bt as createTripleClickParagraphSelector,yt as excludeFontsByName,Lt as expandSelectionToWordBoundaries,W as findParagraphFragmentsByParaId,Ot as findWordAt,m as findWordBoundaries,B as flashParagraphElements,wt as flashParagraphFragmentsByParaId,Tt as getRenderableDocumentFonts,_t as getWordAt,$ as handleClickForMultiClick,Ut as prefersColorSchemeDark,Gt as readDocxFileFromInput,Pt as redistributeColumnWidths,Xt as resolveIsDark,Vt as sanitizeHref,K as selectParagraphAtCursor,N as selectRenderableFonts,v as selectWordAtCursor,Ht as selectWordInTextNode,Kt as subscribeSystemDark,G as sumColumnWidths};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-
|
|
1
|
+
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-RNNTXPXC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'./chunk-HPZFJGGM.mjs';export{a as preloadOpcWasm,c as rezipContainer,b as unzipContainer}from'./chunk-AXFMDV66.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'./chunk-EUUIJVM6.mjs';export{e as createEditSession,b as editWasmModule,g as exportDocxMarkdownJson,f as exportDocxStructuredJson,j as findDocxContentControlsJson,i as listDocxContentControlsJson,a as preloadEditWasm,c as preloadEditWasmFrom,h as renderDocxMarkdownJson,k as renderDocxMarkdownWithPagesJson,d as setEditWasmHeapLimit}from'./chunk-4PRCO6EC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-edit.d.mts
CHANGED
|
@@ -72,6 +72,11 @@ declare class EditSession {
|
|
|
72
72
|
* `"separate"` makes it exactly one undo step.
|
|
73
73
|
*/
|
|
74
74
|
apply_edits_json(request: string): string;
|
|
75
|
+
/**
|
|
76
|
+
* Applies an update another replica of this document committed for a host batch.
|
|
77
|
+
* It commits outside undo history and notifies as a local change.
|
|
78
|
+
*/
|
|
79
|
+
apply_host_update(update: Uint8Array): void;
|
|
75
80
|
/**
|
|
76
81
|
* Applies one ordinary insertion at this session's collapsed selection
|
|
77
82
|
* and returns the resulting binary `FrameDelta`. The inserted text
|
|
@@ -288,6 +293,10 @@ declare class EditSession {
|
|
|
288
293
|
* has `deletedTable: true`.
|
|
289
294
|
*/
|
|
290
295
|
delete_table(table_json: string): string;
|
|
296
|
+
/**
|
|
297
|
+
* The number of text batches applied directly to the live document.
|
|
298
|
+
*/
|
|
299
|
+
direct_batches_applied(): number;
|
|
291
300
|
/**
|
|
292
301
|
* Region-aware hit test against the resident display list, so no
|
|
293
302
|
* display-list JSON crosses the boundary. `x`/`y` are page-local px.
|
|
@@ -450,6 +459,7 @@ declare class EditSession {
|
|
|
450
459
|
* Returns `{"ok":true,"version"}` or a refusal.
|
|
451
460
|
*/
|
|
452
461
|
format_text_target_json(target_json: string, delta_json: string): string;
|
|
462
|
+
geometry_position_outline_json(root: string): string;
|
|
453
463
|
/**
|
|
454
464
|
* Whether the document has a story with this id.
|
|
455
465
|
*/
|
|
@@ -695,6 +705,11 @@ declare class EditSession {
|
|
|
695
705
|
* Errors when the glyph cannot be extracted.
|
|
696
706
|
*/
|
|
697
707
|
outline_glyph_json(font_id: number, glyph_id: number): string;
|
|
708
|
+
/**
|
|
709
|
+
* How many paragraphs of `story` carry `para_id`: 0, 1, or 2 for two or
|
|
710
|
+
* more. Errors on an unknown story.
|
|
711
|
+
*/
|
|
712
|
+
paragraph_id_count(story: string, para_id: string): number;
|
|
698
713
|
/**
|
|
699
714
|
* Every paragraph's identities: `{"sessionId","packageSha256",
|
|
700
715
|
* "paragraphs":[{"session","origin","ooxmlParaId","idOrigin",
|
|
@@ -706,7 +721,10 @@ declare class EditSession {
|
|
|
706
721
|
/**
|
|
707
722
|
* The paragraph IDs a save applies, as the package writer's
|
|
708
723
|
* `paragraphIds` request field: `{"assignments":[{"part","ordinal",
|
|
709
|
-
* "paraId"}],"patchedParts":[{"part","paraIds":[[ordinal,"ID"]]}]}
|
|
724
|
+
* "paraId"}],"patchedParts":[{"part","paraIds":[[ordinal,"ID"]]}]}`,
|
|
725
|
+
* plus `"splicedParts":[{"part","sha256","paragraphs":[[ordinal,"key"]],
|
|
726
|
+
* "changed":[ordinal]}]`, whose session keys the caller resolves to the
|
|
727
|
+
* model paragraphs it marks with their ordinals.
|
|
710
728
|
*/
|
|
711
729
|
paragraph_save_plan(): string;
|
|
712
730
|
/**
|
|
@@ -733,6 +751,7 @@ declare class EditSession {
|
|
|
733
751
|
* when nothing was changed.
|
|
734
752
|
*/
|
|
735
753
|
persist_paragraph_ids(): string;
|
|
754
|
+
proposal_revision_ranges_json(ids_json: string): string;
|
|
736
755
|
/**
|
|
737
756
|
* Versioned paragraph texts:
|
|
738
757
|
* `{"story"?,"paraIds"?,"view":"accepted"|"original"}` ->
|
|
@@ -775,6 +794,10 @@ declare class EditSession {
|
|
|
775
794
|
* receipt and error contract.
|
|
776
795
|
*/
|
|
777
796
|
reject_change(target_json: string): string;
|
|
797
|
+
/**
|
|
798
|
+
* Release display pages; an empty result means the request was superseded.
|
|
799
|
+
*/
|
|
800
|
+
release_display_pages_frame(pages: Uint32Array, expected_frame_epoch: number): Uint8Array;
|
|
778
801
|
/**
|
|
779
802
|
* Replaces `[start, end)` with `text` in one transaction. The inserted
|
|
780
803
|
* text adopts the first replaced unit's formatting; in suggesting mode
|
|
@@ -841,6 +864,10 @@ declare class EditSession {
|
|
|
841
864
|
* fallback after a retained-only region layout.
|
|
842
865
|
*/
|
|
843
866
|
retained_kernel_inputs_json(): string;
|
|
867
|
+
/**
|
|
868
|
+
* Author and date stamps for the requested revision ids.
|
|
869
|
+
*/
|
|
870
|
+
revision_stamps_json(ids_json: string): string;
|
|
844
871
|
search_text(query: string, case_sensitive: boolean, limit?: number | null): string;
|
|
845
872
|
/**
|
|
846
873
|
* [`EditSession::open_docx`] with seeding always on.
|
|
@@ -947,6 +974,10 @@ declare class EditSession {
|
|
|
947
974
|
* position holds no embed.
|
|
948
975
|
*/
|
|
949
976
|
set_content_control_value_at(story: string, para_id: string, offset: number, value_json: string): void;
|
|
977
|
+
/**
|
|
978
|
+
* Apply admitted paragraph-local text batches directly. Off by default.
|
|
979
|
+
*/
|
|
980
|
+
set_direct_batches(enabled: boolean): void;
|
|
950
981
|
/**
|
|
951
982
|
* Keep every previously built page while windowed builds are on.
|
|
952
983
|
*/
|
|
@@ -981,6 +1012,10 @@ declare class EditSession {
|
|
|
981
1012
|
* Errors when that position holds no image.
|
|
982
1013
|
*/
|
|
983
1014
|
set_image_geometry_at(story: string, para_id: string, offset: number, geometry_json: string): void;
|
|
1015
|
+
/**
|
|
1016
|
+
* Let an eligible resident text edit re-lower only its paragraph. Off by default.
|
|
1017
|
+
*/
|
|
1018
|
+
set_local_lowering(enabled: boolean): void;
|
|
984
1019
|
/**
|
|
985
1020
|
* Whether [`EditSession::open_docx`] seeds images as `media:{n}` tokens,
|
|
986
1021
|
* which only a replica opened from the same package resolves, instead of
|
|
@@ -1211,6 +1246,10 @@ declare class EditSession {
|
|
|
1211
1246
|
|
|
1212
1247
|
/** Load + instantiate the editing-core wasm (browser path). Idempotent. */
|
|
1213
1248
|
declare function preloadEditWasm(input?: WasmAsyncInput): Promise<void>;
|
|
1249
|
+
/** @internal */
|
|
1250
|
+
declare function editWasmModule(): Promise<WebAssembly.Module | null>;
|
|
1251
|
+
/** @internal */
|
|
1252
|
+
declare function preloadEditWasmFrom(source: Promise<WebAssembly.Module | null>): Promise<void>;
|
|
1214
1253
|
/**
|
|
1215
1254
|
* Caps the bytes the editing core in this thread may allocate at once; an
|
|
1216
1255
|
* allocation past the cap fails as if the memory were full. Undefined removes it.
|
|
@@ -1235,4 +1274,4 @@ declare function findDocxContentControlsJson(bytes: Uint8Array, query: string, o
|
|
|
1235
1274
|
/** Markdown rendering of a paged export's JSON, with optional page markers. */
|
|
1236
1275
|
declare function renderDocxMarkdownWithPagesJson(content: string, options: string): string;
|
|
1237
1276
|
|
|
1238
|
-
export { EditSession, createEditSession, exportDocxMarkdownJson, exportDocxStructuredJson, findDocxContentControlsJson, listDocxContentControlsJson, preloadEditWasm, renderDocxMarkdownJson, renderDocxMarkdownWithPagesJson, setEditWasmHeapLimit };
|
|
1277
|
+
export { EditSession, createEditSession, editWasmModule, exportDocxMarkdownJson, exportDocxStructuredJson, findDocxContentControlsJson, listDocxContentControlsJson, preloadEditWasm, preloadEditWasmFrom, renderDocxMarkdownJson, renderDocxMarkdownWithPagesJson, setEditWasmHeapLimit };
|
package/dist/wasm-edit.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{e as createEditSession,b as editWasmModule,g as exportDocxMarkdownJson,f as exportDocxStructuredJson,j as findDocxContentControlsJson,i as listDocxContentControlsJson,a as preloadEditWasm,c as preloadEditWasmFrom,h as renderDocxMarkdownJson,k as renderDocxMarkdownWithPagesJson,d as setEditWasmHeapLimit}from'./chunk-4PRCO6EC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-layout.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-
|
|
1
|
+
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-RNNTXPXC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-opc.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as preloadOpcWasm,c as rezipContainer,b as unzipContainer}from'./chunk-
|
|
1
|
+
export{a as preloadOpcWasm,c as rezipContainer,b as unzipContainer}from'./chunk-AXFMDV66.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-parse.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{h as decodeTiffImage,b as parseDocxS9Wire,c as parseRelationshipsXmlWire,a as preloadParseWasm,d as serializeDocxS10Wire,e as serializeDocxS11Wire,f as serializeDocxS12Wire,g as writeDocxS13Wire}from'./chunk-
|
|
1
|
+
export{h as decodeTiffImage,b as parseDocxS9Wire,c as parseRelationshipsXmlWire,a as preloadParseWasm,d as serializeDocxS10Wire,e as serializeDocxS11Wire,f as serializeDocxS12Wire,g as writeDocxS13Wire}from'./chunk-GKWXOZZH.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/yrs/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import '../formatting-gqLFeJ9X.mjs';
|
|
2
2
|
import '../types/document.mjs';
|
|
3
|
-
export {
|
|
4
|
-
export { o as DocxAnchor, p as DocxAnchorScope,
|
|
3
|
+
export { A as AnchorGeometryTarget, x as AnchorReader, y as AnchorResolutionFailure, z as CreateYrsSessionOptions, D as DocxOccurrence, B as DocxParagraphAnchor, E as DocxParagraphAnchorResult, F as DocxParagraphIdAssignment, G as DocxParagraphIdDiagnostic, H as DocxParagraphIdOrigin, I as DocxParagraphIdRefusal, J as DocxParagraphIdentity, K as DocxParagraphIdentityReceipt, L as DocxParagraphIdentitySnapshot, M as DocxParagraphOrigin, N as DocxParagraphRef, O as DocxParagraphSavePlan, P as DocxPersistedParagraphAnchor, Q as DocxProposalFailure, R as DocxProposalInput, S as DocxProposalRecord, T as DocxProposalRegistryState, U as DocxProposalRequest, V as DocxProposalResult, W as DocxProposalSnapshot, X as DocxProposalState, Z as DocxProposalStateRequest, _ as DocxProposalWithdrawRequest, $ as DocxSavedDocument, a0 as DocxSavedParagraph, a1 as DocxSessionParagraphAnchor, a2 as DocxSessionSave, a3 as DocxSourceParagraphAnchor, a4 as DocxSourceStory, a5 as ProposalDisplayTarget, a6 as ProposalGeometryMirror, a7 as ProposalGeometryReader, a8 as ProposalGeometryRevision, a9 as ProposalGeometryTarget, aa as RawAnchorRange, ab as ResidentCaretPaintStyle, ac as ResidentEngineOffscreenPage, ad as ResidentEngineWorkerApplyResult, ae as ResidentEngineWorkerClient, af as ResidentEngineWorkerFrame, ag as ResidentEngineWorkerOpened, ah as ResidentProposalReply, ai as ResidentWorkerFailureError, aj as ResidentWorkerOutOfMemoryError, ak as YrsAuthor, al as YrsCellBorder, am as YrsCellBorders, an as YrsCellLoc, ao as YrsChangeTarget, ap as YrsCommentInfo, aq as YrsCommentReceipt, ar as YrsContentControlValue, as as YrsDocxHost, at as YrsEngineApplyProfile, au as YrsHyperlinkAttrs, av as YrsImageGeometry, aw as YrsInlineFormatDelta, ax as YrsInputParagraphSeed, ay as YrsInputParagraphSpan, az as YrsInputPositionMap, u as YrsLoc, aA as YrsLocProjection, aB as YrsMediaSource, aC as YrsNumberingProperties, aD as YrsOpeningOptions, aE as YrsParaOffset, aF as YrsParagraph, aG as YrsParagraphAttrs, aH as YrsParagraphLength, aI as YrsParagraphReceipt, aJ as YrsParagraphSeed, aK as YrsParagraphSpan, aL as YrsParagraphTabStop, aM as YrsPointerProjectionTarget, aN as YrsPositionOutline, aO as YrsPositionProjection, aP as YrsProjectedCell, aQ as YrsProjectedNode, aR as YrsProjectedTable, aS as YrsRawOp, aT as YrsRegionLayoutProgress, a as YrsRenderEnv, aU as YrsReplaceReceipt, aV as YrsResidentCaretRect, aW as YrsResidentCaretSnapshot, aX as YrsResidentFontRegistration, aY as YrsResidentWorkerSnapshot, aZ as YrsResidentWorkerSyncOptions, a_ as YrsResolveReceipt, a$ as YrsResolvedCommentAnchor, w as YrsRevisionInfo, b0 as YrsRevisionReceipt, b1 as YrsRunMark, j as YrsSelection, b2 as YrsSelectionContext, b3 as YrsSelectionText, Y as YrsSession, b4 as YrsSplitReceipt, b5 as YrsStickyPosition, b6 as YrsStoryRange, b7 as YrsStorySeed, v as YrsStorySegment, b8 as YrsStorySegmentSource, b9 as YrsTableLoc, ba as YrsTableRange, bb as YrsTableReceipt, bc as YrsTargetEditResult, bd as YrsTextColor, be as YrsTextMatch, bf as YrsTextSearchOptions, bg as YrsTriState, bh as YrsUndoCaptureMode, bi as YrsWatermark, bj as YrsWorkerDocumentMirror, bk as anchorFailure, bl as canUseResidentEngineWorker, bm as captureSessionSave, bn as compareYrsLocs, bo as computeProposalGeometryMirror, bp as createYrsInputPositionMap, bq as createYrsLocProjectionFromOutline, br as createYrsPositionProjection, bs as createYrsSession, bt as decodeDocxHostJson, bu as displayPositionToYrsLoc, bv as documentToYrs, bw as editorSaveKeys, bx as hiddenRanges, by as isBodyStory, bz as ownProjectedParagraphs, bA as preloadDocxEngine, bB as preloadResidentEngineWorker, bC as prepareDocxBytes, bD as preparedDocxDigest, bE as projectYrsDisplayPosition, bF as proposalRevisionPreview, bG as proposalSetIdentity, bH as residentCaretDeviceRect, bI as residentCaretSnapshotForFrame, bJ as resolveAnchorTarget, bK as resolveMirroredNavigationTarget, bL as resolveNavigationTarget, bM as retainPreloadedResidentEngineWorker, bN as sameYrsSelection, bO as saveYrsDocx, bP as sessionSourcePackage, bQ as takePreloadedResidentEngineWorker, bR as textRangeToRaw, bS as writeSessionSave, bT as yrsLocToDisplayPosition, bU as yrsLocToProjectedDisplayPosition, bV as yrsToDocument } from '../index-DzZVJC8-.mjs';
|
|
4
|
+
export { o as DocxAnchor, p as DocxAnchorScope, ad as DocxAtomKind, q as DocxCachedResult, r as DocxCommentMetadata, s as DocxContentControl, t as DocxContentControlDiagnostic, l as DocxContentControlQuery, k as DocxContentControlReadFailure, u as DocxContentControlSelector, v as DocxContentControlValue, m as DocxContentControlsOptions, w as DocxContentControlsResult, n as DocxContentControlsSnapshot, x as DocxControlMetadata, a1 as DocxEditFailure, a2 as DocxEditFailureCode, ae as DocxEditFailureReason, af as DocxEditGuard, ag as DocxEditHistory, ah as DocxEditOperation, ai as DocxEditPreview, aj as DocxEditReceipt, ac as DocxEditRefusal, a8 as DocxEditRequest, aa as DocxEditResult, ak as DocxEditSource, al as DocxEditStep, a0 as DocxEditSuggestion, am as DocxEditTarget, y as DocxExportBlock, z as DocxExportCell, A as DocxExportDiagnostic, B as DocxExportDiagnosticCode, D as DocxExportFailure, C as DocxExportFailureCode, E as DocxExportInline, a as DocxExportOptions, F as DocxExportPage, G as DocxExportRefusal, H as DocxExportResult, I as DocxExportStory, J as DocxExportTable, a6 as DocxFindTextRequest, a7 as DocxFindTextResult, K as DocxFormattingMark, L as DocxFragmentGeometry, M as DocxHeadingInfo, N as DocxHeadlessFont, e as DocxHeadlessLayoutOptions, O as DocxInlineRevision, i as DocxLayoutMap, P as DocxLayoutProvenance, Q as DocxListInfo, b as DocxMarkdownContent, h as DocxMarkdownOptions, R as DocxPageDiagnostic, d as DocxPageExportOptions, S as DocxPageFragment, T as DocxPageMapContent, j as DocxPageMarkdownOptions, f as DocxPagedStructuredContent, U as DocxParagraphData, V as DocxParagraphHeading, an as DocxParagraphInput, ao as DocxParagraphTarget, ap as DocxParagraphText, a4 as DocxReadParagraphsRequest, a5 as DocxReadParagraphsResult, aq as DocxResolvedControl, W as DocxRevisionView, ar as DocxSearchScope, as as DocxSetContentControlTextStep, g as DocxSnapshotLayoutMap, X as DocxSnapshotLayoutProvenance, Y as DocxStoryKind, Z as DocxStoryOccurrence, _ as DocxStorySelection, c as DocxStructuredContent, at as DocxTextAtom, au as DocxTextMatch, av as DocxTextPosition, a3 as DocxTextRange, ab as DocxTextTarget, aw as DocxTextView, $ as DocxUnlocatedReason, a9 as DocxValidationResult, ax as EditSuccess, ay as OperationFailure, az as OperationRefusal, aA as ValidationSuccess } from '../pagedExport-BmSlEhoP.mjs';
|
|
5
5
|
export { b as WASM32_MEMORY_LIMIT_BYTES, c as WasmHeapStats, a as WasmModuleMemory, w as wasmModuleMemories } from '../loadWasmAsset-Cr95TImt.mjs';
|
|
6
|
-
import '../content-
|
|
6
|
+
import '../content-DSb-6a9T.mjs';
|
|
7
7
|
import '../docx/wrapTypes.mjs';
|
|
8
8
|
import '../styles-AryxLAhx.mjs';
|
|
9
|
-
import '../frameDelta-
|
|
9
|
+
import '../frameDelta-CLeO7K5z.mjs';
|
|
10
|
+
import '../plugin-api/index.mjs';
|
|
10
11
|
import '../rezip-Bxiq4Z_R.mjs';
|