@atlaskit/media-viewer 52.9.5 → 53.0.0
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 +25 -0
- package/dist/cjs/download.js +3 -3
- package/dist/cjs/errorMessage.js +3 -3
- package/dist/cjs/header.js +6 -6
- package/dist/cjs/item-viewer.js +2 -2
- package/dist/cjs/loading.js +2 -2
- package/dist/cjs/media-viewer.js +3 -3
- package/dist/cjs/styleWrappers.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-folder-entry.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/archive.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/styleWrappers.js +2 -2
- package/dist/cjs/viewers/base-viewer.js +2 -2
- package/dist/cjs/viewers/doc/passwordInput.js +5 -5
- package/dist/cjs/viewers/svg/ImageWrapper-compiled.js +2 -2
- package/dist/cjs/viewers/svg/index.js +2 -2
- package/dist/cjs/zoomControls.js +2 -2
- package/dist/es2019/download.js +1 -1
- package/dist/es2019/errorMessage.js +1 -1
- package/dist/es2019/header.js +1 -1
- package/dist/es2019/item-viewer.js +1 -1
- package/dist/es2019/loading.js +1 -1
- package/dist/es2019/media-viewer.js +1 -1
- package/dist/es2019/styleWrappers.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-folder-entry.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/styleWrappers.js +1 -1
- package/dist/es2019/viewers/base-viewer.js +1 -1
- package/dist/es2019/viewers/doc/passwordInput.js +1 -1
- package/dist/es2019/viewers/svg/ImageWrapper-compiled.js +1 -1
- package/dist/es2019/viewers/svg/index.js +1 -1
- package/dist/es2019/zoomControls.js +1 -1
- package/dist/esm/download.js +1 -1
- package/dist/esm/errorMessage.js +1 -1
- package/dist/esm/header.js +1 -1
- package/dist/esm/item-viewer.js +1 -1
- package/dist/esm/loading.js +1 -1
- package/dist/esm/media-viewer.js +1 -1
- package/dist/esm/styleWrappers.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-folder-entry.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive.js +1 -1
- package/dist/esm/viewers/archiveSidebar/styleWrappers.js +1 -1
- package/dist/esm/viewers/base-viewer.js +1 -1
- package/dist/esm/viewers/doc/passwordInput.js +1 -1
- package/dist/esm/viewers/svg/ImageWrapper-compiled.js +1 -1
- package/dist/esm/viewers/svg/index.js +1 -1
- package/dist/esm/zoomControls.js +1 -1
- package/dist/types/errorMessage.d.ts +1 -1
- package/dist/types/header.d.ts +1 -1
- package/dist/types/styleWrappers.d.ts +5 -5
- package/dist/types/viewers/archiveSidebar/archive-sidebar-folder-entry.d.ts +1 -1
- package/dist/types/viewers/archiveSidebar/styleWrappers.d.ts +2 -2
- package/dist/types/viewers/codeViewer/msg-parser.d.ts +1 -1
- package/dist/types/viewers/doc/passwordInput.d.ts +1 -1
- package/dist/types/zoomControls.d.ts +1 -1
- package/dist/types-ts4.5/errorMessage.d.ts +1 -1
- package/dist/types-ts4.5/header.d.ts +1 -1
- package/dist/types-ts4.5/styleWrappers.d.ts +5 -5
- package/dist/types-ts4.5/viewers/archiveSidebar/archive-sidebar-folder-entry.d.ts +1 -1
- package/dist/types-ts4.5/viewers/archiveSidebar/styleWrappers.d.ts +2 -2
- package/dist/types-ts4.5/viewers/codeViewer/msg-parser.d.ts +1 -1
- package/dist/types-ts4.5/viewers/doc/passwordInput.d.ts +1 -1
- package/dist/types-ts4.5/zoomControls.d.ts +1 -1
- package/package.json +12 -12
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 53.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`770f036c93884`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/770f036c93884) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 52.9.6
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 52.9.5
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/cjs/download.js
CHANGED
|
@@ -16,7 +16,7 @@ var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
|
|
|
16
16
|
var _mediaClient = require("@atlaskit/media-client");
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
var
|
|
19
|
+
var _reactIntl = require("react-intl");
|
|
20
20
|
var _downloadButtonClicked = require("./analytics/events/ui/downloadButtonClicked");
|
|
21
21
|
var _download2 = require("./analytics/events/operational/download");
|
|
22
22
|
var _analytics = require("./analytics");
|
|
@@ -76,7 +76,7 @@ var createItemDownloader = function createItemDownloader(file, mediaClient, opti
|
|
|
76
76
|
}));
|
|
77
77
|
};
|
|
78
78
|
var useDownloadButtonDisabledProps = function useDownloadButtonDisabledProps(mediaClient) {
|
|
79
|
-
var _useIntl = (0,
|
|
79
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
80
80
|
formatMessage = _useIntl.formatMessage;
|
|
81
81
|
var isDisabled = mediaClient.config.enforceDataSecurityPolicy;
|
|
82
82
|
var tooltip = isDisabled ? formatMessage(_mediaUi.messages.download_disabled_security_policy) : undefined;
|
|
@@ -148,7 +148,7 @@ var ErrorViewDownloadButton = exports.ErrorViewDownloadButton = function ErrorVi
|
|
|
148
148
|
mediaClient: mediaClient,
|
|
149
149
|
collectionName: collectionName,
|
|
150
150
|
traceContext: traceContext
|
|
151
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.download)));
|
|
152
152
|
};
|
|
153
153
|
var ToolbarDownloadButton = exports.ToolbarDownloadButton = function ToolbarDownloadButton(_ref5) {
|
|
154
154
|
var state = _ref5.state,
|
package/dist/cjs/errorMessage.js
CHANGED
|
@@ -12,7 +12,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
12
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
17
17
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
18
18
|
var _styleWrappers = require("./styleWrappers");
|
|
@@ -97,7 +97,7 @@ var ErrorMessage = exports.ErrorMessage = /*#__PURE__*/function (_React$Componen
|
|
|
97
97
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
98
98
|
_react.default.createElement("p", {
|
|
99
99
|
key: "p".concat(i)
|
|
100
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, formatMessage))
|
|
101
101
|
);
|
|
102
102
|
})), this.props.children);
|
|
103
103
|
}
|
|
@@ -113,5 +113,5 @@ var ErrorMessage = exports.ErrorMessage = /*#__PURE__*/function (_React$Componen
|
|
|
113
113
|
}
|
|
114
114
|
}]);
|
|
115
115
|
}(_react.default.Component); // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
116
|
-
var ErroMsg = (0, _analyticsNext.withAnalyticsEvents)()((0,
|
|
116
|
+
var ErroMsg = (0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntl.injectIntl)(ErrorMessage));
|
|
117
117
|
var _default = exports.default = ErroMsg;
|
package/dist/cjs/header.js
CHANGED
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _mediaClient = require("@atlaskit/media-client");
|
|
12
12
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
13
13
|
var _codeViewer = require("@atlaskit/media-ui/codeViewer");
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _domain = require("./domain");
|
|
16
16
|
var _styleWrappers = require("./styleWrappers");
|
|
17
17
|
var _download = require("./download");
|
|
@@ -92,9 +92,9 @@ var Header = exports.Header = function Header(_ref) {
|
|
|
92
92
|
// specific cases for if we want a certain word translated in other languages
|
|
93
93
|
switch (ext) {
|
|
94
94
|
case 'msg':
|
|
95
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
95
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.email);
|
|
96
96
|
case 'txt':
|
|
97
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.text);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// no need for translations in other languages
|
|
@@ -112,7 +112,7 @@ var Header = exports.Header = function Header(_ref) {
|
|
|
112
112
|
var message = mediaTypeTranslationMap[mediaType || 'unknown'];
|
|
113
113
|
|
|
114
114
|
// Defaulting to unknown again since backend has more mediaTypes than the current supported ones
|
|
115
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
115
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, message || _mediaUi.messages.unknown);
|
|
116
116
|
};
|
|
117
117
|
return /*#__PURE__*/_react.default.createElement(_styleWrappers.Header, {
|
|
118
118
|
isArchiveSideBarVisible: isArchiveSideBarVisible
|
|
@@ -128,7 +128,7 @@ var Header = exports.Header = function Header(_ref) {
|
|
|
128
128
|
name: item.name
|
|
129
129
|
})), /*#__PURE__*/_react.default.createElement(_styleWrappers.MedatadataTextWrapper, null, /*#__PURE__*/_react.default.createElement(_styleWrappers.MetadataFileName, {
|
|
130
130
|
"data-testid": "media-viewer-file-name"
|
|
131
|
-
}, item.name || /*#__PURE__*/_react.default.createElement(
|
|
131
|
+
}, item.name || /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.unknown)), /*#__PURE__*/_react.default.createElement(_styleWrappers.MetadataSubText, {
|
|
132
132
|
"data-testid": "media-viewer-file-metadata-text"
|
|
133
133
|
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.FormattedMessageWrapper, null, renderFileTypeText(item)), item.size ? ' · ' + (0, _mediaUi.toHumanReadableMediaSize)(item.size) : '')));
|
|
134
134
|
},
|
|
@@ -175,4 +175,4 @@ var Header = exports.Header = function Header(_ref) {
|
|
|
175
175
|
}
|
|
176
176
|
})));
|
|
177
177
|
};
|
|
178
|
-
var _default = exports.default = (0,
|
|
178
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(Header);
|
package/dist/cjs/item-viewer.js
CHANGED
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
13
13
|
var _mediaClient = require("@atlaskit/media-client");
|
|
14
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
17
17
|
var _codeViewer = require("@atlaskit/media-ui/codeViewer");
|
|
18
18
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
@@ -467,7 +467,7 @@ var ItemViewerBase = exports.ItemViewerBase = function ItemViewerBase(_ref2) {
|
|
|
467
467
|
fileState: _fileState,
|
|
468
468
|
fileStateFlags: fileStateFlagsRef.current,
|
|
469
469
|
traceContext: traceContext
|
|
470
|
-
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, /*#__PURE__*/_react.default.createElement(
|
|
470
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.try_downloading_file)), renderDownloadButton(_fileState, error));
|
|
471
471
|
} else {
|
|
472
472
|
return /*#__PURE__*/_react.default.createElement(_errorMessage.default, {
|
|
473
473
|
fileId: (0, _mediaClient.isFileIdentifier)(identifier) ? identifier.id : 'undefined',
|
package/dist/cjs/loading.js
CHANGED
|
@@ -9,10 +9,10 @@ var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
11
11
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var Spinner = exports.Spinner = function Spinner(_ref) {
|
|
14
14
|
(0, _objectDestructuringEmpty2.default)(_ref);
|
|
15
|
-
var intl = (0,
|
|
15
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
16
16
|
return /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
17
17
|
label: intl.formatMessage(_mediaUi.messages.loading_file),
|
|
18
18
|
appearance: "invert",
|
package/dist/cjs/media-viewer.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.MediaViewer = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
14
14
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
15
|
var _analytics = require("./analytics");
|
|
@@ -98,7 +98,7 @@ var MediaViewerComponent = function MediaViewerComponent(_ref) {
|
|
|
98
98
|
featureFlags: featureFlags,
|
|
99
99
|
viewerOptions: viewerOptions
|
|
100
100
|
})), renderSidebar()));
|
|
101
|
-
return intl ? content : /*#__PURE__*/_react.default.createElement(
|
|
101
|
+
return intl ? content : /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
102
102
|
locale: "en"
|
|
103
103
|
}, content);
|
|
104
104
|
};
|
|
@@ -112,6 +112,6 @@ var MediaViewerWithScrollLock = function MediaViewerWithScrollLock(props) {
|
|
|
112
112
|
autoFocus: true
|
|
113
113
|
}, /*#__PURE__*/_react.default.createElement(_reactScrolllock.default, null), /*#__PURE__*/_react.default.createElement(MediaViewerWithRef, props));
|
|
114
114
|
};
|
|
115
|
-
var MediaViewer = exports.MediaViewer = (0,
|
|
115
|
+
var MediaViewer = exports.MediaViewer = (0, _reactIntl.injectIntl)(MediaViewerWithScrollLock, {
|
|
116
116
|
enforceContext: false
|
|
117
117
|
});
|
|
@@ -19,7 +19,7 @@ var _useCallbackRef = require("use-callback-ref");
|
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
20
|
var _primitives = require("@atlaskit/primitives");
|
|
21
21
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
22
|
-
var
|
|
22
|
+
var _reactIntl = require("react-intl");
|
|
23
23
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
24
24
|
var _excluded = ["canDrag", "isDragging", "shouldPixelate", "data-testid", "src", "style", "onLoad", "onError", "alt", "className"];
|
|
25
25
|
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
@@ -250,7 +250,7 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
250
250
|
_onClick = _ref19.onClick,
|
|
251
251
|
style = _ref19.style,
|
|
252
252
|
className = _ref19.className;
|
|
253
|
-
var intl = (0,
|
|
253
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
254
254
|
return (0, _platformFeatureFlags.fg)('platform_media_a11y_suppression_fixes') ? /*#__PURE__*/React.createElement("button", {
|
|
255
255
|
"data-testid": datatestId,
|
|
256
256
|
onClick: function onClick(event) {
|
|
@@ -24,7 +24,7 @@ var _utils = require("../../utils");
|
|
|
24
24
|
var _customButtonItem = require("./custom-button-item");
|
|
25
25
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
26
26
|
var _archiveDownloadButton = require("./archive-download-button");
|
|
27
|
-
var
|
|
27
|
+
var _reactIntl = require("react-intl");
|
|
28
28
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
29
29
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
30
|
var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
|
|
@@ -162,4 +162,4 @@ var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
|
|
|
162
162
|
}
|
|
163
163
|
}]);
|
|
164
164
|
}(_react.default.Component);
|
|
165
|
-
var ArchiveSidebarFolderEntry = exports.ArchiveSidebarFolderEntry = (0,
|
|
165
|
+
var ArchiveSidebarFolderEntry = exports.ArchiveSidebarFolderEntry = (0, _reactIntl.injectIntl)(ArchiveSidebarFolderEntryBase);
|
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
17
|
var _unzipit = require("unzipit");
|
|
18
|
-
var
|
|
18
|
+
var _reactIntl = require("react-intl");
|
|
19
19
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
20
20
|
var _codeViewer = require("@atlaskit/media-ui/codeViewer");
|
|
21
21
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -387,7 +387,7 @@ var ArchiveViewerBase = exports.ArchiveViewerBase = /*#__PURE__*/function (_Base
|
|
|
387
387
|
fileState: item,
|
|
388
388
|
error: error,
|
|
389
389
|
supressAnalytics: true
|
|
390
|
-
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, /*#__PURE__*/_react.default.createElement(
|
|
390
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.try_downloading_file))));
|
|
391
391
|
}
|
|
392
392
|
}]);
|
|
393
393
|
}(_baseViewer.BaseViewer);
|
|
@@ -10,7 +10,7 @@ require("./styleWrappers.compiled.css");
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var React = _react;
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -58,7 +58,7 @@ var ArchiveSidebarFolderWrapper = exports.ArchiveSidebarFolderWrapper = function
|
|
|
58
58
|
var ArchiveDownloadButtonWrapper = exports.ArchiveDownloadButtonWrapper = function ArchiveDownloadButtonWrapper(_ref4) {
|
|
59
59
|
var children = _ref4.children,
|
|
60
60
|
_onClick = _ref4.onClick;
|
|
61
|
-
var intl = (0,
|
|
61
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
62
62
|
return (0, _platformFeatureFlags.fg)('platform_media_a11y_suppression_fixes') ? /*#__PURE__*/React.createElement("button", {
|
|
63
63
|
"aria-label": intl.formatMessage(_mediaUi.messages.archive_download_label_assistive_text),
|
|
64
64
|
onClick: function onClick(event) {
|
|
@@ -13,7 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _deepEqual = _interopRequireDefault(require("deep-equal"));
|
|
19
19
|
var _mediaClient = require("@atlaskit/media-client");
|
|
@@ -103,7 +103,7 @@ var BaseViewer = exports.BaseViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
103
103
|
fileState: item,
|
|
104
104
|
error: error,
|
|
105
105
|
supressAnalytics: true // item-viewer.tsx will send
|
|
106
|
-
}, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.try_downloading_file)), _this2.renderDownloadButton(error));
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -17,7 +17,7 @@ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
|
17
17
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
18
18
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
19
19
|
var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
20
|
-
var
|
|
20
|
+
var _reactIntl = require("react-intl");
|
|
21
21
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
22
22
|
var _primitives = require("@atlaskit/primitives");
|
|
23
23
|
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
@@ -53,7 +53,7 @@ var PasswordInput = exports.PasswordInput = function PasswordInput(_ref) {
|
|
|
53
53
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
54
54
|
formError = _useState2[0],
|
|
55
55
|
setFormError = _useState2[1];
|
|
56
|
-
var intl = (0,
|
|
56
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
57
57
|
(0, _react.useEffect)(function () {
|
|
58
58
|
var _onRenderRef$current;
|
|
59
59
|
(_onRenderRef$current = onRenderRef.current) === null || _onRenderRef$current === void 0 || _onRenderRef$current.call(onRenderRef);
|
|
@@ -82,7 +82,7 @@ var PasswordInput = exports.PasswordInput = function PasswordInput(_ref) {
|
|
|
82
82
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
83
83
|
as: "h1",
|
|
84
84
|
size: "medium"
|
|
85
|
-
}, /*#__PURE__*/React.createElement(
|
|
85
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.password_protected_pdf)))), /*#__PURE__*/React.createElement(_form.Field, {
|
|
86
86
|
name: "password",
|
|
87
87
|
defaultValue: "",
|
|
88
88
|
isRequired: true
|
|
@@ -112,13 +112,13 @@ var PasswordInput = exports.PasswordInput = function PasswordInput(_ref) {
|
|
|
112
112
|
className: (0, _runtime.ax)(["_19pkidpf _18u01b66"])
|
|
113
113
|
}, /*#__PURE__*/React.createElement(_primitives.Text, {
|
|
114
114
|
as: "p"
|
|
115
|
-
}, /*#__PURE__*/React.createElement(
|
|
115
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.incorrect_password)))));
|
|
116
116
|
}), /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
117
117
|
xcss: footerStyles
|
|
118
118
|
}, /*#__PURE__*/React.createElement(_new.default, {
|
|
119
119
|
appearance: "primary",
|
|
120
120
|
type: "submit",
|
|
121
121
|
isLoading: submitting
|
|
122
|
-
}, /*#__PURE__*/React.createElement(
|
|
122
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.submit))));
|
|
123
123
|
});
|
|
124
124
|
};
|
|
@@ -10,7 +10,7 @@ require("./ImageWrapper-compiled.compiled.css");
|
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
var imageWrapperStyles = null;
|
|
@@ -19,7 +19,7 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
19
19
|
var children = _ref.children,
|
|
20
20
|
onClick = _ref.onClick,
|
|
21
21
|
isHidden = _ref.isHidden;
|
|
22
|
-
var intl = (0,
|
|
22
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
23
23
|
return (0, _platformFeatureFlags.fg)('platform_media_a11y_suppression_fixes') ? /*#__PURE__*/_react.default.createElement("button", {
|
|
24
24
|
"data-testid": "media-viewer-svg-wrapper",
|
|
25
25
|
onClick: onClick,
|
|
@@ -20,7 +20,7 @@ var _errors = require("../../errors");
|
|
|
20
20
|
var _utils = require("./utils");
|
|
21
21
|
var _ImageWrapper = require("./ImageWrapper");
|
|
22
22
|
var _errors2 = require("./errors");
|
|
23
|
-
var
|
|
23
|
+
var _reactIntl = require("react-intl");
|
|
24
24
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
25
|
var SvgViewerBase = function SvgViewerBase(_ref) {
|
|
26
26
|
var identifier = _ref.identifier,
|
|
@@ -49,7 +49,7 @@ var SvgViewerBase = function SvgViewerBase(_ref) {
|
|
|
49
49
|
_useState0 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
50
50
|
wrapperScroll = _useState0[0],
|
|
51
51
|
setWrapperScroll = _useState0[1];
|
|
52
|
-
var intl = (0,
|
|
52
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
53
53
|
var onResize = (0, _react.useCallback)(function () {
|
|
54
54
|
if (!wrapperRef.current || !camera) {
|
|
55
55
|
return;
|
package/dist/cjs/zoomControls.js
CHANGED
|
@@ -21,7 +21,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
21
21
|
var _analytics = require("./analytics/");
|
|
22
22
|
var _zoomInButtonClicked = require("./analytics/events/ui/zoomInButtonClicked");
|
|
23
23
|
var _zoomOutButtonClicked = require("./analytics/events/ui/zoomOutButtonClicked");
|
|
24
|
-
var
|
|
24
|
+
var _reactIntl = require("react-intl");
|
|
25
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
26
26
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
27
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -91,4 +91,4 @@ var ZoomControlsBase = exports.ZoomControlsBase = /*#__PURE__*/function (_Compon
|
|
|
91
91
|
}
|
|
92
92
|
}]);
|
|
93
93
|
}(_react.Component); // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
94
|
-
var ZoomControls = exports.ZoomControls = (0, _analyticsNext.withAnalyticsEvents)({})((0,
|
|
94
|
+
var ZoomControls = exports.ZoomControls = (0, _analyticsNext.withAnalyticsEvents)({})((0, _reactIntl.injectIntl)(ZoomControlsBase));
|
package/dist/es2019/download.js
CHANGED
|
@@ -4,7 +4,7 @@ import DownloadIcon from '@atlaskit/icon/core/download';
|
|
|
4
4
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
5
5
|
import { MediaButton, messages } from '@atlaskit/media-ui';
|
|
6
6
|
import React, { useCallback, useState } from 'react';
|
|
7
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
7
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
8
|
import { createDownloadButtonClickedEvent } from './analytics/events/ui/downloadButtonClicked';
|
|
9
9
|
import { createDownloadFailedEventPayload, createDownloadSucceededEventPayload } from './analytics/events/operational/download';
|
|
10
10
|
import { fireAnalytics } from './analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
2
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
3
3
|
import { messages as i18nMessages } from '@atlaskit/media-ui';
|
|
4
4
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
5
|
import { ErrorMessageWrapper, ErrorImage } from './styleWrappers';
|
package/dist/es2019/header.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from 'react';
|
|
|
2
2
|
import { isExternalImageIdentifier, isErrorFileState, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
3
3
|
import { hideControlsClassName, messages, toHumanReadableMediaSize, MediaButton } from '@atlaskit/media-ui';
|
|
4
4
|
import { getLanguageType, getExtension, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
5
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
5
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
6
6
|
import { Outcome } from './domain';
|
|
7
7
|
import { Header as HeaderWrapper, LeftHeader, RightHeader, MetadataWrapper, MetadataSubText, MedatadataTextWrapper, MetadataIconWrapper, MetadataFileName, FormattedMessageWrapper } from './styleWrappers';
|
|
8
8
|
import { ToolbarDownloadButton, DisabledToolbarDownloadButton } from './download';
|
|
@@ -3,7 +3,7 @@ import React, { Suspense, useCallback, useEffect, useState, useRef } from 'react
|
|
|
3
3
|
import Loadable from 'react-loadable';
|
|
4
4
|
import { isExternalImageIdentifier, isFileIdentifier, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
5
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
6
|
-
import { FormattedMessage } from 'react-intl
|
|
6
|
+
import { FormattedMessage } from 'react-intl';
|
|
7
7
|
import { messages } from '@atlaskit/media-ui';
|
|
8
8
|
import { isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
9
9
|
import { useFileState, useMediaClient } from '@atlaskit/media-client-react';
|
package/dist/es2019/loading.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AkSpinner from '@atlaskit/spinner';
|
|
3
3
|
import { messages } from '@atlaskit/media-ui';
|
|
4
|
-
import { useIntl } from 'react-intl
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
5
|
export const Spinner = ({}) => {
|
|
6
6
|
const intl = useIntl();
|
|
7
7
|
return /*#__PURE__*/React.createElement(AkSpinner, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useState, useLayoutEffect, useRef } from 'react';
|
|
3
|
-
import { IntlProvider, injectIntl } from 'react-intl
|
|
3
|
+
import { IntlProvider, injectIntl } from 'react-intl';
|
|
4
4
|
import { Shortcut } from '@atlaskit/media-ui';
|
|
5
5
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
6
|
import { fireAnalytics } from './analytics';
|
|
@@ -12,7 +12,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
13
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
14
14
|
import Heading from '@atlaskit/heading';
|
|
15
|
-
import { useIntl } from 'react-intl
|
|
15
|
+
import { useIntl } from 'react-intl';
|
|
16
16
|
import { messages } from '@atlaskit/media-ui';
|
|
17
17
|
const blanketStyles = null;
|
|
18
18
|
const headerWrapperStyles = null;
|
|
@@ -10,7 +10,7 @@ import { getMediaTypeFromFilename, isMacPrivateFile, rejectAfter } from '../../u
|
|
|
10
10
|
import { CustomButtonItem } from './custom-button-item';
|
|
11
11
|
import { messages } from '@atlaskit/media-ui';
|
|
12
12
|
import { ArchiveDownloadButton } from './archive-download-button';
|
|
13
|
-
import { injectIntl } from 'react-intl
|
|
13
|
+
import { injectIntl } from 'react-intl';
|
|
14
14
|
class ArchiveSidebarFolderEntryBase extends React.Component {
|
|
15
15
|
constructor(...args) {
|
|
16
16
|
super(...args);
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { unzip, HTTPRangeReader } from 'unzipit';
|
|
5
|
-
import { FormattedMessage } from 'react-intl
|
|
5
|
+
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import { CustomMediaPlayer, messages } from '@atlaskit/media-ui';
|
|
7
7
|
import { getLanguageType, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
8
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
import { messages } from '@atlaskit/media-ui';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
export const ARCHIVE_SIDE_BAR_WIDTH = 300;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
|
-
import { FormattedMessage } from 'react-intl
|
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import deepEqual from 'deep-equal';
|
|
6
6
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
@@ -8,7 +8,7 @@ import Button from '@atlaskit/button/new';
|
|
|
8
8
|
import TextField from '@atlaskit/textfield';
|
|
9
9
|
import LockIcon from '@atlaskit/icon/core/lock-locked';
|
|
10
10
|
import Form, { Field } from '@atlaskit/form';
|
|
11
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
11
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
12
12
|
import { messages } from '@atlaskit/media-ui';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
|
|
@@ -3,7 +3,7 @@ import "./ImageWrapper-compiled.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
const imageWrapperStyles = null;
|
|
9
9
|
const dynamicImageWrapperStyles = null;
|
|
@@ -11,7 +11,7 @@ import { MediaViewerError } from '../../errors';
|
|
|
11
11
|
import { clientRectangle, naturalSizeRectangle, zoomLevelAfterResize } from './utils';
|
|
12
12
|
import { ImageWrapper } from './ImageWrapper';
|
|
13
13
|
import { getErrorReason } from './errors';
|
|
14
|
-
import { useIntl } from 'react-intl
|
|
14
|
+
import { useIntl } from 'react-intl';
|
|
15
15
|
const SvgViewerBase = ({
|
|
16
16
|
identifier,
|
|
17
17
|
onLoad,
|
|
@@ -9,7 +9,7 @@ import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
9
9
|
import { fireAnalytics } from './analytics/';
|
|
10
10
|
import { createZoomInButtonClickEvent } from './analytics/events/ui/zoomInButtonClicked';
|
|
11
11
|
import { createZoomOutButtonClickedEvent } from './analytics/events/ui/zoomOutButtonClicked';
|
|
12
|
-
import { injectIntl } from 'react-intl
|
|
12
|
+
import { injectIntl } from 'react-intl';
|
|
13
13
|
import { messages } from '@atlaskit/media-ui';
|
|
14
14
|
export class ZoomControlsBase extends Component {
|
|
15
15
|
constructor(...args) {
|
package/dist/esm/download.js
CHANGED
|
@@ -9,7 +9,7 @@ import DownloadIcon from '@atlaskit/icon/core/download';
|
|
|
9
9
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
10
10
|
import { MediaButton, messages } from '@atlaskit/media-ui';
|
|
11
11
|
import React, { useCallback, useState } from 'react';
|
|
12
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
12
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
13
13
|
import { createDownloadButtonClickedEvent } from './analytics/events/ui/downloadButtonClicked';
|
|
14
14
|
import { createDownloadFailedEventPayload, createDownloadSucceededEventPayload } from './analytics/events/operational/download';
|
|
15
15
|
import { fireAnalytics } from './analytics';
|
package/dist/esm/errorMessage.js
CHANGED
|
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
12
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
13
13
|
import { messages as i18nMessages } from '@atlaskit/media-ui';
|
|
14
14
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
15
|
import { ErrorMessageWrapper, ErrorImage } from './styleWrappers';
|
package/dist/esm/header.js
CHANGED
|
@@ -3,7 +3,7 @@ import React, { useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
import { isExternalImageIdentifier, isErrorFileState, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
4
4
|
import { hideControlsClassName, messages, toHumanReadableMediaSize, MediaButton } from '@atlaskit/media-ui';
|
|
5
5
|
import { getLanguageType, getExtension, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
6
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
6
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
7
7
|
import { Outcome } from './domain';
|
|
8
8
|
import { Header as HeaderWrapper, LeftHeader, RightHeader, MetadataWrapper, MetadataSubText, MedatadataTextWrapper, MetadataIconWrapper, MetadataFileName, FormattedMessageWrapper } from './styleWrappers';
|
|
9
9
|
import { ToolbarDownloadButton, DisabledToolbarDownloadButton } from './download';
|
package/dist/esm/item-viewer.js
CHANGED
|
@@ -4,7 +4,7 @@ import React, { Suspense, useCallback, useEffect, useState, useRef } from 'react
|
|
|
4
4
|
import Loadable from 'react-loadable';
|
|
5
5
|
import { isExternalImageIdentifier, isFileIdentifier, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
6
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
|
-
import { FormattedMessage } from 'react-intl
|
|
7
|
+
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import { messages } from '@atlaskit/media-ui';
|
|
9
9
|
import { isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
10
10
|
import { useFileState, useMediaClient } from '@atlaskit/media-client-react';
|
package/dist/esm/loading.js
CHANGED
|
@@ -2,7 +2,7 @@ import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructurin
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import AkSpinner from '@atlaskit/spinner';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
export var Spinner = function Spinner(_ref) {
|
|
7
7
|
_objectDestructuringEmpty(_ref);
|
|
8
8
|
var intl = useIntl();
|
package/dist/esm/media-viewer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useState, useLayoutEffect, useRef } from 'react';
|
|
4
|
-
import { IntlProvider, injectIntl } from 'react-intl
|
|
4
|
+
import { IntlProvider, injectIntl } from 'react-intl';
|
|
5
5
|
import { Shortcut } from '@atlaskit/media-ui';
|
|
6
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
7
|
import { fireAnalytics } from './analytics';
|
|
@@ -17,7 +17,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
18
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
19
19
|
import Heading from '@atlaskit/heading';
|
|
20
|
-
import { useIntl } from 'react-intl
|
|
20
|
+
import { useIntl } from 'react-intl';
|
|
21
21
|
import { messages } from '@atlaskit/media-ui';
|
|
22
22
|
var blanketStyles = null;
|
|
23
23
|
var headerWrapperStyles = null;
|
|
@@ -19,7 +19,7 @@ import { getMediaTypeFromFilename, isMacPrivateFile, rejectAfter } from '../../u
|
|
|
19
19
|
import { CustomButtonItem } from './custom-button-item';
|
|
20
20
|
import { messages } from '@atlaskit/media-ui';
|
|
21
21
|
import { ArchiveDownloadButton } from './archive-download-button';
|
|
22
|
-
import { injectIntl } from 'react-intl
|
|
22
|
+
import { injectIntl } from 'react-intl';
|
|
23
23
|
var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
|
|
24
24
|
function ArchiveSidebarFolderEntryBase() {
|
|
25
25
|
var _this;
|
|
@@ -13,7 +13,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
13
13
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { unzip, HTTPRangeReader } from 'unzipit';
|
|
16
|
-
import { FormattedMessage } from 'react-intl
|
|
16
|
+
import { FormattedMessage } from 'react-intl';
|
|
17
17
|
import { CustomMediaPlayer, messages } from '@atlaskit/media-ui';
|
|
18
18
|
import { getLanguageType, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
19
19
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
import { messages } from '@atlaskit/media-ui';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
export var ARCHIVE_SIDE_BAR_WIDTH = 300;
|
|
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React, { Fragment } from 'react';
|
|
12
|
-
import { FormattedMessage } from 'react-intl
|
|
12
|
+
import { FormattedMessage } from 'react-intl';
|
|
13
13
|
import { messages } from '@atlaskit/media-ui';
|
|
14
14
|
import deepEqual from 'deep-equal';
|
|
15
15
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
@@ -9,7 +9,7 @@ import Button from '@atlaskit/button/new';
|
|
|
9
9
|
import TextField from '@atlaskit/textfield';
|
|
10
10
|
import LockIcon from '@atlaskit/icon/core/lock-locked';
|
|
11
11
|
import Form, { Field } from '@atlaskit/form';
|
|
12
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
12
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
13
13
|
import { messages } from '@atlaskit/media-ui';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
15
|
import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
|
|
@@ -3,7 +3,7 @@ import "./ImageWrapper-compiled.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
var imageWrapperStyles = null;
|
|
9
9
|
var dynamicImageWrapperStyles = null;
|
|
@@ -12,7 +12,7 @@ import { MediaViewerError } from '../../errors';
|
|
|
12
12
|
import { clientRectangle, naturalSizeRectangle, zoomLevelAfterResize } from './utils';
|
|
13
13
|
import { ImageWrapper } from './ImageWrapper';
|
|
14
14
|
import { getErrorReason } from './errors';
|
|
15
|
-
import { useIntl } from 'react-intl
|
|
15
|
+
import { useIntl } from 'react-intl';
|
|
16
16
|
var SvgViewerBase = function SvgViewerBase(_ref) {
|
|
17
17
|
var identifier = _ref.identifier,
|
|
18
18
|
onLoad = _ref.onLoad,
|
package/dist/esm/zoomControls.js
CHANGED
|
@@ -16,7 +16,7 @@ import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
16
16
|
import { fireAnalytics } from './analytics/';
|
|
17
17
|
import { createZoomInButtonClickEvent } from './analytics/events/ui/zoomInButtonClicked';
|
|
18
18
|
import { createZoomOutButtonClickedEvent } from './analytics/events/ui/zoomOutButtonClicked';
|
|
19
|
-
import { injectIntl } from 'react-intl
|
|
19
|
+
import { injectIntl } from 'react-intl';
|
|
20
20
|
import { messages } from '@atlaskit/media-ui';
|
|
21
21
|
export var ZoomControlsBase = /*#__PURE__*/function (_Component) {
|
|
22
22
|
function ZoomControlsBase() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl
|
|
3
|
+
import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import { type FileState } from '@atlaskit/media-client';
|
|
5
5
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
6
|
import { type PrimaryErrorReason, type SecondaryErrorReason, type MediaViewerError } from './errors';
|
package/dist/types/header.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Identifier } from '@atlaskit/media-client';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
3
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import { type MediaViewerExtensions } from './components/types';
|
|
5
5
|
import { type MediaFeatureFlags, type MediaTraceContext } from '@atlaskit/media-common';
|
|
6
6
|
export type Props = {
|
|
@@ -13,7 +13,7 @@ type DataTestID = {
|
|
|
13
13
|
'data-testid'?: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
type BlanketProps = DataTestID & Children & ClassName;
|
|
16
|
-
export declare const Blanket: ({ "data-testid": datatestId, className, children }: BlanketProps) => JSX.Element;
|
|
16
|
+
export declare const Blanket: ({ "data-testid": datatestId, className, children, }: BlanketProps) => JSX.Element;
|
|
17
17
|
type HeaderWrapperProps = {
|
|
18
18
|
isArchiveSideBarVisible: boolean;
|
|
19
19
|
};
|
|
@@ -30,7 +30,7 @@ export declare const CloseButtonWrapper: ({ className, children }: ClassName & C
|
|
|
30
30
|
type ContentWrapperProps = {
|
|
31
31
|
isSidebarVisible: boolean | undefined;
|
|
32
32
|
} & Children;
|
|
33
|
-
export declare const ContentWrapper: ({ isSidebarVisible, children }: ContentWrapperProps) => JSX.Element;
|
|
33
|
+
export declare const ContentWrapper: ({ isSidebarVisible, children, }: ContentWrapperProps) => JSX.Element;
|
|
34
34
|
export declare const ZoomWrapper: ({ className, children }: ClassName & Children) => JSX.Element;
|
|
35
35
|
export declare const ZoomCenterControls: ({ children }: Children) => JSX.Element;
|
|
36
36
|
export declare const ZoomRightControls: ({ children }: Children) => JSX.Element;
|
|
@@ -54,7 +54,7 @@ export declare const Arrow: ({ className, children }: ClassName & Children) => J
|
|
|
54
54
|
export type LeftWrapperProps = {
|
|
55
55
|
isArchiveSideBarVisible: boolean;
|
|
56
56
|
};
|
|
57
|
-
export declare const LeftWrapper: ({ children, isArchiveSideBarVisible }: Children & LeftWrapperProps) => JSX.Element;
|
|
57
|
+
export declare const LeftWrapper: ({ children, isArchiveSideBarVisible, }: Children & LeftWrapperProps) => JSX.Element;
|
|
58
58
|
export declare const RightWrapper: ({ children }: Children) => JSX.Element;
|
|
59
59
|
export type HeaderProps = {
|
|
60
60
|
isArchiveSideBarVisible: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const MetadataWrapper: ({ children }: Children) => JSX.Element;
|
|
|
87
87
|
type MetadataFileNameProps = DataTestID & Children;
|
|
88
88
|
export declare const MetadataFileName: ({ "data-testid": datatestId, children, }: MetadataFileNameProps) => JSX.Element;
|
|
89
89
|
type MetadataSubTextProps = DataTestID & Children;
|
|
90
|
-
export declare const MetadataSubText: ({ "data-testid": datatestId, children }: MetadataSubTextProps) => JSX.Element;
|
|
90
|
+
export declare const MetadataSubText: ({ "data-testid": datatestId, children, }: MetadataSubTextProps) => JSX.Element;
|
|
91
91
|
export declare const MetadataIconWrapper: ({ children }: Children) => JSX.Element;
|
|
92
92
|
export interface IconWrapperProps {
|
|
93
93
|
type: MediaType;
|
|
@@ -116,7 +116,7 @@ export declare const DownloadButtonWrapper: ({ children }: Children) => JSX.Elem
|
|
|
116
116
|
type CustomVideoPlayerWrapperProps = DataTestID & Children;
|
|
117
117
|
export declare const CustomVideoPlayerWrapper: ({ "data-testid": datatestId, children, }: CustomVideoPlayerWrapperProps) => JSX.Element;
|
|
118
118
|
type SidebarWrapperProps = DataTestID & Children;
|
|
119
|
-
export declare const SidebarWrapper: ({ "data-testid": datatestId, children }: SidebarWrapperProps) => JSX.Element;
|
|
119
|
+
export declare const SidebarWrapper: ({ "data-testid": datatestId, children, }: SidebarWrapperProps) => JSX.Element;
|
|
120
120
|
export declare const SpinnerWrapper: ({ children }: Children) => JSX.Element;
|
|
121
121
|
export declare const FormattedMessageWrapper: ({ children }: Children) => JSX.Element;
|
|
122
122
|
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type ZipEntry } from 'unzipit';
|
|
3
3
|
import { type MediaClient } from '@atlaskit/media-client';
|
|
4
4
|
import { type ArchiveViewerError } from '../../errors';
|
|
5
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl
|
|
5
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
6
6
|
type Entries = {
|
|
7
7
|
[key: string]: ZipEntry;
|
|
8
8
|
};
|
|
@@ -15,10 +15,10 @@ export declare const ArchiveItemViewerWrapper: ({ children, fullHeight, }: Child
|
|
|
15
15
|
}) => JSX.Element;
|
|
16
16
|
export declare const ArchiveSideBar: ForwardRefExoticComponent<Children & RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export declare const ArchiveSidebarFolderWrapper: ({ children }: Children) => JSX.Element;
|
|
18
|
-
export declare const ArchiveDownloadButtonWrapper: ({ children, onClick }: Children & OnClick) => JSX.Element;
|
|
18
|
+
export declare const ArchiveDownloadButtonWrapper: ({ children, onClick, }: Children & OnClick) => JSX.Element;
|
|
19
19
|
export declare const DisabledArchiveDownloadButtonWrapper: ({ children }: Children) => JSX.Element;
|
|
20
20
|
export declare const SidebarItemWrapper: ({ children }: Children) => JSX.Element;
|
|
21
|
-
export declare const ArchiveSidebarFileEntryWrapper: ({ children, index }: {
|
|
21
|
+
export declare const ArchiveSidebarFileEntryWrapper: ({ children, index, }: {
|
|
22
22
|
index: Key;
|
|
23
23
|
} & Children) => JSX.Element;
|
|
24
24
|
export declare const ArchiveLayout: ({ children }: Children) => JSX.Element;
|
|
@@ -5,4 +5,4 @@ export declare function formatMessage(text: string): string;
|
|
|
5
5
|
export declare function parseHeaders(headers: string): {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function getMsgDate(rawHeaders: string): Date |
|
|
8
|
+
export declare function getMsgDate(rawHeaders: string): Date | '-';
|
|
@@ -6,5 +6,5 @@ interface PDFPasswordInputProps {
|
|
|
6
6
|
hasPasswordError?: boolean;
|
|
7
7
|
onRender?: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const PasswordInput: ({ onSubmit, hasPasswordError, onRender }: PDFPasswordInputProps) => JSX.Element;
|
|
9
|
+
export declare const PasswordInput: ({ onSubmit, hasPasswordError, onRender, }: PDFPasswordInputProps) => JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { type ZoomLevel } from './domain/zoomLevel';
|
|
4
4
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
5
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
6
6
|
export type ZoomControlsProps = React.PropsWithChildren<Readonly<{
|
|
7
7
|
onChange: (newZoomLevel: ZoomLevel) => void;
|
|
8
8
|
zoomLevel: ZoomLevel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl
|
|
3
|
+
import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import { type FileState } from '@atlaskit/media-client';
|
|
5
5
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
6
|
import { type PrimaryErrorReason, type SecondaryErrorReason, type MediaViewerError } from './errors';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Identifier } from '@atlaskit/media-client';
|
|
3
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
3
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import { type MediaViewerExtensions } from './components/types';
|
|
5
5
|
import { type MediaFeatureFlags, type MediaTraceContext } from '@atlaskit/media-common';
|
|
6
6
|
export type Props = {
|
|
@@ -13,7 +13,7 @@ type DataTestID = {
|
|
|
13
13
|
'data-testid'?: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
type BlanketProps = DataTestID & Children & ClassName;
|
|
16
|
-
export declare const Blanket: ({ "data-testid": datatestId, className, children }: BlanketProps) => JSX.Element;
|
|
16
|
+
export declare const Blanket: ({ "data-testid": datatestId, className, children, }: BlanketProps) => JSX.Element;
|
|
17
17
|
type HeaderWrapperProps = {
|
|
18
18
|
isArchiveSideBarVisible: boolean;
|
|
19
19
|
};
|
|
@@ -30,7 +30,7 @@ export declare const CloseButtonWrapper: ({ className, children }: ClassName & C
|
|
|
30
30
|
type ContentWrapperProps = {
|
|
31
31
|
isSidebarVisible: boolean | undefined;
|
|
32
32
|
} & Children;
|
|
33
|
-
export declare const ContentWrapper: ({ isSidebarVisible, children }: ContentWrapperProps) => JSX.Element;
|
|
33
|
+
export declare const ContentWrapper: ({ isSidebarVisible, children, }: ContentWrapperProps) => JSX.Element;
|
|
34
34
|
export declare const ZoomWrapper: ({ className, children }: ClassName & Children) => JSX.Element;
|
|
35
35
|
export declare const ZoomCenterControls: ({ children }: Children) => JSX.Element;
|
|
36
36
|
export declare const ZoomRightControls: ({ children }: Children) => JSX.Element;
|
|
@@ -54,7 +54,7 @@ export declare const Arrow: ({ className, children }: ClassName & Children) => J
|
|
|
54
54
|
export type LeftWrapperProps = {
|
|
55
55
|
isArchiveSideBarVisible: boolean;
|
|
56
56
|
};
|
|
57
|
-
export declare const LeftWrapper: ({ children, isArchiveSideBarVisible }: Children & LeftWrapperProps) => JSX.Element;
|
|
57
|
+
export declare const LeftWrapper: ({ children, isArchiveSideBarVisible, }: Children & LeftWrapperProps) => JSX.Element;
|
|
58
58
|
export declare const RightWrapper: ({ children }: Children) => JSX.Element;
|
|
59
59
|
export type HeaderProps = {
|
|
60
60
|
isArchiveSideBarVisible: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const MetadataWrapper: ({ children }: Children) => JSX.Element;
|
|
|
87
87
|
type MetadataFileNameProps = DataTestID & Children;
|
|
88
88
|
export declare const MetadataFileName: ({ "data-testid": datatestId, children, }: MetadataFileNameProps) => JSX.Element;
|
|
89
89
|
type MetadataSubTextProps = DataTestID & Children;
|
|
90
|
-
export declare const MetadataSubText: ({ "data-testid": datatestId, children }: MetadataSubTextProps) => JSX.Element;
|
|
90
|
+
export declare const MetadataSubText: ({ "data-testid": datatestId, children, }: MetadataSubTextProps) => JSX.Element;
|
|
91
91
|
export declare const MetadataIconWrapper: ({ children }: Children) => JSX.Element;
|
|
92
92
|
export interface IconWrapperProps {
|
|
93
93
|
type: MediaType;
|
|
@@ -116,7 +116,7 @@ export declare const DownloadButtonWrapper: ({ children }: Children) => JSX.Elem
|
|
|
116
116
|
type CustomVideoPlayerWrapperProps = DataTestID & Children;
|
|
117
117
|
export declare const CustomVideoPlayerWrapper: ({ "data-testid": datatestId, children, }: CustomVideoPlayerWrapperProps) => JSX.Element;
|
|
118
118
|
type SidebarWrapperProps = DataTestID & Children;
|
|
119
|
-
export declare const SidebarWrapper: ({ "data-testid": datatestId, children }: SidebarWrapperProps) => JSX.Element;
|
|
119
|
+
export declare const SidebarWrapper: ({ "data-testid": datatestId, children, }: SidebarWrapperProps) => JSX.Element;
|
|
120
120
|
export declare const SpinnerWrapper: ({ children }: Children) => JSX.Element;
|
|
121
121
|
export declare const FormattedMessageWrapper: ({ children }: Children) => JSX.Element;
|
|
122
122
|
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type ZipEntry } from 'unzipit';
|
|
3
3
|
import { type MediaClient } from '@atlaskit/media-client';
|
|
4
4
|
import { type ArchiveViewerError } from '../../errors';
|
|
5
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl
|
|
5
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
6
6
|
type Entries = {
|
|
7
7
|
[key: string]: ZipEntry;
|
|
8
8
|
};
|
|
@@ -15,10 +15,10 @@ export declare const ArchiveItemViewerWrapper: ({ children, fullHeight, }: Child
|
|
|
15
15
|
}) => JSX.Element;
|
|
16
16
|
export declare const ArchiveSideBar: ForwardRefExoticComponent<Children & RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export declare const ArchiveSidebarFolderWrapper: ({ children }: Children) => JSX.Element;
|
|
18
|
-
export declare const ArchiveDownloadButtonWrapper: ({ children, onClick }: Children & OnClick) => JSX.Element;
|
|
18
|
+
export declare const ArchiveDownloadButtonWrapper: ({ children, onClick, }: Children & OnClick) => JSX.Element;
|
|
19
19
|
export declare const DisabledArchiveDownloadButtonWrapper: ({ children }: Children) => JSX.Element;
|
|
20
20
|
export declare const SidebarItemWrapper: ({ children }: Children) => JSX.Element;
|
|
21
|
-
export declare const ArchiveSidebarFileEntryWrapper: ({ children, index }: {
|
|
21
|
+
export declare const ArchiveSidebarFileEntryWrapper: ({ children, index, }: {
|
|
22
22
|
index: Key;
|
|
23
23
|
} & Children) => JSX.Element;
|
|
24
24
|
export declare const ArchiveLayout: ({ children }: Children) => JSX.Element;
|
|
@@ -5,4 +5,4 @@ export declare function formatMessage(text: string): string;
|
|
|
5
5
|
export declare function parseHeaders(headers: string): {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function getMsgDate(rawHeaders: string): Date |
|
|
8
|
+
export declare function getMsgDate(rawHeaders: string): Date | '-';
|
|
@@ -6,5 +6,5 @@ interface PDFPasswordInputProps {
|
|
|
6
6
|
hasPasswordError?: boolean;
|
|
7
7
|
onRender?: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const PasswordInput: ({ onSubmit, hasPasswordError, onRender }: PDFPasswordInputProps) => JSX.Element;
|
|
9
|
+
export declare const PasswordInput: ({ onSubmit, hasPasswordError, onRender, }: PDFPasswordInputProps) => JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { type ZoomLevel } from './domain/zoomLevel';
|
|
4
4
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
5
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
6
6
|
export type ZoomControlsProps = React.PropsWithChildren<Readonly<{
|
|
7
7
|
onChange: (newZoomLevel: ZoomLevel) => void;
|
|
8
8
|
zoomLevel: ZoomLevel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "53.0.0",
|
|
4
4
|
"description": "MediaViewer is Atlassian's powerful solution for viewing files on the web. It's both powerful and extendable yet easy-to-integrate",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"@atlaskit/css": "^0.19.0",
|
|
38
38
|
"@atlaskit/form": "^15.5.0",
|
|
39
39
|
"@atlaskit/heading": "^5.4.0",
|
|
40
|
-
"@atlaskit/icon": "^34.
|
|
40
|
+
"@atlaskit/icon": "^34.2.0",
|
|
41
41
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
42
|
-
"@atlaskit/icon-lab": "^6.
|
|
42
|
+
"@atlaskit/icon-lab": "^6.5.0",
|
|
43
43
|
"@atlaskit/media-client": "^36.0.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
45
45
|
"@atlaskit/media-common": "^13.0.0",
|
|
46
46
|
"@atlaskit/media-document-viewer": "^0.6.0",
|
|
47
47
|
"@atlaskit/media-svg": "^2.2.0",
|
|
48
|
-
"@atlaskit/media-ui": "^
|
|
48
|
+
"@atlaskit/media-ui": "^29.0.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/portal": "^5.4.0",
|
|
51
|
-
"@atlaskit/primitives": "^
|
|
52
|
-
"@atlaskit/side-navigation": "^11.
|
|
51
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
52
|
+
"@atlaskit/side-navigation": "^11.2.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.1.0",
|
|
54
54
|
"@atlaskit/textfield": "^8.3.0",
|
|
55
|
-
"@atlaskit/theme": "^23.
|
|
56
|
-
"@atlaskit/tokens": "^
|
|
55
|
+
"@atlaskit/theme": "^23.1.0",
|
|
56
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
57
57
|
"@atlaskit/tooltip": "^21.1.0",
|
|
58
58
|
"@atlaskit/ufo": "^0.4.0",
|
|
59
59
|
"@babel/runtime": "^7.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@emotion/react": "^11.7.1",
|
|
80
80
|
"react": "^18.2.0",
|
|
81
|
-
"react-intl
|
|
81
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@af/integration-testing": "workspace:^",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
89
89
|
"@atlaskit/media-state": "^2.0.0",
|
|
90
90
|
"@atlaskit/media-test-data": "^3.2.0",
|
|
91
|
-
"@atlaskit/media-test-helpers": "^
|
|
91
|
+
"@atlaskit/media-test-helpers": "^41.0.0",
|
|
92
92
|
"@atlaskit/ssr": "workspace:^",
|
|
93
|
-
"@atlaskit/toggle": "^15.
|
|
93
|
+
"@atlaskit/toggle": "^15.6.0",
|
|
94
94
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
95
95
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
96
96
|
"@atlassian/ufo": "^0.7.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"exenv": "^1.2.2",
|
|
106
106
|
"jsverify": "^0.8.3",
|
|
107
107
|
"react-dom": "^18.2.0",
|
|
108
|
-
"react-intl
|
|
108
|
+
"react-intl": "^6.6.2",
|
|
109
109
|
"rxjs": "^5.5.0",
|
|
110
110
|
"wait-for-expect": "^1.2.0"
|
|
111
111
|
},
|
package/report.api.md
CHANGED
|
@@ -122,7 +122,7 @@ type MediaViewerWithMediaClientConfigProps = WithMediaClientConfigProps<MediaVie
|
|
|
122
122
|
{
|
|
123
123
|
"@emotion/react": "^11.7.1",
|
|
124
124
|
"react": "^16.8.0",
|
|
125
|
-
"react-intl
|
|
125
|
+
"react-intl": "npm:react-intl@^5.18.1"
|
|
126
126
|
}
|
|
127
127
|
```
|
|
128
128
|
|