Skip to content

Commit 435284f

Browse files
committed
Add LocalUserStoreAdapter to default export
1 parent 6dc5613 commit 435284f

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "pdf-annotate.js",
3-
"version": "19.04.0",
2+
"name": "@submitty/pdf-annotate.js",
3+
"version": "2.0.2",
44
"description": "Annotation layer for pdf.js",
55
"main": "index.js",
66
"scripts": {
@@ -67,5 +67,13 @@
6767
"dependencies": {
6868
"create-stylesheet": "^0.3.0",
6969
"object-assign": "^4.1.1"
70-
}
70+
},
71+
"files": [
72+
"dist",
73+
"src",
74+
"index.js",
75+
"LICENSE.md",
76+
"README.md",
77+
"webpack.config.js"
78+
]
7179
}

src/PDFJSAnnotate.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import StoreAdapter from './adapter/StoreAdapter';
22
import LocalStoreAdapter from './adapter/LocalStoreAdapter';
3+
import LocalUserStoreAdapter from './adapter/LocalUserStoreAdapter';
34
import render from './render';
45
import UI from './UI';
56
import config from './config';
@@ -26,6 +27,12 @@ export default {
2627
*/
2728
LocalStoreAdapter,
2829

30+
/**
31+
* Implementation of StoreAdapter that stores annotation data to localStorage particular
32+
* to a specific user
33+
*/
34+
LocalUserStoreAdapter,
35+
2936
/**
3037
* Abstract instance of StoreAdapter
3138
*/

0 commit comments

Comments
 (0)