@atlaskit/media-viewer 48.3.8 → 48.4.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 +12 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/viewers/image/interactive-img.js +3 -0
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/viewers/image/interactive-img.js +3 -0
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/viewers/image/interactive-img.js +3 -0
- package/dist/types/zoomControls.d.ts +2 -2
- package/dist/types-ts4.5/zoomControls.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 48.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#82250](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82250) [`5d7f76f71b82`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5d7f76f71b82) - Stop media viewer from closing when clicking on image
|
|
8
|
+
|
|
9
|
+
## 48.3.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 48.3.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
|
|
|
10
10
|
var _analytics = require("@atlaskit/media-common/analytics");
|
|
11
11
|
var componentName = exports.component = exports.componentName = 'mediaViewer';
|
|
12
12
|
var packageName = exports.packageName = "@atlaskit/media-viewer";
|
|
13
|
-
var packageVersion = exports.packageVersion = "48.
|
|
13
|
+
var packageVersion = exports.packageVersion = "48.4.0";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -12,7 +12,7 @@ var _mediaCommon = require("@atlaskit/media-common");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/media-viewer";
|
|
15
|
-
var packageVersion = "48.
|
|
15
|
+
var packageVersion = "48.4.0";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
|
@@ -172,6 +172,9 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
|
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "startDragging", function (ev) {
|
|
175
|
+
// stopping propagation to prevent media viewer from closing
|
|
176
|
+
// when clicking on the image
|
|
177
|
+
ev.stopPropagation();
|
|
175
178
|
ev.preventDefault();
|
|
176
179
|
_this.setState({
|
|
177
180
|
isDragging: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
const componentName = 'mediaViewer';
|
|
3
3
|
const packageName = "@atlaskit/media-viewer";
|
|
4
|
-
const packageVersion = "48.
|
|
4
|
+
const packageVersion = "48.4.0";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -2,7 +2,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
2
2
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
const packageName = "@atlaskit/media-viewer";
|
|
5
|
-
const packageVersion = "48.
|
|
5
|
+
const packageVersion = "48.4.0";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -164,6 +164,9 @@ export class InteractiveImgComponent extends React.Component {
|
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
_defineProperty(this, "startDragging", ev => {
|
|
167
|
+
// stopping propagation to prevent media viewer from closing
|
|
168
|
+
// when clicking on the image
|
|
169
|
+
ev.stopPropagation();
|
|
167
170
|
ev.preventDefault();
|
|
168
171
|
this.setState({
|
|
169
172
|
isDragging: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
var componentName = 'mediaViewer';
|
|
3
3
|
var packageName = "@atlaskit/media-viewer";
|
|
4
|
-
var packageVersion = "48.
|
|
4
|
+
var packageVersion = "48.4.0";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -5,7 +5,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
var packageName = "@atlaskit/media-viewer";
|
|
8
|
-
var packageVersion = "48.
|
|
8
|
+
var packageVersion = "48.4.0";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
|
@@ -164,6 +164,9 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
_defineProperty(_assertThisInitialized(_this), "startDragging", function (ev) {
|
|
167
|
+
// stopping propagation to prevent media viewer from closing
|
|
168
|
+
// when clicking on the image
|
|
169
|
+
ev.stopPropagation();
|
|
167
170
|
ev.preventDefault();
|
|
168
171
|
_this.setState({
|
|
169
172
|
isDragging: true,
|
|
@@ -3,10 +3,10 @@ import { Component } from 'react';
|
|
|
3
3
|
import { ZoomLevel } from './domain/zoomLevel';
|
|
4
4
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
export type ZoomControlsProps = Readonly<{
|
|
6
|
+
export type ZoomControlsProps = React.PropsWithChildren<Readonly<{
|
|
7
7
|
onChange: (newZoomLevel: ZoomLevel) => void;
|
|
8
8
|
zoomLevel: ZoomLevel;
|
|
9
|
-
}> & WithAnalyticsEventsProps
|
|
9
|
+
}> & WithAnalyticsEventsProps>;
|
|
10
10
|
export declare class ZoomControlsBase extends Component<ZoomControlsProps & WrappedComponentProps, {}> {
|
|
11
11
|
zoomIn: () => void;
|
|
12
12
|
zoomOut: () => void;
|
|
@@ -3,10 +3,10 @@ import { Component } from 'react';
|
|
|
3
3
|
import { ZoomLevel } from './domain/zoomLevel';
|
|
4
4
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
export type ZoomControlsProps = Readonly<{
|
|
6
|
+
export type ZoomControlsProps = React.PropsWithChildren<Readonly<{
|
|
7
7
|
onChange: (newZoomLevel: ZoomLevel) => void;
|
|
8
8
|
zoomLevel: ZoomLevel;
|
|
9
|
-
}> & WithAnalyticsEventsProps
|
|
9
|
+
}> & WithAnalyticsEventsProps>;
|
|
10
10
|
export declare class ZoomControlsBase extends Component<ZoomControlsProps & WrappedComponentProps, {}> {
|
|
11
11
|
zoomIn: () => void;
|
|
12
12
|
zoomOut: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.4.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/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/media-common": "^11.1.0",
|
|
47
47
|
"@atlaskit/media-ui": "^25.4.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
49
|
-
"@atlaskit/primitives": "^
|
|
49
|
+
"@atlaskit/primitives": "^5.0.0",
|
|
50
50
|
"@atlaskit/side-navigation": "^3.0.0",
|
|
51
51
|
"@atlaskit/spinner": "^16.0.0",
|
|
52
52
|
"@atlaskit/textfield": "^6.1.0",
|