@atlaskit/media-ui 27.3.0 → 27.3.2
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 +15 -0
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled-compiled.compiled.css +5 -2
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled-compiled.js +2 -8
- package/dist/cjs/abuseModal/abuseModal.js +16 -29
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/styled-compiled.compiled.css +4 -1
- package/dist/cjs/customMediaPlayer/styled-compiled.js +2 -6
- package/dist/cjs/messages.js +16 -1
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled-compiled.compiled.css +5 -2
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled-compiled.js +2 -2
- package/dist/es2019/abuseModal/abuseModal.js +18 -21
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/styled-compiled.compiled.css +4 -1
- package/dist/es2019/customMediaPlayer/styled-compiled.js +1 -1
- package/dist/es2019/messages.js +16 -1
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled-compiled.compiled.css +5 -2
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled-compiled.js +2 -8
- package/dist/esm/abuseModal/abuseModal.js +16 -29
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/styled-compiled.compiled.css +4 -1
- package/dist/esm/customMediaPlayer/styled-compiled.js +2 -6
- package/dist/esm/messages.js +16 -1
- package/dist/types/abuseModal/abuseModal.d.ts +7 -4
- package/dist/types/messages.d.ts +1 -1
- package/dist/types-ts4.5/abuseModal/abuseModal.d.ts +7 -4
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 27.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107798](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107798)
|
|
8
|
+
[`6f9d0367cb933`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6f9d0367cb933) -
|
|
9
|
+
Updated DSP Enforcement Message
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 27.3.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 27.3.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
._1esr1qcg>span{padding:var(--_1yxkslj)}._15x0stnw>*>span>svg{position:absolute}
|
|
1
|
+
._15x0stnw>*>span>svg{position:absolute}
|
|
3
2
|
._17047vkz>*>span{height:1pc}
|
|
4
3
|
._18lx1ooe>span>svg{transform:translate(-50%,-50%)}
|
|
5
4
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
5
|
+
._1at8v77o>span{padding-top:var(--ds-space-025,2px)}
|
|
6
6
|
._1bsbdlk8{width:14px}
|
|
7
|
+
._1cjov77o>span{padding-bottom:var(--ds-space-025,2px)}
|
|
7
8
|
._1e0c1o8l{display:inline-block}
|
|
8
9
|
._1f027vkz>span{height:1pc}
|
|
9
10
|
._1fqgstnw>span>svg{position:absolute}
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
._1msp1b66>span{margin-left:var(--ds-space-050,4px)}
|
|
13
14
|
._1nmz9jpi{word-break:break-all}
|
|
14
15
|
._1tr81ssb>*>span>svg{left:50%}
|
|
16
|
+
._1yg6idpf>span{padding-left:0}
|
|
15
17
|
._1yg7idpf>*>span{left:0}
|
|
16
18
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
19
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
@@ -19,6 +21,7 @@
|
|
|
19
21
|
._4d7tstnw>span{position:absolute}
|
|
20
22
|
._4t3i1osq{height:100%}
|
|
21
23
|
._d1gw1ssb>span>svg{top:50%}
|
|
24
|
+
._hjaqidpf>span{padding-right:0}
|
|
22
25
|
._iibfdlk8>*>span{width:14px}
|
|
23
26
|
._k9fw1ssb>*>span>svg{top:50%}
|
|
24
27
|
._kqswh2mm{position:relative}
|
|
@@ -73,10 +73,7 @@ var LozengeWrapper = exports.LozengeWrapper = function LozengeWrapper(_ref4) {
|
|
|
73
73
|
var children = _ref4.children,
|
|
74
74
|
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded4);
|
|
75
75
|
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
|
|
76
|
-
className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y
|
|
77
|
-
style: {
|
|
78
|
-
"--_1yxkslj": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0"))
|
|
79
|
-
}
|
|
76
|
+
className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y _1msp1b66 _1at8v77o _hjaqidpf _1cjov77o _1yg6idpf"])
|
|
80
77
|
}), children);
|
|
81
78
|
};
|
|
82
79
|
var lozengeBlockWrapperStyles = null;
|
|
@@ -86,10 +83,7 @@ var LozengeBlockWrapper = exports.LozengeBlockWrapper = function LozengeBlockWra
|
|
|
86
83
|
var children = _ref5.children,
|
|
87
84
|
props = (0, _objectWithoutProperties2.default)(_ref5, _excluded5);
|
|
88
85
|
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
|
|
89
|
-
className: (0, _runtime.ax)(["
|
|
90
|
-
style: {
|
|
91
|
-
"--_1yxkslj": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0"))
|
|
92
|
-
}
|
|
86
|
+
className: (0, _runtime.ax)(["_1msp1b66 _1at8v77o _hjaqidpf _1cjov77o _1yg6idpf"])
|
|
93
87
|
}), children);
|
|
94
88
|
};
|
|
95
89
|
var rightIconPositionWrapperStyles = null;
|
|
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.AbuseModal = void 0;
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactIntlNext = require("react-intl-next");
|
|
11
11
|
var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
|
|
12
12
|
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
13
13
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
|
+
var _messages = require("../messages");
|
|
15
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
18
|
var gridStyles = (0, _primitives.xcss)({
|
|
@@ -23,27 +24,13 @@ var closeContainerStyles = (0, _primitives.xcss)({
|
|
|
23
24
|
var titleContainerStyles = (0, _primitives.xcss)({
|
|
24
25
|
gridArea: 'title'
|
|
25
26
|
});
|
|
26
|
-
var AbuseModal = exports.AbuseModal =
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var closeModal = (0, _react.useCallback)(function () {
|
|
34
|
-
return setIsOpen(false);
|
|
35
|
-
}, []);
|
|
36
|
-
var confirm = (0, _react.useCallback)(function () {
|
|
37
|
-
onConfirm === null || onConfirm === void 0 || onConfirm();
|
|
38
|
-
closeModal();
|
|
39
|
-
}, [onConfirm, closeModal]);
|
|
40
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
41
|
-
return function () {
|
|
42
|
-
return setIsOpen(true);
|
|
43
|
-
};
|
|
44
|
-
}, []);
|
|
45
|
-
return !shouldMount ? null : /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, isOpen && /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
46
|
-
onClose: closeModal,
|
|
27
|
+
var AbuseModal = exports.AbuseModal = (0, _reactIntlNext.injectIntl)(function (_ref) {
|
|
28
|
+
var isOpen = _ref.isOpen,
|
|
29
|
+
onConfirm = _ref.onConfirm,
|
|
30
|
+
onClose = _ref.onClose,
|
|
31
|
+
formatMessage = _ref.intl.formatMessage;
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, isOpen && /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
33
|
+
onClose: onClose,
|
|
47
34
|
testId: "mediaAbuseModal"
|
|
48
35
|
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_primitives.Grid, {
|
|
49
36
|
gap: "space.200",
|
|
@@ -56,17 +43,17 @@ var AbuseModal = exports.AbuseModal = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
56
43
|
appearance: "subtle",
|
|
57
44
|
icon: _closeCross.default,
|
|
58
45
|
label: "Close Modal",
|
|
59
|
-
onClick:
|
|
46
|
+
onClick: onClose
|
|
60
47
|
})), /*#__PURE__*/_react.default.createElement(_primitives.Flex, {
|
|
61
48
|
xcss: titleContainerStyles,
|
|
62
49
|
justifyContent: "start"
|
|
63
50
|
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
|
|
64
51
|
appearance: "warning"
|
|
65
|
-
},
|
|
52
|
+
}, formatMessage(_messages.messages.abuse_modal_title))))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, formatMessage(_messages.messages.abuse_modal_body)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
66
53
|
appearance: "subtle",
|
|
67
|
-
onClick:
|
|
68
|
-
},
|
|
54
|
+
onClick: onClose
|
|
55
|
+
}, formatMessage(_messages.messages.cancel)), /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
69
56
|
appearance: "warning",
|
|
70
|
-
onClick:
|
|
71
|
-
},
|
|
57
|
+
onClick: onConfirm
|
|
58
|
+
}, formatMessage(_messages.messages.abuse_modal_submit)))));
|
|
72
59
|
});
|
|
@@ -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 = "27.3.
|
|
19
|
+
var packageVersion = "27.3.2";
|
|
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)({
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
._11q7acks{background:linear-gradient(0deg,#101214,rgba(14,22,36,0))}
|
|
3
3
|
._19itglyw{border:none}
|
|
4
4
|
._1a37q36z{outline:var(--_k4vj5w)}
|
|
5
|
-
._1yt4necs{padding:var(--_5sw9gb)}
|
|
6
5
|
._2rko14y2{border-radius:5px}
|
|
7
6
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
8
7
|
._2rko1kw7{border-radius:inherit}
|
|
@@ -24,6 +23,7 @@
|
|
|
24
23
|
._1838glyw input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none}
|
|
25
24
|
._18m915vq{overflow-y:hidden}
|
|
26
25
|
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
26
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
27
27
|
._1a96a6sd input[type=range]::-moz-range-progress{background-color:#9fadbc}
|
|
28
28
|
._1az8glyw input[type=range]::-webkit-slider-thumb{--webkit-appearance:none}
|
|
29
29
|
._1bsb1osq{width:100%}
|
|
@@ -69,12 +69,14 @@
|
|
|
69
69
|
._bfhk7g9i{background-color:#05c}
|
|
70
70
|
._bfhk9ucv{background-color:#596773}
|
|
71
71
|
._bfhku67f{background-color:#fff}
|
|
72
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
72
73
|
._d32vqb75 button{color:#ef5c48!important}
|
|
73
74
|
._dey49ucv input[type=range]::-moz-range-track{background-color:#596773}
|
|
74
75
|
._iofsa6sd input[type=range]::-webkit-slider-runnable-track{--track-fg:#9fadbc}
|
|
75
76
|
._kqswh2mm{position:relative}
|
|
76
77
|
._kqswstnw{position:absolute}
|
|
77
78
|
._lcxvglyw{pointer-events:none}
|
|
79
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
78
80
|
._o5721q9c{white-space:nowrap}
|
|
79
81
|
._p12f1osq{max-width:100%}
|
|
80
82
|
._rs6wdlk8 input[type=range]::-moz-range-thumb{height:14px}
|
|
@@ -87,6 +89,7 @@
|
|
|
87
89
|
._tzy4idpf{opacity:0}
|
|
88
90
|
._tzy4kb7n{opacity:1}
|
|
89
91
|
._u2q4a6sd input[type=range]::-moz-range-thumb{background-color:#9fadbc}
|
|
92
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
90
93
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
91
94
|
._13y6o43e:focus-within{transition:width .3s ease-out}
|
|
92
95
|
._195p1w81:focus-within{width:150px}
|
|
@@ -167,12 +167,8 @@ var CurrentTimeTooltip = exports.CurrentTimeTooltip = function CurrentTimeToolti
|
|
|
167
167
|
props = (0, _objectWithoutProperties2.default)(_ref14, _excluded14);
|
|
168
168
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
169
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
170
|
-
className: (0, _runtime.ax)(["_11c8qk37
|
|
171
|
-
}, props,
|
|
172
|
-
style: {
|
|
173
|
-
"--_5sw9gb": (0, _runtime.ix)("var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"))
|
|
174
|
-
}
|
|
175
|
-
}), children);
|
|
170
|
+
className: (0, _runtime.ax)(["_11c8qk37 _2rko1b66 _v564g17y _kqswstnw _uiztglyw _154iukr8 _bfhk39qu _syaz1pcz _ca0q1b66 _u5f3u2gc _n3td1b66 _19bvu2gc _1ltv1ssb _t9eczr6s _1nmz16rz", isDragging && "_tzy4kb7n", !isDragging && "_tzy4idpf", timeLineThumbIsHover && "_tzy4kb7n", timeLineThumbIsFocus && "_tzy4kb7n", "current-time-tooltip"])
|
|
171
|
+
}, props), children);
|
|
176
172
|
};
|
|
177
173
|
var timeRangeWrapperStyles = null;
|
|
178
174
|
var TimeRangeWrapper = exports.TimeRangeWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref15, ref) {
|
package/dist/cjs/messages.js
CHANGED
|
@@ -543,7 +543,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
543
543
|
},
|
|
544
544
|
download_disabled_security_policy: {
|
|
545
545
|
id: 'fabric.media.download_disabled_security_policy',
|
|
546
|
-
defaultMessage:
|
|
546
|
+
defaultMessage: "Download is blocked by your organization's security policy.",
|
|
547
547
|
description: ''
|
|
548
548
|
},
|
|
549
549
|
unknown: {
|
|
@@ -730,5 +730,20 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
730
730
|
id: 'fabric.media.video_seeker_label_assistive_text',
|
|
731
731
|
defaultMessage: 'Seek slider',
|
|
732
732
|
description: 'Video time seek slider aria-label'
|
|
733
|
+
},
|
|
734
|
+
abuse_modal_body: {
|
|
735
|
+
id: 'fabric.media.abuse_modal_body',
|
|
736
|
+
defaultMessage: 'For your security, our system automatically scans all uploaded files. The file you are about to download potentially contains malicious content',
|
|
737
|
+
description: 'Abuse Modal Body Message'
|
|
738
|
+
},
|
|
739
|
+
abuse_modal_title: {
|
|
740
|
+
id: 'fabric.media.abuse_modal_title',
|
|
741
|
+
defaultMessage: 'Warning',
|
|
742
|
+
description: 'Abuse Modal Title'
|
|
743
|
+
},
|
|
744
|
+
abuse_modal_submit: {
|
|
745
|
+
id: 'fabric.media.abuse_modal_submit',
|
|
746
|
+
defaultMessage: 'Proceed with download',
|
|
747
|
+
description: 'Abuse Modal Submit button caption'
|
|
733
748
|
}
|
|
734
749
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
._1esr1ocd>span{padding:var(--ds-space-025,2px) 0 var(--ds-space-025,2px) 0}._15x0stnw>*>span>svg{position:absolute}
|
|
1
|
+
._15x0stnw>*>span>svg{position:absolute}
|
|
3
2
|
._17047vkz>*>span{height:1pc}
|
|
4
3
|
._18lx1ooe>span>svg{transform:translate(-50%,-50%)}
|
|
5
4
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
5
|
+
._1at8v77o>span{padding-top:var(--ds-space-025,2px)}
|
|
6
6
|
._1bsbdlk8{width:14px}
|
|
7
|
+
._1cjov77o>span{padding-bottom:var(--ds-space-025,2px)}
|
|
7
8
|
._1e0c1o8l{display:inline-block}
|
|
8
9
|
._1f027vkz>span{height:1pc}
|
|
9
10
|
._1fqgstnw>span>svg{position:absolute}
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
._1msp1b66>span{margin-left:var(--ds-space-050,4px)}
|
|
13
14
|
._1nmz9jpi{word-break:break-all}
|
|
14
15
|
._1tr81ssb>*>span>svg{left:50%}
|
|
16
|
+
._1yg6idpf>span{padding-left:0}
|
|
15
17
|
._1yg7idpf>*>span{left:0}
|
|
16
18
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
19
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
@@ -19,6 +21,7 @@
|
|
|
19
21
|
._4d7tstnw>span{position:absolute}
|
|
20
22
|
._4t3i1osq{height:100%}
|
|
21
23
|
._d1gw1ssb>span>svg{top:50%}
|
|
24
|
+
._hjaqidpf>span{padding-right:0}
|
|
22
25
|
._iibfdlk8>*>span{width:14px}
|
|
23
26
|
._k9fw1ssb>*>span>svg{top:50%}
|
|
24
27
|
._kqswh2mm{position:relative}
|
|
@@ -51,7 +51,7 @@ export const LozengeWrapper = ({
|
|
|
51
51
|
children,
|
|
52
52
|
...props
|
|
53
53
|
}) => /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
54
|
-
className: ax(["_1e0c1o8l _s7n4t94y
|
|
54
|
+
className: ax(["_1e0c1o8l _s7n4t94y _1msp1b66 _1at8v77o _hjaqidpf _1cjov77o _1yg6idpf"])
|
|
55
55
|
}), children);
|
|
56
56
|
const lozengeBlockWrapperStyles = null;
|
|
57
57
|
|
|
@@ -60,7 +60,7 @@ export const LozengeBlockWrapper = ({
|
|
|
60
60
|
children,
|
|
61
61
|
...props
|
|
62
62
|
}) => /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
63
|
-
className: ax(["
|
|
63
|
+
className: ax(["_1msp1b66 _1at8v77o _hjaqidpf _1cjov77o _1yg6idpf"])
|
|
64
64
|
}), children);
|
|
65
65
|
const rightIconPositionWrapperStyles = null;
|
|
66
66
|
export const RightIconPositionWrapper = ({
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { injectIntl } from 'react-intl-next';
|
|
2
3
|
import Button, { IconButton } from '@atlaskit/button/new';
|
|
3
4
|
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
4
5
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
6
|
import { Flex, Grid, xcss } from '@atlaskit/primitives';
|
|
7
|
+
import { messages } from '../messages';
|
|
6
8
|
const gridStyles = xcss({
|
|
7
9
|
width: '100%'
|
|
8
10
|
});
|
|
@@ -12,21 +14,16 @@ const closeContainerStyles = xcss({
|
|
|
12
14
|
const titleContainerStyles = xcss({
|
|
13
15
|
gridArea: 'title'
|
|
14
16
|
});
|
|
15
|
-
export const AbuseModal =
|
|
17
|
+
export const AbuseModal = injectIntl(({
|
|
18
|
+
isOpen,
|
|
16
19
|
onConfirm,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [onConfirm, closeModal]);
|
|
25
|
-
useImperativeHandle(ref, () => {
|
|
26
|
-
return () => setIsOpen(true);
|
|
27
|
-
}, []);
|
|
28
|
-
return !shouldMount ? null : /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
29
|
-
onClose: closeModal,
|
|
20
|
+
onClose,
|
|
21
|
+
intl: {
|
|
22
|
+
formatMessage
|
|
23
|
+
}
|
|
24
|
+
}) => {
|
|
25
|
+
return /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
26
|
+
onClose: onClose,
|
|
30
27
|
testId: "mediaAbuseModal"
|
|
31
28
|
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Grid, {
|
|
32
29
|
gap: "space.200",
|
|
@@ -39,17 +36,17 @@ export const AbuseModal = /*#__PURE__*/forwardRef(({
|
|
|
39
36
|
appearance: "subtle",
|
|
40
37
|
icon: CrossIcon,
|
|
41
38
|
label: "Close Modal",
|
|
42
|
-
onClick:
|
|
39
|
+
onClick: onClose
|
|
43
40
|
})), /*#__PURE__*/React.createElement(Flex, {
|
|
44
41
|
xcss: titleContainerStyles,
|
|
45
42
|
justifyContent: "start"
|
|
46
43
|
}, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
47
44
|
appearance: "warning"
|
|
48
|
-
},
|
|
45
|
+
}, formatMessage(messages.abuse_modal_title))))), /*#__PURE__*/React.createElement(ModalBody, null, formatMessage(messages.abuse_modal_body)), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
|
|
49
46
|
appearance: "subtle",
|
|
50
|
-
onClick:
|
|
51
|
-
},
|
|
47
|
+
onClick: onClose
|
|
48
|
+
}, formatMessage(messages.cancel)), /*#__PURE__*/React.createElement(Button, {
|
|
52
49
|
appearance: "warning",
|
|
53
|
-
onClick:
|
|
54
|
-
},
|
|
50
|
+
onClick: onConfirm
|
|
51
|
+
}, formatMessage(messages.abuse_modal_submit)))));
|
|
55
52
|
});
|
|
@@ -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 = "27.3.
|
|
10
|
+
const packageVersion = "27.3.2";
|
|
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({
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
._11q7acks{background:linear-gradient(0deg,#101214,rgba(14,22,36,0))}
|
|
3
3
|
._19itglyw{border:none}
|
|
4
4
|
._1a371rek{outline:2px solid var(--ds-border-focused,#85b8ff)}
|
|
5
|
-
._1yt418iy{padding:var(--ds-space-050,4px) var(--ds-space-100,8px)}
|
|
6
5
|
._2rko14y2{border-radius:5px}
|
|
7
6
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
8
7
|
._2rko1kw7{border-radius:inherit}
|
|
@@ -24,6 +23,7 @@
|
|
|
24
23
|
._1838glyw input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none}
|
|
25
24
|
._18m915vq{overflow-y:hidden}
|
|
26
25
|
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
26
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
27
27
|
._1a96a6sd input[type=range]::-moz-range-progress{background-color:#9fadbc}
|
|
28
28
|
._1az8glyw input[type=range]::-webkit-slider-thumb{--webkit-appearance:none}
|
|
29
29
|
._1bsb1osq{width:100%}
|
|
@@ -69,12 +69,14 @@
|
|
|
69
69
|
._bfhk7g9i{background-color:#05c}
|
|
70
70
|
._bfhk9ucv{background-color:#596773}
|
|
71
71
|
._bfhku67f{background-color:#fff}
|
|
72
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
72
73
|
._d32vqb75 button{color:#ef5c48!important}
|
|
73
74
|
._dey49ucv input[type=range]::-moz-range-track{background-color:#596773}
|
|
74
75
|
._iofsa6sd input[type=range]::-webkit-slider-runnable-track{--track-fg:#9fadbc}
|
|
75
76
|
._kqswh2mm{position:relative}
|
|
76
77
|
._kqswstnw{position:absolute}
|
|
77
78
|
._lcxvglyw{pointer-events:none}
|
|
79
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
78
80
|
._o5721q9c{white-space:nowrap}
|
|
79
81
|
._p12f1osq{max-width:100%}
|
|
80
82
|
._rs6wdlk8 input[type=range]::-moz-range-thumb{height:14px}
|
|
@@ -87,6 +89,7 @@
|
|
|
87
89
|
._tzy4idpf{opacity:0}
|
|
88
90
|
._tzy4kb7n{opacity:1}
|
|
89
91
|
._u2q4a6sd input[type=range]::-moz-range-thumb{background-color:#9fadbc}
|
|
92
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
90
93
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
91
94
|
._13y6o43e:focus-within{transition:width .3s ease-out}
|
|
92
95
|
._195p1w81:focus-within{width:150px}
|
|
@@ -132,7 +132,7 @@ export const CurrentTimeTooltip = ({
|
|
|
132
132
|
...props
|
|
133
133
|
}) => /*#__PURE__*/React.createElement("div", _extends({
|
|
134
134
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
135
|
-
className: ax(["_11c8qk37
|
|
135
|
+
className: ax(["_11c8qk37 _2rko1b66 _v564g17y _kqswstnw _uiztglyw _154iukr8 _bfhk39qu _syaz1pcz _ca0q1b66 _u5f3u2gc _n3td1b66 _19bvu2gc _1ltv1ssb _t9eczr6s _1nmz16rz", isDragging && "_tzy4kb7n", !isDragging && "_tzy4idpf", timeLineThumbIsHover && "_tzy4kb7n", timeLineThumbIsFocus && "_tzy4kb7n", "current-time-tooltip"])
|
|
136
136
|
}, props), children);
|
|
137
137
|
const timeRangeWrapperStyles = null;
|
|
138
138
|
export const TimeRangeWrapper = /*#__PURE__*/forwardRef(({
|
package/dist/es2019/messages.js
CHANGED
|
@@ -537,7 +537,7 @@ export const messages = defineMessages({
|
|
|
537
537
|
},
|
|
538
538
|
download_disabled_security_policy: {
|
|
539
539
|
id: 'fabric.media.download_disabled_security_policy',
|
|
540
|
-
defaultMessage:
|
|
540
|
+
defaultMessage: "Download is blocked by your organization's security policy.",
|
|
541
541
|
description: ''
|
|
542
542
|
},
|
|
543
543
|
unknown: {
|
|
@@ -724,5 +724,20 @@ export const messages = defineMessages({
|
|
|
724
724
|
id: 'fabric.media.video_seeker_label_assistive_text',
|
|
725
725
|
defaultMessage: 'Seek slider',
|
|
726
726
|
description: 'Video time seek slider aria-label'
|
|
727
|
+
},
|
|
728
|
+
abuse_modal_body: {
|
|
729
|
+
id: 'fabric.media.abuse_modal_body',
|
|
730
|
+
defaultMessage: 'For your security, our system automatically scans all uploaded files. The file you are about to download potentially contains malicious content',
|
|
731
|
+
description: 'Abuse Modal Body Message'
|
|
732
|
+
},
|
|
733
|
+
abuse_modal_title: {
|
|
734
|
+
id: 'fabric.media.abuse_modal_title',
|
|
735
|
+
defaultMessage: 'Warning',
|
|
736
|
+
description: 'Abuse Modal Title'
|
|
737
|
+
},
|
|
738
|
+
abuse_modal_submit: {
|
|
739
|
+
id: 'fabric.media.abuse_modal_submit',
|
|
740
|
+
defaultMessage: 'Proceed with download',
|
|
741
|
+
description: 'Abuse Modal Submit button caption'
|
|
727
742
|
}
|
|
728
743
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
._1esr1qcg>span{padding:var(--_1yxkslj)}._15x0stnw>*>span>svg{position:absolute}
|
|
1
|
+
._15x0stnw>*>span>svg{position:absolute}
|
|
3
2
|
._17047vkz>*>span{height:1pc}
|
|
4
3
|
._18lx1ooe>span>svg{transform:translate(-50%,-50%)}
|
|
5
4
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
5
|
+
._1at8v77o>span{padding-top:var(--ds-space-025,2px)}
|
|
6
6
|
._1bsbdlk8{width:14px}
|
|
7
|
+
._1cjov77o>span{padding-bottom:var(--ds-space-025,2px)}
|
|
7
8
|
._1e0c1o8l{display:inline-block}
|
|
8
9
|
._1f027vkz>span{height:1pc}
|
|
9
10
|
._1fqgstnw>span>svg{position:absolute}
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
._1msp1b66>span{margin-left:var(--ds-space-050,4px)}
|
|
13
14
|
._1nmz9jpi{word-break:break-all}
|
|
14
15
|
._1tr81ssb>*>span>svg{left:50%}
|
|
16
|
+
._1yg6idpf>span{padding-left:0}
|
|
15
17
|
._1yg7idpf>*>span{left:0}
|
|
16
18
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
19
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
@@ -19,6 +21,7 @@
|
|
|
19
21
|
._4d7tstnw>span{position:absolute}
|
|
20
22
|
._4t3i1osq{height:100%}
|
|
21
23
|
._d1gw1ssb>span>svg{top:50%}
|
|
24
|
+
._hjaqidpf>span{padding-right:0}
|
|
22
25
|
._iibfdlk8>*>span{width:14px}
|
|
23
26
|
._k9fw1ssb>*>span>svg{top:50%}
|
|
24
27
|
._kqswh2mm{position:relative}
|
|
@@ -63,10 +63,7 @@ export var LozengeWrapper = function LozengeWrapper(_ref4) {
|
|
|
63
63
|
var children = _ref4.children,
|
|
64
64
|
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
65
65
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
66
|
-
className: ax(["_1e0c1o8l _s7n4t94y
|
|
67
|
-
style: {
|
|
68
|
-
"--_1yxkslj": ix("var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0"))
|
|
69
|
-
}
|
|
66
|
+
className: ax(["_1e0c1o8l _s7n4t94y _1msp1b66 _1at8v77o _hjaqidpf _1cjov77o _1yg6idpf"])
|
|
70
67
|
}), children);
|
|
71
68
|
};
|
|
72
69
|
var lozengeBlockWrapperStyles = null;
|
|
@@ -76,10 +73,7 @@ export var LozengeBlockWrapper = function LozengeBlockWrapper(_ref5) {
|
|
|
76
73
|
var children = _ref5.children,
|
|
77
74
|
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
78
75
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
79
|
-
className: ax(["
|
|
80
|
-
style: {
|
|
81
|
-
"--_1yxkslj": ix("var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0"))
|
|
82
|
-
}
|
|
76
|
+
className: ax(["_1msp1b66 _1at8v77o _hjaqidpf _1cjov77o _1yg6idpf"])
|
|
83
77
|
}), children);
|
|
84
78
|
};
|
|
85
79
|
var rightIconPositionWrapperStyles = null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import Button, { IconButton } from '@atlaskit/button/new';
|
|
4
4
|
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
5
5
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
6
6
|
import { Flex, Grid, xcss } from '@atlaskit/primitives';
|
|
7
|
+
import { messages } from '../messages';
|
|
7
8
|
var gridStyles = xcss({
|
|
8
9
|
width: '100%'
|
|
9
10
|
});
|
|
@@ -13,27 +14,13 @@ var closeContainerStyles = xcss({
|
|
|
13
14
|
var titleContainerStyles = xcss({
|
|
14
15
|
gridArea: 'title'
|
|
15
16
|
});
|
|
16
|
-
export var AbuseModal =
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var closeModal = useCallback(function () {
|
|
24
|
-
return setIsOpen(false);
|
|
25
|
-
}, []);
|
|
26
|
-
var confirm = useCallback(function () {
|
|
27
|
-
onConfirm === null || onConfirm === void 0 || onConfirm();
|
|
28
|
-
closeModal();
|
|
29
|
-
}, [onConfirm, closeModal]);
|
|
30
|
-
useImperativeHandle(ref, function () {
|
|
31
|
-
return function () {
|
|
32
|
-
return setIsOpen(true);
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
|
-
return !shouldMount ? null : /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
36
|
-
onClose: closeModal,
|
|
17
|
+
export var AbuseModal = injectIntl(function (_ref) {
|
|
18
|
+
var isOpen = _ref.isOpen,
|
|
19
|
+
onConfirm = _ref.onConfirm,
|
|
20
|
+
onClose = _ref.onClose,
|
|
21
|
+
formatMessage = _ref.intl.formatMessage;
|
|
22
|
+
return /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
23
|
+
onClose: onClose,
|
|
37
24
|
testId: "mediaAbuseModal"
|
|
38
25
|
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Grid, {
|
|
39
26
|
gap: "space.200",
|
|
@@ -46,17 +33,17 @@ export var AbuseModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
46
33
|
appearance: "subtle",
|
|
47
34
|
icon: CrossIcon,
|
|
48
35
|
label: "Close Modal",
|
|
49
|
-
onClick:
|
|
36
|
+
onClick: onClose
|
|
50
37
|
})), /*#__PURE__*/React.createElement(Flex, {
|
|
51
38
|
xcss: titleContainerStyles,
|
|
52
39
|
justifyContent: "start"
|
|
53
40
|
}, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
54
41
|
appearance: "warning"
|
|
55
|
-
},
|
|
42
|
+
}, formatMessage(messages.abuse_modal_title))))), /*#__PURE__*/React.createElement(ModalBody, null, formatMessage(messages.abuse_modal_body)), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
|
|
56
43
|
appearance: "subtle",
|
|
57
|
-
onClick:
|
|
58
|
-
},
|
|
44
|
+
onClick: onClose
|
|
45
|
+
}, formatMessage(messages.cancel)), /*#__PURE__*/React.createElement(Button, {
|
|
59
46
|
appearance: "warning",
|
|
60
|
-
onClick:
|
|
61
|
-
},
|
|
47
|
+
onClick: onConfirm
|
|
48
|
+
}, formatMessage(messages.abuse_modal_submit)))));
|
|
62
49
|
});
|
|
@@ -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 = "27.3.
|
|
12
|
+
var packageVersion = "27.3.2";
|
|
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({
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
._11q7acks{background:linear-gradient(0deg,#101214,rgba(14,22,36,0))}
|
|
3
3
|
._19itglyw{border:none}
|
|
4
4
|
._1a37q36z{outline:var(--_k4vj5w)}
|
|
5
|
-
._1yt4necs{padding:var(--_5sw9gb)}
|
|
6
5
|
._2rko14y2{border-radius:5px}
|
|
7
6
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
8
7
|
._2rko1kw7{border-radius:inherit}
|
|
@@ -24,6 +23,7 @@
|
|
|
24
23
|
._1838glyw input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none}
|
|
25
24
|
._18m915vq{overflow-y:hidden}
|
|
26
25
|
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
26
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
27
27
|
._1a96a6sd input[type=range]::-moz-range-progress{background-color:#9fadbc}
|
|
28
28
|
._1az8glyw input[type=range]::-webkit-slider-thumb{--webkit-appearance:none}
|
|
29
29
|
._1bsb1osq{width:100%}
|
|
@@ -69,12 +69,14 @@
|
|
|
69
69
|
._bfhk7g9i{background-color:#05c}
|
|
70
70
|
._bfhk9ucv{background-color:#596773}
|
|
71
71
|
._bfhku67f{background-color:#fff}
|
|
72
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
72
73
|
._d32vqb75 button{color:#ef5c48!important}
|
|
73
74
|
._dey49ucv input[type=range]::-moz-range-track{background-color:#596773}
|
|
74
75
|
._iofsa6sd input[type=range]::-webkit-slider-runnable-track{--track-fg:#9fadbc}
|
|
75
76
|
._kqswh2mm{position:relative}
|
|
76
77
|
._kqswstnw{position:absolute}
|
|
77
78
|
._lcxvglyw{pointer-events:none}
|
|
79
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
78
80
|
._o5721q9c{white-space:nowrap}
|
|
79
81
|
._p12f1osq{max-width:100%}
|
|
80
82
|
._rs6wdlk8 input[type=range]::-moz-range-thumb{height:14px}
|
|
@@ -87,6 +89,7 @@
|
|
|
87
89
|
._tzy4idpf{opacity:0}
|
|
88
90
|
._tzy4kb7n{opacity:1}
|
|
89
91
|
._u2q4a6sd input[type=range]::-moz-range-thumb{background-color:#9fadbc}
|
|
92
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
90
93
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
91
94
|
._13y6o43e:focus-within{transition:width .3s ease-out}
|
|
92
95
|
._195p1w81:focus-within{width:150px}
|
|
@@ -158,12 +158,8 @@ export var CurrentTimeTooltip = function CurrentTimeTooltip(_ref14) {
|
|
|
158
158
|
props = _objectWithoutProperties(_ref14, _excluded14);
|
|
159
159
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
160
160
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
161
|
-
className: ax(["_11c8qk37
|
|
162
|
-
}, props,
|
|
163
|
-
style: {
|
|
164
|
-
"--_5sw9gb": ix("var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"))
|
|
165
|
-
}
|
|
166
|
-
}), children);
|
|
161
|
+
className: ax(["_11c8qk37 _2rko1b66 _v564g17y _kqswstnw _uiztglyw _154iukr8 _bfhk39qu _syaz1pcz _ca0q1b66 _u5f3u2gc _n3td1b66 _19bvu2gc _1ltv1ssb _t9eczr6s _1nmz16rz", isDragging && "_tzy4kb7n", !isDragging && "_tzy4idpf", timeLineThumbIsHover && "_tzy4kb7n", timeLineThumbIsFocus && "_tzy4kb7n", "current-time-tooltip"])
|
|
162
|
+
}, props), children);
|
|
167
163
|
};
|
|
168
164
|
var timeRangeWrapperStyles = null;
|
|
169
165
|
export var TimeRangeWrapper = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
package/dist/esm/messages.js
CHANGED
|
@@ -537,7 +537,7 @@ export var messages = defineMessages({
|
|
|
537
537
|
},
|
|
538
538
|
download_disabled_security_policy: {
|
|
539
539
|
id: 'fabric.media.download_disabled_security_policy',
|
|
540
|
-
defaultMessage:
|
|
540
|
+
defaultMessage: "Download is blocked by your organization's security policy.",
|
|
541
541
|
description: ''
|
|
542
542
|
},
|
|
543
543
|
unknown: {
|
|
@@ -724,5 +724,20 @@ export var messages = defineMessages({
|
|
|
724
724
|
id: 'fabric.media.video_seeker_label_assistive_text',
|
|
725
725
|
defaultMessage: 'Seek slider',
|
|
726
726
|
description: 'Video time seek slider aria-label'
|
|
727
|
+
},
|
|
728
|
+
abuse_modal_body: {
|
|
729
|
+
id: 'fabric.media.abuse_modal_body',
|
|
730
|
+
defaultMessage: 'For your security, our system automatically scans all uploaded files. The file you are about to download potentially contains malicious content',
|
|
731
|
+
description: 'Abuse Modal Body Message'
|
|
732
|
+
},
|
|
733
|
+
abuse_modal_title: {
|
|
734
|
+
id: 'fabric.media.abuse_modal_title',
|
|
735
|
+
defaultMessage: 'Warning',
|
|
736
|
+
description: 'Abuse Modal Title'
|
|
737
|
+
},
|
|
738
|
+
abuse_modal_submit: {
|
|
739
|
+
id: 'fabric.media.abuse_modal_submit',
|
|
740
|
+
defaultMessage: 'Proceed with download',
|
|
741
|
+
description: 'Abuse Modal Submit button caption'
|
|
727
742
|
}
|
|
728
743
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
3
|
export type AbuseModalProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const AbuseModal: React.FC<import("react-intl-next").WithIntlProps<AbuseModalProps & WrappedComponentProps>> & {
|
|
9
|
+
WrappedComponent: React.ComponentType<AbuseModalProps & WrappedComponentProps>;
|
|
6
10
|
};
|
|
7
|
-
export declare const AbuseModal: React.ForwardRefExoticComponent<AbuseModalProps & React.RefAttributes<() => void>>;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type 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' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'alt_text' | 'alt_text_description' | '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' | 'password_protected_pdf' | 'password' | 'enter_password' | 'incorrect_password' | 'submit' | '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' | 'download_disabled_security_policy' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | 'file_image_is_selected' | 'file_video_is_selected' | 'file_audio_is_selected' | 'file_doc_is_selected' | 'file_archive_is_selected' | 'file_unknown_is_selected' | 'open_file_in_viewer' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | 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' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'alt_text' | 'alt_text_description' | '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' | 'password_protected_pdf' | 'password' | 'enter_password' | 'incorrect_password' | 'submit' | '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' | 'download_disabled_security_policy' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | 'file_image_is_selected' | 'file_video_is_selected' | 'file_audio_is_selected' | 'file_doc_is_selected' | 'file_archive_is_selected' | 'file_unknown_is_selected' | 'open_file_in_viewer' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | 'abuse_modal_body' | 'abuse_modal_title' | 'abuse_modal_submit' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
3
|
export type AbuseModalProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const AbuseModal: React.FC<import("react-intl-next").WithIntlProps<AbuseModalProps & WrappedComponentProps>> & {
|
|
9
|
+
WrappedComponent: React.ComponentType<AbuseModalProps & WrappedComponentProps>;
|
|
6
10
|
};
|
|
7
|
-
export declare const AbuseModal: React.ForwardRefExoticComponent<AbuseModalProps & React.RefAttributes<() => void>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type 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' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'alt_text' | 'alt_text_description' | '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' | 'password_protected_pdf' | 'password' | 'enter_password' | 'incorrect_password' | 'submit' | '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' | 'download_disabled_security_policy' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | 'file_image_is_selected' | 'file_video_is_selected' | 'file_audio_is_selected' | 'file_doc_is_selected' | 'file_archive_is_selected' | 'file_unknown_is_selected' | 'open_file_in_viewer' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | 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' | 'select_an_avatar' | 'upload_an_avatar' | 'or_select_default_avatars' | 'select_an_avatar_from_all_defaults' | 'show_more_avatars_btn_label' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'avatar_picker_back_btn_label' | 'drag_and_drop_images_here' | 'alt_text' | 'alt_text_description' | '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' | 'password_protected_pdf' | 'password' | 'enter_password' | 'incorrect_password' | 'submit' | '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' | 'download_disabled_security_policy' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'volumeMuteButtonAria' | 'volumeLevelControlAria' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | 'file_image_is_selected' | 'file_video_is_selected' | 'file_audio_is_selected' | 'file_doc_is_selected' | 'file_archive_is_selected' | 'file_unknown_is_selected' | 'open_file_in_viewer' | 'video_seeker_assistive_text_time_value' | 'video_seeker_label_assistive_text' | 'abuse_modal_body' | 'abuse_modal_title' | 'abuse_modal_submit' | RequestAccessMessageKey;
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "27.3.
|
|
3
|
+
"version": "27.3.2",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/button": "^20.3.0",
|
|
29
29
|
"@atlaskit/code": "^15.6.0",
|
|
30
30
|
"@atlaskit/css": "^0.7.0",
|
|
31
|
-
"@atlaskit/icon": "^23.
|
|
31
|
+
"@atlaskit/icon": "^23.4.0",
|
|
32
32
|
"@atlaskit/icon-file-type": "^6.8.0",
|
|
33
33
|
"@atlaskit/legacy-custom-icons": "^0.20.0",
|
|
34
34
|
"@atlaskit/locale": "^2.8.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@atlaskit/primitives": "^13.3.0",
|
|
39
39
|
"@atlaskit/range": "^8.0.0",
|
|
40
40
|
"@atlaskit/select": "^18.9.0",
|
|
41
|
-
"@atlaskit/spinner": "^
|
|
41
|
+
"@atlaskit/spinner": "^17.0.0",
|
|
42
42
|
"@atlaskit/theme": "^14.0.0",
|
|
43
|
-
"@atlaskit/tokens": "^2.
|
|
43
|
+
"@atlaskit/tokens": "^3.2.0",
|
|
44
44
|
"@atlaskit/tooltip": "^19.0.0",
|
|
45
45
|
"@atlaskit/width-detector": "^4.3.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|