@atlaskit/media-picker 66.7.2 → 66.7.3
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 +9 -0
- package/dist/cjs/components/dropzone/dropzone.js +3 -91
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/ufoExperiences.js +1 -1
- package/dist/es2019/components/dropzone/dropzone.js +4 -70
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/ufoExperiences.js +1 -1
- package/dist/esm/components/dropzone/dropzone.js +4 -92
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/ufoExperiences.js +1 -1
- package/dist/types/components/browser/browser.d.ts +17 -1
- package/dist/types/components/clipboard/clipboard.d.ts +21 -1
- package/dist/types/components/dropzone/dropzone.d.ts +15 -5
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/components/browser/browser.d.ts +17 -1
- package/dist/types-ts4.5/components/clipboard/clipboard.d.ts +21 -1
- package/dist/types-ts4.5/components/dropzone/dropzone.d.ts +15 -5
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/media-picker
|
|
2
2
|
|
|
3
|
+
## 66.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#151581](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151581)
|
|
8
|
+
[`f1c0ae301860f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f1c0ae301860f) -
|
|
9
|
+
Cleanup media-picker folderUploads feature flag
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 66.7.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -17,8 +17,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireDefault(require("react"));
|
|
18
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
19
19
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
20
|
-
var _browser = require("@atlaskit/media-ui/browser");
|
|
21
|
-
var _flatFiles = require("flat-files");
|
|
22
20
|
var _localUploadReact = require("../localUploadReact");
|
|
23
21
|
var _analytics = require("../../util/analytics");
|
|
24
22
|
var _ErrorFlagGroup = _interopRequireDefault(require("../errorFlagGroup/ErrorFlagGroup"));
|
|
@@ -88,7 +86,7 @@ var DropzoneBase = exports.DropzoneBase = /*#__PURE__*/function (_LocalUploadCom
|
|
|
88
86
|
});
|
|
89
87
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFileDropped", /*#__PURE__*/function () {
|
|
90
88
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(dragEvent) {
|
|
91
|
-
var
|
|
89
|
+
var files;
|
|
92
90
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
93
91
|
while (1) switch (_context.prev = _context.next) {
|
|
94
92
|
case 0:
|
|
@@ -100,31 +98,12 @@ var DropzoneBase = exports.DropzoneBase = /*#__PURE__*/function (_LocalUploadCom
|
|
|
100
98
|
case 2:
|
|
101
99
|
dragEvent.preventDefault();
|
|
102
100
|
dragEvent.stopPropagation();
|
|
103
|
-
|
|
101
|
+
// refreshes uploadParams as only set once in parent constructor
|
|
104
102
|
_this.setUploadParams(_this.props.config.uploadParams);
|
|
105
|
-
/*
|
|
106
|
-
* Only enable support for folders if (1) the browser is supported (2) feature flag is enabled
|
|
107
|
-
* The file flattening library used to add support for Folders uses a function called webkitEntry.
|
|
108
|
-
* Some browser types are not supported https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries
|
|
109
|
-
*/
|
|
110
|
-
if (!((0, _browser.isWebkitSupported)() && (0, _mediaCommon.getMediaFeatureFlag)('folderUploads', featureFlags))) {
|
|
111
|
-
_context.next = 15;
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
_this.fireAnalyticsForFolders(dragEvent.dataTransfer.items);
|
|
115
|
-
_context.next = 10;
|
|
116
|
-
return _this.getFilesFromDragEvent(dragEvent.dataTransfer.items);
|
|
117
|
-
case 10:
|
|
118
|
-
flattenedDirectoryFiles = _context.sent;
|
|
119
|
-
_this.onDropFolders(flattenedDirectoryFiles.length);
|
|
120
|
-
_this.uploadService.addFiles(flattenedDirectoryFiles);
|
|
121
|
-
_context.next = 18;
|
|
122
|
-
break;
|
|
123
|
-
case 15:
|
|
124
103
|
_this.onDrop(dragEvent);
|
|
125
104
|
files = Array.from(dragEvent.dataTransfer.files);
|
|
126
105
|
_this.uploadService.addFiles(files);
|
|
127
|
-
case
|
|
106
|
+
case 8:
|
|
128
107
|
case "end":
|
|
129
108
|
return _context.stop();
|
|
130
109
|
}
|
|
@@ -134,73 +113,6 @@ var DropzoneBase = exports.DropzoneBase = /*#__PURE__*/function (_LocalUploadCom
|
|
|
134
113
|
return _ref.apply(this, arguments);
|
|
135
114
|
};
|
|
136
115
|
}());
|
|
137
|
-
/*
|
|
138
|
-
* Checks how many folders are uploaded in a single drag and drop. Then, fires an analytic event in accordance to this.
|
|
139
|
-
*/
|
|
140
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fireAnalyticsForFolders", function (items) {
|
|
141
|
-
//convert DataTransferItemList into an array of DataTransferItem(s)
|
|
142
|
-
var toArray = Array.from(items);
|
|
143
|
-
|
|
144
|
-
//function to check if a file entry is a folder
|
|
145
|
-
var hasFolder = function hasFolder(item) {
|
|
146
|
-
var _item$webkitGetAsEntr;
|
|
147
|
-
return (_item$webkitGetAsEntr = item.webkitGetAsEntry()) === null || _item$webkitGetAsEntr === void 0 ? void 0 : _item$webkitGetAsEntr.isDirectory;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
//how many folders are in a single drag and drop event
|
|
151
|
-
var folderCount = toArray.filter(function (item) {
|
|
152
|
-
return hasFolder(item);
|
|
153
|
-
}).length;
|
|
154
|
-
|
|
155
|
-
// fires analytic events if number of folders is more than 0
|
|
156
|
-
if (folderCount > 0) {
|
|
157
|
-
_this.fireAnalyticsEvent('folderDroppedInto', folderCount);
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
/*
|
|
161
|
-
* Files dropped contains a directory. Thus, flatten the directory to return an array of Files.
|
|
162
|
-
*/
|
|
163
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getFilesFromDragEvent", /*#__PURE__*/function () {
|
|
164
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(dragEventItemList) {
|
|
165
|
-
var items, fileSystemEntries, files;
|
|
166
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
167
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
168
|
-
case 0:
|
|
169
|
-
items = dragEventItemList; //If items consist of directory or directories, flatten it to grab the files only. Else, just get the files
|
|
170
|
-
_context2.next = 3;
|
|
171
|
-
return (0, _flatFiles.getFilesFromItems)(items);
|
|
172
|
-
case 3:
|
|
173
|
-
fileSystemEntries = _context2.sent;
|
|
174
|
-
_context2.next = 6;
|
|
175
|
-
return (0, _flatFiles.getFilesFromFileSystemEntries)(fileSystemEntries);
|
|
176
|
-
case 6:
|
|
177
|
-
files = _context2.sent;
|
|
178
|
-
return _context2.abrupt("return", _this.filterFilesAgainstBlacklist(files));
|
|
179
|
-
case 8:
|
|
180
|
-
case "end":
|
|
181
|
-
return _context2.stop();
|
|
182
|
-
}
|
|
183
|
-
}, _callee2);
|
|
184
|
-
}));
|
|
185
|
-
return function (_x2) {
|
|
186
|
-
return _ref2.apply(this, arguments);
|
|
187
|
-
};
|
|
188
|
-
}());
|
|
189
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "filterFilesAgainstBlacklist", function (files) {
|
|
190
|
-
// We don't want these files in our final File list
|
|
191
|
-
var blacklist = ['.DS_Store', 'thumbs.db', 'desktop.ini'];
|
|
192
|
-
|
|
193
|
-
// Filter Files using our defined blacklist
|
|
194
|
-
return files.filter(function (file) {
|
|
195
|
-
return !blacklist.includes(file.name);
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
// Similar to the onDrop event, but for folders.
|
|
199
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onDropFolders", function (fileCount) {
|
|
200
|
-
if (fileCount > 0) {
|
|
201
|
-
_this.sendAnalyticsAndEmitDragLeave(fileCount);
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
116
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onDrop", function (e) {
|
|
205
117
|
if (e.dataTransfer && dragContainsFiles(e)) {
|
|
206
118
|
var dataTransfer = e.dataTransfer;
|
|
@@ -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 = "66.7.
|
|
12
|
+
var packageVersion = "66.7.3";
|
|
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 = "66.7.
|
|
15
|
+
var packageVersion = "66.7.3";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var initExperience = function initExperience(id, componentName) {
|
|
18
18
|
if (!ufoExperience) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
-
import { ANALYTICS_MEDIA_CHANNEL,
|
|
5
|
-
import { isWebkitSupported } from '@atlaskit/media-ui/browser';
|
|
6
|
-
import { getFilesFromItems, getFilesFromFileSystemEntries } from 'flat-files';
|
|
4
|
+
import { ANALYTICS_MEDIA_CHANNEL, withMediaAnalyticsContext } from '@atlaskit/media-common';
|
|
7
5
|
import { LocalUploadComponentReact } from '../localUploadReact';
|
|
8
6
|
import { getPackageAttributes } from '../../util/analytics';
|
|
9
7
|
import ErrorFlagGroup from '../errorFlagGroup/ErrorFlagGroup';
|
|
@@ -73,75 +71,11 @@ export class DropzoneBase extends LocalUploadComponentReact {
|
|
|
73
71
|
}
|
|
74
72
|
dragEvent.preventDefault();
|
|
75
73
|
dragEvent.stopPropagation();
|
|
76
|
-
const {
|
|
77
|
-
featureFlags
|
|
78
|
-
} = this.props;
|
|
79
74
|
// refreshes uploadParams as only set once in parent constructor
|
|
80
75
|
this.setUploadParams(this.props.config.uploadParams);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* Some browser types are not supported https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries
|
|
85
|
-
*/
|
|
86
|
-
if (isWebkitSupported() && getMediaFeatureFlag('folderUploads', featureFlags)) {
|
|
87
|
-
this.fireAnalyticsForFolders(dragEvent.dataTransfer.items);
|
|
88
|
-
const flattenedDirectoryFiles = await this.getFilesFromDragEvent(dragEvent.dataTransfer.items);
|
|
89
|
-
this.onDropFolders(flattenedDirectoryFiles.length);
|
|
90
|
-
this.uploadService.addFiles(flattenedDirectoryFiles);
|
|
91
|
-
} else {
|
|
92
|
-
this.onDrop(dragEvent);
|
|
93
|
-
const files = Array.from(dragEvent.dataTransfer.files);
|
|
94
|
-
this.uploadService.addFiles(files);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
/*
|
|
98
|
-
* Checks how many folders are uploaded in a single drag and drop. Then, fires an analytic event in accordance to this.
|
|
99
|
-
*/
|
|
100
|
-
_defineProperty(this, "fireAnalyticsForFolders", items => {
|
|
101
|
-
//convert DataTransferItemList into an array of DataTransferItem(s)
|
|
102
|
-
const toArray = Array.from(items);
|
|
103
|
-
|
|
104
|
-
//function to check if a file entry is a folder
|
|
105
|
-
const hasFolder = item => {
|
|
106
|
-
var _item$webkitGetAsEntr;
|
|
107
|
-
return (_item$webkitGetAsEntr = item.webkitGetAsEntry()) === null || _item$webkitGetAsEntr === void 0 ? void 0 : _item$webkitGetAsEntr.isDirectory;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
//how many folders are in a single drag and drop event
|
|
111
|
-
var folderCount = toArray.filter(item => hasFolder(item)).length;
|
|
112
|
-
|
|
113
|
-
// fires analytic events if number of folders is more than 0
|
|
114
|
-
if (folderCount > 0) {
|
|
115
|
-
this.fireAnalyticsEvent('folderDroppedInto', folderCount);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
/*
|
|
119
|
-
* Files dropped contains a directory. Thus, flatten the directory to return an array of Files.
|
|
120
|
-
*/
|
|
121
|
-
_defineProperty(this, "getFilesFromDragEvent", async dragEventItemList => {
|
|
122
|
-
const items = dragEventItemList;
|
|
123
|
-
|
|
124
|
-
//If items consist of directory or directories, flatten it to grab the files only. Else, just get the files
|
|
125
|
-
const fileSystemEntries = await getFilesFromItems(items);
|
|
126
|
-
|
|
127
|
-
//files are of filetype 'fileSystemEntry'. We convert the files to be of the 'File' type format.
|
|
128
|
-
const files = await getFilesFromFileSystemEntries(fileSystemEntries);
|
|
129
|
-
|
|
130
|
-
// Return all the files we will upload
|
|
131
|
-
return this.filterFilesAgainstBlacklist(files);
|
|
132
|
-
});
|
|
133
|
-
_defineProperty(this, "filterFilesAgainstBlacklist", files => {
|
|
134
|
-
// We don't want these files in our final File list
|
|
135
|
-
const blacklist = ['.DS_Store', 'thumbs.db', 'desktop.ini'];
|
|
136
|
-
|
|
137
|
-
// Filter Files using our defined blacklist
|
|
138
|
-
return files.filter(file => !blacklist.includes(file.name));
|
|
139
|
-
});
|
|
140
|
-
// Similar to the onDrop event, but for folders.
|
|
141
|
-
_defineProperty(this, "onDropFolders", fileCount => {
|
|
142
|
-
if (fileCount > 0) {
|
|
143
|
-
this.sendAnalyticsAndEmitDragLeave(fileCount);
|
|
144
|
-
}
|
|
76
|
+
this.onDrop(dragEvent);
|
|
77
|
+
const files = Array.from(dragEvent.dataTransfer.files);
|
|
78
|
+
this.uploadService.addFiles(files);
|
|
145
79
|
});
|
|
146
80
|
_defineProperty(this, "onDrop", e => {
|
|
147
81
|
if (e.dataTransfer && dragContainsFiles(e)) {
|
|
@@ -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 = "66.7.
|
|
6
|
+
const packageVersion = "66.7.3";
|
|
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 = "66.7.
|
|
5
|
+
const packageVersion = "66.7.3";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const initExperience = (id, componentName) => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -11,9 +11,7 @@ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function
|
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
14
|
-
import { ANALYTICS_MEDIA_CHANNEL,
|
|
15
|
-
import { isWebkitSupported } from '@atlaskit/media-ui/browser';
|
|
16
|
-
import { getFilesFromItems, getFilesFromFileSystemEntries } from 'flat-files';
|
|
14
|
+
import { ANALYTICS_MEDIA_CHANNEL, withMediaAnalyticsContext } from '@atlaskit/media-common';
|
|
17
15
|
import { LocalUploadComponentReact } from '../localUploadReact';
|
|
18
16
|
import { getPackageAttributes } from '../../util/analytics';
|
|
19
17
|
import ErrorFlagGroup from '../errorFlagGroup/ErrorFlagGroup';
|
|
@@ -81,7 +79,7 @@ export var DropzoneBase = /*#__PURE__*/function (_LocalUploadComponent) {
|
|
|
81
79
|
});
|
|
82
80
|
_defineProperty(_assertThisInitialized(_this), "onFileDropped", /*#__PURE__*/function () {
|
|
83
81
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(dragEvent) {
|
|
84
|
-
var
|
|
82
|
+
var files;
|
|
85
83
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
86
84
|
while (1) switch (_context.prev = _context.next) {
|
|
87
85
|
case 0:
|
|
@@ -93,31 +91,12 @@ export var DropzoneBase = /*#__PURE__*/function (_LocalUploadComponent) {
|
|
|
93
91
|
case 2:
|
|
94
92
|
dragEvent.preventDefault();
|
|
95
93
|
dragEvent.stopPropagation();
|
|
96
|
-
|
|
94
|
+
// refreshes uploadParams as only set once in parent constructor
|
|
97
95
|
_this.setUploadParams(_this.props.config.uploadParams);
|
|
98
|
-
/*
|
|
99
|
-
* Only enable support for folders if (1) the browser is supported (2) feature flag is enabled
|
|
100
|
-
* The file flattening library used to add support for Folders uses a function called webkitEntry.
|
|
101
|
-
* Some browser types are not supported https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries
|
|
102
|
-
*/
|
|
103
|
-
if (!(isWebkitSupported() && getMediaFeatureFlag('folderUploads', featureFlags))) {
|
|
104
|
-
_context.next = 15;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
_this.fireAnalyticsForFolders(dragEvent.dataTransfer.items);
|
|
108
|
-
_context.next = 10;
|
|
109
|
-
return _this.getFilesFromDragEvent(dragEvent.dataTransfer.items);
|
|
110
|
-
case 10:
|
|
111
|
-
flattenedDirectoryFiles = _context.sent;
|
|
112
|
-
_this.onDropFolders(flattenedDirectoryFiles.length);
|
|
113
|
-
_this.uploadService.addFiles(flattenedDirectoryFiles);
|
|
114
|
-
_context.next = 18;
|
|
115
|
-
break;
|
|
116
|
-
case 15:
|
|
117
96
|
_this.onDrop(dragEvent);
|
|
118
97
|
files = Array.from(dragEvent.dataTransfer.files);
|
|
119
98
|
_this.uploadService.addFiles(files);
|
|
120
|
-
case
|
|
99
|
+
case 8:
|
|
121
100
|
case "end":
|
|
122
101
|
return _context.stop();
|
|
123
102
|
}
|
|
@@ -127,73 +106,6 @@ export var DropzoneBase = /*#__PURE__*/function (_LocalUploadComponent) {
|
|
|
127
106
|
return _ref.apply(this, arguments);
|
|
128
107
|
};
|
|
129
108
|
}());
|
|
130
|
-
/*
|
|
131
|
-
* Checks how many folders are uploaded in a single drag and drop. Then, fires an analytic event in accordance to this.
|
|
132
|
-
*/
|
|
133
|
-
_defineProperty(_assertThisInitialized(_this), "fireAnalyticsForFolders", function (items) {
|
|
134
|
-
//convert DataTransferItemList into an array of DataTransferItem(s)
|
|
135
|
-
var toArray = Array.from(items);
|
|
136
|
-
|
|
137
|
-
//function to check if a file entry is a folder
|
|
138
|
-
var hasFolder = function hasFolder(item) {
|
|
139
|
-
var _item$webkitGetAsEntr;
|
|
140
|
-
return (_item$webkitGetAsEntr = item.webkitGetAsEntry()) === null || _item$webkitGetAsEntr === void 0 ? void 0 : _item$webkitGetAsEntr.isDirectory;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
//how many folders are in a single drag and drop event
|
|
144
|
-
var folderCount = toArray.filter(function (item) {
|
|
145
|
-
return hasFolder(item);
|
|
146
|
-
}).length;
|
|
147
|
-
|
|
148
|
-
// fires analytic events if number of folders is more than 0
|
|
149
|
-
if (folderCount > 0) {
|
|
150
|
-
_this.fireAnalyticsEvent('folderDroppedInto', folderCount);
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
/*
|
|
154
|
-
* Files dropped contains a directory. Thus, flatten the directory to return an array of Files.
|
|
155
|
-
*/
|
|
156
|
-
_defineProperty(_assertThisInitialized(_this), "getFilesFromDragEvent", /*#__PURE__*/function () {
|
|
157
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(dragEventItemList) {
|
|
158
|
-
var items, fileSystemEntries, files;
|
|
159
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
160
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
161
|
-
case 0:
|
|
162
|
-
items = dragEventItemList; //If items consist of directory or directories, flatten it to grab the files only. Else, just get the files
|
|
163
|
-
_context2.next = 3;
|
|
164
|
-
return getFilesFromItems(items);
|
|
165
|
-
case 3:
|
|
166
|
-
fileSystemEntries = _context2.sent;
|
|
167
|
-
_context2.next = 6;
|
|
168
|
-
return getFilesFromFileSystemEntries(fileSystemEntries);
|
|
169
|
-
case 6:
|
|
170
|
-
files = _context2.sent;
|
|
171
|
-
return _context2.abrupt("return", _this.filterFilesAgainstBlacklist(files));
|
|
172
|
-
case 8:
|
|
173
|
-
case "end":
|
|
174
|
-
return _context2.stop();
|
|
175
|
-
}
|
|
176
|
-
}, _callee2);
|
|
177
|
-
}));
|
|
178
|
-
return function (_x2) {
|
|
179
|
-
return _ref2.apply(this, arguments);
|
|
180
|
-
};
|
|
181
|
-
}());
|
|
182
|
-
_defineProperty(_assertThisInitialized(_this), "filterFilesAgainstBlacklist", function (files) {
|
|
183
|
-
// We don't want these files in our final File list
|
|
184
|
-
var blacklist = ['.DS_Store', 'thumbs.db', 'desktop.ini'];
|
|
185
|
-
|
|
186
|
-
// Filter Files using our defined blacklist
|
|
187
|
-
return files.filter(function (file) {
|
|
188
|
-
return !blacklist.includes(file.name);
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
// Similar to the onDrop event, but for folders.
|
|
192
|
-
_defineProperty(_assertThisInitialized(_this), "onDropFolders", function (fileCount) {
|
|
193
|
-
if (fileCount > 0) {
|
|
194
|
-
_this.sendAnalyticsAndEmitDragLeave(fileCount);
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
109
|
_defineProperty(_assertThisInitialized(_this), "onDrop", function (e) {
|
|
198
110
|
if (e.dataTransfer && dragContainsFiles(e)) {
|
|
199
111
|
var dataTransfer = e.dataTransfer;
|
|
@@ -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 = "66.7.
|
|
6
|
+
var packageVersion = "66.7.3";
|
|
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 = "66.7.
|
|
8
|
+
var packageVersion = "66.7.3";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var initExperience = function initExperience(id, componentName) {
|
|
11
11
|
if (!ufoExperience) {
|
|
@@ -32,6 +32,22 @@ export declare class BrowserBase extends LocalUploadComponentReact<BrowserProps>
|
|
|
32
32
|
render(): JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
export default BrowserBase;
|
|
35
|
-
export declare const Browser: React.ForwardRefExoticComponent<Pick<Pick<Omit<
|
|
35
|
+
export declare const Browser: React.ForwardRefExoticComponent<Pick<Pick<Omit<{
|
|
36
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
37
|
+
config: import("../types").LocalUploadConfig;
|
|
38
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
39
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
40
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
41
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
42
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags | undefined;
|
|
43
|
+
} & BrowserOwnProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "children" | "onCancelFn" | "isOpen" | "onClose" | "onBrowseFn"> & Partial<Pick<Omit<{
|
|
44
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
45
|
+
config: import("../types").LocalUploadConfig;
|
|
46
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
47
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
48
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
49
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
50
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags | undefined;
|
|
51
|
+
} & BrowserOwnProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "config">> & Partial<Pick<{
|
|
36
52
|
config: BrowserConfig;
|
|
37
53
|
}, never>> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "children" | "onCancelFn" | "key" | "isOpen" | "onClose" | "onBrowseFn"> & React.RefAttributes<any>>;
|
|
@@ -39,6 +39,26 @@ export declare class ClipboardBase extends LocalUploadComponentReact<ClipboardPr
|
|
|
39
39
|
render(): JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export default ClipboardBase;
|
|
42
|
-
export declare const Clipboard: React.ForwardRefExoticComponent<Pick<Pick<Omit<
|
|
42
|
+
export declare const Clipboard: React.ForwardRefExoticComponent<Pick<Pick<Omit<{
|
|
43
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
44
|
+
config: import("../types").LocalUploadConfig;
|
|
45
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
46
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
47
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
48
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
49
|
+
featureFlags?: MediaFeatureFlags | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
config: ClipboardConfig;
|
|
52
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags"> & Partial<Pick<Omit<{
|
|
53
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
54
|
+
config: import("../types").LocalUploadConfig;
|
|
55
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
56
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
57
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
58
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
59
|
+
featureFlags?: MediaFeatureFlags | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
config: ClipboardConfig;
|
|
62
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "config">> & Partial<Pick<{
|
|
43
63
|
config: ClipboardConfig;
|
|
44
64
|
}, never>> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "key"> & React.RefAttributes<any>>;
|
|
@@ -21,11 +21,7 @@ export declare class DropzoneBase extends LocalUploadComponentReact<DropzoneProp
|
|
|
21
21
|
private onDragOver;
|
|
22
22
|
private onDragLeave;
|
|
23
23
|
private readonly onFileDropped;
|
|
24
|
-
private fireAnalyticsForFolders;
|
|
25
|
-
private getFilesFromDragEvent;
|
|
26
|
-
private filterFilesAgainstBlacklist;
|
|
27
24
|
private getDraggedItemsLength;
|
|
28
|
-
private onDropFolders;
|
|
29
25
|
private onDrop;
|
|
30
26
|
private sendAnalyticsAndEmitDragLeave;
|
|
31
27
|
private emitDragOver;
|
|
@@ -34,4 +30,18 @@ export declare class DropzoneBase extends LocalUploadComponentReact<DropzoneProp
|
|
|
34
30
|
render(): JSX.Element;
|
|
35
31
|
}
|
|
36
32
|
export default DropzoneBase;
|
|
37
|
-
export declare const Dropzone: React.ForwardRefExoticComponent<Pick<Omit<
|
|
33
|
+
export declare const Dropzone: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
34
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
35
|
+
config: import("../types").LocalUploadConfig;
|
|
36
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
37
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
38
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
39
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
40
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
config: DropzoneConfig;
|
|
43
|
+
onDrop?: (() => void) | undefined;
|
|
44
|
+
onDragEnter?: ((payload: DropzoneDragEnterEventPayload) => void) | undefined;
|
|
45
|
+
onDragLeave?: ((payload: DropzoneDragLeaveEventPayload) => void) | undefined;
|
|
46
|
+
onCancelFn?: ((cancel: (uniqueIdentifier: string) => void) => void) | undefined;
|
|
47
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "onDrop" | "onDragEnter" | "onDragLeave" | "onCancelFn" | "key"> & React.RefAttributes<any>>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export type ClipboardPastePayload = UIEventPayload<UIAttributes & {
|
|
|
106
106
|
fileSize: number;
|
|
107
107
|
}>;
|
|
108
108
|
}, 'pasted', 'clipboard'>;
|
|
109
|
-
export type DropzoneEventAction = 'draggedOut' | 'draggedInto' | 'droppedInto'
|
|
109
|
+
export type DropzoneEventAction = 'draggedOut' | 'draggedInto' | 'droppedInto';
|
|
110
110
|
export type DropzoneEventPayload = UIEventPayload<UIAttributes & {
|
|
111
111
|
fileCount: number;
|
|
112
112
|
}, DropzoneEventAction, 'dropzone'>;
|
|
@@ -32,6 +32,22 @@ export declare class BrowserBase extends LocalUploadComponentReact<BrowserProps>
|
|
|
32
32
|
render(): JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
export default BrowserBase;
|
|
35
|
-
export declare const Browser: React.ForwardRefExoticComponent<Pick<Pick<Omit<
|
|
35
|
+
export declare const Browser: React.ForwardRefExoticComponent<Pick<Pick<Omit<{
|
|
36
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
37
|
+
config: import("../types").LocalUploadConfig;
|
|
38
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
39
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
40
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
41
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
42
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags | undefined;
|
|
43
|
+
} & BrowserOwnProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "children" | "onCancelFn" | "isOpen" | "onClose" | "onBrowseFn"> & Partial<Pick<Omit<{
|
|
44
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
45
|
+
config: import("../types").LocalUploadConfig;
|
|
46
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
47
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
48
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
49
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
50
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags | undefined;
|
|
51
|
+
} & BrowserOwnProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "config">> & Partial<Pick<{
|
|
36
52
|
config: BrowserConfig;
|
|
37
53
|
}, never>> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "children" | "onCancelFn" | "key" | "isOpen" | "onClose" | "onBrowseFn"> & React.RefAttributes<any>>;
|
|
@@ -39,6 +39,26 @@ export declare class ClipboardBase extends LocalUploadComponentReact<ClipboardPr
|
|
|
39
39
|
render(): JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export default ClipboardBase;
|
|
42
|
-
export declare const Clipboard: React.ForwardRefExoticComponent<Pick<Pick<Omit<
|
|
42
|
+
export declare const Clipboard: React.ForwardRefExoticComponent<Pick<Pick<Omit<{
|
|
43
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
44
|
+
config: import("../types").LocalUploadConfig;
|
|
45
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
46
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
47
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
48
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
49
|
+
featureFlags?: MediaFeatureFlags | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
config: ClipboardConfig;
|
|
52
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags"> & Partial<Pick<Omit<{
|
|
53
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
54
|
+
config: import("../types").LocalUploadConfig;
|
|
55
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
56
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
57
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
58
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
59
|
+
featureFlags?: MediaFeatureFlags | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
config: ClipboardConfig;
|
|
62
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "config">> & Partial<Pick<{
|
|
43
63
|
config: ClipboardConfig;
|
|
44
64
|
}, never>> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "key"> & React.RefAttributes<any>>;
|
|
@@ -21,11 +21,7 @@ export declare class DropzoneBase extends LocalUploadComponentReact<DropzoneProp
|
|
|
21
21
|
private onDragOver;
|
|
22
22
|
private onDragLeave;
|
|
23
23
|
private readonly onFileDropped;
|
|
24
|
-
private fireAnalyticsForFolders;
|
|
25
|
-
private getFilesFromDragEvent;
|
|
26
|
-
private filterFilesAgainstBlacklist;
|
|
27
24
|
private getDraggedItemsLength;
|
|
28
|
-
private onDropFolders;
|
|
29
25
|
private onDrop;
|
|
30
26
|
private sendAnalyticsAndEmitDragLeave;
|
|
31
27
|
private emitDragOver;
|
|
@@ -34,4 +30,18 @@ export declare class DropzoneBase extends LocalUploadComponentReact<DropzoneProp
|
|
|
34
30
|
render(): JSX.Element;
|
|
35
31
|
}
|
|
36
32
|
export default DropzoneBase;
|
|
37
|
-
export declare const Dropzone: React.ForwardRefExoticComponent<Pick<Omit<
|
|
33
|
+
export declare const Dropzone: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
34
|
+
mediaClient: import("@atlaskit/media-client").MediaClient;
|
|
35
|
+
config: import("../types").LocalUploadConfig;
|
|
36
|
+
onUploadsStart?: ((payload: import("../../types").UploadsStartEventPayload) => void) | undefined;
|
|
37
|
+
onPreviewUpdate?: ((payload: import("../../types").UploadPreviewUpdateEventPayload) => void) | undefined;
|
|
38
|
+
onEnd?: ((payload: import("../../types").UploadEndEventPayload) => void) | undefined;
|
|
39
|
+
onError?: ((payload: import("../../types").UploadErrorEventPayload) => void) | undefined;
|
|
40
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
config: DropzoneConfig;
|
|
43
|
+
onDrop?: (() => void) | undefined;
|
|
44
|
+
onDragEnter?: ((payload: DropzoneDragEnterEventPayload) => void) | undefined;
|
|
45
|
+
onDragLeave?: ((payload: DropzoneDragLeaveEventPayload) => void) | undefined;
|
|
46
|
+
onCancelFn?: ((cancel: (uniqueIdentifier: string) => void) => void) | undefined;
|
|
47
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "onDrop" | "onDragEnter" | "onDragLeave" | "onCancelFn" | "key"> & React.RefAttributes<any>>;
|
|
@@ -106,7 +106,7 @@ export type ClipboardPastePayload = UIEventPayload<UIAttributes & {
|
|
|
106
106
|
fileSize: number;
|
|
107
107
|
}>;
|
|
108
108
|
}, 'pasted', 'clipboard'>;
|
|
109
|
-
export type DropzoneEventAction = 'draggedOut' | 'draggedInto' | 'droppedInto'
|
|
109
|
+
export type DropzoneEventAction = 'draggedOut' | 'draggedInto' | 'droppedInto';
|
|
110
110
|
export type DropzoneEventPayload = UIEventPayload<UIAttributes & {
|
|
111
111
|
fileCount: number;
|
|
112
112
|
}, DropzoneEventAction, 'dropzone'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "66.7.
|
|
3
|
+
"version": "66.7.3",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
37
37
|
"@atlaskit/flag": "^15.8.0",
|
|
38
|
-
"@atlaskit/icon": "^22.
|
|
38
|
+
"@atlaskit/icon": "^22.22.0",
|
|
39
39
|
"@atlaskit/media-client": "^28.0.0",
|
|
40
40
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
41
|
-
"@atlaskit/media-common": "^11.
|
|
41
|
+
"@atlaskit/media-common": "^11.6.0",
|
|
42
42
|
"@atlaskit/media-ui": "^25.15.0",
|
|
43
43
|
"@atlaskit/theme": "^13.0.0",
|
|
44
44
|
"@atlaskit/tokens": "^2.0.0",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"eventemitter2": "^4.1.0",
|
|
48
48
|
"exenv": "^1.2.2",
|
|
49
|
-
"flat-files": "^1.0.6",
|
|
50
49
|
"perf-marks": "^1.5.0",
|
|
51
50
|
"uuid": "^3.1.0",
|
|
52
51
|
"uuid-validate": "^0.0.3"
|
|
@@ -62,7 +61,7 @@
|
|
|
62
61
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
63
62
|
"@atlaskit/button": "^20.2.0",
|
|
64
63
|
"@atlaskit/media-core": "^34.3.0",
|
|
65
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
64
|
+
"@atlaskit/media-test-helpers": "^34.5.0",
|
|
66
65
|
"@atlaskit/ssr": "*",
|
|
67
66
|
"@atlassian/ufo": "^0.4.0",
|
|
68
67
|
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|