@x-edu/live-player 0.0.51 → 0.0.52
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 +32 -32
- package/package.json +1 -1
|
@@ -48597,7 +48597,7 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48597
48597
|
|
|
48598
48598
|
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
|
48599
48599
|
}),
|
|
48600
|
-
_React$useState2 =
|
|
48600
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
48601
48601
|
innerValue = _React$useState2[0],
|
|
48602
48602
|
setInnerValue = _React$useState2[1];
|
|
48603
48603
|
|
|
@@ -59328,7 +59328,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
59328
59328
|
|
|
59329
59329
|
var assertExtra = {};
|
|
59330
59330
|
|
|
59331
|
-
if (extra &&
|
|
59331
|
+
if (extra && esm_typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
59332
59332
|
assertExtra = extra;
|
|
59333
59333
|
} else {
|
|
59334
59334
|
assertExtra.right = extra;
|
|
@@ -59374,7 +59374,7 @@ function TabNavList(props, ref) {
|
|
|
59374
59374
|
var innerAddButtonRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
59375
59375
|
|
|
59376
59376
|
var _useRefs = useRefs(),
|
|
59377
|
-
_useRefs2 =
|
|
59377
|
+
_useRefs2 = slicedToArray_slicedToArray(_useRefs, 2),
|
|
59378
59378
|
getBtnRef = _useRefs2[0],
|
|
59379
59379
|
removeBtnRef = _useRefs2[1];
|
|
59380
59380
|
|
|
@@ -59387,7 +59387,7 @@ function TabNavList(props, ref) {
|
|
|
59387
59387
|
});
|
|
59388
59388
|
}
|
|
59389
59389
|
}),
|
|
59390
|
-
_useSyncState2 =
|
|
59390
|
+
_useSyncState2 = slicedToArray_slicedToArray(_useSyncState, 2),
|
|
59391
59391
|
transformLeft = _useSyncState2[0],
|
|
59392
59392
|
setTransformLeft = _useSyncState2[1];
|
|
59393
59393
|
|
|
@@ -59398,42 +59398,42 @@ function TabNavList(props, ref) {
|
|
|
59398
59398
|
});
|
|
59399
59399
|
}
|
|
59400
59400
|
}),
|
|
59401
|
-
_useSyncState4 =
|
|
59401
|
+
_useSyncState4 = slicedToArray_slicedToArray(_useSyncState3, 2),
|
|
59402
59402
|
transformTop = _useSyncState4[0],
|
|
59403
59403
|
setTransformTop = _useSyncState4[1];
|
|
59404
59404
|
|
|
59405
59405
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59406
|
-
_useState2 =
|
|
59406
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
59407
59407
|
wrapperScrollWidth = _useState2[0],
|
|
59408
59408
|
setWrapperScrollWidth = _useState2[1];
|
|
59409
59409
|
|
|
59410
59410
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59411
|
-
_useState4 =
|
|
59411
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
59412
59412
|
wrapperScrollHeight = _useState4[0],
|
|
59413
59413
|
setWrapperScrollHeight = _useState4[1];
|
|
59414
59414
|
|
|
59415
59415
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
59416
|
-
_useState6 =
|
|
59416
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
59417
59417
|
wrapperWidth = _useState6[0],
|
|
59418
59418
|
setWrapperWidth = _useState6[1];
|
|
59419
59419
|
|
|
59420
59420
|
var _useState7 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
59421
|
-
_useState8 =
|
|
59421
|
+
_useState8 = slicedToArray_slicedToArray(_useState7, 2),
|
|
59422
59422
|
wrapperHeight = _useState8[0],
|
|
59423
59423
|
setWrapperHeight = _useState8[1];
|
|
59424
59424
|
|
|
59425
59425
|
var _useState9 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59426
|
-
_useState10 =
|
|
59426
|
+
_useState10 = slicedToArray_slicedToArray(_useState9, 2),
|
|
59427
59427
|
addWidth = _useState10[0],
|
|
59428
59428
|
setAddWidth = _useState10[1];
|
|
59429
59429
|
|
|
59430
59430
|
var _useState11 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
59431
|
-
_useState12 =
|
|
59431
|
+
_useState12 = slicedToArray_slicedToArray(_useState11, 2),
|
|
59432
59432
|
addHeight = _useState12[0],
|
|
59433
59433
|
setAddHeight = _useState12[1];
|
|
59434
59434
|
|
|
59435
59435
|
var _useRafState = useRafState(new Map()),
|
|
59436
|
-
_useRafState2 =
|
|
59436
|
+
_useRafState2 = slicedToArray_slicedToArray(_useRafState, 2),
|
|
59437
59437
|
tabSizes = _useRafState2[0],
|
|
59438
59438
|
setTabSizes = _useRafState2[1];
|
|
59439
59439
|
|
|
@@ -59470,7 +59470,7 @@ function TabNavList(props, ref) {
|
|
|
59470
59470
|
var touchMovingRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
59471
59471
|
|
|
59472
59472
|
var _useState13 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59473
|
-
_useState14 =
|
|
59473
|
+
_useState14 = slicedToArray_slicedToArray(_useState13, 2),
|
|
59474
59474
|
lockAnimation = _useState14[0],
|
|
59475
59475
|
setLockAnimation = _useState14[1];
|
|
59476
59476
|
|
|
@@ -59578,10 +59578,10 @@ function TabNavList(props, ref) {
|
|
|
59578
59578
|
}, {
|
|
59579
59579
|
width: addWidth,
|
|
59580
59580
|
height: addHeight
|
|
59581
|
-
},
|
|
59581
|
+
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
59582
59582
|
tabs: tabs
|
|
59583
59583
|
})),
|
|
59584
|
-
_useVisibleRange2 =
|
|
59584
|
+
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
59585
59585
|
visibleStart = _useVisibleRange2[0],
|
|
59586
59586
|
visibleEnd = _useVisibleRange2[1];
|
|
59587
59587
|
|
|
@@ -59670,10 +59670,10 @@ function TabNavList(props, ref) {
|
|
|
59670
59670
|
|
|
59671
59671
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59672
59672
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59673
|
-
var hiddenTabs = [].concat(
|
|
59673
|
+
var hiddenTabs = [].concat(toConsumableArray_toConsumableArray(startHiddenTabs), toConsumableArray_toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59674
59674
|
|
|
59675
59675
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59676
|
-
_useState16 =
|
|
59676
|
+
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
59677
59677
|
inkStyle = _useState16[0],
|
|
59678
59678
|
setInkStyle = _useState16[1];
|
|
59679
59679
|
|
|
@@ -59756,7 +59756,7 @@ function TabNavList(props, ref) {
|
|
|
59756
59756
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59757
59757
|
onResize: onListHolderResize
|
|
59758
59758
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59759
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59759
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), defineProperty_defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
59760
59760
|
ref: tabsWrapperRef
|
|
59761
59761
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59762
59762
|
onResize: onListHolderResize
|
|
@@ -59772,13 +59772,13 @@ function TabNavList(props, ref) {
|
|
|
59772
59772
|
prefixCls: prefixCls,
|
|
59773
59773
|
locale: locale,
|
|
59774
59774
|
editable: editable,
|
|
59775
|
-
style:
|
|
59775
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59776
59776
|
visibility: hasDropdown ? 'hidden' : null
|
|
59777
59777
|
})
|
|
59778
59778
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59779
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59779
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59780
59780
|
style: inkStyle
|
|
59781
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59781
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, esm_extends_extends({}, props, {
|
|
59782
59782
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59783
59783
|
ref: operationsRef,
|
|
59784
59784
|
prefixCls: prefixCls,
|
|
@@ -59818,8 +59818,8 @@ function TabPanelList(_ref) {
|
|
|
59818
59818
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59819
59819
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59820
59820
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59821
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59822
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59821
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), defineProperty_defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59822
|
+
style: activeIndex && tabPaneAnimated ? defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59823
59823
|
}, tabs.map(function (tab) {
|
|
59824
59824
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59825
59825
|
key: tab.key,
|
|
@@ -62129,15 +62129,6 @@ function Action_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62129
62129
|
|
|
62130
62130
|
|
|
62131
62131
|
|
|
62132
|
-
var Actions = {
|
|
62133
|
-
1: '进入',
|
|
62134
|
-
// 直播中 或者开播前15min
|
|
62135
|
-
2: '查看',
|
|
62136
|
-
// 回放
|
|
62137
|
-
3: '预约',
|
|
62138
|
-
// 预告 且开播时间大于 15min
|
|
62139
|
-
4: '已预约'
|
|
62140
|
-
};
|
|
62141
62132
|
function Action(_ref) {
|
|
62142
62133
|
var _classNames;
|
|
62143
62134
|
|
|
@@ -62152,6 +62143,15 @@ function Action(_ref) {
|
|
|
62152
62143
|
status = _ref.status,
|
|
62153
62144
|
_ref$isMobile = _ref.isMobile,
|
|
62154
62145
|
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;
|
|
62146
|
+
var Actions = {
|
|
62147
|
+
1: !isMobile ? '进入直播' : '进入',
|
|
62148
|
+
// 直播中 或者开播前15min
|
|
62149
|
+
2: !isMobile ? '立即查看' : '查看',
|
|
62150
|
+
// 回放
|
|
62151
|
+
3: !isMobile ? '立即预约' : '预约',
|
|
62152
|
+
// 预告 且开播时间大于 15min
|
|
62153
|
+
4: '已预约'
|
|
62154
|
+
};
|
|
62155
62155
|
var liveId = data.live_id,
|
|
62156
62156
|
beginTime = data.begin_time;
|
|
62157
62157
|
|