@startupjs-ui/file-input 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.2](https://github.com/startupjs/startupjs-ui/compare/v0.2.1...v0.2.2) (2026-05-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **file-input:** fix typings of the files plugin ([2bf0191](https://github.com/startupjs/startupjs-ui/commit/2bf0191c7b389982f0956925f27b28e38de6427d))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.2.1](https://github.com/startupjs/startupjs-ui/compare/v0.2.0...v0.2.1) (2026-05-11)
7
18
 
8
19
 
package/files.plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CollectionSpec, Signal, SignalModelConstructor } from 'startupjs'
1
+ import { Signal, type CollectionSpec } from 'startupjs'
2
2
 
3
3
  export interface FileDoc {
4
4
  storageType: string
@@ -49,7 +49,7 @@ export interface FilesPluginServerOptions {
49
49
  transformUpload?: (context: FileUploadContext) => FileUploadTransformResult | void | Promise<FileUploadTransformResult | void>
50
50
  }
51
51
 
52
- interface FilesModel extends Signal<FileDoc[]> {
52
+ export declare class FilesModel extends Signal<FileDoc[]> {
53
53
  addNew (file: Omit<FileDoc, 'createdAt' | 'updatedAt'>): Promise<string>
54
54
  getUrl (fileId: string, extension?: string): string
55
55
  getDownloadUrl (fileId: string, extension?: string): string
@@ -57,7 +57,7 @@ interface FilesModel extends Signal<FileDoc[]> {
57
57
  getDeleteUrl (fileId: string): string
58
58
  }
59
59
 
60
- interface FileModel extends Signal<FileDoc> {
60
+ export declare class FileModel extends Signal<FileDoc> {
61
61
  getUrl (): string
62
62
  getDownloadUrl (): string
63
63
  getUploadUrl (): string
@@ -65,13 +65,10 @@ interface FileModel extends Signal<FileDoc> {
65
65
  getBlob (): Promise<Blob>
66
66
  }
67
67
 
68
- type FilesModelConstructor = SignalModelConstructor<FileDoc[], FilesModel>
69
- type FileModelConstructor = SignalModelConstructor<FileDoc, FileModel>
70
-
71
68
  declare module 'teamplay' {
72
69
  interface TeamplayPluginCollections {
73
70
  '@startupjs-ui/file-input/files': {
74
- files: CollectionSpec<FileDoc, FilesModelConstructor, FileModelConstructor>
71
+ files: CollectionSpec<FileDoc, typeof FilesModel, typeof FileModel>
75
72
  }
76
73
  }
77
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/file-input",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -49,5 +49,5 @@
49
49
  "optional": true
50
50
  }
51
51
  },
52
- "gitHead": "38511829e3e4f084aecc79ae563e83286e319249"
52
+ "gitHead": "1cbacbc3c6a919fc0ce6d3e2e335bcfe18a940d8"
53
53
  }