@atlaskit/media-picker 58.1.2 → 59.0.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/CHANGELOG.md +66 -0
- package/dist/cjs/components/browser/browser.js +1 -1
- package/dist/cjs/components/clipboard/clipboard.js +1 -1
- package/dist/cjs/components/dropzone/dropzone.js +1 -1
- package/dist/cjs/components/popup.js +2 -2
- package/dist/cjs/domain/file.js +2 -2
- package/dist/cjs/domain/preview.js +1 -1
- package/dist/cjs/icons/index.js +1 -1
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/plugins/extractors/index.js +1 -1
- package/dist/cjs/plugins/forge/client.js +4 -3
- package/dist/cjs/plugins/forge/components/error.js +3 -3
- package/dist/cjs/plugins/forge/components/header.js +2 -2
- package/dist/cjs/plugins/forge/components/styled.js +1 -1
- package/dist/cjs/plugins/forge/index.js +4 -4
- package/dist/cjs/plugins/views/bricks/index.js +2 -2
- package/dist/cjs/plugins/views/browser/auth/auth.js +4 -4
- package/dist/cjs/plugins/views/browser/auth/styled.js +1 -1
- package/dist/cjs/plugins/views/browser/folderView/file.js +1 -1
- package/dist/cjs/plugins/views/browser/folderView/styled.js +1 -1
- package/dist/cjs/popup/actions/cancelUpload.js +2 -2
- package/dist/cjs/popup/actions/changeAccount.js +2 -2
- package/dist/cjs/popup/actions/changeCloudAccountFolder.js +1 -1
- package/dist/cjs/popup/actions/changeService.js +2 -2
- package/dist/cjs/popup/actions/deselectItem.js +2 -2
- package/dist/cjs/popup/actions/dropzoneDragOut.js +2 -2
- package/dist/cjs/popup/actions/dropzoneDropIn.js +2 -2
- package/dist/cjs/popup/actions/editRemoteImage.js +2 -2
- package/dist/cjs/popup/actions/editorClose.js +2 -2
- package/dist/cjs/popup/actions/editorShowError.js +2 -2
- package/dist/cjs/popup/actions/editorShowImage.js +2 -2
- package/dist/cjs/popup/actions/editorShowLoading.js +1 -1
- package/dist/cjs/popup/actions/failureErrorLogger.js +2 -2
- package/dist/cjs/popup/actions/fileClick.js +4 -4
- package/dist/cjs/popup/actions/fileListUpdate.js +2 -2
- package/dist/cjs/popup/actions/fileUploadError.js +2 -2
- package/dist/cjs/popup/actions/fileUploadsStart.js +2 -2
- package/dist/cjs/popup/actions/finalizeUpload.js +2 -2
- package/dist/cjs/popup/actions/getConnectedRemoteAccounts.js +2 -1
- package/dist/cjs/popup/actions/getFilesInRecents.js +3 -2
- package/dist/cjs/popup/actions/getForgePlugins.js +3 -2
- package/dist/cjs/popup/actions/getPreview.js +2 -2
- package/dist/cjs/popup/actions/handleCloudFetchingEvent.js +2 -2
- package/dist/cjs/popup/actions/hidePopup.js +2 -2
- package/dist/cjs/popup/actions/index.js +116 -116
- package/dist/cjs/popup/actions/remoteUploadStart.js +1 -1
- package/dist/cjs/popup/actions/resetView.js +1 -1
- package/dist/cjs/popup/actions/saveCollectionItemsSubscription.js +1 -1
- package/dist/cjs/popup/actions/searchGiphy.js +4 -4
- package/dist/cjs/popup/actions/sendUploadEvent.js +1 -1
- package/dist/cjs/popup/actions/showPopup.js +1 -1
- package/dist/cjs/popup/actions/startApp.js +1 -1
- package/dist/cjs/popup/actions/startAuth.js +1 -1
- package/dist/cjs/popup/actions/startFileBrowser.js +1 -1
- package/dist/cjs/popup/actions/startImport.js +1 -1
- package/dist/cjs/popup/actions/unlinkCloudAccount.js +1 -1
- package/dist/cjs/popup/actions/updatePopupUrls.js +2 -1
- package/dist/cjs/popup/actions/updateServiceList.js +1 -1
- package/dist/cjs/popup/components/app.js +12 -3
- package/dist/cjs/popup/components/dropzone/dropzone.js +2 -2
- package/dist/cjs/popup/components/dropzone/styled.js +1 -1
- package/dist/cjs/popup/components/footer/footer.js +3 -3
- package/dist/cjs/popup/components/footer/styled.js +6 -4
- package/dist/cjs/popup/components/navigation/navigation.js +29 -18
- package/dist/cjs/popup/components/navigation/styled.js +6 -4
- package/dist/cjs/popup/components/passContext.js +4 -4
- package/dist/cjs/popup/components/sidebar/item/styled.js +1 -1
- package/dist/cjs/popup/components/sidebar/sidebar.js +2 -2
- package/dist/cjs/popup/components/sidebar/styled.js +1 -1
- package/dist/cjs/popup/components/views/browser/auth/auth.js +4 -4
- package/dist/cjs/popup/components/views/browser/auth/styled.js +1 -1
- package/dist/cjs/popup/components/views/browser/folderView/folderView.js +2 -2
- package/dist/cjs/popup/components/views/browser/folderView/styled.js +1 -1
- package/dist/cjs/popup/components/views/editor/errorView/errorView.js +2 -2
- package/dist/cjs/popup/components/views/editor/errorView/styles.js +6 -4
- package/dist/cjs/popup/components/views/upload/dropzone.js +2 -2
- package/dist/cjs/popup/components/views/upload/styled.js +1 -1
- package/dist/cjs/popup/components/views/upload/upload.js +5 -5
- package/dist/cjs/popup/components/views/upload/uploadButton.js +2 -2
- package/dist/cjs/popup/components/views/warnings/networkError.js +3 -3
- package/dist/cjs/popup/components/views/warnings/styles.js +1 -1
- package/dist/cjs/popup/domain/index.js +1 -1
- package/dist/cjs/popup/middleware/handleCloudFetchingEvent.js +2 -2
- package/dist/cjs/popup/middleware/importFiles.js +5 -4
- package/dist/cjs/popup/reducers/accountChange.js +2 -2
- package/dist/cjs/popup/reducers/accountUnlink.js +2 -2
- package/dist/cjs/popup/reducers/connectedRemoteAccountsFailed.js +2 -2
- package/dist/cjs/popup/reducers/deselectItem.js +2 -2
- package/dist/cjs/popup/reducers/editorClose.js +2 -2
- package/dist/cjs/popup/reducers/editorShowError.js +2 -2
- package/dist/cjs/popup/reducers/editorShowImage.js +2 -2
- package/dist/cjs/popup/reducers/editorShowLoading.js +2 -2
- package/dist/cjs/popup/reducers/fetchNextCloudFilesPage.js +2 -2
- package/dist/cjs/popup/reducers/fileClick.js +2 -2
- package/dist/cjs/popup/reducers/fileListUpdate.js +2 -2
- package/dist/cjs/popup/reducers/fileUploadsAdd.js +2 -2
- package/dist/cjs/popup/reducers/getFilesInRecents.js +3 -3
- package/dist/cjs/popup/reducers/getForgePlugins.js +3 -3
- package/dist/cjs/popup/reducers/hidePopup.js +2 -2
- package/dist/cjs/popup/reducers/isUploading.js +4 -4
- package/dist/cjs/popup/reducers/pathChangeRequest.js +2 -2
- package/dist/cjs/popup/reducers/reducers.js +2 -2
- package/dist/cjs/popup/reducers/remoteUploadStart.js +2 -2
- package/dist/cjs/popup/reducers/removeFileFromRecents.js +2 -2
- package/dist/cjs/popup/reducers/resetView.js +2 -2
- package/dist/cjs/popup/reducers/saveCollectionItemsSubscription.js +2 -2
- package/dist/cjs/popup/reducers/searchGiphy.js +3 -3
- package/dist/cjs/popup/reducers/serviceListUpdate.js +2 -2
- package/dist/cjs/popup/reducers/showPopup.js +2 -2
- package/dist/cjs/popup/reducers/startApp.js +2 -2
- package/dist/cjs/popup/reducers/updatePopupUrls.js +2 -2
- package/dist/cjs/popup/services/cloud-service.js +2 -2
- package/dist/cjs/popup/tools/fetcher/fetcher.js +4 -3
- package/dist/cjs/popup/tools/getUrlParameter.js +1 -1
- package/dist/cjs/popup/tools/websocket/upload/remoteUploadActivity.js +2 -2
- package/dist/cjs/popup/tools/websocket/ws.js +5 -5
- package/dist/cjs/popup/tools/websocket/wsMessageData.js +1 -1
- package/dist/cjs/service/types.js +1 -1
- package/dist/cjs/service/uploadServiceImpl.js +2 -2
- package/dist/cjs/store/create-store.js +2 -2
- package/dist/cjs/util/getPreviewFromImage.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/forge/client.js +4 -3
- package/dist/es2019/plugins/forge/components/error.js +1 -1
- package/dist/es2019/plugins/forge/components/header.js +1 -1
- package/dist/es2019/plugins/views/browser/auth/auth.js +1 -1
- package/dist/es2019/popup/components/app.js +9 -3
- package/dist/es2019/popup/components/dropzone/dropzone.js +1 -1
- package/dist/es2019/popup/components/footer/footer.js +1 -1
- package/dist/es2019/popup/components/navigation/navigation.js +15 -8
- package/dist/es2019/popup/components/passContext.js +4 -3
- package/dist/es2019/popup/components/sidebar/sidebar.js +1 -1
- package/dist/es2019/popup/components/views/browser/auth/auth.js +1 -1
- package/dist/es2019/popup/components/views/editor/errorView/errorView.js +1 -1
- package/dist/es2019/popup/components/views/upload/dropzone.js +1 -1
- package/dist/es2019/popup/components/views/upload/upload.js +1 -1
- package/dist/es2019/popup/components/views/upload/uploadButton.js +1 -1
- package/dist/es2019/popup/components/views/warnings/networkError.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/popup.js +2 -2
- package/dist/esm/domain/file.js +2 -2
- package/dist/esm/plugins/forge/client.js +4 -3
- package/dist/esm/plugins/forge/components/error.js +1 -1
- package/dist/esm/plugins/forge/components/header.js +1 -1
- package/dist/esm/plugins/views/bricks/index.js +2 -2
- package/dist/esm/plugins/views/browser/auth/auth.js +1 -1
- package/dist/esm/popup/actions/fileClick.js +2 -2
- package/dist/esm/popup/components/app.js +9 -3
- package/dist/esm/popup/components/dropzone/dropzone.js +1 -1
- package/dist/esm/popup/components/footer/footer.js +1 -1
- package/dist/esm/popup/components/footer/styled.js +4 -3
- package/dist/esm/popup/components/navigation/navigation.js +24 -15
- package/dist/esm/popup/components/navigation/styled.js +4 -3
- package/dist/esm/popup/components/passContext.js +3 -3
- package/dist/esm/popup/components/sidebar/sidebar.js +1 -1
- package/dist/esm/popup/components/views/browser/auth/auth.js +1 -1
- package/dist/esm/popup/components/views/browser/folderView/folderView.js +2 -2
- package/dist/esm/popup/components/views/editor/errorView/errorView.js +1 -1
- package/dist/esm/popup/components/views/editor/errorView/styles.js +4 -3
- package/dist/esm/popup/components/views/upload/dropzone.js +1 -1
- package/dist/esm/popup/components/views/upload/upload.js +3 -3
- package/dist/esm/popup/components/views/upload/uploadButton.js +1 -1
- package/dist/esm/popup/components/views/warnings/networkError.js +1 -1
- package/dist/esm/popup/middleware/handleCloudFetchingEvent.js +2 -2
- package/dist/esm/popup/middleware/importFiles.js +2 -2
- package/dist/esm/popup/reducers/accountChange.js +2 -2
- package/dist/esm/popup/reducers/accountUnlink.js +2 -2
- package/dist/esm/popup/reducers/connectedRemoteAccountsFailed.js +2 -2
- package/dist/esm/popup/reducers/deselectItem.js +2 -2
- package/dist/esm/popup/reducers/editorClose.js +2 -2
- package/dist/esm/popup/reducers/editorShowError.js +2 -2
- package/dist/esm/popup/reducers/editorShowImage.js +2 -2
- package/dist/esm/popup/reducers/editorShowLoading.js +2 -2
- package/dist/esm/popup/reducers/fetchNextCloudFilesPage.js +2 -2
- package/dist/esm/popup/reducers/fileClick.js +2 -2
- package/dist/esm/popup/reducers/fileListUpdate.js +2 -2
- package/dist/esm/popup/reducers/fileUploadsAdd.js +2 -2
- package/dist/esm/popup/reducers/getFilesInRecents.js +2 -2
- package/dist/esm/popup/reducers/getForgePlugins.js +2 -2
- package/dist/esm/popup/reducers/hidePopup.js +2 -2
- package/dist/esm/popup/reducers/isUploading.js +2 -2
- package/dist/esm/popup/reducers/pathChangeRequest.js +2 -2
- package/dist/esm/popup/reducers/reducers.js +2 -2
- package/dist/esm/popup/reducers/remoteUploadStart.js +2 -2
- package/dist/esm/popup/reducers/removeFileFromRecents.js +2 -2
- package/dist/esm/popup/reducers/resetView.js +2 -2
- package/dist/esm/popup/reducers/saveCollectionItemsSubscription.js +2 -2
- package/dist/esm/popup/reducers/searchGiphy.js +2 -2
- package/dist/esm/popup/reducers/serviceListUpdate.js +2 -2
- package/dist/esm/popup/reducers/showPopup.js +2 -2
- package/dist/esm/popup/reducers/startApp.js +2 -2
- package/dist/esm/popup/reducers/updatePopupUrls.js +2 -2
- package/dist/esm/popup/services/cloud-service.js +2 -2
- package/dist/esm/popup/tools/fetcher/fetcher.js +2 -2
- package/dist/esm/popup/tools/websocket/upload/remoteUploadActivity.js +2 -2
- package/dist/esm/popup/tools/websocket/ws.js +3 -2
- package/dist/esm/service/uploadServiceImpl.js +2 -2
- package/dist/esm/store/create-store.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/icons/index.d.ts +1 -0
- package/dist/types/plugins/forge/components/error.d.ts +1 -0
- package/dist/types/plugins/forge/components/header.d.ts +1 -4
- package/dist/types/plugins/forge/components/icon.d.ts +1 -0
- package/dist/types/plugins/forge/components/index.d.ts +1 -0
- package/dist/types/plugins/forge/components/loading.d.ts +1 -0
- package/dist/types/plugins/forge/components/mapper.d.ts +1 -0
- package/dist/types/plugins/views/browser/auth/auth.d.ts +1 -0
- package/dist/types/plugins/views/browser/browser.d.ts +1 -0
- package/dist/types/plugins/views/browser/folderView/file.d.ts +1 -0
- package/dist/types/plugins/views/browser/folderView/folder.d.ts +1 -0
- package/dist/types/plugins/views/browser/folderView/index.d.ts +1 -0
- package/dist/types/popup/components/app.d.ts +6 -3
- package/dist/types/popup/components/footer/footer.d.ts +4 -1
- package/dist/types/popup/components/navigation/navigation.d.ts +8 -4
- package/dist/types/popup/components/navigation/styled.d.ts +2 -2
- package/dist/types/popup/components/passContext.d.ts +3 -3
- package/dist/types/popup/components/sidebar/item/sidebarItem.d.ts +4 -1
- package/dist/types/popup/components/sidebar/sidebar.d.ts +4 -1
- package/dist/types/popup/components/views/browser/auth/auth.d.ts +4 -1
- package/dist/types/popup/components/views/browser/browser.d.ts +4 -1
- package/dist/types/popup/components/views/browser/folderView/folderView.d.ts +4 -1
- package/dist/types/popup/components/views/editor/errorView/errorView.d.ts +4 -4
- package/dist/types/popup/components/views/editor/mainEditorView.d.ts +4 -1
- package/dist/types/popup/components/views/upload/upload.d.ts +5 -3
- package/dist/types/popup/components/views/upload/uploadButton.d.ts +3 -1
- package/dist/types/popup/tools/mimeTypeToIcon.d.ts +1 -0
- package/example-helpers/emojiPlugin.tsx +2 -2
- package/package.json +19 -20
|
@@ -7,8 +7,9 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
+
exports.fileStoreUrl = exports.MediaApiFetcher = void 0;
|
|
10
11
|
exports.flattenAccounts = flattenAccounts;
|
|
11
|
-
exports.pickerUrl =
|
|
12
|
+
exports.pickerUrl = void 0;
|
|
12
13
|
|
|
13
14
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
14
15
|
|
|
@@ -24,9 +25,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
24
25
|
|
|
25
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
27
|
|
|
27
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
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; }
|
|
28
29
|
|
|
29
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
30
|
+
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; }
|
|
30
31
|
|
|
31
32
|
var giphyApiKey = 'lBOxhhz1BM62Y3JsK0iQv1pRYyOGUjR8';
|
|
32
33
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getUrlParameter = getUrlParameter;
|
|
7
6
|
exports.getRequiredUrlParameter = getRequiredUrlParameter;
|
|
7
|
+
exports.getUrlParameter = getUrlParameter;
|
|
8
8
|
|
|
9
9
|
function getUrlParameter(name, searchOverride) {
|
|
10
10
|
var search = searchOverride || location.search;
|
|
@@ -17,9 +17,9 @@ var _eventemitter = require("eventemitter2");
|
|
|
17
17
|
|
|
18
18
|
var _wsMessageData = require("../wsMessageData");
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
24
|
var RemoteUploadActivity = /*#__PURE__*/function () {
|
|
25
25
|
function RemoteUploadActivity(tenantFileId, serviceName, dispatchEvent) {
|
|
@@ -7,7 +7,9 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.getWsUrl = exports.Ws = void 0;
|
|
11
|
+
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
13
|
|
|
12
14
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
15
|
|
|
@@ -42,8 +44,7 @@ var getWsUrl = function getWsUrl(baseUrl) {
|
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
exports.getWsUrl = getWsUrl;
|
|
45
|
-
|
|
46
|
-
var Ws = function Ws(auth, onDataReceived, onConnectionLost) {
|
|
47
|
+
var Ws = /*#__PURE__*/(0, _createClass2.default)(function Ws(auth, onDataReceived, onConnectionLost) {
|
|
47
48
|
var _this = this;
|
|
48
49
|
|
|
49
50
|
(0, _classCallCheck2.default)(this, Ws);
|
|
@@ -111,6 +112,5 @@ var Ws = function Ws(auth, onDataReceived, onConnectionLost) {
|
|
|
111
112
|
this.ws = new WebSocket("".concat(wsUrl, "?").concat((0, _mediaClient.objectToQueryString)(authParams)));
|
|
112
113
|
this.setHandler();
|
|
113
114
|
this.schedulePing();
|
|
114
|
-
};
|
|
115
|
-
|
|
115
|
+
});
|
|
116
116
|
exports.Ws = Ws;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.isRemoteUploadStartData = exports.isRemoteUploadProgressData = exports.isRemoteUploadErrorData = exports.isRemoteUploadEndData = exports.isNotifyMetadata = void 0;
|
|
7
7
|
|
|
8
8
|
var isRemoteUploadStartData = function isRemoteUploadStartData(data) {
|
|
9
9
|
return data && data.type === 'RemoteUploadStart';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.MAX_FILE_SIZE_FOR_PREVIEW = exports.LocalFileSource = void 0;
|
|
7
7
|
var MAX_FILE_SIZE_FOR_PREVIEW = 10e6; // 10 MB
|
|
8
8
|
|
|
9
9
|
exports.MAX_FILE_SIZE_FOR_PREVIEW = MAX_FILE_SIZE_FOR_PREVIEW;
|
|
@@ -33,9 +33,9 @@ var _types = require("../service/types");
|
|
|
33
33
|
|
|
34
34
|
var _getPreviewFromBlob = require("../util/getPreviewFromBlob");
|
|
35
35
|
|
|
36
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
36
|
+
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; }
|
|
37
37
|
|
|
38
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
38
|
+
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; }
|
|
39
39
|
|
|
40
40
|
var UploadServiceImpl = /*#__PURE__*/function () {
|
|
41
41
|
function UploadServiceImpl(tenantMediaClient, tenantUploadParams, shouldCopyFileToRecents) {
|
|
@@ -65,9 +65,9 @@ var _analyticsProcessing = _interopRequireDefault(require("../popup/middleware/a
|
|
|
65
65
|
|
|
66
66
|
var _removeFileFromRecents = require("../popup/middleware/removeFileFromRecents");
|
|
67
67
|
|
|
68
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
68
|
+
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; }
|
|
69
69
|
|
|
70
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
70
|
+
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; }
|
|
71
71
|
|
|
72
72
|
var _default = function _default(eventEmitter, tenantMediaClient, userMediaClient, config) {
|
|
73
73
|
var userAuthProvider = userMediaClient.config.authProvider;
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.getPreviewFromImage = getPreviewFromImage;
|
|
9
8
|
exports.SCALE_FACTOR_DEFAULT = void 0;
|
|
9
|
+
exports.getPreviewFromImage = getPreviewFromImage;
|
|
10
10
|
|
|
11
11
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
12
12
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
const NON_TENANT_API_ENDPOINT = 'https://api-private.stg.atlassian.com/object-resolver';
|
|
3
2
|
const TENANT_HOST_REGEX = [/^https:\/\/([^\.]*\.)*atl-paas\.net/, /^https:\/\/([^\.]*\.)*atlassian\.net/, /^https:\/\/([^\.]*\.)*jira-dev\.com/, /^https:\/\/([^\.]*\.)*jira\.com/, /^https:\/\/bitbucket\.org/];
|
|
4
3
|
|
|
5
4
|
const isServerError = response => {
|
|
@@ -44,9 +43,11 @@ export class ForgeClient {
|
|
|
44
43
|
if (regex.test(window.location.origin)) {
|
|
45
44
|
return `${window.location.origin}/gateway/api/object-resolver`;
|
|
46
45
|
}
|
|
47
|
-
}
|
|
46
|
+
} // MEX-946: as we've planned to remove this feature part of MEX-1099 and it's unshipped,
|
|
47
|
+
// let's not support that use case
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
throw new Error("Non-tenanted API isn't supported");
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
async invokeProvider(extensionKey, params) {
|
|
@@ -3,7 +3,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
3
3
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import { PluginErrorContainer, PluginErrorDetails, PluginErrorText } from './styled';
|
|
6
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
export const PluginErrorView = ({
|
|
8
8
|
onRetry
|
|
9
9
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import FieldText from '@atlaskit/textfield';
|
|
3
3
|
import { PluginHeaderWrapper } from './styled';
|
|
4
|
-
import { injectIntl } from 'react-intl';
|
|
4
|
+
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { messages } from '@atlaskit/media-ui';
|
|
6
6
|
export const PluginHeader = injectIntl(({
|
|
7
7
|
name,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import AkButton from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
import { auth } from '@atlaskit/outbound-auth-flow-client';
|
|
8
8
|
import { ButtonWrapper, ConnectWrapper, IconWrapper, TextDescription, Title } from './styled';
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { connect, Provider } from 'react-redux';
|
|
5
|
+
import { injectIntl, IntlProvider } from 'react-intl-next';
|
|
5
6
|
import ModalDialog, { ModalTransition } from '@atlaskit/modal-dialog';
|
|
6
7
|
import { MediaClient } from '@atlaskit/media-client';
|
|
7
8
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
@@ -176,7 +177,7 @@ export class App extends Component {
|
|
|
176
177
|
const {
|
|
177
178
|
isDropzoneActive
|
|
178
179
|
} = this.state;
|
|
179
|
-
|
|
180
|
+
const content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalTransition, null, isVisible && /*#__PURE__*/React.createElement(Provider, {
|
|
180
181
|
store: store
|
|
181
182
|
}, /*#__PURE__*/React.createElement(ModalDialog, {
|
|
182
183
|
onClose: onClose,
|
|
@@ -192,7 +193,10 @@ export class App extends Component {
|
|
|
192
193
|
isActive: isDropzoneActive
|
|
193
194
|
}), /*#__PURE__*/React.createElement(MainEditorView, {
|
|
194
195
|
localUploader: this.localUploader
|
|
195
|
-
})), this.renderClipboard(), this.renderDropzone(), this.renderBrowser())))));
|
|
196
|
+
})), this.renderClipboard(), this.renderDropzone(), this.renderBrowser()))))));
|
|
197
|
+
return this.props.intl ? content : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
198
|
+
locale: "en"
|
|
199
|
+
}, content);
|
|
196
200
|
}
|
|
197
201
|
|
|
198
202
|
renderCurrentView(selectedServiceName) {
|
|
@@ -271,4 +275,6 @@ const mapDispatchToProps = dispatch => ({
|
|
|
271
275
|
onFileClick: (serviceFile, serviceName) => dispatch(fileClick(serviceFile, serviceName))
|
|
272
276
|
});
|
|
273
277
|
|
|
274
|
-
export default connect(mapStateToProps, mapDispatchToProps)(App
|
|
278
|
+
export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(App, {
|
|
279
|
+
enforceContext: false
|
|
280
|
+
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import { Wrapper, Content, Label, Glass } from './styled';
|
|
6
6
|
import { UploadIcon } from './icons';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { connect } from 'react-redux';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
import { Wrapper, InsertButton, CancelButton } from './styled';
|
|
8
8
|
import { startImport, hidePopup, resetView } from '../../actions';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { Component } from 'react';
|
|
@@ -5,7 +6,7 @@ import { connect } from 'react-redux';
|
|
|
5
6
|
import DropdownMenu, { DropdownItemGroup, DropdownItem } from '@atlaskit/dropdown-menu';
|
|
6
7
|
import RefreshIcon from '@atlaskit/icon/glyph/refresh';
|
|
7
8
|
import SettingsIcon from '@atlaskit/icon/glyph/settings';
|
|
8
|
-
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
9
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
9
10
|
import { messages } from '@atlaskit/media-ui';
|
|
10
11
|
import { startAuth } from '../../actions/startAuth';
|
|
11
12
|
import { requestUnlinkCloudAccount } from '../../actions/unlinkCloudAccount';
|
|
@@ -119,12 +120,18 @@ export class Navigation extends Component {
|
|
|
119
120
|
const {
|
|
120
121
|
dropdownOpen
|
|
121
122
|
} = this.state;
|
|
122
|
-
return
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
return function DropdownMenuTrigger({
|
|
124
|
+
triggerRef,
|
|
125
|
+
...providedProps
|
|
126
|
+
}) {
|
|
127
|
+
return /*#__PURE__*/React.createElement(AccountItemButton, _extends({
|
|
128
|
+
isSelected: dropdownOpen,
|
|
129
|
+
iconBefore: /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
130
|
+
label: "account settings"
|
|
131
|
+
}),
|
|
132
|
+
ref: triggerRef
|
|
133
|
+
}, providedProps));
|
|
134
|
+
};
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
getAccountsDropdownItems() {
|
|
@@ -166,7 +173,7 @@ export class Navigation extends Component {
|
|
|
166
173
|
return /*#__PURE__*/React.createElement(AccountDropdownWrapper, null, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
167
174
|
onOpenChange: this.handleOpenChange,
|
|
168
175
|
trigger: this.getAccountButton(),
|
|
169
|
-
|
|
176
|
+
placement: "bottom-end"
|
|
170
177
|
}, items));
|
|
171
178
|
}
|
|
172
179
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { IntlProvider } from 'react-intl-next';
|
|
4
4
|
export default class PassContext extends Component {
|
|
5
5
|
constructor(...args) {
|
|
6
6
|
super(...args);
|
|
7
7
|
|
|
8
8
|
_defineProperty(this, "createDefaultI18nProvider", () => new IntlProvider({
|
|
9
9
|
locale: 'en'
|
|
10
|
-
})
|
|
10
|
+
}));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
getChildContext() {
|
|
@@ -38,5 +38,6 @@ _defineProperty(PassContext, "childContextTypes", {
|
|
|
38
38
|
|
|
39
39
|
getAtlaskitAnalyticsEventHandlers() {},
|
|
40
40
|
|
|
41
|
-
intl
|
|
41
|
+
intl() {}
|
|
42
|
+
|
|
42
43
|
});
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { connect } from 'react-redux';
|
|
5
5
|
import UploadIcon from '@atlaskit/icon/glyph/upload';
|
|
6
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { messages } from '@atlaskit/media-ui';
|
|
8
8
|
import SidebarItem from './item/sidebarItem';
|
|
9
9
|
import { Wrapper, ServiceList, Separator, SeparatorLine } from './styled';
|
|
@@ -6,7 +6,7 @@ import { connect } from 'react-redux';
|
|
|
6
6
|
import AkButton from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import DropboxIcon from '@atlaskit/icon/glyph/dropbox';
|
|
8
8
|
import GoogledriveIcon from '@atlaskit/icon/glyph/googledrive';
|
|
9
|
-
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { messages } from '@atlaskit/media-ui';
|
|
11
11
|
import { startAuth } from '../../../../actions/startAuth';
|
|
12
12
|
import { ButtonWrapper, ConnectWrapper, IconWrapper, TextDescription, Title } from './styled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { messages } from '@atlaskit/media-ui';
|
|
4
|
-
import { injectIntl } from 'react-intl';
|
|
4
|
+
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { EscHelper } from '../escHelper';
|
|
6
6
|
import { CenterView } from '../styles';
|
|
7
7
|
import { ErrorPopup, ErrorIconWrapper, ErrorMessage, ErrorHint, ErrorButton } from './styles';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Component } from 'react';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
import LocalBrowserButton from './uploadButton';
|
|
8
8
|
import { filesIcon } from '../../../../icons';
|
|
@@ -10,7 +10,7 @@ import Flag, { FlagGroup } from '@atlaskit/flag';
|
|
|
10
10
|
import AnnotateIcon from '@atlaskit/icon/glyph/media-services/annotate';
|
|
11
11
|
import TrashIcon from '@atlaskit/icon/glyph/trash';
|
|
12
12
|
import EditorInfoIcon from '@atlaskit/icon/glyph/error';
|
|
13
|
-
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
13
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
14
14
|
import Button from '@atlaskit/button/standard-button';
|
|
15
15
|
import ModalDialog, { ModalTransition, ModalBody, ModalTitle, ModalHeader, ModalFooter } from '@atlaskit/modal-dialog';
|
|
16
16
|
import { messages, InfiniteScroll } from '@atlaskit/media-ui';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { connect } from 'react-redux';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
import { startFileBrowser } from '../../../actions/startFileBrowser';
|
|
8
8
|
export class LocalBrowserButton extends React.Component {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WarningContainer, WarningHeading, WarningIconWrapper, WarningSuggestion } from '../warnings/styles';
|
|
3
3
|
import { messages } from '@atlaskit/media-ui/messages';
|
|
4
|
-
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { errorIcon } from '@atlaskit/media-ui/errorIcon';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -8,9 +8,9 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
8
8
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
9
9
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
10
10
|
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
11
|
+
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; }
|
|
12
12
|
|
|
13
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
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) { _defineProperty(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
|
|
|
15
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
16
|
|
package/dist/esm/domain/file.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
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; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
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) { _defineProperty(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; }
|
|
6
6
|
|
|
7
7
|
export function copyMediaFileForUpload(mediaFile, fileId) {
|
|
8
8
|
return _objectSpread(_objectSpread({}, mediaFile), {}, {
|
|
@@ -10,7 +10,6 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12
12
|
|
|
13
|
-
var NON_TENANT_API_ENDPOINT = 'https://api-private.stg.atlassian.com/object-resolver';
|
|
14
13
|
var TENANT_HOST_REGEX = [/^https:\/\/([^\.]*\.)*atl-paas\.net/, /^https:\/\/([^\.]*\.)*atlassian\.net/, /^https:\/\/([^\.]*\.)*jira-dev\.com/, /^https:\/\/([^\.]*\.)*jira\.com/, /^https:\/\/bitbucket\.org/];
|
|
15
14
|
|
|
16
15
|
var isServerError = function isServerError(response) {
|
|
@@ -133,14 +132,16 @@ export var ForgeClient = /*#__PURE__*/function () {
|
|
|
133
132
|
if (regex.test(window.location.origin)) {
|
|
134
133
|
return "".concat(window.location.origin, "/gateway/api/object-resolver");
|
|
135
134
|
}
|
|
136
|
-
}
|
|
135
|
+
} // MEX-946: as we've planned to remove this feature part of MEX-1099 and it's unshipped,
|
|
136
|
+
// let's not support that use case
|
|
137
|
+
|
|
137
138
|
} catch (err) {
|
|
138
139
|
_iterator.e(err);
|
|
139
140
|
} finally {
|
|
140
141
|
_iterator.f();
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
|
|
144
|
+
throw new Error("Non-tenanted API isn't supported");
|
|
144
145
|
}
|
|
145
146
|
}, {
|
|
146
147
|
key: "invokeProvider",
|
|
@@ -3,7 +3,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
3
3
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import { PluginErrorContainer, PluginErrorDetails, PluginErrorText } from './styled';
|
|
6
|
-
import { FormattedMessage } from 'react-intl';
|
|
6
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
export var PluginErrorView = function PluginErrorView(_ref) {
|
|
8
8
|
var onRetry = _ref.onRetry;
|
|
9
9
|
return /*#__PURE__*/React.createElement(PluginErrorContainer, null, /*#__PURE__*/React.createElement(PluginErrorDetails, null, /*#__PURE__*/React.createElement(WarningIcon, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import FieldText from '@atlaskit/textfield';
|
|
3
3
|
import { PluginHeaderWrapper } from './styled';
|
|
4
|
-
import { injectIntl } from 'react-intl';
|
|
4
|
+
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { messages } from '@atlaskit/media-ui';
|
|
6
6
|
export var PluginHeader = injectIntl(function (_ref) {
|
|
7
7
|
var name = _ref.name,
|
|
@@ -6,9 +6,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
|
|
9
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
9
|
+
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; }
|
|
10
10
|
|
|
11
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
11
|
+
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) { _defineProperty(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; }
|
|
12
12
|
|
|
13
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import AkButton from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { FormattedMessage } from 'react-intl';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
import { auth } from '@atlaskit/outbound-auth-flow-client';
|
|
8
8
|
import { ButtonWrapper, ConnectWrapper, IconWrapper, TextDescription, Title } from './styled';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
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; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
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) { _defineProperty(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; }
|
|
6
6
|
|
|
7
7
|
export var FILE_CLICK = 'FILE_CLICK';
|
|
8
8
|
export function isFileClickAction(action) {
|
|
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import { Component } from 'react';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { connect, Provider } from 'react-redux';
|
|
16
|
+
import { injectIntl, IntlProvider } from 'react-intl-next';
|
|
16
17
|
import ModalDialog, { ModalTransition } from '@atlaskit/modal-dialog';
|
|
17
18
|
import { MediaClient } from '@atlaskit/media-client';
|
|
18
19
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
@@ -193,7 +194,7 @@ export var App = /*#__PURE__*/function (_Component) {
|
|
|
193
194
|
_this$props5$useForge = _this$props5.useForgePlugins,
|
|
194
195
|
useForgePlugins = _this$props5$useForge === void 0 ? false : _this$props5$useForge;
|
|
195
196
|
var isDropzoneActive = this.state.isDropzoneActive;
|
|
196
|
-
|
|
197
|
+
var content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalTransition, null, isVisible && /*#__PURE__*/React.createElement(Provider, {
|
|
197
198
|
store: store
|
|
198
199
|
}, /*#__PURE__*/React.createElement(ModalDialog, {
|
|
199
200
|
onClose: onClose,
|
|
@@ -209,7 +210,10 @@ export var App = /*#__PURE__*/function (_Component) {
|
|
|
209
210
|
isActive: isDropzoneActive
|
|
210
211
|
}), /*#__PURE__*/React.createElement(MainEditorView, {
|
|
211
212
|
localUploader: this.localUploader
|
|
212
|
-
})), this.renderClipboard(), this.renderDropzone(), this.renderBrowser())))));
|
|
213
|
+
})), this.renderClipboard(), this.renderDropzone(), this.renderBrowser()))))));
|
|
214
|
+
return this.props.intl ? content : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
215
|
+
locale: "en"
|
|
216
|
+
}, content);
|
|
213
217
|
}
|
|
214
218
|
}, {
|
|
215
219
|
key: "renderCurrentView",
|
|
@@ -306,4 +310,6 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
306
310
|
};
|
|
307
311
|
};
|
|
308
312
|
|
|
309
|
-
export default connect(mapStateToProps, mapDispatchToProps)(App
|
|
313
|
+
export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(App, {
|
|
314
|
+
enforceContext: false
|
|
315
|
+
}));
|
|
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
10
10
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { Component } from 'react';
|
|
13
|
-
import { FormattedMessage } from 'react-intl';
|
|
13
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
14
14
|
import { messages } from '@atlaskit/media-ui';
|
|
15
15
|
import { Wrapper, Content, Label, Glass } from './styled';
|
|
16
16
|
import { UploadIcon } from './icons';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Component } from 'react';
|
|
14
14
|
import { connect } from 'react-redux';
|
|
15
|
-
import { FormattedMessage } from 'react-intl';
|
|
15
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
16
16
|
import { messages } from '@atlaskit/media-ui';
|
|
17
17
|
import { Wrapper, InsertButton, CancelButton } from './styled';
|
|
18
18
|
import { startImport, hidePopup, resetView } from '../../actions';
|