@desynova-digital/player 3.9.7 → 3.9.8
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/Manager.js +26 -50
- package/actions/player.js +58 -89
- package/actions/video.js +70 -69
- package/colors.js +13 -13
- package/components/AudioMeter.js +138 -182
- package/components/BigPlayButton.js +48 -72
- package/components/ImageViewer.js +120 -165
- package/components/MarkerBar.js +64 -75
- package/components/Menu.js +30 -57
- package/components/Player.js +267 -327
- package/components/PlayerHeader.js +213 -348
- package/components/Playlist.js +50 -89
- package/components/PointersBar.js +131 -203
- package/components/PosterImage.js +12 -22
- package/components/SDOutline.js +32 -54
- package/components/Shortcut.js +135 -140
- package/components/Slider.js +85 -128
- package/components/TagsBar.js +45 -62
- package/components/Video.js +479 -655
- package/components/control-bar/AudioTracksMenuButton.js +63 -86
- package/components/control-bar/CameraButton.js +65 -76
- package/components/control-bar/CommentsButton.js +97 -136
- package/components/control-bar/ControlBar.js +171 -164
- package/components/control-bar/EditorControlMenuButton.js +180 -280
- package/components/control-bar/ForwardControl.js +7 -11
- package/components/control-bar/ForwardReplayControl.js +41 -55
- package/components/control-bar/FullscreenToggle.js +48 -67
- package/components/control-bar/PlayToggle.js +39 -54
- package/components/control-bar/ReplayControl.js +7 -11
- package/components/control-bar/SettingsMenuButton.js +19 -29
- package/components/control-bar/SubtitleLanguagesMenuButton.js +90 -119
- package/components/control-bar/SubtitleMovementMenu.js +128 -0
- package/components/control-bar/VolumeMenuButton.js +71 -96
- package/components/control-bar/ZoomMenuButton.js +57 -81
- package/components/marking-controls/MarkInControl.js +49 -65
- package/components/marking-controls/MarkOutControl.js +53 -69
- package/components/marking-controls/MarkingAddButton.js +41 -54
- package/components/marking-controls/MarkingControl.js +58 -107
- package/components/marking-controls/MarkingDeleteButton.js +39 -51
- package/components/marking-controls/MarkingDuration.js +23 -56
- package/components/marking-controls/MarkingPreview.js +39 -51
- package/components/progress-bar/AudioWaveform.js +48 -64
- package/components/progress-bar/LoadProgressBar.js +14 -37
- package/components/progress-bar/MouseTimeDisplay.js +14 -30
- package/components/progress-bar/PlayProgressBar.js +23 -41
- package/components/progress-bar/ProgressControl.js +82 -141
- package/components/progress-bar/SeekBar.js +101 -169
- package/components/progress-bar/Timeline.js +57 -81
- package/components/settings-menu-control/PlaybackRateControl.js +70 -115
- package/components/settings-menu-control/SafeAreaControl.js +49 -65
- package/components/settings-menu-control/SettingsMenu.js +26 -50
- package/components/time-controls/CurrentTimeDisplay.js +15 -34
- package/components/time-controls/DurationDisplay.js +14 -33
- package/components/time-controls/TimeDivider.js +12 -28
- package/components/volume-control/VolumeBar.js +84 -118
- package/components/volume-control/VolumeControl.js +7 -23
- package/components/volume-control/VolumeLevel.js +19 -36
- package/components/zoom-control/ZoomBar.js +79 -111
- package/components/zoom-control/ZoomLevel.js +24 -36
- package/index.js +204 -149
- package/package.json +5 -1
- package/reducers/index.js +12 -14
- package/reducers/operation.js +14 -14
- package/reducers/player.js +40 -42
- package/utils/browser.js +10 -5
- package/utils/dom.js +4 -15
- package/utils/fullscreen.js +24 -24
- package/utils/index.js +35 -46
|
@@ -1,52 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
var _styledComponents = require('styled-components');
|
|
18
|
-
|
|
19
|
-
var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
|
20
|
-
|
|
21
|
-
var _components = require('@desynova-digital/components');
|
|
22
|
-
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _propTypes = require("prop-types");
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
+
var _components = require("@desynova-digital/components");
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
17
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
|
-
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
function
|
|
30
|
-
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
22
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
25
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
26
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
|
+
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; } }
|
|
28
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
31
30
|
var propTypes = {
|
|
32
31
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
33
32
|
onCommentsAdd: _propTypes.PropTypes.func
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
componentId: 'sc-1ao3o9e-0'
|
|
39
|
-
})(['position:relative;']);
|
|
40
|
-
|
|
41
|
-
var CommentButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
42
|
-
displayName: 'CommentsButton__CommentButton',
|
|
43
|
-
componentId: 'sc-1ao3o9e-1'
|
|
44
|
-
})(['background:transparent;border:none;margin:0 10px !important;&:hover,&:focus{background:transparent;', '{svg path{fill:#00cec6;}}}', '{transform:translate(-50%,-50%);top:50%;left:50%;position:absolute;}'], _components.Icon.Element, _components.Icon.Element);
|
|
45
|
-
|
|
46
|
-
var CommentBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
47
|
-
displayName: 'CommentsButton__CommentBlock',
|
|
48
|
-
componentId: 'sc-1ao3o9e-2'
|
|
49
|
-
})(['position:absolute;width:', ';padding:', ';height:', ';overflow:', ';transition:all 250ms ease-in-out;background:#fff;z-index:10;border-radius:10px;top:', ';left:50%;transform:translateX(-50%);', '{border:none;resize:none;}&:after{content:\'\';border-left:6px solid transparent;position:absolute;border-right:6px solid transparent;border-top:6px solid rgb(0,206,198);bottom:-6px;left:50%;transform:translateX(-50%);}'], function (props) {
|
|
34
|
+
var CommentsContainer = (0, _styledComponents["default"])('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
|
|
35
|
+
var CommentButton = (0, _styledComponents["default"])(_components.Button)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: transparent;\n border: none;\n margin: 0 10px !important;\n &:hover,\n &:focus {\n background: transparent;\n ", " {\n svg path {\n fill: #00cec6;\n }\n }\n }\n ", " {\n transform: translate(-50%, -50%);\n top: 50%;\n left: 50%;\n position: absolute;\n }\n"])), _components.Icon.Element, _components.Icon.Element);
|
|
36
|
+
var CommentBlock = (0, _styledComponents["default"])('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n width: ", ";\n padding: ", ";\n height: ", ";\n overflow: ", ";\n transition: all 250ms ease-in-out;\n background: #fff;\n z-index: 10;\n border-radius: 10px;\n top: ", ";\n left: 50%;\n transform: translateX(-50%);\n ", " {\n border: none;\n resize: none;\n }\n &:after {\n content: '';\n border-left: 6px solid transparent;\n position: absolute;\n border-right: 6px solid transparent;\n border-top: 6px solid rgb(0, 206, 198);\n bottom: -6px;\n left: 50%;\n transform: translateX(-50%);\n }\n"])), function (props) {
|
|
50
37
|
return props.active ? '300px' : '0px';
|
|
51
38
|
}, function (props) {
|
|
52
39
|
return props.active ? '15px 45px 15px 15px' : '0px';
|
|
@@ -57,41 +44,29 @@ var CommentBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
|
57
44
|
}, function (props) {
|
|
58
45
|
return props.active ? '-110px' : '0px';
|
|
59
46
|
}, _components.Textarea.Element);
|
|
60
|
-
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
componentId: 'sc-1ao3o9e-3'
|
|
64
|
-
})(['background:transparent;border:none;margin:0 !important;width:20px;height:20px;padding:0;right:15px;top:10px;position:absolute;&:hover,&:focus{background:transparent;', '{svg path{fill:#000;}}}', '{transform:translate(-50%,-50%);top:50%;left:50%;position:absolute;svg path{fill:#000;}}'], _components.Icon.Element, _components.Icon.Element);
|
|
65
|
-
|
|
66
|
-
var SendButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
67
|
-
displayName: 'CommentsButton__SendButton',
|
|
68
|
-
componentId: 'sc-1ao3o9e-4'
|
|
69
|
-
})(['background:rgba(0,206,198,0.1);border:none;margin:0 !important;width:30px;height:30px;padding:0;position:absolute;right:15px;top:calc(100% - 45px);&:hover,&:focus{background:rgba(0,206,198,0.1);', '{svg path{fill:#00cec6;}}}', '{transform:translate(-50%,-50%);top:50%;left:50%;position:absolute;svg path{fill:#00cec6;}}'], _components.Icon.Element, _components.Icon.Element);
|
|
70
|
-
|
|
71
|
-
var EditorControlMenuButton = function (_Component) {
|
|
47
|
+
var BackButton = (0, _styledComponents["default"])(_components.Button)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: transparent;\n border: none;\n margin: 0 !important;\n width: 20px;\n height: 20px;\n padding: 0;\n right: 15px;\n top: 10px;\n position: absolute;\n &:hover,\n &:focus {\n background: transparent;\n ", " {\n svg path {\n fill: #000;\n }\n }\n }\n ", " {\n transform: translate(-50%, -50%);\n top: 50%;\n left: 50%;\n position: absolute;\n svg path {\n fill: #000;\n }\n }\n"])), _components.Icon.Element, _components.Icon.Element);
|
|
48
|
+
var SendButton = (0, _styledComponents["default"])(_components.Button)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background: rgba(0, 206, 198, 0.1);\n border: none;\n margin: 0 !important;\n width: 30px;\n height: 30px;\n padding: 0;\n position: absolute;\n right: 15px;\n top: calc(100% - 45px);\n &:hover,\n &:focus {\n background: rgba(0, 206, 198, 0.1);\n ", " {\n svg path {\n fill: #00cec6;\n }\n }\n }\n ", " {\n transform: translate(-50%, -50%);\n top: 50%;\n left: 50%;\n position: absolute;\n svg path {\n fill: #00cec6;\n }\n }\n"])), _components.Icon.Element, _components.Icon.Element);
|
|
49
|
+
var EditorControlMenuButton = /*#__PURE__*/function (_Component) {
|
|
72
50
|
_inherits(EditorControlMenuButton, _Component);
|
|
73
|
-
|
|
51
|
+
var _super = _createSuper(EditorControlMenuButton);
|
|
74
52
|
function EditorControlMenuButton(props) {
|
|
53
|
+
var _this;
|
|
75
54
|
_classCallCheck(this, EditorControlMenuButton);
|
|
76
|
-
|
|
77
|
-
var _this = _possibleConstructorReturn(this, (EditorControlMenuButton.__proto__ || Object.getPrototypeOf(EditorControlMenuButton)).call(this, props));
|
|
78
|
-
|
|
55
|
+
_this = _super.call(this, props);
|
|
79
56
|
_this.state = {
|
|
80
57
|
comment: '',
|
|
81
58
|
commentActive: false
|
|
82
59
|
};
|
|
83
|
-
_this.handleClick = _this.handleClick.bind(_this);
|
|
60
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
84
61
|
return _this;
|
|
85
62
|
}
|
|
86
|
-
|
|
87
63
|
_createClass(EditorControlMenuButton, [{
|
|
88
|
-
key:
|
|
64
|
+
key: "onCommentEnter",
|
|
89
65
|
value: function onCommentEnter() {
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
66
|
+
var _this$props = this.props,
|
|
67
|
+
player = _this$props.player,
|
|
68
|
+
onCommentsAdd = _this$props.onCommentsAdd;
|
|
93
69
|
var comment = this.state.comment;
|
|
94
|
-
|
|
95
70
|
var data = {
|
|
96
71
|
comment: comment,
|
|
97
72
|
position: player.currentTime
|
|
@@ -100,7 +75,7 @@ var EditorControlMenuButton = function (_Component) {
|
|
|
100
75
|
this.onCommentClose();
|
|
101
76
|
}
|
|
102
77
|
}, {
|
|
103
|
-
key:
|
|
78
|
+
key: "onCommentClose",
|
|
104
79
|
value: function onCommentClose() {
|
|
105
80
|
this.setState({
|
|
106
81
|
commentActive: false,
|
|
@@ -108,7 +83,7 @@ var EditorControlMenuButton = function (_Component) {
|
|
|
108
83
|
});
|
|
109
84
|
}
|
|
110
85
|
}, {
|
|
111
|
-
key:
|
|
86
|
+
key: "onKeyPress",
|
|
112
87
|
value: function onKeyPress(event) {
|
|
113
88
|
var keyCode = event.keyCode ? event.keyCode : event.which;
|
|
114
89
|
var isShiftKey = event.shiftKey;
|
|
@@ -117,7 +92,7 @@ var EditorControlMenuButton = function (_Component) {
|
|
|
117
92
|
}
|
|
118
93
|
}
|
|
119
94
|
}, {
|
|
120
|
-
key:
|
|
95
|
+
key: "handleClick",
|
|
121
96
|
value: function handleClick() {
|
|
122
97
|
this.setState({
|
|
123
98
|
commentActive: true,
|
|
@@ -130,87 +105,73 @@ var EditorControlMenuButton = function (_Component) {
|
|
|
130
105
|
});
|
|
131
106
|
}
|
|
132
107
|
}, {
|
|
133
|
-
key:
|
|
108
|
+
key: "updateComment",
|
|
134
109
|
value: function updateComment(event) {
|
|
135
110
|
this.setState({
|
|
136
111
|
comment: event.target.value
|
|
137
112
|
});
|
|
138
113
|
}
|
|
139
114
|
}, {
|
|
140
|
-
key:
|
|
115
|
+
key: "render",
|
|
141
116
|
value: function render() {
|
|
142
117
|
var _this2 = this;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
height: 30,
|
|
197
|
-
iconWidth: 12,
|
|
198
|
-
iconHeight: 11,
|
|
199
|
-
tabIndex: '0',
|
|
200
|
-
onClick: function onClick() {
|
|
201
|
-
return _this2.onCommentEnter();
|
|
202
|
-
}
|
|
203
|
-
}, this.props))
|
|
204
|
-
)
|
|
205
|
-
);
|
|
118
|
+
var _this$state = this.state,
|
|
119
|
+
comment = _this$state.comment,
|
|
120
|
+
commentActive = _this$state.commentActive;
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement(CommentsContainer, null, /*#__PURE__*/_react["default"].createElement(CommentButton, {
|
|
122
|
+
display: "rounded",
|
|
123
|
+
appearance: "cta",
|
|
124
|
+
icon: "comment",
|
|
125
|
+
iconWidth: 14,
|
|
126
|
+
iconHeight: 14,
|
|
127
|
+
width: 16,
|
|
128
|
+
height: 16,
|
|
129
|
+
onClick: this.handleClick
|
|
130
|
+
}), /*#__PURE__*/_react["default"].createElement(CommentBlock, {
|
|
131
|
+
className: "comment-block",
|
|
132
|
+
active: commentActive
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement(BackButton, _extends({
|
|
134
|
+
display: "rounded",
|
|
135
|
+
appearance: "cta",
|
|
136
|
+
icon: "cross",
|
|
137
|
+
width: 20,
|
|
138
|
+
height: 20,
|
|
139
|
+
iconWidth: 10,
|
|
140
|
+
iconHeight: 10,
|
|
141
|
+
tabIndex: "0",
|
|
142
|
+
onClick: function onClick() {
|
|
143
|
+
return _this2.onCommentClose();
|
|
144
|
+
}
|
|
145
|
+
}, this.props)), /*#__PURE__*/_react["default"].createElement(_components.Textarea, {
|
|
146
|
+
type: "text",
|
|
147
|
+
label: "Comment",
|
|
148
|
+
value: comment,
|
|
149
|
+
resize: false,
|
|
150
|
+
rows: "3",
|
|
151
|
+
onKeyPress: function onKeyPress(e) {
|
|
152
|
+
return _this2.onKeyPress(e);
|
|
153
|
+
},
|
|
154
|
+
onChange: function onChange(e) {
|
|
155
|
+
return _this2.updateComment(e);
|
|
156
|
+
},
|
|
157
|
+
placeholder: "Comment"
|
|
158
|
+
}), /*#__PURE__*/_react["default"].createElement(SendButton, _extends({
|
|
159
|
+
display: "rounded",
|
|
160
|
+
appearance: "cta",
|
|
161
|
+
icon: "send",
|
|
162
|
+
width: 30,
|
|
163
|
+
height: 30,
|
|
164
|
+
iconWidth: 12,
|
|
165
|
+
iconHeight: 11,
|
|
166
|
+
tabIndex: "0",
|
|
167
|
+
onClick: function onClick() {
|
|
168
|
+
return _this2.onCommentEnter();
|
|
169
|
+
}
|
|
170
|
+
}, this.props))));
|
|
206
171
|
}
|
|
207
172
|
}]);
|
|
208
|
-
|
|
209
173
|
return EditorControlMenuButton;
|
|
210
174
|
}(_react.Component);
|
|
211
|
-
|
|
212
|
-
exports.default = EditorControlMenuButton;
|
|
213
|
-
|
|
214
|
-
|
|
175
|
+
exports["default"] = EditorControlMenuButton;
|
|
215
176
|
EditorControlMenuButton.propTypes = propTypes;
|
|
216
177
|
EditorControlMenuButton.displayName = 'EditorControlMenuButton';
|