@atlaskit/media-ui 28.7.16 → 28.7.18
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/codeViewer.js +1 -2
- package/dist/es2019/codeViewer.js +1 -3
- package/dist/esm/codeViewer.js +1 -3
- package/package.json +12 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 28.7.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f73452fffe533`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f73452fffe533) -
|
|
8
|
+
[ux] Remove feature gate to control rollout of default code viewer for text/plain files
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 28.7.17
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 28.7.16
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/codeViewer.js
CHANGED
|
@@ -6,7 +6,6 @@ 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");
|
|
10
9
|
/**
|
|
11
10
|
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
12
11
|
* would return the extension txt
|
|
@@ -175,7 +174,7 @@ function getLanguageType(name, mimetype) {
|
|
|
175
174
|
case 'yml':
|
|
176
175
|
return 'yaml';
|
|
177
176
|
default:
|
|
178
|
-
if (mimetype === 'text/plain'
|
|
177
|
+
if (mimetype === 'text/plain') {
|
|
179
178
|
return 'text';
|
|
180
179
|
}
|
|
181
180
|
return null;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
5
3
|
* would return the extension txt
|
|
@@ -165,7 +163,7 @@ export function getLanguageType(name, mimetype) {
|
|
|
165
163
|
case 'yml':
|
|
166
164
|
return 'yaml';
|
|
167
165
|
default:
|
|
168
|
-
if (mimetype === 'text/plain'
|
|
166
|
+
if (mimetype === 'text/plain') {
|
|
169
167
|
return 'text';
|
|
170
168
|
}
|
|
171
169
|
return null;
|
package/dist/esm/codeViewer.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Given an item, it grabs the file name of that item. For example, an item with the filename item.txt
|
|
5
3
|
* would return the extension txt
|
|
@@ -168,7 +166,7 @@ export function getLanguageType(name, mimetype) {
|
|
|
168
166
|
case 'yml':
|
|
169
167
|
return 'yaml';
|
|
170
168
|
default:
|
|
171
|
-
if (mimetype === 'text/plain'
|
|
169
|
+
if (mimetype === 'text/plain') {
|
|
172
170
|
return 'text';
|
|
173
171
|
}
|
|
174
172
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "28.7.
|
|
3
|
+
"version": "28.7.18",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,12 +25,11 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/afm-i18n-platform-media-media-ui": "2.7.0",
|
|
27
27
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
28
|
-
"@atlaskit/button": "^23.
|
|
29
|
-
"@atlaskit/code": "^17.
|
|
30
|
-
"@atlaskit/css": "^0.
|
|
31
|
-
"@atlaskit/
|
|
32
|
-
"@atlaskit/
|
|
33
|
-
"@atlaskit/form": "^14.2.0",
|
|
28
|
+
"@atlaskit/button": "^23.7.0",
|
|
29
|
+
"@atlaskit/code": "^17.4.0",
|
|
30
|
+
"@atlaskit/css": "^0.17.0",
|
|
31
|
+
"@atlaskit/flag": "^17.6.0",
|
|
32
|
+
"@atlaskit/form": "^14.3.0",
|
|
34
33
|
"@atlaskit/icon": "^29.0.0",
|
|
35
34
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
36
35
|
"@atlaskit/icon-lab": "^5.12.0",
|
|
@@ -40,16 +39,16 @@
|
|
|
40
39
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
41
40
|
"@atlaskit/media-common": "^12.3.0",
|
|
42
41
|
"@atlaskit/media-state": "^1.8.0",
|
|
43
|
-
"@atlaskit/modal-dialog": "^14.
|
|
42
|
+
"@atlaskit/modal-dialog": "^14.8.0",
|
|
44
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^16.
|
|
46
|
-
"@atlaskit/range": "^9.
|
|
44
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
45
|
+
"@atlaskit/range": "^9.3.0",
|
|
47
46
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
48
|
-
"@atlaskit/select": "^21.
|
|
47
|
+
"@atlaskit/select": "^21.5.0",
|
|
49
48
|
"@atlaskit/spinner": "^19.0.0",
|
|
50
49
|
"@atlaskit/theme": "^21.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^8.
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
50
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
51
|
+
"@atlaskit/tooltip": "^20.11.0",
|
|
53
52
|
"@atlaskit/width-detector": "^5.0.0",
|
|
54
53
|
"@babel/runtime": "^7.0.0",
|
|
55
54
|
"@compiled/react": "^0.18.6",
|
|
@@ -96,9 +95,6 @@
|
|
|
96
95
|
},
|
|
97
96
|
"should-render-to-parent-should-be-true-media-exif": {
|
|
98
97
|
"type": "boolean"
|
|
99
|
-
},
|
|
100
|
-
"platform_media-default-code-viewer-for-plain-text": {
|
|
101
|
-
"type": "boolean"
|
|
102
98
|
}
|
|
103
99
|
},
|
|
104
100
|
"techstack": {
|