@v1nt1248/3nclient-lib 0.2.16 → 0.2.18

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.
@@ -0,0 +1 @@
1
+ export declare function fileToUint8Array(file: File): Promise<Uint8Array | undefined | null>;
@@ -1 +1,4 @@
1
- export declare function isFileImage(type: string, fullName?: string): boolean;
1
+ export declare function isFileImage({ type, fullName }: {
2
+ type?: string;
3
+ fullName?: string;
4
+ }): boolean;
@@ -1 +1,4 @@
1
- export declare function isFileVideo(type: string, fullName?: string): boolean;
1
+ export declare function isFileVideo({ type, fullName }: {
2
+ type?: string;
3
+ fullName?: string;
4
+ }): boolean;
@@ -0,0 +1 @@
1
+ export declare const mimeTypes: Record<string, string>;
@@ -1,2 +1,3 @@
1
1
  export declare function getDeliveryErrors(progress: web3n.asmail.DeliveryProgress): Record<string, string>;
2
2
  export declare function transformFileToWeb3NFile(file: File): Promise<web3n.files.File | undefined>;
3
+ export declare function transformWeb3nFileToFile(file: web3n.files.File): Promise<File | null>;
@@ -22,6 +22,8 @@ export * from './files/blob-to-b64';
22
22
  export * from './files/b64-to-blob';
23
23
  export * from './files/uint8-to-b64';
24
24
  export * from './files/resize-image';
25
+ export * from './files/file-to-uint8array';
25
26
  export * from './files/create-video-thumbnail';
27
+ export * from './files/mime-types';
26
28
  export { SQLiteOn3NStorage } from './sqlite-on-3nstorage';
27
29
  export type { BindParams, Database, QueryExecResult } from './sqlite-on-3nstorage';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.2.16",
5
+ "version": "0.2.18",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -35,6 +35,7 @@ import type {
35
35
  Ui3nTableSlots,
36
36
  Ui3nTableProps,
37
37
  Ui3nTableEmits,
38
+ Ui3nTableExpose,
38
39
  } from './ui3n-table/types';
39
40
  import Ui3nDialog from './ui3n-dialog/ui3n-dialog.vue';
40
41
  import type {
@@ -140,6 +141,7 @@ export {
140
141
  Ui3nTableSlots,
141
142
  Ui3nTableProps,
142
143
  Ui3nTableEmits,
144
+ Ui3nTableExpose,
143
145
  Ui3nDialog,
144
146
  Ui3nDialogComponentProps,
145
147
  Ui3nDialogComponentEmits,