@atlaskit/media-viewer 54.12.26 → 54.12.28
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 +14 -0
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/media-viewer.js +8 -3
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/media-viewer.js +8 -3
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/media-viewer.js +8 -3
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 54.12.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7d1777807f0b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7d1777807f0b0) -
|
|
8
|
+
Return keyboard focus to the element that opened the media viewer when it is closed, behind the
|
|
9
|
+
platform_media_a11y_viewer_return_focus feature gate (A11Y-35419).
|
|
10
|
+
|
|
11
|
+
## 54.12.27
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 54.12.26
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
16
|
var packageName = "@atlaskit/media-viewer";
|
|
17
|
-
var packageVersion = "54.12.
|
|
17
|
+
var packageVersion = "54.12.27";
|
|
18
18
|
var ufoExperience;
|
|
19
19
|
var getExperience = function getExperience() {
|
|
20
20
|
if (!ufoExperience) {
|
package/dist/cjs/media-viewer.js
CHANGED
|
@@ -278,9 +278,14 @@ var MediaViewerWithRef = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
278
278
|
}));
|
|
279
279
|
});
|
|
280
280
|
var MediaViewerWithScrollLock = function MediaViewerWithScrollLock(props) {
|
|
281
|
-
return
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
return (
|
|
282
|
+
/*#__PURE__*/
|
|
283
|
+
// Return focus to the element that opened the viewer (e.g. an attachment) when it closes.
|
|
284
|
+
_react.default.createElement(_reactFocusLock.default, {
|
|
285
|
+
autoFocus: true,
|
|
286
|
+
returnFocus: (0, _fg.fg)('platform_media_a11y_viewer_return_focus')
|
|
287
|
+
}, /*#__PURE__*/_react.default.createElement(_reactScrolllock.default, null), /*#__PURE__*/_react.default.createElement(MediaViewerWithRef, props))
|
|
288
|
+
);
|
|
284
289
|
};
|
|
285
290
|
var MediaViewer = exports.MediaViewer = (0, _reactIntl.injectIntl)(MediaViewerWithScrollLock, {
|
|
286
291
|
enforceContext: false
|
|
@@ -4,7 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
4
4
|
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
5
5
|
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
6
6
|
const packageName = "@atlaskit/media-viewer";
|
|
7
|
-
const packageVersion = "54.12.
|
|
7
|
+
const packageVersion = "54.12.27";
|
|
8
8
|
let ufoExperience;
|
|
9
9
|
const getExperience = () => {
|
|
10
10
|
if (!ufoExperience) {
|
|
@@ -244,9 +244,14 @@ const MediaViewerWithRef = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
244
244
|
}));
|
|
245
245
|
});
|
|
246
246
|
const MediaViewerWithScrollLock = props => {
|
|
247
|
-
return
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
return (
|
|
248
|
+
/*#__PURE__*/
|
|
249
|
+
// Return focus to the element that opened the viewer (e.g. an attachment) when it closes.
|
|
250
|
+
React.createElement(FocusLock, {
|
|
251
|
+
autoFocus: true,
|
|
252
|
+
returnFocus: fg('platform_media_a11y_viewer_return_focus')
|
|
253
|
+
}, /*#__PURE__*/React.createElement(ScrollLock, null), /*#__PURE__*/React.createElement(MediaViewerWithRef, props))
|
|
254
|
+
);
|
|
250
255
|
};
|
|
251
256
|
export const MediaViewer = injectIntl(MediaViewerWithScrollLock, {
|
|
252
257
|
enforceContext: false
|
|
@@ -7,7 +7,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
7
7
|
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
8
8
|
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
9
9
|
var packageName = "@atlaskit/media-viewer";
|
|
10
|
-
var packageVersion = "54.12.
|
|
10
|
+
var packageVersion = "54.12.27";
|
|
11
11
|
var ufoExperience;
|
|
12
12
|
var getExperience = function getExperience() {
|
|
13
13
|
if (!ufoExperience) {
|
package/dist/esm/media-viewer.js
CHANGED
|
@@ -268,9 +268,14 @@ var MediaViewerWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
268
268
|
}));
|
|
269
269
|
});
|
|
270
270
|
var MediaViewerWithScrollLock = function MediaViewerWithScrollLock(props) {
|
|
271
|
-
return
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
return (
|
|
272
|
+
/*#__PURE__*/
|
|
273
|
+
// Return focus to the element that opened the viewer (e.g. an attachment) when it closes.
|
|
274
|
+
React.createElement(FocusLock, {
|
|
275
|
+
autoFocus: true,
|
|
276
|
+
returnFocus: fg('platform_media_a11y_viewer_return_focus')
|
|
277
|
+
}, /*#__PURE__*/React.createElement(ScrollLock, null), /*#__PURE__*/React.createElement(MediaViewerWithRef, props))
|
|
278
|
+
);
|
|
274
279
|
};
|
|
275
280
|
export var MediaViewer = injectIntl(MediaViewerWithScrollLock, {
|
|
276
281
|
enforceContext: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "54.12.
|
|
3
|
+
"version": "54.12.28",
|
|
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/"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@atlaskit/css": "^1.1.0",
|
|
40
40
|
"@atlaskit/form": "^18.3.0",
|
|
41
41
|
"@atlaskit/heading": "^8.0.0",
|
|
42
|
-
"@atlaskit/icon": "^38.
|
|
42
|
+
"@atlaskit/icon": "^38.2.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^8.3.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^7.
|
|
44
|
+
"@atlaskit/icon-lab": "^7.13.0",
|
|
45
45
|
"@atlaskit/media-client": "^39.4.0",
|
|
46
46
|
"@atlaskit/media-client-react": "^7.1.0",
|
|
47
47
|
"@atlaskit/media-common": "^14.7.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/spinner": "^20.4.0",
|
|
61
61
|
"@atlaskit/textfield": "^11.0.0",
|
|
62
62
|
"@atlaskit/theme": "^28.2.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^267.0.0",
|
|
64
64
|
"@atlaskit/tokens": "^20.14.0",
|
|
65
65
|
"@atlaskit/tooltip": "^24.4.0",
|
|
66
66
|
"@atlaskit/ufo": "^2.0.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@codemirror/language-data": "6.5.1",
|
|
70
70
|
"@codemirror/state": "6.5.1",
|
|
71
71
|
"@codemirror/view": "6.36.2",
|
|
72
|
-
"@compiled/react": "^
|
|
72
|
+
"@compiled/react": "^2.0.0",
|
|
73
73
|
"@kenjiuno/msgreader": "^1.2.6",
|
|
74
74
|
"@lezer/highlight": "1.2.1",
|
|
75
75
|
"deep-equal": "^1.0.1",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
99
99
|
"@atlaskit/media-test-data": "^4.0.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^43.0.0",
|
|
101
|
-
"@atlaskit/modal-dialog": "^17.
|
|
101
|
+
"@atlaskit/modal-dialog": "^17.3.0",
|
|
102
102
|
"@atlaskit/select": "^23.2.0",
|
|
103
103
|
"@atlaskit/ssr": "workspace:^",
|
|
104
104
|
"@atlaskit/toggle": "^17.3.0",
|
|
@@ -169,6 +169,9 @@
|
|
|
169
169
|
},
|
|
170
170
|
"platform_media_white_bg_transparent_images": {
|
|
171
171
|
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"platform_media_a11y_viewer_return_focus": {
|
|
174
|
+
"type": "boolean"
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
177
|
}
|