@pixerate/editor 0.51.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart/index.cjs +315 -7
- package/dist/chart/index.cjs.map +1 -1
- package/dist/chart/index.d.cts +107 -5
- package/dist/chart/index.d.ts +107 -5
- package/dist/chart/index.js +312 -4
- package/dist/chart/index.js.map +1 -1
- package/dist/{chunk-2Q46FKZK.cjs → chunk-2DEBI6KU.cjs} +23 -23
- package/dist/{chunk-2Q46FKZK.cjs.map → chunk-2DEBI6KU.cjs.map} +1 -1
- package/dist/{chunk-3JNRQVTS.cjs → chunk-3ZBAXET6.cjs} +323 -3
- package/dist/chunk-3ZBAXET6.cjs.map +1 -0
- package/dist/{chunk-T6XU4B54.js → chunk-5N6AQCVB.js} +6 -6
- package/dist/{chunk-MR2764X2.js → chunk-AGGUNWT6.js} +2 -322
- package/dist/chunk-AGGUNWT6.js.map +1 -0
- package/dist/{chunk-LNKZPIQD.cjs → chunk-M5Z77GFH.cjs} +21 -21
- package/dist/{chunk-LNKZPIQD.cjs.map → chunk-M5Z77GFH.cjs.map} +1 -1
- package/dist/{chunk-3CC7OPUQ.cjs → chunk-O6FO6VI3.cjs} +3 -323
- package/dist/chunk-O6FO6VI3.cjs.map +1 -0
- package/dist/{chunk-GJBIVWB2.js → chunk-UAW5FEMD.js} +322 -2
- package/dist/chunk-UAW5FEMD.js.map +1 -0
- package/dist/{chunk-DQPBQXKG.js → chunk-YMKPMXZ4.js} +6 -6
- package/dist/export/index.cjs +4 -4
- package/dist/export/index.js +3 -3
- package/dist/extensions/index.cjs +4 -4
- package/dist/extensions/index.js +3 -3
- package/dist/index.cjs +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -110
- package/dist/index.d.ts +3 -110
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/zip-4nG0YAH7.d.cts +110 -0
- package/dist/zip-4nG0YAH7.d.ts +110 -0
- package/package.json +1 -1
- package/dist/chunk-3CC7OPUQ.cjs.map +0 -1
- package/dist/chunk-3JNRQVTS.cjs.map +0 -1
- package/dist/chunk-GJBIVWB2.js.map +0 -1
- package/dist/chunk-MR2764X2.js.map +0 -1
- /package/dist/{chunk-T6XU4B54.js.map → chunk-5N6AQCVB.js.map} +0 -0
- /package/dist/{chunk-DQPBQXKG.js.map → chunk-YMKPMXZ4.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -19,6 +19,8 @@ import { I as ImportAdapterRegistry, a as ImportOutcome, F as FileLike, b as Imp
|
|
|
19
19
|
export { c as FindImportAdapterQuery, d as ImportContext, e as ImportError, f as ImportErrorCode, g as ImportFileOptions, h as ImportInput, i as ImportTarget, R as RegisterImportAdapterOptions, j as createImportContext } from './registry-CEgwXED1.cjs';
|
|
20
20
|
import { Schema, Slice } from '@tiptap/pm/model';
|
|
21
21
|
import { EditorView } from '@tiptap/pm/view';
|
|
22
|
+
import { Z as ZipReadOptions } from './zip-4nG0YAH7.cjs';
|
|
23
|
+
export { D as DEFAULT_ZIP_MAX_ENTRIES, a as DEFAULT_ZIP_MAX_TOTAL_SIZE, b as ZipArchive, c as ZipEntry, d as ZipError, e as ZipErrorCode, i as isUnsafeZipPath, r as readZip, z as zipCrc32 } from './zip-4nG0YAH7.cjs';
|
|
22
24
|
export { DiffChange, DiffOpType, DiffRun, DiffSequencesOptions, diffChanges, diffSequences } from './compare/index.cjs';
|
|
23
25
|
export { C as CompareDocumentsOptions, a as CompareDocumentsResult, b as CompareSource, c as CompareSummary, d as compareDocuments, e as compareHtml } from './documents-Gp7wb0Me.cjs';
|
|
24
26
|
export { DOCX_ANONYMOUS_AUTHOR, DOCX_EXPORT_MIME_TYPE, DocxCommentSource, DocxExportController, DocxExportControllerOptions, DocxExportEditorLike, DocxExportIssue, DocxExportIssueKind, DocxExportOptions, DocxExportReport, DocxExportResult, DocxExportState, DocxJSONMark, DocxJSONNode, DocxPackagePart, XmlAttrs, XmlWriter, ZipWriteEntry, ZipWriteOptions, createDocxExportController, createDocxParts, deflateRaw, docxFileName, downloadBlob, escapeXmlAttr, escapeXmlText, exportDocx, exportDocxBlob, stripInvalidXmlChars, writeZip } from './export/index.cjs';
|
|
@@ -254,115 +256,6 @@ interface ImportStructureSummary {
|
|
|
254
256
|
*/
|
|
255
257
|
declare function summarizeImportStructure(outcomes: readonly ImportOutcome<DocumentImport>[]): ImportStructureSummary | null;
|
|
256
258
|
|
|
257
|
-
/**
|
|
258
|
-
* Minimal, dependency-free ZIP reader used by the DOCX and zipped-export
|
|
259
|
-
* import adapters.
|
|
260
|
-
*
|
|
261
|
-
* - Reads the central directory (including ZIP64 end records and extra
|
|
262
|
-
* fields), so sizes come from the authoritative directory rather than local
|
|
263
|
-
* headers or data descriptors.
|
|
264
|
-
* - Supports stored (method 0) and deflate (method 8) entries; deflate is
|
|
265
|
-
* inflated with the platform `DecompressionStream("deflate-raw")` (modern
|
|
266
|
-
* browsers, Node ≥ 18).
|
|
267
|
-
* - Guards against zip bombs (entry-count and total-uncompressed-size caps,
|
|
268
|
-
* enforced on the bytes actually inflated, not only the declared sizes),
|
|
269
|
-
* path traversal in entry names and encrypted entries.
|
|
270
|
-
* - Verifies CRC-32 checksums of extracted entries.
|
|
271
|
-
*/
|
|
272
|
-
type ZipErrorCode =
|
|
273
|
-
/** Not a ZIP archive, or its directory is truncated / inconsistent. */
|
|
274
|
-
"invalid_archive"
|
|
275
|
-
/** Compression method other than stored/deflate, multi-disk archives, … */
|
|
276
|
-
| "unsupported_feature"
|
|
277
|
-
/** The entry is encrypted (general-purpose flag bit 0). */
|
|
278
|
-
| "encrypted"
|
|
279
|
-
/** An entry name is absolute or contains `..` segments. */
|
|
280
|
-
| "unsafe_path"
|
|
281
|
-
/** More entries than `maxEntries`. */
|
|
282
|
-
| "too_many_entries"
|
|
283
|
-
/** Extracting would exceed `maxTotalSize` uncompressed bytes. */
|
|
284
|
-
| "too_large"
|
|
285
|
-
/** The entry data is corrupt (bad header, size or CRC mismatch, bad deflate stream). */
|
|
286
|
-
| "corrupt_entry"
|
|
287
|
-
/** No entry with the requested name. */
|
|
288
|
-
| "entry_not_found"
|
|
289
|
-
/** `DecompressionStream` is unavailable in this environment. */
|
|
290
|
-
| "unsupported_environment";
|
|
291
|
-
declare class ZipError extends Error {
|
|
292
|
-
readonly code: ZipErrorCode;
|
|
293
|
-
readonly entryName?: string;
|
|
294
|
-
constructor(code: ZipErrorCode, message: string, details?: {
|
|
295
|
-
entryName?: string;
|
|
296
|
-
cause?: unknown;
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
interface ZipEntry {
|
|
300
|
-
/** Entry path with `/` separators (backslashes are normalized). */
|
|
301
|
-
name: string;
|
|
302
|
-
/** Whether the entry is a directory (name ends with `/`). */
|
|
303
|
-
isDirectory: boolean;
|
|
304
|
-
/** Whether the entry is encrypted; reading it throws `ZipError("encrypted")`. */
|
|
305
|
-
encrypted: boolean;
|
|
306
|
-
/** Compression method (0 = stored, 8 = deflate). */
|
|
307
|
-
method: number;
|
|
308
|
-
/** Declared compressed size in bytes. */
|
|
309
|
-
compressedSize: number;
|
|
310
|
-
/** Declared uncompressed size in bytes. */
|
|
311
|
-
size: number;
|
|
312
|
-
/** CRC-32 of the uncompressed data. */
|
|
313
|
-
crc32: number;
|
|
314
|
-
/** Offset of the entry's local file header. */
|
|
315
|
-
localHeaderOffset: number;
|
|
316
|
-
}
|
|
317
|
-
interface ZipReadOptions {
|
|
318
|
-
/** Maximum number of entries in the central directory (default 10 000). */
|
|
319
|
-
maxEntries?: number;
|
|
320
|
-
/**
|
|
321
|
-
* Maximum number of uncompressed bytes extracted from the archive, summed
|
|
322
|
-
* over every `read` call (default 256 MiB). Enforced while inflating.
|
|
323
|
-
*/
|
|
324
|
-
maxTotalSize?: number;
|
|
325
|
-
/**
|
|
326
|
-
* What to do with entries whose names are absolute or contain `..`
|
|
327
|
-
* segments: `"error"` (default) rejects the archive, `"skip"` leaves them
|
|
328
|
-
* out of `entries`.
|
|
329
|
-
*/
|
|
330
|
-
unsafePaths?: "error" | "skip";
|
|
331
|
-
}
|
|
332
|
-
declare const DEFAULT_ZIP_MAX_ENTRIES = 10000;
|
|
333
|
-
declare const DEFAULT_ZIP_MAX_TOTAL_SIZE: number;
|
|
334
|
-
/** CRC-32 (IEEE 802.3), as used by ZIP. */
|
|
335
|
-
declare function zipCrc32(data: Uint8Array): number;
|
|
336
|
-
/** Whether `name` is absolute, has a drive letter, or contains `..` / NUL. */
|
|
337
|
-
declare function isUnsafeZipPath(name: string): boolean;
|
|
338
|
-
/**
|
|
339
|
-
* A parsed ZIP archive. Entry data is extracted lazily with {@link read}.
|
|
340
|
-
* Create it with {@link readZip}.
|
|
341
|
-
*/
|
|
342
|
-
declare class ZipArchive {
|
|
343
|
-
private readonly bytes;
|
|
344
|
-
private readonly maxTotalSize;
|
|
345
|
-
/** Entries in central-directory order. */
|
|
346
|
-
readonly entries: readonly ZipEntry[];
|
|
347
|
-
private readonly byName;
|
|
348
|
-
private extracted;
|
|
349
|
-
constructor(bytes: Uint8Array, entries: ZipEntry[], maxTotalSize: number);
|
|
350
|
-
/** Looks up an entry by exact name (a leading `/` is ignored). */
|
|
351
|
-
get(name: string): ZipEntry | undefined;
|
|
352
|
-
has(name: string): boolean;
|
|
353
|
-
/** Uncompressed bytes extracted so far (counted against `maxTotalSize`). */
|
|
354
|
-
get extractedSize(): number;
|
|
355
|
-
/** Extracts an entry's data, verifying its size and CRC-32. */
|
|
356
|
-
read(entryOrName: ZipEntry | string): Promise<Uint8Array>;
|
|
357
|
-
/** Extracts an entry and decodes it as UTF-8 (a leading BOM is removed). */
|
|
358
|
-
readText(entryOrName: ZipEntry | string): Promise<string>;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Parses a ZIP archive's central directory. Entry data is not extracted until
|
|
362
|
-
* {@link ZipArchive.read} is called. Throws {@link ZipError}.
|
|
363
|
-
*/
|
|
364
|
-
declare function readZip(data: ArrayBuffer | ArrayBufferView, options?: ZipReadOptions): Promise<ZipArchive>;
|
|
365
|
-
|
|
366
259
|
/**
|
|
367
260
|
* Dependency-free DOCX (Office Open XML WordprocessingML) import.
|
|
368
261
|
*
|
|
@@ -623,4 +516,4 @@ declare function createZipImportAdapter(options?: ZipImportOptions): DocumentImp
|
|
|
623
516
|
/** Zipped-export adapter with default options. Opt in with `registerImportAdapter(zipImportAdapter)`. */
|
|
624
517
|
declare const zipImportAdapter: DocumentImportAdapter;
|
|
625
518
|
|
|
626
|
-
export { type BaseSlotProps, type ButtonSlotProps, DEFAULT_DOCX_MAX_IMAGE_SIZE,
|
|
519
|
+
export { type BaseSlotProps, type ButtonSlotProps, DEFAULT_DOCX_MAX_IMAGE_SIZE, DOCX_MIME_TYPES, DocumentImport, DocumentImportAdapter, type DocxImportOptions, EditorController, type EditorControllerOptions, type EditorSlotsMap, FileImportController, type FileImportControllerOptions, type FileImportState, FileLike, ImportAdapter, ImportAdapterRegistry, type ImportEditorTarget, type ImportFilesIntoEditorOptions, ImportOutcome, type ImportStructureSummary, type InsertImportedDocumentOptions, type NodeHeaderSlotProps, type PdfDocumentImport, type PdfFontInfo, type PdfImportCallOptions, type PdfImportOptions, type PdfJsDocument, type PdfJsLike, type PdfJsOperatorList, type PdfJsPage, type PdfJsTextContent, type PdfJsTextItem, PdfLayoutOptions, PdfRuleLine, PdfStructureReport, type PdfTextOptions, PdfTextRun, Token, type TooltipSlotProps, type ZipDocumentImport, type ZipImportOptions, ZipReadOptions, applyImportedReviewData, createDocxImportAdapter, createEditor, createFileImportController, createPdfImportAdapter, createZipImportAdapter, docxImportAdapter, docxToDocumentImport, htmlToSlice, importFilesIntoEditor, insertImportedDocument, pdfOperatorListToRules, pdfTextItemsToParagraphs, pdfTextItemsToRuns, pickImportFiles, sortZipEntryNames, summarizeImportStructure, zipEntryTitle, zipImportAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ import { I as ImportAdapterRegistry, a as ImportOutcome, F as FileLike, b as Imp
|
|
|
19
19
|
export { c as FindImportAdapterQuery, d as ImportContext, e as ImportError, f as ImportErrorCode, g as ImportFileOptions, h as ImportInput, i as ImportTarget, R as RegisterImportAdapterOptions, j as createImportContext } from './registry-CEgwXED1.js';
|
|
20
20
|
import { Schema, Slice } from '@tiptap/pm/model';
|
|
21
21
|
import { EditorView } from '@tiptap/pm/view';
|
|
22
|
+
import { Z as ZipReadOptions } from './zip-4nG0YAH7.js';
|
|
23
|
+
export { D as DEFAULT_ZIP_MAX_ENTRIES, a as DEFAULT_ZIP_MAX_TOTAL_SIZE, b as ZipArchive, c as ZipEntry, d as ZipError, e as ZipErrorCode, i as isUnsafeZipPath, r as readZip, z as zipCrc32 } from './zip-4nG0YAH7.js';
|
|
22
24
|
export { DiffChange, DiffOpType, DiffRun, DiffSequencesOptions, diffChanges, diffSequences } from './compare/index.js';
|
|
23
25
|
export { C as CompareDocumentsOptions, a as CompareDocumentsResult, b as CompareSource, c as CompareSummary, d as compareDocuments, e as compareHtml } from './documents-CHT1U5Vs.js';
|
|
24
26
|
export { DOCX_ANONYMOUS_AUTHOR, DOCX_EXPORT_MIME_TYPE, DocxCommentSource, DocxExportController, DocxExportControllerOptions, DocxExportEditorLike, DocxExportIssue, DocxExportIssueKind, DocxExportOptions, DocxExportReport, DocxExportResult, DocxExportState, DocxJSONMark, DocxJSONNode, DocxPackagePart, XmlAttrs, XmlWriter, ZipWriteEntry, ZipWriteOptions, createDocxExportController, createDocxParts, deflateRaw, docxFileName, downloadBlob, escapeXmlAttr, escapeXmlText, exportDocx, exportDocxBlob, stripInvalidXmlChars, writeZip } from './export/index.js';
|
|
@@ -254,115 +256,6 @@ interface ImportStructureSummary {
|
|
|
254
256
|
*/
|
|
255
257
|
declare function summarizeImportStructure(outcomes: readonly ImportOutcome<DocumentImport>[]): ImportStructureSummary | null;
|
|
256
258
|
|
|
257
|
-
/**
|
|
258
|
-
* Minimal, dependency-free ZIP reader used by the DOCX and zipped-export
|
|
259
|
-
* import adapters.
|
|
260
|
-
*
|
|
261
|
-
* - Reads the central directory (including ZIP64 end records and extra
|
|
262
|
-
* fields), so sizes come from the authoritative directory rather than local
|
|
263
|
-
* headers or data descriptors.
|
|
264
|
-
* - Supports stored (method 0) and deflate (method 8) entries; deflate is
|
|
265
|
-
* inflated with the platform `DecompressionStream("deflate-raw")` (modern
|
|
266
|
-
* browsers, Node ≥ 18).
|
|
267
|
-
* - Guards against zip bombs (entry-count and total-uncompressed-size caps,
|
|
268
|
-
* enforced on the bytes actually inflated, not only the declared sizes),
|
|
269
|
-
* path traversal in entry names and encrypted entries.
|
|
270
|
-
* - Verifies CRC-32 checksums of extracted entries.
|
|
271
|
-
*/
|
|
272
|
-
type ZipErrorCode =
|
|
273
|
-
/** Not a ZIP archive, or its directory is truncated / inconsistent. */
|
|
274
|
-
"invalid_archive"
|
|
275
|
-
/** Compression method other than stored/deflate, multi-disk archives, … */
|
|
276
|
-
| "unsupported_feature"
|
|
277
|
-
/** The entry is encrypted (general-purpose flag bit 0). */
|
|
278
|
-
| "encrypted"
|
|
279
|
-
/** An entry name is absolute or contains `..` segments. */
|
|
280
|
-
| "unsafe_path"
|
|
281
|
-
/** More entries than `maxEntries`. */
|
|
282
|
-
| "too_many_entries"
|
|
283
|
-
/** Extracting would exceed `maxTotalSize` uncompressed bytes. */
|
|
284
|
-
| "too_large"
|
|
285
|
-
/** The entry data is corrupt (bad header, size or CRC mismatch, bad deflate stream). */
|
|
286
|
-
| "corrupt_entry"
|
|
287
|
-
/** No entry with the requested name. */
|
|
288
|
-
| "entry_not_found"
|
|
289
|
-
/** `DecompressionStream` is unavailable in this environment. */
|
|
290
|
-
| "unsupported_environment";
|
|
291
|
-
declare class ZipError extends Error {
|
|
292
|
-
readonly code: ZipErrorCode;
|
|
293
|
-
readonly entryName?: string;
|
|
294
|
-
constructor(code: ZipErrorCode, message: string, details?: {
|
|
295
|
-
entryName?: string;
|
|
296
|
-
cause?: unknown;
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
interface ZipEntry {
|
|
300
|
-
/** Entry path with `/` separators (backslashes are normalized). */
|
|
301
|
-
name: string;
|
|
302
|
-
/** Whether the entry is a directory (name ends with `/`). */
|
|
303
|
-
isDirectory: boolean;
|
|
304
|
-
/** Whether the entry is encrypted; reading it throws `ZipError("encrypted")`. */
|
|
305
|
-
encrypted: boolean;
|
|
306
|
-
/** Compression method (0 = stored, 8 = deflate). */
|
|
307
|
-
method: number;
|
|
308
|
-
/** Declared compressed size in bytes. */
|
|
309
|
-
compressedSize: number;
|
|
310
|
-
/** Declared uncompressed size in bytes. */
|
|
311
|
-
size: number;
|
|
312
|
-
/** CRC-32 of the uncompressed data. */
|
|
313
|
-
crc32: number;
|
|
314
|
-
/** Offset of the entry's local file header. */
|
|
315
|
-
localHeaderOffset: number;
|
|
316
|
-
}
|
|
317
|
-
interface ZipReadOptions {
|
|
318
|
-
/** Maximum number of entries in the central directory (default 10 000). */
|
|
319
|
-
maxEntries?: number;
|
|
320
|
-
/**
|
|
321
|
-
* Maximum number of uncompressed bytes extracted from the archive, summed
|
|
322
|
-
* over every `read` call (default 256 MiB). Enforced while inflating.
|
|
323
|
-
*/
|
|
324
|
-
maxTotalSize?: number;
|
|
325
|
-
/**
|
|
326
|
-
* What to do with entries whose names are absolute or contain `..`
|
|
327
|
-
* segments: `"error"` (default) rejects the archive, `"skip"` leaves them
|
|
328
|
-
* out of `entries`.
|
|
329
|
-
*/
|
|
330
|
-
unsafePaths?: "error" | "skip";
|
|
331
|
-
}
|
|
332
|
-
declare const DEFAULT_ZIP_MAX_ENTRIES = 10000;
|
|
333
|
-
declare const DEFAULT_ZIP_MAX_TOTAL_SIZE: number;
|
|
334
|
-
/** CRC-32 (IEEE 802.3), as used by ZIP. */
|
|
335
|
-
declare function zipCrc32(data: Uint8Array): number;
|
|
336
|
-
/** Whether `name` is absolute, has a drive letter, or contains `..` / NUL. */
|
|
337
|
-
declare function isUnsafeZipPath(name: string): boolean;
|
|
338
|
-
/**
|
|
339
|
-
* A parsed ZIP archive. Entry data is extracted lazily with {@link read}.
|
|
340
|
-
* Create it with {@link readZip}.
|
|
341
|
-
*/
|
|
342
|
-
declare class ZipArchive {
|
|
343
|
-
private readonly bytes;
|
|
344
|
-
private readonly maxTotalSize;
|
|
345
|
-
/** Entries in central-directory order. */
|
|
346
|
-
readonly entries: readonly ZipEntry[];
|
|
347
|
-
private readonly byName;
|
|
348
|
-
private extracted;
|
|
349
|
-
constructor(bytes: Uint8Array, entries: ZipEntry[], maxTotalSize: number);
|
|
350
|
-
/** Looks up an entry by exact name (a leading `/` is ignored). */
|
|
351
|
-
get(name: string): ZipEntry | undefined;
|
|
352
|
-
has(name: string): boolean;
|
|
353
|
-
/** Uncompressed bytes extracted so far (counted against `maxTotalSize`). */
|
|
354
|
-
get extractedSize(): number;
|
|
355
|
-
/** Extracts an entry's data, verifying its size and CRC-32. */
|
|
356
|
-
read(entryOrName: ZipEntry | string): Promise<Uint8Array>;
|
|
357
|
-
/** Extracts an entry and decodes it as UTF-8 (a leading BOM is removed). */
|
|
358
|
-
readText(entryOrName: ZipEntry | string): Promise<string>;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Parses a ZIP archive's central directory. Entry data is not extracted until
|
|
362
|
-
* {@link ZipArchive.read} is called. Throws {@link ZipError}.
|
|
363
|
-
*/
|
|
364
|
-
declare function readZip(data: ArrayBuffer | ArrayBufferView, options?: ZipReadOptions): Promise<ZipArchive>;
|
|
365
|
-
|
|
366
259
|
/**
|
|
367
260
|
* Dependency-free DOCX (Office Open XML WordprocessingML) import.
|
|
368
261
|
*
|
|
@@ -623,4 +516,4 @@ declare function createZipImportAdapter(options?: ZipImportOptions): DocumentImp
|
|
|
623
516
|
/** Zipped-export adapter with default options. Opt in with `registerImportAdapter(zipImportAdapter)`. */
|
|
624
517
|
declare const zipImportAdapter: DocumentImportAdapter;
|
|
625
518
|
|
|
626
|
-
export { type BaseSlotProps, type ButtonSlotProps, DEFAULT_DOCX_MAX_IMAGE_SIZE,
|
|
519
|
+
export { type BaseSlotProps, type ButtonSlotProps, DEFAULT_DOCX_MAX_IMAGE_SIZE, DOCX_MIME_TYPES, DocumentImport, DocumentImportAdapter, type DocxImportOptions, EditorController, type EditorControllerOptions, type EditorSlotsMap, FileImportController, type FileImportControllerOptions, type FileImportState, FileLike, ImportAdapter, ImportAdapterRegistry, type ImportEditorTarget, type ImportFilesIntoEditorOptions, ImportOutcome, type ImportStructureSummary, type InsertImportedDocumentOptions, type NodeHeaderSlotProps, type PdfDocumentImport, type PdfFontInfo, type PdfImportCallOptions, type PdfImportOptions, type PdfJsDocument, type PdfJsLike, type PdfJsOperatorList, type PdfJsPage, type PdfJsTextContent, type PdfJsTextItem, PdfLayoutOptions, PdfRuleLine, PdfStructureReport, type PdfTextOptions, PdfTextRun, Token, type TooltipSlotProps, type ZipDocumentImport, type ZipImportOptions, ZipReadOptions, applyImportedReviewData, createDocxImportAdapter, createEditor, createFileImportController, createPdfImportAdapter, createZipImportAdapter, docxImportAdapter, docxToDocumentImport, htmlToSlice, importFilesIntoEditor, insertImportedDocument, pdfOperatorListToRules, pdfTextItemsToParagraphs, pdfTextItemsToRuns, pickImportFiles, sortZipEntryNames, summarizeImportStructure, zipEntryTitle, zipImportAdapter };
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
exportDocxBlob,
|
|
15
15
|
stripInvalidXmlChars,
|
|
16
16
|
writeZip
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5N6AQCVB.js";
|
|
18
18
|
import "./chunk-HLIMTC6N.js";
|
|
19
19
|
import {
|
|
20
20
|
FIELD_ALIASES,
|
|
@@ -174,23 +174,24 @@ import {
|
|
|
174
174
|
updateImageSrc,
|
|
175
175
|
validateFindPattern,
|
|
176
176
|
writeRichClipboard
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-YMKPMXZ4.js";
|
|
178
178
|
import {
|
|
179
179
|
DEFAULT_STYLES,
|
|
180
|
-
DEFAULT_ZIP_MAX_ENTRIES,
|
|
181
|
-
DEFAULT_ZIP_MAX_TOTAL_SIZE,
|
|
182
180
|
NORMAL_STYLE_ID,
|
|
183
181
|
StyleRegistry,
|
|
182
|
+
createStyleRegistry,
|
|
183
|
+
isValidStyleId,
|
|
184
|
+
safeCSSValue
|
|
185
|
+
} from "./chunk-AGGUNWT6.js";
|
|
186
|
+
import {
|
|
187
|
+
DEFAULT_ZIP_MAX_ENTRIES,
|
|
188
|
+
DEFAULT_ZIP_MAX_TOTAL_SIZE,
|
|
184
189
|
ZipArchive,
|
|
185
190
|
ZipError,
|
|
186
|
-
createStyleRegistry,
|
|
187
191
|
isUnsafeZipPath,
|
|
188
|
-
isValidStyleId,
|
|
189
192
|
readZip,
|
|
190
|
-
safeCSSValue,
|
|
191
193
|
zipCrc32
|
|
192
|
-
} from "./chunk-
|
|
193
|
-
import "./chunk-GJBIVWB2.js";
|
|
194
|
+
} from "./chunk-UAW5FEMD.js";
|
|
194
195
|
import {
|
|
195
196
|
ALLOW_NESTED_TABLES_META,
|
|
196
197
|
Chart,
|