From 435284f8f587aae20f67c1657e4f80b2f72bcdfb Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Sat, 11 May 2019 22:31:14 -0400 Subject: [PATCH] Add LocalUserStoreAdapter to default export --- package-lock.json | 4 ++-- package.json | 14 +++++++++++--- src/PDFJSAnnotate.js | 7 +++++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 64d602a8..115568fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "pdf-annotate.js", - "version": "19.04.0", + "name": "@submitty/pdf-annotate.js", + "version": "2.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f9b43820..d26bfb6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "pdf-annotate.js", - "version": "19.04.0", + "name": "@submitty/pdf-annotate.js", + "version": "2.0.2", "description": "Annotation layer for pdf.js", "main": "index.js", "scripts": { @@ -67,5 +67,13 @@ "dependencies": { "create-stylesheet": "^0.3.0", "object-assign": "^4.1.1" - } + }, + "files": [ + "dist", + "src", + "index.js", + "LICENSE.md", + "README.md", + "webpack.config.js" + ] } diff --git a/src/PDFJSAnnotate.js b/src/PDFJSAnnotate.js index 160f629b..39016cda 100644 --- a/src/PDFJSAnnotate.js +++ b/src/PDFJSAnnotate.js @@ -1,5 +1,6 @@ import StoreAdapter from './adapter/StoreAdapter'; import LocalStoreAdapter from './adapter/LocalStoreAdapter'; +import LocalUserStoreAdapter from './adapter/LocalUserStoreAdapter'; import render from './render'; import UI from './UI'; import config from './config'; @@ -26,6 +27,12 @@ export default { */ LocalStoreAdapter, + /** + * Implementation of StoreAdapter that stores annotation data to localStorage particular + * to a specific user + */ + LocalUserStoreAdapter, + /** * Abstract instance of StoreAdapter */