@a3s-lab/office 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -6
- package/dist/0~1403.js +20 -12
- package/dist/0~2805.js +241 -241
- package/dist/0~4980.js +1 -1
- package/dist/0~5050.js +1 -20
- package/dist/0~5093.js +547 -547
- package/dist/0~7048.js +31 -29
- package/dist/0~document-editor.js +694 -90
- package/dist/0~pdf-viewer.js +41 -10
- package/dist/0~presentation-editor.js +8 -6
- package/dist/0~spreadsheet-editor.js +11528 -10094
- package/dist/0~work-document-import-worker-client.js +237 -0
- package/dist/0~work-docx-export.js +1 -1
- package/dist/0~work-docx-import.js +1 -1
- package/dist/0~work-docx-large-document-import.js +559 -0
- package/dist/0~work-office-diagnostics.js +46 -32
- package/dist/4104.js +4092 -3210
- package/dist/432.js +51 -7
- package/dist/4476.js +201 -7
- package/dist/5184.js +24 -2
- package/dist/{8928.js → 6282.js} +2338 -93
- package/dist/8715.js +895 -888
- package/dist/9356.js +3 -1
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/features/work/editors/document-editor-support.d.ts +1 -9
- package/dist/internal/features/work/editors/document-external-content.d.ts +1 -1
- package/dist/internal/features/work/editors/presentation-slide-canvas.d.ts +3 -1
- package/dist/internal/features/work/editors/presentation-slide-thumbnail.d.ts +3 -2
- package/dist/internal/features/work/editors/presentation-thumbnail-rail.d.ts +2 -1
- package/dist/internal/features/work/editors/presentation-workspace.d.ts +2 -1
- package/dist/internal/features/work/editors/spreadsheet-border-ribbon.d.ts +5 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-projection.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-border-command.d.ts +3 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-border.d.ts +14 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-fill-command.d.ts +3 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-fill.d.ts +12 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-range.d.ts +14 -0
- package/dist/internal/features/work/editors/spreadsheet-command-catalog.d.ts +159 -0
- package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +8 -4
- package/dist/internal/features/work/editors/spreadsheet-editor-support.d.ts +8 -2
- package/dist/internal/features/work/editors/spreadsheet-home-format-ribbon.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-in-place-workbook-sync.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-operation-projection.d.ts +14 -0
- package/dist/internal/features/work/editors/spreadsheet-structure-selection.d.ts +7 -0
- package/dist/internal/features/work/editors/use-document-pagination.d.ts +5 -0
- package/dist/internal/features/work/editors/use-presentation-design-commands.d.ts +2 -1
- package/dist/internal/features/work/editors/use-spreadsheet-workbook-sync.d.ts +2 -1
- package/dist/internal/features/work/spreadsheet-history-value.d.ts +1 -0
- package/dist/internal/features/work/spreadsheet-sparse.d.ts +6 -1
- package/dist/internal/features/work/work-document-chunk-geometry.d.ts +28 -0
- package/dist/internal/features/work/work-document-chunk-node.d.ts +23 -0
- package/dist/internal/features/work/work-document-extensions.d.ts +1 -0
- package/dist/internal/features/work/work-document-html-fingerprint.d.ts +15 -0
- package/dist/internal/features/work/work-document-import-worker-client.d.ts +13 -0
- package/dist/internal/features/work/work-document-import-worker-protocol.d.ts +36 -0
- package/dist/internal/features/work/work-document-import.worker.d.ts +1 -0
- package/dist/internal/features/work/work-document-incremental-layout.d.ts +1 -1
- package/dist/internal/features/work/work-document-integrity-index.d.ts +14 -0
- package/dist/internal/features/work/work-document-lazy-block.d.ts +3 -0
- package/dist/internal/features/work/work-document-lazy-html.d.ts +21 -0
- package/dist/internal/features/work/work-document-lazy-model.d.ts +29 -0
- package/dist/internal/features/work/work-document-lazy-pagination-measurement.d.ts +3 -0
- package/dist/internal/features/work/work-document-lazy-preview.d.ts +21 -0
- package/dist/internal/features/work/work-document-lazy-update.d.ts +14 -0
- package/dist/internal/features/work/work-document-model.d.ts +18 -2
- package/dist/internal/features/work/work-document-page-surface-registry.d.ts +16 -0
- package/dist/internal/features/work/work-document-pagination-dom.d.ts +1 -0
- package/dist/internal/features/work/work-document-pagination-types.d.ts +1 -0
- package/dist/internal/features/work/work-document-pagination.d.ts +1 -1
- package/dist/internal/features/work/work-document-text-statistics.d.ts +25 -0
- package/dist/internal/features/work/work-document-windowing.d.ts +23 -0
- package/dist/internal/features/work/work-docx-large-document-import.d.ts +35 -0
- package/dist/internal/features/work/work-docx-large-document-parser.d.ts +29 -0
- package/dist/internal/features/work/work-file-import.d.ts +5 -0
- package/dist/internal/features/work/work-file-io.d.ts +3 -3
- package/dist/internal/features/work/work-file-kind.d.ts +5 -0
- package/dist/internal/features/work/work-office-diagnostics.d.ts +10 -1
- package/dist/internal/features/work/work-ooxml-package.d.ts +8 -0
- package/dist/internal/features/work/work-presentation-layouts.d.ts +7 -1
- package/dist/internal/features/work/work-repository.d.ts +1 -0
- package/dist/internal/features/work/work-spreadsheet-compatibility-summary.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-file-export.d.ts +2 -0
- package/dist/internal/features/work/work-spreadsheet-file-import.d.ts +3 -0
- package/dist/internal/features/work/work-spreadsheet-import-diagnostics.d.ts +2 -0
- package/dist/internal/features/work/work-spreadsheet-import-worker-client.d.ts +6 -0
- package/dist/internal/features/work/work-spreadsheet-import-worker-protocol.d.ts +32 -0
- package/dist/internal/features/work/work-spreadsheet-import.worker.d.ts +1 -0
- package/dist/internal/features/work/work-spreadsheet-matrix-profile.d.ts +64 -0
- package/dist/internal/features/work/work-spreadsheet-package-scan-worker-client.d.ts +6 -0
- package/dist/internal/features/work/work-spreadsheet-package-scan-worker-protocol.d.ts +49 -0
- package/dist/internal/features/work/work-spreadsheet-package-scan.worker.d.ts +1 -0
- package/dist/internal/features/work/work-xlsx-formula-diagnostics.d.ts +3 -1
- package/dist/internal/features/work/work-xlsx-formulas.d.ts +2 -1
- package/dist/internal/features/work/work-xlsx-interop.d.ts +6 -5
- package/dist/internal/features/work/work-xlsx-pivot-diagnostics.d.ts +2 -1
- package/dist/internal/features/work/work-xlsx-plain-fast-path.d.ts +54 -0
- package/dist/internal/features/work/work-xlsx-style-gate.d.ts +1 -0
- package/dist/internal/features/work/work-xlsx-worksheet-scan.d.ts +12 -0
- package/dist/internal/features/work/work-xlsx-worksheet.d.ts +12 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/office-kernel.worker.js +31 -29
- package/dist/react.d.ts +7 -1
- package/dist/styles.css +440 -3
- package/dist/work-document-import.worker.js +558 -0
- package/dist/work-spreadsheet-import.worker.js +24745 -0
- package/dist/work-spreadsheet-import.worker.js.LICENSE.txt +3 -0
- package/dist/work-spreadsheet-package-scan.worker.js +4157 -0
- package/dist/work-spreadsheet-package-scan.worker.js.LICENSE.txt +11 -0
- package/docs/latest/en/browser-editor-architecture.md +351 -15
- package/package.json +19 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { createLargeSimpleDocxParagraph, createLargeSimpleDocxParseResult, createLargeSimpleDocxTable } from "./0~work-docx-large-document-import.js";
|
|
2
|
+
const DOCUMENT_IMPORT_WORKER_TIMEOUT_MS = 120000;
|
|
3
|
+
function parseLargeSimpleDocxInWorker(xmlBytes, options = {}, signal) {
|
|
4
|
+
if ("u" < typeof Worker) return Promise.resolve(null);
|
|
5
|
+
if (signal?.aborted) return Promise.reject(documentImportAbortError());
|
|
6
|
+
let worker;
|
|
7
|
+
try {
|
|
8
|
+
worker = new Worker(new URL('./work-document-import.worker.js', import.meta.url), {
|
|
9
|
+
name: 'a3s-office-document-import'
|
|
10
|
+
});
|
|
11
|
+
} catch {
|
|
12
|
+
return Promise.resolve(null);
|
|
13
|
+
}
|
|
14
|
+
const startedAt = documentImportNow();
|
|
15
|
+
return new Promise((resolve, reject)=>{
|
|
16
|
+
let settled = false;
|
|
17
|
+
let timeout;
|
|
18
|
+
const blocks = [];
|
|
19
|
+
const html = [];
|
|
20
|
+
let paragraphBatchCount = 0;
|
|
21
|
+
let rowBatchCount = 0;
|
|
22
|
+
let streamedAssemblyMs = 0;
|
|
23
|
+
let tableRows = null;
|
|
24
|
+
let tableHtml = null;
|
|
25
|
+
const finish = (result, error)=>{
|
|
26
|
+
if (settled) return;
|
|
27
|
+
settled = true;
|
|
28
|
+
if (void 0 !== timeout) clearTimeout(timeout);
|
|
29
|
+
signal?.removeEventListener('abort', handleAbort);
|
|
30
|
+
worker.removeEventListener('error', handleFailure);
|
|
31
|
+
worker.removeEventListener('message', handleMessage);
|
|
32
|
+
worker.removeEventListener('messageerror', handleFailure);
|
|
33
|
+
worker.terminate();
|
|
34
|
+
if (error) reject(error);
|
|
35
|
+
else resolve(result);
|
|
36
|
+
};
|
|
37
|
+
const handleAbort = ()=>finish(null, documentImportAbortError());
|
|
38
|
+
const handleFailure = ()=>finish(null);
|
|
39
|
+
const handleMessage = (event)=>{
|
|
40
|
+
const response = event.data;
|
|
41
|
+
if (!response || 'object' != typeof response) return void finish(null);
|
|
42
|
+
if ('failure' === response.kind) return void finish(null);
|
|
43
|
+
if ('ineligible' === response.kind) {
|
|
44
|
+
recordDocumentImportMeasure('a3s-office.document.large-simple-worker-total', startedAt, documentImportNow(), {
|
|
45
|
+
accepted: false,
|
|
46
|
+
paragraphBatchCount,
|
|
47
|
+
rowBatchCount
|
|
48
|
+
});
|
|
49
|
+
finish({
|
|
50
|
+
status: 'ineligible'
|
|
51
|
+
});
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if ('paragraphs' === response.kind) {
|
|
55
|
+
const batchStartedAt = documentImportNow();
|
|
56
|
+
if (tableRows || tableHtml || !textBatchIsValid(response.texts)) return void finish(null);
|
|
57
|
+
paragraphBatchCount += 1;
|
|
58
|
+
for (const text of response.texts){
|
|
59
|
+
const paragraph = createLargeSimpleDocxParagraph(text);
|
|
60
|
+
blocks.push(paragraph.node);
|
|
61
|
+
html.push(paragraph.html);
|
|
62
|
+
}
|
|
63
|
+
streamedAssemblyMs += documentImportNow() - batchStartedAt;
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if ('table-start' === response.kind) {
|
|
67
|
+
if (tableRows || tableHtml) return void finish(null);
|
|
68
|
+
tableRows = [];
|
|
69
|
+
tableHtml = [];
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if ('table-rows' === response.kind) {
|
|
73
|
+
const batchStartedAt = documentImportNow();
|
|
74
|
+
if (!tableRows || !tableHtml || !compactTableBatchIsValid(response)) return void finish(null);
|
|
75
|
+
rowBatchCount += 1;
|
|
76
|
+
let cellIndex = 0;
|
|
77
|
+
let textIndex = 0;
|
|
78
|
+
for (const cellCount of response.rowCellCounts){
|
|
79
|
+
const row = createCompactTableRow(response, cellCount, cellIndex, textIndex);
|
|
80
|
+
tableRows.push(row.node);
|
|
81
|
+
tableHtml.push(row.html);
|
|
82
|
+
cellIndex = row.cellIndex;
|
|
83
|
+
textIndex = row.textIndex;
|
|
84
|
+
}
|
|
85
|
+
streamedAssemblyMs += documentImportNow() - batchStartedAt;
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if ('table-end' === response.kind) {
|
|
89
|
+
if (!tableRows?.length || !tableHtml?.length) return void finish(null);
|
|
90
|
+
const table = createLargeSimpleDocxTable(tableRows, tableHtml);
|
|
91
|
+
blocks.push(table.node);
|
|
92
|
+
html.push(table.html);
|
|
93
|
+
tableRows = null;
|
|
94
|
+
tableHtml = null;
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if ('success' !== response.kind || tableRows || tableHtml || !blocks.length || !streamResultIsValid(response.streamed)) return void finish(null);
|
|
98
|
+
const finalizationStartedAt = documentImportNow();
|
|
99
|
+
let result;
|
|
100
|
+
try {
|
|
101
|
+
result = createLargeSimpleDocxParseResult(response.streamed, blocks, html, options);
|
|
102
|
+
} catch {
|
|
103
|
+
finish(null);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const finishedAt = documentImportNow();
|
|
107
|
+
recordDocumentImportDuration('a3s-office.document.large-simple-worker-parse', response.timings.parseMs, {
|
|
108
|
+
contentMs: response.timings.contentMs,
|
|
109
|
+
eligibilityMs: response.timings.eligibilityMs,
|
|
110
|
+
envelopeMs: response.timings.envelopeMs,
|
|
111
|
+
xmlMs: response.timings.xmlMs
|
|
112
|
+
});
|
|
113
|
+
recordDocumentImportMeasure('a3s-office.document.large-simple-worker-finalize', finalizationStartedAt, finishedAt, {
|
|
114
|
+
paragraphBatchCount,
|
|
115
|
+
rowBatchCount,
|
|
116
|
+
streamedAssemblyMs
|
|
117
|
+
});
|
|
118
|
+
recordDocumentImportMeasure('a3s-office.document.large-simple-worker-total', startedAt, finishedAt, {
|
|
119
|
+
accepted: true,
|
|
120
|
+
paragraphBatchCount,
|
|
121
|
+
rowBatchCount,
|
|
122
|
+
streamedAssemblyMs
|
|
123
|
+
});
|
|
124
|
+
finish({
|
|
125
|
+
result,
|
|
126
|
+
status: 'accepted'
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
timeout = setTimeout(handleFailure, DOCUMENT_IMPORT_WORKER_TIMEOUT_MS);
|
|
130
|
+
signal?.addEventListener('abort', handleAbort, {
|
|
131
|
+
once: true
|
|
132
|
+
});
|
|
133
|
+
worker.addEventListener('error', handleFailure, {
|
|
134
|
+
once: true
|
|
135
|
+
});
|
|
136
|
+
worker.addEventListener('message', handleMessage);
|
|
137
|
+
worker.addEventListener('messageerror', handleFailure, {
|
|
138
|
+
once: true
|
|
139
|
+
});
|
|
140
|
+
if (signal?.aborted) return void handleAbort();
|
|
141
|
+
try {
|
|
142
|
+
worker.postMessage({
|
|
143
|
+
kind: 'parse',
|
|
144
|
+
options,
|
|
145
|
+
xmlBytes
|
|
146
|
+
}, {
|
|
147
|
+
transfer: [
|
|
148
|
+
xmlBytes
|
|
149
|
+
]
|
|
150
|
+
});
|
|
151
|
+
} catch {
|
|
152
|
+
handleFailure();
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function textBatchIsValid(texts) {
|
|
157
|
+
return Array.isArray(texts) && texts.length > 0 && texts.every((value)=>'string' == typeof value);
|
|
158
|
+
}
|
|
159
|
+
function compactTableBatchIsValid(response) {
|
|
160
|
+
if (!(response.rowCellCounts instanceof Uint32Array) || !response.rowCellCounts.length || !(response.cellParagraphCounts instanceof Uint32Array) || !textBatchIsValid(response.texts)) return false;
|
|
161
|
+
let cellCount = 0;
|
|
162
|
+
for (const count of response.rowCellCounts){
|
|
163
|
+
if (!count) return false;
|
|
164
|
+
cellCount += count;
|
|
165
|
+
}
|
|
166
|
+
if (cellCount !== response.cellParagraphCounts.length) return false;
|
|
167
|
+
let paragraphCount = 0;
|
|
168
|
+
for (const count of response.cellParagraphCounts){
|
|
169
|
+
if (!count) return false;
|
|
170
|
+
paragraphCount += count;
|
|
171
|
+
}
|
|
172
|
+
return paragraphCount === response.texts.length;
|
|
173
|
+
}
|
|
174
|
+
function createCompactTableRow(response, cellCount, initialCellIndex, initialTextIndex) {
|
|
175
|
+
const cellNodes = [];
|
|
176
|
+
const cellHtml = [];
|
|
177
|
+
let cellIndex = initialCellIndex;
|
|
178
|
+
let textIndex = initialTextIndex;
|
|
179
|
+
for(let cell = 0; cell < cellCount; cell += 1){
|
|
180
|
+
const paragraphCount = response.cellParagraphCounts[cellIndex] ?? 0;
|
|
181
|
+
const paragraphNodes = [];
|
|
182
|
+
let paragraphsHtml = '';
|
|
183
|
+
for(let paragraph = 0; paragraph < paragraphCount; paragraph += 1){
|
|
184
|
+
const value = createLargeSimpleDocxParagraph(response.texts[textIndex] ?? '');
|
|
185
|
+
paragraphNodes.push(value.node);
|
|
186
|
+
paragraphsHtml += value.html;
|
|
187
|
+
textIndex += 1;
|
|
188
|
+
}
|
|
189
|
+
cellNodes.push({
|
|
190
|
+
type: 'tableCell',
|
|
191
|
+
content: paragraphNodes
|
|
192
|
+
});
|
|
193
|
+
cellHtml.push(`<td>${paragraphsHtml}</td>`);
|
|
194
|
+
cellIndex += 1;
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
cellIndex,
|
|
198
|
+
html: `<tr>${cellHtml.join('')}</tr>`,
|
|
199
|
+
node: {
|
|
200
|
+
type: 'tableRow',
|
|
201
|
+
content: cellNodes
|
|
202
|
+
},
|
|
203
|
+
textIndex
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function streamResultIsValid(value) {
|
|
207
|
+
return Boolean(value?.layout) && Number.isSafeInteger(value.logicalBlockCount) && value.logicalBlockCount > 0 && Number.isSafeInteger(value.paragraphCount) && value.paragraphCount > 0 && Number.isSafeInteger(value.tableRowCount) && value.tableRowCount >= 0;
|
|
208
|
+
}
|
|
209
|
+
function documentImportNow() {
|
|
210
|
+
return globalThis.performance?.now?.() ?? Date.now();
|
|
211
|
+
}
|
|
212
|
+
function recordDocumentImportMeasure(name, start, end, detail) {
|
|
213
|
+
try {
|
|
214
|
+
globalThis.performance?.measure(name, {
|
|
215
|
+
detail,
|
|
216
|
+
end,
|
|
217
|
+
start
|
|
218
|
+
});
|
|
219
|
+
} catch {}
|
|
220
|
+
}
|
|
221
|
+
function recordDocumentImportDuration(name, duration, detail) {
|
|
222
|
+
if (!Number.isFinite(duration) || duration < 0) return;
|
|
223
|
+
try {
|
|
224
|
+
globalThis.performance?.measure(name, {
|
|
225
|
+
detail,
|
|
226
|
+
duration,
|
|
227
|
+
start: 0
|
|
228
|
+
});
|
|
229
|
+
} catch {}
|
|
230
|
+
}
|
|
231
|
+
function documentImportAbortError() {
|
|
232
|
+
if ("u" > typeof DOMException) return new DOMException('Document import was cancelled.', 'AbortError');
|
|
233
|
+
const error = new Error('Document import was cancelled.');
|
|
234
|
+
error.name = 'AbortError';
|
|
235
|
+
return error;
|
|
236
|
+
}
|
|
237
|
+
export { parseLargeSimpleDocxInWorker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import jszip from "jszip";
|
|
2
|
-
import { normalizeDocumentBookmarkName, applyDocumentImageIdentityToElement, DOCUMENT_PAGE_BORDER_EDGES, createDocumentImageIdentityRegistry, normalizeDocumentColumns, normalizeDocumentTableVerticalAlign, uniqueDocumentParagraphIdentity, documentTableColumnPercentagesFromElement, documentTableCellMarginOverridesFromElement, applyDocumentTableRowIdentityToElement, normalizeDocumentBookmarksHtml, documentImageIdentityFromElement, documentTableGeometryFromElement, normalizeDocumentTableRowHeightRule, documentNoteKey, normalizeDocumentParagraphBorders, normalizeDocumentTableBorderWidth, normalizeDocumentParagraphId, normalizeDocumentTableBorderStyle, normalizeDocumentBookmarkReferencesHtml, documentCitationInstruction, parseDocumentParagraphBordersElement, documentImageWrapContourFromElement, documentImagePositionFromElement, normalizeDocumentPageChrome, documentPageMarginsForLayout, normalizeDocumentImageLayer, documentBookmarkReferenceInstruction, documentImageCropFromElement, normalizeDocumentPageBorders, documentImageLayerFromElement, parseDocxThemeReference, documentCaptionLabel, documentCaptionKind, applyDocumentParagraphIdentityToElement, isContourImageLayout, normalizeDocumentImageIdentity, normalizeTableColor, documentTableBordersFromElement, documentSections, createDocumentParagraphIdentityRegistry, documentCitationTags, docxDocumentFieldKind, wrapsBesideImage, DocxThemePatchCollector, defaultDocumentImageWrapContour, normalizeDocumentParagraphIdentity, normalizeDocumentPaperSource, documentEquationFromElement, DOCUMENT_PARAGRAPH_BORDER_EDGES, parseDocumentCharacterFormatting, patchDocxThemeReferences, parseDocumentParagraphShadingElement, documentParagraphIdentityFromElement, normalizeDocumentEquation, parseDocumentParagraphFormatting, documentTableRowIdentityFromElement, normalizeDocumentBookmarkNativeId, collectDocumentNotes, DOCUMENT_PAGE_MARGIN_KEYS, uniqueDocumentImageIdentity, documentImageLayoutFromElement, documentPageHorizontalMarginTwips, documentPageGeometryForLayout, normalizeDocumentPageMargins, documentNoteKind } from "./
|
|
2
|
+
import { normalizeDocumentBookmarkName, applyDocumentImageIdentityToElement, DOCUMENT_PAGE_BORDER_EDGES, createDocumentImageIdentityRegistry, normalizeDocumentColumns, normalizeDocumentTableVerticalAlign, uniqueDocumentParagraphIdentity, documentTableColumnPercentagesFromElement, documentTableCellMarginOverridesFromElement, applyDocumentTableRowIdentityToElement, normalizeDocumentBookmarksHtml, documentImageIdentityFromElement, documentTableGeometryFromElement, normalizeDocumentTableRowHeightRule, documentNoteKey, normalizeDocumentParagraphBorders, normalizeDocumentTableBorderWidth, normalizeDocumentParagraphId, normalizeDocumentTableBorderStyle, normalizeDocumentBookmarkReferencesHtml, documentCitationInstruction, parseDocumentParagraphBordersElement, documentImageWrapContourFromElement, documentImagePositionFromElement, normalizeDocumentPageChrome, documentPageMarginsForLayout, normalizeDocumentImageLayer, documentBookmarkReferenceInstruction, documentImageCropFromElement, normalizeDocumentPageBorders, documentImageLayerFromElement, parseDocxThemeReference, documentCaptionLabel, documentCaptionKind, applyDocumentParagraphIdentityToElement, isContourImageLayout, normalizeDocumentImageIdentity, normalizeTableColor, documentTableBordersFromElement, documentSections, createDocumentParagraphIdentityRegistry, documentCitationTags, docxDocumentFieldKind, wrapsBesideImage, DocxThemePatchCollector, defaultDocumentImageWrapContour, normalizeDocumentParagraphIdentity, normalizeDocumentPaperSource, documentEquationFromElement, DOCUMENT_PARAGRAPH_BORDER_EDGES, parseDocumentCharacterFormatting, patchDocxThemeReferences, parseDocumentParagraphShadingElement, documentParagraphIdentityFromElement, normalizeDocumentEquation, parseDocumentParagraphFormatting, documentTableRowIdentityFromElement, normalizeDocumentBookmarkNativeId, collectDocumentNotes, DOCUMENT_PAGE_MARGIN_KEYS, uniqueDocumentImageIdentity, documentImageLayoutFromElement, documentPageHorizontalMarginTwips, documentPageGeometryForLayout, normalizeDocumentPageMargins, documentNoteKind } from "./6282.js";
|
|
3
3
|
import { serializeUtf8Xml, directChildren, xmlNamespacePrefix, parseXml, decodeXmlBytes, descendants, resolvePartTarget, directChild, attribute as work_ooxml_package_attribute } from "./5184.js";
|
|
4
4
|
import { assignDocxNoteIds, patchDocxPageColor, normalizeDocxCommentId, assignDocxCommentThreads } from "./0~4980.js";
|
|
5
5
|
import { paragraphTabStops, mergeDocxIgnorableExtensionsAtPairs, patchDocxBibliography, XMLNS_NAMESPACE as work_docx_settings_xml_XMLNS_NAMESPACE, paragraphAlignment, paragraphSpacingOptions, xmlNamespaceUri, hasNonWhitespaceXmlText, cloneXmlElement, cssColorToHex, DocxParagraphDefaultCollapsedPatchCollector, assertXmlRoot, xmlDeclaredPrefix, paragraphIndent, domDirection, DOCX_WORDPROCESSING_NAMESPACES, paragraphBidirectional, XML_NAMESPACE as work_docx_settings_xml_XML_NAMESPACE, patchDocxParagraphDefaultCollapsed, xmlAttributeNamespace, dataBoolean, mergeDocxIgnorableExtensions, parseDocxColorSchemeMappingElement, paragraphPaginationOptions, DOCX_COLOR_SCHEME_MAPPING_ATTRIBUTES, xmlAttributeLocalName, cssFontSize, paragraphDirectionOptions, cssFontFamily } from "./0~2805.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import jszip from "jszip";
|
|
2
2
|
import { contentTypeForPart, directChildren, bytesToDataUrl, OoxmlPackage, firstDescendant, descendants, directChild, attribute } from "./5184.js";
|
|
3
|
-
import { normalizeDocumentBookmarkName, documentInitialSectionLayout, normalizeDocumentFieldsHtml, applyDocumentImageIdentityToElement, renderDocumentTableCellMarginOverrides, documentCaptionLabel, documentTableBordersFromElement, isContourImageLayout, normalizeDocumentCitationsHtml, createDocumentImageIdentityRegistry, normalizeDocumentColumns, normalizeDocumentImageIdentity, normalizeDocumentImageWrapSide, applyDocumentParagraphIdentityToElement, docxDocumentFieldKind, serializeDocxThemeReference, renderDocumentTableBorders, docxBookmarkReferenceTarget, normalizeDocumentImagePosition, wrapsBesideImage, documentPageChromeLegacyFields, normalizeDocumentImageWrapContour, documentParagraphShadingDomAttributes, normalizeDocumentBookmarksHtml, documentParagraphBordersDomAttributes, DOCUMENT_TABLE_ROW_ID_ATTRIBUTE, applyDocumentTableRowIdentityToElement, normalizeDocumentCaptionsHtml, normalizeDocumentParagraphIdentity, DEFAULT_DOCUMENT_TABLE_CELL_MARGINS, DEFAULT_DOCUMENT_TABLE_GEOMETRY, documentSectionDomAttributes, documentPageMarginBody, normalizeDocumentImageAlignment, normalizeDocumentParagraphId, applyDocumentImageLayerToElement, normalizeDocumentBookmarkNativeId, normalizeDocumentTableRowIdentity, uniqueDocumentImageIdentity, normalizeDocumentBookmarkReferencesHtml, documentCitationTagsFromInstruction, applyDocumentImageWrapContourToElement, normalizeDocumentNotesHtml, applyDocumentTableGeometryToElement, normalizeDocumentImageCrop, normalizeDocumentPageChrome, normalizeDocumentImageLayoutOptions, applyDocumentImageCropToElement, documentPageMarginsForLayout, applyDocumentPageGeometry, documentContentLayoutProperties, createDocumentNoteElement, normalizeDocumentImageLayer, DOCUMENT_TABLE_ROW_TEXT_ID_ATTRIBUTE, documentBookmarkReferenceInstruction } from "./
|
|
3
|
+
import { normalizeDocumentBookmarkName, documentInitialSectionLayout, normalizeDocumentFieldsHtml, applyDocumentImageIdentityToElement, renderDocumentTableCellMarginOverrides, documentCaptionLabel, documentTableBordersFromElement, isContourImageLayout, normalizeDocumentCitationsHtml, createDocumentImageIdentityRegistry, normalizeDocumentColumns, normalizeDocumentImageIdentity, normalizeDocumentImageWrapSide, applyDocumentParagraphIdentityToElement, docxDocumentFieldKind, serializeDocxThemeReference, renderDocumentTableBorders, docxBookmarkReferenceTarget, normalizeDocumentImagePosition, wrapsBesideImage, documentPageChromeLegacyFields, normalizeDocumentImageWrapContour, documentParagraphShadingDomAttributes, normalizeDocumentBookmarksHtml, documentParagraphBordersDomAttributes, DOCUMENT_TABLE_ROW_ID_ATTRIBUTE, applyDocumentTableRowIdentityToElement, normalizeDocumentCaptionsHtml, normalizeDocumentParagraphIdentity, DEFAULT_DOCUMENT_TABLE_CELL_MARGINS, DEFAULT_DOCUMENT_TABLE_GEOMETRY, documentSectionDomAttributes, documentPageMarginBody, normalizeDocumentImageAlignment, normalizeDocumentParagraphId, applyDocumentImageLayerToElement, normalizeDocumentBookmarkNativeId, normalizeDocumentTableRowIdentity, uniqueDocumentImageIdentity, normalizeDocumentBookmarkReferencesHtml, documentCitationTagsFromInstruction, applyDocumentImageWrapContourToElement, normalizeDocumentNotesHtml, applyDocumentTableGeometryToElement, normalizeDocumentImageCrop, normalizeDocumentPageChrome, normalizeDocumentImageLayoutOptions, applyDocumentImageCropToElement, documentPageMarginsForLayout, applyDocumentPageGeometry, documentContentLayoutProperties, createDocumentNoteElement, normalizeDocumentImageLayer, DOCUMENT_TABLE_ROW_TEXT_ID_ATTRIBUTE, documentBookmarkReferenceInstruction } from "./6282.js";
|
|
4
4
|
import { markDocxParagraphFormattingChanges, markDocxParagraphIndents, parseDocxPageGeometry, parseDocxPageBorders, docxCaptionReferenceTarget, applyImportedDocxEquationMarkers, hasImportedDocxParagraphPaginationMarkers, createDocxTableStyleResolver, applyImportedDocxParagraphSpacingMarkers, hasImportedDocxParagraphShadingMarkers, hasImportedDocxParagraphDirectionMarkers, isDocxEquationLikeRoot, inspectDocxPageMarginSettings, applyImportedDocxParagraphFormattingChangeMarkers, hasImportedDocxParagraphTabStopMarkers, hasImportedDocxRunFormattingMarkers, hasImportedDocxParagraphIndentMarkers, docxCaptionSequenceKind, resolveDocxParagraphBordersForParagraph, applyImportedDocxRunFormattingMarkers, markDocxParagraphAlignments, markDocxParagraphDirections, applyImportedDocxParagraphShadingMarkers, markDocxParagraphSpacing, hasImportedDocxParagraphBorderMarkers, hasImportedDocxParagraphFormattingChangeMarkers, docxCaptionBookmark, docxFieldResultText, createDocxParagraphStyleResolver, docxEquationHtml, docxFieldOccurrences, hasImportedDocxParagraphAlignmentMarkers, markDocxParagraphTabStops, applyImportedDocxParagraphIndentMarkers, resolveDocxTableStyleResolver, applyImportedDocxParagraphDirectionMarkers, docxTableCellStyleLayers, applyImportedDocxParagraphAlignmentMarkers, markDocxParagraphPagination, markDocxParagraphBorders, markDocxRunFormatting, applyImportedDocxParagraphTabStopMarkers, docxFieldOccurrenceIsInlineEditable, applyImportedDocxParagraphBorderMarkers, applyImportedDocxParagraphPaginationMarkers, parseDocxPaperSource, hasImportedDocxParagraphSpacingMarkers, docxTablePropertySources, parseDirectDocxParagraphShading, parseDocxPageMargins, markDocxParagraphShading, markDocxPackageEquations } from "./0~5093.js";
|
|
5
5
|
import { xmlAttributeLocalName, readDocxBibliography, createDocxThemeResolver, docxThemeColor, parseDocxParagraphDefaultCollapsed, resolveDocxThemeResolver, DOCX_WORDPROCESSING_NAMESPACES, xmlAttributeNamespace } from "./0~2805.js";
|
|
6
6
|
import { importDocxPageColor, importedDocumentNoteId } from "./0~4980.js";
|