New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@annotorious/react

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotorious/react - npm Package Compare versions

Comparing version 3.0.18 to 3.0.19

36

dist/annotorious-react.es8.js

@@ -1,11 +0,11 @@

import { j as f } from "./annotorious-react.es11.js";
import { createContext as d, useState as m, useContext as s, useEffect as n } from "react";
import { createAnonymousGuest as S } from "@annotorious/core";
import { createOSDAnnotator as A } from "@annotorious/openseadragon";
import { AnnotoriousContext as w } from "./annotorious-react.es2.js";
const a = d({ viewer: null, setViewer: null }), b = (t) => {
const { children: x, tool: r, ...c } = t, [o, u] = m(), { anno: e, setAnno: i } = s(w);
return n(() => {
if (o != null && o.element) {
const l = A(o, c);
import { j as d } from "./annotorious-react.es11.js";
import { createContext as m, forwardRef as S, useState as w, useContext as s, useImperativeHandle as A, useEffect as n } from "react";
import { createAnonymousGuest as x } from "@annotorious/core";
import { createOSDAnnotator as g } from "@annotorious/openseadragon";
import { AnnotoriousContext as v } from "./annotorious-react.es2.js";
const a = m({ viewer: null, setViewer: null }), D = S((t, c) => {
const { children: y, tool: o, ...u } = t, [r, f] = w(), { anno: e, setAnno: i } = s(v);
return A(c, () => e, [e]), n(() => {
if (r != null && r.element) {
const l = g(r, u);
return i(l), () => {

@@ -15,3 +15,3 @@ l.destroy(), i(void 0);

}
}, [o]), n(() => {
}, [r]), n(() => {
e && e.setDrawingEnabled(t.drawingEnabled);

@@ -23,11 +23,11 @@ }, [e, t.drawingEnabled]), n(() => {

}, [e, t.style]), n(() => {
e && e.setDrawingTool(r);
}, [e, r]), n(() => {
e && e.setDrawingTool(o);
}, [e, o]), n(() => {
e && e.setModalSelect(t.modalSelect);
}, [e, t.modalSelect]), n(() => {
e && (t.user ? e.setUser(t.user) : e.setUser(S()));
e && (t.user ? e.setUser(t.user) : e.setUser(x()));
}, [e, t.user]), n(() => {
e && e.setUserSelectAction(t.userSelectAction);
}, [e, t.userSelectAction]), /* @__PURE__ */ f.jsx(a.Provider, { value: { viewer: o, setViewer: u }, children: t.children });
}, h = () => {
}, [e, t.userSelectAction]), /* @__PURE__ */ d.jsx(a.Provider, { value: { viewer: r, setViewer: f }, children: t.children });
}), O = () => {
const { viewer: t } = s(a);

@@ -37,6 +37,6 @@ return t;

export {
b as OpenSeadragonAnnotator,
D as OpenSeadragonAnnotator,
a as OpenSeadragonAnnotatorContext,
h as useViewer
O as useViewer
};
//# sourceMappingURL=annotorious-react.es8.js.map

@@ -7,3 +7,3 @@ export * from './Annotorious';

export * from './openseadragon';
export type { Annotation, AnnotationBody, AnnotationState, AnnotationTarget, Annotator, AnnotatorState, Appearance, AppearanceProvider, ChangeSet, Color, DrawingStyle, DrawingStyleExpression, Filter, FormatAdapter, HoverState, LifecycleEvents, ParseResult, PresentUser, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
export type { Annotation, AnnotationBody, AnnotationState, AnnotationTarget, Annotator, AnnotatorState, Appearance, AppearanceProvider, ChangeSet, Color, DrawingStyle, DrawingStyleExpression, Filter, FormatAdapter, History, HoverState, LifecycleEvents, ParseResult, PresentUser, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
export { createAnonymousGuest, createBody, defaultColorProvider, Origin, UserSelectAction } from '@annotorious/core';

@@ -10,0 +10,0 @@ export type { AnnotoriousOpts, DrawingMode, DrawingTool, FragmentSelector, ImageAnnotator as AnnotoriousImageAnnotator, ImageAnnotation, ImageAnnotationTarget, ImageAnnotatorState, Polygon, PolygonGeometry, Rectangle, RectangleGeometry, Shape, SVGSelector, W3CImageAnnotation, W3CImageAnnotationTarget, W3CImageFormatAdapter, W3CImageFormatAdapterOpts } from '@annotorious/annotorious';

import { ReactNode } from 'react';
import { default as OpenSeadragon } from 'openseadragon';
import { Annotation, AnnotoriousOpts, DrawingStyle, Filter, User } from '@annotorious/annotorious';
import { AnnotoriousOpenSeadragonAnnotator } from '.';
export declare const OpenSeadragonAnnotatorContext: import('react').Context<{

@@ -15,4 +16,6 @@ viewer: OpenSeadragon.Viewer;

};
export declare const OpenSeadragonAnnotator: <I extends Annotation, E extends unknown>(props: OpenSeadragonAnnotatorProps<I, E>) => import("react/jsx-runtime").JSX.Element;
export declare const OpenSeadragonAnnotator: <I extends Annotation, E extends unknown>(props: OpenSeadragonAnnotatorProps<I, E> & {
ref?: React.ForwardedRef<AnnotoriousOpenSeadragonAnnotator<I, E> | null>;
}) => React.ReactElement;
export declare const useViewer: () => OpenSeadragon.Viewer;
//# sourceMappingURL=OpenSeadragonAnnotator.d.ts.map
{
"name": "@annotorious/react",
"version": "3.0.18",
"version": "3.0.19",
"description": "Annotorious React bindings",

@@ -48,5 +48,5 @@ "author": "Rainer Simon",

"dependencies": {
"@annotorious/annotorious": "3.0.18",
"@annotorious/core": "3.0.18",
"@annotorious/openseadragon": "3.0.18",
"@annotorious/annotorious": "3.0.19",
"@annotorious/core": "3.0.19",
"@annotorious/openseadragon": "3.0.19",
"@floating-ui/react": "^0.26.28",

@@ -53,0 +53,0 @@ "zustand": "^5.0.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc