@atlaskit/media-ui 23.0.5 → 23.1.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/MediaInlineCard/Icon.js +2 -2
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled.js +5 -5
- package/dist/cjs/MediaInlineCard/LoadingView/styled.js +1 -1
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/styled.js +18 -2
- package/dist/cjs/messages.js +5 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/MediaInlineCard/Icon.js +2 -3
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled.js +8 -9
- package/dist/es2019/MediaInlineCard/LoadingView/styled.js +1 -1
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/styled.js +18 -2
- package/dist/es2019/messages.js +5 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/MediaInlineCard/Icon.js +2 -3
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled.js +5 -6
- package/dist/esm/MediaInlineCard/LoadingView/styled.js +1 -1
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/styled.js +18 -2
- package/dist/esm/messages.js +5 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/example-helpers/styled.ts +9 -4
- package/package.json +6 -6
- package/report.api.md +1 -0
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 23.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a67386c9448`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a67386c9448) - add missing label for media avatar picker back button
|
|
8
|
+
|
|
9
|
+
## 23.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
14
|
+
|
|
3
15
|
## 23.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -13,11 +13,11 @@ var _templateObject, _templateObject2;
|
|
|
13
13
|
// Current rationale: vertically positioned at the top of
|
|
14
14
|
// the smart card container (when set to 0). Offset this
|
|
15
15
|
// to position it with appropriate whitespace from the top.
|
|
16
|
-
var Icon = _styled.default.img(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 14px;\n width: 14px;\n margin-right:
|
|
16
|
+
var Icon = _styled.default.img(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 14px;\n width: 14px;\n margin-right: ", ";\n border-radius: 2px;\n user-select: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])), "var(--ds-space-050, 4px)");
|
|
17
17
|
|
|
18
18
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
19
19
|
// are less than that in height/width.
|
|
20
20
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
21
21
|
exports.Icon = Icon;
|
|
22
|
-
var AKIconWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: -
|
|
22
|
+
var AKIconWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: calc(-1 * ", ");\n"])), "var(--ds-space-025, 2px)");
|
|
23
23
|
exports.AKIconWrapper = AKIconWrapper;
|
|
@@ -25,7 +25,7 @@ var IconWrapper = _styled.default.span(_templateObject || (_templateObject = (0,
|
|
|
25
25
|
|
|
26
26
|
// Wraps all emoji in Inline Links similar to icon
|
|
27
27
|
exports.IconWrapper = IconWrapper;
|
|
28
|
-
var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right:
|
|
28
|
+
var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right: ", ";\n user-select: none;\n ", "\n ", "\n"])), "var(--ds-space-025, 2px)", IconOverrides, IconObjectOverrides);
|
|
29
29
|
|
|
30
30
|
// The main 'wrapping' element, title of the content.
|
|
31
31
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
@@ -35,18 +35,18 @@ var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject
|
|
|
35
35
|
|
|
36
36
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
37
37
|
exports.IconTitleWrapper = IconTitleWrapper;
|
|
38
|
-
var LozengeWrapper = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left:
|
|
38
|
+
var LozengeWrapper = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
39
39
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
40
40
|
exports.LozengeWrapper = LozengeWrapper;
|
|
41
|
-
var LozengeBlockWrapper = _styled.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n & > span {\n margin-left:
|
|
41
|
+
var LozengeBlockWrapper = _styled.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
42
42
|
exports.LozengeBlockWrapper = LozengeBlockWrapper;
|
|
43
|
-
var RightIconPositionWrapper = _styled.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-left:
|
|
43
|
+
var RightIconPositionWrapper = _styled.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)");
|
|
44
44
|
|
|
45
45
|
// The following components are used to absolutely position icons in the vertical center.
|
|
46
46
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
47
47
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
48
48
|
exports.RightIconPositionWrapper = RightIconPositionWrapper;
|
|
49
|
-
var IconPositionWrapper = _styled.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-right:
|
|
49
|
+
var IconPositionWrapper = _styled.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-050, 4px)");
|
|
50
50
|
exports.IconPositionWrapper = IconPositionWrapper;
|
|
51
51
|
var IconEmptyWrapper = _styled.default.span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 14px;\n height: 100%;\n display: inline-block;\n opacity: 0;\n"])));
|
|
52
52
|
exports.IconEmptyWrapper = IconEmptyWrapper;
|
|
@@ -9,5 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _styled2 = require("../IconAndTitleLayout/styled");
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n vertical-align: baseline;\n margin-left:
|
|
12
|
+
var SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n vertical-align: baseline;\n margin-left: ", ";\n"])), "var(--ds-space-025, 2px)");
|
|
13
13
|
exports.SpinnerWrapper = SpinnerWrapper;
|
|
@@ -51,7 +51,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
51
51
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */ // Keep media player components used in media-viewer to use static colors from the new color palette to
|
|
52
52
|
// support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
|
|
53
53
|
var packageName = "@atlaskit/media-ui";
|
|
54
|
-
var packageVersion = "23.0
|
|
54
|
+
var packageVersion = "23.1.0";
|
|
55
55
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
56
56
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
57
57
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -13,14 +13,21 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
13
13
|
var CustomVideoWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n user-select: none;\n"])));
|
|
14
14
|
exports.CustomVideoWrapper = CustomVideoWrapper;
|
|
15
15
|
var VideoWrapper = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n"])));
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
16
18
|
exports.VideoWrapper = VideoWrapper;
|
|
17
19
|
var TimebarWrapper = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: white;\n position: absolute;\n width: 100%;\n bottom: 10px;\n"])));
|
|
18
20
|
exports.TimebarWrapper = TimebarWrapper;
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
22
|
var VolumeWrapper = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 35px;\n overflow: hidden;\n transition: width 0.3s;\n align-items: center;\n bottom: 0px;\n left: 43px;\n\n ", "\n"])), function (props) {
|
|
20
23
|
return props.showSlider ? "\n &:hover,\n &:active {\n width: 150px;\n transition: width 0.3s ease-out;\n }\n " : '';
|
|
21
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
22
27
|
exports.VolumeWrapper = VolumeWrapper;
|
|
23
|
-
var TimeWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0
|
|
28
|
+
var TimeWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0 ", " 10px ", ";\n margin-bottom: 44px;\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-250, 20px)");
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
31
|
exports.TimeWrapper = TimeWrapper;
|
|
25
32
|
var CurrentTime = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #c7d1db;\n user-select: none;\n margin-right: 10px;\n white-space: nowrap;\n"])));
|
|
26
33
|
exports.CurrentTime = CurrentTime;
|
|
@@ -31,24 +38,33 @@ exports.CurrentTimeLine = CurrentTimeLine;
|
|
|
31
38
|
var Thumb = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n pointer-events: none;\n width: 14px;\n height: 14px;\n border-radius: 100%;\n background-color: white;\n border: 1px solid #666;\n position: absolute;\n right: 0;\n top: 50%;\n\n transform: translate(7px, -50%) scale(0);\n transition: all 0.1s;\n transition-delay: 1s;\n\n &:hover .current-time-tooltip {\n opacity: 1;\n }\n"])));
|
|
32
39
|
exports.Thumb = Thumb;
|
|
33
40
|
var BufferedTime = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #8696a7;\n height: inherit;\n border-radius: inherit;\n width: 0;\n"])));
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
34
43
|
exports.BufferedTime = BufferedTime;
|
|
35
44
|
var LeftControls = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 10px;\n"])));
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
36
47
|
exports.LeftControls = LeftControls;
|
|
37
48
|
var RightControls = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n margin-right: 10px;\n color: '#c7d1db';\n"])));
|
|
38
49
|
exports.RightControls = RightControls;
|
|
39
50
|
var ControlsWrapper = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n bottom: 0;\n left: 0;\n width: 100%;\n height: auto;\n background: linear-gradient(to top, #101214, rgba(14, 22, 36, 0));\n position: absolute;\n"])));
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
40
53
|
exports.ControlsWrapper = ControlsWrapper;
|
|
41
54
|
var VolumeToggleWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin-right: 13px;\n\n button {\n width: 36px !important;\n color: ", ";\n }\n"])), function (_ref) {
|
|
42
55
|
var isMuted = _ref.isMuted;
|
|
43
56
|
return isMuted ? "#EF5C48 !important;" : '';
|
|
44
57
|
});
|
|
45
58
|
exports.VolumeToggleWrapper = VolumeToggleWrapper;
|
|
46
|
-
var VolumeTimeRangeWrapper = _styled.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-right:
|
|
59
|
+
var VolumeTimeRangeWrapper = _styled.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-right: ", ";\n"])), "var(--ds-space-250, 20px)");
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
47
62
|
exports.VolumeTimeRangeWrapper = VolumeTimeRangeWrapper;
|
|
48
63
|
var MutedIndicator = _styled.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n width: 29px;\n height: 2px;\n position: absolute;\n top: 10px;\n left: 9px;\n z-index: 2;\n background: ", ";\n transform: rotate(32deg) translateY(10px);\n opacity: 0;\n pointer-events: none;\n\n ", ";\n"])), _colors.R300, function (props) {
|
|
49
64
|
return props.isMuted ? "\n opacity: 1;\n " : '';
|
|
50
65
|
});
|
|
51
66
|
exports.MutedIndicator = MutedIndicator;
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
52
68
|
var CurrentTimeTooltip = _styled.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n user-select: none;\n top: -28px;\n background-color: #182c4c;\n color: #eff1f3;\n font-size: 12px;\n padding: 3px 7px;\n border-radius: 3px;\n left: 50%;\n transform: translateX(-50%);\n opacity: ", ";\n transition: opacity 0.3s;\n word-break: keep-all;\n"])), function (props) {
|
|
53
69
|
return props.isDragging ? '1' : '0';
|
|
54
70
|
});
|
package/dist/cjs/messages.js
CHANGED
|
@@ -231,6 +231,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
231
231
|
defaultMessage: 'Default avatars',
|
|
232
232
|
description: 'Showed above the default avatar list'
|
|
233
233
|
},
|
|
234
|
+
avatar_picker_back_btn_label: {
|
|
235
|
+
id: 'fabric.media.avatar_picker_back_btn_label',
|
|
236
|
+
defaultMessage: 'Go Back',
|
|
237
|
+
description: 'Button text to navigate back to the previous screen'
|
|
238
|
+
},
|
|
234
239
|
drag_and_drop_images_here: {
|
|
235
240
|
id: 'fabric.media.drag_and_drop_images_here',
|
|
236
241
|
defaultMessage: 'Drag and drop your images here',
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
2
|
// TODO: Figure out a more scalable/responsive solution
|
|
4
3
|
// for vertical alignment.
|
|
5
4
|
// Current rationale: vertically positioned at the top of
|
|
@@ -8,7 +7,7 @@ import styled from '@emotion/styled';
|
|
|
8
7
|
export const Icon = styled.img`
|
|
9
8
|
height: 14px;
|
|
10
9
|
width: 14px;
|
|
11
|
-
margin-right: 4px;
|
|
10
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
12
11
|
border-radius: 2px;
|
|
13
12
|
user-select: none;
|
|
14
13
|
position: absolute;
|
|
@@ -21,5 +20,5 @@ export const Icon = styled.img`
|
|
|
21
20
|
// are less than that in height/width.
|
|
22
21
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
23
22
|
export const AKIconWrapper = styled.span`
|
|
24
|
-
margin-right: -2px;
|
|
23
|
+
margin-right: calc(-1 * ${"var(--ds-space-025, 2px)"});
|
|
25
24
|
`;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
2
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
4
3
|
export const IconObjectOverrides = `
|
|
5
4
|
& > span {
|
|
@@ -49,7 +48,7 @@ export const IconWrapper = styled.span`
|
|
|
49
48
|
// Wraps all emoji in Inline Links similar to icon
|
|
50
49
|
export const EmojiWrapper = styled.span`
|
|
51
50
|
display: inline-block;
|
|
52
|
-
margin-right: 2px;
|
|
51
|
+
margin-right: ${"var(--ds-space-025, 2px)"};
|
|
53
52
|
user-select: none;
|
|
54
53
|
${IconOverrides}
|
|
55
54
|
${IconObjectOverrides}
|
|
@@ -68,20 +67,20 @@ export const LozengeWrapper = styled.span`
|
|
|
68
67
|
display: inline-block;
|
|
69
68
|
vertical-align: 1px;
|
|
70
69
|
& > span {
|
|
71
|
-
margin-left: 4px;
|
|
72
|
-
padding: 2px 0 2px 0;
|
|
70
|
+
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
71
|
+
padding: ${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-025, 2px)"} 0;
|
|
73
72
|
}
|
|
74
73
|
`;
|
|
75
74
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
76
75
|
export const LozengeBlockWrapper = styled.span`
|
|
77
76
|
& > span {
|
|
78
|
-
margin-left: 4px;
|
|
79
|
-
padding: 2px 0 2px 0;
|
|
77
|
+
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
78
|
+
padding: ${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-025, 2px)"} 0;
|
|
80
79
|
}
|
|
81
80
|
`;
|
|
82
81
|
export const RightIconPositionWrapper = styled.span`
|
|
83
|
-
margin-left: 2px;
|
|
84
|
-
margin-right: 4px;
|
|
82
|
+
margin-left: ${"var(--ds-space-025, 2px)"};
|
|
83
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
85
84
|
position: relative;
|
|
86
85
|
display: inline-block;
|
|
87
86
|
`;
|
|
@@ -90,7 +89,7 @@ export const RightIconPositionWrapper = styled.span`
|
|
|
90
89
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
91
90
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
92
91
|
export const IconPositionWrapper = styled.span`
|
|
93
|
-
margin-right: 4px;
|
|
92
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
94
93
|
position: relative;
|
|
95
94
|
display: inline-block;
|
|
96
95
|
`;
|
|
@@ -34,7 +34,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
34
34
|
import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
35
35
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
36
36
|
const packageName = "@atlaskit/media-ui";
|
|
37
|
-
const packageVersion = "23.0
|
|
37
|
+
const packageVersion = "23.1.0";
|
|
38
38
|
const MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
39
39
|
const SMALL_VIDEO_MAX_WIDTH = 160;
|
|
40
40
|
const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -12,6 +12,8 @@ export const VideoWrapper = styled.div`
|
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
`;
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
15
17
|
export const TimebarWrapper = styled.div`
|
|
16
18
|
display: flex;
|
|
17
19
|
align-items: center;
|
|
@@ -21,6 +23,7 @@ export const TimebarWrapper = styled.div`
|
|
|
21
23
|
width: 100%;
|
|
22
24
|
bottom: 10px;
|
|
23
25
|
`;
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
27
|
export const VolumeWrapper = styled.div`
|
|
25
28
|
display: flex;
|
|
26
29
|
width: 35px;
|
|
@@ -38,10 +41,14 @@ export const VolumeWrapper = styled.div`
|
|
|
38
41
|
}
|
|
39
42
|
` : ''}
|
|
40
43
|
`;
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
41
46
|
export const TimeWrapper = styled.div`
|
|
42
|
-
margin: 0 20px 10px 20px;
|
|
47
|
+
margin: 0 ${"var(--ds-space-250, 20px)"} 10px ${"var(--ds-space-250, 20px)"};
|
|
43
48
|
margin-bottom: 44px;
|
|
44
49
|
`;
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
45
52
|
export const CurrentTime = styled.div`
|
|
46
53
|
color: #c7d1db;
|
|
47
54
|
user-select: none;
|
|
@@ -90,10 +97,14 @@ export const BufferedTime = styled.div`
|
|
|
90
97
|
border-radius: inherit;
|
|
91
98
|
width: 0;
|
|
92
99
|
`;
|
|
100
|
+
|
|
101
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
93
102
|
export const LeftControls = styled.div`
|
|
94
103
|
display: flex;
|
|
95
104
|
margin-left: 10px;
|
|
96
105
|
`;
|
|
106
|
+
|
|
107
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
97
108
|
export const RightControls = styled.div`
|
|
98
109
|
display: flex;
|
|
99
110
|
align-items: center;
|
|
@@ -108,6 +119,8 @@ export const ControlsWrapper = styled.div`
|
|
|
108
119
|
background: linear-gradient(to top, #101214, rgba(14, 22, 36, 0));
|
|
109
120
|
position: absolute;
|
|
110
121
|
`;
|
|
122
|
+
|
|
123
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
111
124
|
export const VolumeToggleWrapper = styled.div`
|
|
112
125
|
position: relative;
|
|
113
126
|
margin-right: 13px;
|
|
@@ -121,8 +134,10 @@ export const VolumeToggleWrapper = styled.div`
|
|
|
121
134
|
`;
|
|
122
135
|
export const VolumeTimeRangeWrapper = styled.div`
|
|
123
136
|
width: 100%;
|
|
124
|
-
margin-right: 20px;
|
|
137
|
+
margin-right: ${"var(--ds-space-250, 20px)"};
|
|
125
138
|
`;
|
|
139
|
+
|
|
140
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
126
141
|
export const MutedIndicator = styled.div`
|
|
127
142
|
width: 29px;
|
|
128
143
|
height: 2px;
|
|
@@ -139,6 +154,7 @@ export const MutedIndicator = styled.div`
|
|
|
139
154
|
opacity: 1;
|
|
140
155
|
` : ''};
|
|
141
156
|
`;
|
|
157
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
142
158
|
export const CurrentTimeTooltip = styled.div`
|
|
143
159
|
position: absolute;
|
|
144
160
|
user-select: none;
|
package/dist/es2019/messages.js
CHANGED
|
@@ -225,6 +225,11 @@ export const messages = defineMessages({
|
|
|
225
225
|
defaultMessage: 'Default avatars',
|
|
226
226
|
description: 'Showed above the default avatar list'
|
|
227
227
|
},
|
|
228
|
+
avatar_picker_back_btn_label: {
|
|
229
|
+
id: 'fabric.media.avatar_picker_back_btn_label',
|
|
230
|
+
defaultMessage: 'Go Back',
|
|
231
|
+
description: 'Button text to navigate back to the previous screen'
|
|
232
|
+
},
|
|
228
233
|
drag_and_drop_images_here: {
|
|
229
234
|
id: 'fabric.media.drag_and_drop_images_here',
|
|
230
235
|
defaultMessage: 'Drag and drop your images here',
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
|
|
5
4
|
// TODO: Figure out a more scalable/responsive solution
|
|
6
5
|
// for vertical alignment.
|
|
7
6
|
// Current rationale: vertically positioned at the top of
|
|
8
7
|
// the smart card container (when set to 0). Offset this
|
|
9
8
|
// to position it with appropriate whitespace from the top.
|
|
10
|
-
export var Icon = styled.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 14px;\n width: 14px;\n margin-right:
|
|
9
|
+
export var Icon = styled.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 14px;\n width: 14px;\n margin-right: ", ";\n border-radius: 2px;\n user-select: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])), "var(--ds-space-050, 4px)");
|
|
11
10
|
|
|
12
11
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
13
12
|
// are less than that in height/width.
|
|
14
13
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
15
|
-
export var AKIconWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: -
|
|
14
|
+
export var AKIconWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: calc(-1 * ", ");\n"])), "var(--ds-space-025, 2px)");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
|
|
5
4
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
6
5
|
export var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
7
6
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
@@ -16,7 +15,7 @@ export var IconOverrides = "\n & > * > span {\n height: 16px;\n width: 14
|
|
|
16
15
|
export var IconWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides);
|
|
17
16
|
|
|
18
17
|
// Wraps all emoji in Inline Links similar to icon
|
|
19
|
-
export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right:
|
|
18
|
+
export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: ", ";\n user-select: none;\n ", "\n ", "\n"])), "var(--ds-space-025, 2px)", IconOverrides, IconObjectOverrides);
|
|
20
19
|
|
|
21
20
|
// The main 'wrapping' element, title of the content.
|
|
22
21
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
@@ -24,13 +23,13 @@ export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _t
|
|
|
24
23
|
export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: pre-wrap;\n word-break: break-all;\n"])));
|
|
25
24
|
|
|
26
25
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
27
|
-
export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left:
|
|
26
|
+
export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
28
27
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
29
|
-
export var LozengeBlockWrapper = styled.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n & > span {\n margin-left:
|
|
30
|
-
export var RightIconPositionWrapper = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left:
|
|
28
|
+
export var LozengeBlockWrapper = styled.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
29
|
+
export var RightIconPositionWrapper = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)");
|
|
31
30
|
|
|
32
31
|
// The following components are used to absolutely position icons in the vertical center.
|
|
33
32
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
34
33
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
35
|
-
export var IconPositionWrapper = styled.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right:
|
|
34
|
+
export var IconPositionWrapper = styled.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-050, 4px)");
|
|
36
35
|
export var IconEmptyWrapper = styled.span(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 14px;\n height: 100%;\n display: inline-block;\n opacity: 0;\n"])));
|
|
@@ -2,4 +2,4 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
5
|
-
export var SpinnerWrapper = styled(IconTitleWrapper)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n vertical-align: baseline;\n margin-left:
|
|
5
|
+
export var SpinnerWrapper = styled(IconTitleWrapper)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n vertical-align: baseline;\n margin-left: ", ";\n"])), "var(--ds-space-025, 2px)");
|
|
@@ -44,7 +44,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
44
44
|
import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
45
45
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
46
46
|
var packageName = "@atlaskit/media-ui";
|
|
47
|
-
var packageVersion = "23.0
|
|
47
|
+
var packageVersion = "23.1.0";
|
|
48
48
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
49
49
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
50
50
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -5,27 +5,43 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import { R300 } from '@atlaskit/theme/colors';
|
|
6
6
|
export var CustomVideoWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n user-select: none;\n"])));
|
|
7
7
|
export var VideoWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n"])));
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
8
10
|
export var TimebarWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: white;\n position: absolute;\n width: 100%;\n bottom: 10px;\n"])));
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
9
12
|
export var VolumeWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n width: 35px;\n overflow: hidden;\n transition: width 0.3s;\n align-items: center;\n bottom: 0px;\n left: 43px;\n\n ", "\n"])), function (props) {
|
|
10
13
|
return props.showSlider ? "\n &:hover,\n &:active {\n width: 150px;\n transition: width 0.3s ease-out;\n }\n " : '';
|
|
11
14
|
});
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
17
|
+
export var TimeWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0 ", " 10px ", ";\n margin-bottom: 44px;\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-250, 20px)");
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
13
20
|
export var CurrentTime = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: #c7d1db;\n user-select: none;\n margin-right: 10px;\n white-space: nowrap;\n"])));
|
|
14
21
|
export var TimeLine = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 100%;\n height: 2px;\n transition-delay: 1s;\n transition: all 0.1s;\n background-color: #596773;\n border-radius: 5px;\n position: relative;\n"])));
|
|
15
22
|
export var CurrentTimeLine = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background-color: #05c;\n border-radius: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n max-width: 100%;\n"])));
|
|
16
23
|
export var Thumb = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n pointer-events: none;\n width: 14px;\n height: 14px;\n border-radius: 100%;\n background-color: white;\n border: 1px solid #666;\n position: absolute;\n right: 0;\n top: 50%;\n\n transform: translate(7px, -50%) scale(0);\n transition: all 0.1s;\n transition-delay: 1s;\n\n &:hover .current-time-tooltip {\n opacity: 1;\n }\n"])));
|
|
17
24
|
export var BufferedTime = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background-color: #8696a7;\n height: inherit;\n border-radius: inherit;\n width: 0;\n"])));
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
18
27
|
export var LeftControls = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n margin-left: 10px;\n"])));
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
30
|
export var RightControls = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-right: 10px;\n color: '#c7d1db';\n"])));
|
|
20
31
|
export var ControlsWrapper = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n bottom: 0;\n left: 0;\n width: 100%;\n height: auto;\n background: linear-gradient(to top, #101214, rgba(14, 22, 36, 0));\n position: absolute;\n"])));
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
21
34
|
export var VolumeToggleWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: relative;\n margin-right: 13px;\n\n button {\n width: 36px !important;\n color: ", ";\n }\n"])), function (_ref) {
|
|
22
35
|
var isMuted = _ref.isMuted;
|
|
23
36
|
return isMuted ? "#EF5C48 !important;" : '';
|
|
24
37
|
});
|
|
25
|
-
export var VolumeTimeRangeWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n margin-right:
|
|
38
|
+
export var VolumeTimeRangeWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n margin-right: ", ";\n"])), "var(--ds-space-250, 20px)");
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
26
41
|
export var MutedIndicator = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 29px;\n height: 2px;\n position: absolute;\n top: 10px;\n left: 9px;\n z-index: 2;\n background: ", ";\n transform: rotate(32deg) translateY(10px);\n opacity: 0;\n pointer-events: none;\n\n ", ";\n"])), R300, function (props) {
|
|
27
42
|
return props.isMuted ? "\n opacity: 1;\n " : '';
|
|
28
43
|
});
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
29
45
|
export var CurrentTimeTooltip = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n position: absolute;\n user-select: none;\n top: -28px;\n background-color: #182c4c;\n color: #eff1f3;\n font-size: 12px;\n padding: 3px 7px;\n border-radius: 3px;\n left: 50%;\n transform: translateX(-50%);\n opacity: ", ";\n transition: opacity 0.3s;\n word-break: keep-all;\n"])), function (props) {
|
|
30
46
|
return props.isDragging ? '1' : '0';
|
|
31
47
|
});
|
package/dist/esm/messages.js
CHANGED
|
@@ -225,6 +225,11 @@ export var messages = defineMessages({
|
|
|
225
225
|
defaultMessage: 'Default avatars',
|
|
226
226
|
description: 'Showed above the default avatar list'
|
|
227
227
|
},
|
|
228
|
+
avatar_picker_back_btn_label: {
|
|
229
|
+
id: 'fabric.media.avatar_picker_back_btn_label',
|
|
230
|
+
defaultMessage: 'Go Back',
|
|
231
|
+
description: 'Button text to navigate back to the previous screen'
|
|
232
|
+
},
|
|
228
233
|
drag_and_drop_images_here: {
|
|
229
234
|
id: 'fabric.media.drag_and_drop_images_here',
|
|
230
235
|
defaultMessage: 'Drag and drop your images here',
|
package/dist/esm/version.json
CHANGED
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'request_access_description' | 'click_to_join_description' | 'request_access_pending_description' | 'click_to_join' | 'request_access' | 'request_access_pending' | 'forbidden_description' | 'request_denied_description';
|
|
3
|
-
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'upload_an_avatar' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'drag_and_drop_images_here' | 'upload_image' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | RequestAccessMessageKey;
|
|
3
|
+
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'upload_an_avatar' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'upload_image' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'request_access_description' | 'click_to_join_description' | 'request_access_pending_description' | 'click_to_join' | 'request_access' | 'request_access_pending' | 'forbidden_description' | 'request_denied_description';
|
|
3
|
-
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'upload_an_avatar' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'drag_and_drop_images_here' | 'upload_image' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | RequestAccessMessageKey;
|
|
3
|
+
export type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'upload_an_avatar' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'upload_image' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -3,7 +3,7 @@ import { N900 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
|
|
5
5
|
export const InputWrapper = styled.div`
|
|
6
|
-
margin: 20px 0;
|
|
6
|
+
margin: ${token('space.250', '20px')} 0;
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
export const PreviewList = styled.ul`
|
|
@@ -16,6 +16,7 @@ export const PreviewInfo = styled.pre`
|
|
|
16
16
|
font-size: 80%;
|
|
17
17
|
`;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
export const PreviewItem = styled.li`
|
|
20
21
|
border-radius: 10px;
|
|
21
22
|
border: 1px solid ${token('color.border', '#ccc')};
|
|
@@ -26,6 +27,7 @@ export const PreviewItem = styled.li`
|
|
|
26
27
|
margin-bottom: 10px;
|
|
27
28
|
`;
|
|
28
29
|
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
29
31
|
export const Code = styled.code`
|
|
30
32
|
padding: 5px;
|
|
31
33
|
border-radius: 5px;
|
|
@@ -34,6 +36,7 @@ export const Code = styled.code`
|
|
|
34
36
|
font-size: 80%;
|
|
35
37
|
`;
|
|
36
38
|
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
37
40
|
export const CloseButton = styled.button`
|
|
38
41
|
position: absolute;
|
|
39
42
|
top: 5px;
|
|
@@ -41,18 +44,19 @@ export const CloseButton = styled.button`
|
|
|
41
44
|
cursor: pointer;
|
|
42
45
|
`;
|
|
43
46
|
|
|
47
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
44
48
|
export const PreviewImageContainer = styled.div`
|
|
45
49
|
margin-top: 10px;
|
|
46
50
|
margin-bottom: 10px;
|
|
47
51
|
`;
|
|
48
52
|
|
|
49
53
|
export const OrientationSelectWrapper = styled.label`
|
|
50
|
-
margin-bottom: 20px;
|
|
54
|
+
margin-bottom: ${token('space.250', '20px')};
|
|
51
55
|
display: block;
|
|
52
56
|
`;
|
|
53
57
|
|
|
54
58
|
export const TimeRangeWrapper = styled.div`
|
|
55
|
-
margin-top: 40px;
|
|
59
|
+
margin-top: ${token('space.500', '40px')};
|
|
56
60
|
`;
|
|
57
61
|
|
|
58
62
|
export const Container = styled.div`
|
|
@@ -60,7 +64,8 @@ export const Container = styled.div`
|
|
|
60
64
|
flex-direction: row;
|
|
61
65
|
flex-wrap: wrap;
|
|
62
66
|
`;
|
|
67
|
+
|
|
63
68
|
export const Group = styled.div`
|
|
64
69
|
width: 250px;
|
|
65
|
-
padding: 20px;
|
|
70
|
+
padding: ${token('space.250', '20px')};
|
|
66
71
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "23.0
|
|
3
|
+
"version": "23.1.0",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
51
|
-
"@atlaskit/button": "^16.
|
|
51
|
+
"@atlaskit/button": "^16.8.0",
|
|
52
52
|
"@atlaskit/code": "^14.6.0",
|
|
53
53
|
"@atlaskit/icon": "^21.12.0",
|
|
54
54
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/select": "^16.5.0",
|
|
58
58
|
"@atlaskit/spinner": "^15.5.0",
|
|
59
59
|
"@atlaskit/theme": "^12.5.0",
|
|
60
|
-
"@atlaskit/tokens": "^1.
|
|
60
|
+
"@atlaskit/tokens": "^1.9.0",
|
|
61
61
|
"@atlaskit/tooltip": "^17.8.0",
|
|
62
62
|
"@atlaskit/width-detector": "^4.1.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
@@ -76,8 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
79
|
-
"@atlaskit/button": "^16.
|
|
80
|
-
"@atlaskit/checkbox": "^12.6.0",
|
|
79
|
+
"@atlaskit/button": "^16.8.0",
|
|
81
80
|
"@atlaskit/docs": "*",
|
|
82
81
|
"@atlaskit/lozenge": "^11.4.0",
|
|
83
82
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
@@ -107,7 +106,8 @@
|
|
|
107
106
|
},
|
|
108
107
|
"@repo/internal": {
|
|
109
108
|
"design-tokens": [
|
|
110
|
-
"color"
|
|
109
|
+
"color",
|
|
110
|
+
"spacing"
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
},
|
package/report.api.md
CHANGED
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -466,7 +466,7 @@ type MediaTypeProps = {
|
|
|
466
466
|
};
|
|
467
467
|
|
|
468
468
|
// @public (undocumented)
|
|
469
|
-
export type MessageKey = 'accounts' | 'actions' | 'add_account' | 'annotate' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_content' | 'annotate_confirmation_heading' | 'annotate_tool_arrow' | 'annotate_tool_blur' | 'annotate_tool_brush' | 'annotate_tool_color' | 'annotate_tool_line_thickness' | 'annotate_tool_shape' | 'annotate_tool_text' | 'archive' | 'audio' | 'cancel' | 'cant_preview_file_type' | 'cant_retrieve_files' | 'cant_retrieve_gifs' | 'changeView' | 'check_your_network' | 'close' | 'close_and_reopen' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_description' | 'connect_link_account_card_name' | 'connect_to' | 'could_not_load_editor' | 'could_not_load_link' | 'could_not_save_image' | 'couldnt_generate_encrypted_entry_preview' | 'couldnt_generate_preview' | 'couldnt_load_file' | 'creating_preview' | 'default_avatars' | 'disable_fullscreen' | 'displayThumbnail' | 'document' | 'download' | 'drag_and_drop_images_here' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'drop_your_files_here' | 'email' | 'enable_fullscreen' | 'error_429' | 'error_generating_preview' | 'error_hint_critical' | 'error_hint_retry' | 'error_loading_file' | 'failed_to_load' | 'failed_to_upload' | 'give_feedback' | 'image' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'image_url_invalid_error' | 'insert_files' | 'invalid_permissions' | 'invalid_permissions_description' | 'item_not_found_in_list' | 'learn_more' | 'load_more_gifs' | 'loading' | 'loading_file' | 'might_be_a_hiccup' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'no_pdf_artifacts' | 'not_found_description' | 'not_found_title' | 'or' | 'pause' | 'play' | 'playbackDefaultSpeed' | 'playbackSpeed' | 'preview' | 'preview_currently_unavailable' | 'preview_unavailable' | 'recent_uploads' | 'remove_image' | 'retry' | 'save' | 'search' | 'search_all_gifs' | 'share_files_instantly' | 'skipBackward' | 'skipForward' | 'something_went_wrong' | 'text' | 'try_again' | 'try_another_account' | 'try_downloading_file' | 'unable_to_annotate_image' | 'unknown' | 'unlink_account' | 'upload' | 'upload_an_avatar' | 'upload_file' | 'upload_file_from' | 'upload_image' | 'upload_photo' | 'video' | 'view' | 'viewIn' | 'viewOriginal' | 'viewer_rateLimited' | 'webgl_warning_description' | 'zip_entry_load_fail' | 'zoom_in' | 'zoom_out' | RequestAccessMessageKey;
|
|
469
|
+
export type MessageKey = 'accounts' | 'actions' | 'add_account' | 'annotate' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_content' | 'annotate_confirmation_heading' | 'annotate_tool_arrow' | 'annotate_tool_blur' | 'annotate_tool_brush' | 'annotate_tool_color' | 'annotate_tool_line_thickness' | 'annotate_tool_shape' | 'annotate_tool_text' | 'archive' | 'audio' | 'avatar_picker_back_btn_label' | 'cancel' | 'cant_preview_file_type' | 'cant_retrieve_files' | 'cant_retrieve_gifs' | 'changeView' | 'check_your_network' | 'close' | 'close_and_reopen' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_description' | 'connect_link_account_card_name' | 'connect_to' | 'could_not_load_editor' | 'could_not_load_link' | 'could_not_save_image' | 'couldnt_generate_encrypted_entry_preview' | 'couldnt_generate_preview' | 'couldnt_load_file' | 'creating_preview' | 'default_avatars' | 'disable_fullscreen' | 'displayThumbnail' | 'document' | 'download' | 'drag_and_drop_images_here' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'drop_your_files_here' | 'email' | 'enable_fullscreen' | 'error_429' | 'error_generating_preview' | 'error_hint_critical' | 'error_hint_retry' | 'error_loading_file' | 'failed_to_load' | 'failed_to_upload' | 'give_feedback' | 'image' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'image_url_invalid_error' | 'insert_files' | 'invalid_permissions' | 'invalid_permissions_description' | 'item_not_found_in_list' | 'learn_more' | 'load_more_gifs' | 'loading' | 'loading_file' | 'might_be_a_hiccup' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'no_pdf_artifacts' | 'not_found_description' | 'not_found_title' | 'or' | 'pause' | 'play' | 'playbackDefaultSpeed' | 'playbackSpeed' | 'preview' | 'preview_currently_unavailable' | 'preview_unavailable' | 'recent_uploads' | 'remove_image' | 'retry' | 'save' | 'search' | 'search_all_gifs' | 'share_files_instantly' | 'skipBackward' | 'skipForward' | 'something_went_wrong' | 'text' | 'try_again' | 'try_another_account' | 'try_downloading_file' | 'unable_to_annotate_image' | 'unknown' | 'unlink_account' | 'upload' | 'upload_an_avatar' | 'upload_file' | 'upload_file_from' | 'upload_image' | 'upload_photo' | 'video' | 'view' | 'viewIn' | 'viewOriginal' | 'viewer_rateLimited' | 'webgl_warning_description' | 'zip_entry_load_fail' | 'zoom_in' | 'zoom_out' | RequestAccessMessageKey;
|
|
470
470
|
|
|
471
471
|
// @public (undocumented)
|
|
472
472
|
type Messages = {
|