Skip to content

Commit

Permalink
Add LocalUserStoreAdapter to default export
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed May 12, 2019
1 parent 6dc5613 commit 435284f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
]
}
7 changes: 7 additions & 0 deletions src/PDFJSAnnotate.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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
*/
Expand Down

0 comments on commit 435284f

Please sign in to comment.