@bendyline/squisq-formats 2.7.2 → 2.7.4
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 +1 -1
- package/THIRD_PARTY_LICENSES.txt +192 -0
- package/dist/{chunk-YERFQ2SB.js → chunk-32AQL6I6.js} +219 -83
- package/dist/{chunk-YITBSNPM.js → chunk-5YYF3Z6C.js} +4 -2
- package/dist/{chunk-ETK2SKVQ.js → chunk-B6UQPW75.js} +7 -3
- package/dist/{chunk-PKFWF4FX.js → chunk-GESOAVYN.js} +5 -2
- package/dist/{chunk-RSU3V5IQ.js → chunk-JZR32FON.js} +14 -1
- package/dist/{chunk-52RXDH24.js → chunk-OOM2YMXU.js} +2 -2
- package/dist/{chunk-XCHIYF3A.js → chunk-RRULGPWV.js} +1 -1
- package/dist/{chunk-Z3QORA5G.js → chunk-VU7M3YV6.js} +1 -1
- package/dist/{chunk-YVCUNZB5.js → chunk-WMIDXNGR.js} +1 -1
- package/dist/docx/index.js +2 -2
- package/dist/epub/index.js +3 -3
- package/dist/html/index.js +3 -3
- package/dist/images-PQCYRJJ5.js +14 -0
- package/dist/index.js +9 -9
- package/dist/outside-in/index.js +2 -2
- package/dist/pdf/index.d.ts +38 -0
- package/dist/pdf/index.js +2 -2
- package/dist/pptx/index.js +3 -3
- package/dist/registry/index.js +1 -1
- package/dist/unicodeFontData.generated-YY6T2K5S.js +22 -0
- package/package.json +4 -3
- package/dist/images-CAWESWRF.js +0 -10
package/dist/epub/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
docToEpub,
|
|
3
3
|
markdownDocToEpub
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-GESOAVYN.js";
|
|
5
|
+
import "../chunk-WMIDXNGR.js";
|
|
6
6
|
import "../chunk-VCZUXQUL.js";
|
|
7
7
|
import "../chunk-AVOZAKGP.js";
|
|
8
8
|
import "../chunk-JU2RHXUB.js";
|
|
9
9
|
import "../chunk-BXWNU4T5.js";
|
|
10
10
|
import "../chunk-LBXBRFBZ.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-JZR32FON.js";
|
|
12
12
|
export {
|
|
13
13
|
docToEpub,
|
|
14
14
|
markdownDocToEpub
|
package/dist/html/index.js
CHANGED
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
markdownDocToPlainHtml,
|
|
11
11
|
markdownDocsToHtmlBundle,
|
|
12
12
|
markdownDocsToPlainHtmlBundle
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-B6UQPW75.js";
|
|
14
14
|
import {
|
|
15
15
|
arrayBufferToBase64DataUrl,
|
|
16
16
|
extractFilename,
|
|
17
17
|
inferMimeType
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-WMIDXNGR.js";
|
|
19
19
|
import "../chunk-VCZUXQUL.js";
|
|
20
20
|
import "../chunk-BXWNU4T5.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-JZR32FON.js";
|
|
22
22
|
export {
|
|
23
23
|
arrayBufferToBase64DataUrl,
|
|
24
24
|
collectImagePaths,
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
htmlToMarkdown,
|
|
6
6
|
htmlToMarkdownDoc,
|
|
7
7
|
htmlToMarkdownDocSync
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B6UQPW75.js";
|
|
9
9
|
import {
|
|
10
10
|
docToEpub,
|
|
11
11
|
markdownDocToEpub
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GESOAVYN.js";
|
|
13
13
|
import {
|
|
14
14
|
BUILTIN_FORMAT_IDS
|
|
15
15
|
} from "./chunk-2P5HJAQL.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
renderOutsideInDocument,
|
|
29
29
|
withOutsideInMarkdownEditing,
|
|
30
30
|
withOutsideInMetadata
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VU7M3YV6.js";
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_CONVERSION_LIMITS,
|
|
34
34
|
convert,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
defaultRegistry,
|
|
38
38
|
prepareConversion,
|
|
39
39
|
resolveConversionLimits
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RRULGPWV.js";
|
|
41
41
|
import {
|
|
42
42
|
ConversionError
|
|
43
43
|
} from "./chunk-KXOZMWBS.js";
|
|
@@ -52,15 +52,15 @@ import {
|
|
|
52
52
|
docxToDoc,
|
|
53
53
|
docxToMarkdownDoc,
|
|
54
54
|
markdownDocToDocx
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-5YYF3Z6C.js";
|
|
56
56
|
import {
|
|
57
57
|
docToPptx,
|
|
58
58
|
markdownDocToPptx,
|
|
59
59
|
pptxToDoc,
|
|
60
60
|
pptxToMarkdownDoc
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-OOM2YMXU.js";
|
|
62
62
|
import "./chunk-6N2J7C2B.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-WMIDXNGR.js";
|
|
64
64
|
import "./chunk-XVBQB2SL.js";
|
|
65
65
|
import "./chunk-VCZUXQUL.js";
|
|
66
66
|
import {
|
|
@@ -94,12 +94,12 @@ import {
|
|
|
94
94
|
markdownDocToPdf,
|
|
95
95
|
pdfToDoc,
|
|
96
96
|
pdfToMarkdownDoc
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-32AQL6I6.js";
|
|
98
98
|
import "./chunk-34KECNZO.js";
|
|
99
99
|
import "./chunk-BXWNU4T5.js";
|
|
100
100
|
import "./chunk-IIQYS2YH.js";
|
|
101
101
|
import "./chunk-LBXBRFBZ.js";
|
|
102
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-JZR32FON.js";
|
|
103
103
|
export {
|
|
104
104
|
BUILTIN_FORMAT_IDS,
|
|
105
105
|
ConversionError,
|
package/dist/outside-in/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
renderOutsideInDocument,
|
|
7
7
|
withOutsideInMarkdownEditing,
|
|
8
8
|
withOutsideInMetadata
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-VU7M3YV6.js";
|
|
10
|
+
import "../chunk-RRULGPWV.js";
|
|
11
11
|
import "../chunk-KXOZMWBS.js";
|
|
12
12
|
import {
|
|
13
13
|
OUTSIDE_IN_FORMAT_IDS,
|
package/dist/pdf/index.d.ts
CHANGED
|
@@ -2,6 +2,36 @@ import { ThemeRegistry, Doc } from '@bendyline/squisq/schemas';
|
|
|
2
2
|
import { MarkdownDocument } from '@bendyline/squisq/markdown';
|
|
3
3
|
import { ContentContainer } from '@bendyline/squisq/storage';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Unicode text for PDF export.
|
|
7
|
+
*
|
|
8
|
+
* The 14 standard PDF fonts encode only WinAnsi (see `winAnsi.ts`), so Greek,
|
|
9
|
+
* Cyrillic, Vietnamese, arrows, math, box drawing and most symbols used to
|
|
10
|
+
* reach the page as `?` or an ASCII stand-in. When a document holds such text,
|
|
11
|
+
* the writer embeds a Unicode font beside the standard ones — by default the
|
|
12
|
+
* bundled DejaVu Sans faces — and draws those characters with it.
|
|
13
|
+
*
|
|
14
|
+
* Text is split into runs, each with the font that draws it:
|
|
15
|
+
* - characters WinAnsi encodes keep the standard font, so ordinary Latin text
|
|
16
|
+
* looks exactly as it did before;
|
|
17
|
+
* - a word that needs the Unicode font is drawn in it whole, so its letters and
|
|
18
|
+
* punctuation match rather than alternating faces mid-word;
|
|
19
|
+
* - a character neither font can draw (CJK and emoji, with the bundled faces)
|
|
20
|
+
* still goes through the WinAnsi sanitizer, which replaces it and counts it
|
|
21
|
+
* toward the export's one warning.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* TrueType or OpenType bytes for the faces that draw what the standard fonts
|
|
26
|
+
* cannot. Bold falls back to `regular`, and `mono` (used for code) to
|
|
27
|
+
* `regular` as well.
|
|
28
|
+
*/
|
|
29
|
+
interface PdfUnicodeFonts {
|
|
30
|
+
regular: Uint8Array | ArrayBuffer;
|
|
31
|
+
bold?: Uint8Array | ArrayBuffer;
|
|
32
|
+
mono?: Uint8Array | ArrayBuffer;
|
|
33
|
+
}
|
|
34
|
+
|
|
5
35
|
/**
|
|
6
36
|
* PDF Export
|
|
7
37
|
*
|
|
@@ -74,6 +104,14 @@ interface PdfExportOptions {
|
|
|
74
104
|
* `ConversionResult.warnings` instead.
|
|
75
105
|
*/
|
|
76
106
|
onWarning?: (message: string) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Fonts that draw what the standard PDF fonts cannot encode — Greek,
|
|
109
|
+
* Cyrillic, Vietnamese, arrows, math, box drawing, symbols. Default: the
|
|
110
|
+
* bundled DejaVu Sans faces, embedded (subset) only in a document that has
|
|
111
|
+
* such text. Pass your own faces to cover other scripts, or `false` to keep
|
|
112
|
+
* the standard fonts alone and replace those characters.
|
|
113
|
+
*/
|
|
114
|
+
unicodeFonts?: PdfUnicodeFonts | false;
|
|
77
115
|
}
|
|
78
116
|
/**
|
|
79
117
|
* Convert a MarkdownDocument to a PDF ArrayBuffer.
|
package/dist/pdf/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
pdfToContainer,
|
|
6
6
|
pdfToDoc,
|
|
7
7
|
pdfToMarkdownDoc
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-32AQL6I6.js";
|
|
9
9
|
import "../chunk-34KECNZO.js";
|
|
10
10
|
import "../chunk-BXWNU4T5.js";
|
|
11
11
|
import "../chunk-IIQYS2YH.js";
|
|
12
12
|
import "../chunk-LBXBRFBZ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-JZR32FON.js";
|
|
14
14
|
export {
|
|
15
15
|
configurePdfWorker,
|
|
16
16
|
docToPdf,
|
package/dist/pptx/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
pptxToContainer,
|
|
5
5
|
pptxToDoc,
|
|
6
6
|
pptxToMarkdownDoc
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-OOM2YMXU.js";
|
|
8
8
|
import {
|
|
9
9
|
analyzePptxLayouts,
|
|
10
10
|
inspectPptxLayouts
|
|
11
11
|
} from "../chunk-6N2J7C2B.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-WMIDXNGR.js";
|
|
13
13
|
import "../chunk-XVBQB2SL.js";
|
|
14
14
|
import "../chunk-VCZUXQUL.js";
|
|
15
15
|
import "../chunk-AVOZAKGP.js";
|
|
@@ -19,7 +19,7 @@ import "../chunk-S5PCVMKU.js";
|
|
|
19
19
|
import "../chunk-7AWFHP5U.js";
|
|
20
20
|
import "../chunk-IIQYS2YH.js";
|
|
21
21
|
import "../chunk-LBXBRFBZ.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-JZR32FON.js";
|
|
23
23
|
export {
|
|
24
24
|
analyzePptxLayouts,
|
|
25
25
|
docToPptx,
|