@embedpdf/plugin-annotation 1.0.14 → 1.0.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.
Files changed (52) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +24 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/annotation-plugin.d.ts +1 -0
  6. package/dist/lib/helpers.d.ts +1 -0
  7. package/dist/lib/types.d.ts +6 -3
  8. package/dist/preact/adapter.d.ts +2 -0
  9. package/dist/preact/index.cjs +1 -1
  10. package/dist/preact/index.cjs.map +1 -1
  11. package/dist/preact/index.js +321 -48
  12. package/dist/preact/index.js.map +1 -1
  13. package/dist/react/adapter.d.ts +2 -2
  14. package/dist/react/index.cjs +1 -1
  15. package/dist/react/index.cjs.map +1 -1
  16. package/dist/react/index.js +321 -48
  17. package/dist/react/index.js.map +1 -1
  18. package/dist/shared-preact/components/annotation-container.d.ts +2 -1
  19. package/dist/shared-preact/components/annotations/circle.d.ts +5 -5
  20. package/dist/shared-preact/components/annotations/free-text.d.ts +2 -2
  21. package/dist/shared-preact/components/annotations/ink.d.ts +5 -5
  22. package/dist/shared-preact/components/annotations/line.d.ts +2 -2
  23. package/dist/shared-preact/components/annotations/polygon.d.ts +2 -2
  24. package/dist/shared-preact/components/annotations/polyline.d.ts +2 -2
  25. package/dist/shared-preact/components/annotations/square.d.ts +5 -5
  26. package/dist/shared-preact/components/annotations/stamp-paint.d.ts +8 -0
  27. package/dist/shared-preact/components/annotations/stamp.d.ts +12 -0
  28. package/dist/shared-preact/components/counter-rotate-container.d.ts +2 -1
  29. package/dist/shared-preact/components/render-annotation.d.ts +1 -1
  30. package/dist/shared-preact/components/text-markup/highlight.d.ts +2 -2
  31. package/dist/shared-preact/components/text-markup/squiggly.d.ts +2 -2
  32. package/dist/shared-preact/components/text-markup/strikeout.d.ts +2 -2
  33. package/dist/shared-preact/components/text-markup/underline.d.ts +2 -2
  34. package/dist/shared-preact/hooks/use-drag-resize.d.ts +10 -3
  35. package/dist/shared-react/components/annotation-container.d.ts +2 -1
  36. package/dist/shared-react/components/annotations/circle.d.ts +5 -5
  37. package/dist/shared-react/components/annotations/free-text.d.ts +2 -2
  38. package/dist/shared-react/components/annotations/ink.d.ts +5 -5
  39. package/dist/shared-react/components/annotations/line.d.ts +2 -2
  40. package/dist/shared-react/components/annotations/polygon.d.ts +2 -2
  41. package/dist/shared-react/components/annotations/polyline.d.ts +2 -2
  42. package/dist/shared-react/components/annotations/square.d.ts +5 -5
  43. package/dist/shared-react/components/annotations/stamp-paint.d.ts +8 -0
  44. package/dist/shared-react/components/annotations/stamp.d.ts +12 -0
  45. package/dist/shared-react/components/counter-rotate-container.d.ts +2 -1
  46. package/dist/shared-react/components/render-annotation.d.ts +1 -1
  47. package/dist/shared-react/components/text-markup/highlight.d.ts +2 -2
  48. package/dist/shared-react/components/text-markup/squiggly.d.ts +2 -2
  49. package/dist/shared-react/components/text-markup/strikeout.d.ts +2 -2
  50. package/dist/shared-react/components/text-markup/underline.d.ts +2 -2
  51. package/dist/shared-react/hooks/use-drag-resize.d.ts +10 -3
  52. package/package.json +14 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-annotation",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -15,27 +15,32 @@
15
15
  "types": "./dist/preact/index.d.ts",
16
16
  "import": "./dist/preact/index.js",
17
17
  "require": "./dist/preact/index.cjs"
18
+ },
19
+ "./react": {
20
+ "types": "./dist/react/index.d.ts",
21
+ "import": "./dist/react/index.js",
22
+ "require": "./dist/react/index.cjs"
18
23
  }
19
24
  },
20
25
  "dependencies": {
21
- "@embedpdf/models": "1.0.14"
26
+ "@embedpdf/models": "1.0.16"
22
27
  },
23
28
  "devDependencies": {
24
29
  "@types/react": "^18.2.0",
25
30
  "typescript": "^5.0.0",
26
- "@embedpdf/plugin-selection": "1.0.14",
27
31
  "@embedpdf/build": "1.0.0",
28
- "@embedpdf/plugin-interaction-manager": "1.0.14",
29
- "@embedpdf/plugin-history": "1.0.14"
32
+ "@embedpdf/plugin-interaction-manager": "1.0.16",
33
+ "@embedpdf/plugin-selection": "1.0.16",
34
+ "@embedpdf/plugin-history": "1.0.16"
30
35
  },
31
36
  "peerDependencies": {
32
37
  "react": ">=16.8.0",
33
38
  "react-dom": ">=16.8.0",
34
39
  "preact": "^10.26.4",
35
- "@embedpdf/core": "1.0.14",
36
- "@embedpdf/plugin-interaction-manager": "1.0.14",
37
- "@embedpdf/plugin-selection": "1.0.14",
38
- "@embedpdf/plugin-history": "1.0.14"
40
+ "@embedpdf/core": "1.0.16",
41
+ "@embedpdf/plugin-history": "1.0.16",
42
+ "@embedpdf/plugin-interaction-manager": "1.0.16",
43
+ "@embedpdf/plugin-selection": "1.0.16"
39
44
  },
40
45
  "files": [
41
46
  "dist",