@kkcompany/ott-player 0.5.0 → 0.5.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 +21 -0
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.2](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.5.1...player@0.5.2) (2026-06-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* use release version of playcraft ([59240e1](https://gitlab.kkinternal.com/kks-web/blahaj/commit/59240e188c3426250316d1bdb840f58c5031f224))
|
|
11
|
+
|
|
12
|
+
### [0.5.1](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.5.0...player@0.5.1) (2026-06-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* always update UI for live ([cd01e88](https://gitlab.kkinternal.com/kks-web/blahaj/commit/cd01e88f5e5d21b70dcc011486f522354822ef66))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* [SUN-2999] derive banner currentPosition ([3a15929](https://gitlab.kkinternal.com/kks-web/blahaj/commit/3a15929328677b644f7c3f8d5897bb562e178b5c))
|
|
23
|
+
* [SUN-2999][SUN-3015] always render banner indicator ([d1488da](https://gitlab.kkinternal.com/kks-web/blahaj/commit/d1488dabf7de579f7c8442ec5aa3ae57b9d011c4))
|
|
24
|
+
* display channel title only when needed ([4d534b6](https://gitlab.kkinternal.com/kks-web/blahaj/commit/4d534b61f28c55f05374b5ca2a99d0c8e31b99f5))
|
|
25
|
+
|
|
5
26
|
## [0.5.0](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.97...player@0.5.0) (2026-05-08)
|
|
6
27
|
|
|
7
28
|
|
package/dist/index.cjs
CHANGED
|
@@ -778,7 +778,7 @@ const startPlaybackSession = async (playbackApi, options = {}) => {
|
|
|
778
778
|
}, timeBeforeEnd);
|
|
779
779
|
if (!deepEqual(content, state.content)) {
|
|
780
780
|
state.content = content;
|
|
781
|
-
const skipUiUpdate = !useCache;
|
|
781
|
+
const skipUiUpdate = !useCache && content?.end_time > 0;
|
|
782
782
|
if (!skipUiUpdate) state.currentContent = content;
|
|
783
783
|
onChangeContent?.({
|
|
784
784
|
type: type$1,
|
|
@@ -914,7 +914,7 @@ var preload_default = preload;
|
|
|
914
914
|
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region package.json
|
|
917
|
-
var version = "0.5.
|
|
917
|
+
var version = "0.5.2";
|
|
918
918
|
|
|
919
919
|
//#endregion
|
|
920
920
|
//#region src/constants.js
|
|
@@ -1157,7 +1157,7 @@ const PremiumPlusPlayer = ({ controls, preload: preload$1 = "auto", preloadList
|
|
|
1157
1157
|
currentTime: preferAppTime.current ? currentTime : startTime,
|
|
1158
1158
|
controls: uiState.activePanel === "autoplay-next" || uiState.activePanel === "recommendation" && recommendation ? "title-only" : controls,
|
|
1159
1159
|
title: contentData.title,
|
|
1160
|
-
channelTitle: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [contentData.section?.start && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
1160
|
+
channelTitle: contentData.channelTitle && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [contentData.section?.start && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
1161
1161
|
getChannelTime(contentData.section.start),
|
|
1162
1162
|
" -",
|
|
1163
1163
|
" ",
|
package/dist/index.mjs
CHANGED
|
@@ -754,7 +754,7 @@ const startPlaybackSession = async (playbackApi, options = {}) => {
|
|
|
754
754
|
}, timeBeforeEnd);
|
|
755
755
|
if (!deepEqual(content, state.content)) {
|
|
756
756
|
state.content = content;
|
|
757
|
-
const skipUiUpdate = !useCache;
|
|
757
|
+
const skipUiUpdate = !useCache && content?.end_time > 0;
|
|
758
758
|
if (!skipUiUpdate) state.currentContent = content;
|
|
759
759
|
onChangeContent?.({
|
|
760
760
|
type: type$1,
|
|
@@ -890,7 +890,7 @@ var preload_default = preload;
|
|
|
890
890
|
|
|
891
891
|
//#endregion
|
|
892
892
|
//#region package.json
|
|
893
|
-
var version = "0.5.
|
|
893
|
+
var version = "0.5.2";
|
|
894
894
|
|
|
895
895
|
//#endregion
|
|
896
896
|
//#region src/constants.js
|
|
@@ -1133,7 +1133,7 @@ const PremiumPlusPlayer = ({ controls, preload: preload$1 = "auto", preloadList
|
|
|
1133
1133
|
currentTime: preferAppTime.current ? currentTime : startTime,
|
|
1134
1134
|
controls: uiState.activePanel === "autoplay-next" || uiState.activePanel === "recommendation" && recommendation ? "title-only" : controls,
|
|
1135
1135
|
title: contentData.title,
|
|
1136
|
-
channelTitle: /* @__PURE__ */ jsxs(Fragment, { children: [contentData.section?.start && /* @__PURE__ */ jsxs("span", { children: [
|
|
1136
|
+
channelTitle: contentData.channelTitle && /* @__PURE__ */ jsxs(Fragment, { children: [contentData.section?.start && /* @__PURE__ */ jsxs("span", { children: [
|
|
1137
1137
|
getChannelTime(contentData.section.start),
|
|
1138
1138
|
" -",
|
|
1139
1139
|
" ",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kkcompany/ott-player",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./dist/index.mjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"release": "standard-version -a"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@kkcompany/player": "
|
|
27
|
+
"@kkcompany/player": "^2.25.0",
|
|
28
28
|
"@testing-library/jest-dom": "^5.16.5",
|
|
29
29
|
"@testing-library/react": "^13.4.0",
|
|
30
30
|
"@testing-library/user-event": "^13.5.0",
|