@embedpdf/engine-core 3.0.0-next.7 → 3.0.0-next.9
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/{AbortError-BsHuCO1S.js → AbortError-8-9JAX1Y.js} +2 -2
- package/dist/{AbortError-BsHuCO1S.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
- package/dist/{AbortError-DmWeq9sx.cjs → AbortError-CRSooKsk.cjs} +2 -2
- package/dist/{AbortError-DmWeq9sx.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
- package/dist/{AnnotationListSnapshot-CHjkcIaL.d.cts → AnnotationListSnapshot-Bwfnb1i-.d.cts} +25 -2
- package/dist/{AnnotationListSnapshot-CHjkcIaL.d.ts → AnnotationListSnapshot-Bwfnb1i-.d.ts} +25 -2
- package/dist/{DocumentSecurityService-CrxGktMI.d.ts → DocumentSecurityService-CqLXyTVM.d.ts} +2 -2
- package/dist/{DocumentSecurityService-B1uv4FaK.d.cts → DocumentSecurityService-DQNpYCXs.d.cts} +2 -2
- package/dist/{Engine-BE6r06QI.d.ts → Engine-C25gzAFz.d.ts} +26 -16
- package/dist/{Engine-BOaRwtKa.d.cts → Engine-COFJU7sA.d.cts} +26 -16
- package/dist/{charmap-D6PLtRiC.cjs → PageInsertBlankInput-CzShuSJI.cjs} +16 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
- package/dist/{charmap-CUukAMhR.js → PageInsertBlankInput-WKY0tr6S.js} +11 -2
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
- package/dist/{builders-BsUc2A1U.cjs → builders-B5CgvJ3j.cjs} +6 -6
- package/dist/{builders-BsUc2A1U.cjs.map → builders-B5CgvJ3j.cjs.map} +1 -1
- package/dist/{builders-CF5gKkOa.js → builders-CGcBlTrv.js} +3 -3
- package/dist/{builders-CF5gKkOa.js.map → builders-CGcBlTrv.js.map} +1 -1
- package/dist/conformance.cjs +337 -178
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +26 -6
- package/dist/conformance.d.ts +26 -6
- package/dist/conformance.js +292 -134
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-DemV94jf.js → fold-BfyxxwS6.js} +2 -2
- package/dist/{fold-DemV94jf.js.map → fold-BfyxxwS6.js.map} +1 -1
- package/dist/{fold-BeT1GxLP.cjs → fold-C7I5GpBz.cjs} +4 -4
- package/dist/{fold-BeT1GxLP.cjs.map → fold-C7I5GpBz.cjs.map} +1 -1
- package/dist/index.cjs +15 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/runtime.cjs +20 -19
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +103 -5
- package/dist/runtime.d.ts +103 -5
- package/dist/runtime.js +5 -5
- package/dist/{schemas-ES6-TkIl.js → schemas-BKRZZ-g1.js} +38 -4
- package/dist/{schemas-ES6-TkIl.js.map → schemas-BKRZZ-g1.js.map} +1 -1
- package/dist/{schemas-CyWwm0Zf.cjs → schemas-DlxjcDIl.cjs} +82 -24
- package/dist/{schemas-CyWwm0Zf.cjs.map → schemas-DlxjcDIl.cjs.map} +1 -1
- package/dist/wire.cjs +37 -3
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +72 -8
- package/dist/wire.d.ts +72 -8
- package/dist/wire.js +34 -4
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/charmap-CUukAMhR.js.map +0 -1
- package/dist/charmap-D6PLtRiC.cjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_fold = require("./fold-
|
|
2
|
-
const
|
|
1
|
+
const require_fold = require("./fold-C7I5GpBz.cjs");
|
|
2
|
+
const require_PageInsertBlankInput = require("./PageInsertBlankInput-CzShuSJI.cjs");
|
|
3
3
|
//#region src/dto/PageRender.ts
|
|
4
4
|
function createPageImageHandle(result, blobSource) {
|
|
5
5
|
return {
|
|
6
6
|
...result,
|
|
7
7
|
async objectUrl(signal) {
|
|
8
|
-
if (typeof Blob === "undefined" || typeof URL === "undefined" || !URL.createObjectURL) throw new require_fold.EngineError(
|
|
8
|
+
if (typeof Blob === "undefined" || typeof URL === "undefined" || !URL.createObjectURL) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.RuntimeUnavailable, "Object URLs are not available in this environment");
|
|
9
9
|
const blob = await blobSource.blob(signal);
|
|
10
10
|
const url = URL.createObjectURL(blob);
|
|
11
11
|
return {
|
|
@@ -229,7 +229,7 @@ function parseJpeg(buffer) {
|
|
|
229
229
|
async function normalizeAttachmentFileSource(file, key) {
|
|
230
230
|
const resolved = await resolveBinarySource(file.data);
|
|
231
231
|
const name = file.name ?? resolved.name;
|
|
232
|
-
if (!name) throw new require_fold.EngineError(
|
|
232
|
+
if (!name) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.InvalidArg, "attachment file requires a name — pass { data, name } or a File whose name is set");
|
|
233
233
|
const mimeType = file.mimeType ?? resolved.mimeType;
|
|
234
234
|
return {
|
|
235
235
|
wireFile: {
|
|
@@ -267,7 +267,7 @@ async function normalizeFileAttachmentDraft(draft, allocateKey) {
|
|
|
267
267
|
async function resolveStampSource(source) {
|
|
268
268
|
const resolved = await resolveBinarySource(source);
|
|
269
269
|
const meta = sniffBinaryMetadata(resolved.bytes);
|
|
270
|
-
if (!meta) throw new require_fold.EngineError(
|
|
270
|
+
if (!meta) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.InvalidArg, "stamp source must be PNG, JPEG, or single-page PDF bytes (format is detected from the data, not the declared mime type)");
|
|
271
271
|
return {
|
|
272
272
|
...resolved,
|
|
273
273
|
mimeType: meta.mimeType
|
|
@@ -1884,4 +1884,4 @@ Object.defineProperty(exports, "wordBefore", {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
1886
|
|
|
1887
|
-
//# sourceMappingURL=builders-
|
|
1887
|
+
//# sourceMappingURL=builders-B5CgvJ3j.cjs.map
|