diff --git a/package.json b/package.json index c0f1155..7f99233 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,8 @@ "dependencies": { "css-loader": "^3.6.0", "mirador": "^3.0.0-rc.4", + "mirador-annotations": "^0.3.0", + "mirador-dl-plugin": "^0.12.0", "mirador-image-tools": "^0.8.0", "parcel-bundler": "^1.12.4", "react": "^16.13.1", diff --git a/src/index.js b/src/index.js index 09a0338..0c162d4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,18 @@ import Mirador from 'mirador/dist/es/src/index'; import { miradorImageToolsPlugin } from 'mirador-image-tools'; +import MiradorDownload from 'mirador-dl-plugin'; +import MiradorDownloadDialogPlugin from 'mirador-dl-plugin'; +import miradorAnnotationPlugins from 'mirador-annotations/es/index'; +import LocalStorageAdapter from 'mirador-annotations/es/LocalStorageAdapter'; const config = { + annotation: { + adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`), + }, id: 'demo', + window: { + defaultSideBarPanel: 'annotations', + }, windows: [{ imageToolsEnabled: true, manifestId: 'https://purl.stanford.edu/sn904cj3429/iiif/manifest', @@ -18,4 +28,7 @@ const config = { Mirador.viewer(config, [ ...miradorImageToolsPlugin, + MiradorDownload.miradorDownloadPlugin, + MiradorDownload.MiradorDownloadDialogPlugin, + ...miradorAnnotationPlugins, ]);