@atlaskit/media-picker 65.1.0 → 65.1.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/.babelrc.js +7 -0
- package/CHANGELOG.md +13 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/ufoExperiences.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/uploadRejectionFlagGroup/UploadRejectionFlagGroup.js +5 -5
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/ufoExperiences.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/ufoExperiences.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -3
package/.babelrc.js
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/media-picker
|
|
2
2
|
|
|
3
|
+
## 65.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4ed8a9b7d81`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ed8a9b7d81) - Added numeric-seperator babel preset to media picker
|
|
8
|
+
|
|
9
|
+
## 65.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 65.1.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -9,7 +9,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
9
9
|
// Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
|
|
10
10
|
|
|
11
11
|
var packageName = "@atlaskit/media-picker";
|
|
12
|
-
var packageVersion = "65.1.
|
|
12
|
+
var packageVersion = "65.1.2";
|
|
13
13
|
function getPackageAttributes(componentName) {
|
|
14
14
|
return {
|
|
15
15
|
packageName: packageName,
|
|
@@ -12,7 +12,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
14
|
var packageName = "@atlaskit/media-picker";
|
|
15
|
-
var packageVersion = "65.1.
|
|
15
|
+
var packageVersion = "65.1.2";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var initExperience = function initExperience(id, componentName) {
|
|
18
18
|
if (!ufoExperience) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -25,14 +25,14 @@ const fileSizeFormatters = {
|
|
|
25
25
|
};
|
|
26
26
|
const formatFileSize = size => {
|
|
27
27
|
let formattedSize;
|
|
28
|
-
if (size <
|
|
29
|
-
formattedSize = size /
|
|
28
|
+
if (size < 1000000) {
|
|
29
|
+
formattedSize = size / 1000;
|
|
30
30
|
return fileSizeFormatters.kilobyte.format(formattedSize);
|
|
31
|
-
} else if (size >=
|
|
32
|
-
formattedSize = size /
|
|
31
|
+
} else if (size >= 1000000 && size < 1000000000) {
|
|
32
|
+
formattedSize = size / 1000000;
|
|
33
33
|
return fileSizeFormatters.megabyte.format(formattedSize);
|
|
34
34
|
} else {
|
|
35
|
-
formattedSize = size /
|
|
35
|
+
formattedSize = size / 1000000000;
|
|
36
36
|
return fileSizeFormatters.gigabyte.format(formattedSize);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
@@ -3,7 +3,7 @@ import { isRequestError } from '@atlaskit/media-client';
|
|
|
3
3
|
// Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
|
|
4
4
|
|
|
5
5
|
const packageName = "@atlaskit/media-picker";
|
|
6
|
-
const packageVersion = "65.1.
|
|
6
|
+
const packageVersion = "65.1.2";
|
|
7
7
|
export function getPackageAttributes(componentName) {
|
|
8
8
|
return {
|
|
9
9
|
packageName,
|
|
@@ -2,7 +2,7 @@ import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } fro
|
|
|
2
2
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
3
3
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
4
4
|
const packageName = "@atlaskit/media-picker";
|
|
5
|
-
const packageVersion = "65.1.
|
|
5
|
+
const packageVersion = "65.1.2";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const initExperience = (id, componentName) => {
|
|
8
8
|
if (!ufoExperience) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import { isRequestError } from '@atlaskit/media-client';
|
|
|
3
3
|
// Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
|
|
4
4
|
|
|
5
5
|
var packageName = "@atlaskit/media-picker";
|
|
6
|
-
var packageVersion = "65.1.
|
|
6
|
+
var packageVersion = "65.1.2";
|
|
7
7
|
export function getPackageAttributes(componentName) {
|
|
8
8
|
return {
|
|
9
9
|
packageName: packageName,
|
|
@@ -5,7 +5,7 @@ import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } fro
|
|
|
5
5
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
6
6
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
7
7
|
var packageName = "@atlaskit/media-picker";
|
|
8
|
-
var packageVersion = "65.1.
|
|
8
|
+
var packageVersion = "65.1.2";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var initExperience = function initExperience(id, componentName) {
|
|
11
11
|
if (!ufoExperience) {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "65.1.
|
|
3
|
+
"version": "65.1.2",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"uuid-validate": "^0.0.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/media-core": "^34.1.
|
|
55
|
+
"@atlaskit/media-core": "^34.1.2",
|
|
56
56
|
"react": "^16.8.0",
|
|
57
57
|
"react-dom": "^16.8.0",
|
|
58
58
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
63
63
|
"@atlaskit/button": "^16.7.0",
|
|
64
64
|
"@atlaskit/docs": "*",
|
|
65
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
65
|
+
"@atlaskit/dropdown-menu": "^11.9.0",
|
|
66
66
|
"@atlaskit/media-card": "^75.0.0",
|
|
67
67
|
"@atlaskit/media-core": "^34.1.0",
|
|
68
68
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"@atlaskit/toggle": "^12.6.0",
|
|
72
72
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
73
73
|
"@atlassian/ufo": "^0.2.0",
|
|
74
|
+
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
|
74
75
|
"@emotion/react": "^11.7.1",
|
|
75
76
|
"@types/enzyme": "^3.1.15",
|
|
76
77
|
"@types/react": "^16.8.0",
|