@embedpdf/plugin-annotation 2.8.0 → 2.9.1

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 (53) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +829 -148
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/geometry/cloudy-border.d.ts +90 -0
  6. package/dist/lib/geometry/index.d.ts +1 -0
  7. package/dist/lib/handlers/types.d.ts +2 -1
  8. package/dist/lib/tools/default-tools.d.ts +43 -88
  9. package/dist/lib/tools/types.d.ts +34 -1
  10. package/dist/lib/types.d.ts +3 -0
  11. package/dist/preact/index.cjs +1 -1
  12. package/dist/preact/index.cjs.map +1 -1
  13. package/dist/preact/index.js +371 -242
  14. package/dist/preact/index.js.map +1 -1
  15. package/dist/react/index.cjs +1 -1
  16. package/dist/react/index.cjs.map +1 -1
  17. package/dist/react/index.js +371 -242
  18. package/dist/react/index.js.map +1 -1
  19. package/dist/shared/components/annotation-container.d.ts +4 -2
  20. package/dist/shared/components/annotations/circle.d.ts +6 -2
  21. package/dist/shared/components/annotations/polygon.d.ts +3 -1
  22. package/dist/shared/components/annotations/square.d.ts +6 -2
  23. package/dist/shared/components/types.d.ts +6 -2
  24. package/dist/shared-preact/components/annotation-container.d.ts +4 -2
  25. package/dist/shared-preact/components/annotations/circle.d.ts +6 -2
  26. package/dist/shared-preact/components/annotations/polygon.d.ts +3 -1
  27. package/dist/shared-preact/components/annotations/square.d.ts +6 -2
  28. package/dist/shared-preact/components/types.d.ts +6 -2
  29. package/dist/shared-react/components/annotation-container.d.ts +4 -2
  30. package/dist/shared-react/components/annotations/circle.d.ts +6 -2
  31. package/dist/shared-react/components/annotations/polygon.d.ts +3 -1
  32. package/dist/shared-react/components/annotations/square.d.ts +6 -2
  33. package/dist/shared-react/components/types.d.ts +6 -2
  34. package/dist/svelte/components/annotations/Circle.svelte.d.ts +3 -1
  35. package/dist/svelte/components/annotations/Polygon.svelte.d.ts +1 -0
  36. package/dist/svelte/components/annotations/Square.svelte.d.ts +3 -1
  37. package/dist/svelte/components/types.d.ts +2 -1
  38. package/dist/svelte/context/types.d.ts +6 -2
  39. package/dist/svelte/index.cjs +1 -1
  40. package/dist/svelte/index.cjs.map +1 -1
  41. package/dist/svelte/index.js +525 -298
  42. package/dist/svelte/index.js.map +1 -1
  43. package/dist/vue/components/annotation-container.vue.d.ts +7 -6
  44. package/dist/vue/components/annotations/circle.vue.d.ts +5 -1
  45. package/dist/vue/components/annotations/polygon.vue.d.ts +2 -0
  46. package/dist/vue/components/annotations/square.vue.d.ts +5 -1
  47. package/dist/vue/components/annotations.vue.d.ts +8 -9
  48. package/dist/vue/context/types.d.ts +6 -2
  49. package/dist/vue/index.cjs +1 -1
  50. package/dist/vue/index.cjs.map +1 -1
  51. package/dist/vue/index.js +289 -135
  52. package/dist/vue/index.js.map +1 -1
  53. package/package.json +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-annotation",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs",
@@ -35,17 +35,17 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@embedpdf/models": "2.8.0",
39
- "@embedpdf/utils": "2.8.0"
38
+ "@embedpdf/models": "2.9.1",
39
+ "@embedpdf/utils": "2.9.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/react": "^18.2.0",
43
43
  "@types/react-dom": "^18.2.0",
44
44
  "typescript": "^5.0.0",
45
45
  "@embedpdf/build": "1.1.0",
46
- "@embedpdf/plugin-selection": "2.8.0",
47
- "@embedpdf/plugin-history": "2.8.0",
48
- "@embedpdf/plugin-interaction-manager": "2.8.0"
46
+ "@embedpdf/plugin-interaction-manager": "2.9.1",
47
+ "@embedpdf/plugin-selection": "2.9.1",
48
+ "@embedpdf/plugin-history": "2.9.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.8.0",
@@ -53,10 +53,10 @@
53
53
  "preact": "^10.26.4",
54
54
  "vue": ">=3.2.0",
55
55
  "svelte": ">=5 <6",
56
- "@embedpdf/core": "2.8.0",
57
- "@embedpdf/plugin-interaction-manager": "2.8.0",
58
- "@embedpdf/plugin-selection": "2.8.0",
59
- "@embedpdf/plugin-history": "2.8.0"
56
+ "@embedpdf/plugin-interaction-manager": "2.9.1",
57
+ "@embedpdf/core": "2.9.1",
58
+ "@embedpdf/plugin-selection": "2.9.1",
59
+ "@embedpdf/plugin-history": "2.9.1"
60
60
  },
61
61
  "files": [
62
62
  "dist",