@embedpdf/engine-core 3.0.0-next.12 → 3.0.0-next.13
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-CRSooKsk.cjs → AbortError-Cq2igpZ6.cjs} +2 -2
- package/dist/{AbortError-CRSooKsk.cjs.map → AbortError-Cq2igpZ6.cjs.map} +1 -1
- package/dist/{AbortError-8-9JAX1Y.js → AbortError-DHqPBnYc.js} +2 -2
- package/dist/{AbortError-8-9JAX1Y.js.map → AbortError-DHqPBnYc.js.map} +1 -1
- package/dist/{AnnotationListSnapshot-x6tKulNV.d.cts → AnnotationListSnapshot-D3mFut1e.d.cts} +1155 -171
- package/dist/{AnnotationListSnapshot-x6tKulNV.d.ts → AnnotationListSnapshot-D3mFut1e.d.ts} +1155 -171
- package/dist/{DocumentSecurityService-CK0pejAK.d.cts → DocumentSecurityService-ClTZc0zO.d.cts} +2 -2
- package/dist/{DocumentSecurityService-9MawYxP-.d.ts → DocumentSecurityService-_JRjqvoI.d.ts} +2 -2
- package/dist/{Engine-Ds0ytbl6.d.ts → Engine-Bx0NOfmd.d.cts} +166 -11
- package/dist/{Engine--0XF0UAK.d.cts → Engine-DxtpCYcP.d.ts} +166 -11
- package/dist/{PageInsertBlankInput-CzShuSJI.cjs → PageInsertBlankInput-CqXBmFhN.cjs} +37 -2
- package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +1 -0
- package/dist/{PageInsertBlankInput-WKY0tr6S.js → PageInsertBlankInput-cHq9-i-z.js} +37 -2
- package/dist/PageInsertBlankInput-cHq9-i-z.js.map +1 -0
- package/dist/{builders-8Hl1AYNU.cjs → builders-Bqm8yTpi.cjs} +1470 -4
- package/dist/builders-Bqm8yTpi.cjs.map +1 -0
- package/dist/{builders-DOjcKDWQ.js → builders-Dqo2X-dt.js} +1351 -5
- package/dist/builders-Dqo2X-dt.js.map +1 -0
- package/dist/conformance.cjs +1079 -13
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +70 -3
- package/dist/conformance.d.ts +70 -3
- package/dist/conformance.js +1079 -14
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-C7I5GpBz.cjs → fold-2V29cxCV.cjs} +2 -2
- package/dist/{fold-C7I5GpBz.cjs.map → fold-2V29cxCV.cjs.map} +1 -1
- package/dist/{fold-BfyxxwS6.js → fold-CdEJTBTn.js} +2 -2
- package/dist/{fold-BfyxxwS6.js.map → fold-CdEJTBTn.js.map} +1 -1
- package/dist/index.cjs +33 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/{resolver-D-jumvgM.cjs → resolver-CYVNV4hn.cjs} +216 -10
- package/dist/resolver-CYVNV4hn.cjs.map +1 -0
- package/dist/{resolver-CHG4waXL.js → resolver-inAVzsWt.js} +157 -11
- package/dist/resolver-inAVzsWt.js.map +1 -0
- package/dist/runtime.cjs +34 -5
- package/dist/runtime.d.cts +192 -5
- package/dist/runtime.d.ts +192 -5
- package/dist/runtime.js +6 -6
- package/dist/{schemas-DOyVEPk7.js → schemas-BLARNCgx.js} +420 -4
- package/dist/schemas-BLARNCgx.js.map +1 -0
- package/dist/{schemas-RChsAMWw.cjs → schemas-DIqFMmrC.cjs} +581 -3
- package/dist/schemas-DIqFMmrC.cjs.map +1 -0
- package/dist/wire.cjs +228 -12
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +415 -4
- package/dist/wire.d.ts +415 -4
- package/dist/wire.js +199 -13
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +0 -1
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +0 -1
- package/dist/builders-8Hl1AYNU.cjs.map +0 -1
- package/dist/builders-DOjcKDWQ.js.map +0 -1
- package/dist/resolver-CHG4waXL.js.map +0 -1
- package/dist/resolver-D-jumvgM.cjs.map +0 -1
- package/dist/schemas-DOyVEPk7.js.map +0 -1
- package/dist/schemas-RChsAMWw.cjs.map +0 -1
package/dist/conformance.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Engine } from "./Engine
|
|
1
|
+
import { $u as PdfRect, An as HighlightDraft, Ju as InkList, Mc as CharMapAnchor, Xu as LinePoints, Zu as PdfPoint, n as AnnotationListSnapshotAllPages, t as AnnotationListPageSnapshot, yd as DocumentMetadata } from "./AnnotationListSnapshot-D3mFut1e.cjs";
|
|
2
|
+
import { t as Engine } from "./Engine-Bx0NOfmd.cjs";
|
|
3
3
|
//#region src/conformance/runMetadataConformance.d.ts
|
|
4
4
|
interface ConformanceTestRunner {
|
|
5
5
|
describe(name: string, fn: () => void): void;
|
|
@@ -697,5 +697,72 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
|
|
|
697
697
|
declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
|
|
698
698
|
declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
|
|
699
699
|
//#endregion
|
|
700
|
-
|
|
700
|
+
//#region src/conformance/runSignatureConformance.d.ts
|
|
701
|
+
interface SignatureConformanceFixtures {
|
|
702
|
+
/** A form with no signature fields at all. */
|
|
703
|
+
unsignedForm: ConformanceFixture;
|
|
704
|
+
/**
|
|
705
|
+
* Three revisions: the original, an approval signature sealing revision
|
|
706
|
+
* 1, and a form fill plus a second approval signature sealing revision
|
|
707
|
+
* 2. Both signatures have whole-revision coverage; `textField` is the
|
|
708
|
+
* filled text field.
|
|
709
|
+
*/
|
|
710
|
+
twoApprovals: ConformanceFixture & {
|
|
711
|
+
fieldNames: [string, string];
|
|
712
|
+
textField: string;
|
|
713
|
+
};
|
|
714
|
+
/** Two revisions: a certification signature with permission 2 sealing revision 1. */
|
|
715
|
+
certified: ConformanceFixture & {
|
|
716
|
+
fieldName: string;
|
|
717
|
+
};
|
|
718
|
+
/** Two revisions: one approval signature whose FieldMDP includes `lockedField`. */
|
|
719
|
+
fieldMdp: ConformanceFixture & {
|
|
720
|
+
fieldName: string;
|
|
721
|
+
lockedField: string;
|
|
722
|
+
};
|
|
723
|
+
/** Three chained revisions, two signatures whose ranges are well-formed but seal no revision. */
|
|
724
|
+
partialChain: ConformanceFixture;
|
|
725
|
+
/** One unsigned signature field (with a widget) and one text field, nothing signed. */
|
|
726
|
+
unsignedSigField: ConformanceFixture & {
|
|
727
|
+
fieldName: string;
|
|
728
|
+
textField: string;
|
|
729
|
+
};
|
|
730
|
+
/** Any single-page PDF, used as signature artwork. */
|
|
731
|
+
artwork: ConformanceFixture;
|
|
732
|
+
}
|
|
733
|
+
interface SignatureConformanceOptions {
|
|
734
|
+
label: string;
|
|
735
|
+
makeEngine: () => Promise<Engine> | Engine;
|
|
736
|
+
/**
|
|
737
|
+
* An engine constructed with `signedDocumentPolicy: 'permit'`; the
|
|
738
|
+
* suite proves the protection it lifts. Omit where the engine has no
|
|
739
|
+
* such option.
|
|
740
|
+
*/
|
|
741
|
+
makePermitEngine?: () => Promise<Engine> | Engine;
|
|
742
|
+
/** `layerBytes` opens each fixture as an immutable base with a fresh layer on top. */
|
|
743
|
+
openKind: 'bytes' | 'layerBytes' | 'id';
|
|
744
|
+
fixtures: SignatureConformanceFixtures;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Digital signatures, read side. The service is OPTIONAL on the contract
|
|
748
|
+
* (`downloadLayer?` pattern) — the suite runs only where the engine
|
|
749
|
+
* provides it.
|
|
750
|
+
*
|
|
751
|
+
* Invariants:
|
|
752
|
+
* 1. Byte facts describe the LOADED bytes: a revision is a byte prefix,
|
|
753
|
+
* a whole-revision signature seals exactly one, the digest over its
|
|
754
|
+
* `/ByteRange` is what the file's bytes hash to, and an unsaved edit
|
|
755
|
+
* changes none of it.
|
|
756
|
+
* 2. Protection is derived from the signatures in the file and applied
|
|
757
|
+
* as document-derived capabilities: a certification with permission 2
|
|
758
|
+
* takes page assembly and annotation writes away, a FieldMDP freezes
|
|
759
|
+
* the fields it names, a rewrite save is refused. Under
|
|
760
|
+
* `signedDocumentPolicy: 'permit'` none of that applies and the
|
|
761
|
+
* analysis is unchanged.
|
|
762
|
+
* 3. The same answers come from a plain session and from a layer
|
|
763
|
+
* session over the same bytes.
|
|
764
|
+
*/
|
|
765
|
+
declare function runSignatureConformance(runner: ConformanceTestRunner, opts: SignatureConformanceOptions): void;
|
|
766
|
+
//#endregion
|
|
767
|
+
export { type ActionsConformanceFixtures, type ActionsConformanceOptions, type AnnotationAppearanceConformanceFixture, type AnnotationAppearanceConformanceOptions, type AnnotationConformanceOptions, type AnnotationMutationConformanceFixture, type AnnotationMutationConformanceOptions, type AnnotationReadConformanceFixture, type ConformanceExpect, type ConformanceFixture, type ConformanceOptions, type ConformanceTestRunner, type FormConformanceFixtures, type FormConformanceOptions, type PageGeometryOrientationFixture, type PageGeometryOrientationOptions, type PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, type SignatureConformanceFixtures, type SignatureConformanceOptions, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationAppearanceExportConformance, runAnnotationFlattenConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runNamedPagesConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runSignatureConformance, runTextDivergenceConformance };
|
|
701
768
|
//# sourceMappingURL=conformance.d.cts.map
|
package/dist/conformance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Engine } from "./Engine-
|
|
1
|
+
import { $u as PdfRect, An as HighlightDraft, Ju as InkList, Mc as CharMapAnchor, Xu as LinePoints, Zu as PdfPoint, n as AnnotationListSnapshotAllPages, t as AnnotationListPageSnapshot, yd as DocumentMetadata } from "./AnnotationListSnapshot-D3mFut1e.js";
|
|
2
|
+
import { t as Engine } from "./Engine-DxtpCYcP.js";
|
|
3
3
|
//#region src/conformance/runMetadataConformance.d.ts
|
|
4
4
|
interface ConformanceTestRunner {
|
|
5
5
|
describe(name: string, fn: () => void): void;
|
|
@@ -697,5 +697,72 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
|
|
|
697
697
|
declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
|
|
698
698
|
declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
|
|
699
699
|
//#endregion
|
|
700
|
-
|
|
700
|
+
//#region src/conformance/runSignatureConformance.d.ts
|
|
701
|
+
interface SignatureConformanceFixtures {
|
|
702
|
+
/** A form with no signature fields at all. */
|
|
703
|
+
unsignedForm: ConformanceFixture;
|
|
704
|
+
/**
|
|
705
|
+
* Three revisions: the original, an approval signature sealing revision
|
|
706
|
+
* 1, and a form fill plus a second approval signature sealing revision
|
|
707
|
+
* 2. Both signatures have whole-revision coverage; `textField` is the
|
|
708
|
+
* filled text field.
|
|
709
|
+
*/
|
|
710
|
+
twoApprovals: ConformanceFixture & {
|
|
711
|
+
fieldNames: [string, string];
|
|
712
|
+
textField: string;
|
|
713
|
+
};
|
|
714
|
+
/** Two revisions: a certification signature with permission 2 sealing revision 1. */
|
|
715
|
+
certified: ConformanceFixture & {
|
|
716
|
+
fieldName: string;
|
|
717
|
+
};
|
|
718
|
+
/** Two revisions: one approval signature whose FieldMDP includes `lockedField`. */
|
|
719
|
+
fieldMdp: ConformanceFixture & {
|
|
720
|
+
fieldName: string;
|
|
721
|
+
lockedField: string;
|
|
722
|
+
};
|
|
723
|
+
/** Three chained revisions, two signatures whose ranges are well-formed but seal no revision. */
|
|
724
|
+
partialChain: ConformanceFixture;
|
|
725
|
+
/** One unsigned signature field (with a widget) and one text field, nothing signed. */
|
|
726
|
+
unsignedSigField: ConformanceFixture & {
|
|
727
|
+
fieldName: string;
|
|
728
|
+
textField: string;
|
|
729
|
+
};
|
|
730
|
+
/** Any single-page PDF, used as signature artwork. */
|
|
731
|
+
artwork: ConformanceFixture;
|
|
732
|
+
}
|
|
733
|
+
interface SignatureConformanceOptions {
|
|
734
|
+
label: string;
|
|
735
|
+
makeEngine: () => Promise<Engine> | Engine;
|
|
736
|
+
/**
|
|
737
|
+
* An engine constructed with `signedDocumentPolicy: 'permit'`; the
|
|
738
|
+
* suite proves the protection it lifts. Omit where the engine has no
|
|
739
|
+
* such option.
|
|
740
|
+
*/
|
|
741
|
+
makePermitEngine?: () => Promise<Engine> | Engine;
|
|
742
|
+
/** `layerBytes` opens each fixture as an immutable base with a fresh layer on top. */
|
|
743
|
+
openKind: 'bytes' | 'layerBytes' | 'id';
|
|
744
|
+
fixtures: SignatureConformanceFixtures;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Digital signatures, read side. The service is OPTIONAL on the contract
|
|
748
|
+
* (`downloadLayer?` pattern) — the suite runs only where the engine
|
|
749
|
+
* provides it.
|
|
750
|
+
*
|
|
751
|
+
* Invariants:
|
|
752
|
+
* 1. Byte facts describe the LOADED bytes: a revision is a byte prefix,
|
|
753
|
+
* a whole-revision signature seals exactly one, the digest over its
|
|
754
|
+
* `/ByteRange` is what the file's bytes hash to, and an unsaved edit
|
|
755
|
+
* changes none of it.
|
|
756
|
+
* 2. Protection is derived from the signatures in the file and applied
|
|
757
|
+
* as document-derived capabilities: a certification with permission 2
|
|
758
|
+
* takes page assembly and annotation writes away, a FieldMDP freezes
|
|
759
|
+
* the fields it names, a rewrite save is refused. Under
|
|
760
|
+
* `signedDocumentPolicy: 'permit'` none of that applies and the
|
|
761
|
+
* analysis is unchanged.
|
|
762
|
+
* 3. The same answers come from a plain session and from a layer
|
|
763
|
+
* session over the same bytes.
|
|
764
|
+
*/
|
|
765
|
+
declare function runSignatureConformance(runner: ConformanceTestRunner, opts: SignatureConformanceOptions): void;
|
|
766
|
+
//#endregion
|
|
767
|
+
export { type ActionsConformanceFixtures, type ActionsConformanceOptions, type AnnotationAppearanceConformanceFixture, type AnnotationAppearanceConformanceOptions, type AnnotationConformanceOptions, type AnnotationMutationConformanceFixture, type AnnotationMutationConformanceOptions, type AnnotationReadConformanceFixture, type ConformanceExpect, type ConformanceFixture, type ConformanceOptions, type ConformanceTestRunner, type FormConformanceFixtures, type FormConformanceOptions, type PageGeometryOrientationFixture, type PageGeometryOrientationOptions, type PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, type SignatureConformanceFixtures, type SignatureConformanceOptions, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationAppearanceExportConformance, runAnnotationFlattenConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runNamedPagesConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runSignatureConformance, runTextDivergenceConformance };
|
|
701
768
|
//# sourceMappingURL=conformance.d.ts.map
|