@annotorious/annotorious 3.0.17 → 3.0.19

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/dist/index.d.ts CHANGED
@@ -6,5 +6,5 @@ export * from './annotation/tools';
6
6
  export * from './Annotorious';
7
7
  export * from './AnnotoriousOpts';
8
8
  export * from './keyboardCommands';
9
- export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Appearance, AppearanceProvider, ChangeSet, Color, DrawingStyle, Filter, FormatAdapter, HoverState, LifecycleEvents, ParseResult, PresentUser, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
9
+ export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Appearance, AppearanceProvider, ChangeSet, Color, DrawingStyle, Filter, FormatAdapter, History, HoverState, LifecycleEvents, ParseResult, PresentUser, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
10
10
  export { chainStyles, computeStyle, createBody, defaultColorProvider, UserSelectAction } from '@annotorious/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annotorious/annotorious",
3
- "version": "3.0.17",
3
+ "version": "3.0.19",
4
4
  "description": "Add image annotation functionality to any web page with a few lines of JavaScript",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
@@ -46,10 +46,10 @@
46
46
  "typescript": "5.7.2",
47
47
  "vite": "^5.4.11",
48
48
  "vite-plugin-dts": "^4.3.0",
49
- "vitest": "^2.1.6"
49
+ "vitest": "^2.1.8"
50
50
  },
51
51
  "dependencies": {
52
- "@annotorious/core": "3.0.17",
52
+ "@annotorious/core": "3.0.19",
53
53
  "rbush": "^4.0.1",
54
54
  "uuid": "^11.0.3"
55
55
  }
@@ -1,4 +1,4 @@
1
- import type { Annotation, ChangeSet, DrawingStyleExpression, FormatAdapter, UserSelectActionExpression } from '@annotorious/core';
1
+ import type { Annotation, DrawingStyleExpression, FormatAdapter, History, UserSelectActionExpression } from '@annotorious/core';
2
2
  import type { ImageAnnotation } from './model';
3
3
 
4
4
  export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> {
@@ -13,7 +13,7 @@ export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E exten
13
13
  // 'drag': starts drawing on drag, single click always selects
14
14
  drawingMode?: DrawingMode;
15
15
 
16
- initialHistory?: ChangeSet<I>[];
16
+ initialHistory?: History<I>;
17
17
 
18
18
  // Modal selection mode WILL NOT CHANGE OR DE-SELECT THE CURRENT SELECTION if another
19
19
  // annotation or empty space is clicked. Warning: this means that the user is no longer
package/src/index.ts CHANGED
@@ -21,6 +21,7 @@ export type {
21
21
  DrawingStyle,
22
22
  Filter,
23
23
  FormatAdapter,
24
+ History,
24
25
  HoverState,
25
26
  LifecycleEvents,
26
27
  ParseResult,