@soomo/text-annotator 3.0.0-staging.8 → 3.1.0-staging.0

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 (42) hide show
  1. package/dist/src/SelectionHandler.d.ts +6 -4
  2. package/dist/src/TextAnnotator.d.ts +10 -9
  3. package/dist/src/TextAnnotatorOptions.d.ts +9 -9
  4. package/dist/src/api/scrollIntoView.d.ts +2 -3
  5. package/dist/src/highlight/Highlight.d.ts +1 -2
  6. package/dist/src/highlight/HighlightPainter.d.ts +2 -3
  7. package/dist/src/highlight/HighlightStyle.d.ts +2 -3
  8. package/dist/src/highlight/baseRenderer.d.ts +6 -7
  9. package/dist/src/highlight/canvas/canvasRenderer.d.ts +3 -3
  10. package/dist/src/highlight/highlights/highlightsRenderer.d.ts +4 -4
  11. package/dist/src/highlight/span/spansRenderer.d.ts +3 -3
  12. package/dist/src/highlight/viewport.d.ts +1 -2
  13. package/dist/src/index.d.ts +5 -3
  14. package/dist/src/model/core/TextAnnotation.d.ts +0 -1
  15. package/dist/src/model/w3c/W3CTextAnnotation.d.ts +0 -1
  16. package/dist/src/model/w3c/W3CTextFormatAdapter.d.ts +2 -3
  17. package/dist/src/presence/PresencePainter.d.ts +3 -4
  18. package/dist/src/state/TextAnnotationStore.d.ts +15 -11
  19. package/dist/src/state/TextAnnotatorState.d.ts +7 -8
  20. package/dist/src/state/spatialTree.d.ts +10 -6
  21. package/dist/src/utils/cancelSingleClickEvents.d.ts +6 -0
  22. package/dist/src/utils/cloneEvents.d.ts +11 -0
  23. package/dist/src/utils/device.d.ts +1 -0
  24. package/dist/src/utils/index.d.ts +6 -2
  25. package/dist/src/utils/isRevived.d.ts +0 -1
  26. package/dist/src/utils/mergeClientRects.d.ts +1 -0
  27. package/dist/src/utils/normalizeRects.d.ts +2 -0
  28. package/dist/src/utils/programmaticallyFocusable.d.ts +6 -0
  29. package/dist/src/utils/rangeToSelector.d.ts +0 -1
  30. package/dist/src/utils/reviveAnnotation.d.ts +1 -2
  31. package/dist/src/utils/reviveSelector.d.ts +1 -2
  32. package/dist/src/utils/reviveTarget.d.ts +1 -2
  33. package/dist/src/utils/trimRangeToContainer.d.ts +1 -0
  34. package/dist/test/model/w3c/fixtures.d.ts +0 -1
  35. package/dist/text-annotator.css +1 -1
  36. package/dist/text-annotator.es.js +1708 -1201
  37. package/dist/text-annotator.es.js.map +1 -1
  38. package/dist/text-annotator.umd.js +2 -2
  39. package/dist/text-annotator.umd.js.map +1 -1
  40. package/package.json +16 -13
  41. package/dist/src/utils/debounce.d.ts +0 -1
  42. package/dist/src/utils/getClientRectsPonyfill.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soomo/text-annotator",
3
- "version": "3.0.0-staging.8",
3
+ "version": "3.1.0-staging.0",
4
4
  "description": "A JavaScript text annotation library",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
@@ -26,21 +26,24 @@
26
26
  "./dist/text-annotator.css": "./dist/text-annotator.css"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/jsdom": "^21.1.6",
30
- "@types/rbush": "^3.0.3",
31
- "@types/uuid": "^9.0.8",
32
- "jsdom": "^24.0.0",
33
- "svelte": "^4.2.15",
34
- "typescript": "^5.4.5",
35
- "vite": "^5.2.10",
36
- "vite-plugin-dts": "^3.9.0",
37
- "vitest": "^1.5.0"
29
+ "@types/jsdom": "^21.1.7",
30
+ "@types/rbush": "^4.0.0",
31
+ "@types/uuid": "^10.0.0",
32
+ "jsdom": "^25.0.1",
33
+ "svelte": "^4.2.19",
34
+ "typescript": "5.6.2",
35
+ "vite": "^5.4.8",
36
+ "vite-plugin-dts": "^4.2.3",
37
+ "vitest": "^2.1.2"
38
38
  },
39
39
  "dependencies": {
40
- "@annotorious/core": "^3.0.0-rc.23",
40
+ "@annotorious/core": "^3.0.9",
41
41
  "colord": "^2.9.3",
42
+ "debounce": "^2.1.1",
42
43
  "dequal": "^2.0.3",
43
- "rbush": "^3.0.1",
44
- "uuid": "^9.0.1"
44
+ "hotkeys-js": "^3.13.7",
45
+ "nanoevents": "^9.0.0",
46
+ "rbush": "^4.0.1",
47
+ "uuid": "^10.0.0"
45
48
  }
46
49
  }
@@ -1 +0,0 @@
1
- export declare const debounce: <T extends (...args: any[]) => void>(func: T, delay?: number) => T;
@@ -1 +0,0 @@
1
- export declare const getClientRectsPonyfill: (range: Range) => DOMRect[];