@office-open/core 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart/index.d.mts +1 -1
- package/dist/descriptor/index.d.mts +2 -2
- package/dist/descriptor/index.mjs +2 -2
- package/dist/{descriptor-BdWTH1vv.mjs → descriptor-DAER86Rt.mjs} +1 -26
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{index-vEeWkbm5.d.mts → index-3STznXzZ.d.mts} +1 -1
- package/dist/{index-DEeO4sOq.d.mts → index-BkEFbS8B.d.mts} +40 -26
- package/dist/{index-BEQ12eyX.d.mts → index-CN0YjNSx.d.mts} +1 -1
- package/dist/{index-L82O3q6V.d.mts → index-CpNwAcem.d.mts} +22 -23
- package/dist/{index-Bpw3LFuI.d.mts → index-Dl4z-M1N.d.mts} +187 -125
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +2 -2
- package/dist/{patch-DocIv0Sn.mjs → patch-DEPPafeB.mjs} +49 -4
- package/dist/{src-DaZbVB3f.mjs → src-BPRAxccL.mjs} +1359 -1257
- package/dist/theme/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
1
|
+
import { g as CustomDescriptor, v as ReadContext, y as WriteContext } from "./index-CpNwAcem.mjs";
|
|
2
|
+
import { A as OutputType, M as DataType, k as OutputByType } from "./index-BkEFbS8B.mjs";
|
|
3
3
|
import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
|
|
4
4
|
import { Element } from "@office-open/xml";
|
|
5
5
|
import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
|
|
@@ -1156,7 +1156,7 @@ declare const extractBlipFillMedia: (fill: FillOptions, nameAllocator?: (type: s
|
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Builds a DrawingML fill XML string from a FillOptions config.
|
|
1158
1158
|
*/
|
|
1159
|
-
declare const buildFill: (options: FillOptions) => string;
|
|
1159
|
+
declare const buildFill: (options: FillOptions, embedPlaceholder?: string) => string;
|
|
1160
1160
|
//#endregion
|
|
1161
1161
|
//#region src/drawingml/fill/no-fill.d.ts
|
|
1162
1162
|
/**
|
|
@@ -1326,6 +1326,125 @@ declare const createPatternFill: (options: PatternFillOptions) => string;
|
|
|
1326
1326
|
*/
|
|
1327
1327
|
declare const createGroupFill: () => string;
|
|
1328
1328
|
//#endregion
|
|
1329
|
+
//#region src/opc/packer.d.ts
|
|
1330
|
+
interface XmlifyedFile {
|
|
1331
|
+
path: string;
|
|
1332
|
+
data: string | Uint8Array;
|
|
1333
|
+
}
|
|
1334
|
+
/** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
|
|
1335
|
+
declare const ZIP_DEFLATE_LEVEL = 1;
|
|
1336
|
+
/** Default level for media entries (STORE — no compression). */
|
|
1337
|
+
declare const ZIP_STORED_LEVEL = 0;
|
|
1338
|
+
/**
|
|
1339
|
+
* Resolve the ZIP level for a media entry by file-name extension, matching MS
|
|
1340
|
+
* Office: already-compressed raster formats → STORE (0), everything else →
|
|
1341
|
+
* DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
|
|
1342
|
+
* therefore applies only to compressible formats, never forcing DEFLATE onto
|
|
1343
|
+
* pre-compressed assets.
|
|
1344
|
+
*/
|
|
1345
|
+
declare const levelForMediaName: (fileName: string, mediaLevel: number) => number;
|
|
1346
|
+
/** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
|
|
1347
|
+
interface CompressionOptions {
|
|
1348
|
+
/** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
|
|
1349
|
+
xml?: number;
|
|
1350
|
+
/**
|
|
1351
|
+
* DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
|
|
1352
|
+
* formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
|
|
1353
|
+
* Default: 1 (SuperFast).
|
|
1354
|
+
*/
|
|
1355
|
+
media?: number;
|
|
1356
|
+
}
|
|
1357
|
+
/** Options for Packer output methods. */
|
|
1358
|
+
interface PackerOptions<T extends OutputType = "nodebuffer"> {
|
|
1359
|
+
/** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
|
|
1360
|
+
type?: T;
|
|
1361
|
+
/** Custom XML/ZIP file overrides. */
|
|
1362
|
+
overrides?: XmlifyedFile[];
|
|
1363
|
+
/** Compression levels for ZIP entries. */
|
|
1364
|
+
compression?: CompressionOptions;
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Asynchronously compress files and convert to the requested output format.
|
|
1368
|
+
*
|
|
1369
|
+
* Uses fflate Web Workers for non-blocking DEFLATE compression.
|
|
1370
|
+
* XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
|
|
1371
|
+
* split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
|
|
1372
|
+
* are STOREd, everything else uses the `media` level (default SuperFast).
|
|
1373
|
+
* Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
|
|
1374
|
+
*/
|
|
1375
|
+
declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Synchronously compress files and convert to the requested output format.
|
|
1378
|
+
*
|
|
1379
|
+
* Uses synchronous DEFLATE compression for maximum throughput.
|
|
1380
|
+
* Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
|
|
1381
|
+
*/
|
|
1382
|
+
declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
|
|
1383
|
+
/**
|
|
1384
|
+
* Create a `ReadableStream<Uint8Array>` from compressed file entries.
|
|
1385
|
+
*
|
|
1386
|
+
* Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
|
|
1387
|
+
* `STORED` entries (media) pass through synchronously.
|
|
1388
|
+
* Works in both Node.js and browsers (Web Streams API).
|
|
1389
|
+
*/
|
|
1390
|
+
declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Compile function provided by each package to convert a file object into a Zippable map.
|
|
1393
|
+
*/
|
|
1394
|
+
type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
|
|
1395
|
+
/**
|
|
1396
|
+
* Packer interface returned by {@link createPacker}.
|
|
1397
|
+
*
|
|
1398
|
+
* Async methods use fflate Web Workers for non-blocking compression.
|
|
1399
|
+
* Sync methods use synchronous compression for maximum throughput in
|
|
1400
|
+
* CLI scripts and build tools.
|
|
1401
|
+
*/
|
|
1402
|
+
interface Packer<TFile> {
|
|
1403
|
+
/** Compile file to Zippable map (synchronous). */
|
|
1404
|
+
compile: CompileFn<TFile>;
|
|
1405
|
+
/** Generic async output — returns the requested OutputType. */
|
|
1406
|
+
pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
|
|
1407
|
+
/** Generic sync output — returns the requested OutputType. */
|
|
1408
|
+
packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
|
|
1409
|
+
/** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
|
|
1410
|
+
toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
|
|
1411
|
+
/** Sync → `Uint8Array`. */
|
|
1412
|
+
toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
|
|
1413
|
+
/** Async → `Promise<string>` (raw ZIP content as string). */
|
|
1414
|
+
toString(file: TFile, options?: PackerOptions): Promise<string>;
|
|
1415
|
+
/** Sync → `string`. */
|
|
1416
|
+
toStringSync(file: TFile, options?: PackerOptions): string;
|
|
1417
|
+
/** Async → `Promise<Buffer>` (Node.js). */
|
|
1418
|
+
toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
|
|
1419
|
+
/** Sync → `Buffer` (Node.js). */
|
|
1420
|
+
toBufferSync(file: TFile, options?: PackerOptions): Buffer;
|
|
1421
|
+
/** Async → `Promise<string>` (base64-encoded). */
|
|
1422
|
+
toBase64(file: TFile, options?: PackerOptions): Promise<string>;
|
|
1423
|
+
/** Sync → `string` (base64-encoded). */
|
|
1424
|
+
toBase64Sync(file: TFile, options?: PackerOptions): string;
|
|
1425
|
+
/** Async → `Promise<Blob>` (browser). */
|
|
1426
|
+
toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
|
|
1427
|
+
/** Sync → `Blob`. */
|
|
1428
|
+
toBlobSync(file: TFile, options?: PackerOptions): Blob;
|
|
1429
|
+
/** Async → `Promise<ArrayBuffer>`. */
|
|
1430
|
+
toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
|
|
1431
|
+
/** Sync → `ArrayBuffer`. */
|
|
1432
|
+
toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
|
|
1433
|
+
/** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
|
|
1434
|
+
toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Create a Packer object with all output format methods.
|
|
1438
|
+
*
|
|
1439
|
+
* Centralises the ZIP → convert pipeline and the streaming implementation
|
|
1440
|
+
* so that each OOXML package only needs to provide a `compile` function and
|
|
1441
|
+
* a MIME type.
|
|
1442
|
+
*/
|
|
1443
|
+
declare const createPacker: <TFile>(options: {
|
|
1444
|
+
compile: CompileFn<TFile>;
|
|
1445
|
+
mimeType: string;
|
|
1446
|
+
}) => Packer<TFile>;
|
|
1447
|
+
//#endregion
|
|
1329
1448
|
//#region src/opc/relationships.d.ts
|
|
1330
1449
|
type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideSyncProperties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" | "http://schemas.microsoft.com/office/2007/relationships/media" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/users";
|
|
1331
1450
|
declare const TargetModeType: {
|
|
@@ -1344,6 +1463,64 @@ declare class Relationships {
|
|
|
1344
1463
|
/** Directly builds XML string — zero intermediate tree allocation. */
|
|
1345
1464
|
serialize(): string;
|
|
1346
1465
|
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Serialize a Relationships part only when it carries at least one
|
|
1468
|
+
* relationship. Optional parts (fontTable, headers, footers, charts, drawings,
|
|
1469
|
+
* worksheets, …) emit no .rels part when empty — Office strips empty rels
|
|
1470
|
+
* shells when re-saving, so skipping them keeps generated packages free of
|
|
1471
|
+
* redundant empty parts and matches Office's normalized output.
|
|
1472
|
+
*
|
|
1473
|
+
* Always-on parts (the package `_rels/.rels` and the main
|
|
1474
|
+
* document/presentation/workbook parts) carry relationships by construction
|
|
1475
|
+
* and must NOT use this gate.
|
|
1476
|
+
*/
|
|
1477
|
+
declare function optionalRelsPart(rel: Relationships, xmlDeclaration: string, path: string): XmlifyedFile | undefined;
|
|
1478
|
+
//#endregion
|
|
1479
|
+
//#region src/opc/media.d.ts
|
|
1480
|
+
/**
|
|
1481
|
+
* Content-deduplicated media collection for OOXML packages.
|
|
1482
|
+
*
|
|
1483
|
+
* Stores image entries keyed by file name. `addMedia` deduplicates by raw byte
|
|
1484
|
+
* content — byte-identical images referenced N times share one file (matching
|
|
1485
|
+
* Office's normalized output), while per-image metadata (transformation,
|
|
1486
|
+
* extent, fallback) stays with each reference in its own drawing XML and is
|
|
1487
|
+
* passed via the `build` callback so it never participates in the dedup key.
|
|
1488
|
+
*
|
|
1489
|
+
* @module
|
|
1490
|
+
*/
|
|
1491
|
+
/**
|
|
1492
|
+
* Minimum fields every media entry carries. Package-specific entry types
|
|
1493
|
+
* extend this with their own transformation/extent/fallback fields.
|
|
1494
|
+
*/
|
|
1495
|
+
interface BaseMediaEntry {
|
|
1496
|
+
fileName: string;
|
|
1497
|
+
data: Uint8Array;
|
|
1498
|
+
type: string;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Shared media collection for docx/pptx/xlsx. Generic over the package's entry
|
|
1502
|
+
* type so each package keeps its own metadata while sharing the registration +
|
|
1503
|
+
* dedup logic.
|
|
1504
|
+
*/
|
|
1505
|
+
declare class Media<T extends BaseMediaEntry> {
|
|
1506
|
+
private readonly map;
|
|
1507
|
+
private counter;
|
|
1508
|
+
/**
|
|
1509
|
+
* Register media, reusing the existing entry when the bytes already exist.
|
|
1510
|
+
* Returns the canonical entry (shared across all identical references) —
|
|
1511
|
+
* callers read `entry.fileName` for placeholders/relationship targets or use
|
|
1512
|
+
* the whole entry (e.g. drawing XML). The `build` callback constructs the
|
|
1513
|
+
* package-specific entry from the allocated file name.
|
|
1514
|
+
*
|
|
1515
|
+
* Pass `fileName` to pin the name (round-trip scenarios preserving a source
|
|
1516
|
+
* file name); omit it to allocate the next sequential `imageN.ext`.
|
|
1517
|
+
*/
|
|
1518
|
+
addMedia(data: Uint8Array, type: string, build: (fileName: string) => T, fileName?: string): T;
|
|
1519
|
+
/** Find the key of an existing entry with byte-identical content. */
|
|
1520
|
+
private findByContent;
|
|
1521
|
+
/** All registered media entries. */
|
|
1522
|
+
get array(): T[];
|
|
1523
|
+
}
|
|
1347
1524
|
//#endregion
|
|
1348
1525
|
//#region src/opc/content-types.d.ts
|
|
1349
1526
|
/**
|
|
@@ -1453,125 +1630,6 @@ interface CustomPropertiesInput {
|
|
|
1453
1630
|
}
|
|
1454
1631
|
declare const customPropertiesDesc: CustomDescriptor<CustomPropertiesInput>;
|
|
1455
1632
|
//#endregion
|
|
1456
|
-
//#region src/opc/packer.d.ts
|
|
1457
|
-
interface XmlifyedFile {
|
|
1458
|
-
path: string;
|
|
1459
|
-
data: string | Uint8Array;
|
|
1460
|
-
}
|
|
1461
|
-
/** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
|
|
1462
|
-
declare const ZIP_DEFLATE_LEVEL = 1;
|
|
1463
|
-
/** Default level for media entries (STORE — no compression). */
|
|
1464
|
-
declare const ZIP_STORED_LEVEL = 0;
|
|
1465
|
-
/**
|
|
1466
|
-
* Resolve the ZIP level for a media entry by file-name extension, matching MS
|
|
1467
|
-
* Office: already-compressed raster formats → STORE (0), everything else →
|
|
1468
|
-
* DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
|
|
1469
|
-
* therefore applies only to compressible formats, never forcing DEFLATE onto
|
|
1470
|
-
* pre-compressed assets.
|
|
1471
|
-
*/
|
|
1472
|
-
declare const levelForMediaName: (fileName: string, mediaLevel: number) => number;
|
|
1473
|
-
/** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
|
|
1474
|
-
interface CompressionOptions {
|
|
1475
|
-
/** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
|
|
1476
|
-
xml?: number;
|
|
1477
|
-
/**
|
|
1478
|
-
* DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
|
|
1479
|
-
* formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
|
|
1480
|
-
* Default: 1 (SuperFast).
|
|
1481
|
-
*/
|
|
1482
|
-
media?: number;
|
|
1483
|
-
}
|
|
1484
|
-
/** Options for Packer output methods. */
|
|
1485
|
-
interface PackerOptions<T extends OutputType = "nodebuffer"> {
|
|
1486
|
-
/** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
|
|
1487
|
-
type?: T;
|
|
1488
|
-
/** Custom XML/ZIP file overrides. */
|
|
1489
|
-
overrides?: XmlifyedFile[];
|
|
1490
|
-
/** Compression levels for ZIP entries. */
|
|
1491
|
-
compression?: CompressionOptions;
|
|
1492
|
-
}
|
|
1493
|
-
/**
|
|
1494
|
-
* Asynchronously compress files and convert to the requested output format.
|
|
1495
|
-
*
|
|
1496
|
-
* Uses fflate Web Workers for non-blocking DEFLATE compression.
|
|
1497
|
-
* XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
|
|
1498
|
-
* split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
|
|
1499
|
-
* are STOREd, everything else uses the `media` level (default SuperFast).
|
|
1500
|
-
* Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
|
|
1501
|
-
*/
|
|
1502
|
-
declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
|
|
1503
|
-
/**
|
|
1504
|
-
* Synchronously compress files and convert to the requested output format.
|
|
1505
|
-
*
|
|
1506
|
-
* Uses synchronous DEFLATE compression for maximum throughput.
|
|
1507
|
-
* Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
|
|
1508
|
-
*/
|
|
1509
|
-
declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
|
|
1510
|
-
/**
|
|
1511
|
-
* Create a `ReadableStream<Uint8Array>` from compressed file entries.
|
|
1512
|
-
*
|
|
1513
|
-
* Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
|
|
1514
|
-
* `STORED` entries (media) pass through synchronously.
|
|
1515
|
-
* Works in both Node.js and browsers (Web Streams API).
|
|
1516
|
-
*/
|
|
1517
|
-
declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
|
|
1518
|
-
/**
|
|
1519
|
-
* Compile function provided by each package to convert a file object into a Zippable map.
|
|
1520
|
-
*/
|
|
1521
|
-
type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
|
|
1522
|
-
/**
|
|
1523
|
-
* Packer interface returned by {@link createPacker}.
|
|
1524
|
-
*
|
|
1525
|
-
* Async methods use fflate Web Workers for non-blocking compression.
|
|
1526
|
-
* Sync methods use synchronous compression for maximum throughput in
|
|
1527
|
-
* CLI scripts and build tools.
|
|
1528
|
-
*/
|
|
1529
|
-
interface Packer<TFile> {
|
|
1530
|
-
/** Compile file to Zippable map (synchronous). */
|
|
1531
|
-
compile: CompileFn<TFile>;
|
|
1532
|
-
/** Generic async output — returns the requested OutputType. */
|
|
1533
|
-
pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
|
|
1534
|
-
/** Generic sync output — returns the requested OutputType. */
|
|
1535
|
-
packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
|
|
1536
|
-
/** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
|
|
1537
|
-
toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
|
|
1538
|
-
/** Sync → `Uint8Array`. */
|
|
1539
|
-
toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
|
|
1540
|
-
/** Async → `Promise<string>` (raw ZIP content as string). */
|
|
1541
|
-
toString(file: TFile, options?: PackerOptions): Promise<string>;
|
|
1542
|
-
/** Sync → `string`. */
|
|
1543
|
-
toStringSync(file: TFile, options?: PackerOptions): string;
|
|
1544
|
-
/** Async → `Promise<Buffer>` (Node.js). */
|
|
1545
|
-
toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
|
|
1546
|
-
/** Sync → `Buffer` (Node.js). */
|
|
1547
|
-
toBufferSync(file: TFile, options?: PackerOptions): Buffer;
|
|
1548
|
-
/** Async → `Promise<string>` (base64-encoded). */
|
|
1549
|
-
toBase64(file: TFile, options?: PackerOptions): Promise<string>;
|
|
1550
|
-
/** Sync → `string` (base64-encoded). */
|
|
1551
|
-
toBase64Sync(file: TFile, options?: PackerOptions): string;
|
|
1552
|
-
/** Async → `Promise<Blob>` (browser). */
|
|
1553
|
-
toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
|
|
1554
|
-
/** Sync → `Blob`. */
|
|
1555
|
-
toBlobSync(file: TFile, options?: PackerOptions): Blob;
|
|
1556
|
-
/** Async → `Promise<ArrayBuffer>`. */
|
|
1557
|
-
toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
|
|
1558
|
-
/** Sync → `ArrayBuffer`. */
|
|
1559
|
-
toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
|
|
1560
|
-
/** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
|
|
1561
|
-
toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
|
|
1562
|
-
}
|
|
1563
|
-
/**
|
|
1564
|
-
* Create a Packer object with all output format methods.
|
|
1565
|
-
*
|
|
1566
|
-
* Centralises the ZIP → convert pipeline and the streaming implementation
|
|
1567
|
-
* so that each OOXML package only needs to provide a `compile` function and
|
|
1568
|
-
* a MIME type.
|
|
1569
|
-
*/
|
|
1570
|
-
declare const createPacker: <TFile>(options: {
|
|
1571
|
-
compile: CompileFn<TFile>;
|
|
1572
|
-
mimeType: string;
|
|
1573
|
-
}) => Packer<TFile>;
|
|
1574
|
-
//#endregion
|
|
1575
1633
|
//#region src/util/base64.d.ts
|
|
1576
1634
|
/**
|
|
1577
1635
|
* Shared base64 encode/decode helpers.
|
|
@@ -1867,9 +1925,10 @@ declare const DOCX_PARTS: {
|
|
|
1867
1925
|
};
|
|
1868
1926
|
}, {
|
|
1869
1927
|
readonly path: "word/theme/theme1.xml";
|
|
1928
|
+
readonly contentType: "application/vnd.openxmlformats-officedocument.theme+xml";
|
|
1870
1929
|
readonly presence: {
|
|
1871
1930
|
readonly kind: "conditional";
|
|
1872
|
-
readonly flag: "
|
|
1931
|
+
readonly flag: "freshCompile";
|
|
1873
1932
|
};
|
|
1874
1933
|
}];
|
|
1875
1934
|
};
|
|
@@ -4943,7 +5002,10 @@ declare const hslColorDesc: CustomDescriptor<HslColorOptions>;
|
|
|
4943
5002
|
declare const systemColorDesc: CustomDescriptor<SystemColorOptions>;
|
|
4944
5003
|
declare const presetColorDesc: CustomDescriptor<PresetColorOptions>;
|
|
4945
5004
|
declare const scRgbColorDesc: CustomDescriptor<ScRgbColorOptions>;
|
|
4946
|
-
|
|
5005
|
+
/** Stringify an EG_ColorChoice (direct color element, no `a:solidFill` wrapper).
|
|
5006
|
+
* Used for gradient stops, fg/bg clr, and effect colors. Replaces the former
|
|
5007
|
+
* `getColorDescriptor` which returned a polymorphic `CustomDescriptor<any>`. */
|
|
5008
|
+
declare function stringifyColorChoice(color: SolidFillOptions, ctx: WriteContext): string;
|
|
4947
5009
|
/**
|
|
4948
5010
|
* Parse an EG_ColorChoice from an element's direct children. Handles all six
|
|
4949
5011
|
* color element kinds (srgbClr/schemeClr/hslClr/sysClr/prstClr/scrgbClr) —
|
|
@@ -5001,4 +5063,4 @@ declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
|
|
|
5001
5063
|
declare const presentationLayoutVariablesDesc: CustomDescriptor<PresentationLayoutVariablesOptions>;
|
|
5002
5064
|
declare const diagramExtensionListDesc: CustomDescriptor<DiagramExtensionListOptions>;
|
|
5003
5065
|
//#endregion
|
|
5004
|
-
export { createLineColorList as $,
|
|
5066
|
+
export { createLineColorList as $, createGradientFill as $a, parseArchive as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, scRgbColorDesc as A, strFromU8$1 as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresentationLayoutVariablesOptions as At, createDiagramTextProperties as B, BlipFillMediaData as Ba, OpcCode as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, ZIP_DEFLATE_LEVEL as Ca, convertEmuToInches as Ci, PathCommand as Cn, createPresetColor as Co, createOutline as Cr, AnimationLevelOptions as Ct, parseColorChoice as D, createPacker as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, createColorTransforms as Do, LineEndWidth as Dr, MaxChildrenOptions as Dt, hslColorDesc as E, Zippable$1 as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, ColorTransformOptions as Eo, LineEndType as Er, HierBranchStyle as Et, DiagramExtensionListOptions as F, PatternFillOptions as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createHierBranch as Ft, DiagramStyleLabelOptions as G, GradientFillOptions as Ga, DOCX_PARTS as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelationshipIds as H, GradientStopOptions as Ha, OpcSeverity as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, PresetPattern as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createMaxChildren as It, HueDirection as J, LinearShadeOptions as Ja, PackagePartRegistry as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, GradientShadeOptions as Ka, PART_REGISTRIES as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropertiesOptions as L, createPatternFill as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createOrgChart as Lt, solidFillDesc as M, zipAndConvert as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjustList as Mt, stringifyColorChoice as N, zipSyncAndConvert as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimateOneByOne as Nt, presetColorDesc as O, createZipStream as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, createLineEnd as Or, OrgChartOptions as Ot, systemColorDesc as P, createGroupFill as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimationLevel as Pt, createFillColorList as Q, TileFlipMode as Qa, ParsedArchive as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtensionList as R, createNoFill as Ra, ContentTypeOverrideEntry as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createPreferredChildren as Rt, outlineDesc as S, XmlifyedFile as Sa, PixelPosition as Si, GeomRect as Sn, PresetColorOptions as So, PresetDash as Sr, AnimateOneByOneValue as St, patternFillDesc as T, ZipOptions as Ta, convertEmuToPoints as Ti, PathOptions as Tn, createHslColor as To, LineEndOptions as Tr, HierBranchOptions as Tt, ColorListOptions as U, buildFill as Ua, summarizeOpcIssues as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelationshipIdsOptions as V, FillOptions as Va, OpcIssue as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, extractBlipFillMedia as Wa, validateOpcConsistency as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, PathShadeType as Xa, PartPresence as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, PathShadeOptions as Ya, PartDef as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectColorList as Z, RelativeRect as Za, XLSX_PARTS as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, optionalRelsPart as _a, uniqueUuid as _i, createBlipFill as _n, ScRgbColorOptions as _o, LineCap as _r, createStyleDefinitionHeader as _t, blipDesc as a, AppPropertiesInput as aa, xsdPresetShadow as ai, createTableStyleList as an, createSourceRectangle as ao, createPresetShadowEffect as ar, ColorsDefinitionHeaderOptions as at, shapeLockingDesc as b, Packer as ba, randomBytes as bi, ConnectionSite as bn, createRgbColor as bo, OutlineOptions as br, AdjustOptions as bt, stretchDesc as c, DefaultAttributes as ca, xsdTextAlign as ci, MediaTransformation as cn, SolidFillOptions as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, createOverride as da, xsdUnderlineStyle as di, Transform2DOptions as dn, SystemColor as do, GlowEffectOptions as dr, StyleDefinitionHeaderListOptions as dt, decodeBase64 as ea, xsdLineEndSize as ei, TableStyleOptions as en, createGradientStop as eo, createEffectList as er, createStyleLabel as et, shape3DDesc as f, BaseMediaEntry as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, SystemColorOptions as fo, createGlowEffect as fr, StyleDefinitionHeaderOptions as ft, presetGeometryDesc as g, TargetModeType as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, createSchemeColor as go, CompoundLine as gr, createLayoutDefinitionHeaderList as gt, customGeometryDesc as h, Relationships as ha, uniqueId as hi, createExtentionList as hn, SchemeColorOptions as ho, createFillOverlayEffect as hr, createLayoutDefinitionHeader as ht, presentationLayoutVariablesDesc as i, customPropertiesDesc as ia, xsdPenAlignment as ii, createTableStyle as in, SourceRectangleOptions as io, PresetShadowVal as ir, ColorsDefinitionHeaderListOptions as it, schemeColorDesc as j, unzipSync$1 as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdjust as jt, rgbColorDesc as k, levelForMediaName as ka, convertPixelsToEmu as ki, GeometryGuide as kn, DashStop as kr, PreferredChildrenOptions as kt, tileDesc as l, OverrideAttributes as la, xsdTextAnchor as li, createTransformation as ln, createColorElement as lo, InnerShadowEffectOptions as lr, LayoutDefinitionHeaderListOptions as lt, transform2DDesc as m, RelationshipType as ma, hashedId as mi, stringifyStretch as mn, SchemeColor as mo, FillOverlayEffectOptions as mr, createColorsDefinitionHeaderList as mt, diagramRelationshipIdsDesc as n, CustomPropertiesInput as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, TileOptions as no, createReflectionEffect as nr, createTextFillColorList as nt, blipFillDesc as o, AppPropertiesOptions as oa, xsdRectAlignment as oi, parseTableStyleList as on, BlipEffectsOptions as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, Media as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, createSystemColor as po, BlendMode as pr, createColorsDefinitionHeader as pt, FontCollectionIndex as q, GradientStop as qa, PPTX_PARTS as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, CustomPropertyOptions as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, createTileInfo as ro, PresetShadowEffectOptions as rr, createTextLineColorList as rt, sourceRectangleDesc as s, appPropertiesDesc as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, createBlipEffects as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtensionListDesc as t, encodeBase64 as ta, xsdMaterialType as ti, TableStyleRegion as tn, TileAlignment as to, ReflectionEffectOptions as tr, createTextEffectColorList as tt, bevelDesc as u, createDefault as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, createSolidFill as uo, createInnerShadowEffect as ur, LayoutDefinitionHeaderOptions as ut, groupLockingDesc as v, CompileFn as va, derivePasswordHash as vi, BlipOptions as vn, createScRgbColor as vo, LineJoin as vr, createStyleDefinitionHeaderList as vt, gradientFillDesc as w, ZIP_STORED_LEVEL as wa, convertEmuToPixels as wi, PathFillMode as wn, HslColorOptions as wo, LineEndLength as wr, AnimationLevelValue as wt, effectListDesc as x, PackerOptions as xa, EmuPosition as xi, CustomGeometryOptions as xn, PresetColor as xo, PenAlignment as xr, AnimateOneByOneOptions as xt, pictureLockingDesc as y, CompressionOptions as ya, hashPasswordAgile as yi, createBlip as yn, RgbColorOptions as yo, OutlineFillProperties as yr, AdjustListOptions as yt, createDiagramShape3D as z, BlipFillConfigOptions as za, buildContentTypeOverrides as zi, CameraOptions as zn, getVideoRefs as zr, createPresentationLayoutVariables as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-
|
|
2
|
-
import { _ as
|
|
3
|
-
import { $ as createLineColorList, $a as
|
|
4
|
-
import { A as
|
|
1
|
+
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-CN0YjNSx.mjs";
|
|
2
|
+
import { _ as Descriptor, a as diffTagSets, c as FIELD_SPECS, d as boolEncode, f as enumDecode, g as CustomDescriptor, h as stringify, i as checkOrder, l as findFieldSpec, m as parse, n as OrderViolation, o as roundTripFields, p as enumEncode, r as RoundTripResult, s as DescriptorFieldSpec, t as FieldConsistencyReport, u as boolDecode, v as ReadContext, y as WriteContext } from "./index-CpNwAcem.mjs";
|
|
3
|
+
import { $ as createLineColorList, $a as createGradientFill, $i as parseArchive, $n as calculateEffectExtent, $r as xsdLineCap, $t as TableStyleListOptions, A as scRgbColorDesc, Aa as strFromU8, Ai as convertPointsToEmu, An as stringifyAdjustmentValues, Ar as createCustomDash, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as BlipFillMediaData, Bi as OpcCode, Bn as LightRigOptions, Br as hasPlaceholders, Bt as GraphicFrameLockingOptions, C as fillDesc, Ca as ZIP_DEFLATE_LEVEL, Ci as convertEmuToInches, Cn as PathCommand, Co as createPresetColor, Cr as createOutline, Ct as AnimationLevelOptions, D as parseColorChoice, Da as createPacker, Di as convertInchesToTwip, Dn as PresetGeometryOptions, Do as createColorTransforms, Dr as LineEndWidth, Dt as MaxChildrenOptions, E as hslColorDesc, Ea as Zippable, Ei as convertInchesToEmu, En as createCustomGeometry, Eo as ColorTransformOptions, Er as LineEndType, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as PatternFillOptions, Fi as convertUniversalMeasureToTwip, Fn as BevelPresetType, Fr as findAndReplaceImagePlaceholders, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as GradientFillOptions, Gi as DOCX_PARTS, Gn as createScene3D, Gr as replaceMediaPlaceholders, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as GradientStopOptions, Hi as OpcSeverity, Hn as Scene3DOptions, Hr as replaceChartPlaceholders, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as PresetPattern, Ii as parseUniversalMeasure, In as createBevel, Ir as formatId, It as createMaxChildren, J as HueDirection, Ja as LinearShadeOptions, Ji as PackagePartRegistry, Jn as EffectDagOptions, Jr as replaceVideoPlaceholders, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as GradientShadeOptions, Ki as PART_REGISTRIES, Kn as createSoftEdgeEffect, Kr as replaceNumberingPlaceholders, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as createPatternFill, Li as compileMapping, Ln as createBottomBevel, Lr as getMediaRefs, Lt as createOrgChart, M as solidFillDesc, Ma as zipAndConvert, Mi as convertToEmu, Mn as Shape3DOptions, Mr as SmartArtRelOptions, Mt as createAdjustList, N as stringifyColorChoice, Na as zipSyncAndConvert, Ni as convertToTwip, Nn as createShape3D, Nr as addSmartArtRelationships, Nt as createAnimateOneByOne, O as presetColorDesc, Oa as createZipStream, Oi as convertMillimetersToTwip, On as stringifyPresetGeometry, Or as createLineEnd, Ot as OrgChartOptions, P as systemColorDesc, Pa as createGroupFill, Pi as convertUniversalMeasureToEmu, Pn as BevelOptions, Pr as collectPlaceholderKeys, Pt as createAnimationLevel, Q as createFillColorList, Qa as TileFlipMode, Qi as ParsedArchive, Qn as EffectListOptions, Qr as xsdEffectContainer, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as createNoFill, Ri as ContentTypeOverrideEntry, Rn as BackdropOptions, Rr as getReferencedMedia, Rt as createPreferredChildren, S as outlineDesc, Sa as XmlifyedFile, Si as PixelPosition, Sn as GeomRect, So as PresetColorOptions, Sr as PresetDash, St as AnimateOneByOneValue, T as patternFillDesc, Ta as ZipOptions, Ti as convertEmuToPoints, Tn as PathOptions, To as createHslColor, Tr as LineEndOptions, Tt as HierBranchOptions, U as ColorListOptions, Ua as buildFill, Ui as summarizeOpcIssues, Un as SphereCoords, Ur as replaceHyperlinkPlaceholders, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as FillOptions, Vi as OpcIssue, Vn as Point3D, Vr as replaceAllPlaceholders, Vt as GroupLockingOptions, W as ColorMethod, Wa as extractBlipFillMedia, Wi as validateOpcConsistency, Wn as Vector3D, Wr as replaceImagePlaceholders, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as PathShadeType, Xi as PartPresence, Xn as BlurEffectOptions, Xr as xsdBlendMode, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as PathShadeOptions, Yi as PartDef, Yn as createEffectDag, Yr as invertMap, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as RelativeRect, Zi as XLSX_PARTS, Zn as EffectExtent, Zr as xsdCompoundLine, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _a as optionalRelsPart, _i as uniqueUuid, _n as createBlipFill, _o as ScRgbColorOptions, _r as LineCap, _t as createStyleDefinitionHeader, a as blipDesc, aa as AppPropertiesInput, ai as xsdPresetShadow, an as createTableStyleList, ao as createSourceRectangle, ar as createPresetShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, ba as Packer, bi as randomBytes, bn as ConnectionSite, bo as createRgbColor, br as OutlineOptions, bt as AdjustOptions, c as stretchDesc, ca as DefaultAttributes, ci as xsdTextAlign, cn as MediaTransformation, co as SolidFillOptions, cr as createOuterShadowEffect, ct as DiagramNameOptions, d as scene3DDesc, da as createOverride, di as xsdUnderlineStyle, dn as Transform2DOptions, do as SystemColor, dr as GlowEffectOptions, dt as StyleDefinitionHeaderListOptions, ea as decodeBase64, ei as xsdLineEndSize, en as TableStyleOptions, eo as createGradientStop, er as createEffectList, et as createStyleLabel, f as shape3DDesc, fa as BaseMediaEntry, fi as xsdVerticalMergeRev, fn as createGroupTransform2D, fo as SystemColorOptions, fr as createGlowEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, ga as TargetModeType, gi as uniqueNumericIdCreator, gn as BlipFillOptions, go as createSchemeColor, gr as CompoundLine, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, ha as Relationships, hi as uniqueId, hn as createExtentionList, ho as SchemeColorOptions, hr as createFillOverlayEffect, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, ia as customPropertiesDesc, ii as xsdPenAlignment, in as createTableStyle, io as SourceRectangleOptions, ir as PresetShadowVal, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, ja as unzipSync, ji as convertPositionToEmu, jn as PresetMaterialType, jr as IdFormat, jt as createAdjust, k as rgbColorDesc, ka as levelForMediaName, ki as convertPixelsToEmu, kn as GeometryGuide, kr as DashStop, kt as PreferredChildrenOptions, l as tileDesc, la as OverrideAttributes, li as xsdTextAnchor, ln as createTransformation, lo as createColorElement, lr as InnerShadowEffectOptions, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, ma as RelationshipType, mi as hashedId, mn as stringifyStretch, mo as SchemeColor, mr as FillOverlayEffectOptions, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, na as CustomPropertiesInput, ni as xsdPathFillMode, nn as TableTextStyleOptions, no as TileOptions, nr as createReflectionEffect, nt as createTextFillColorList, o as blipFillDesc, oa as AppPropertiesOptions, oi as xsdRectAlignment, on as parseTableStyleList, oo as BlipEffectsOptions, or as OuterShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pa as Media, pi as UniqueNumericIdCreator, pn as createTransform2D, po as createSystemColor, pr as BlendMode, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as GradientStop, qi as PPTX_PARTS, qn as EffectContainerType, qr as replaceSmartArtPlaceholders, qt as createShapeLocking, r as diagramStyleDesc, ra as CustomPropertyOptions, ri as xsdPattern, rn as ThemeableLineStyleOptions, ro as createTileInfo, rr as PresetShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sa as appPropertiesDesc, si as xsdStrikeStyle, sn as MediaDataTransformation, so as createBlipEffects, sr as RectAlignment, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, ta as encodeBase64, ti as xsdMaterialType, tn as TableStyleRegion, to as TileAlignment, tr as ReflectionEffectOptions, tt as createTextEffectColorList, u as bevelDesc, ua as createDefault, ui as xsdTextCaps, un as GroupTransform2DOptions, uo as createSolidFill, ur as createInnerShadowEffect, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, va as CompileFn, vi as derivePasswordHash, vn as BlipOptions, vo as createScRgbColor, vr as LineJoin, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wa as ZIP_STORED_LEVEL, wi as convertEmuToPixels, wn as PathFillMode, wo as HslColorOptions, wr as LineEndLength, wt as AnimationLevelValue, x as effectListDesc, xa as PackerOptions, xi as EmuPosition, xn as CustomGeometryOptions, xo as PresetColor, xr as PenAlignment, xt as AnimateOneByOneOptions, y as pictureLockingDesc, ya as CompressionOptions, yi as hashPasswordAgile, yn as createBlip, yo as RgbColorOptions, yr as OutlineFillProperties, yt as AdjustListOptions, z as createDiagramShape3D, za as BlipFillConfigOptions, zi as buildContentTypeOverrides, zn as CameraOptions, zr as getVideoRefs, zt as createPresentationLayoutVariables } from "./index-Dl4z-M1N.mjs";
|
|
4
|
+
import { A as OutputType, C as XmlNamespaceConfig, D as parseCorePropsElement, E as buildCorePropertiesXmlString, M as DataType, N as isBase64DataURL, O as OoxmlMimeType, P as toUint8Array, S as PPTX_NS, T as buildCorePropertiesXml, _ as RenderedParagraphNode, a as getNextRelationshipIndex, b as createReplacer, c as createTextElementContents, d as patchSpaceAttribute, f as toJson, g as createTraverser, h as createTokenReplacer, i as appendRelationship, j as convertOutput, k as OutputByType, l as getFirstLevelElements, m as createSplitInject, n as PlaceholderDelimiters, o as appendContentType, p as TokenNotFoundError, r as applyCorePropertiesOverride, s as appendOverride, t as BasePatchOptions, u as nextNumericId, v as createRunRenderer, w as CorePropertiesOptions, x as DOCX_NS, y as ReplacerConfig } from "./index-BkEFbS8B.mjs";
|
|
5
5
|
import { a as PointPropertySetOptions, c as stringifyDataModel, d as getColorXml, f as getLayoutXml, g as STYLE_CATEGORIES, h as LAYOUT_CATEGORIES, i as SmartArtData, l as stringifyConnection, m as COLOR_CATEGORIES, n as createDataModel, o as stringifyPoint, p as getStyleXml, r as SmartArtCollection, s as stringifyTransPoint, t as TreeNode, u as DEFAULT_DRAWING_XML } from "./index-CsQP7Cl4.mjs";
|
|
6
|
-
import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-
|
|
6
|
+
import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-3STznXzZ.mjs";
|
|
7
7
|
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-Dqj8cbcy.mjs";
|
|
8
|
-
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type AppPropertiesInput, type AppPropertiesOptions, AxisChartType, type BackdropOptions, type BasePatchOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleSeriesData, COLOR_CATEGORIES, type CameraOptions, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, type ColorListOptions, ColorMethod, type ColorSchemeOptions, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, type CompileFn, CompoundLine, type CompressionOptions, type ConnectionSite, type ContentTypeOverrideEntry, type CorePropertiesOptions, type CustomDescriptor, type CustomGeometryOptions, type CustomPropertiesInput, type CustomPropertyOptions, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, DOCX_PARTS, type DashStop, DataLabelPosition, DataLabelsOptions, DataType, type DefaultAttributes, type Descriptor, type DescriptorFieldSpec,
|
|
8
|
+
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type AppPropertiesInput, type AppPropertiesOptions, AxisChartType, type BackdropOptions, type BaseMediaEntry, type BasePatchOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleSeriesData, COLOR_CATEGORIES, type CameraOptions, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, type ColorListOptions, ColorMethod, type ColorSchemeOptions, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, type CompileFn, CompoundLine, type CompressionOptions, type ConnectionSite, type ContentTypeOverrideEntry, type CorePropertiesOptions, type CustomDescriptor, type CustomGeometryOptions, type CustomPropertiesInput, type CustomPropertyOptions, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, DOCX_PARTS, type DashStop, DataLabelPosition, DataLabelsOptions, DataType, type DefaultAttributes, type Descriptor, type DescriptorFieldSpec, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, EmuPosition, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, FIELD_SPECS, type FieldConsistencyReport, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type FontSchemeOptions, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, IdFormat, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, Media, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, OoxmlMimeType, type OpcCode, type OpcIssue, type OpcSeverity, type OrderViolation, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type OutputByType, type OutputType, type OverrideAttributes, PART_REGISTRIES, PPTX_NS, PPTX_PARTS, type PackagePartRegistry, type Packer, type PackerOptions, ParsedArchive, type PartDef, type PartPresence, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, type PictureLockingOptions, PixelPosition, type PlaceholderDelimiters, type Point3D, PointPropertySetOptions, PositivePercentage, PositiveUniversalMeasure, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, type ReadContext, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, type RoundTripResult, STYLE_CATEGORIES, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TargetModeType, ThemeColor, ThemeFont, type ThemeOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, TimeUnit, TokenNotFoundError, type Transform2DOptions, TreeNode, TrendlineOptions, TrendlineType, UniqueNumericIdCreator, UniversalMeasure, type Vector3D, View3DOptions, type WriteContext, XLSX_PARTS, type XmlNamespaceConfig, type XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appPropertiesDesc, appendContentType, appendOverride, appendRelationship, applyCorePropertiesOverride, bevelDesc, blipDesc, blipFillDesc, boolDecode, boolEncode, buildContentTypeOverrides, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, calculateEffectExtent, chartSpaceDesc, checkOrder, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertPositionToEmu, convertToEmu, convertToTwip, convertUniversalMeasureToEmu, convertUniversalMeasureToTwip, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDataModel, createDefault, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextElementContents, createTextFillColorList, createTextLineColorList, createThemeXml, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, customGeometryDesc, customPropertiesDesc, dateTimeValue, decimalNumber, decodeBase64, derivePasswordHash, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, diffTagSets, effectListDesc, eighthPointMeasureValue, encodeBase64, enumDecode, enumEncode, extractBlipFillMedia, fillDesc, findAndReplaceImagePlaceholders, findFieldSpec, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getMediaRefs, getNextRelationshipIndex, getReferencedMedia, getStyleXml, getVideoRefs, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, hslColorDesc, invertMap, isBase64DataURL, levelForMediaName, longHexNumber, measurementOrPercentValue, nextNumericId, optionalRelsPart, outlineDesc, parse, parseArchive, parseColorChoice, parseCorePropsElement, parseTableStyleList, parseUniversalMeasure, patchSpaceAttribute, patternFillDesc, percentageValue, pictureLockingDesc, pointMeasureValue, positiveUniversalMeasureValue, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, randomBytes, replaceAllPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, rgbColorDesc, roundTripFields, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, solidFillDesc, sourceRectangleDesc, strFromU8, stretchDesc, stringify, stringifyAdjustmentValues, stringifyColorChoice, stringifyConnection, stringifyDataModel, stringifyPoint, stringifyPresetGeometry, stringifyStretch, stringifyTransPoint, summarizeOpcIssues, systemColorDesc, themeDesc, tileDesc, toJson, toUint8Array, transform2DDesc, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, validateOpcConsistency, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { $ as stringifyColorChoice, $n as createTileInfo, $r as unzipSync, $t as convertToTwip, A as customGeometryDesc, An as createFillOverlayEffect, Ar as SchemeColor, At as createHierBranch, B as patternFillDesc, Bn as createLineEnd, Br as PART_REGISTRIES, Bt as createTableStyleList, C as diagramStyleDesc, Cn as PresetShadowVal, Cr as uniqueUuid, Ct as AnimateOneByOneValue, D as shape3DDesc, Dn as createInnerShadowEffect, Dr as createSolidFill, Dt as createAdjustList, E as scene3DDesc, En as createOuterShadowEffect, Er as createColorElement, Et as createAdjust, F as shapeLockingDesc, Fn as PresetDash, Fr as createPresetColor, Ft as createGraphicFrameLocking, G as tileDesc, Gn as extractBlipFillMedia, Gr as ParsedArchive, Gt as convertEmuToPoints, H as blipFillDesc, Hn as createGroupFill, Hr as XLSX_PARTS, Ht as createTransformation, I as effectListDesc, In as createOutline, Ir as createHslColor, It as createGroupLocking, J as presetColorDesc, Jn as PathShadeType, Jr as ZIP_STORED_LEVEL, Jt as convertMillimetersToTwip, K as hslColorDesc, Kn as PresetPattern, Kr as parseArchive, Kt as convertInchesToEmu, L as outlineDesc, Ln as LineEndLength, Lr as createColorTransforms, Lt as createPictureLocking, M as graphicFrameLockingDesc, Mn as LineCap, Mr as createScRgbColor, Mt as createOrgChart, N as groupLockingDesc, Nn as LineJoin, Nr as createRgbColor, Nt as createPreferredChildren, O as groupTransform2DDesc, On as createGlowEffect, Or as SystemColor, Ot as createAnimateOneByOne, P as pictureLockingDesc, Pn as PenAlignment, Pr as PresetColor, Pt as createPresentationLayoutVariables, Q as solidFillDesc, Qn as TileAlignment, Qr as strFromU8, Qt as convertToEmu, R as fillDesc, Rn as LineEndType, Rr as buildContentTypeOverrides, Rt as createShapeLocking, S as diagramRelationshipIdsDesc, Sn as createReflectionEffect, Sr as uniqueNumericIdCreator, St as createStyleDefinitionHeaderList, T as bevelDesc, Tn as RectAlignment, Tr as toUint8Array, Tt as HierBranchStyle, U as sourceRectangleDesc, Un as createNoFill, Ur as summarizeOpcIssues, Ut as convertEmuToInches, V as blipDesc, Vn as createCustomDash, Vr as PPTX_PARTS, Vt as parseTableStyleList, W as stretchDesc, Wn as buildFill, Wr as validateOpcConsistency, Wt as convertEmuToPixels, X as scRgbColorDesc, Xn as createGradientFill, Xr as createZipStream, Xt as convertPointsToEmu, Y as rgbColorDesc, Yn as TileFlipMode, Yr as createPacker, Yt as convertPixelsToEmu, Z as schemeColorDesc, Zn as createGradientStop, Zr as levelForMediaName, Zt as convertPositionToEmu, _ as derivePasswordHash, _n as createScene3D, _r as xsdVerticalMergeRev, _t as createColorsDefinitionHeader, a as getMediaRefs, ai as encodeBase64, an as stringifyStretch, ar as xsdLineEndSize, at as ColorMethod, b as compileMapping, bn as createEffectList, br as hashedId, bt as createLayoutDefinitionHeaderList, c as hasPlaceholders, ci as createDefault, cn as createExtentionList, cr as xsdPattern, ct as StyleMatrixIndex, d as replaceHyperlinkPlaceholders, di as Relationships, dn as stringifyAdjustmentValues, dr as xsdRectAlignment, dt as createFillColorList, ei as zipAndConvert, en as convertUniversalMeasureToEmu, er as invertMap, et as systemColorDesc, f as replaceImagePlaceholders, fi as TargetModeType, fn as PresetMaterialType, fr as xsdStrikeStyle, ft as createLineColorList, g as replaceVideoPlaceholders, gn as createBottomBevel, gr as xsdUnderlineStyle, gt as createTextLineColorList, h as replaceSmartArtPlaceholders, hn as createBevel, hr as xsdTextCaps, ht as createTextFillColorList, i as formatId, ii as decodeBase64, in as createTransform2D, ir as xsdLineCap, it as createDiagramRelationshipIds, j as presetGeometryDesc, jn as CompoundLine, jr as createSchemeColor, jt as createMaxChildren, k as transform2DDesc, kn as BlendMode, kr as createSystemColor, kt as createAnimationLevel, l as replaceAllPlaceholders, li as createOverride, ln as createCustomGeometry, lr as xsdPenAlignment, lt as createDiagramStyle, m as replaceNumberingPlaceholders, mn as BevelPresetType, mr as xsdTextAnchor, mt as createTextEffectColorList, n as collectPlaceholderKeys, ni as OoxmlMimeType, nn as parseUniversalMeasure, nr as xsdCompoundLine, nt as createDiagramShape3D, o as getReferencedMedia, oi as customPropertiesDesc, on as createBlipFill, or as xsdMaterialType, ot as FontCollectionIndex, p as replaceMediaPlaceholders, pi as optionalRelsPart, pn as createShape3D, pr as xsdTextAlign, pt as createStyleLabel, q as parseColorChoice, qn as createPatternFill, qr as ZIP_DEFLATE_LEVEL, qt as convertInchesToTwip, r as findAndReplaceImagePlaceholders, ri as convertOutput, rn as createGroupTransform2D, rr as xsdEffectContainer, rt as createDiagramTextProperties, s as getVideoRefs, si as appPropertiesDesc, sn as createBlip, sr as xsdPathFillMode, st as HueDirection, t as addSmartArtRelationships, ti as zipSyncAndConvert, tn as convertUniversalMeasureToTwip, tr as xsdBlendMode, tt as createDiagramExtensionList, u as replaceChartPlaceholders, ui as Media, un as stringifyPresetGeometry, ur as xsdPresetShadow, ut as createEffectColorList, v as hashPasswordAgile, vn as createEffectDag, vr as createSourceRectangle, vt as createColorsDefinitionHeaderList, w as presentationLayoutVariablesDesc, wn as createPresetShadowEffect, wr as isBase64DataURL, wt as AnimationLevelValue, x as diagramExtensionListDesc, xn as createSoftEdgeEffect, xr as uniqueId, xt as createStyleDefinitionHeader, y as randomBytes, yn as calculateEffectExtent, yr as createBlipEffects, yt as createLayoutDefinitionHeader, z as gradientFillDesc, zn as LineEndWidth, zr as DOCX_PARTS, zt as createTableStyle } from "./src-BPRAxccL.mjs";
|
|
2
|
+
import { _ as DOCX_NS, a as appendOverride, b as buildCorePropertiesXmlString, c as createRunRenderer, d as createSplitInject, f as createTextElementContents, g as toJson, h as patchSpaceAttribute, i as appendContentType, l as createTokenReplacer, m as nextNumericId, n as appendRelationship, o as createReplacer, p as getFirstLevelElements, r as getNextRelationshipIndex, s as createTraverser, t as applyCorePropertiesOverride, u as TokenNotFoundError, v as PPTX_NS, x as parseCorePropsElement, y as buildCorePropertiesXml } from "./patch-DEPPafeB.mjs";
|
|
3
3
|
import { a as stringifyDataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as stringifyTransPoint, l as getLayoutXml, n as SmartArtCollection, o as stringifyConnection, p as STYLE_CATEGORIES, r as stringifyPoint, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-DCY-Vdv7.mjs";
|
|
4
4
|
import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "./chart-DwE8FCFk.mjs";
|
|
5
|
-
import { a as roundTripFields, c as
|
|
5
|
+
import { a as roundTripFields, c as enumDecode, d as stringify, i as diffTagSets, l as enumEncode, n as findFieldSpec, o as boolDecode, r as checkOrder, s as boolEncode, t as FIELD_SPECS, u as parse } from "./descriptor-DAER86Rt.mjs";
|
|
6
6
|
import { i as DEFAULT_COLORS, n as createThemeXml, r as buildThemeXml, t as themeDesc } from "./theme-CiNzdl-9.mjs";
|
|
7
7
|
import { _ as twipsMeasureValue, a as eighthPointMeasureValue, b as unsignedDecimalNumber, c as hpsMeasureValue, d as percentageValue, f as pointMeasureValue, g as signedTwipsMeasureValue, h as signedHpsMeasureValue, i as decimalNumber, l as longHexNumber, m as shortHexNumber, n as ThemeFont, o as hexBinary, p as positiveUniversalMeasureValue, r as dateTimeValue, s as hexColorValue, t as ThemeColor, u as measurementOrPercentValue, v as uCharHexNumber, y as universalMeasureValue } from "./values-CVIZcTRw.mjs";
|
|
8
|
-
export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, COLOR_CATEGORIES, ChartCollection, ColorMethod, CompoundLine, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, DOCX_PARTS, DataLabelPosition,
|
|
8
|
+
export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, COLOR_CATEGORIES, ChartCollection, ColorMethod, CompoundLine, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, DOCX_PARTS, DataLabelPosition, ErrorBarDirection, ErrorBarType, ErrorValueType, FIELD_SPECS, FontCollectionIndex, HierBranchStyle, HueDirection, LAYOUT_CATEGORIES, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, Media, OoxmlMimeType, PART_REGISTRIES, PPTX_NS, PPTX_PARTS, ParsedArchive, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, Relationships, STYLE_CATEGORIES, SchemeColor, SmartArtCollection, StyleMatrixIndex, SystemColor, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, TimeUnit, TokenNotFoundError, TrendlineType, XLSX_PARTS, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, addSmartArtRelationships, appPropertiesDesc, appendContentType, appendOverride, appendRelationship, applyCorePropertiesOverride, bevelDesc, blipDesc, blipFillDesc, boolDecode, boolEncode, buildContentTypeOverrides, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, calculateEffectExtent, chartSpaceDesc, checkOrder, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertPositionToEmu, convertToEmu, convertToTwip, convertUniversalMeasureToEmu, convertUniversalMeasureToTwip, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDataModel, createDefault, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextElementContents, createTextFillColorList, createTextLineColorList, createThemeXml, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, customGeometryDesc, customPropertiesDesc, dateTimeValue, decimalNumber, decodeBase64, derivePasswordHash, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, diffTagSets, effectListDesc, eighthPointMeasureValue, encodeBase64, enumDecode, enumEncode, extractBlipFillMedia, fillDesc, findAndReplaceImagePlaceholders, findFieldSpec, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getMediaRefs, getNextRelationshipIndex, getReferencedMedia, getStyleXml, getVideoRefs, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, hslColorDesc, invertMap, isBase64DataURL, levelForMediaName, longHexNumber, measurementOrPercentValue, nextNumericId, optionalRelsPart, outlineDesc, parse, parseArchive, parseColorChoice, parseCorePropsElement, parseTableStyleList, parseUniversalMeasure, patchSpaceAttribute, patternFillDesc, percentageValue, pictureLockingDesc, pointMeasureValue, positiveUniversalMeasureValue, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, randomBytes, replaceAllPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, rgbColorDesc, roundTripFields, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, solidFillDesc, sourceRectangleDesc, strFromU8, stretchDesc, stringify, stringifyAdjustmentValues, stringifyColorChoice, stringifyConnection, stringifyDataModel, stringifyPoint, stringifyPresetGeometry, stringifyStretch, stringifyTransPoint, summarizeOpcIssues, systemColorDesc, themeDesc, tileDesc, toJson, toUint8Array, transform2DDesc, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, validateOpcConsistency, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|
package/dist/patch/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { type BasePatchOptions, DOCX_NS, PPTX_NS, type PlaceholderDelimiters, type RenderedParagraphNode, type ReplacerConfig, TokenNotFoundError, type XmlNamespaceConfig, appendContentType, appendRelationship, applyCorePropertiesOverride, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, patchSpaceAttribute, toJson };
|
|
1
|
+
import { C as XmlNamespaceConfig, S as PPTX_NS, _ as RenderedParagraphNode, a as getNextRelationshipIndex, b as createReplacer, c as createTextElementContents, d as patchSpaceAttribute, f as toJson, g as createTraverser, h as createTokenReplacer, i as appendRelationship, l as getFirstLevelElements, m as createSplitInject, n as PlaceholderDelimiters, o as appendContentType, p as TokenNotFoundError, r as applyCorePropertiesOverride, s as appendOverride, t as BasePatchOptions, u as nextNumericId, v as createRunRenderer, x as DOCX_NS, y as ReplacerConfig } from "../index-BkEFbS8B.mjs";
|
|
2
|
+
export { type BasePatchOptions, DOCX_NS, PPTX_NS, type PlaceholderDelimiters, type RenderedParagraphNode, type ReplacerConfig, TokenNotFoundError, type XmlNamespaceConfig, appendContentType, appendOverride, appendRelationship, applyCorePropertiesOverride, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, nextNumericId, patchSpaceAttribute, toJson };
|
package/dist/patch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { DOCX_NS, PPTX_NS, TokenNotFoundError, appendContentType, appendRelationship, applyCorePropertiesOverride, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, patchSpaceAttribute, toJson };
|
|
1
|
+
import { _ as DOCX_NS, a as appendOverride, c as createRunRenderer, d as createSplitInject, f as createTextElementContents, g as toJson, h as patchSpaceAttribute, i as appendContentType, l as createTokenReplacer, m as nextNumericId, n as appendRelationship, o as createReplacer, p as getFirstLevelElements, r as getNextRelationshipIndex, s as createTraverser, t as applyCorePropertiesOverride, u as TokenNotFoundError, v as PPTX_NS } from "../patch-DEPPafeB.mjs";
|
|
2
|
+
export { DOCX_NS, PPTX_NS, TokenNotFoundError, appendContentType, appendOverride, appendRelationship, applyCorePropertiesOverride, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, nextNumericId, patchSpaceAttribute, toJson };
|