@atlaskit/media-viewer 54.12.12 → 54.12.14
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 +16 -0
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/styleWrappers.compiled.css +1 -0
- package/dist/cjs/styleWrappers.js +3 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/styleWrappers.compiled.css +1 -0
- package/dist/es2019/styleWrappers.js +3 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/styleWrappers.compiled.css +1 -0
- package/dist/esm/styleWrappers.js +3 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 54.12.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fb94245b198b4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fb94245b198b4) -
|
|
8
|
+
[BMPT-8317] Show transparent images on a white background in media card and media viewer, so the
|
|
9
|
+
dark background doesn't show through. Behind the `platform_media_white_bg_transparent_images`
|
|
10
|
+
feature gate.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 54.12.13
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 54.12.12
|
|
4
20
|
|
|
5
21
|
### 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.13";
|
|
18
18
|
var ufoExperience;
|
|
19
19
|
var getExperience = function getExperience() {
|
|
20
20
|
if (!ufoExperience) {
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
._bfhk1tzm{background-color:#22272b}
|
|
123
123
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
124
124
|
._bfhkr3uz{background-color:#000}
|
|
125
|
+
._bfhku67f{background-color:#fff}
|
|
125
126
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
126
127
|
._c71l1osq{max-height:100%}
|
|
127
128
|
._ca0q1azu{padding-top:var(--ds-space-100,8px) var(--ds-space-300,24px)}
|
|
@@ -19,6 +19,7 @@ var _useCallbackRef = require("use-callback-ref");
|
|
|
19
19
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
20
20
|
var _exitingPersistence = _interopRequireDefault(require("@atlaskit/motion/exiting-persistence"));
|
|
21
21
|
var _slideIn = _interopRequireDefault(require("@atlaskit/motion/slide-in"));
|
|
22
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
22
23
|
var _box = require("@atlaskit/primitives/box");
|
|
23
24
|
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
24
25
|
var _insetViewerContext = require("./insetViewerContext");
|
|
@@ -106,6 +107,7 @@ var baselineExtendStyles = null;
|
|
|
106
107
|
var imgStyles = null;
|
|
107
108
|
var insetViewerImgStyles = null;
|
|
108
109
|
var pixelatedImgStyles = null;
|
|
110
|
+
var whiteBackgroundImgStyles = null;
|
|
109
111
|
var medatadataTextWrapperStyles = null;
|
|
110
112
|
var metadataWrapperStyles = null;
|
|
111
113
|
var metadataFileNameStyles = null;
|
|
@@ -477,7 +479,7 @@ var Img = exports.Img = /*#__PURE__*/(0, _react.forwardRef)(function (_ref28, re
|
|
|
477
479
|
ref: ref
|
|
478
480
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
479
481
|
,
|
|
480
|
-
className: (0, _runtime.ax)(["_1e0c1o8l _s7n4nkob _kqswh2mm", shouldPixelate && "_1kemd8h4", isInsetViewer && "_2rko1mok _1reo15vq _18m915vq", className]),
|
|
482
|
+
className: (0, _runtime.ax)(["_1e0c1o8l _s7n4nkob _kqswh2mm", shouldPixelate && "_1kemd8h4", isInsetViewer && "_2rko1mok _1reo15vq _18m915vq", (0, _fg.fg)('platform_media_white_bg_transparent_images') && "_bfhku67f", className]),
|
|
481
483
|
alt: alt,
|
|
482
484
|
"data-testid": datatestId,
|
|
483
485
|
src: src
|
|
@@ -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.13";
|
|
8
8
|
let ufoExperience;
|
|
9
9
|
const getExperience = () => {
|
|
10
10
|
if (!ufoExperience) {
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
._bfhk1tzm{background-color:#22272b}
|
|
123
123
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
124
124
|
._bfhkr3uz{background-color:#000}
|
|
125
|
+
._bfhku67f{background-color:#fff}
|
|
125
126
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
126
127
|
._c71l1osq{max-height:100%}
|
|
127
128
|
._ca0q1azu{padding-top:var(--ds-space-100,8px) var(--ds-space-300,24px)}
|
|
@@ -11,6 +11,7 @@ import { useMergeRefs } from 'use-callback-ref';
|
|
|
11
11
|
import Heading from '@atlaskit/heading/heading';
|
|
12
12
|
import ExitingPersistence from '@atlaskit/motion/exiting-persistence';
|
|
13
13
|
import SlideIn from '@atlaskit/motion/slide-in';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
16
|
import { Box } from '@atlaskit/primitives/box';
|
|
16
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -93,6 +94,7 @@ const baselineExtendStyles = null;
|
|
|
93
94
|
const imgStyles = null;
|
|
94
95
|
const insetViewerImgStyles = null;
|
|
95
96
|
const pixelatedImgStyles = null;
|
|
97
|
+
const whiteBackgroundImgStyles = null;
|
|
96
98
|
const medatadataTextWrapperStyles = null;
|
|
97
99
|
const metadataWrapperStyles = null;
|
|
98
100
|
const metadataFileNameStyles = null;
|
|
@@ -446,7 +448,7 @@ export const Img = /*#__PURE__*/forwardRef(({
|
|
|
446
448
|
ref: ref
|
|
447
449
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
448
450
|
,
|
|
449
|
-
className: ax(["_1e0c1o8l _s7n4nkob _kqswh2mm", shouldPixelate && "_1kemd8h4", isInsetViewer && "_2rko1mok _1reo15vq _18m915vq", className]),
|
|
451
|
+
className: ax(["_1e0c1o8l _s7n4nkob _kqswh2mm", shouldPixelate && "_1kemd8h4", isInsetViewer && "_2rko1mok _1reo15vq _18m915vq", fg('platform_media_white_bg_transparent_images') && "_bfhku67f", className]),
|
|
450
452
|
alt: alt,
|
|
451
453
|
"data-testid": datatestId,
|
|
452
454
|
src: src
|
|
@@ -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.13";
|
|
11
11
|
var ufoExperience;
|
|
12
12
|
var getExperience = function getExperience() {
|
|
13
13
|
if (!ufoExperience) {
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
._bfhk1tzm{background-color:#22272b}
|
|
123
123
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
124
124
|
._bfhkr3uz{background-color:#000}
|
|
125
|
+
._bfhku67f{background-color:#fff}
|
|
125
126
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
126
127
|
._c71l1osq{max-height:100%}
|
|
127
128
|
._ca0q1azu{padding-top:var(--ds-space-100,8px) var(--ds-space-300,24px)}
|
|
@@ -16,6 +16,7 @@ import { useMergeRefs } from 'use-callback-ref';
|
|
|
16
16
|
import Heading from '@atlaskit/heading/heading';
|
|
17
17
|
import ExitingPersistence from '@atlaskit/motion/exiting-persistence';
|
|
18
18
|
import SlideIn from '@atlaskit/motion/slide-in';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
20
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
21
|
import { Box } from '@atlaskit/primitives/box';
|
|
21
22
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -98,6 +99,7 @@ var baselineExtendStyles = null;
|
|
|
98
99
|
var imgStyles = null;
|
|
99
100
|
var insetViewerImgStyles = null;
|
|
100
101
|
var pixelatedImgStyles = null;
|
|
102
|
+
var whiteBackgroundImgStyles = null;
|
|
101
103
|
var medatadataTextWrapperStyles = null;
|
|
102
104
|
var metadataWrapperStyles = null;
|
|
103
105
|
var metadataFileNameStyles = null;
|
|
@@ -469,7 +471,7 @@ export var Img = /*#__PURE__*/forwardRef(function (_ref28, ref) {
|
|
|
469
471
|
ref: ref
|
|
470
472
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
471
473
|
,
|
|
472
|
-
className: ax(["_1e0c1o8l _s7n4nkob _kqswh2mm", shouldPixelate && "_1kemd8h4", isInsetViewer && "_2rko1mok _1reo15vq _18m915vq", className]),
|
|
474
|
+
className: ax(["_1e0c1o8l _s7n4nkob _kqswh2mm", shouldPixelate && "_1kemd8h4", isInsetViewer && "_2rko1mok _1reo15vq _18m915vq", fg('platform_media_white_bg_transparent_images') && "_bfhku67f", className]),
|
|
473
475
|
alt: alt,
|
|
474
476
|
"data-testid": datatestId,
|
|
475
477
|
src: src
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "54.12.
|
|
3
|
+
"version": "54.12.14",
|
|
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/"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/spinner": "^20.4.0",
|
|
61
61
|
"@atlaskit/textfield": "^10.3.0",
|
|
62
62
|
"@atlaskit/theme": "^28.2.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^258.0.0",
|
|
64
64
|
"@atlaskit/tokens": "^20.9.0",
|
|
65
65
|
"@atlaskit/tooltip": "^24.4.0",
|
|
66
66
|
"@atlaskit/ufo": "^2.0.0",
|
|
@@ -163,6 +163,9 @@
|
|
|
163
163
|
},
|
|
164
164
|
"cc_comments_inset_media_viewer": {
|
|
165
165
|
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"platform_media_white_bg_transparent_images": {
|
|
168
|
+
"type": "boolean"
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
}
|