page-annotation 0.1.0-alpha.1 → 0.1.0-alpha.2

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 CHANGED
@@ -47,4 +47,15 @@ document.querySelector("#feedback")?.addEventListener("click", () => {
47
47
  });
48
48
  ```
49
49
 
50
+ ## Privacy Controls
51
+
52
+ Mark regions that should never appear in screenshots:
53
+
54
+ ```html
55
+ <div data-page-annotation-ignore>Hidden from capture</div>
56
+ <div data-page-annotation-redact>Masked in capture</div>
57
+ ```
58
+
59
+ `data-pa-ignore` and `data-pa-redact` are supported as shorter aliases. Hosts can also pass `capture.ignoreSelectors`, `capture.redactSelectors`, `beforeExport`, and `captureProvider` for stricter app-specific policy.
60
+
50
61
  Screenshots can contain sensitive application data. The package never uploads screenshots automatically; host applications own authorization, consent, storage, retention, and auditing.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { createAnnotator } from "./annotator";
3
3
  export { canCopyExportToClipboard, copyExportToClipboard } from "./clipboard";
4
4
  export { downloadExport } from "./download";
5
5
  export { iconSvg } from "./icons";
6
+ export { assertAnnotationDocument, isAnnotationDocument, parseAnnotationDocument } from "./schema";
6
7
  export { AnnotationStore } from "./store";
7
- export type { AnnotationDocument, AnnotationExport, AnnotationItem, AnnotationPoint, AnnotationTool, CaptureOptions, CaptureProvider, PageAnnotator, PageAnnotatorLabels, PageAnnotatorLauncherOffset, PageAnnotatorLauncherOptions, PageAnnotatorLauncherPosition, PageAnnotatorOptions } from "./types";
8
+ export type { AnnotationDocument, AnnotationDocumentParseResult, AnnotationExport, AnnotationExportRequest, AnnotationItem, AnnotationPageMetadata, AnnotationPoint, AnnotationTool, CaptureOptions, CaptureProvider, PageAnnotator, PageAnnotatorLabels, PageAnnotatorLauncherOffset, PageAnnotatorLauncherOptions, PageAnnotatorLauncherPosition, PageAnnotatorOptions } from "./types";
8
9
  export type { ToolbarIconName } from "./icons";