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

@annotorious/core

Package Overview
Dependencies
Maintainers
0
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotorious/core - npm Package Compare versions

Comparing version 3.0.0-rc.31 to 3.0.0-rc.32

26

dist/annotorious-core.es.js

@@ -22,3 +22,3 @@ var M = Object.prototype.hasOwnProperty;

}
function z() {
function V() {
}

@@ -29,3 +29,3 @@ function H(e, n) {

const k = [];
function Y(e, n = z) {
function Y(e, n = V) {
let t;

@@ -48,5 +48,5 @@ const o = /* @__PURE__ */ new Set();

}
function w(b, y = z) {
function w(b, y = V) {
const p = [b, y];
return o.add(p), o.size === 1 && (t = n(d, f) || z), b(e), () => {
return o.add(p), o.size === 1 && (t = n(d, f) || V), b(e), () => {
o.delete(p), o.size === 0 && t && (t(), t = null);

@@ -75,7 +75,9 @@ };

var F = /* @__PURE__ */ ((e) => (e.EDIT = "EDIT", e.SELECT = "SELECT", e.NONE = "NONE", e))(F || {});
const V = { selected: [] }, Ue = (e, n = "EDIT") => {
const { subscribe: t, set: o } = Y(V);
let d = n, f = V;
const $ = { selected: [] }, Ue = (e, n = "EDIT") => {
const { subscribe: t, set: o } = Y($);
let d = n, f = $;
t((m) => f = m);
const w = () => o(V), b = () => {
const w = () => {
B(f, $) || o($);
}, b = () => {
var m;

@@ -142,7 +144,7 @@ return ((m = f.selected) == null ? void 0 : m.length) === 0;

}
var $, Q = new Uint8Array(16);
var z, Q = new Uint8Array(16);
function X() {
if (!$ && ($ = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !$))
if (!z && (z = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !z))
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
return $(Q);
return z(Q);
}

@@ -783,3 +785,3 @@ var Z = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);

Se as createBody,
ve as createDefaultAppearenceProvider,
ve as createDefaultAppearanceProvider,
Ce as createHoverState,

@@ -786,0 +788,0 @@ Be as createLifecycleObserver,

import { Annotation, AnnotatorState, FormatAdapter } from '../model';
import { UndoStack } from '../state';
import { LifecycleEvents } from './LifecycleEvents';
export type Lifecycle<I extends Annotation, E extends unknown> = ReturnType<typeof createLifecycleObserver<I, E>>;

@@ -6,0 +5,0 @@ export declare const createLifecycleObserver: <I extends Annotation, E extends unknown>(state: AnnotatorState<I>, undoStack: UndoStack<I>, adapter?: FormatAdapter<I, E>, autoSave?: boolean) => {

import { Annotation } from '../model';
export interface LifecycleEvents<T extends unknown = Annotation> {

@@ -4,0 +3,0 @@ clickAnnotation: (annotation: T, originalEvent: PointerEvent) => void;

import { User } from './User';
export interface Annotation {

@@ -4,0 +3,0 @@ id: string;

@@ -9,3 +9,2 @@ import { Annotation } from './Annotation';

import { Filter } from './Filter';
/**

@@ -12,0 +11,0 @@ * Base annotator interface

import { Annotation } from './Annotation';
import { AnnotationState } from './AnnotationState';
type RGB = `rgb(${number}, ${number}, ${number})`;

@@ -5,0 +4,0 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;

import { Annotation } from './Annotation';
export type Filter<T extends Annotation = Annotation> = (annotation: T) => boolean;
//# sourceMappingURL=Filter.d.ts.map
import { Annotation } from './Annotation';
export interface FormatAdapter<A extends Annotation, T extends unknown> {

@@ -4,0 +3,0 @@ parse(serialized: T): ParseResult<A>;

import { AnnotationBody } from './Annotation';
export interface W3CAnnotation {

@@ -4,0 +3,0 @@ '@context': 'http://www.w3.org/ns/anno.jsonld';

import { User } from '../model/User';
import { Appearance } from './Appearance';
import { PresentUser } from './PresentUser';
export interface AppearanceProvider {

@@ -13,3 +12,3 @@ addUser(presenceKey: string, user: User): Appearance;

};
export declare const createDefaultAppearenceProvider: () => {
export declare const createDefaultAppearanceProvider: () => {
addUser: (presenceKey: string, user: User) => Appearance;

@@ -16,0 +15,0 @@ removeUser: (user: PresentUser) => number;

import { PresentUser } from './PresentUser';
export interface PresenceEvents {

@@ -4,0 +3,0 @@ presence: (users: PresentUser[]) => void;

import { PresenceEvents } from './PresenceEvents';
export interface PresenceProvider {

@@ -4,0 +3,0 @@ on<E extends keyof PresenceEvents>(event: E, callback: PresenceEvents[E]): void;

@@ -6,3 +6,2 @@ import { Unsubscribe } from 'nanoevents';

import { AppearanceProvider } from './AppearanceProvider';
export interface PresenceState {

@@ -9,0 +8,0 @@ getPresentUsers(): PresentUser[];

import { User } from '../model/User';
import { Appearance } from './Appearance';
export interface PresentUser extends User {

@@ -5,0 +4,0 @@ presenceKey: string;

import { Annotation } from '../model';
import { Store } from './Store';
export type HoverState<T extends Annotation> = ReturnType<typeof createHoverState<T>>;

@@ -5,0 +4,0 @@ export declare const createHoverState: <T extends Annotation>(store: Store<T>) => {

import { Annotation } from '../model';
import { Store } from './Store';
export interface Selection {

@@ -5,0 +4,0 @@ selected: {

import { Annotation } from '../model';
import { Origin, StoreChangeEvent, StoreObserveOptions } from './StoreObserver';
type AnnotationBodyIdentifier = {

@@ -5,0 +4,0 @@ id: string;

import { Annotation, AnnotationBody, AnnotationTarget } from '../model/Annotation';
/** Interface for listening to changes in the annotation store **/

@@ -4,0 +3,0 @@ export interface StoreObserver<T extends Annotation> {

import { Annotation, Annotator, AnnotatorState } from '../model';
import { Store } from './Store';
type Subscriber<T extends Annotation> = (annotation: T[]) => void;

@@ -5,0 +4,0 @@ export interface SvelteStore<T extends Annotation> extends Store<T> {

@@ -5,3 +5,2 @@ import { Unsubscribe } from 'nanoevents';

import { ChangeSet } from './StoreObserver';
export interface UndoStack<T extends Annotation> {

@@ -8,0 +7,0 @@ canRedo(): boolean;

import { Annotation, AnnotationBody } from '../model/Annotation';
import { User } from '../model/User';
/**

@@ -5,0 +4,0 @@ * Returns all users listed as creators or updaters in any parts of this

import { Update } from '../state/StoreObserver';
import { Annotation } from '../model/Annotation';
export declare const diffAnnotations: <T extends Annotation = Annotation>(oldValue: T, newValue: T) => Update<T>;
//# sourceMappingURL=diffAnnotations.d.ts.map
{
"name": "@annotorious/core",
"version": "3.0.0-rc.31",
"version": "3.0.0-rc.32",
"description": "Annotorious core types and functions",

@@ -28,12 +28,12 @@ "author": "Rainer Simon",

"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tsconfig/svelte": "^5.0.4",
"@types/deep-equal": "^1.0.4",
"@types/uuid": "^10.0.0",
"svelte": "^4.2.18",
"svelte": "^4.2.19",
"svelte-preprocess": "^6.0.2",
"typescript": "5.5.3",
"vite": "^5.3.5",
"vite-plugin-dts": "^3.9.1",
"vitest": "^2.0.4"
"typescript": "5.5.4",
"vite": "^5.4.2",
"vite-plugin-dts": "^4.0.3",
"vitest": "^2.0.5"
},

@@ -40,0 +40,0 @@ "dependencies": {

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