@htmlbricks/hb-downloader 0.71.35 → 0.71.37

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/manifest.json CHANGED
@@ -29,25 +29,7 @@
29
29
  "downloaded": {
30
30
  "type": "boolean"
31
31
  },
32
- "error": {
33
- "additionalProperties": false,
34
- "properties": {
35
- "message": {
36
- "type": "string"
37
- },
38
- "name": {
39
- "type": "string"
40
- },
41
- "stack": {
42
- "type": "string"
43
- }
44
- },
45
- "required": [
46
- "name",
47
- "message"
48
- ],
49
- "type": "object"
50
- },
32
+ "error": {},
51
33
  "id": {
52
34
  "type": "string"
53
35
  }
@@ -170,6 +152,18 @@
170
152
  "valueType": "color",
171
153
  "defaultValue": "#ededed",
172
154
  "description": "Progress track background."
155
+ },
156
+ {
157
+ "name": "--bulma-text",
158
+ "valueType": "color",
159
+ "defaultValue": "#363636",
160
+ "description": "Percentage label color below the bar (when total size is known)."
161
+ },
162
+ {
163
+ "name": "--bulma-block-spacing",
164
+ "valueType": "number",
165
+ "defaultValue": "1rem",
166
+ "description": "Vertical spacing above the percentage label."
173
167
  }
174
168
  ],
175
169
  "parts": []
@@ -178,7 +172,7 @@
178
172
  "htmlSlots": [
179
173
  {
180
174
  "name": "title",
181
- "description": ""
175
+ "description": "Dialog title projected into the inner `hb-dialog` (default “Downloading”)."
182
176
  }
183
177
  ],
184
178
  "i18n": [],
@@ -218,7 +212,7 @@
218
212
  }
219
213
  }
220
214
  ],
221
- "iifeIntegrity": "sha384-eNtrp16UcwE6BL7G0c6P/jMm15CLDX0kr94z3EIdxTbRhTCrSX2PW2yEmlBRVBEK",
215
+ "iifeIntegrity": "sha384-WaRbuk4wQic62ENhpphTnfWHm1AvCSIJQ2RizVKC7orCV0dM25fbyNdpYEnUn4C3",
222
216
  "dependencies": [
223
217
  {
224
218
  "name": "hb-dialog",
@@ -244,5 +238,5 @@
244
238
  "size": {},
245
239
  "iifePath": "main.iife.js",
246
240
  "repoName": "@htmlbricks/hb-downloader",
247
- "version": "0.71.35"
241
+ "version": "0.71.37"
248
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-downloader",
3
- "version": "0.71.35",
3
+ "version": "0.71.37",
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": [
@@ -12,7 +12,7 @@ export type Component = {
12
12
  };
13
13
 
14
14
  export type Events = {
15
- downloadError: { downloaded: boolean; id: string; error: Error };
15
+ downloadError: { downloaded: boolean; id: string; error: unknown };
16
16
  downloadComplete: { downloaded: boolean; id: string };
17
17
  modalShow: { id: string; show: boolean };
18
18
  };
@@ -27,25 +27,7 @@
27
27
  "downloaded": {
28
28
  "type": "boolean"
29
29
  },
30
- "error": {
31
- "additionalProperties": false,
32
- "properties": {
33
- "message": {
34
- "type": "string"
35
- },
36
- "name": {
37
- "type": "string"
38
- },
39
- "stack": {
40
- "type": "string"
41
- }
42
- },
43
- "required": [
44
- "name",
45
- "message"
46
- ],
47
- "type": "object"
48
- },
30
+ "error": {},
49
31
  "id": {
50
32
  "type": "string"
51
33
  }