@annotorious/react-manifold 0.0.10 → 0.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annotorious/react-manifold",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "A utility to manage multiple parallel Annotorious instances more efficiently",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
@@ -25,7 +25,7 @@ export interface AnnotoriousManifoldInstance<I extends Annotation = Annotation,
25
25
 
26
26
  getAnnotations(): E[];
27
27
 
28
- updateAnnotation(arg1: string | I, arg2: I | Origin, arg3: Origin): void;
28
+ updateAnnotation(arg1: string | I, arg2?: I | Origin, arg3?: Origin): void;
29
29
 
30
30
  }
31
31
 
@@ -83,7 +83,7 @@ export const createManifoldInstance = <I extends Annotation = Annotation, E exte
83
83
  Array.from(annotators.values()).reduce((all, annotator) =>
84
84
  [...all, ...annotator.getAnnotations()], [] as E[]);
85
85
 
86
- const updateAnnotation = (arg1: string | I, arg2: I | Origin = Origin.LOCAL, arg3: Origin = Origin.LOCAL) => {
86
+ const updateAnnotation = (arg1: string | I, arg2?: I | Origin, arg3?: Origin) => {
87
87
  const oldId: string = typeof arg1 === 'string' ? arg1 : arg1.id;
88
88
  const { annotator } = find(oldId);
89
89
  if (annotator)