@annotorious/core
Advanced tools
Comparing version 3.0.0-rc.29 to 3.0.0-rc.30
@@ -7,6 +7,6 @@ import { Annotation, AnnotatorState, FormatAdapter } from '../model'; | ||
export declare const createLifecycleObserver: <I extends Annotation, E extends unknown>(state: AnnotatorState<I>, undoStack: UndoStack<I>, adapter?: FormatAdapter<I, E>, autoSave?: boolean) => { | ||
on: <T extends keyof LifecycleEvents<Annotation>>(event: T, callback: LifecycleEvents<E>[T]) => void; | ||
off: <T_1 extends keyof LifecycleEvents<E>>(event: T_1, callback: LifecycleEvents<E>[T_1]) => void; | ||
on: <T extends keyof LifecycleEvents>(event: T, callback: LifecycleEvents<E>[T]) => void; | ||
off: <T extends keyof LifecycleEvents<E>>(event: T, callback: LifecycleEvents<E>[T]) => void; | ||
emit: (event: keyof LifecycleEvents<E>, arg0: I | I[], arg1?: I | PointerEvent) => void; | ||
}; | ||
//# sourceMappingURL=Lifecycle.d.ts.map |
@@ -25,3 +25,3 @@ import { User } from './User'; | ||
type?: string; | ||
purpose?: Purpose | string; | ||
purpose?: typeof PurposeValues[number] | string & {}; | ||
value?: string; | ||
@@ -33,3 +33,4 @@ creator?: User; | ||
} | ||
export type Purpose = 'assessing' | 'bookmarking' | 'classifying' | 'commenting' | 'describing' | 'editing' | 'highlighting' | 'identifying' | 'linking' | 'moderating' | 'questioning' | 'replying' | 'tagging'; | ||
declare const PurposeValues: readonly ["assessing", "bookmarking", "classifying", "commenting", "describing", "editing", "highlighting", "identifying", "linking", "moderating", "questioning", "replying", "tagging"]; | ||
export {}; | ||
//# sourceMappingURL=Annotation.d.ts.map |
@@ -22,3 +22,3 @@ import { Annotation } from '../model'; | ||
id: string; | ||
editable?: boolean | undefined; | ||
editable?: boolean; | ||
}[] | null; | ||
@@ -25,0 +25,0 @@ readonly pointerEvent: PointerEvent | null | undefined; |
@@ -11,3 +11,3 @@ import { Annotation } from '../model'; | ||
addAnnotation: (annotation: T, origin?: Origin) => void; | ||
addBody: (body: T['bodies'][number], origin?: Origin) => void; | ||
addBody: (body: T["bodies"][number], origin?: Origin) => void; | ||
all: () => T[]; | ||
@@ -18,4 +18,4 @@ bulkAddAnnotation: (annotations: T[], replace?: boolean, origin?: Origin) => void; | ||
bulkUpdateAnnotation: (annotations: T[], origin?: Origin) => void; | ||
bulkUpdateBodies: (bodies: Array<T['bodies'][number]>, origin?: Origin) => void; | ||
bulkUpdateTargets: (targets: Array<T['target']>, origin?: Origin) => void; | ||
bulkUpdateBodies: (bodies: Array<T["bodies"][number]>, origin?: Origin) => void; | ||
bulkUpdateTargets: (targets: Array<T["target"]>, origin?: Origin) => void; | ||
clear: (origin?: Origin) => void; | ||
@@ -25,3 +25,3 @@ deleteAnnotation: (annotationOrId: T | string, origin?: Origin) => void; | ||
getAnnotation: (id: string) => T | undefined; | ||
getBody: (id: string) => T['bodies'][number] | undefined; | ||
getBody: (id: string) => T["bodies"][number] | undefined; | ||
observe: (onChange: { | ||
@@ -34,6 +34,6 @@ (event: StoreChangeEvent<T>): void; | ||
updateAnnotation: (arg1: string | T, arg2?: T | Origin, arg3?: Origin) => void; | ||
updateBody: (oldBodyId: AnnotationBodyIdentifier, newBody: T['bodies'][number], origin?: Origin) => void; | ||
updateTarget: (target: T['target'], origin?: Origin) => void; | ||
updateBody: (oldBodyId: AnnotationBodyIdentifier, newBody: T["bodies"][number], origin?: Origin) => void; | ||
updateTarget: (target: T["target"], origin?: Origin) => void; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=Store.d.ts.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="svelte" /> | ||
export type ViewportState = ReturnType<typeof createViewportState>; | ||
@@ -3,0 +2,0 @@ export declare const createViewportState: () => { |
{ | ||
"name": "@annotorious/core", | ||
"version": "3.0.0-rc.29", | ||
"version": "3.0.0-rc.30", | ||
"description": "Annotorious core types and functions", | ||
@@ -31,6 +31,6 @@ "author": "Rainer Simon", | ||
"@types/deep-equal": "^1.0.4", | ||
"@types/uuid": "^9.0.8", | ||
"@types/uuid": "^10.0.0", | ||
"svelte": "^4.2.18", | ||
"svelte-preprocess": "^6.0.1", | ||
"typescript": "^5.4.5", | ||
"typescript": "^5.5.2", | ||
"vite": "^5.3.1", | ||
@@ -37,0 +37,0 @@ "vite-plugin-dts": "^3.9.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
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
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
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
178712