asma-doc-viewer 1.0.3 → 1.0.6

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.
@@ -1,8 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
3
6
  <component name="ChangeListManager">
4
7
  <list default="true" id="2420ee6f-9c38-476f-82bf-3c5a7aca550a" name="Changes" comment="">
5
- <change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
8
+ <change afterPath="$PROJECT_DIR$/tsconfig-npm.json" afterDir="false" />
6
9
  </list>
7
10
  <option name="SHOW_DIALOG" value="false" />
8
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -14,28 +17,32 @@
14
17
  </component>
15
18
  <component name="Git.Settings">
16
19
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
20
+ <option name="RESET_MODE" value="HARD" />
17
21
  </component>
22
+ <component name="GitLabMergeRequestsSettings"><![CDATA[{}]]></component>
23
+ <component name="GithubPullRequestsUISettings"><![CDATA[{}]]></component>
24
+ <component name="KubernetesApiProvider"><![CDATA[{}]]></component>
18
25
  <component name="MarkdownSettingsMigration">
19
26
  <option name="stateVersion" value="1" />
20
27
  </component>
28
+ <component name="ProjectColorInfo"><![CDATA[{}]]></component>
21
29
  <component name="ProjectId" id="25ENHDhJCwOrfTBlC0Ap5oFVrBf" />
22
30
  <component name="ProjectViewState">
23
31
  <option name="hideEmptyMiddlePackages" value="true" />
24
32
  <option name="showLibraryContents" value="true" />
25
33
  </component>
26
- <component name="PropertiesComponent">
27
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
28
- <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
29
- <property name="WebServerToolWindowFactoryState" value="false" />
30
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
31
- <property name="node.js.detected.package.eslint" value="true" />
32
- <property name="node.js.selected.package.eslint" value="(autodetect)" />
33
- <property name="nodejs_package_manager_path" value="yarn" />
34
- <property name="project.structure.last.edited" value="Project" />
35
- <property name="project.structure.proportion" value="0.0" />
36
- <property name="project.structure.side.proportion" value="0.0" />
37
- <property name="settings.editor.selected.configurable" value="Settings.Markdown" />
38
- <property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
34
+ <component name="PropertiesComponent"><![CDATA[{
35
+ "keyToString": {
36
+ "git-widget-placeholder": "feat/ASMA-2845-new-api-webp",
37
+ "last_opened_file_path": "/Users/utopiaeh/Developer/carasent/srv/doc-viewer/src/plugins",
38
+ "node.js.selected.package.tslint": "(autodetect)",
39
+ "ts.external.directory.path": "/Users/utopiaeh/Developer/carasent/srv/doc-viewer/node_modules/typescript/lib"
40
+ }
41
+ }]]></component>
42
+ <component name="RecentsManager">
43
+ <key name="CopyFile.RECENT_KEYS">
44
+ <recent name="$PROJECT_DIR$/src/plugins" />
45
+ </key>
39
46
  </component>
40
47
  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
41
48
  <component name="TaskManager">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asma-doc-viewer",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "test",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -11,6 +11,7 @@
11
11
  "types": "build/index.d.ts",
12
12
  "dependencies": {
13
13
  "pdfjs-dist": "2.4.456",
14
+ "print-js": "^1.6.0",
14
15
  "react-pdf": "5.0.0",
15
16
  "styled-components": "^5.3.5"
16
17
  },
@@ -29,22 +30,7 @@
29
30
  "react": "^18.0.14",
30
31
  "react-dom": "^18.0.14",
31
32
  "react-scripts": "5.0.1",
32
- "typescript": "^4.7.4"
33
- },
34
- "scripts": {
35
- "start": "react-scripts start",
36
- "build": "rm -rf build && tsc -p tsconfig-npm.json",
37
- "test": "react-scripts test",
38
- "eject": "react-scripts eject",
39
- "version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post",
40
- "version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post",
41
- "version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post",
42
- "version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi",
43
- "version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'",
44
- "version:post": "git push origin master && git push origin master --tags",
45
- "build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch",
46
- "build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor",
47
- "build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major"
33
+ "typescript": "^5.1.6"
48
34
  },
49
35
  "eslintConfig": {
50
36
  "extends": "react-app"
@@ -60,5 +46,20 @@
60
46
  "last 1 firefox version",
61
47
  "last 1 safari version"
62
48
  ]
49
+ },
50
+ "scripts": {
51
+ "start": "react-scripts start",
52
+ "build": "rm -rf build -p tsconfig-npm.json",
53
+ "test": "react-scripts test",
54
+ "eject": "react-scripts eject",
55
+ "version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post",
56
+ "version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post",
57
+ "version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post",
58
+ "version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi",
59
+ "version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'",
60
+ "version:post": "git push origin master && git push origin master --tags",
61
+ "build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch",
62
+ "build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor",
63
+ "build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major"
63
64
  }
64
- }
65
+ }
package/CHANGELOG.md DELETED
@@ -1,293 +0,0 @@
1
- #### 0.1.5 (2020-10-29)
2
-
3
- ##### Bug Fixes
4
-
5
- * **TIFFRenderer file Corrupt:** Don't crash if parseTIFF fails because of corrupted file. ([30755e57](https://github.com/Alcumus/react-doc-viewer/commit/30755e57ec0bef8a665ce1c6f9e8f93c4ada55dc))
6
-
7
- #### 0.1.4 (2020-10-29)
8
-
9
- ##### Bug Fixes
10
-
11
- * **TIFFRenderer crash:** If parseTiff is supplied with an undefined tiffArrayBuffer. Return out. ([eedeac1e](https://github.com/Alcumus/react-doc-viewer/commit/eedeac1e0deada4126e77058d5c52b1ed92f200f))
12
-
13
- #### 0.1.3 (2020-10-29)
14
-
15
- ##### New Features
16
-
17
- * **TIF:** Added .tif as an option to render within TIFFRenderer. ([a32f9b0f](https://github.com/Alcumus/react-doc-viewer/commit/a32f9b0ffff1a0a37d14a6dd948e1d0f52ffe6c6))
18
-
19
- ##### Other Changes
20
-
21
- * fix/pptx ([60c27812](https://github.com/Alcumus/react-doc-viewer/commit/60c27812f658d4edf4a7cc1673c26a95b838eca1))
22
-
23
- #### 0.1.2 (2020-10-26)
24
-
25
- ##### Bug Fixes
26
-
27
- * Added github url to npm package ([b713957f](https://github.com/Alcumus/react-doc-viewer/commit/b713957fef42e896ab45d99a3127a59e98a11e60))
28
-
29
- #### 0.1.1 (2020-10-26)
30
-
31
- ##### New Features
32
-
33
- * **FileName Header:**
34
- * decodeURI when rendering fileName in header title (79c0da83)
35
- * When rendering fileName in header, remove url params unless requested to keep (109da8d7)
36
-
37
- #### 0.0.43 (2020-09-30)
38
-
39
- ##### New Features
40
-
41
- * **Combine File Loaders:** File Loaders duplicate code combined, also base64 and arrayBuffer combined into fileData (#47) (f3fd9952)
42
-
43
- #### 0.0.42 (2020-09-30)
44
-
45
- ##### Documentation Changes
46
-
47
- * README - styled component example is missing a closing bracket after DocViewer Fixes #31 (da0a40ee)
48
-
49
- ##### New Features
50
-
51
- * BMP Image renderer added (2e8578b1)
52
- * Internal ImageProxyRenderer created, that can be used by all other Image renderers, and styled by them (dc2afb71)
53
-
54
- ##### Other Changes
55
-
56
- * Alcumus/react-doc-viewer into develop (2184d46c)
57
- * mattmogford-alcumus/40_Create-HTMLRenderer (9eff64e2)
58
-
59
- #### 0.0.41 (2020-09-25)
60
-
61
- #### 0.0.40 (2020-09-24)
62
-
63
- ##### Documentation Changes
64
-
65
- * README - styled component example is missing a closing bracket after DocViewer Fixes #31 (7964c0b9)
66
-
67
- ##### New Features
68
-
69
- * BMP Image renderer added (2cb03e4c)
70
- * Internal ImageProxyRenderer created, that can be used by all other Image renderers, and styled by them (90e575da)
71
-
72
- #### 0.0.39 (2020-09-23)
73
-
74
- ##### Documentation Changes
75
-
76
- * README updated (819acb5b)
77
-
78
- #### 0.0.38 (2020-09-23)
79
-
80
- ##### New Features
81
-
82
- * Added renderer for .msg file extension (b4cf7bf4)
83
- * useDocumentLoader hook now allows use of custom fileLoaders. e.g. bse64, ArrayBuffer (ebc9a454)
84
-
85
- #### 0.0.37 (2020-09-18)
86
-
87
- ##### Other Changes
88
-
89
- * mattmogford-alcumus/issue29 (35ea44eb)
90
-
91
- #### 0.0.36 (2020-09-17)
92
-
93
- #### 0.0.35 (2020-09-17)
94
-
95
- #### 0.0.34 (2020-09-16)
96
-
97
- ##### Bug Fixes
98
-
99
- * Document fetches header even if file type is supplied (b5296d0f)
100
-
101
- #### 0.0.33 (2020-09-16)
102
-
103
- ##### Other Changes
104
-
105
- * develop (66cd5676)
106
- * mattmogford-alcumus/issue19 (f8f16bc1)
107
-
108
- #### 0.0.32 (2020-09-03)
109
-
110
- ##### Chores
111
-
112
- * Added default height to loading container (e5570741)
113
-
114
- ##### New Features
115
-
116
- * pluginRenderers are now passed directly to the main state context, and the correct renderer is retrieved from there depending on it's fileType associations (4c7abfd3)
117
-
118
- ##### Bug Fixes
119
-
120
- * Changed Button to actual <button> from <a> to prevent annoying text selection bug (25dc93eb)
121
- * Abort fetch of file when new file is selected mid fetch. Also display loading spinner (db440e66)
122
-
123
- ##### Tests
124
-
125
- * Updated test snapshot (7660907f)
126
-
127
- #### 0.0.31 (2020-09-02)
128
-
129
- ##### Chores
130
-
131
- * Removed unused css file (485f15b3)
132
-
133
- ##### New Features
134
-
135
- * Removed FontAwesome and included replacement svgs, which are resizable and colourable (7c7c3fca)
136
-
137
- ##### Bug Fixes
138
-
139
- * IIconProps import type fixed (1e1b00c5)
140
-
141
- ##### Tests
142
-
143
- * Updated snapshots for tests (f40a5447)
144
-
145
- #### 0.0.30 (2020-09-02)
146
-
147
- ##### New Features
148
-
149
- * implemented ability to fully replace the contents of the header, but also retain access to the state and document navigation actions (2c1e3d0d)
150
-
151
- #### 0.0.29 (2020-09-01)
152
-
153
- ##### Chores
154
-
155
- * No longer require public folder (2a639dcc)
156
-
157
- #### 0.0.28 (2020-09-01)
158
-
159
- ##### Bug Fixes
160
-
161
- * Removed necessity for 2 context calls (1e9886ca)
162
-
163
- #### 0.0.27 (2020-09-01)
164
-
165
- ##### Documentation Changes
166
-
167
- * Removed Setup Demo from contents at top of README (8a8db314)
168
-
169
- #### 0.0.26 (2020-09-01)
170
-
171
- ##### Bug Fixes
172
-
173
- * Pass mainState context to CurrentRenderer for ease of use/access to loaded data, and other mainState props (98efa91c)
174
-
175
- #### 0.0.25 (2020-09-01)
176
-
177
- ##### Chores
178
-
179
- * Renamed MainContext to DocViewerContext for external plugins to import it with a less generic name (c433d438)
180
-
181
- ##### Documentation Changes
182
-
183
- * Added README info for importing and using the included individual renderers (3a87cf87)
184
-
185
- ##### Refactors
186
-
187
- * Reverting from Recoil to react state, context and reducers (ff26a49b)
188
-
189
- #### 0.0.24 (2020-08-28)
190
-
191
- #### 0.0.23 (2020-08-28)
192
-
193
- #### 0.0.22 (2020-08-28)
194
-
195
- ##### New Features
196
-
197
- * **Merge Default Plugins:** Plugins have been pulled back into the component package, Updated README to inform on updated and better way to use included and custom plugins (34bed0c7)
198
-
199
- ##### Bug Fixes
200
-
201
- * If user passes in a bad file / url and uri ends up not being useful, (ae99034f)
202
-
203
- #### 0.0.21 (2020-08-27)
204
-
205
- ##### Chores
206
-
207
- * Removed old pdf plugin dependencies (3baa9355)
208
-
209
- #### 0.0.20 (2020-08-27)
210
-
211
- #### 0.0.19 (2020-08-26)
212
-
213
- ##### Documentation Changes
214
-
215
- * README updated (39fd2b93)
216
-
217
- ##### Bug Fixes
218
-
219
- * FileType removed, as the component needs to be ambiguous to plugin renderers (fcf9e1c0)
220
-
221
- #### 0.0.18 (2020-08-26)
222
-
223
- #### 0.0.17 (2020-08-25)
224
-
225
- #### 0.0.16 (2020-08-25)
226
-
227
- #### 0.0.15 (2020-08-25)
228
-
229
- #### 0.0.14 (2020-08-25)
230
-
231
- #### 0.0.13 (2020-08-25)
232
-
233
- #### 0.0.12 (2020-08-25)
234
-
235
- ##### Chores
236
-
237
- * Tidied state atoms etc. (fbb5ede2)
238
-
239
- ##### Bug Fixes
240
-
241
- * **PDFRenderer Reset Zoom Broken:** resetZoomLevel function wasn't being called (4b3b9918)
242
-
243
- #### 0.0.12 (2020-08-25)
244
-
245
- ##### Bug Fixes
246
-
247
- * **PDFRenderer Reset Zoom Broken:** resetZoomLevel function wasn't being called (4b3b9918)
248
-
249
- #### 0.0.11 (2020-08-25)
250
-
251
- ##### Bug Fixes
252
-
253
- * sever was incorrect for build-release options (2ebe713b)
254
-
255
- ##### Tests
256
-
257
- * Added example png for testing purposes (9c3c6cf6)
258
-
259
- #### 0.0.10 (2020-08-24)
260
-
261
- #### 0.0.9 (2020-08-24)
262
-
263
- #### 0.0.8 (2020-08-24)
264
-
265
- ##### Bug Fixes
266
-
267
- * ignore index on building package, point main and types to main component file DocViewer.tsx (96f1a12f)
268
-
269
- #### 0.0.4 (2020-08-24)
270
-
271
- ##### New Features
272
-
273
- * **Versioning:** Added scripts for auto update CHANGELOG with versioning (31c31d1c)
274
-
275
- ##### Bug Fixes
276
-
277
- * config is optional and so could be undefined (596d611d)
278
-
279
- #### 0.0.3 (2020-08-24)
280
-
281
- ##### New Features
282
-
283
- - **Versioning:** Added scripts for auto update CHANGELOG with versioning (48536a0c)
284
-
285
- ##### Bug Fixes
286
-
287
- - config is optional and so could be undefined (596d611d)
288
-
289
- #### 0.0.3 (2020-08-24)
290
-
291
- ##### Bug Fixes
292
-
293
- - config is optional and so could be undefined (596d611d)