@emqx/shared-ui-utils 0.0.11 → 0.0.13

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.
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Initiates a download of a file from a given URL with the specified filename.
3
+ *
4
+ * @param url - The URL of the file to be downloaded.
5
+ * @param filename - The name of the file to be downloaded.
6
+ */
7
+ export declare const downloadFile: (url: string, filename: string) => void;
1
8
  /**
2
9
  * Creates a download link for a given Blob data with the specified filename.
3
10
  * The link is automatically clicked to initiate the download, and then removed from the document body.
package/dist/format.d.ts CHANGED
@@ -5,3 +5,4 @@
5
5
  * @throws {Error} If the input is not a non-negative number.
6
6
  */
7
7
  export declare const formatSizeUnit: (val: number) => string;
8
+ export declare const formatValueToMinUnit: (value: number, unit: string) => number;
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './objectUtils';
2
2
  export * from './jsonUtils';
3
3
  export * from './format';
4
4
  export * from './download';
5
+ export * from './useBatchSettings';