cozy-iiif 0.1.6 → 0.2.0
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/README.md +189 -9
- package/dist/Cozy.d.ts +0 -2
- package/dist/helpers/index.js +93 -0
- package/dist/index.js +238 -330
- package/package.json +2 -1
- package/src/Cozy.ts +1 -2
- package/vite.config.ts +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cozy-iiif",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.2.0",
|
4
4
|
"description": "A developer-friendly collection of abstractions and utilities built on top of @iiif/presentation-3 and @iiif/parser",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Rainer Simon",
|
@@ -24,6 +24,7 @@
|
|
24
24
|
},
|
25
25
|
"exports": {
|
26
26
|
".": "./dist/index.js",
|
27
|
+
"./helpers": "./dist/helpers/index.js",
|
27
28
|
"./level-0": "./dist/level-0/index.js"
|
28
29
|
},
|
29
30
|
"devDependencies": {
|
package/src/Cozy.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { Canvas, Collection, Manifest, Range } from '@iiif/presentation-3';
|
2
2
|
import { convertPresentation2 } from '@iiif/parser/presentation-2';
|
3
3
|
import { Traverse } from '@iiif/parser';
|
4
|
-
import * as Helpers from './helpers';
|
5
4
|
import {
|
6
5
|
getImages,
|
7
6
|
getLabel,
|
@@ -261,4 +260,4 @@ const parseImageResource = (resource: any) => {
|
|
261
260
|
}
|
262
261
|
}
|
263
262
|
|
264
|
-
export const Cozy = { parse, parseURL
|
263
|
+
export const Cozy = { parse, parseURL };
|
package/vite.config.ts
CHANGED