@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.
Files changed (50) hide show
  1. package/dist/{AbortError-BsHuCO1S.js → AbortError-8-9JAX1Y.js} +2 -2
  2. package/dist/{AbortError-BsHuCO1S.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
  3. package/dist/{AbortError-DmWeq9sx.cjs → AbortError-CRSooKsk.cjs} +2 -2
  4. package/dist/{AbortError-DmWeq9sx.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-CHjkcIaL.d.cts → AnnotationListSnapshot-Bwfnb1i-.d.cts} +25 -2
  6. package/dist/{AnnotationListSnapshot-CHjkcIaL.d.ts → AnnotationListSnapshot-Bwfnb1i-.d.ts} +25 -2
  7. package/dist/{DocumentSecurityService-CrxGktMI.d.ts → DocumentSecurityService-CqLXyTVM.d.ts} +2 -2
  8. package/dist/{DocumentSecurityService-B1uv4FaK.d.cts → DocumentSecurityService-DQNpYCXs.d.cts} +2 -2
  9. package/dist/{Engine-BE6r06QI.d.ts → Engine-C25gzAFz.d.ts} +26 -16
  10. package/dist/{Engine-BOaRwtKa.d.cts → Engine-COFJU7sA.d.cts} +26 -16
  11. package/dist/{charmap-D6PLtRiC.cjs → PageInsertBlankInput-CzShuSJI.cjs} +16 -1
  12. package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
  13. package/dist/{charmap-CUukAMhR.js → PageInsertBlankInput-WKY0tr6S.js} +11 -2
  14. package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
  15. package/dist/{builders-BsUc2A1U.cjs → builders-B5CgvJ3j.cjs} +6 -6
  16. package/dist/{builders-BsUc2A1U.cjs.map → builders-B5CgvJ3j.cjs.map} +1 -1
  17. package/dist/{builders-CF5gKkOa.js → builders-CGcBlTrv.js} +3 -3
  18. package/dist/{builders-CF5gKkOa.js.map → builders-CGcBlTrv.js.map} +1 -1
  19. package/dist/conformance.cjs +337 -178
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +26 -6
  22. package/dist/conformance.d.ts +26 -6
  23. package/dist/conformance.js +292 -134
  24. package/dist/conformance.js.map +1 -1
  25. package/dist/{fold-DemV94jf.js → fold-BfyxxwS6.js} +2 -2
  26. package/dist/{fold-DemV94jf.js.map → fold-BfyxxwS6.js.map} +1 -1
  27. package/dist/{fold-BeT1GxLP.cjs → fold-C7I5GpBz.cjs} +4 -4
  28. package/dist/{fold-BeT1GxLP.cjs.map → fold-C7I5GpBz.cjs.map} +1 -1
  29. package/dist/index.cjs +15 -14
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +4 -4
  33. package/dist/runtime.cjs +20 -19
  34. package/dist/runtime.cjs.map +1 -1
  35. package/dist/runtime.d.cts +103 -5
  36. package/dist/runtime.d.ts +103 -5
  37. package/dist/runtime.js +5 -5
  38. package/dist/{schemas-ES6-TkIl.js → schemas-BKRZZ-g1.js} +38 -4
  39. package/dist/{schemas-ES6-TkIl.js.map → schemas-BKRZZ-g1.js.map} +1 -1
  40. package/dist/{schemas-CyWwm0Zf.cjs → schemas-DlxjcDIl.cjs} +82 -24
  41. package/dist/{schemas-CyWwm0Zf.cjs.map → schemas-DlxjcDIl.cjs.map} +1 -1
  42. package/dist/wire.cjs +37 -3
  43. package/dist/wire.cjs.map +1 -1
  44. package/dist/wire.d.cts +72 -8
  45. package/dist/wire.d.ts +72 -8
  46. package/dist/wire.js +34 -4
  47. package/dist/wire.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/charmap-CUukAMhR.js.map +0 -1
  50. package/dist/charmap-D6PLtRiC.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { An as HighlightDraft, Qc as PdfPoint, Yc as InkList, Zc as LinePoints, el as PdfRect, ms as CharMapAnchor, n as AnnotationListSnapshotAllPages, pl as DocumentMetadata, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-CHjkcIaL.cjs";
2
- import { t as Engine } from "./Engine-BOaRwtKa.cjs";
1
+ import { $c as LinePoints, An as HighlightDraft, Zc as InkList, el as PdfPoint, gs as CharMapAnchor, hl as DocumentMetadata, n as AnnotationListSnapshotAllPages, nl as PdfRect, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-Bwfnb1i-.cjs";
2
+ import { t as Engine } from "./Engine-COFJU7sA.cjs";
3
3
  //#region src/conformance/runMetadataConformance.d.ts
4
4
  interface ConformanceTestRunner {
5
5
  describe(name: string, fn: () => void): void;
@@ -408,9 +408,9 @@ declare function runAttachmentConformance(runner: ConformanceTestRunner, opts: C
408
408
  //#endregion
409
409
  //#region src/conformance/runPageInsertConformance.d.ts
410
410
  /**
411
- * Page insert conformance. `pages.insert?` is optional only until the cloud
412
- * endpoint ships (it is slated REQUIRED-parity — a cloud viewer must be able
413
- * to add pages); the suite runs wherever the implementation exists.
411
+ * Page insert conformance. `pages.insert` is a REQUIRED member — this suite
412
+ * runs unconditionally on every engine, so an implementation that loses the
413
+ * verb fails loudly instead of being skipped past.
414
414
  *
415
415
  * Invariants:
416
416
  * 1. Every page of the source bytes is COPIED in at `destIndex` (omitted →
@@ -424,6 +424,26 @@ declare function runAttachmentConformance(runner: ConformanceTestRunner, opts: C
424
424
  */
425
425
  declare function runPageInsertConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
426
426
  //#endregion
427
+ //#region src/conformance/runPageInsertBlankConformance.d.ts
428
+ /**
429
+ * Blank-page insert conformance. `pages.insertBlank` is a REQUIRED member —
430
+ * the suite runs unconditionally on every engine (no fixture bytes are
431
+ * needed at all, which is the point of the verb), so an implementation that
432
+ * loses the verb fails loudly instead of being skipped past.
433
+ *
434
+ * Invariants:
435
+ * 1. `count` blank pages of exactly `size` appear at `destIndex` (omitted
436
+ * → append), rotation 0; the result lists their fresh PONs in insertion
437
+ * order and they agree with the returned layout.
438
+ * 2. Pre-existing pages keep their identity: same PONs before and after,
439
+ * in the expected positions (an insert never invalidates neighbours).
440
+ * 3. The mutation persists through save → re-open (bytes engines only).
441
+ * 4. Non-positive size / count outside [1, PAGE_INSERT_BLANK_MAX_COUNT] /
442
+ * out-of-range destIndex reject with InvalidArg, leaving the document
443
+ * untouched.
444
+ */
445
+ declare function runPageInsertBlankConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
446
+ //#endregion
427
447
  //#region src/conformance/runPieceInfoConformance.d.ts
428
448
  /**
429
449
  * `/PieceInfo` conformance (doc + page level). The service is OPTIONAL on
@@ -622,5 +642,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
622
642
  declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
623
643
  declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
624
644
  //#endregion
625
- 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, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
645
+ 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, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
626
646
  //# sourceMappingURL=conformance.d.cts.map
@@ -1,5 +1,5 @@
1
- import { An as HighlightDraft, Qc as PdfPoint, Yc as InkList, Zc as LinePoints, el as PdfRect, ms as CharMapAnchor, n as AnnotationListSnapshotAllPages, pl as DocumentMetadata, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-CHjkcIaL.js";
2
- import { t as Engine } from "./Engine-BE6r06QI.js";
1
+ import { $c as LinePoints, An as HighlightDraft, Zc as InkList, el as PdfPoint, gs as CharMapAnchor, hl as DocumentMetadata, n as AnnotationListSnapshotAllPages, nl as PdfRect, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-Bwfnb1i-.js";
2
+ import { t as Engine } from "./Engine-C25gzAFz.js";
3
3
  //#region src/conformance/runMetadataConformance.d.ts
4
4
  interface ConformanceTestRunner {
5
5
  describe(name: string, fn: () => void): void;
@@ -408,9 +408,9 @@ declare function runAttachmentConformance(runner: ConformanceTestRunner, opts: C
408
408
  //#endregion
409
409
  //#region src/conformance/runPageInsertConformance.d.ts
410
410
  /**
411
- * Page insert conformance. `pages.insert?` is optional only until the cloud
412
- * endpoint ships (it is slated REQUIRED-parity — a cloud viewer must be able
413
- * to add pages); the suite runs wherever the implementation exists.
411
+ * Page insert conformance. `pages.insert` is a REQUIRED member — this suite
412
+ * runs unconditionally on every engine, so an implementation that loses the
413
+ * verb fails loudly instead of being skipped past.
414
414
  *
415
415
  * Invariants:
416
416
  * 1. Every page of the source bytes is COPIED in at `destIndex` (omitted →
@@ -424,6 +424,26 @@ declare function runAttachmentConformance(runner: ConformanceTestRunner, opts: C
424
424
  */
425
425
  declare function runPageInsertConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
426
426
  //#endregion
427
+ //#region src/conformance/runPageInsertBlankConformance.d.ts
428
+ /**
429
+ * Blank-page insert conformance. `pages.insertBlank` is a REQUIRED member —
430
+ * the suite runs unconditionally on every engine (no fixture bytes are
431
+ * needed at all, which is the point of the verb), so an implementation that
432
+ * loses the verb fails loudly instead of being skipped past.
433
+ *
434
+ * Invariants:
435
+ * 1. `count` blank pages of exactly `size` appear at `destIndex` (omitted
436
+ * → append), rotation 0; the result lists their fresh PONs in insertion
437
+ * order and they agree with the returned layout.
438
+ * 2. Pre-existing pages keep their identity: same PONs before and after,
439
+ * in the expected positions (an insert never invalidates neighbours).
440
+ * 3. The mutation persists through save → re-open (bytes engines only).
441
+ * 4. Non-positive size / count outside [1, PAGE_INSERT_BLANK_MAX_COUNT] /
442
+ * out-of-range destIndex reject with InvalidArg, leaving the document
443
+ * untouched.
444
+ */
445
+ declare function runPageInsertBlankConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
446
+ //#endregion
427
447
  //#region src/conformance/runPieceInfoConformance.d.ts
428
448
  /**
429
449
  * `/PieceInfo` conformance (doc + page level). The service is OPTIONAL on
@@ -622,5 +642,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
622
642
  declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
623
643
  declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
624
644
  //#endregion
625
- 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, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
645
+ 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, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
626
646
  //# sourceMappingURL=conformance.d.ts.map