@atlaskit/media-ui 28.6.15 → 28.7.1
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 +19 -0
- package/dist/cjs/codeViewer.js +4 -0
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/cjs/customMediaPlayer/styled-compiled.compiled.css +1 -1
- package/dist/cjs/customMediaPlayer/styled-compiled.js +2 -2
- package/dist/es2019/codeViewer.js +5 -0
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/es2019/customMediaPlayer/styled-compiled.compiled.css +1 -1
- package/dist/es2019/customMediaPlayer/styled-compiled.js +1 -1
- package/dist/esm/codeViewer.js +5 -0
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/esm/customMediaPlayer/styled-compiled.compiled.css +1 -1
- package/dist/esm/customMediaPlayer/styled-compiled.js +2 -2
- package/package.json +8 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 28.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`717cc94987686`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/717cc94987686) -
|
|
8
|
+
Internal changes to how borders are applied.
|
|
9
|
+
|
|
10
|
+
## 28.7.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`07a59b636b6b4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/07a59b636b6b4) -
|
|
15
|
+
[ux] Set CodeViewer as the default viewer for text/plain files, prevents rendering text files
|
|
16
|
+
using DocViewer
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 28.6.15
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cjs/codeViewer.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getExtension = getExtension;
|
|
7
7
|
exports.getLanguageType = getLanguageType;
|
|
8
8
|
exports.isCodeViewerItem = isCodeViewerItem;
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
10
|
/**
|
|
10
11
|
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
11
12
|
* would return the extension txt
|
|
@@ -174,6 +175,9 @@ function getLanguageType(name, mimetype) {
|
|
|
174
175
|
case 'yml':
|
|
175
176
|
return 'yaml';
|
|
176
177
|
default:
|
|
178
|
+
if (mimetype === 'text/plain' && (0, _platformFeatureFlags.fg)('platform_media-default-code-viewer-for-plain-text')) {
|
|
179
|
+
return 'text';
|
|
180
|
+
}
|
|
177
181
|
return null;
|
|
178
182
|
}
|
|
179
183
|
}
|
|
@@ -16,7 +16,7 @@ var CustomMediaPlayerBase = exports.CustomMediaPlayerBase = function CustomMedia
|
|
|
16
16
|
return (0, _platformFeatureFlags.fg)('platform_media_compiled') ? /*#__PURE__*/_react.default.createElement(_indexCompiled.CustomMediaPlayerBase, props) : /*#__PURE__*/_react.default.createElement(_indexEmotion.CustomMediaPlayerBase, props);
|
|
17
17
|
};
|
|
18
18
|
var packageName = "@atlaskit/media-ui";
|
|
19
|
-
var packageVersion = "
|
|
19
|
+
var packageVersion = "0.0.0-development";
|
|
20
20
|
|
|
21
21
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
22
22
|
var CustomMediaPlayer = exports.CustomMediaPlayer = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
@@ -15,7 +15,7 @@ var _useTextTracks2 = require("./useTextTracks");
|
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
16
|
var _excluded = ["onPlay"];
|
|
17
17
|
var packageName = "@atlaskit/media-ui";
|
|
18
|
-
var packageVersion = "
|
|
18
|
+
var packageVersion = "0.0.0-development";
|
|
19
19
|
var MediaPlayerWihtoutContext = exports.MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
|
|
20
20
|
var _onPlay = _ref.onPlay,
|
|
21
21
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._11q7acks{background:linear-gradient(0deg,#101214,rgba(14,22,36,0))}
|
|
3
3
|
._19itglyw{border:none}
|
|
4
|
-
.
|
|
4
|
+
._1a37gfip{outline:var(--_126n5k8)}
|
|
5
5
|
._2rko14y2{border-radius:5px}
|
|
6
6
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
7
7
|
._2rko1kw7{border-radius:inherit}
|
|
@@ -82,9 +82,9 @@ var CurrentTimeLineThumb = exports.CurrentTimeLineThumb = /*#__PURE__*/(0, _reac
|
|
|
82
82
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
83
83
|
ref: ref
|
|
84
84
|
}, props, {
|
|
85
|
-
className: (0, _runtime.ax)(["_19itglyw _2rko1rr0
|
|
85
|
+
className: (0, _runtime.ax)(["_19itglyw _2rko1rr0 _1a37gfip _kqswstnw _1e0c1ule _1xi2idpf _154i1ssb _t9ec1tul _bfhk7g9i _4t3ik7ql _1bsbk7ql _lcxvglyw _tzy4idpf _1cwgv77o _1h7hkb7n"]),
|
|
86
86
|
style: {
|
|
87
|
-
"--
|
|
87
|
+
"--_126n5k8": (0, _runtime.ix)("var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #85B8FF)"))
|
|
88
88
|
}
|
|
89
89
|
}), children);
|
|
90
90
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
3
5
|
* would return the extension txt
|
|
@@ -163,6 +165,9 @@ export function getLanguageType(name, mimetype) {
|
|
|
163
165
|
case 'yml':
|
|
164
166
|
return 'yaml';
|
|
165
167
|
default:
|
|
168
|
+
if (mimetype === 'text/plain' && fg('platform_media-default-code-viewer-for-plain-text')) {
|
|
169
|
+
return 'text';
|
|
170
|
+
}
|
|
166
171
|
return null;
|
|
167
172
|
}
|
|
168
173
|
}
|
|
@@ -7,7 +7,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
7
7
|
import { withMediaAnalyticsContext } from '@atlaskit/media-common';
|
|
8
8
|
export const CustomMediaPlayerBase = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props) : /*#__PURE__*/React.createElement(EmotionCustomMediaPlayerBase, props);
|
|
9
9
|
const packageName = "@atlaskit/media-ui";
|
|
10
|
-
const packageVersion = "
|
|
10
|
+
const packageVersion = "0.0.0-development";
|
|
11
11
|
|
|
12
12
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
13
13
|
export const CustomMediaPlayer = withMediaAnalyticsContext({
|
|
@@ -6,7 +6,7 @@ import { MediaPlayerBase } from './mediaPlayerBase';
|
|
|
6
6
|
import { useTextTracks } from './useTextTracks';
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
8
|
const packageName = "@atlaskit/media-ui";
|
|
9
|
-
const packageVersion = "
|
|
9
|
+
const packageVersion = "0.0.0-development";
|
|
10
10
|
export const MediaPlayerWihtoutContext = ({
|
|
11
11
|
onPlay,
|
|
12
12
|
...props
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._11q7acks{background:linear-gradient(0deg,#101214,rgba(14,22,36,0))}
|
|
3
3
|
._19itglyw{border:none}
|
|
4
|
-
.
|
|
4
|
+
._1a371kqe{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#85b8ff)}
|
|
5
5
|
._2rko14y2{border-radius:5px}
|
|
6
6
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
7
7
|
._2rko1kw7{border-radius:inherit}
|
|
@@ -56,7 +56,7 @@ export const CurrentTimeLineThumb = /*#__PURE__*/forwardRef(({
|
|
|
56
56
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
57
57
|
ref: ref
|
|
58
58
|
}, props, {
|
|
59
|
-
className: ax(["_19itglyw _2rko1rr0
|
|
59
|
+
className: ax(["_19itglyw _2rko1rr0 _1a371kqe _kqswstnw _1e0c1ule _1xi2idpf _154i1ssb _t9ec1tul _bfhk7g9i _4t3ik7ql _1bsbk7ql _lcxvglyw _tzy4idpf _1cwgv77o _1h7hkb7n"])
|
|
60
60
|
}), children);
|
|
61
61
|
});
|
|
62
62
|
const bufferedTimeStyles = null;
|
package/dist/esm/codeViewer.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
3
5
|
* would return the extension txt
|
|
@@ -166,6 +168,9 @@ export function getLanguageType(name, mimetype) {
|
|
|
166
168
|
case 'yml':
|
|
167
169
|
return 'yaml';
|
|
168
170
|
default:
|
|
171
|
+
if (mimetype === 'text/plain' && fg('platform_media-default-code-viewer-for-plain-text')) {
|
|
172
|
+
return 'text';
|
|
173
|
+
}
|
|
169
174
|
return null;
|
|
170
175
|
}
|
|
171
176
|
}
|
|
@@ -9,7 +9,7 @@ export var CustomMediaPlayerBase = function CustomMediaPlayerBase(props) {
|
|
|
9
9
|
return fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props) : /*#__PURE__*/React.createElement(EmotionCustomMediaPlayerBase, props);
|
|
10
10
|
};
|
|
11
11
|
var packageName = "@atlaskit/media-ui";
|
|
12
|
-
var packageVersion = "
|
|
12
|
+
var packageVersion = "0.0.0-development";
|
|
13
13
|
|
|
14
14
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
15
15
|
export var CustomMediaPlayer = withMediaAnalyticsContext({
|
|
@@ -8,7 +8,7 @@ import { MediaPlayerBase } from './mediaPlayerBase';
|
|
|
8
8
|
import { useTextTracks } from './useTextTracks';
|
|
9
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
10
|
var packageName = "@atlaskit/media-ui";
|
|
11
|
-
var packageVersion = "
|
|
11
|
+
var packageVersion = "0.0.0-development";
|
|
12
12
|
export var MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
|
|
13
13
|
var _onPlay = _ref.onPlay,
|
|
14
14
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._11q7acks{background:linear-gradient(0deg,#101214,rgba(14,22,36,0))}
|
|
3
3
|
._19itglyw{border:none}
|
|
4
|
-
.
|
|
4
|
+
._1a37gfip{outline:var(--_126n5k8)}
|
|
5
5
|
._2rko14y2{border-radius:5px}
|
|
6
6
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
7
7
|
._2rko1kw7{border-radius:inherit}
|
|
@@ -74,9 +74,9 @@ export var CurrentTimeLineThumb = /*#__PURE__*/forwardRef(function (_ref6, ref)
|
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
75
75
|
ref: ref
|
|
76
76
|
}, props, {
|
|
77
|
-
className: ax(["_19itglyw _2rko1rr0
|
|
77
|
+
className: ax(["_19itglyw _2rko1rr0 _1a37gfip _kqswstnw _1e0c1ule _1xi2idpf _154i1ssb _t9ec1tul _bfhk7g9i _4t3ik7ql _1bsbk7ql _lcxvglyw _tzy4idpf _1cwgv77o _1h7hkb7n"]),
|
|
78
78
|
style: {
|
|
79
|
-
"--
|
|
79
|
+
"--_126n5k8": ix("var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #85B8FF)"))
|
|
80
80
|
}
|
|
81
81
|
}), children);
|
|
82
82
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "28.
|
|
3
|
+
"version": "28.7.1",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@atlaskit/css": "^0.14.0",
|
|
30
30
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
31
31
|
"@atlaskit/flag": "^17.4.0",
|
|
32
|
-
"@atlaskit/form": "^12.
|
|
33
|
-
"@atlaskit/icon": "^28.
|
|
32
|
+
"@atlaskit/form": "^12.6.0",
|
|
33
|
+
"@atlaskit/icon": "^28.2.0",
|
|
34
34
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
35
35
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
36
36
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^14.14.0",
|
|
45
45
|
"@atlaskit/range": "^9.2.0",
|
|
46
|
-
"@atlaskit/react-ufo": "^4.
|
|
47
|
-
"@atlaskit/select": "^21.
|
|
46
|
+
"@atlaskit/react-ufo": "^4.7.0",
|
|
47
|
+
"@atlaskit/select": "^21.3.0",
|
|
48
48
|
"@atlaskit/spinner": "^19.0.0",
|
|
49
49
|
"@atlaskit/theme": "^21.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^6.3.0",
|
|
@@ -101,6 +101,9 @@
|
|
|
101
101
|
},
|
|
102
102
|
"should-render-to-parent-should-be-true-media-exif": {
|
|
103
103
|
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"platform_media-default-code-viewer-for-plain-text": {
|
|
106
|
+
"type": "boolean"
|
|
104
107
|
}
|
|
105
108
|
},
|
|
106
109
|
"techstack": {
|
|
@@ -126,22 +129,5 @@
|
|
|
126
129
|
"dist/types-ts4.5/index.d.ts"
|
|
127
130
|
]
|
|
128
131
|
}
|
|
129
|
-
},
|
|
130
|
-
"af:exports": {
|
|
131
|
-
"./classNames": "./src/classNames.ts",
|
|
132
|
-
"./media-type-icon": "./src/media-type-icon.tsx",
|
|
133
|
-
"./mime-type-icon": "./src/mime-type-icon.tsx",
|
|
134
|
-
"./truncateText": "./src/truncateText.tsx",
|
|
135
|
-
"./messages": "./src/messages.ts",
|
|
136
|
-
"./modalSpinner": "./src/modalSpinner.tsx",
|
|
137
|
-
"./browser": "./src/browser.tsx",
|
|
138
|
-
"./codeViewer": "./src/codeViewer.ts",
|
|
139
|
-
"./util": "./src/util.ts",
|
|
140
|
-
"./errorIcon": "./src/errorIcon.tsx",
|
|
141
|
-
"./types": "./src/types.ts",
|
|
142
|
-
"./formatDate": "./src/formatDate.ts",
|
|
143
|
-
"./locales": "./src/locales.ts",
|
|
144
|
-
"./abuseModal": "./src/abuseModal/index.ts",
|
|
145
|
-
".": "./src/index.ts"
|
|
146
132
|
}
|
|
147
133
|
}
|