@annotorious/react 3.7.18 → 3.7.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ImageAnnotator.d.ts","sourceRoot":"","sources":["../src/ImageAnnotator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAuC,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,eAAe,EAAwB,MAAM,0BAA0B,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGjG,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,OAAO,CAAE,SAAQ,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC;IAEvH,QAAQ,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAEzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAEnB,IAAI,CAAC,EAAE,WAAW,CAAC;CAEpB;AAED,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,OAAO,EAAE,OAAO,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,4CA4CvG,CAAA"}
1
+ {"version":3,"file":"ImageAnnotator.d.ts","sourceRoot":"","sources":["../src/ImageAnnotator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAuC,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,eAAe,EAAwB,MAAM,0BAA0B,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGjG,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,OAAO,CAAE,SAAQ,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC;IAEvH,QAAQ,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAEzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAEnB,IAAI,CAAC,EAAE,WAAW,CAAC;CAEpB;AAED,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,OAAO,EAAE,OAAO,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,4CAgDvG,CAAA"}
@@ -6,8 +6,8 @@ import { ImageAnnotator as I } from "./annotorious-react.es5.js";
6
6
  /* empty css */
7
7
  import { Origin as y, UserSelectAction as P, createAnonymousGuest as V, createBody as F, defaultColorProvider as v } from "@annotorious/core";
8
8
  import { ShapeType as z, W3CImageFormat as G, boundsFromPoints as W, chainStyles as h, computeStyle as H, createImageAnnotator as T, parseFragmentSelector as U, parseSVGSelector as b, parseW3CImageAnnotation as B, serializeFragmentSelector as j, serializeSVGSelector as k, serializeW3CImageAnnotation as q } from "@annotorious/annotorious";
9
- import { OpenSeadragonAnnotator as E, OpenSeadragonAnnotatorContext as J, useViewer as K } from "./annotorious-react.es8.js";
10
- import { OpenSeadragonAnnotationPopup as M } from "./annotorious-react.es9.js";
9
+ import { OpenSeadragonAnnotationPopup as E } from "./annotorious-react.es8.js";
10
+ import { OpenSeadragonAnnotator as K, OpenSeadragonAnnotatorContext as L, useViewer as M } from "./annotorious-react.es9.js";
11
11
  import { OpenSeadragonHoverTooltip as Q } from "./annotorious-react.es10.js";
12
12
  import { OpenSeadragonViewer as X } from "./annotorious-react.es11.js";
13
13
  export {
@@ -16,9 +16,9 @@ export {
16
16
  x as AnnotoriousPlugin,
17
17
  d as ImageAnnotationPopup,
18
18
  I as ImageAnnotator,
19
- M as OpenSeadragonAnnotationPopup,
20
- E as OpenSeadragonAnnotator,
21
- J as OpenSeadragonAnnotatorContext,
19
+ E as OpenSeadragonAnnotationPopup,
20
+ K as OpenSeadragonAnnotator,
21
+ L as OpenSeadragonAnnotatorContext,
22
22
  Q as OpenSeadragonHoverTooltip,
23
23
  X as OpenSeadragonViewer,
24
24
  y as Origin,
@@ -46,7 +46,7 @@ export {
46
46
  A as useAnnotatorUser,
47
47
  S as useHover,
48
48
  l as useSelection,
49
- K as useViewer,
49
+ M as useViewer,
50
50
  g as useViewportState
51
51
  };
52
52
  //# sourceMappingURL=annotorious-react.es.js.map
@@ -2,7 +2,7 @@ import { jsx as h } from "react/jsx-runtime";
2
2
  import { useMemo as S, useState as m, useEffect as g } from "react";
3
3
  import { createPortal as y } from "react-dom";
4
4
  import { useAnnotator as A, useSelection as F } from "./annotorious-react.es2.js";
5
- import { useViewer as H } from "./annotorious-react.es8.js";
5
+ import { useViewer as H } from "./annotorious-react.es9.js";
6
6
  const l = 10, w = (n) => {
7
7
  const a = n.offsetX || l, v = n.offsetY || l, o = A(), r = F(), p = S(() => r.selected.length > 0, [r]), t = H(), [s, u] = m(), [i, c] = m();
8
8
  return g(() => {
@@ -2,7 +2,7 @@ import { jsx as y } from "react/jsx-runtime";
2
2
  import { forwardRef as C, useRef as p, useContext as O, useLayoutEffect as w, useImperativeHandle as R } from "react";
3
3
  import g from "openseadragon";
4
4
  import { dequal as m } from "./annotorious-react.es12.js";
5
- import { OpenSeadragonAnnotatorContext as h } from "./annotorious-react.es8.js";
5
+ import { OpenSeadragonAnnotatorContext as h } from "./annotorious-react.es9.js";
6
6
  const x = (c, f) => {
7
7
  if (!c) return !1;
8
8
  const { tileSources: a, ...e } = c, { tileSources: o, ...n } = f, s = !m(a, o), l = !m(e, n);