@x-edu/live-player 0.0.52 → 0.0.53
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/dist/XEduLivePlayer.common.js +25 -25
- package/package.json +1 -1
|
@@ -2833,7 +2833,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2833
2833
|
|
|
2834
2834
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2835
2835
|
// Module
|
|
2836
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_wfLKG{display:flex;flex-direction:column;border-radius:8px;overflow:hidden;height:
|
|
2836
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_wfLKG{display:flex;flex-direction:column;border-radius:8px;overflow:hidden;height:auto;background:linear-gradient(180deg,#fff,#fff 62.98%,rgba(0,247,255,.08));border:1px solid #eef4ff}.MobileListItem-module_mobileCoverWrap_271x\\+{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f0f0}.MobileListItem-module_mobileCover_LBJ85{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.MobileListItem-module_mobileContent_zA7iL{padding:12px;display:flex;flex-direction:column;flex:1}.MobileListItem-module_mobileTitleRow_O\\+\\+oM{margin-bottom:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:24px;font-size:16px;min-height:49px}.MobileListItem-module_mobileStatusTag_ZDlxf{margin-right:4px!important;flex-shrink:0;margin-top:2px;font-size:10px!important;height:16px!important;line-height:20px!important}.MobileListItem-module_mobileStatusTag_ZDlxf img{width:12px!important;height:12px!important}.MobileListItem-module_mobileTitle_Qpabu{display:inline;color:#333;font-size:12px;font-style:normal;font-weight:500;line-height:18px}.MobileListItem-module_mobileMetaRow_P0gQ\\+{margin-bottom:12px}.MobileListItem-module_mobileMetaText_DNbQG{display:flex;align-items:center;font-size:10px;color:#999;line-height:18px}.MobileListItem-module_mobileMetaIcon_uoXZB{width:16px;height:16px;opacity:.6}.MobileListItem-module_countDownLabel_DV35Y,.MobileListItem-module_mobileMetaIcon_uoXZB{margin-right:4px}.MobileListItem-module_countDown_\\+eGzt{display:inline-flex}.MobileListItem-module_mobileFooterRow_ekYRA{justify-content:flex-end;flex:1 1 auto}.MobileListItem-module_mobileFooterRow_ekYRA,.MobileListItem-module_mobileHeat_V3\\+9A{display:flex;align-items:center}.MobileListItem-module_mobileHeat_V3\\+9A{font-size:10px;color:#666;flex-shrink:0}.MobileListItem-module_mobileHeatIcon_ZgirG{width:14px;height:14px;margin-right:4px;padding-bottom:2px}.MobileListItem-module_mobileAction_j\\+w5d{margin-left:auto}", ""]);
|
|
2837
2837
|
// Exports
|
|
2838
2838
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2839
2839
|
"mobileContainer": "MobileListItem-module_mobileContainer_wfLKG",
|
|
@@ -25849,7 +25849,7 @@ module.exports = __webpack_require__(5666);
|
|
|
25849
25849
|
/***/ 3006:
|
|
25850
25850
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25851
25851
|
|
|
25852
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25852
|
+
var _regeneratorRuntime = __webpack_require__(5273);
|
|
25853
25853
|
|
|
25854
25854
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25855
25855
|
|
|
@@ -60530,14 +60530,14 @@ function calculatePage(p, state, props) {
|
|
|
60530
60530
|
}
|
|
60531
60531
|
|
|
60532
60532
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60533
|
-
|
|
60533
|
+
inherits_inherits(Pagination, _React$Component);
|
|
60534
60534
|
|
|
60535
|
-
var _super =
|
|
60535
|
+
var _super = createSuper_createSuper(Pagination);
|
|
60536
60536
|
|
|
60537
60537
|
function Pagination(props) {
|
|
60538
60538
|
var _this;
|
|
60539
60539
|
|
|
60540
|
-
|
|
60540
|
+
classCallCheck_classCallCheck(this, Pagination);
|
|
60541
60541
|
|
|
60542
60542
|
_this = _super.call(this, props);
|
|
60543
60543
|
|
|
@@ -60558,7 +60558,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60558
60558
|
});
|
|
60559
60559
|
|
|
60560
60560
|
if (typeof icon === 'function') {
|
|
60561
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60561
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, objectSpread2_objectSpread2({}, _this.props));
|
|
60562
60562
|
}
|
|
60563
60563
|
|
|
60564
60564
|
return iconNode;
|
|
@@ -60780,7 +60780,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60780
60780
|
return _this;
|
|
60781
60781
|
}
|
|
60782
60782
|
|
|
60783
|
-
|
|
60783
|
+
createClass_createClass(Pagination, [{
|
|
60784
60784
|
key: "componentDidUpdate",
|
|
60785
60785
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60786
60786
|
// When current page change, fix focused style of prev item
|
|
@@ -60928,8 +60928,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60928
60928
|
}, gotoButton);
|
|
60929
60929
|
}
|
|
60930
60930
|
|
|
60931
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60932
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60931
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60932
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60933
60933
|
style: style,
|
|
60934
60934
|
ref: this.savePaginationNode
|
|
60935
60935
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60937,7 +60937,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60937
60937
|
onClick: this.prev,
|
|
60938
60938
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60939
60939
|
onKeyPress: this.runIfEnterPrev,
|
|
60940
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60940
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60941
60941
|
"aria-disabled": !this.hasPrev()
|
|
60942
60942
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60943
60943
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60958,7 +60958,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60958
60958
|
onClick: this.next,
|
|
60959
60959
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60960
60960
|
onKeyPress: this.runIfEnterNext,
|
|
60961
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60961
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60962
60962
|
"aria-disabled": !this.hasNext()
|
|
60963
60963
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60964
60964
|
}
|
|
@@ -60974,7 +60974,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60974
60974
|
};
|
|
60975
60975
|
|
|
60976
60976
|
if (!allPages) {
|
|
60977
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60977
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60978
60978
|
key: "noPager",
|
|
60979
60979
|
page: 1,
|
|
60980
60980
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60983,7 +60983,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60983
60983
|
|
|
60984
60984
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60985
60985
|
var active = current === i;
|
|
60986
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60986
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60987
60987
|
key: i,
|
|
60988
60988
|
page: i,
|
|
60989
60989
|
active: active
|
|
@@ -61000,7 +61000,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61000
61000
|
onClick: this.jumpPrev,
|
|
61001
61001
|
tabIndex: "0",
|
|
61002
61002
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
61003
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
61003
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
61004
61004
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
61005
61005
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
61006
61006
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -61008,7 +61008,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61008
61008
|
tabIndex: "0",
|
|
61009
61009
|
onClick: this.jumpNext,
|
|
61010
61010
|
onKeyPress: this.runIfEnterJumpNext,
|
|
61011
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
61011
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
61012
61012
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
61013
61013
|
}
|
|
61014
61014
|
|
|
@@ -61095,8 +61095,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61095
61095
|
|
|
61096
61096
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
61097
61097
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
61098
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
61099
|
-
className: classnames_default()(prefixCls, className,
|
|
61098
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
61099
|
+
className: classnames_default()(prefixCls, className, defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
61100
61100
|
style: style,
|
|
61101
61101
|
unselectable: "unselectable",
|
|
61102
61102
|
ref: this.savePaginationNode
|
|
@@ -61105,14 +61105,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61105
61105
|
onClick: this.prev,
|
|
61106
61106
|
tabIndex: prevDisabled ? null : 0,
|
|
61107
61107
|
onKeyPress: this.runIfEnterPrev,
|
|
61108
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
61108
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
61109
61109
|
"aria-disabled": prevDisabled
|
|
61110
61110
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
61111
61111
|
title: showTitle ? locale.next_page : null,
|
|
61112
61112
|
onClick: this.next,
|
|
61113
61113
|
tabIndex: nextDisabled ? null : 0,
|
|
61114
61114
|
onKeyPress: this.runIfEnterNext,
|
|
61115
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
61115
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
61116
61116
|
"aria-disabled": nextDisabled
|
|
61117
61117
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
61118
61118
|
disabled: disabled,
|
|
@@ -61190,7 +61190,7 @@ Pagination.defaultProps = {
|
|
|
61190
61190
|
|
|
61191
61191
|
|
|
61192
61192
|
var MiniSelect = function MiniSelect(props) {
|
|
61193
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
61193
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, esm_extends_extends({
|
|
61194
61194
|
size: "small"
|
|
61195
61195
|
}, props));
|
|
61196
61196
|
};
|
|
@@ -61251,7 +61251,7 @@ var responsiveObserve = {
|
|
|
61251
61251
|
var listener = function listener(_ref) {
|
|
61252
61252
|
var matches = _ref.matches;
|
|
61253
61253
|
|
|
61254
|
-
_this2.dispatch(
|
|
61254
|
+
_this2.dispatch(esm_extends_extends(esm_extends_extends({}, screens), defineProperty_defineProperty({}, screen, matches)));
|
|
61255
61255
|
};
|
|
61256
61256
|
|
|
61257
61257
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61272,7 +61272,7 @@ var responsiveObserve = {
|
|
|
61272
61272
|
|
|
61273
61273
|
function useBreakpoint() {
|
|
61274
61274
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
61275
|
-
_useState2 =
|
|
61275
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
61276
61276
|
screens = _useState2[0],
|
|
61277
61277
|
setScreens = _useState2[1];
|
|
61278
61278
|
|
|
@@ -61392,13 +61392,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61392
61392
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61393
61393
|
var _classNames;
|
|
61394
61394
|
|
|
61395
|
-
var locale =
|
|
61395
|
+
var locale = esm_extends_extends(esm_extends_extends({}, contextLocale), customLocale);
|
|
61396
61396
|
|
|
61397
61397
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61398
61398
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61399
61399
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61400
61400
|
mini: isSmall
|
|
61401
|
-
},
|
|
61401
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61402
61402
|
|
|
61403
61403
|
if (minimalistic) {
|
|
61404
61404
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61435,7 +61435,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61435
61435
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61436
61436
|
}
|
|
61437
61437
|
|
|
61438
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61438
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, esm_extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61439
61439
|
prefixCls: prefixCls,
|
|
61440
61440
|
selectPrefixCls: selectPrefixCls,
|
|
61441
61441
|
className: extendedClassName,
|