@docx-editor.dev/core 2.19.1 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -32
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +11 -9
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +9 -10
- package/dist/binding.js +1 -1
- package/dist/chunk-44LQJIKH.cjs +20 -0
- package/dist/chunk-4EHMMSFR.cjs +1 -0
- package/dist/chunk-AFG7Q622.cjs +2 -0
- package/dist/chunk-AJCCS53D.js +1 -0
- package/dist/chunk-AYMSP25Q.js +4 -0
- package/dist/{chunk-GWW5FOLJ.cjs → chunk-B4KZSKF7.cjs} +5 -5
- package/dist/chunk-BDAY2ETZ.js +1 -0
- package/dist/chunk-BNZF6DYC.cjs +18 -0
- package/dist/chunk-BQXF2PFF.js +2 -0
- package/dist/chunk-GIHKVXEO.js +2 -0
- package/dist/chunk-ITNK6C5M.cjs +3 -0
- package/dist/chunk-MP3K4LC5.js +1 -0
- package/dist/chunk-MXOO7KRI.cjs +11 -0
- package/dist/chunk-NG6IQ4SI.js +11 -0
- package/dist/{chunk-NIVIC7PA.cjs → chunk-PYXMAUNR.cjs} +1 -1
- package/dist/chunk-Q2B6HX3R.js +1 -0
- package/dist/chunk-Q5JPPUNR.js +5 -0
- package/dist/chunk-S35UK656.cjs +2 -0
- package/dist/chunk-S6J4O5XP.js +1 -0
- package/dist/chunk-TE43S3LX.cjs +1 -0
- package/dist/chunk-TKQH7BNE.cjs +1 -0
- package/dist/chunk-UKVVUHZL.cjs +1 -0
- package/dist/chunk-VH2DLEZK.js +20 -0
- package/dist/{chunk-BUNY5MRX.js → chunk-VUNFWXHF.js} +1 -1
- package/dist/{chunk-JWHXOJEU.cjs → chunk-WQFNWLNY.cjs} +3 -3
- package/dist/chunk-WZX4UGRQ.js +3 -0
- package/dist/{chunk-2QU7QTM7.js → chunk-X5QNSISI.js} +1 -1
- package/dist/chunk-XS4FOHH6.js +18 -0
- package/dist/{chunk-7VO6BLKV.cjs → chunk-XZY4Q6PJ.cjs} +1 -1
- package/dist/{chunk-76F73CY6.cjs → chunk-Z2ETEZRU.cjs} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +13 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +4 -3
- package/dist/contracts/document.d.ts +3 -2
- package/dist/contracts/editor.cjs +1 -1
- package/dist/contracts/editor.d.ts +9 -10
- package/dist/contracts/editor.js +1 -1
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.ts +9 -9
- package/dist/contracts/modules.js +1 -1
- package/dist/contracts/types.d.ts +2 -562
- package/dist/{custom-node-writes-BqIv94ei.d.ts → custom-node-writes-05qS32px.d.ts} +2 -2
- package/dist/{document-protection-BL5zp8cU.d.ts → document-protection-Cr59VKLO.d.ts} +1 -1
- package/dist/{editor-WXbTSXx1.d.ts → editor-BsLSz_7y.d.ts} +43 -39
- package/dist/editor-scope-OHPwVQ5l.d.ts +84 -0
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.d.ts +130 -29
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +13 -14
- package/dist/export.js +1 -1
- package/dist/{font-resolver-BSrKnTeR.d.ts → font-resolver-CzwdBJDE.d.ts} +1 -1
- package/dist/{headless-document-view-C4ttQJ5H.d.ts → headless-document-view-B7nAiR7P.d.ts} +2 -2
- package/dist/image-resources-C4ilLzog.d.ts +210 -0
- package/dist/{index-C3As-Xxp.d.ts → index-zkvqBQ9o.d.ts} +117 -27
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -19
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-Dqu3JW3p.d.ts → layout-shaping-BJKVTI6i.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +72 -20
- package/dist/layout.js +1 -1
- package/dist/{note-properties-RjYgbmXe.d.ts → note-properties-MNztEj5s.d.ts} +2 -2
- package/dist/{omml-equation-hcP9AUFX.d.ts → omml-equation-CbnW9yXd.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +8 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-OdRd17KZ.d.ts → protocol-Co_r0SZQ.d.ts} +14 -4
- package/dist/{review-paragraph-order--jLHXIcd.d.ts → review-paragraph-order-EFaU7TqH.d.ts} +2 -3
- package/dist/{revision-projection-BIHO_qvw.d.ts → revision-projection-DEIvpxiq.d.ts} +16 -2
- package/dist/{semantic-cell-selection-lCYAVCCF.d.ts → semantic-cell-selection-DXmfnDCw.d.ts} +9 -4
- package/dist/{semantic-interaction-0vQXcMZk.d.ts → semantic-interaction-BLu3M6Nn.d.ts} +1 -1
- package/dist/{semantic-paint-BSan4pBk.d.ts → semantic-paint-CPsihA6k.d.ts} +18 -2
- package/dist/{semantic-records-ZcYuB4-H.d.ts → semantic-records-CqD0b5Ex.d.ts} +147 -6
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +462 -428
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-1pdDnhZ_.d.ts → tree-package-fragment-CwJDixNs.d.ts} +44 -3
- package/dist/{tree-session-contract-Cgn6fQ-M.d.ts → tree-session-contract-D9RRWE0C.d.ts} +8 -8
- package/dist/{tree-op-types-DbdM7fJV.d.ts → types-barrel-DLB11iSY.d.ts} +1455 -660
- package/package.json +2 -2
- package/dist/chunk-3JKOZBQ3.cjs +0 -1
- package/dist/chunk-3SU7UWCR.js +0 -1
- package/dist/chunk-5BI4SIHO.cjs +0 -1
- package/dist/chunk-6ESSCMXL.js +0 -2
- package/dist/chunk-6W4DIR4X.cjs +0 -2
- package/dist/chunk-AKQRKR2H.js +0 -1
- package/dist/chunk-BJQDNKEX.js +0 -5
- package/dist/chunk-D5EHDHYV.js +0 -1
- package/dist/chunk-FBWBSHC4.cjs +0 -11
- package/dist/chunk-GOEBQ26R.js +0 -1
- package/dist/chunk-IA7WTZHI.js +0 -11
- package/dist/chunk-IXGUCLER.js +0 -20
- package/dist/chunk-NDPLQG4Y.cjs +0 -18
- package/dist/chunk-NLGUL6QL.js +0 -3
- package/dist/chunk-OHJQ7GPZ.cjs +0 -1
- package/dist/chunk-OWUSDS3L.cjs +0 -20
- package/dist/chunk-RDKPMNN6.cjs +0 -2
- package/dist/chunk-TSDGKNV7.js +0 -2
- package/dist/chunk-TUCDPXBD.js +0 -18
- package/dist/chunk-UOE4WKL7.js +0 -1
- package/dist/chunk-VSCPFHTD.cjs +0 -3
- package/dist/chunk-ZKWRCLT2.cjs +0 -1
- package/dist/chunk-ZUGTEKLM.js +0 -4
- package/dist/editor-scope-DZJT4ukT.d.ts +0 -53
- package/dist/review-items-CJz-kAW8.d.ts +0 -370
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { a4 as DrawingProjection, j as OoxmlPackage } from './types-barrel-DLB11iSY.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The engine's trust-boundary caps: recursion depth, element counts, and the rest.
|
|
5
|
+
*
|
|
6
|
+
* A caller may LOWER any of these but never raise or disable one — an override of `Infinity`,
|
|
7
|
+
* zero, a negative or `NaN` clamps into `(0, ceiling]` rather than turning the limit off. These
|
|
8
|
+
* are security ceilings, not performance budgets.
|
|
9
|
+
*/
|
|
10
|
+
interface ResourceLimits {
|
|
11
|
+
/** Max nested-structure recursion (tables/shapes/SDT/groups). */
|
|
12
|
+
readonly maxRecursionDepth: number;
|
|
13
|
+
/** Max total parsed element count. */
|
|
14
|
+
readonly maxElementCount: number;
|
|
15
|
+
/** Max package part count. */
|
|
16
|
+
readonly maxPartCount: number;
|
|
17
|
+
/** Max total decompressed bytes (zip-bomb guard). */
|
|
18
|
+
readonly maxDecompressedBytes: number;
|
|
19
|
+
/** Max total compressed input bytes. */
|
|
20
|
+
readonly maxCompressedBytes: number;
|
|
21
|
+
/** Max decompressed:compressed ratio per entry. */
|
|
22
|
+
readonly maxCompressionRatio: number;
|
|
23
|
+
/** In-memory chunk budget for streaming/spooling. */
|
|
24
|
+
readonly maxChunkBytes: number;
|
|
25
|
+
/** Max pagination passes before non-convergence is declared. */
|
|
26
|
+
readonly maxPaginationPasses: number;
|
|
27
|
+
/** Max queued items in any bounded work queue. */
|
|
28
|
+
readonly maxQueueDepth: number;
|
|
29
|
+
}
|
|
30
|
+
/** Non-disableable hard ceilings: no resolved limit may exceed these. */
|
|
31
|
+
declare const HARD_CEILINGS: ResourceLimits;
|
|
32
|
+
/** Finite defaults, all <= their hard ceiling. */
|
|
33
|
+
declare const DEFAULT_LIMITS: ResourceLimits;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve caller overrides into a frozen, always-finite limit set. Each value is
|
|
36
|
+
* `min(override>0 ? override : default, ceiling)`. Infinity/0/negative/NaN can
|
|
37
|
+
* never disable a limit — the hard ceiling always wins.
|
|
38
|
+
*/
|
|
39
|
+
declare function resolveLimits(overrides?: Partial<ResourceLimits>): ResourceLimits;
|
|
40
|
+
/** Bounded image decode limits (typed-drawings-and-images task 4). */
|
|
41
|
+
/** Trust-boundary caps specific to image decoding and embedding. */
|
|
42
|
+
interface ImageResourceLimits {
|
|
43
|
+
readonly maxEncodedBytes: number;
|
|
44
|
+
readonly maxDecodedBytes: number;
|
|
45
|
+
readonly maxPixels: number;
|
|
46
|
+
readonly maxDimension: number;
|
|
47
|
+
readonly maxPolygonPoints: number;
|
|
48
|
+
readonly maxExternalRedirects: number;
|
|
49
|
+
}
|
|
50
|
+
/** Image caps nothing can raise past. A caller's override clamps into these. */
|
|
51
|
+
declare const IMAGE_RESOURCE_HARD_CEILINGS: ImageResourceLimits;
|
|
52
|
+
/** The image caps in force when a host configures none. Conservative and finite. */
|
|
53
|
+
declare const DEFAULT_IMAGE_RESOURCE_LIMITS: ImageResourceLimits;
|
|
54
|
+
/** Resolve caller overrides into frozen image limits; hard ceilings cannot be raised. */
|
|
55
|
+
declare function resolveImageResourceLimits(overrides?: Partial<ImageResourceLimits>): ImageResourceLimits;
|
|
56
|
+
|
|
57
|
+
/** Opaque handle — bytes are reachable only through {@link mintValidatedImageBytes}. */
|
|
58
|
+
interface ValidatedImageBytesHandle {
|
|
59
|
+
readonly registryId: number;
|
|
60
|
+
readonly resourceKey: string;
|
|
61
|
+
readonly contentId: string;
|
|
62
|
+
readonly generation: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Raster media the decode port measures and any authoring path may write.
|
|
67
|
+
*
|
|
68
|
+
* BMP and WebP are here for the same reason the other three are: an `<img>` decodes them
|
|
69
|
+
* natively, so they need a signature and a structural header and nothing else. BMP is what
|
|
70
|
+
* older documents carry; WebP is what current Word writes.
|
|
71
|
+
*/
|
|
72
|
+
type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/bmp' | 'image/webp';
|
|
73
|
+
/**
|
|
74
|
+
* Vector media painted straight from validated bytes. An `<img>` renders SVG in the
|
|
75
|
+
* browser's secure static mode — no script, no external subresource loads — so there is
|
|
76
|
+
* no decode step and no raster buffer sized by a file-supplied number.
|
|
77
|
+
*/
|
|
78
|
+
type VectorImageMime = 'image/svg+xml';
|
|
79
|
+
/** Every mime the painter can hand to an `<img>`. */
|
|
80
|
+
type RenderableImageMime = SupportedImageMime | VectorImageMime;
|
|
81
|
+
/**
|
|
82
|
+
* Media kept in the package byte-for-byte that the painter cannot hand to an `<img>`.
|
|
83
|
+
* A decode port may rasterize it; without one it paints as a labelled placeholder.
|
|
84
|
+
*/
|
|
85
|
+
type PreservedImageMime = 'image/tiff' | 'image/x-emf' | 'image/x-wmf';
|
|
86
|
+
/**
|
|
87
|
+
* What is known about one embedded image: validated, refused, or still decoding.
|
|
88
|
+
*
|
|
89
|
+
* Content type is a CLAIM. Signature sniffing, structural header validation and the decode port
|
|
90
|
+
* are authoritative, and bytes that fail them never enter public state.
|
|
91
|
+
*/
|
|
92
|
+
type ImageResourceState = {
|
|
93
|
+
readonly kind: 'ready';
|
|
94
|
+
readonly partName: string;
|
|
95
|
+
readonly contentId: string;
|
|
96
|
+
readonly resourceKey: string;
|
|
97
|
+
readonly validatedHandle: ValidatedImageBytesHandle;
|
|
98
|
+
readonly mime: RenderableImageMime;
|
|
99
|
+
readonly pixelWidth: number;
|
|
100
|
+
readonly pixelHeight: number;
|
|
101
|
+
readonly dpiX: number;
|
|
102
|
+
readonly dpiY: number;
|
|
103
|
+
} | {
|
|
104
|
+
readonly kind: 'unrenderable';
|
|
105
|
+
readonly partName: string | null;
|
|
106
|
+
readonly mime: RenderableImageMime | PreservedImageMime | 'unknown';
|
|
107
|
+
readonly reason: 'unsupported-format' | 'non-picture-graphic' | 'signature-mismatch' | 'decode-failed' | 'resource-limit';
|
|
108
|
+
} | {
|
|
109
|
+
readonly kind: 'external';
|
|
110
|
+
readonly relationshipId: string;
|
|
111
|
+
readonly sinkSafe: boolean;
|
|
112
|
+
} | {
|
|
113
|
+
readonly kind: 'missing';
|
|
114
|
+
readonly relationshipId: string;
|
|
115
|
+
} | {
|
|
116
|
+
readonly kind: 'pending';
|
|
117
|
+
readonly resourceKey: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* The injected image decoder.
|
|
121
|
+
*
|
|
122
|
+
* A port rather than a direct `Image`/`createImageBitmap` call, so a worker or server runtime
|
|
123
|
+
* supplies its own and the engine never reaches for a browser global.
|
|
124
|
+
*/
|
|
125
|
+
interface ImageDecodePort {
|
|
126
|
+
decode(bytes: Uint8Array, mime: SupportedImageMime, limits: ImageResourceLimits,
|
|
127
|
+
/** Aborted when the owning lookup/session is disposed. */
|
|
128
|
+
signal?: AbortSignal): Promise<Readonly<{
|
|
129
|
+
pixelWidth: number;
|
|
130
|
+
pixelHeight: number;
|
|
131
|
+
dpiX: number;
|
|
132
|
+
dpiY: number;
|
|
133
|
+
}>>;
|
|
134
|
+
/**
|
|
135
|
+
* Optional conversion of media an `<img>` cannot render (EMF/WMF metafiles, TIFF) into a
|
|
136
|
+
* renderable raster. The returned bytes are untrusted and re-enter the full raster
|
|
137
|
+
* validation path (sniff, header, pixel caps, decode) before they can become a ready
|
|
138
|
+
* resource. A null return declines the format and keeps the labelled placeholder; so does
|
|
139
|
+
* a throw, as `decode-failed`.
|
|
140
|
+
*/
|
|
141
|
+
convertPreserved?(bytes: Uint8Array, mime: PreservedImageMime, limits: ImageResourceLimits,
|
|
142
|
+
/** Aborted when the owning lookup/session is disposed. */
|
|
143
|
+
signal?: AbortSignal): Promise<Readonly<{
|
|
144
|
+
bytes: Uint8Array;
|
|
145
|
+
mime: SupportedImageMime;
|
|
146
|
+
}> | null>;
|
|
147
|
+
}
|
|
148
|
+
/** Resolves a relationship id to a validated image resource, or reports why it could not. */
|
|
149
|
+
interface ImageResourceLookup {
|
|
150
|
+
readonly resolveEmbedded: (ownerPartName: string, relationshipId: string) => Promise<ImageResourceState>;
|
|
151
|
+
readonly resolveLinked: (ownerPartName: string, relationshipId: string) => ImageResourceState;
|
|
152
|
+
readonly resolveForProjection: (projection: DrawingProjection) => Promise<ImageResourceState>;
|
|
153
|
+
readonly liveReferenceCount: (partName: string) => number;
|
|
154
|
+
readonly dispose: () => void;
|
|
155
|
+
}
|
|
156
|
+
/** Maximum prefix inspected for SVG root detection (exported for bounded-scan tests). */
|
|
157
|
+
declare const MAX_SVG_SNIFF_BYTES = 512;
|
|
158
|
+
/** A raster header that passed structural validation: its real MIME type and pixel extent. */
|
|
159
|
+
interface ValidatedRasterHeader {
|
|
160
|
+
readonly pixelWidth: number;
|
|
161
|
+
readonly pixelHeight: number;
|
|
162
|
+
/** Horizontal physical density when bounded header metadata supplies it. */
|
|
163
|
+
readonly dpiX?: number;
|
|
164
|
+
/** Vertical physical density when bounded header metadata supplies it. */
|
|
165
|
+
readonly dpiY?: number;
|
|
166
|
+
}
|
|
167
|
+
/** Bounded scan for an `<svg` document root (optional `<?xml` prolog only). */
|
|
168
|
+
declare function hasBoundedSvgRoot(bytes: Uint8Array): boolean;
|
|
169
|
+
/** Signature sniffing — authoritative over declared content type. */
|
|
170
|
+
declare function sniffImageMime(bytes: Uint8Array): RenderableImageMime | PreservedImageMime | 'unknown';
|
|
171
|
+
/** Structural PNG IHDR validation before decode. */
|
|
172
|
+
declare function validatePngHeader(bytes: Uint8Array): ValidatedRasterHeader | null;
|
|
173
|
+
/** Structural GIF logical screen descriptor validation before decode. */
|
|
174
|
+
declare function validateGifHeader(bytes: Uint8Array): ValidatedRasterHeader | null;
|
|
175
|
+
/** Bounded JPEG marker scan through the first supported SOF marker. */
|
|
176
|
+
declare function validateJpegHeader(bytes: Uint8Array): ValidatedRasterHeader | null;
|
|
177
|
+
/**
|
|
178
|
+
* Intrinsic size of an SVG, resolved the way a browser sizes one: absolute `width`/`height`
|
|
179
|
+
* first, then `viewBox` for the missing axis or ratio, then the CSS 300x150 default.
|
|
180
|
+
*
|
|
181
|
+
* This is metadata for insert and reset-to-natural-size only. Layout uses the authored
|
|
182
|
+
* `wp:extent` and the browser rasterizes into that box, so nothing here sizes an allocation
|
|
183
|
+
* and an out-of-range value is clamped rather than refused.
|
|
184
|
+
*/
|
|
185
|
+
declare function resolveSvgIntrinsicSize(bytes: Uint8Array, limits: ImageResourceLimits): ValidatedRasterHeader | null;
|
|
186
|
+
/**
|
|
187
|
+
* Validate a raster image's header structurally and report its real MIME type and extent.
|
|
188
|
+
*
|
|
189
|
+
* Content type is a CLAIM; this is what makes it a fact. A file declaring `image/png` over JPEG
|
|
190
|
+
* bytes is caught here rather than at decode.
|
|
191
|
+
*/
|
|
192
|
+
declare function validateRasterHeader(bytes: Uint8Array, mime: SupportedImageMime): ValidatedRasterHeader | null;
|
|
193
|
+
/** Package-wide live drawing references to a media part name. */
|
|
194
|
+
declare function liveDrawingReferenceCount(pkg: OoxmlPackage, partName: string): number;
|
|
195
|
+
/** How the image cache decodes, and what it will spend doing so. */
|
|
196
|
+
interface CreateImageResourceCacheOptions {
|
|
197
|
+
readonly limits?: Partial<ImageResourceLimits>;
|
|
198
|
+
readonly decodePort: ImageDecodePort;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Derived cache for one immutable package snapshot. Registry identity is
|
|
202
|
+
* `(package snapshot, decodePort object, normalized limits)` — the first caller
|
|
203
|
+
* never imposes its decoder or limits on later callers with different options.
|
|
204
|
+
*/
|
|
205
|
+
declare function imageResourceLookupFor(pkg: OoxmlPackage, options: CreateImageResourceCacheOptions): ImageResourceLookup;
|
|
206
|
+
/** @deprecated Prefer {@link imageResourceLookupFor} — registry binds cache to package identity. */
|
|
207
|
+
/** Build the per-document image cache. Validated bytes only; refusals are remembered too. */
|
|
208
|
+
declare function createImageResourceCache(initialPkg: OoxmlPackage, options: CreateImageResourceCacheOptions): ImageResourceLookup;
|
|
209
|
+
|
|
210
|
+
export { type CreateImageResourceCacheOptions as C, DEFAULT_IMAGE_RESOURCE_LIMITS as D, HARD_CEILINGS as H, type ImageResourceState as I, MAX_SVG_SNIFF_BYTES as M, type PreservedImageMime as P, type RenderableImageMime as R, type SupportedImageMime as S, type ValidatedImageBytesHandle as V, type VectorImageMime as a, type ImageDecodePort as b, type ImageResourceLimits as c, resolveSvgIntrinsicSize as d, type ResourceLimits as e, DEFAULT_LIMITS as f, IMAGE_RESOURCE_HARD_CEILINGS as g, type ImageResourceLookup as h, type ValidatedRasterHeader as i, createImageResourceCache as j, hasBoundedSvgRoot as k, imageResourceLookupFor as l, liveDrawingReferenceCount as m, resolveLimits as n, validateGifHeader as o, validateJpegHeader as p, validatePngHeader as q, resolveImageResourceLimits as r, sniffImageMime as s, validateRasterHeader as v };
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import './document-protection-BL5zp8cU.js';
|
|
1
|
+
import { W as TreeDocOp, cl as TextFormFieldRange, ck as TextFormFieldOptions, ag as Unsubscribe, aa as DrawingPositionInput, aJ as DrawingTransform, E as ExecResult, G as ParagraphTabStop, A as IndentFormatting, F as ParagraphFlags, an as ParagraphDisagreements, aB as DrawingTreeDocOp, af as SelectionPin, j as OoxmlPackage, g as ReviewRevisionKind, a9 as ImageWrapTarget } from './types-barrel-DLB11iSY.js';
|
|
2
|
+
import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-C4ilLzog.js';
|
|
3
|
+
import './document-protection-Cr59VKLO.js';
|
|
5
4
|
import { EditorModule, ReviewModuleContribution } from './contracts/modules.js';
|
|
6
|
-
import { D as DocumentSource, a as FontConfiguration, Z as ZoomMode, E as EditorFontError, n as Editor, e as EditorCommand, C as CanResult, S as SelectedImageState, o as FormatPainterSurfaceState, h as TrackedChangePredicate, T as TrackedChangeFilterMode, F as FontFaceRequest, b as FontSource, I as ImageContext, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, t as TableContext } from './editor-
|
|
7
|
-
import { R as
|
|
8
|
-
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-
|
|
9
|
-
import { e as FontConfigurationFragment, g as FontResolver, i as MarkedFontResolver, f as FontResolutionRequest } from './font-resolver-
|
|
5
|
+
import { D as DocumentSource, a as FontConfiguration, Z as ZoomMode, E as EditorFontError, n as Editor, e as EditorCommand, C as CanResult, S as SelectedImageState, o as FormatPainterSurfaceState, h as TrackedChangePredicate, T as TrackedChangeFilterMode, F as FontFaceRequest, b as FontSource, I as ImageContext, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, t as TableContext } from './editor-BsLSz_7y.js';
|
|
6
|
+
import { R as ReviewDisplayMode } from './revision-projection-DEIvpxiq.js';
|
|
7
|
+
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BLu3M6Nn.js';
|
|
8
|
+
import { e as FontConfigurationFragment, g as FontResolver, i as MarkedFontResolver, f as FontResolutionRequest } from './font-resolver-CzwdBJDE.js';
|
|
10
9
|
import { EditorCollaborationSession, CollaborationRemoteSelection, CollaborationModuleContribution } from './collaboration.js';
|
|
11
|
-
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-
|
|
12
|
-
import {
|
|
13
|
-
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-
|
|
14
|
-
import { B as BookmarkIndex } from './custom-node-writes-
|
|
15
|
-
import { I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput,
|
|
16
|
-
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-
|
|
17
|
-
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-
|
|
10
|
+
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-CPsihA6k.js';
|
|
11
|
+
import { b as ResolvedFootnoteProperties, R as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-MNztEj5s.js';
|
|
12
|
+
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-CqD0b5Ex.js';
|
|
13
|
+
import { B as BookmarkIndex } from './custom-node-writes-05qS32px.js';
|
|
14
|
+
import { I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, i as ImageIntentResult } from './tree-package-fragment-CwJDixNs.js';
|
|
15
|
+
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-DXmfnDCw.js';
|
|
16
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-D9RRWE0C.js';
|
|
18
17
|
import { C as CollaborationStatus } from './failure-DNNmwsgD.js';
|
|
19
|
-
import { V as ViewScope } from './editor-scope-
|
|
18
|
+
import { V as ViewScope, b as EditorExecOptions } from './editor-scope-OHPwVQ5l.js';
|
|
20
19
|
import './contracts/document.js';
|
|
21
20
|
import './contracts/interaction.js';
|
|
22
21
|
|
|
@@ -62,24 +61,55 @@ interface PopupChromeRegistrationOptions {
|
|
|
62
61
|
/** Use only when no manually registered renderer exists. */
|
|
63
62
|
readonly fallback?: boolean;
|
|
64
63
|
}
|
|
65
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* A core-owned content-control value edit.
|
|
66
|
+
*
|
|
67
|
+
* `kind` names the widget that was pressed. A `checkbox` session carries the current state as
|
|
68
|
+
* `'true'` / `'false'` and expects the opposite (or the same) back through `apply`; the
|
|
69
|
+
* packaged pop-ups apply the toggle at once, so a host only sees it when it renders the
|
|
70
|
+
* widget itself. A `buildingBlockGallery` session is a list session: `items` are the
|
|
71
|
+
* glossary's blocks for the control's gallery, named by `w:docPartPr/w:name`, and `apply`
|
|
72
|
+
* takes a name. A `picture` session carries the control's drawing node id as `value` and
|
|
73
|
+
* takes new image bytes through `replaceImage`; `apply` refuses, since no text stands for an
|
|
74
|
+
* image.
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
66
77
|
interface ContentControlWidgetSession {
|
|
67
78
|
readonly controlId: string;
|
|
68
|
-
readonly kind: 'dropdown' | 'comboBox' | 'date';
|
|
79
|
+
readonly kind: 'dropdown' | 'comboBox' | 'date' | 'checkbox' | 'picture' | 'buildingBlockGallery';
|
|
69
80
|
readonly items: readonly {
|
|
70
81
|
readonly displayText: string;
|
|
71
82
|
readonly value: string;
|
|
72
83
|
}[];
|
|
73
84
|
readonly value: string;
|
|
85
|
+
/** The editor's regional locale, for a date picker's month, weekday and first-day rules. */
|
|
86
|
+
readonly locale: string;
|
|
74
87
|
readonly anchor: HTMLElement | null;
|
|
75
88
|
readonly signal: AbortSignal;
|
|
76
89
|
canApply(): boolean;
|
|
77
90
|
apply(value: string): boolean;
|
|
78
91
|
cancel(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Picture sessions only: replace the control's image with these bytes. The engine sniffs
|
|
94
|
+
* the format (PNG, JPEG, GIF, BMP or WebP) and keeps the drawing's size. Resolves false
|
|
95
|
+
* when the bytes are not a supported image, the control no longer takes a write, or the
|
|
96
|
+
* document is open for viewing or suggesting. Cancellation during decoding prevents
|
|
97
|
+
* the commit; only one replacement may be pending for a session.
|
|
98
|
+
*/
|
|
99
|
+
replaceImage?(bytes: Uint8Array): Promise<boolean>;
|
|
79
100
|
}
|
|
80
101
|
/** Framework rendering for content-control value widgets. @public */
|
|
81
102
|
interface ContentControlWidgetChromeHandlers {
|
|
82
103
|
readonly onRequest?: (session: ContentControlWidgetSession) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Session kinds this renderer takes. Defaults to `dropdown`, `comboBox`, `date` and
|
|
106
|
+
* `buildingBlockGallery` (the list-shaped sessions), so a renderer written for the pop-ups
|
|
107
|
+
* never receives a checkbox or picture press it does not expect. Include `'checkbox'` to
|
|
108
|
+
* take those presses too; the engine then leaves the toggle to `apply`, and a press nobody
|
|
109
|
+
* takes toggles the box as before. Include `'picture'` to own the image pick; a press nobody
|
|
110
|
+
* takes opens the engine's own file picker.
|
|
111
|
+
*/
|
|
112
|
+
readonly kinds?: readonly ContentControlWidgetSession['kind'][];
|
|
83
113
|
}
|
|
84
114
|
/** An invalid protected-field acknowledgement. @public */
|
|
85
115
|
interface InvalidTextFormFieldSession {
|
|
@@ -1177,7 +1207,7 @@ interface PaginatedSurfaceOptions {
|
|
|
1177
1207
|
* registered — the free tier's final-state rendering; the machinery below this
|
|
1178
1208
|
* option is shared either way.
|
|
1179
1209
|
*/
|
|
1180
|
-
readonly revisionDisplayMode?:
|
|
1210
|
+
readonly revisionDisplayMode?: ReviewDisplayMode;
|
|
1181
1211
|
/** Authors whose changes open in their accepted view-time projection. */
|
|
1182
1212
|
readonly hiddenRevisionAuthors?: readonly string[];
|
|
1183
1213
|
/**
|
|
@@ -1920,9 +1950,9 @@ interface PaginatedSurface {
|
|
|
1920
1950
|
* them, so with markup on, a selection over a struck word means one thing to a reader and
|
|
1921
1951
|
* would mean another to a script that assumed the resolved result.
|
|
1922
1952
|
*/
|
|
1923
|
-
revisionDisplayMode():
|
|
1953
|
+
revisionDisplayMode(): ReviewDisplayMode;
|
|
1924
1954
|
/** Change the review display without accepting, rejecting, or changing author filters. */
|
|
1925
|
-
setRevisionDisplayMode(mode:
|
|
1955
|
+
setRevisionDisplayMode(mode: ReviewDisplayMode): void;
|
|
1926
1956
|
/**
|
|
1927
1957
|
* Where a replacement for `[start, end)` of a paragraph lands, or null when the edit would
|
|
1928
1958
|
* not be tracked.
|
|
@@ -2696,6 +2726,15 @@ declare const CHROME_GROUPS: readonly [{
|
|
|
2696
2726
|
readonly id: "review";
|
|
2697
2727
|
readonly labelKey: "formattingBar.commentsAndChanges";
|
|
2698
2728
|
readonly controls: readonly [{
|
|
2729
|
+
readonly id: "simpleMarkup";
|
|
2730
|
+
readonly shape: "icon";
|
|
2731
|
+
readonly labelKey: "review.simpleMarkup";
|
|
2732
|
+
readonly defaultToolbar: false;
|
|
2733
|
+
readonly paths: readonly string[];
|
|
2734
|
+
readonly state: {
|
|
2735
|
+
readonly kind: "command";
|
|
2736
|
+
};
|
|
2737
|
+
}, {
|
|
2699
2738
|
readonly id: "allMarkup";
|
|
2700
2739
|
readonly shape: "icon";
|
|
2701
2740
|
readonly labelKey: "review.allMarkup";
|
|
@@ -3055,7 +3094,7 @@ type ChromeGroupId = 'history' | 'zoom' | 'styles' | 'font' | 'text' | 'script'
|
|
|
3055
3094
|
*
|
|
3056
3095
|
* @public
|
|
3057
3096
|
*/
|
|
3058
|
-
type ChromeSlotId = 'history.undo' | 'history.redo' | 'zoom.level' | 'styles.style' | 'font.family' | 'font.size' | 'text.bold' | 'text.italic' | 'text.underline' | 'text.strike' | 'text.color' | 'text.highlight' | 'text.link' | 'script.super' | 'script.sub' | 'alignment.left' | 'alignment.center' | 'alignment.right' | 'alignment.justify' | 'list.bullet' | 'list.numbered' | 'list.outdent' | 'list.indent' | 'list.lineSpacing' | 'format.painter' | 'format.clear' | 'review.comments' | 'review.paragraphMarks' | 'review.protectDocument' | 'review.allMarkup' | 'review.noMarkup' | 'review.original' | 'review.previousChange' | 'review.nextChange' | 'review.acceptAllChanges' | 'review.rejectAllChanges' | 'review.authors' | 'review.editingMode' | 'contentControl.showAll' | 'contentControl.formFill' | 'contentControl.inspector' | 'contentControl.remove' | 'image.insert' | 'image.properties' | 'image.wrap' | 'image.altText' | 'table.insert' | 'table.borderTarget' | 'table.borderColor' | 'table.borderStyle' | 'table.borderWidth' | 'table.cellFill' | 'file.open' | 'file.save' | 'paragraph.dialog' | 'file.pageSetup' | 'insert.footnote' | 'insert.endnote' | 'insert.pageNumber' | 'insert.totalPages' | 'insert.sectionPages' | 'insert.pageXofY' | 'insert.pageBreak' | 'insert.sectionBreakNextPage' | 'insert.sectionBreakContinuous' | 'insert.toc';
|
|
3097
|
+
type ChromeSlotId = 'history.undo' | 'history.redo' | 'zoom.level' | 'styles.style' | 'font.family' | 'font.size' | 'text.bold' | 'text.italic' | 'text.underline' | 'text.strike' | 'text.color' | 'text.highlight' | 'text.link' | 'script.super' | 'script.sub' | 'alignment.left' | 'alignment.center' | 'alignment.right' | 'alignment.justify' | 'list.bullet' | 'list.numbered' | 'list.outdent' | 'list.indent' | 'list.lineSpacing' | 'format.painter' | 'format.clear' | 'review.comments' | 'review.paragraphMarks' | 'review.protectDocument' | 'review.simpleMarkup' | 'review.allMarkup' | 'review.noMarkup' | 'review.original' | 'review.previousChange' | 'review.nextChange' | 'review.acceptAllChanges' | 'review.rejectAllChanges' | 'review.authors' | 'review.editingMode' | 'contentControl.showAll' | 'contentControl.formFill' | 'contentControl.inspector' | 'contentControl.remove' | 'image.insert' | 'image.properties' | 'image.wrap' | 'image.altText' | 'table.insert' | 'table.borderTarget' | 'table.borderColor' | 'table.borderStyle' | 'table.borderWidth' | 'table.cellFill' | 'file.open' | 'file.save' | 'paragraph.dialog' | 'file.pageSetup' | 'insert.footnote' | 'insert.endnote' | 'insert.pageNumber' | 'insert.totalPages' | 'insert.sectionPages' | 'insert.pageXofY' | 'insert.pageBreak' | 'insert.sectionBreakNextPage' | 'insert.sectionBreakContinuous' | 'insert.toc';
|
|
3059
3098
|
/**
|
|
3060
3099
|
* Every control id in the chrome, as a literal union. Unique WITHIN a group, not
|
|
3061
3100
|
* globally (`image.insert` / `table.insert`) — key consumers on {@link ChromeSlotId}.
|
|
@@ -3269,6 +3308,30 @@ declare function tableChromeLabelKeyForTarget(target: TableBorderEdgeTarget): st
|
|
|
3269
3308
|
/** Material Symbol paths for one table chrome icon name. */
|
|
3270
3309
|
declare function tableChromeIconPaths(name: keyof typeof GENERATED_ICON_PATHS): readonly string[];
|
|
3271
3310
|
|
|
3311
|
+
/** Value types accepted by toolbar controls. Font size uses half-points. @public */
|
|
3312
|
+
interface ToolbarValueMap {
|
|
3313
|
+
'font.family': string;
|
|
3314
|
+
'font.size': number;
|
|
3315
|
+
'text.color': string;
|
|
3316
|
+
'text.highlight': string;
|
|
3317
|
+
'styles.style': string;
|
|
3318
|
+
'list.lineSpacing': number;
|
|
3319
|
+
'image.wrap': ImageWrapTarget;
|
|
3320
|
+
'image.altText': string;
|
|
3321
|
+
'review.editingMode': 'editing' | 'suggesting' | 'viewing';
|
|
3322
|
+
}
|
|
3323
|
+
/** @public */
|
|
3324
|
+
type ToolbarValueSlot = keyof ToolbarValueMap | TableChromeSlotId;
|
|
3325
|
+
/** @public */
|
|
3326
|
+
type ToolbarSlotValue<K extends ToolbarValueSlot> = K extends keyof ToolbarValueMap ? ToolbarValueMap[K] : unknown;
|
|
3327
|
+
/** A command hook keeps its nullary event-handler form and accepts explicit options. @public */
|
|
3328
|
+
interface EditorCommandExecute {
|
|
3329
|
+
(): boolean;
|
|
3330
|
+
(options: EditorExecOptions): boolean;
|
|
3331
|
+
}
|
|
3332
|
+
/** Ignore framework events passed to a command used directly as an event handler. */
|
|
3333
|
+
declare function commandExecOptions(value: unknown): EditorExecOptions | undefined;
|
|
3334
|
+
|
|
3272
3335
|
/**
|
|
3273
3336
|
* The probe a slot uses to ask "would the engine honour this right now?" when its real
|
|
3274
3337
|
* command needs an argument the slot itself cannot supply.
|
|
@@ -3391,9 +3454,15 @@ declare function runTableChromeCommand(editor: Editor | null, slot: TableChromeS
|
|
|
3391
3454
|
*
|
|
3392
3455
|
* @public
|
|
3393
3456
|
*/
|
|
3394
|
-
declare function runToolbarCommand(editor: Editor | null, id: ChromeSlotId
|
|
3395
|
-
/**
|
|
3396
|
-
|
|
3457
|
+
declare function runToolbarCommand(editor: Editor | null, id: ChromeSlotId): ExecResult;
|
|
3458
|
+
/** @public */
|
|
3459
|
+
declare function runToolbarCommand(editor: Editor | null, id: Exclude<ChromeSlotId, ToolbarValueSlot>, options: EditorExecOptions): ExecResult;
|
|
3460
|
+
/** @public */
|
|
3461
|
+
declare function runToolbarCommand<K extends keyof ToolbarValueMap>(editor: Editor | null, id: K, value: ToolbarValueMap[NoInfer<K>], options?: EditorExecOptions): ExecResult;
|
|
3462
|
+
/** @public */
|
|
3463
|
+
declare function runToolbarCommand(editor: Editor | null, id: TableChromeSlotId, value: unknown, options?: EditorExecOptions): ExecResult;
|
|
3464
|
+
/** @public */
|
|
3465
|
+
declare function runToolbarCommand(editor: Editor | null, id: ChromeSlotId, value: undefined, options: EditorExecOptions): ExecResult;
|
|
3397
3466
|
/**
|
|
3398
3467
|
* Save goes straight to `Editor.save()` — it is not a command.
|
|
3399
3468
|
*
|
|
@@ -3415,7 +3484,7 @@ declare function tableCommandToolbarState(surface: PaginatedSurface | null, comm
|
|
|
3415
3484
|
*
|
|
3416
3485
|
* @public
|
|
3417
3486
|
*/
|
|
3418
|
-
declare function runTableCommand(editor: Editor | null, command: EditorCommand): ExecResult;
|
|
3487
|
+
declare function runTableCommand(editor: Editor | null, command: EditorCommand, options?: EditorExecOptions): ExecResult;
|
|
3419
3488
|
|
|
3420
3489
|
/**
|
|
3421
3490
|
* Build an editor: the full `Editor` contract over a paginated surface.
|
|
@@ -3438,4 +3507,25 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand):
|
|
|
3438
3507
|
*/
|
|
3439
3508
|
declare function createDocxEditor(config: DocxEditorConfig): DocxEditorInstance;
|
|
3440
3509
|
|
|
3441
|
-
|
|
3510
|
+
/** Native event policy for one continuous control gesture. @public */
|
|
3511
|
+
interface HistoryGroupBindingOptions {
|
|
3512
|
+
readonly kind: 'native-color' | 'range' | 'repeat' | 'keyboard';
|
|
3513
|
+
}
|
|
3514
|
+
/** Dispose when the element or editor changes. @public */
|
|
3515
|
+
interface HistoryGroupBinding {
|
|
3516
|
+
/** Options for the next synchronous formatting command. */
|
|
3517
|
+
options(): EditorExecOptions;
|
|
3518
|
+
/** Close the gesture and remove every listener; does not revert edits. */
|
|
3519
|
+
dispose(): void;
|
|
3520
|
+
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Bind native gesture events. Framework change handlers apply values; this binding ends groups.
|
|
3523
|
+
* Native color `change` means value commitment, not portable popup closure. Controls without
|
|
3524
|
+
* a terminal change event end on the next activation, Escape, blur, or disposal.
|
|
3525
|
+
* Range/repeat controls end on pointer release/cancel or keyup, including outside releases.
|
|
3526
|
+
* Terminal events close after propagation so the final value can use the same handle.
|
|
3527
|
+
* @public
|
|
3528
|
+
*/
|
|
3529
|
+
declare function bindHistoryGroup(editor: Editor, element: HTMLElement, config: HistoryGroupBindingOptions): HistoryGroupBinding;
|
|
3530
|
+
|
|
3531
|
+
export { type OverlayFrameRect as $, type AnchorFrameOrigin as A, type FontLoadFailure as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, type FinalizedImageOverlayInteraction as F, type FontLoadFailureReason as G, type FontMeasurementState as H, type FontUrlSource as I, type HistoryGroupBinding as J, type HistoryGroupBindingOptions as K, type HyperlinkActivation as L, type HyperlinkChromeHandlers as M, type HyperlinkOps as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, IMAGE_OVERLAY_NUDGE_PT as Q, IMAGE_OVERLAY_NUDGE_SHIFT_PT as R, type ImageInteractionSession as S, type TableCommandPlan as T, type ImageOverlayScrollPort as U, type ImageResizeHandle as V, type ImageResizeResult as W, type InvalidTextFormFieldChromeHandlers as X, type InvalidTextFormFieldSession as Y, type LoadFontsRequest as Z, type LoadFontsResult as _, type PaginatedSurface as a, formattingBarChromeGroups as a$, type PaginatedSurfaceState as a0, type ParagraphPropertyEdit as a1, type PopupChromeRegistrationOptions as a2, type RemoteCaretLabelAnchor as a3, type RemoteCaretLabelHost as a4, type ReviewWriteIntent as a5, type RunTableChromeCommandResult as a6, type SectionAnchor as a7, type SectionBreakInsertType as a8, type SelectedDrawingOverlayTarget as a9, bindHistoryGroup as aA, blankDocumentBytes as aB, canExecuteImageCommand as aC, captureImageMutationPreconditions as aD, chromeControlCount as aE, chromeMenuSlots as aF, chromeProbeForSlot as aG, chromeSlotId as aH, chromeSlotIsToggle as aI, commandExecOptions as aJ, commandForSlot as aK, commandForSlotValue as aL, commandForTableChromeSlotValue as aM, computeImageResizeResult as aN, computeMovedImagePosition as aO, computeResizedImageExtentEmu as aP, createDocxEditor as aQ, createFontSource as aR, createImageOverlayScrollPort as aS, cssPixelsToLayoutPoints as aT, customFonts as aU, defaultChromeGroups as aV, defaultTableLabel as aW, emuToOverlayPoints as aX, equationAtPosition as aY, executeImageCommand as aZ, finalizeImageOverlayInteraction as a_, type SurfaceEquation as aa, type SurfaceFormatting as ab, type SurfaceHyperlink as ac, type SurfaceInsertImageInput as ad, type SurfaceNavigation as ae, type SurfaceOverlayCoordinates as af, type SurfaceParagraphFormat as ag, TABLE_BORDER_STYLE_OPTIONS as ah, TABLE_BORDER_TARGET_OPTIONS as ai, TABLE_BORDER_WIDTH_OPTIONS as aj, TABLE_CHROME_SLOT_IDS as ak, type TableBorderStyleOption as al, type TableBorderTargetOption as am, type TableBorderTargetValue as an, type TableBorderWidthOption as ao, type TableChromeDraft as ap, type TableChromePick as aq, type TableChromeSlotId as ar, type TableInteractionLabelKey as as, type TextFormFieldChromeHandlers as at, type TextFormFieldDialogSession as au, type ToolbarCommandState as av, type ToolbarSlotValue as aw, type ToolbarValueMap as ax, type ToolbarValueSlot as ay, applyTableChromePick as az, CHROME_MENUS as b, isStaleImageInteractionCommit as b0, isTableChromeSlot as b1, layoutPointsToCssPixels as b2, loadFonts as b3, overlayFrameToSheetCssPixels as b4, overlayHostOrigin as b5, pointsToEmu as b6, probeTableChromeCommand as b7, resizePreservesAspect as b8, runSave as b9, runTableChromeCommand as ba, runTableCommand as bb, runToolbarCommand as bc, selectedDrawingOverlayTargetOf as bd, selectedImageStateOf as be, surfacePaintScale as bf, tableChromeIconPaths as bg, tableChromeLabelKeyForTarget as bh, tableChromeToolbarState as bi, tableChromeVisible as bj, tableCommandToolbarState as bk, toolbarCommandState as bl, toolbarCommandStates as bm, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, type ContentControlWidgetChromeHandlers as p, type ContentControlWidgetSession as q, type CustomFontsOptions as r, type CustomFontsResolver as s, DEFAULT_TABLE_CHROME_DRAFT as t, type DocxEditorConfig as u, type DrawingSelectionIntent as v, type EditorCommandExecute as w, type EquationActivation as x, type EquationChromeHandlers as y, type EquationOps as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk44LQJIKH_cjs=require('./chunk-44LQJIKH.cjs');require('./chunk-TKQH7BNE.cjs'),require('./chunk-S35UK656.cjs');var chunkXZY4Q6PJ_cjs=require('./chunk-XZY4Q6PJ.cjs');require('./chunk-WQFNWLNY.cjs'),require('./chunk-AFG7Q622.cjs'),require('./chunk-TE43S3LX.cjs'),require('./chunk-BNZF6DYC.cjs'),require('./chunk-B4KZSKF7.cjs'),require('./chunk-Z2ETEZRU.cjs'),require('./chunk-PYXMAUNR.cjs'),require('./chunk-FGBADUSK.cjs'),require('./chunk-ITNK6C5M.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-4EHMMSFR.cjs'),require('./chunk-MXOO7KRI.cjs'),require('./chunk-UKVVUHZL.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.wa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.Aa}});Object.defineProperty(exports,"bindHistoryGroup",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.Bb}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.d}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.Ba}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.la}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.cb}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.i}});Object.defineProperty(exports,"customFonts",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.ra}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunk44LQJIKH_cjs.na}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.h}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.g}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.d}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.e}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.k}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.i}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkXZY4Q6PJ_cjs.j}});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
export { q as
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { a as DocumentProtectionEdit, D as DocumentProtectionState } from './document-protection-BL5zp8cU.js';
|
|
1
|
+
export { B as Block, t as ColorValue, C as CommentRecord, o as ContainerRef, u as ContentControl, p as ContentControlFilter, k as ContentControlType, v as DocAnchor, w as DocAnchorRange, s as DocComment, x as DocLocation, q as DocRange, l as DocTarget, y as DocumentBody, D as DocxDocument, ah as DocxDocumentJSON, ai as DrawingHorizontalReferenceFrame, a8 as DrawingKind, ab as DrawingLocks, aa as DrawingPositionInput, aj as DrawingVerticalReferenceFrame, z as ExecErrorCode, E as ExecResult, n as Extent, ak as FontDefinition, H as HeaderFooterSet, a9 as ImageWrapTarget, A as IndentFormatting, I as InsertableContentControlType, al as NumberingRef, am as PageMargins, P as Paragraph, an as ParagraphDisagreements, F as ParagraphFlags, ac as ParagraphFormatCommand, G as ParagraphTabStop, ao as Point, ae as Rect, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, r as Revision, h as RevisionAddress, _ as RevisionBatchResult, J as RevisionType, ap as Run, m as RunFormatting, K as Section, L as SectionProperties, af as SelectionPin, M as StyleDefinition, S as StyleDefinitions, T as Table, aq as TableCell, ar as TableRow, N as Theme, Q as ThemeColorScheme, ag as Unsubscribe, ad as Watermark } from './types-barrel-DLB11iSY.js';
|
|
2
|
+
export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-C4ilLzog.js';
|
|
3
|
+
export { a as DocumentProtectionEdit, D as DocumentProtectionState } from './document-protection-Cr59VKLO.js';
|
|
5
4
|
export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.js';
|
|
6
|
-
export { A as AuthoredNoteNumbering, C as CanResult, u as DocumentChange, w as DocumentEditingMode, x as DocumentHandle, D as DocumentSource, n as Editor, e as EditorCommand, y as EditorCommandShape, z as EditorCommands, B as EditorError, G as EditorEvents, E as EditorFontError, H as EditorFontErrorCode, J as EditorFormatPainterCommands, K as EditorHeaderFooterCommands, L as EditorNoteCommands, M as EditorPosition, N as EditorQueries, O as EditorQuery, P as EditorQueryResults, Q as EditorSelection, d as EditorSnapshot, a as FontConfiguration, F as FontFaceRequest, b as FontSource, c as FontSourceSubstitution, R as FormatPainterLevel, U as FormatPainterMode, o as FormatPainterSurfaceState, V as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, f as ImageCropPercent, _ as NoteKind, $ as NotePropertiesSide, a0 as NotePropertiesState, a1 as PageSetup, a2 as
|
|
7
|
-
export {
|
|
8
|
-
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-
|
|
9
|
-
export { C as ComposeFontOriginsOptions, b as FONT_RESOLVER_BRAND, c as FONT_RESOLVER_MARK_KEY, d as FontConfigurationBase, e as FontConfigurationFragment, a as FontOrigin, F as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, i as MarkedFontResolver, W as WORD_DEFAULT_FONT, j as composeFontConfiguration, k as composeFontOrigins, l as defineFontResolver, m as isFontResolver } from './font-resolver-
|
|
10
|
-
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, r as CustomFontsOptions, s as CustomFontsResolver, u as DocxEditorConfig, D as DocxEditorInstance,
|
|
5
|
+
export { A as AuthoredNoteNumbering, C as CanResult, u as DocumentChange, w as DocumentEditingMode, x as DocumentHandle, D as DocumentSource, n as Editor, e as EditorCommand, y as EditorCommandShape, z as EditorCommands, B as EditorError, G as EditorEvents, E as EditorFontError, H as EditorFontErrorCode, J as EditorFormatPainterCommands, K as EditorHeaderFooterCommands, L as EditorNoteCommands, M as EditorPosition, N as EditorQueries, O as EditorQuery, P as EditorQueryResults, Q as EditorSelection, d as EditorSnapshot, a as FontConfiguration, F as FontFaceRequest, b as FontSource, c as FontSourceSubstitution, R as FormatPainterLevel, U as FormatPainterMode, o as FormatPainterSurfaceState, V as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, f as ImageCropPercent, _ as NoteKind, $ as NotePropertiesSide, a0 as NotePropertiesState, a1 as PageSetup, a2 as ResolveReviewChangesOptions, a3 as ResolvedNoteNumbering, a4 as ReviewActivationOptions, a5 as ReviewCommentPlacement, a6 as ReviewCustomPlacement, a7 as ReviewItemPlacement, a8 as ReviewItemPlacementBase, a9 as ReviewItemQuery, aa as ReviewRevisionPlacement, S as SelectedImageState, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, t as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, T as TrackedChangeFilterMode, h as TrackedChangePredicate, ai as ZoomFitTarget, Z as ZoomMode } from './editor-BsLSz_7y.js';
|
|
6
|
+
export { a as RevisionDisplayMode } from './revision-projection-DEIvpxiq.js';
|
|
7
|
+
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BLu3M6Nn.js';
|
|
8
|
+
export { C as ComposeFontOriginsOptions, b as FONT_RESOLVER_BRAND, c as FONT_RESOLVER_MARK_KEY, d as FontConfigurationBase, e as FontConfigurationFragment, a as FontOrigin, F as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, i as MarkedFontResolver, W as WORD_DEFAULT_FONT, j as composeFontConfiguration, k as composeFontOrigins, l as defineFontResolver, m as isFontResolver } from './font-resolver-CzwdBJDE.js';
|
|
9
|
+
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, r as CustomFontsOptions, s as CustomFontsResolver, u as DocxEditorConfig, D as DocxEditorInstance, B as FontLoadFailure, G as FontLoadFailureReason, H as FontMeasurementState, I as FontUrlSource, J as HistoryGroupBinding, K as HistoryGroupBindingOptions, L as HyperlinkActivation, M as HyperlinkChromeHandlers, Z as LoadFontsRequest, _ as LoadFontsResult, ac as SurfaceHyperlink, av as ToolbarCommandState, aA as bindHistoryGroup, aB as blankDocumentBytes, aF as chromeMenuSlots, aK as commandForSlot, aL as commandForSlotValue, aQ as createDocxEditor, aR as createFontSource, aU as customFonts, b3 as loadFonts, bc as runToolbarCommand, bl as toolbarCommandState } from './index-zkvqBQ9o.js';
|
|
11
10
|
export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.js';
|
|
12
|
-
export { E as EditorScope, V as ViewScope } from './editor-scope-
|
|
11
|
+
export { b as EditorExecOptions, E as EditorScope, H as HistoryDiagnostic, a as HistoryGroup, c as HistoryGroupOutcome, V as ViewScope } from './editor-scope-OHPwVQ5l.js';
|
|
13
12
|
export { InteractionAffinity, InteractionOutcome, InteractionOutcomeCode, SemanticIdentity, SemanticTarget } from './contracts/interaction.js';
|
|
14
13
|
import './collaboration.js';
|
|
15
|
-
import './tree-package-fragment-
|
|
14
|
+
import './tree-package-fragment-CwJDixNs.js';
|
|
16
15
|
import './collaboration/replication.js';
|
|
17
16
|
import './failure-DNNmwsgD.js';
|
|
18
|
-
import './semantic-records-
|
|
19
|
-
import './omml-equation-
|
|
20
|
-
import './semantic-paint-
|
|
21
|
-
import './note-properties-
|
|
22
|
-
import './custom-node-writes-
|
|
23
|
-
import './semantic-cell-selection-
|
|
24
|
-
import './tree-session-contract-
|
|
25
|
-
import './headless-document-view-
|
|
17
|
+
import './semantic-records-CqD0b5Ex.js';
|
|
18
|
+
import './omml-equation-CbnW9yXd.js';
|
|
19
|
+
import './semantic-paint-CPsihA6k.js';
|
|
20
|
+
import './note-properties-MNztEj5s.js';
|
|
21
|
+
import './custom-node-writes-05qS32px.js';
|
|
22
|
+
import './semantic-cell-selection-DXmfnDCw.js';
|
|
23
|
+
import './tree-session-contract-D9RRWE0C.js';
|
|
24
|
+
import './headless-document-view-B7nAiR7P.js';
|
|
26
25
|
import 'prosemirror-model';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{wa as CHROME_GROUPS,Aa as CHROME_MENUS,Bb as bindHistoryGroup,d as blankDocumentBytes,Ba as chromeMenuSlots,ja as commandForSlot,la as commandForSlotValue,cb as createDocxEditor,i as createFontSource,j as customFonts,h as loadFonts,ra as runToolbarCommand,na as toolbarCommandState}from'./chunk-VH2DLEZK.js';import'./chunk-AJCCS53D.js';import'./chunk-BQXF2PFF.js';export{h as FONT_RESOLVER_BRAND,g as FONT_RESOLVER_MARK_KEY,d as WORD_DEFAULT_FONT,e as composeFontConfiguration,k as composeFontOrigins,i as defineFontResolver,j as isFontResolver}from'./chunk-VUNFWXHF.js';import'./chunk-AYMSP25Q.js';import'./chunk-RIYSCEFQ.js';import'./chunk-GIHKVXEO.js';import'./chunk-MP3K4LC5.js';import'./chunk-XS4FOHH6.js';import'./chunk-Q5JPPUNR.js';import'./chunk-X5QNSISI.js';import'./chunk-BDAY2ETZ.js';import'./chunk-VP7SDFCM.js';import'./chunk-WZX4UGRQ.js';import'./chunk-6JIJOZDW.js';import'./chunk-Q2B6HX3R.js';import'./chunk-NG6IQ4SI.js';import'./chunk-S6J4O5XP.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as ShapingEnvironmentInput, f as TextShaper, R as ResolvedRunStyle, g as ResolvedFont, T as TextMeasurer, F as FontResourceSnapshot, V as VersionedShapingLibrary, N as NormalizationPolicy, h as FixedPointRoundingMode, i as FontRequest } from './semantic-records-CqD0b5Ex.js';
|
|
2
2
|
|
|
3
3
|
/** Immutable per-operation environment. Configuration, extension, shaping, and producer changes are
|
|
4
4
|
* coarse gates; resource changes are compared through CacheProvenance.resourceDependencies. */
|