@atlaskit/media-picker 70.0.7 → 70.0.9
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 +12 -0
- package/compass.yml +3 -0
- package/dist/cjs/service/uploadServiceImpl.js +4 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/ufoExperiences.js +1 -1
- package/dist/es2019/service/uploadServiceImpl.js +3 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/ufoExperiences.js +1 -1
- package/dist/esm/service/uploadServiceImpl.js +3 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/ufoExperiences.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/compass.yml
CHANGED
|
@@ -10,6 +10,9 @@ fields:
|
|
|
10
10
|
labels:
|
|
11
11
|
- atlassian-platform
|
|
12
12
|
links:
|
|
13
|
+
- name: Root Repository
|
|
14
|
+
type: REPOSITORY
|
|
15
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
13
16
|
- name: ''
|
|
14
17
|
type: REPOSITORY
|
|
15
18
|
url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-picker/'
|
|
@@ -18,6 +18,8 @@ var _getPreviewFromImage = require("../util/getPreviewFromImage");
|
|
|
18
18
|
var _types = require("../service/types");
|
|
19
19
|
var _getPreviewFromBlob = require("../util/getPreviewFromBlob");
|
|
20
20
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
21
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
22
|
+
|
|
21
23
|
var generateTraceContext = function generateTraceContext() {
|
|
22
24
|
return {
|
|
23
25
|
traceId: (0, _mediaCommon.getRandomTelemetryId)()
|
|
@@ -205,7 +207,9 @@ var UploadServiceImpl = exports.UploadServiceImpl = /*#__PURE__*/function () {
|
|
|
205
207
|
for (i = 0; i < files.length; i++) {
|
|
206
208
|
_files$i = files[i], replaceFileId = _files$i.replaceFileId, file = _files$i.file;
|
|
207
209
|
touchFileDescriptors.push({
|
|
210
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
208
211
|
fileId: replaceFileId || (0, _v.default)(),
|
|
212
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
209
213
|
occurrenceKey: (0, _v.default)(),
|
|
210
214
|
collection: collection,
|
|
211
215
|
size: file.size,
|
|
@@ -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 = "
|
|
12
|
+
var packageVersion = "70.0.8";
|
|
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(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/media-picker";
|
|
15
|
-
var packageVersion = "
|
|
15
|
+
var packageVersion = "70.0.8";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var initExperience = function initExperience(id, componentName) {
|
|
18
18
|
if (!ufoExperience) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
3
|
import uuidV4 from 'uuid/v4';
|
|
3
4
|
import { UploadController, globalMediaEventEmitter, RequestError } from '@atlaskit/media-client';
|
|
4
5
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
@@ -133,7 +134,9 @@ export class UploadServiceImpl {
|
|
|
133
134
|
file
|
|
134
135
|
} = files[i];
|
|
135
136
|
touchFileDescriptors.push({
|
|
137
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
136
138
|
fileId: replaceFileId || uuidV4(),
|
|
139
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
137
140
|
occurrenceKey: uuidV4(),
|
|
138
141
|
collection,
|
|
139
142
|
size: file.size,
|
|
@@ -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 = "
|
|
6
|
+
const packageVersion = "70.0.8";
|
|
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 = "
|
|
5
|
+
const packageVersion = "70.0.8";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const initExperience = (id, componentName) => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -3,6 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
7
|
import uuidV4 from 'uuid/v4';
|
|
7
8
|
import { UploadController, globalMediaEventEmitter, RequestError } from '@atlaskit/media-client';
|
|
8
9
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
@@ -198,7 +199,9 @@ export var UploadServiceImpl = /*#__PURE__*/function () {
|
|
|
198
199
|
for (i = 0; i < files.length; i++) {
|
|
199
200
|
_files$i = files[i], replaceFileId = _files$i.replaceFileId, file = _files$i.file;
|
|
200
201
|
touchFileDescriptors.push({
|
|
202
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
201
203
|
fileId: replaceFileId || uuidV4(),
|
|
204
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
202
205
|
occurrenceKey: uuidV4(),
|
|
203
206
|
collection: collection,
|
|
204
207
|
size: file.size,
|
|
@@ -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 = "
|
|
6
|
+
var packageVersion = "70.0.8";
|
|
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 = "
|
|
8
|
+
var packageVersion = "70.0.8";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var initExperience = function initExperience(id, componentName) {
|
|
11
11
|
if (!ufoExperience) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "70.0.
|
|
3
|
+
"version": "70.0.9",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
33
33
|
"@atlaskit/flag": "^17.5.0",
|
|
34
|
-
"@atlaskit/icon": "^
|
|
35
|
-
"@atlaskit/media-client": "^35.
|
|
34
|
+
"@atlaskit/icon": "^29.0.0",
|
|
35
|
+
"@atlaskit/media-client": "^35.6.0",
|
|
36
36
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
37
37
|
"@atlaskit/media-common": "^12.3.0",
|
|
38
38
|
"@atlaskit/media-ui": "^28.7.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/theme": "^21.0.0",
|
|
41
|
-
"@atlaskit/tokens": "^
|
|
41
|
+
"@atlaskit/tokens": "^8.0.0",
|
|
42
42
|
"@atlaskit/ufo": "^0.4.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"eventemitter2": "^4.1.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
58
58
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
59
|
-
"@atlaskit/button": "^23.
|
|
59
|
+
"@atlaskit/button": "^23.6.0",
|
|
60
60
|
"@atlaskit/media-core": "^37.0.0",
|
|
61
61
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
62
62
|
"@atlaskit/ssr": "workspace:^",
|