nicklabs-ui 1.0.78 → 1.0.79

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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A Vue 3 component library with glassmorphism design, built for modern web applications.
4
4
 
5
- **Version**: 1.0.73 | **Framework**: Vue 3.5+
5
+ **Version**: 1.0.79 | **Framework**: Vue 3.5+
6
6
 
7
7
  ---
8
8
 
@@ -561,6 +561,7 @@ A card-grid image uploader with drag-and-drop, multi-file support, automatic res
561
561
  | `showCount` | `boolean` | `false` | Show a count chip next to the title |
562
562
  | `emptyTitle` | `string` | `"將圖片拖放到這裡"` | Empty-state heading |
563
563
  | `emptyHint` | `string` | `"或點擊以選擇檔案 · 支援 JPG / PNG / WebP / GIF,可一次多張"` | Empty-state sub-text |
564
+ | `autoRevoke` | `boolean` | `true` | Revoke the component-created object URLs on unmount. Set `false` to keep the URLs alive and take over their lifecycle in the parent (you must then call `URL.revokeObjectURL` yourself) |
564
565
 
565
566
  **Events**
566
567
 
@@ -611,7 +612,7 @@ async function upload() {
611
612
  </script>
612
613
  ```
613
614
 
614
- > `width` / `height` are probed asynchronously after a file is added and written back into the item. The component creates object URLs for previews and revokes them on removal and unmount automatically.
615
+ > `width` / `height` are probed asynchronously after a file is added and written back into the item. The component creates object URLs for previews and revokes them on removal automatically, and on unmount too unless `autoRevoke` is `false` — in which case the parent owns the URLs and must revoke them.
615
616
 
616
617
  ---
617
618
 
@@ -634,6 +635,7 @@ A card-grid video uploader. Same interaction model as [NImageSelect](#nimagesele
634
635
  | `showCount` | `boolean` | `false` | Show a count chip next to the title |
635
636
  | `emptyTitle` | `string` | `"將影片拖放到這裡"` | Empty-state heading |
636
637
  | `emptyHint` | `string` | `"或點擊以選擇檔案 · 支援 MP4 / MOV / WebM,可一次多支"` | Empty-state sub-text |
638
+ | `autoRevoke` | `boolean` | `true` | Revoke the component-created object URLs on unmount. Set `false` to keep the URLs alive and take over their lifecycle in the parent (you must then call `URL.revokeObjectURL` yourself) |
637
639
 
638
640
  **Events**
639
641
 
@@ -686,6 +688,7 @@ An audio uploader that decodes each file with the Web Audio API to render a wave
686
688
  | `showCount` | `boolean` | `false` | Show a count chip next to the title |
687
689
  | `emptyTitle` | `string` | `"將音訊拖放到這裡"` | Empty-state heading |
688
690
  | `emptyHint` | `string` | `"或點擊以選擇檔案 · 支援 MP3 / WAV / OGG / M4A,可一次多首"` | Empty-state sub-text |
691
+ | `autoRevoke` | `boolean` | `true` | Revoke the component-created object URLs on unmount. Set `false` to keep the URLs alive and take over their lifecycle in the parent (you must then call `URL.revokeObjectURL` yourself) |
689
692
 
690
693
  **Events**
691
694
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nicklabs-ui",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",