@htmlbricks/hb-downloader 0.68.1 → 0.68.3
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.
- package/main.iife.js +1 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +30 -2
- package/package.json +1 -1
package/manifest.json
CHANGED
|
@@ -186,12 +186,40 @@
|
|
|
186
186
|
"examples": [
|
|
187
187
|
{
|
|
188
188
|
"name": "default",
|
|
189
|
+
"description": "Empty URI keeps the dialog from starting a fetch.",
|
|
189
190
|
"data": {
|
|
190
191
|
"uri": ""
|
|
191
192
|
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "sampleFile",
|
|
196
|
+
"description": "Small public asset; suitable for manual trigger in Storybook.",
|
|
197
|
+
"data": {
|
|
198
|
+
"uri": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
|
|
199
|
+
"targetfilename": "dummy.pdf",
|
|
200
|
+
"downloadid": "demo-pdf"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "withHeaders",
|
|
205
|
+
"description": "Optional request headers (e.g. auth) as a plain object.",
|
|
206
|
+
"data": {
|
|
207
|
+
"uri": "https://httpbin.org/json",
|
|
208
|
+
"headers": {
|
|
209
|
+
"Accept": "application/json"
|
|
210
|
+
},
|
|
211
|
+
"downloadid": "json-sample"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "minimalTrigger",
|
|
216
|
+
"description": "URI only; filename inferred from the response when possible.",
|
|
217
|
+
"data": {
|
|
218
|
+
"uri": "https://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html"
|
|
219
|
+
}
|
|
192
220
|
}
|
|
193
221
|
],
|
|
194
|
-
"iifeIntegrity": "sha384-
|
|
222
|
+
"iifeIntegrity": "sha384-EY+tLedqVVPLYprR4+NcbdRYmNtoEyL3jfTsRe0iP2nIKu0z77/IquSu37UVU1MF",
|
|
195
223
|
"dependencies": [
|
|
196
224
|
{
|
|
197
225
|
"name": "hb-dialog",
|
|
@@ -217,5 +245,5 @@
|
|
|
217
245
|
"size": {},
|
|
218
246
|
"iifePath": "main.iife.js",
|
|
219
247
|
"repoName": "@htmlbricks/hb-downloader",
|
|
220
|
-
"version": "0.68.
|
|
248
|
+
"version": "0.68.3"
|
|
221
249
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-downloader",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.3",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Opens `hb-dialog` while `uri` is set and downloads the resource with `XMLHttpRequest` as a blob: optional JSON `headers`, inferred or explicit `targetfilename`, `Content-Disposition` parsing when exposed by CORS, progress bar from `onprogress`, then triggers a browser file save. Dispatches `downloadComplete` or `downloadError` (with `downloadid`) and propagates `modalShow`; clears/aborts when the dialog closes.",
|
|
6
6
|
"licenses": [
|