@contentful/field-editor-reference 2.20.9 → 2.20.10
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 +8 -0
- package/dist/field-editor-reference.cjs.development.js +1 -67
- package/dist/field-editor-reference.cjs.development.js.map +1 -1
- package/dist/field-editor-reference.cjs.production.min.js +1 -1
- package/dist/field-editor-reference.cjs.production.min.js.map +1 -1
- package/dist/field-editor-reference.esm.js +1 -67
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/assets/WrappedAssetCard/shortenStorageUnit.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/field-editor-reference.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "6b92d7d259ae38a330f12bd63e7819b56eecc825"
|
|
59
59
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transforms a number into a localized string (en-US)
|
|
3
|
-
* toLocaleString(1000); // "1,000"
|
|
4
|
-
* @param {Number} number
|
|
5
|
-
*/
|
|
6
|
-
export declare function toLocaleString(number: number): string;
|
|
7
|
-
declare type UnitOfMeasure = 'PB' | 'TB' | 'GB' | 'MB' | 'KB' | 'B';
|
|
8
|
-
/**
|
|
9
|
-
* Make a storage unit number more readable by making them smaller
|
|
10
|
-
* shortenStorageUnit(1000, 'GB'); // "1 TB"
|
|
11
|
-
* shortenStorageUnit(0.001, 'TB'); // "1 GB"
|
|
12
|
-
* @param value
|
|
13
|
-
* @param uom Unit of measure
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function shortenStorageUnit(value: number, uom: UnitOfMeasure): string;
|
|
17
|
-
export {};
|