js.documents 14.4.30 → 14.4.32
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/{clock-C7SUuYN0.d.cts → clock-Cewekmhw.d.cts} +1 -1
- package/dist/{clock-C7SUuYN0.d.ts → clock-Cewekmhw.d.ts} +1 -1
- package/dist/codecs/registry.d.cts +2 -2
- package/dist/codecs/registry.d.ts +2 -2
- package/dist/convert/composition.d.cts +1 -1
- package/dist/convert/composition.d.ts +1 -1
- package/dist/convert/convert.d.cts +1 -1
- package/dist/convert/convert.d.ts +1 -1
- package/dist/convert/local.cjs +7 -3
- package/dist/convert/local.js +7 -3
- package/dist/convert/port.d.cts +2 -2
- package/dist/convert/port.d.ts +2 -2
- package/dist/edit/doc/editor.d.cts +5 -5
- package/dist/edit/doc/editor.d.ts +5 -5
- package/dist/edit/docx/content.d.cts +1 -1
- package/dist/edit/docx/content.d.ts +1 -1
- package/dist/edit/docx/editor.d.cts +10 -10
- package/dist/edit/docx/editor.d.ts +10 -10
- package/dist/edit/markdown/editor.d.cts +6 -6
- package/dist/edit/markdown/editor.d.ts +6 -6
- package/dist/edit/odg/content.d.cts +1 -1
- package/dist/edit/odg/content.d.ts +1 -1
- package/dist/edit/odg/editor.d.cts +1 -1
- package/dist/edit/odg/editor.d.ts +1 -1
- package/dist/edit/odp/content.d.cts +1 -1
- package/dist/edit/odp/content.d.ts +1 -1
- package/dist/edit/odp/editor.d.cts +1 -1
- package/dist/edit/odp/editor.d.ts +1 -1
- package/dist/edit/ods/content.d.cts +1 -1
- package/dist/edit/ods/content.d.ts +1 -1
- package/dist/edit/ods/editor.d.cts +1 -1
- package/dist/edit/ods/editor.d.ts +1 -1
- package/dist/edit/odt/content.d.cts +1 -1
- package/dist/edit/odt/content.d.ts +1 -1
- package/dist/edit/odt/editor.d.cts +12 -12
- package/dist/edit/odt/editor.d.ts +12 -12
- package/dist/edit/pdf/editor.d.cts +1 -1
- package/dist/edit/pdf/editor.d.ts +1 -1
- package/dist/edit/ppt/editor.d.cts +1 -1
- package/dist/edit/ppt/editor.d.ts +1 -1
- package/dist/edit/pptx/content.d.cts +1 -1
- package/dist/edit/pptx/content.d.ts +1 -1
- package/dist/edit/pptx/editor.d.cts +1 -1
- package/dist/edit/pptx/editor.d.ts +1 -1
- package/dist/edit/xls/editor.d.cts +1 -1
- package/dist/edit/xls/editor.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/model/metadata.d.cts +1 -1
- package/dist/model/metadata.d.ts +1 -1
- package/dist/ports/clock.d.cts +1 -1
- package/dist/ports/clock.d.ts +1 -1
- package/package.json +6 -6
|
@@ -4,8 +4,8 @@ import { ContentCodec } from "document-schema.js";
|
|
|
4
4
|
import { LayoutDocument } from "pdf-codec";
|
|
5
5
|
//#region src/codecs/registry.d.ts
|
|
6
6
|
interface LayoutEntryCodec {
|
|
7
|
-
read(bytes: Uint8Array, options?: DocumentCodecOptions)
|
|
8
|
-
write(layout: LayoutDocument, options?: DocumentCodecOptions)
|
|
7
|
+
read: (bytes: Uint8Array, options?: DocumentCodecOptions) => LayoutDocument;
|
|
8
|
+
write: (layout: LayoutDocument, options?: DocumentCodecOptions) => Uint8Array;
|
|
9
9
|
}
|
|
10
10
|
interface DocumentFormatCodecs {
|
|
11
11
|
readonly content?: ContentCodec<DocumentCodecOptions>;
|
|
@@ -4,8 +4,8 @@ import { ContentCodec } from "document-schema.js";
|
|
|
4
4
|
import { LayoutDocument } from "pdf-codec";
|
|
5
5
|
//#region src/codecs/registry.d.ts
|
|
6
6
|
interface LayoutEntryCodec {
|
|
7
|
-
read(bytes: Uint8Array, options?: DocumentCodecOptions)
|
|
8
|
-
write(layout: LayoutDocument, options?: DocumentCodecOptions)
|
|
7
|
+
read: (bytes: Uint8Array, options?: DocumentCodecOptions) => LayoutDocument;
|
|
8
|
+
write: (layout: LayoutDocument, options?: DocumentCodecOptions) => Uint8Array;
|
|
9
9
|
}
|
|
10
10
|
interface DocumentFormatCodecs {
|
|
11
11
|
readonly content?: ContentCodec<DocumentCodecOptions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.cjs";
|
|
2
2
|
import { DocumentFormat } from "./port.cjs";
|
|
3
3
|
import { t as ContentVariant } from "../capability-WJWAE-5Z.cjs";
|
|
4
4
|
import { i as SvgDiagnosticSink } from "../diagnostics-DVAXKgcf.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.js";
|
|
2
2
|
import { DocumentFormat } from "./port.js";
|
|
3
3
|
import { t as ContentVariant } from "../capability-BmRwrPL9.js";
|
|
4
4
|
import { i as SvgDiagnosticSink } from "../diagnostics-DVAXKgcf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.cjs";
|
|
2
2
|
import { i as SvgDiagnosticSink } from "../diagnostics-DVAXKgcf.cjs";
|
|
3
3
|
import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.cjs";
|
|
4
4
|
import { t as OmmlDiagnostic } from "../shared-c0Lp3_iY.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.js";
|
|
2
2
|
import { i as SvgDiagnosticSink } from "../diagnostics-DVAXKgcf.js";
|
|
3
3
|
import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.js";
|
|
4
4
|
import { t as OmmlDiagnostic } from "../shared-DHu5jDJf.js";
|
package/dist/convert/local.cjs
CHANGED
|
@@ -48,7 +48,7 @@ function createLocalDocumentConverter() {
|
|
|
48
48
|
return {
|
|
49
49
|
contractVersion: 7,
|
|
50
50
|
conversions: SUPPORTED_CONVERSIONS,
|
|
51
|
-
convert(request, options) {
|
|
51
|
+
async convert(request, options) {
|
|
52
52
|
const { source, targetFormat } = request;
|
|
53
53
|
const diagnostics = [];
|
|
54
54
|
let documentPackage;
|
|
@@ -81,8 +81,12 @@ function createLocalDocumentConverter() {
|
|
|
81
81
|
signal: options.signal,
|
|
82
82
|
fonts: options.fonts,
|
|
83
83
|
onFontSubstitution,
|
|
84
|
-
onSubstitution: (s, c) =>
|
|
85
|
-
|
|
84
|
+
onSubstitution: (s, c) => {
|
|
85
|
+
diagnostics.push(substitutionDiagnostic(s, c));
|
|
86
|
+
},
|
|
87
|
+
sink: (d) => {
|
|
88
|
+
diagnostics.push(fromPdfDiagnostic(d));
|
|
89
|
+
},
|
|
86
90
|
images: options.images,
|
|
87
91
|
delimiter: options.delimiter,
|
|
88
92
|
sheet: options.sheet,
|
package/dist/convert/local.js
CHANGED
|
@@ -47,7 +47,7 @@ function createLocalDocumentConverter() {
|
|
|
47
47
|
return {
|
|
48
48
|
contractVersion: 7,
|
|
49
49
|
conversions: SUPPORTED_CONVERSIONS,
|
|
50
|
-
convert(request, options) {
|
|
50
|
+
async convert(request, options) {
|
|
51
51
|
const { source, targetFormat } = request;
|
|
52
52
|
const diagnostics = [];
|
|
53
53
|
let documentPackage;
|
|
@@ -80,8 +80,12 @@ function createLocalDocumentConverter() {
|
|
|
80
80
|
signal: options.signal,
|
|
81
81
|
fonts: options.fonts,
|
|
82
82
|
onFontSubstitution,
|
|
83
|
-
onSubstitution: (s, c) =>
|
|
84
|
-
|
|
83
|
+
onSubstitution: (s, c) => {
|
|
84
|
+
diagnostics.push(substitutionDiagnostic(s, c));
|
|
85
|
+
},
|
|
86
|
+
sink: (d) => {
|
|
87
|
+
diagnostics.push(fromPdfDiagnostic(d));
|
|
88
|
+
},
|
|
85
89
|
images: options.images,
|
|
86
90
|
delimiter: options.delimiter,
|
|
87
91
|
sheet: options.sheet,
|
package/dist/convert/port.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.cjs";
|
|
2
2
|
import { DocumentTree, FontSubstitution, ProvidedFont } from "document-schema.js";
|
|
3
3
|
import { MarkdownImageResolver } from "markdown-codec";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -60,7 +60,7 @@ interface DocumentConverter {
|
|
|
60
60
|
readonly source: DocumentFormat;
|
|
61
61
|
readonly target: DocumentFormat;
|
|
62
62
|
}[];
|
|
63
|
-
convert(request: ConversionRequest, options: ConversionOptions)
|
|
63
|
+
convert: (request: ConversionRequest, options: ConversionOptions) => Promise<ConversionResult>;
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
export { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMATS, Diagnostic, DocumentConverter, DocumentFormat, DocumentFormatSchema, DocumentPayload };
|
package/dist/convert/port.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.js";
|
|
2
2
|
import { DocumentTree, FontSubstitution, ProvidedFont } from "document-schema.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { MarkdownImageResolver } from "markdown-codec";
|
|
@@ -60,7 +60,7 @@ interface DocumentConverter {
|
|
|
60
60
|
readonly source: DocumentFormat;
|
|
61
61
|
readonly target: DocumentFormat;
|
|
62
62
|
}[];
|
|
63
|
-
convert(request: ConversionRequest, options: ConversionOptions)
|
|
63
|
+
convert: (request: ConversionRequest, options: ConversionOptions) => Promise<ConversionResult>;
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
export { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMATS, Diagnostic, DocumentConverter, DocumentFormat, DocumentFormatSchema, DocumentPayload };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { MetadataOverrides } from "../../metadata/core-patch.cjs";
|
|
3
3
|
import { n as ParagraphInit, t as DocParagraph } from "../../paragraph-DM9n9I4T.cjs";
|
|
4
4
|
import { DocTable, TableInit } from "./table.cjs";
|
|
@@ -29,10 +29,10 @@ declare class DocSection {
|
|
|
29
29
|
remove(): void;
|
|
30
30
|
}
|
|
31
31
|
interface DocBody {
|
|
32
|
-
paragraphs()
|
|
33
|
-
appendParagraph(init?: ParagraphInit)
|
|
34
|
-
tables()
|
|
35
|
-
appendTable(init: TableInit)
|
|
32
|
+
paragraphs: () => DocParagraph[];
|
|
33
|
+
appendParagraph: (init?: ParagraphInit) => DocParagraph;
|
|
34
|
+
tables: () => DocTable[];
|
|
35
|
+
appendTable: (init: TableInit) => DocTable;
|
|
36
36
|
}
|
|
37
37
|
interface CreateDocOptions {
|
|
38
38
|
readonly clock?: ClockPort;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { MetadataOverrides } from "../../metadata/core-patch.js";
|
|
3
3
|
import { n as ParagraphInit, t as DocParagraph } from "../../paragraph-Byw2Y7xu.js";
|
|
4
4
|
import { DocTable, TableInit } from "./table.js";
|
|
@@ -29,10 +29,10 @@ declare class DocSection {
|
|
|
29
29
|
remove(): void;
|
|
30
30
|
}
|
|
31
31
|
interface DocBody {
|
|
32
|
-
paragraphs()
|
|
33
|
-
appendParagraph(init?: ParagraphInit)
|
|
34
|
-
tables()
|
|
35
|
-
appendTable(init: TableInit)
|
|
32
|
+
paragraphs: () => DocParagraph[];
|
|
33
|
+
appendParagraph: (init?: ParagraphInit) => DocParagraph;
|
|
34
|
+
tables: () => DocTable[];
|
|
35
|
+
appendTable: (init: TableInit) => DocTable;
|
|
36
36
|
}
|
|
37
37
|
interface CreateDocOptions {
|
|
38
38
|
readonly clock?: ClockPort;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { t as OmmlDiagnostic } from "../../shared-c0Lp3_iY.cjs";
|
|
3
3
|
import { a as DocxWriteDiagnosticSink } from "../../diagnostics-C2-C2uUI.cjs";
|
|
4
4
|
import { ContentDocument } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { t as OmmlDiagnostic } from "../../shared-DHu5jDJf.js";
|
|
3
3
|
import { a as DocxWriteDiagnosticSink } from "../../diagnostics-C2-C2uUI.js";
|
|
4
4
|
import { Package } from "ooxml.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { DocxParagraph, ParagraphInit } from "./paragraph.cjs";
|
|
3
3
|
import { DocxTable, TableInit } from "./table.cjs";
|
|
4
4
|
import { ContentControlDescriptor, LayoutMetadata, ProvenanceDescriptor } from "document-schema.js";
|
|
5
5
|
import { Package } from "ooxml.js";
|
|
6
6
|
//#region src/edit/docx/editor.d.ts
|
|
7
7
|
interface DocxBody {
|
|
8
|
-
insertParagraphAt(index: number, init?: ParagraphInit)
|
|
9
|
-
appendParagraph(init?: ParagraphInit)
|
|
10
|
-
appendTable(init: TableInit)
|
|
11
|
-
appendPageBreak()
|
|
12
|
-
appendBookmarkStart(id: number, name: string)
|
|
13
|
-
appendBookmarkEnd(id: number)
|
|
14
|
-
openContentControlRegion(descriptor: ContentControlDescriptor)
|
|
15
|
-
openProvenanceRegion(descriptor: ProvenanceDescriptor)
|
|
16
|
-
closeRegion()
|
|
8
|
+
insertParagraphAt: (index: number, init?: ParagraphInit) => DocxParagraph;
|
|
9
|
+
appendParagraph: (init?: ParagraphInit) => DocxParagraph;
|
|
10
|
+
appendTable: (init: TableInit) => DocxTable;
|
|
11
|
+
appendPageBreak: () => void;
|
|
12
|
+
appendBookmarkStart: (id: number, name: string) => void;
|
|
13
|
+
appendBookmarkEnd: (id: number) => void;
|
|
14
|
+
openContentControlRegion: (descriptor: ContentControlDescriptor) => void;
|
|
15
|
+
openProvenanceRegion: (descriptor: ProvenanceDescriptor) => boolean;
|
|
16
|
+
closeRegion: () => void;
|
|
17
17
|
}
|
|
18
18
|
declare class DocxEditor {
|
|
19
19
|
readonly body: DocxBody;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { DocxParagraph, ParagraphInit } from "./paragraph.js";
|
|
3
3
|
import { DocxTable, TableInit } from "./table.js";
|
|
4
4
|
import { Package } from "ooxml.js";
|
|
5
5
|
import { ContentControlDescriptor, LayoutMetadata, ProvenanceDescriptor } from "document-schema.js";
|
|
6
6
|
//#region src/edit/docx/editor.d.ts
|
|
7
7
|
interface DocxBody {
|
|
8
|
-
insertParagraphAt(index: number, init?: ParagraphInit)
|
|
9
|
-
appendParagraph(init?: ParagraphInit)
|
|
10
|
-
appendTable(init: TableInit)
|
|
11
|
-
appendPageBreak()
|
|
12
|
-
appendBookmarkStart(id: number, name: string)
|
|
13
|
-
appendBookmarkEnd(id: number)
|
|
14
|
-
openContentControlRegion(descriptor: ContentControlDescriptor)
|
|
15
|
-
openProvenanceRegion(descriptor: ProvenanceDescriptor)
|
|
16
|
-
closeRegion()
|
|
8
|
+
insertParagraphAt: (index: number, init?: ParagraphInit) => DocxParagraph;
|
|
9
|
+
appendParagraph: (init?: ParagraphInit) => DocxParagraph;
|
|
10
|
+
appendTable: (init: TableInit) => DocxTable;
|
|
11
|
+
appendPageBreak: () => void;
|
|
12
|
+
appendBookmarkStart: (id: number, name: string) => void;
|
|
13
|
+
appendBookmarkEnd: (id: number) => void;
|
|
14
|
+
openContentControlRegion: (descriptor: ContentControlDescriptor) => void;
|
|
15
|
+
openProvenanceRegion: (descriptor: ProvenanceDescriptor) => boolean;
|
|
16
|
+
closeRegion: () => void;
|
|
17
17
|
}
|
|
18
18
|
declare class DocxEditor {
|
|
19
19
|
readonly body: DocxBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { MarkdownParagraph, ParagraphInit } from "./paragraph.cjs";
|
|
3
3
|
import { MarkdownList, MarkdownListInit } from "./list.cjs";
|
|
4
4
|
import { MarkdownTable, TableInit } from "./table.cjs";
|
|
@@ -6,11 +6,11 @@ import { ContentDocument, Margins, PageSize } from "document-schema.js";
|
|
|
6
6
|
import { ReadMarkdownOptions, WriteMarkdownOptions } from "markdown-codec";
|
|
7
7
|
//#region src/edit/markdown/editor.d.ts
|
|
8
8
|
interface MarkdownBody {
|
|
9
|
-
paragraphs()
|
|
10
|
-
appendParagraph(init?: ParagraphInit)
|
|
11
|
-
tables()
|
|
12
|
-
appendTable(init: TableInit)
|
|
13
|
-
startList(init: MarkdownListInit)
|
|
9
|
+
paragraphs: () => MarkdownParagraph[];
|
|
10
|
+
appendParagraph: (init?: ParagraphInit) => MarkdownParagraph;
|
|
11
|
+
tables: () => MarkdownTable[];
|
|
12
|
+
appendTable: (init: TableInit) => MarkdownTable;
|
|
13
|
+
startList: (init: MarkdownListInit) => MarkdownList;
|
|
14
14
|
}
|
|
15
15
|
interface CreateMarkdownEditorOptions {
|
|
16
16
|
readonly clock?: ClockPort;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { MarkdownParagraph, ParagraphInit } from "./paragraph.js";
|
|
3
3
|
import { MarkdownList, MarkdownListInit } from "./list.js";
|
|
4
4
|
import { MarkdownTable, TableInit } from "./table.js";
|
|
@@ -6,11 +6,11 @@ import { ContentDocument, Margins, PageSize } from "document-schema.js";
|
|
|
6
6
|
import { ReadMarkdownOptions, WriteMarkdownOptions } from "markdown-codec";
|
|
7
7
|
//#region src/edit/markdown/editor.d.ts
|
|
8
8
|
interface MarkdownBody {
|
|
9
|
-
paragraphs()
|
|
10
|
-
appendParagraph(init?: ParagraphInit)
|
|
11
|
-
tables()
|
|
12
|
-
appendTable(init: TableInit)
|
|
13
|
-
startList(init: MarkdownListInit)
|
|
9
|
+
paragraphs: () => MarkdownParagraph[];
|
|
10
|
+
appendParagraph: (init?: ParagraphInit) => MarkdownParagraph;
|
|
11
|
+
tables: () => MarkdownTable[];
|
|
12
|
+
appendTable: (init: TableInit) => MarkdownTable;
|
|
13
|
+
startList: (init: MarkdownListInit) => MarkdownList;
|
|
14
14
|
}
|
|
15
15
|
interface CreateMarkdownEditorOptions {
|
|
16
16
|
readonly clock?: ClockPort;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs";
|
|
3
3
|
import { o as TableInit, r as OdtTable } from "../../table-DrE6jEWv.cjs";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { t as OdtParagraph } from "../../paragraph-D4f705GG.js";
|
|
3
3
|
import { o as TableInit, r as OdtTable } from "../../table-B5htMG3g.js";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs";
|
|
3
3
|
import { t as OdtList } from "../../list-C_UPIZWM.cjs";
|
|
4
4
|
import { o as TableInit, r as OdtTable } from "../../table-DrE6jEWv.cjs";
|
|
@@ -6,17 +6,17 @@ import { Box, ContentControlDescriptor, ContentFormula, ContentVector, DivisionD
|
|
|
6
6
|
import { Package } from "odf.js";
|
|
7
7
|
//#region src/edit/odt/editor.d.ts
|
|
8
8
|
interface OdtBody {
|
|
9
|
-
appendParagraph(init?: ParagraphInit)
|
|
10
|
-
appendTable(init: TableInit)
|
|
11
|
-
appendList()
|
|
12
|
-
appendPageBreak()
|
|
13
|
-
appendFormula(formula: ContentFormula, frame: Box)
|
|
14
|
-
appendVectors(vectors: readonly ContentVector[])
|
|
15
|
-
appendBookmarkStart(name: string)
|
|
16
|
-
appendBookmarkEnd(name: string)
|
|
17
|
-
openDivisionRegion(descriptor: DivisionDescriptor)
|
|
18
|
-
openIndexRegion(descriptor: ContentControlDescriptor)
|
|
19
|
-
closeRegion()
|
|
9
|
+
appendParagraph: (init?: ParagraphInit) => OdtParagraph;
|
|
10
|
+
appendTable: (init: TableInit) => OdtTable;
|
|
11
|
+
appendList: () => OdtList;
|
|
12
|
+
appendPageBreak: () => void;
|
|
13
|
+
appendFormula: (formula: ContentFormula, frame: Box) => OdtParagraph;
|
|
14
|
+
appendVectors: (vectors: readonly ContentVector[]) => OdtParagraph;
|
|
15
|
+
appendBookmarkStart: (name: string) => void;
|
|
16
|
+
appendBookmarkEnd: (name: string) => void;
|
|
17
|
+
openDivisionRegion: (descriptor: DivisionDescriptor) => void;
|
|
18
|
+
openIndexRegion: (descriptor: ContentControlDescriptor) => boolean;
|
|
19
|
+
closeRegion: () => void;
|
|
20
20
|
}
|
|
21
21
|
declare class OdtEditor {
|
|
22
22
|
readonly body: OdtBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-D4f705GG.js";
|
|
3
3
|
import { t as OdtList } from "../../list-C2GWIe6E.js";
|
|
4
4
|
import { o as TableInit, r as OdtTable } from "../../table-B5htMG3g.js";
|
|
@@ -6,17 +6,17 @@ import { Box, ContentControlDescriptor, ContentFormula, ContentVector, DivisionD
|
|
|
6
6
|
import { Package } from "odf.js";
|
|
7
7
|
//#region src/edit/odt/editor.d.ts
|
|
8
8
|
interface OdtBody {
|
|
9
|
-
appendParagraph(init?: ParagraphInit)
|
|
10
|
-
appendTable(init: TableInit)
|
|
11
|
-
appendList()
|
|
12
|
-
appendPageBreak()
|
|
13
|
-
appendFormula(formula: ContentFormula, frame: Box)
|
|
14
|
-
appendVectors(vectors: readonly ContentVector[])
|
|
15
|
-
appendBookmarkStart(name: string)
|
|
16
|
-
appendBookmarkEnd(name: string)
|
|
17
|
-
openDivisionRegion(descriptor: DivisionDescriptor)
|
|
18
|
-
openIndexRegion(descriptor: ContentControlDescriptor)
|
|
19
|
-
closeRegion()
|
|
9
|
+
appendParagraph: (init?: ParagraphInit) => OdtParagraph;
|
|
10
|
+
appendTable: (init: TableInit) => OdtTable;
|
|
11
|
+
appendList: () => OdtList;
|
|
12
|
+
appendPageBreak: () => void;
|
|
13
|
+
appendFormula: (formula: ContentFormula, frame: Box) => OdtParagraph;
|
|
14
|
+
appendVectors: (vectors: readonly ContentVector[]) => OdtParagraph;
|
|
15
|
+
appendBookmarkStart: (name: string) => void;
|
|
16
|
+
appendBookmarkEnd: (name: string) => void;
|
|
17
|
+
openDivisionRegion: (descriptor: DivisionDescriptor) => void;
|
|
18
|
+
openIndexRegion: (descriptor: ContentControlDescriptor) => boolean;
|
|
19
|
+
closeRegion: () => void;
|
|
20
20
|
}
|
|
21
21
|
declare class OdtEditor {
|
|
22
22
|
readonly body: OdtBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { PageInit, PdfPage } from "./page.cjs";
|
|
3
3
|
import { LayoutMetadata } from "document-schema.js";
|
|
4
4
|
import { LayoutDocument, ReadPdfOptions, WritePdfOptions } from "pdf-codec";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { PageInit, PdfPage } from "./page.js";
|
|
3
3
|
import { LayoutMetadata } from "document-schema.js";
|
|
4
4
|
import { LayoutDocument, ReadPdfOptions, WritePdfOptions } from "pdf-codec";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { MetadataOverrides } from "../../metadata/core-patch.cjs";
|
|
3
3
|
import { PptSlide } from "./slide.cjs";
|
|
4
4
|
import { ContentDocument, LayoutMetadata, PageSize } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { MetadataOverrides } from "../../metadata/core-patch.js";
|
|
3
3
|
import { PptSlide } from "./slide.js";
|
|
4
4
|
import { ContentDocument, LayoutMetadata, PageSize } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { t as OmmlDiagnosticSink } from "../../formula-BH1FBblm.cjs";
|
|
3
3
|
import { o as PptxWriteDiagnosticSink } from "../../diagnostics-CGWySzd-.cjs";
|
|
4
4
|
import { ContentDocument } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { t as OmmlDiagnosticSink } from "../../formula-DF4R1QEJ.js";
|
|
3
3
|
import { o as PptxWriteDiagnosticSink } from "../../diagnostics-CGWySzd-.js";
|
|
4
4
|
import { EmbeddedPresentationSerialiser, Package } from "ooxml.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { MetadataOverrides } from "../../metadata/core-patch.cjs";
|
|
3
3
|
import { XlsSheet } from "./sheet.cjs";
|
|
4
4
|
import { ContentDocument, LayoutMetadata } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../../clock-
|
|
1
|
+
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { MetadataOverrides } from "../../metadata/core-patch.js";
|
|
3
3
|
import { XlsSheet } from "./sheet.js";
|
|
4
4
|
import { ContentDocument, LayoutMetadata } from "document-schema.js";
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as fixedClock, r as systemClock, t as ClockPort } from "./clock-
|
|
1
|
+
import { n as fixedClock, r as systemClock, t as ClockPort } from "./clock-Cewekmhw.cjs";
|
|
2
2
|
import { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMATS, Diagnostic, DocumentConverter, DocumentFormat, DocumentFormatSchema, DocumentPayload } from "./convert/port.cjs";
|
|
3
3
|
import { csvMarkdownCodec, csvPdfCodec, docPdfCodec, docxPdfCodec, epubPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odgSvgCodec, odpPdfCodec, odpPptxCodec, odsCsvCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptPdfCodec, pptxPdfCodec, rtfPdfCodec, svgPdfCodec, xlsPdfCodec, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec } from "./convert/codec.cjs";
|
|
4
4
|
import { i as SvgDiagnosticSink, n as SvgDiagnostic, r as SvgDiagnosticCode, t as SVG_DIAGNOSTIC_CODES } from "./diagnostics-DVAXKgcf.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as fixedClock, r as systemClock, t as ClockPort } from "./clock-
|
|
1
|
+
import { n as fixedClock, r as systemClock, t as ClockPort } from "./clock-Cewekmhw.js";
|
|
2
2
|
import { ConversionOptions, ConversionRequest, ConversionResult, DOCUMENT_FORMATS, Diagnostic, DocumentConverter, DocumentFormat, DocumentFormatSchema, DocumentPayload } from "./convert/port.js";
|
|
3
3
|
import { csvMarkdownCodec, csvPdfCodec, docPdfCodec, docxPdfCodec, epubPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odgSvgCodec, odpPdfCodec, odpPptxCodec, odsCsvCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptPdfCodec, pptxPdfCodec, rtfPdfCodec, svgPdfCodec, xlsPdfCodec, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec } from "./convert/codec.js";
|
|
4
4
|
import { i as SvgDiagnosticSink, n as SvgDiagnostic, r as SvgDiagnosticCode, t as SVG_DIAGNOSTIC_CODES } from "./diagnostics-DVAXKgcf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.cjs";
|
|
2
2
|
import { LayoutMetadata } from "document-schema.js";
|
|
3
3
|
//#region src/model/metadata.d.ts
|
|
4
4
|
declare function resolveMetadataTimestamps(metadata: LayoutMetadata, clock?: ClockPort): LayoutMetadata;
|
package/dist/model/metadata.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ClockPort } from "../clock-
|
|
1
|
+
import { t as ClockPort } from "../clock-Cewekmhw.js";
|
|
2
2
|
import { LayoutMetadata } from "document-schema.js";
|
|
3
3
|
//#region src/model/metadata.d.ts
|
|
4
4
|
declare function resolveMetadataTimestamps(metadata: LayoutMetadata, clock?: ClockPort): LayoutMetadata;
|
package/dist/ports/clock.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as fixedClock, r as systemClock, t as ClockPort } from "../clock-
|
|
1
|
+
import { n as fixedClock, r as systemClock, t as ClockPort } from "../clock-Cewekmhw.cjs";
|
|
2
2
|
export { ClockPort, fixedClock, systemClock };
|
package/dist/ports/clock.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as fixedClock, r as systemClock, t as ClockPort } from "../clock-
|
|
1
|
+
import { n as fixedClock, r as systemClock, t as ClockPort } from "../clock-Cewekmhw.js";
|
|
2
2
|
export { ClockPort, fixedClock, systemClock };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.documents",
|
|
3
|
-
"version": "14.4.
|
|
3
|
+
"version": "14.4.32",
|
|
4
4
|
"description": "Bidirectional docx/pptx <-> PDF conversion and a read+write editable OOXML document model, built on ooxml.js and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -79,16 +79,16 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"archive-codec": "1.11.21",
|
|
81
81
|
"byte-codec": "2.0.1",
|
|
82
|
-
"doc-codec": "6.1.
|
|
82
|
+
"doc-codec": "6.1.15",
|
|
83
83
|
"document-schema.js": "7.15.2",
|
|
84
|
-
"epub-codec": "5.1.
|
|
84
|
+
"epub-codec": "5.1.9",
|
|
85
85
|
"fflate": "0.8.3",
|
|
86
|
-
"markdown-codec": "11.1.
|
|
86
|
+
"markdown-codec": "11.1.8",
|
|
87
87
|
"odf.js": "11.1.8",
|
|
88
88
|
"ooxml.js": "12.2.22",
|
|
89
89
|
"pdf-codec": "5.2.25",
|
|
90
|
-
"ppt-codec": "2.2.
|
|
91
|
-
"rtf-codec": "8.1.
|
|
90
|
+
"ppt-codec": "2.2.14",
|
|
91
|
+
"rtf-codec": "8.1.15",
|
|
92
92
|
"temml": "0.13.4",
|
|
93
93
|
"wpd-codec": "5.1.15",
|
|
94
94
|
"xls-codec": "4.15.35",
|