@embedpdf/plugin-annotation 3.0.0-next.14 → 3.0.0-next.16
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 +129 -0
- package/dist/authoring.cjs +12 -2
- package/dist/authoring.d.cts +2 -2
- package/dist/authoring.d.ts +2 -2
- package/dist/authoring.js +2 -3
- package/dist/contract/host.cjs +18 -2
- package/dist/contract/host.d.cts +3 -2
- package/dist/contract/host.d.ts +3 -2
- package/dist/contract/host.js +3 -2
- package/dist/contract-BK4LHe9v.d.cts +1127 -0
- package/dist/contract-BOo9iZKo.d.ts +1127 -0
- package/dist/contract-CPzpRG3h.cjs +692 -0
- package/dist/contract-CPzpRG3h.cjs.map +1 -0
- package/dist/contract-b2e_LZvu.js +651 -0
- package/dist/contract-b2e_LZvu.js.map +1 -0
- package/dist/contract.cjs +11 -10
- package/dist/contract.d.cts +2 -3
- package/dist/contract.d.ts +2 -3
- package/dist/contract.js +2 -4
- package/dist/host-contract-BU29qDEw.d.cts +320 -0
- package/dist/host-contract-CxrQPcPj.js +52 -0
- package/dist/host-contract-CxrQPcPj.js.map +1 -0
- package/dist/{contract-a4eaQWga.cjs → host-contract-DY9jFPPF.cjs} +36 -16
- package/dist/host-contract-DY9jFPPF.cjs.map +1 -0
- package/dist/host-contract-DfSvbt8c.d.ts +320 -0
- package/dist/index.cjs +5043 -419
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -17
- package/dist/index.d.ts +12 -17
- package/dist/index.js +4995 -391
- package/dist/index.js.map +1 -1
- package/package.json +11 -14
- package/dist/authoring-BhtyfsMx.d.cts +0 -37
- package/dist/authoring-R4ezdnXd.d.ts +0 -37
- package/dist/capability-Bt320iJP.cjs +0 -3249
- package/dist/capability-Bt320iJP.cjs.map +0 -1
- package/dist/capability-CoL4na7g.js +0 -3226
- package/dist/capability-CoL4na7g.js.map +0 -1
- package/dist/contract-C7rcuNp_.d.cts +0 -34
- package/dist/contract-CM2Ovdq_.d.ts +0 -34
- package/dist/contract-DtXE1hjY.js +0 -32
- package/dist/contract-DtXE1hjY.js.map +0 -1
- package/dist/contract-a4eaQWga.cjs.map +0 -1
- package/dist/internal.cjs +0 -8
- package/dist/internal.d.cts +0 -14
- package/dist/internal.d.ts +0 -14
- package/dist/internal.js +0 -5
- package/dist/seam-6pJeKOOJ.cjs +0 -296
- package/dist/seam-6pJeKOOJ.cjs.map +0 -1
- package/dist/seam-C4L_7rDt.js +0 -225
- package/dist/seam-C4L_7rDt.js.map +0 -1
- package/dist/tools-B3i1gjRs.cjs +0 -589
- package/dist/tools-B3i1gjRs.cjs.map +0 -1
- package/dist/tools-DsfqBn_a.js +0 -566
- package/dist/tools-DsfqBn_a.js.map +0 -1
- package/dist/types-BvB1vUKb.js +0 -20
- package/dist/types-BvB1vUKb.js.map +0 -1
- package/dist/types-ChRnKozg.d.cts +0 -1246
- package/dist/types-Dlhdw2k_.cjs +0 -31
- package/dist/types-Dlhdw2k_.cjs.map +0 -1
- package/dist/types-Dmz3eRSG.d.ts +0 -1246
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { widgetAppearanceOf } from "./authoring.cjs";
|
|
2
|
+
import { $ as Color, A as AnnotationResources, At as annotationState, B as AnnotationTool, Bt as ResolvedTool, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, Ft as DEFAULT_TOOLS, G as ArmedStampInfo, Gt as Face, H as AnnotationTransfer, Ht as StampSourceSpec, I as AnnotationSettings, It as GhostPolicy, J as AttachmentFileSource, K as ArmedStampPreview, Kt as TextFormat, L as AnnotationStampsApi, Lt as InkAuthoringOptions, M as AnnotationRotationAnchor, Mt as ARMED_STAMP_TOOL_ID, N as AnnotationSelectionAnchor, Nt as AnnotationToolDef, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionApi, Pt as AnnotationToolInput, Q as ClickCreate, R as AnnotationSubtype, Rt as PromptSourceSpec, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, Ut as ToolAuthoringKind, V as AnnotationToolsApi, Vt as SelectionAuthoring, W as AnnotationWriteFailedEvent, Wt as ToolDefaultsFor, X as BlendMode, Y as Behavior, 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 AnnotationToken, 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 TextSelection, 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, zt as ResolvedGhost } from "./contract-BK4LHe9v.cjs";
|
|
3
|
+
import { f as AnnotationState, n as AnnotationHostCapability } from "./host-contract-BU29qDEw.cjs";
|
|
4
|
+
import { MIN_DRAG, Placement, gesturePlacement, kindNamed, propertiesOf, resolveClickPlacement } from "@embedpdf/core-annotation";
|
|
5
|
+
import { annotationKey } from "@embedpdf/core";
|
|
5
6
|
//#region src/annotation.plugin.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* The annotation plugin. Document-scoped; requires the interaction hub and
|
|
8
|
-
*
|
|
9
|
-
* markup lights up only when
|
|
9
|
+
* optionally uses the selection plugin: shapes and ink work without it, text
|
|
10
|
+
* markup lights up only when it is present. The engine's pictures of its
|
|
11
|
+
* annotations come through the render plugin; without it, what draws live
|
|
12
|
+
* still draws. `config` is the settings the app
|
|
13
|
+
* registers, over {@link ANNOTATION_DEFAULTS}.
|
|
10
14
|
*/
|
|
11
|
-
declare const annotationPlugin: (config?: AnnotationConfig) => import("@embedpdf/core").PluginDef<AnnotationState,
|
|
15
|
+
declare const annotationPlugin: (config?: AnnotationConfig) => import("@embedpdf/core").PluginDef<AnnotationState, AnnotationHostCapability, AnnotationSettings>;
|
|
12
16
|
//#endregion
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Out-of-the-box selection chrome — a sensible document-annotation feel. Every
|
|
16
|
-
* length is CSS px (screen-constant across zoom); every color falls back to
|
|
17
|
-
* `accent`. Just defaults: override any field at registration
|
|
18
|
-
* (`annotationPlugin({ chrome })`) or at runtime (`setChrome`).
|
|
19
|
-
*/
|
|
20
|
-
declare const DEFAULT_CHROME: ChromeSettings;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_GHOST_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, type AnnotationAction, type AnnotationCapability, type AnnotationConfig, type AnnotationDTO, type AnnotationFlags, type AnnotationHydration, type AnnotationProps, type AnnotationPropsPatch, type AnnotationRef, type AnnotationState, type AnnotationSubtype, AnnotationToken, type AnnotationToolDef, type AnnotationToolInput, type Behavior, type BlendMode, type Border, type ChromeSettings, type ChromeSettingsPatch, type ClickCreate, type ClickPlacement, type Color, type CommentPermissions, type CommentThread, type CommentThreadReview, type CommentsApi, DEFAULT_CHROME, DEFAULT_TOOLS, type Face, type FilePickerProvider, type FilePromptRequest, type GhostPolicy, type InkAuthoringOptions, type LineEnding, type LineEndings, type LinkNavItem, MIN_DRAG, type PromptSourceSpec, type PropKey, type PropSpec, type ResolvedTool, type ReviewStatus, type SelectionAuthoring, type SelectionFlags, type SelectionProps, type SnapSettings, type StampPlacement, type StampPreviewProvider, type StampSourceSpec, type StampToolInput, type TextAlign, type TextFormat, type TextItem, type TextSelection, type ThreadDeleteResult, type ToolAuthoringKind, type ToolDefaultsFor, type ToolGhost, annotationPlugin, fromDTO, previewBucket, propsFor, refKey, resolveClickPlacement, styleFromDTO, toCreateDraft, toPatch, widgetAppearanceFromProps };
|
|
17
|
+
export { ANNOTATION_DEFAULTS, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftApi, AnnotationDraftChangedEvent, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLinksApi, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionApi, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsApi, type AnnotationSubtype, AnnotationTextApi, AnnotationToken, AnnotationTool, type AnnotationToolDef, type AnnotationToolInput, AnnotationToolsApi, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsApi, CreationDraft, DEFAULT_TOOLS, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type GhostPolicy, type HandleRole, ImageGhost, type InkAuthoringOptions, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MIN_DRAG, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, type Placement, type PromptSourceSpec, type ResolvedGhost, type ResolvedTool, type ReviewStatus, type SelectionAuthoring, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type StampSourceSpec, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, type ToolAuthoringKind, ToolDefaults, ToolDefaultsChangedEvent, type ToolDefaultsFor, annotationKey, annotationPlugin, annotationState, gesturePlacement, kindNamed, propertiesOf, resolveClickPlacement, widgetAppearanceOf };
|
|
23
18
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { widgetAppearanceOf } from "./authoring.js";
|
|
2
|
+
import { $ as Color, A as AnnotationResources, At as annotationState, B as AnnotationTool, Bt as ResolvedTool, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, Ft as DEFAULT_TOOLS, G as ArmedStampInfo, Gt as Face, H as AnnotationTransfer, Ht as StampSourceSpec, I as AnnotationSettings, It as GhostPolicy, J as AttachmentFileSource, K as ArmedStampPreview, Kt as TextFormat, L as AnnotationStampsApi, Lt as InkAuthoringOptions, M as AnnotationRotationAnchor, Mt as ARMED_STAMP_TOOL_ID, N as AnnotationSelectionAnchor, Nt as AnnotationToolDef, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionApi, Pt as AnnotationToolInput, Q as ClickCreate, R as AnnotationSubtype, Rt as PromptSourceSpec, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, Ut as ToolAuthoringKind, V as AnnotationToolsApi, Vt as SelectionAuthoring, W as AnnotationWriteFailedEvent, Wt as ToolDefaultsFor, X as BlendMode, Y as Behavior, 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 AnnotationToken, 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 TextSelection, 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, zt as ResolvedGhost } from "./contract-BOo9iZKo.js";
|
|
3
|
+
import { f as AnnotationState, n as AnnotationHostCapability } from "./host-contract-DfSvbt8c.js";
|
|
4
|
+
import { annotationKey } from "@embedpdf/core";
|
|
5
|
+
import { MIN_DRAG, Placement, gesturePlacement, kindNamed, propertiesOf, resolveClickPlacement } from "@embedpdf/core-annotation";
|
|
5
6
|
//#region src/annotation.plugin.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* The annotation plugin. Document-scoped; requires the interaction hub and
|
|
8
|
-
*
|
|
9
|
-
* markup lights up only when
|
|
9
|
+
* optionally uses the selection plugin: shapes and ink work without it, text
|
|
10
|
+
* markup lights up only when it is present. The engine's pictures of its
|
|
11
|
+
* annotations come through the render plugin; without it, what draws live
|
|
12
|
+
* still draws. `config` is the settings the app
|
|
13
|
+
* registers, over {@link ANNOTATION_DEFAULTS}.
|
|
10
14
|
*/
|
|
11
|
-
declare const annotationPlugin: (config?: AnnotationConfig) => import("@embedpdf/core").PluginDef<AnnotationState,
|
|
15
|
+
declare const annotationPlugin: (config?: AnnotationConfig) => import("@embedpdf/core").PluginDef<AnnotationState, AnnotationHostCapability, AnnotationSettings>;
|
|
12
16
|
//#endregion
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Out-of-the-box selection chrome — a sensible document-annotation feel. Every
|
|
16
|
-
* length is CSS px (screen-constant across zoom); every color falls back to
|
|
17
|
-
* `accent`. Just defaults: override any field at registration
|
|
18
|
-
* (`annotationPlugin({ chrome })`) or at runtime (`setChrome`).
|
|
19
|
-
*/
|
|
20
|
-
declare const DEFAULT_CHROME: ChromeSettings;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_GHOST_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, type AnnotationAction, type AnnotationCapability, type AnnotationConfig, type AnnotationDTO, type AnnotationFlags, type AnnotationHydration, type AnnotationProps, type AnnotationPropsPatch, type AnnotationRef, type AnnotationState, type AnnotationSubtype, AnnotationToken, type AnnotationToolDef, type AnnotationToolInput, type Behavior, type BlendMode, type Border, type ChromeSettings, type ChromeSettingsPatch, type ClickCreate, type ClickPlacement, type Color, type CommentPermissions, type CommentThread, type CommentThreadReview, type CommentsApi, DEFAULT_CHROME, DEFAULT_TOOLS, type Face, type FilePickerProvider, type FilePromptRequest, type GhostPolicy, type InkAuthoringOptions, type LineEnding, type LineEndings, type LinkNavItem, MIN_DRAG, type PromptSourceSpec, type PropKey, type PropSpec, type ResolvedTool, type ReviewStatus, type SelectionAuthoring, type SelectionFlags, type SelectionProps, type SnapSettings, type StampPlacement, type StampPreviewProvider, type StampSourceSpec, type StampToolInput, type TextAlign, type TextFormat, type TextItem, type TextSelection, type ThreadDeleteResult, type ToolAuthoringKind, type ToolDefaultsFor, type ToolGhost, annotationPlugin, fromDTO, previewBucket, propsFor, refKey, resolveClickPlacement, styleFromDTO, toCreateDraft, toPatch, widgetAppearanceFromProps };
|
|
17
|
+
export { ANNOTATION_DEFAULTS, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftApi, AnnotationDraftChangedEvent, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLinksApi, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionApi, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsApi, type AnnotationSubtype, AnnotationTextApi, AnnotationToken, AnnotationTool, type AnnotationToolDef, type AnnotationToolInput, AnnotationToolsApi, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsApi, CreationDraft, DEFAULT_TOOLS, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type GhostPolicy, type HandleRole, ImageGhost, type InkAuthoringOptions, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MIN_DRAG, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, type Placement, type PromptSourceSpec, type ResolvedGhost, type ResolvedTool, type ReviewStatus, type SelectionAuthoring, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type StampSourceSpec, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, type ToolAuthoringKind, ToolDefaults, ToolDefaultsChangedEvent, type ToolDefaultsFor, annotationKey, annotationPlugin, annotationState, gesturePlacement, kindNamed, propertiesOf, resolveClickPlacement, widgetAppearanceOf };
|
|
23
18
|
//# sourceMappingURL=index.d.ts.map
|