@embedpdf/plugin-annotation 3.0.0-next.22 → 3.0.0-next.23

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 (31) hide show
  1. package/dist/contract/host.cjs +2 -2
  2. package/dist/contract/host.d.cts +3 -3
  3. package/dist/contract/host.d.ts +3 -3
  4. package/dist/contract/host.js +2 -2
  5. package/dist/{contract-BzsydV7F.d.cts → contract-BK2g1Rem.d.ts} +65 -62
  6. package/dist/{contract-CPzpRG3h.cjs → contract-BtAl3Yo2.cjs} +4 -4
  7. package/dist/contract-BtAl3Yo2.cjs.map +1 -0
  8. package/dist/{contract-DnQUGmxG.d.ts → contract-CBYEqnev.d.cts} +65 -62
  9. package/dist/{contract-b2e_LZvu.js → contract-OwgW3JE8.js} +4 -4
  10. package/dist/contract-OwgW3JE8.js.map +1 -0
  11. package/dist/contract.cjs +1 -1
  12. package/dist/contract.d.cts +2 -2
  13. package/dist/contract.d.ts +2 -2
  14. package/dist/contract.js +1 -1
  15. package/dist/{host-contract-DY9jFPPF.cjs → host-contract-BzM2upsA.cjs} +2 -2
  16. package/dist/host-contract-BzM2upsA.cjs.map +1 -0
  17. package/dist/{host-contract-BMliTeaD.d.ts → host-contract-COF2Prd-.d.ts} +25 -25
  18. package/dist/{host-contract-CxrQPcPj.js → host-contract-CSKiuu3g.js} +2 -2
  19. package/dist/host-contract-CSKiuu3g.js.map +1 -0
  20. package/dist/{host-contract-CYPNi49b.d.cts → host-contract-CxOrR_pp.d.cts} +25 -25
  21. package/dist/index.cjs +44 -43
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +4 -4
  24. package/dist/index.d.ts +4 -4
  25. package/dist/index.js +45 -44
  26. package/dist/index.js.map +1 -1
  27. package/package.json +12 -12
  28. package/dist/contract-CPzpRG3h.cjs.map +0 -1
  29. package/dist/contract-b2e_LZvu.js.map +0 -1
  30. package/dist/host-contract-CxrQPcPj.js.map +0 -1
  31. package/dist/host-contract-DY9jFPPF.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_contract = require("../contract-CPzpRG3h.cjs");
3
- const require_host_contract = require("../host-contract-DY9jFPPF.cjs");
2
+ const require_contract = require("../contract-BtAl3Yo2.cjs");
3
+ const require_host_contract = require("../host-contract-BzM2upsA.cjs");
4
4
  let _embedpdf_engine_core_public = require("@embedpdf/engine-core/public");
5
5
  exports.ANNOTATION_DEFAULTS = require_contract.ANNOTATION_DEFAULTS;
6
6
  exports.ANNOTATION_DRAW_PRIORITY = require_host_contract.ANNOTATION_DRAW_PRIORITY;
@@ -1,3 +1,3 @@
1
- import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, G as ArmedStampInfo, H as AnnotationTransfer, I as AnnotationSettings, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsApi, M as AnnotationRotationAnchor, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionApi, Q as ClickCreate, R as AnnotationSubtype, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, V as AnnotationToolsApi, W as AnnotationWriteFailedEvent, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftApi, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsApi, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksApi, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextApi } from "../contract-BzsydV7F.cjs";
2
- import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-CYPNi49b.cjs";
3
- export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, AnnotationAppearancePicture, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftApi, AnnotationDraftChangedEvent, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHostCapability, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLender, AnnotationLinksApi, type AnnotationModel, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionApi, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsApi, type AnnotationState, type AnnotationSubtype, AnnotationTextApi, AnnotationToken, AnnotationTool, AnnotationToolsApi, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, CapturedAnnotationDraft, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsApi, CreationDraft, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type HandleRole, ImageGhost, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, RecalibrationReport, type ReviewStatus, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, ToolDefaults, ToolDefaultsChangedEvent, annotationState, previewBucket };
1
+ import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, G as ArmedStampInfo, H as AnnotationTransfer, I as AnnotationSettings, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsCapability, M as AnnotationRotationAnchor, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionCapability, Q as ClickCreate, R as AnnotationSubtype, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, V as AnnotationToolsCapability, W as AnnotationWriteFailedEvent, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftCapability, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsCapability, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksCapability, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextCapability } from "../contract-CBYEqnev.cjs";
2
+ import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-CxOrR_pp.cjs";
3
+ export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, AnnotationAppearancePicture, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftCapability, AnnotationDraftChangedEvent, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHostCapability, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLender, AnnotationLinksCapability, type AnnotationModel, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionCapability, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsCapability, type AnnotationState, type AnnotationSubtype, AnnotationTextCapability, AnnotationToken, AnnotationTool, AnnotationToolsCapability, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, CapturedAnnotationDraft, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsCapability, CreationDraft, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type HandleRole, ImageGhost, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, RecalibrationReport, type ReviewStatus, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, ToolDefaults, ToolDefaultsChangedEvent, annotationState, previewBucket };
@@ -1,3 +1,3 @@
1
- import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, G as ArmedStampInfo, H as AnnotationTransfer, I as AnnotationSettings, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsApi, M as AnnotationRotationAnchor, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionApi, Q as ClickCreate, R as AnnotationSubtype, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, V as AnnotationToolsApi, W as AnnotationWriteFailedEvent, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftApi, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsApi, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksApi, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextApi } from "../contract-DnQUGmxG.js";
2
- import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-BMliTeaD.js";
3
- export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, AnnotationAppearancePicture, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftApi, AnnotationDraftChangedEvent, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHostCapability, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLender, AnnotationLinksApi, type AnnotationModel, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionApi, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsApi, type AnnotationState, type AnnotationSubtype, AnnotationTextApi, AnnotationToken, AnnotationTool, AnnotationToolsApi, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, CapturedAnnotationDraft, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsApi, CreationDraft, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type HandleRole, ImageGhost, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, RecalibrationReport, type ReviewStatus, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, ToolDefaults, ToolDefaultsChangedEvent, annotationState, previewBucket };
1
+ import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, G as ArmedStampInfo, H as AnnotationTransfer, I as AnnotationSettings, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsCapability, M as AnnotationRotationAnchor, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionCapability, Q as ClickCreate, R as AnnotationSubtype, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, V as AnnotationToolsCapability, W as AnnotationWriteFailedEvent, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftCapability, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsCapability, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksCapability, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextCapability } from "../contract-BK2g1Rem.js";
2
+ import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-COF2Prd-.js";
3
+ export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, AnnotationAppearancePicture, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftCapability, AnnotationDraftChangedEvent, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHostCapability, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLender, AnnotationLinksCapability, type AnnotationModel, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionCapability, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsCapability, type AnnotationState, type AnnotationSubtype, AnnotationTextCapability, AnnotationToken, AnnotationTool, AnnotationToolsCapability, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, CapturedAnnotationDraft, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsCapability, CreationDraft, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type HandleRole, ImageGhost, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, RecalibrationReport, type ReviewStatus, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, ToolDefaults, ToolDefaultsChangedEvent, annotationState, previewBucket };
@@ -1,3 +1,3 @@
1
- import { n as AnnotationTransfer, r as ARMED_STAMP_TOOL_ID, s as annotationState, t as ANNOTATION_DEFAULTS } from "../contract-b2e_LZvu.js";
2
- import { a as ANNOTATION_MARQUEE_PRIORITY, i as ANNOTATION_EDIT_PRIORITY, n as previewBucket, o as ANNOTATION_PLACE_PRIORITY, r as ANNOTATION_DRAW_PRIORITY, t as AnnotationToken } from "../host-contract-CxrQPcPj.js";
1
+ import { n as AnnotationTransfer, r as ARMED_STAMP_TOOL_ID, s as annotationState, t as ANNOTATION_DEFAULTS } from "../contract-OwgW3JE8.js";
2
+ import { a as ANNOTATION_MARQUEE_PRIORITY, i as ANNOTATION_EDIT_PRIORITY, n as previewBucket, o as ANNOTATION_PLACE_PRIORITY, r as ANNOTATION_DRAW_PRIORITY, t as AnnotationToken } from "../host-contract-CSKiuu3g.js";
3
3
  export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AnnotationToken, AnnotationTransfer, annotationState, previewBucket };
@@ -1,14 +1,14 @@
1
- import { AnnotationFlags, AnnotationFlags as AnnotationFlags$1, AnnotationOption, AnnotationProperty, AnnotationProperty as AnnotationProperty$1, BlendMode, ClickCreate, ClickCreate as ClickCreate$1, CreationDraftAnchor, EditableKind, EditableKinds, EditableKinds as EditableKinds$1, FieldValues, FieldValues as FieldValues$1, FlagKey, HandleRole, InkStraightenOptions, KindName, LineEnding, LineEndings, MeasurementIntent, Rect, RichTextRange, RichTextStyleDelta, RotationAnchor, SnapSettings, SnapSettings as SnapSettings$1, TextAlign, ViewEnv } from "@embedpdf/core-annotation";
2
1
  import { BatchResult, DeepPartial, EventHook, EventOrigin, OperationOptions, PluginErrorInfo, ResourceStatus, SettingsApi, Unsubscribe } from "@embedpdf/core";
3
- import { Point as Point$1 } from "@embedpdf/core-geometry";
4
2
  import { MountableFontProgram } from "@embedpdf/plugin-fonts/contract";
3
+ import { AnnotationTransfer } from "@embedpdf/engine-core/public";
5
4
  import { Annotation, Annotation as Annotation$1, AnnotationBundle, AnnotationBundle as AnnotationBundle$1, AnnotationDraft, AnnotationDraft as AnnotationDraft$1, AnnotationImportDrop, AnnotationImportDrop as AnnotationImportDrop$1, AnnotationImportOptions, AnnotationImportOptions as AnnotationImportOptions$1, AnnotationPatch, AnnotationPatch as AnnotationPatch$1, AnnotationPosition, AnnotationPosition as AnnotationPosition$1, AnnotationRef, AnnotationRef as AnnotationRef$1, AnnotationResourceRole, AnnotationResourceRole as AnnotationResourceRole$1, AnnotationResources, AnnotationResources as AnnotationResources$1, AnnotationSubtype, AnnotationSubtype as AnnotationSubtype$1, AttachmentContent, AttachmentFileSource, AttachmentFileSource as AttachmentFileSource$1, BinarySource, Color, CommentThread, CommentThread as CommentThread$1, CommentThreadReview, PageRef, PdfActionTree, PdfLinkTarget, PdfLinkTarget as PdfLinkTarget$1, ReviewStatus, RichTextBody, RichTextParagraph, WidgetAppearance } from "@embedpdf/engine-core/runtime";
5
+ import { AnnotationFlags, AnnotationFlags as AnnotationFlags$1, AnnotationOption, AnnotationProperty, AnnotationProperty as AnnotationProperty$1, BlendMode, ClickCreate, ClickCreate as ClickCreate$1, CreationDraftAnchor, EditableKind, EditableKinds, EditableKinds as EditableKinds$1, FieldValues, FieldValues as FieldValues$1, FlagKey, HandleRole, InkStraightenOptions, KindName, LineEnding, LineEndings, MeasurementIntent, Rect, RichTextRange, RichTextStyleDelta, RotationAnchor, SnapSettings, SnapSettings as SnapSettings$1, TextAlign, ViewEnv } from "@embedpdf/core-annotation";
6
6
  import "@embedpdf/plugin-interaction/contract";
7
- import { AnnotationTransfer } from "@embedpdf/engine-core/public";
7
+ import { Point as Point$1 } from "@embedpdf/core-geometry";
8
8
  //#region src/rich-text.d.ts
9
9
  type TextFormat = 'bold' | 'italic' | 'underline';
10
10
  /** The editor's selection inside one free-text annotation: flat offsets over
11
- * the plain projection (paragraphs joined by `\r`). */
11
+ * the plain projection (paragraphs joined by `\n`). */
12
12
  interface TextSelection extends RichTextRange {
13
13
  id: string;
14
14
  }
@@ -152,7 +152,7 @@ type ToolDefaultsFor<K extends ToolAuthoringKind> = ToolDraftOf<K> & (K extends
152
152
  * optional: the common cases are "configure a built-in" (`{ id, defaults }`) and
153
153
  * "add a preset" (`{ id, extends, defaults }`).
154
154
  */
155
- interface AnnotationToolDef<K extends ToolAuthoringKind = ToolAuthoringKind> {
155
+ interface AnnotationToolDefinition<K extends ToolAuthoringKind = ToolAuthoringKind> {
156
156
  /** Stable tool id — the value passed to `activateTool` and the `defaults` key. */
157
157
  id: string;
158
158
  /** Inherit `subtype` / `fieldsKind` / `cursor` / `enables` / `source` /
@@ -264,15 +264,15 @@ interface BuiltinToolKindMap {
264
264
  attachment: 'file-attachment';
265
265
  link: 'link';
266
266
  }
267
- type DirectToolDef = { [K in ToolAuthoringKind]: Omit<AnnotationToolDef<K>, 'subtype'> & {
267
+ type DirectToolDef = { [K in ToolAuthoringKind]: Omit<AnnotationToolDefinition<K>, 'subtype'> & {
268
268
  subtype: K;
269
269
  }; }[ToolAuthoringKind];
270
- type BuiltinToolOverride = { [I in keyof BuiltinToolKindMap]: Omit<AnnotationToolDef<BuiltinToolKindMap[I]>, 'id' | 'extends' | 'subtype'> & {
270
+ type BuiltinToolOverride = { [I in keyof BuiltinToolKindMap]: Omit<AnnotationToolDefinition<BuiltinToolKindMap[I]>, 'id' | 'extends' | 'subtype'> & {
271
271
  id: I;
272
272
  extends?: undefined;
273
273
  subtype?: undefined;
274
274
  }; }[keyof BuiltinToolKindMap];
275
- type ExtendedBuiltinToolDef = { [I in keyof BuiltinToolKindMap]: Omit<AnnotationToolDef<BuiltinToolKindMap[I]>, 'extends' | 'subtype'> & {
275
+ type ExtendedBuiltinToolDef = { [I in keyof BuiltinToolKindMap]: Omit<AnnotationToolDefinition<BuiltinToolKindMap[I]>, 'extends' | 'subtype'> & {
276
276
  extends: I;
277
277
  subtype?: undefined;
278
278
  }; }[keyof BuiltinToolKindMap];
@@ -290,19 +290,19 @@ interface ResolvedTool {
290
290
  cursor: string;
291
291
  enables: ReadonlySet<string>;
292
292
  defaults?: FieldValues;
293
- /** `/F` seed for created annotations (see {@link AnnotationToolDef.flags}). */
293
+ /** `/F` seed for created annotations (see {@link AnnotationToolDefinition.flags}). */
294
294
  flags?: Partial<AnnotationFlags>;
295
295
  source?: StampSourceSpec;
296
296
  selection?: SelectionAuthoring;
297
297
  ink?: InkAuthoringOptions;
298
298
  /** Counter-rotate creations against the page's display rotation (see
299
- * {@link AnnotationToolDef.upright}). */
299
+ * {@link AnnotationToolDefinition.upright}). */
300
300
  upright: boolean;
301
301
  /** What a bare click creates, or `false` for drag-only. */
302
302
  clickCreate: ClickCreate | false;
303
303
  /** The tool's ghost ({@link GhostPolicy}): how opaque it paints, or `false` for none. */
304
304
  ghost: ResolvedGhost;
305
- /** Its own `afterCreate` (see {@link AnnotationToolDef.afterCreate}), over the setting. */
305
+ /** Its own `afterCreate` (see {@link AnnotationToolDefinition.afterCreate}), over the setting. */
306
306
  afterCreate?: Partial<AfterCreateSettings>;
307
307
  /** A line gesture is captured, not created ({@link CAPTURE_TOOLS}). */
308
308
  capture: boolean;
@@ -395,7 +395,10 @@ interface ChromeSettings {
395
395
  /** Line width of both kinds, px. */
396
396
  readonly width: number;
397
397
  };
398
- /** The box you drag to select several annotations. */
398
+ /**
399
+ * The box you drag to select several annotations, one value: a change
400
+ * replaces it whole, and a color it leaves out is `null` again.
401
+ */
399
402
  readonly marquee: {
400
403
  /** `null`: `accent` at 8%. */
401
404
  readonly fill: string | null;
@@ -476,13 +479,13 @@ type AnnotationConfig = DeepPartial<AnnotationSettings>;
476
479
  * with the page's items (`source: 'ghost'`).
477
480
  */
478
481
  interface ImageGhost {
479
- page: PageRef;
482
+ readonly page: PageRef;
480
483
  /** The box the stamp's placement would use, before its turn. */
481
- box: Rect;
484
+ readonly box: Rect;
482
485
  /** The tool's upright turn at this hover (degrees clockwise). */
483
- rot: number;
486
+ readonly rot: number;
484
487
  /** How opaque it paints (0–1); `--epdf-ghost-opacity` wins over it. */
485
- opacity: number;
488
+ readonly opacity: number;
486
489
  }
487
490
  /**
488
491
  * One clickable link area on a page (page space): a standalone link
@@ -491,10 +494,10 @@ interface ImageGhost {
491
494
  */
492
495
  interface LinkNavItem {
493
496
  /** Stable per-page key: the annot id, `#n`-suffixed for attached segments. */
494
- id: string;
497
+ readonly id: string;
495
498
  /** The clickable area in page space. */
496
- bounds: Rect;
497
- target: PdfLinkTarget;
499
+ readonly bounds: Rect;
500
+ readonly target: PdfLinkTarget;
498
501
  /**
499
502
  * True for a link child riding an editable annotation (an `/RT /Group`
500
503
  * subordinate): a property of its parent while authoring, a nav behavior
@@ -502,17 +505,17 @@ interface LinkNavItem {
502
505
  * items whenever the active tool enables `annotation-edit`, so the parent
503
506
  * stays selectable/movable; standalone document links navigate regardless.
504
507
  */
505
- attached: boolean;
508
+ readonly attached: boolean;
506
509
  /** The full payload-carrying `/A` tree, when one exists: the action
507
510
  * engine's dispatch input. `target` remains its root projection. */
508
- activate?: PdfActionTree;
511
+ readonly activate?: PdfActionTree;
509
512
  /** The annotation ref, carried for ActionSource context. */
510
- ref?: AnnotationRef;
513
+ readonly ref?: AnnotationRef;
511
514
  /** Which `/AA` hover trees this link carries: the nav layer's pump flags
512
515
  * (tree-less hover must cost zero dispatches). Links are behavior-inert
513
516
  * to the annotation plane's hover feed while navigable, so their
514
517
  * cursorEnter/cursorExit can only fire from the LinkLayer anchors. */
515
- hoverEvents?: {
518
+ readonly hoverEvents?: {
516
519
  enter: boolean;
517
520
  exit: boolean;
518
521
  };
@@ -523,7 +526,7 @@ interface LinkNavItem {
523
526
  * are not geometry-editable. Not engaged, they are edited like any other.
524
527
  */
525
528
  interface Behavior {
526
- id: string;
529
+ readonly id: string;
527
530
  /** Whether this behavior is about the annotation at all. */
528
531
  matches(annotation: Annotation): boolean;
529
532
  /** Whether it owns the annotation now (read live: the active tool, the app's mode). */
@@ -557,17 +560,17 @@ interface AnnotationProperties {
557
560
  * live view matches the baked appearance.
558
561
  */
559
562
  interface TextItem {
560
- id: string;
561
- ref: AnnotationRef | null;
562
- box: Rect;
563
- contents: string;
563
+ readonly id: string;
564
+ readonly ref: AnnotationRef | null;
565
+ readonly box: Rect;
566
+ readonly contents: string;
564
567
  /** The rich paragraphs the editor renders and edits (run deltas over the
565
568
  * body, which `css` carries). `contents` is their plain projection. */
566
- richText: {
569
+ readonly richText: {
567
570
  paragraphs: RichTextParagraph[];
568
571
  };
569
572
  /** The face of its text without one of its own: the body's. */
570
- face: {
573
+ readonly face: {
571
574
  family: string;
572
575
  weight: number;
573
576
  italic: boolean;
@@ -577,12 +580,12 @@ interface TextItem {
577
580
  * families name them): mount them where the box is drawn
578
581
  * (`createFontMounts` in `@embedpdf/web`). Empty without the fonts plugin.
579
582
  */
580
- programs: readonly MountableFontProgram[];
581
- editing: boolean;
583
+ readonly programs: readonly MountableFontProgram[];
584
+ readonly editing: boolean;
582
585
  /** Applied rotation (deg, CW). `box` is the unrotated text box; the framework
583
586
  * rotates the editable element about its centre by this. 0/undefined = none. */
584
- rot?: number;
585
- css: {
587
+ readonly rot?: number;
588
+ readonly css: {
586
589
  fontFamily: string;
587
590
  /** Content units (the framework multiplies by the page scale). The line
588
591
  * height is not here: the editor binding states the engine's line model
@@ -599,8 +602,8 @@ interface TextItem {
599
602
  }
600
603
  /** What `comments.deleteThread()` did: everything went, or nothing did and `failed` says why. */
601
604
  interface ThreadDeleteResult {
602
- deleted: AnnotationRef[];
603
- failed: Array<{
605
+ readonly deleted: AnnotationRef[];
606
+ readonly failed: Array<{
604
607
  ref: AnnotationRef;
605
608
  error: unknown;
606
609
  }>;
@@ -705,7 +708,7 @@ interface ToolDefaultsChangedEvent {
705
708
  /** A thread changed through this viewer. */
706
709
  interface CommentThreadChangedEvent {
707
710
  readonly rootRef: AnnotationRef;
708
- readonly change: 'reply' | 'text' | 'status' | 'marked' | 'deleted';
711
+ readonly type: 'reply' | 'text' | 'status' | 'marked' | 'deleted';
709
712
  }
710
713
  /** Which annotations `list()` returns: every field narrows. */
711
714
  interface AnnotationFilter {
@@ -733,9 +736,9 @@ interface AnnotationExportSelection {
733
736
  readonly pages?: readonly (PageRef | number)[];
734
737
  }
735
738
  /** The selection: what is selected, and the verbs that change it as one. */
736
- interface AnnotationSelectionApi {
739
+ interface AnnotationSelectionCapability {
737
740
  /** Select these annotations; an annotation in a group brings its group. */
738
- set(refs: readonly AnnotationRef[]): void;
741
+ select(refs: readonly AnnotationRef[]): void;
739
742
  /** Add these annotations to the selection, with their groups. */
740
743
  add(refs: readonly AnnotationRef[]): void;
741
744
  /** Select everything that can be selected, on one page or in the whole document. */
@@ -750,7 +753,7 @@ interface AnnotationSelectionApi {
750
753
  /** Clear the selection. */
751
754
  clear(): void;
752
755
  /** The selected annotations, as the user sees them. */
753
- list(): readonly Annotation[];
756
+ getSelected(): readonly Annotation[];
754
757
  /**
755
758
  * Change the selected annotations: each takes the fields its kind has, and
756
759
  * skips the rest. A function changes each relative to itself. A text box's
@@ -787,7 +790,7 @@ interface AnnotationSelectionApi {
787
790
  getRotationAnchor(): AnnotationRotationAnchor | null;
788
791
  }
789
792
  /** A polygon or polyline being drawn, a click per point. */
790
- interface AnnotationDraftApi {
793
+ interface AnnotationDraftCapability {
791
794
  /** The shape being drawn, or `null`. */
792
795
  get(): CreationDraft | null;
793
796
  /** End the shape and create it, as a double-click does. Resolves `null` when there was none to make. */
@@ -798,7 +801,7 @@ interface AnnotationDraftApi {
798
801
  cancel(): void;
799
802
  }
800
803
  /** Typing in a text box. */
801
- interface AnnotationTextApi {
804
+ interface AnnotationTextCapability {
802
805
  /** Start typing in a text box, as a double-click does. */
803
806
  begin(ref: AnnotationRef): void;
804
807
  /** Stop typing, and save what was typed. */
@@ -813,7 +816,7 @@ interface AnnotationTextApi {
813
816
  toggleFormat(format: TextFormat, options?: OperationOptions): Promise<void>;
814
817
  }
815
818
  /** The tools: what a click or a drag creates, with which defaults. */
816
- interface AnnotationToolsApi {
819
+ interface AnnotationToolsCapability {
817
820
  /** Every tool, the built-in ones and yours. */
818
821
  list(): readonly AnnotationTool[];
819
822
  /** One tool, or `null`. */
@@ -864,18 +867,18 @@ interface StampInput {
864
867
  /** Where `stamps.place()` puts a stamp, without a click. */
865
868
  interface StampPlacement {
866
869
  /** The page, as a ref or an index. */
867
- page: PageRef | number;
870
+ readonly page: PageRef | number;
868
871
  /** Where its middle goes, in page space. The size comes from the picture. */
869
- center: Point$1;
872
+ readonly center: Point$1;
870
873
  /** Placed width in PDF points; default the picture's own (or the stamp's `targetWidth`). */
871
- targetWidth?: number;
874
+ readonly targetWidth?: number;
872
875
  /** Its turn, degrees clockwise. Default 0. */
873
- rotation?: number;
876
+ readonly rotation?: number;
874
877
  /** Select it, as placing it with a click would. Default false: code never changes the selection. */
875
- select?: boolean;
878
+ readonly select?: boolean;
876
879
  }
877
880
  /** Stamps placed from bytes: armed for the next click, or placed from code. */
878
- interface AnnotationStampsApi {
881
+ interface AnnotationStampsCapability {
879
882
  /**
880
883
  * Arm a stamp's bytes so the next click places them, as the `stamp` tool
881
884
  * does after picking a file. Rejects `invalid-input` for bytes that aren't
@@ -898,7 +901,7 @@ interface AnnotationStampsApi {
898
901
  }>;
899
902
  }
900
903
  /** Links attached to annotations (a link child), or a link annotation's own target. */
901
- interface AnnotationLinksApi {
904
+ interface AnnotationLinksCapability {
902
905
  /** Where an annotation links to, or `null`. */
903
906
  get(ref: AnnotationRef): PdfLinkTarget | null;
904
907
  /** Link an annotation to a page or a website. */
@@ -911,7 +914,7 @@ interface AnnotationLinksApi {
911
914
  * annotation create, change or delete, so other people's changes, this
912
915
  * viewer's and reloads all show in `listThreads()`.
913
916
  */
914
- interface CommentsApi {
917
+ interface CommentsCapability {
915
918
  /** Every thread, in reading order: by page, then from the top of the page. */
916
919
  listThreads(): readonly CommentThread[];
917
920
  /** The thread a comment is in (its first comment, a reply or a review state), or `null`. */
@@ -1056,13 +1059,13 @@ interface AnnotationCapability extends SettingsApi<AnnotationSettings> {
1056
1059
  * that isn't here, `invalid-input` for a role its kind doesn't have.
1057
1060
  */
1058
1061
  downloadResource(ref: AnnotationRef, role: AnnotationResourceRole, options?: OperationOptions): Promise<Uint8Array>;
1059
- readonly links: AnnotationLinksApi;
1060
- readonly selection: AnnotationSelectionApi;
1061
- readonly draft: AnnotationDraftApi;
1062
- readonly text: AnnotationTextApi;
1063
- readonly tools: AnnotationToolsApi;
1064
- readonly stamps: AnnotationStampsApi;
1065
- readonly comments: CommentsApi;
1062
+ readonly links: AnnotationLinksCapability;
1063
+ readonly selection: AnnotationSelectionCapability;
1064
+ readonly draft: AnnotationDraftCapability;
1065
+ readonly text: AnnotationTextCapability;
1066
+ readonly tools: AnnotationToolsCapability;
1067
+ readonly stamps: AnnotationStampsCapability;
1068
+ readonly comments: CommentsCapability;
1066
1069
  /**
1067
1070
  * Set the function that gives the `stamp` and `attachment` tools their
1068
1071
  * file, `null` to make them do nothing. Returns a function that removes it.
@@ -1119,8 +1122,8 @@ interface ArmedStampInfo {
1119
1122
  }
1120
1123
  /** The armed stamp's paintable preview, for the render layer's ghost `<img>`. */
1121
1124
  interface ArmedStampPreview {
1122
- bytes: Uint8Array;
1123
- mimeType?: string;
1125
+ readonly bytes: Uint8Array;
1126
+ readonly mimeType?: string;
1124
1127
  }
1125
1128
  /**
1126
1129
  * Resolution-aware ghost preview: "give me this stamp at `devicePixelWidth`
@@ -1162,5 +1165,5 @@ interface FilePromptRequest {
1162
1165
  */
1163
1166
  type FilePickerProvider = (request: FilePromptRequest) => Promise<AttachmentFileSource | null>;
1164
1167
  //#endregion
1165
- export { Color as $, AnnotationResources$1 as A, AnnotationState as At, AnnotationTool as B, ResolvedGhost as Bt, AnnotationPatch$1 as C, StampPlacement as Ct, AnnotationRef$1 as D, ThreadDeleteResult as Dt, AnnotationProperty$1 as E, TextItem as Et, AnnotationSelectionChangedEvent as F, AnnotationToolInput as Ft, ArmedStampInfo as G, ToolDefaultsFor as Gt, AnnotationTransfer as H, SelectionAuthoring as Ht, AnnotationSettings as I, DEFAULT_TOOLS as It, AttachmentFileSource$1 as J, TextFormat as Jt, ArmedStampPreview as K, EditorSelection as Kt, AnnotationStampsApi as L, GhostPolicy as Lt, AnnotationRotationAnchor as M, AnnotationToken as Mt, AnnotationSelectionAnchor as N, ARMED_STAMP_TOOL_ID as Nt, AnnotationReorderedEvent as O, ToolDefaults as Ot, AnnotationSelectionApi as P, AnnotationToolDef as Pt, ClickCreate$1 as Q, AnnotationSubtype$1 as R, InkAuthoringOptions as Rt, AnnotationOption as S, StampInput as St, AnnotationProperties as T, TextAlign as Tt, AnnotationUpdatedEvent as U, StampSourceSpec as Ut, AnnotationToolsApi as V, ResolvedTool as Vt, AnnotationWriteFailedEvent as W, ToolAuthoringKind as Wt, BlendMode as X, Behavior as Y, TextSelection as Yt, ChromeSettings as Z, AnnotationHoverChangedEvent as _, MarkupSubtype as _t, AnnotationBundle$1 as a, EditableKind as at, AnnotationImportResult as b, ReviewStatus as bt, AnnotationCreatedEvent as c, FilePickerProvider as ct, AnnotationDraftApi as d, HandleRole as dt, CommentThread$1 as et, AnnotationDraftChangedEvent as f, ImageGhost as ft, AnnotationFlags$1 as g, LinkNavItem as gt, AnnotationFilter as h, LineStyle as ht, AnnotationAnchor as i, CreationDraft as it, AnnotationResyncedEvent as j, annotationState as jt, AnnotationResourceRole$1 as k, ToolDefaultsChangedEvent as kt, AnnotationDeletedEvent as l, FilePromptRequest as lt, AnnotationExportSelection as m, LineEndings as mt, AfterCreateSettings as n, CommentThreadReview as nt, AnnotationCapability as o, EditableKinds$1 as ot, AnnotationEditingChangedEvent as p, LineEnding as pt, AttachmentContent as q, Face as qt, Annotation$1 as r, CommentsApi as rt, AnnotationConfig as s, FieldValues$1 as st, ANNOTATION_DEFAULTS as t, CommentThreadChangedEvent as tt, AnnotationDraft$1 as u, FlagKey as ut, AnnotationImportDrop$1 as v, MeasurementIntent as vt, AnnotationPosition$1 as w, StampPreviewProvider as wt, AnnotationLinksApi as x, SnapSettings$1 as xt, AnnotationImportOptions$1 as y, PdfLinkTarget$1 as yt, AnnotationTextApi as z, PromptSourceSpec as zt };
1166
- //# sourceMappingURL=contract-BzsydV7F.d.cts.map
1168
+ export { Color as $, AnnotationResources$1 as A, AnnotationState as At, AnnotationTool as B, ResolvedGhost as Bt, AnnotationPatch$1 as C, StampPlacement as Ct, AnnotationRef$1 as D, ThreadDeleteResult as Dt, AnnotationProperty$1 as E, TextItem as Et, AnnotationSelectionChangedEvent as F, AnnotationToolInput as Ft, ArmedStampInfo as G, ToolDefaultsFor as Gt, AnnotationTransfer as H, SelectionAuthoring as Ht, AnnotationSettings as I, DEFAULT_TOOLS as It, AttachmentFileSource$1 as J, TextFormat as Jt, ArmedStampPreview as K, EditorSelection as Kt, AnnotationStampsCapability as L, GhostPolicy as Lt, AnnotationRotationAnchor as M, AnnotationToken as Mt, AnnotationSelectionAnchor as N, ARMED_STAMP_TOOL_ID as Nt, AnnotationReorderedEvent as O, ToolDefaults as Ot, AnnotationSelectionCapability as P, AnnotationToolDefinition as Pt, ClickCreate$1 as Q, AnnotationSubtype$1 as R, InkAuthoringOptions as Rt, AnnotationOption as S, StampInput as St, AnnotationProperties as T, TextAlign as Tt, AnnotationUpdatedEvent as U, StampSourceSpec as Ut, AnnotationToolsCapability as V, ResolvedTool as Vt, AnnotationWriteFailedEvent as W, ToolAuthoringKind as Wt, BlendMode as X, Behavior as Y, TextSelection as Yt, ChromeSettings as Z, AnnotationHoverChangedEvent as _, MarkupSubtype as _t, AnnotationBundle$1 as a, EditableKind as at, AnnotationImportResult as b, ReviewStatus as bt, AnnotationCreatedEvent as c, FilePickerProvider as ct, AnnotationDraftCapability as d, HandleRole as dt, CommentThread$1 as et, AnnotationDraftChangedEvent as f, ImageGhost as ft, AnnotationFlags$1 as g, LinkNavItem as gt, AnnotationFilter as h, LineStyle as ht, AnnotationAnchor as i, CreationDraft as it, AnnotationResyncedEvent as j, annotationState as jt, AnnotationResourceRole$1 as k, ToolDefaultsChangedEvent as kt, AnnotationDeletedEvent as l, FilePromptRequest as lt, AnnotationExportSelection as m, LineEndings as mt, AfterCreateSettings as n, CommentThreadReview as nt, AnnotationCapability as o, EditableKinds$1 as ot, AnnotationEditingChangedEvent as p, LineEnding as pt, AttachmentContent as q, Face as qt, Annotation$1 as r, CommentsCapability as rt, AnnotationConfig as s, FieldValues$1 as st, ANNOTATION_DEFAULTS as t, CommentThreadChangedEvent as tt, AnnotationDraft$1 as u, FlagKey as ut, AnnotationImportDrop$1 as v, MeasurementIntent as vt, AnnotationPosition$1 as w, StampPreviewProvider as wt, AnnotationLinksCapability as x, SnapSettings$1 as xt, AnnotationImportOptions$1 as y, PdfLinkTarget$1 as yt, AnnotationTextCapability as z, PromptSourceSpec as zt };
1169
+ //# sourceMappingURL=contract-BK2g1Rem.d.ts.map
@@ -49,7 +49,7 @@ const AnnotationToken = (0, _embedpdf_core.createCapabilityToken)("annotation",
49
49
  const annotationState = (0, _embedpdf_core.defineState)(AnnotationToken, {
50
50
  read: (annotation) => ({
51
51
  status: annotation.getStatus(),
52
- selected: annotation.selection.list(),
52
+ selected: annotation.selection.getSelected(),
53
53
  hovered: annotation.getHovered(),
54
54
  editing: annotation.text.getEditing()
55
55
  }),
@@ -633,7 +633,7 @@ const ANNOTATION_DEFAULTS = {
633
633
  },
634
634
  snap: {
635
635
  alignment: true,
636
- alignmentThreshold: 6,
636
+ alignmentThresholdPx: 6,
637
637
  rotation: true,
638
638
  rotationAngles: [
639
639
  0,
@@ -641,7 +641,7 @@ const ANNOTATION_DEFAULTS = {
641
641
  180,
642
642
  270
643
643
  ],
644
- rotationThreshold: 4
644
+ rotationThresholdDeg: 4
645
645
  },
646
646
  editable: true
647
647
  };
@@ -689,4 +689,4 @@ Object.defineProperty(exports, "toolTouchOf", {
689
689
  }
690
690
  });
691
691
 
692
- //# sourceMappingURL=contract-CPzpRG3h.cjs.map
692
+ //# sourceMappingURL=contract-BtAl3Yo2.cjs.map