@hopeplayer/react 1.0.15 → 1.0.17
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/HopePlayer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { HopePlayerElement as HopePlayerEl, HopePlayerOptions, StickyCorner } from '@hopeplayer/core';
|
|
2
|
+
import type { HopePlayerElement as HopePlayerEl, HopePlayerEventMap, HopePlayerOptions, StickyCorner } from '@hopeplayer/core';
|
|
3
3
|
export interface HopePlayerProps extends HopePlayerOptions {
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: CSSProperties;
|
|
@@ -15,6 +15,8 @@ export interface HopePlayerProps extends HopePlayerOptions {
|
|
|
15
15
|
onAdError?: (message: string) => void;
|
|
16
16
|
onItemChange?: (index: number, source: 'playlist' | 'story') => void;
|
|
17
17
|
onSticky?: (sticky: boolean, corner?: StickyCorner) => void;
|
|
18
|
+
/** Kaynak grubu düştü, sıradakine geçildi (bkz. `sourcePriority`). */
|
|
19
|
+
onSourceFallback?: (detail: HopePlayerEventMap['hp:sourcefallback']['detail']) => void;
|
|
18
20
|
}
|
|
19
21
|
export interface HopePlayerHandle {
|
|
20
22
|
play(): Promise<void>;
|
package/dist/HopePlayer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HopePlayer.d.ts","sourceRoot":"","sources":["../src/HopePlayer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACR,iBAAiB,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"HopePlayer.d.ts","sourceRoot":"","sources":["../src/HopePlayer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACR,iBAAiB,IAAI,YAAY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AAC;IACd,6GAA6G;IAC7G,UAAU,IAAI,YAAY,GAAG,IAAI,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,8GA+HrB,CAAC"}
|
|
@@ -1,93 +1,95 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
const
|
|
5
|
-
className:
|
|
6
|
-
style:
|
|
2
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as J, useRef as N, useEffect as L, useImperativeHandle as O } from "react";
|
|
4
|
+
const B = J(function({
|
|
5
|
+
className: g,
|
|
6
|
+
style: j,
|
|
7
7
|
onReady: i,
|
|
8
8
|
onPlay: f,
|
|
9
9
|
onPause: l,
|
|
10
10
|
onEnded: u,
|
|
11
|
-
onError:
|
|
12
|
-
onQualityChange:
|
|
11
|
+
onError: h,
|
|
12
|
+
onQualityChange: a,
|
|
13
13
|
onRateChange: c,
|
|
14
|
-
onAdStart:
|
|
15
|
-
onAdEnd:
|
|
14
|
+
onAdStart: d,
|
|
15
|
+
onAdEnd: m,
|
|
16
16
|
onAdError: n,
|
|
17
17
|
onItemChange: v,
|
|
18
18
|
onSticky: y,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
onSourceFallback: x,
|
|
20
|
+
...H
|
|
21
|
+
}, q) {
|
|
22
|
+
const r = N(null);
|
|
23
|
+
return L(() => {
|
|
24
|
+
let s = !1;
|
|
24
25
|
return import("@hopeplayer/core").then(() => {
|
|
25
|
-
if (
|
|
26
|
-
const t =
|
|
27
|
-
t && (t.options =
|
|
26
|
+
if (s) return;
|
|
27
|
+
const t = r.current;
|
|
28
|
+
t && (t.options = H);
|
|
28
29
|
}), () => {
|
|
29
|
-
|
|
30
|
+
s = !0;
|
|
30
31
|
};
|
|
31
|
-
}, [JSON.stringify(
|
|
32
|
-
const
|
|
33
|
-
if (!
|
|
32
|
+
}, [JSON.stringify(H)]), L(() => {
|
|
33
|
+
const s = r.current;
|
|
34
|
+
if (!s) return;
|
|
34
35
|
const t = [];
|
|
35
|
-
i && t.push(["hp:ready", () => i()]), f && t.push(["hp:play", () => f()]), l && t.push(["hp:pause", () => l()]), u && t.push(["hp:ended", () => u()]),
|
|
36
|
+
i && t.push(["hp:ready", () => i()]), f && t.push(["hp:play", () => f()]), l && t.push(["hp:pause", () => l()]), u && t.push(["hp:ended", () => u()]), h && t.push(["hp:error", (e) => h(e.detail.message)]), a && t.push([
|
|
36
37
|
"hp:qualitychange",
|
|
37
|
-
(e) =>
|
|
38
|
-
]), c && t.push(["hp:ratechange", (e) => c(e.detail.rate)]),
|
|
38
|
+
(e) => a(e.detail.label)
|
|
39
|
+
]), c && t.push(["hp:ratechange", (e) => c(e.detail.rate)]), d && t.push([
|
|
39
40
|
"hp:adstart",
|
|
40
|
-
(e) => m(e.detail.type)
|
|
41
|
-
]), d && t.push([
|
|
42
|
-
"hp:adend",
|
|
43
41
|
(e) => d(e.detail.type)
|
|
42
|
+
]), m && t.push([
|
|
43
|
+
"hp:adend",
|
|
44
|
+
(e) => m(e.detail.type)
|
|
44
45
|
]), n && t.push(["hp:aderror", (e) => n(e.detail.message)]), v && t.push([
|
|
45
46
|
"hp:itemchange",
|
|
46
47
|
(e) => {
|
|
47
|
-
const
|
|
48
|
-
v(
|
|
48
|
+
const p = e.detail;
|
|
49
|
+
v(p.index, p.source);
|
|
49
50
|
}
|
|
50
51
|
]), y && t.push([
|
|
51
52
|
"hp:sticky",
|
|
52
53
|
(e) => {
|
|
53
|
-
const
|
|
54
|
-
y(
|
|
54
|
+
const p = e.detail;
|
|
55
|
+
y(p.sticky, p.corner);
|
|
55
56
|
}
|
|
56
|
-
]);
|
|
57
|
-
for (const [e,
|
|
57
|
+
]), x && t.push(["hp:sourcefallback", (e) => x(e.detail)]);
|
|
58
|
+
for (const [e, p] of t) s.addEventListener(e, p);
|
|
58
59
|
return () => {
|
|
59
|
-
for (const [e,
|
|
60
|
+
for (const [e, p] of t) s.removeEventListener(e, p);
|
|
60
61
|
};
|
|
61
62
|
}, [
|
|
62
63
|
i,
|
|
63
64
|
f,
|
|
64
65
|
l,
|
|
65
66
|
u,
|
|
66
|
-
a,
|
|
67
67
|
h,
|
|
68
|
+
a,
|
|
68
69
|
c,
|
|
69
|
-
m,
|
|
70
70
|
d,
|
|
71
|
+
m,
|
|
71
72
|
n,
|
|
72
73
|
v,
|
|
73
|
-
y
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
y,
|
|
75
|
+
x
|
|
76
|
+
]), O(
|
|
77
|
+
q,
|
|
76
78
|
() => ({
|
|
77
79
|
play: () => {
|
|
78
|
-
var
|
|
79
|
-
return ((
|
|
80
|
+
var s;
|
|
81
|
+
return ((s = r.current) == null ? void 0 : s.play()) ?? Promise.resolve();
|
|
80
82
|
},
|
|
81
83
|
pause: () => {
|
|
82
|
-
var
|
|
83
|
-
return (
|
|
84
|
+
var s;
|
|
85
|
+
return (s = r.current) == null ? void 0 : s.pause();
|
|
84
86
|
},
|
|
85
|
-
getElement: () =>
|
|
87
|
+
getElement: () => r.current
|
|
86
88
|
}),
|
|
87
89
|
[]
|
|
88
|
-
), /* @__PURE__ */
|
|
90
|
+
), /* @__PURE__ */ w("hope-player", { ref: r, className: g, style: j });
|
|
89
91
|
});
|
|
90
92
|
export {
|
|
91
|
-
|
|
93
|
+
B as HopePlayer
|
|
92
94
|
};
|
|
93
95
|
//# sourceMappingURL=hope-player-react.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hope-player-react.js","sources":["../src/HopePlayer.tsx"],"sourcesContent":["/// <reference path=\"./jsx.d.ts\" />\n// \"use client\" burada değil: bundler kaynak direktifini atıp uyarı veriyor — vite.config.ts banner'ı çıktının ilk satırına ekliyor.\n\nimport { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';\nimport type { CSSProperties } from 'react';\nimport type {\n HopePlayerElement as HopePlayerEl,\n HopePlayerEventMap,\n HopePlayerOptions,\n StickyCorner,\n} from '@hopeplayer/core';\n\nexport interface HopePlayerProps extends HopePlayerOptions {\n className?: string;\n style?: CSSProperties;\n onReady?: () => void;\n onPlay?: () => void;\n onPause?: () => void;\n onEnded?: () => void;\n onError?: (message: string) => void;\n onQualityChange?: (label: string) => void;\n onRateChange?: (rate: number) => void;\n onAdStart?: (type: 'preroll' | 'midroll' | 'postroll') => void;\n onAdEnd?: (type: 'preroll' | 'midroll' | 'postroll') => void;\n onAdError?: (message: string) => void;\n onItemChange?: (index: number, source: 'playlist' | 'story') => void;\n onSticky?: (sticky: boolean, corner?: StickyCorner) => void;\n}\n\nexport interface HopePlayerHandle {\n play(): Promise<void>;\n pause(): void;\n /** Çekirdeğin kendi API'sine (settings menü, plugin instance'ları vb.) doğrudan erişim için kaçış kapısı. */\n getElement(): HopePlayerEl | null;\n}\n\n/**\n * <hope-player> için ince React sarmalayıcı: prop'ları `.options`'a yazar, `hp:*` event'lerini callback'lere çevirir.\n * Core `useEffect` içinde dinamik import edilir — statik import `HTMLElement` olmayan SSR'da (Next.js) çöker.\n */\nexport const HopePlayer = forwardRef<HopePlayerHandle, HopePlayerProps>(function HopePlayer(\n {\n className,\n style,\n onReady,\n onPlay,\n onPause,\n onEnded,\n onError,\n onQualityChange,\n onRateChange,\n onAdStart,\n onAdEnd,\n onAdError,\n onItemChange,\n onSticky,\n ...options\n },\n ref\n) {\n const elRef = useRef<HopePlayerEl | null>(null);\n\n useEffect(() => {\n let cancelled = false;\n // Her seferinde import'u bekle: element upgrade olmadan .options yazmak prototip accessor'ını kalıcı olarak maskeler.\n import('@hopeplayer/core').then(() => {\n if (cancelled) return;\n const el = elRef.current;\n if (el) el.options = options as HopePlayerOptions;\n });\n return () => {\n cancelled = true;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [JSON.stringify(options)]);\n\n useEffect(() => {\n const el = elRef.current;\n if (!el) return;\n\n const listeners: Array<[keyof HopePlayerEventMap, EventListener]> = [];\n if (onReady) listeners.push(['hp:ready', () => onReady()]);\n if (onPlay) listeners.push(['hp:play', () => onPlay()]);\n if (onPause) listeners.push(['hp:pause', () => onPause()]);\n if (onEnded) listeners.push(['hp:ended', () => onEnded()]);\n if (onError) {\n listeners.push(['hp:error', (e) => onError((e as CustomEvent<{ message: string }>).detail.message)]);\n }\n if (onQualityChange) {\n listeners.push([\n 'hp:qualitychange',\n (e) => onQualityChange((e as CustomEvent<{ label: string }>).detail.label),\n ]);\n }\n if (onRateChange) {\n listeners.push(['hp:ratechange', (e) => onRateChange((e as CustomEvent<{ rate: number }>).detail.rate)]);\n }\n if (onAdStart) {\n listeners.push([\n 'hp:adstart',\n (e) => onAdStart((e as CustomEvent<{ type: 'preroll' | 'midroll' | 'postroll' }>).detail.type),\n ]);\n }\n if (onAdEnd) {\n listeners.push([\n 'hp:adend',\n (e) => onAdEnd((e as CustomEvent<{ type: 'preroll' | 'midroll' | 'postroll' }>).detail.type),\n ]);\n }\n if (onAdError) {\n listeners.push(['hp:aderror', (e) => onAdError((e as CustomEvent<{ message: string }>).detail.message)]);\n }\n if (onItemChange) {\n listeners.push([\n 'hp:itemchange',\n (e) => {\n const detail = (e as CustomEvent<{ index: number; source: 'playlist' | 'story' }>).detail;\n onItemChange(detail.index, detail.source);\n },\n ]);\n }\n if (onSticky) {\n listeners.push([\n 'hp:sticky',\n (e) => {\n const detail = (e as CustomEvent<{ sticky: boolean; corner?: StickyCorner }>).detail;\n onSticky(detail.sticky, detail.corner);\n },\n ]);\n }\n\n for (const [name, handler] of listeners) el.addEventListener(name, handler);\n return () => {\n for (const [name, handler] of listeners) el.removeEventListener(name, handler);\n };\n }, [\n onReady,\n onPlay,\n onPause,\n onEnded,\n onError,\n onQualityChange,\n onRateChange,\n onAdStart,\n onAdEnd,\n onAdError,\n onItemChange,\n onSticky,\n ]);\n\n useImperativeHandle(\n ref,\n () => ({\n play: () => elRef.current?.play() ?? Promise.resolve(),\n pause: () => elRef.current?.pause(),\n getElement: () => elRef.current,\n }),\n []\n );\n\n return <hope-player ref={elRef} className={className} style={style} />;\n});\n"],"names":["HopePlayer","forwardRef","className","style","onReady","onPlay","onPause","onEnded","onError","onQualityChange","onRateChange","onAdStart","onAdEnd","onAdError","onItemChange","onSticky","options","ref","elRef","useRef","useEffect","cancelled","el","listeners","detail","name","handler","useImperativeHandle","_a","jsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"hope-player-react.js","sources":["../src/HopePlayer.tsx"],"sourcesContent":["/// <reference path=\"./jsx.d.ts\" />\n// \"use client\" burada değil: bundler kaynak direktifini atıp uyarı veriyor — vite.config.ts banner'ı çıktının ilk satırına ekliyor.\n\nimport { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';\nimport type { CSSProperties } from 'react';\nimport type {\n HopePlayerElement as HopePlayerEl,\n HopePlayerEventMap,\n HopePlayerOptions,\n StickyCorner,\n} from '@hopeplayer/core';\n\nexport interface HopePlayerProps extends HopePlayerOptions {\n className?: string;\n style?: CSSProperties;\n onReady?: () => void;\n onPlay?: () => void;\n onPause?: () => void;\n onEnded?: () => void;\n onError?: (message: string) => void;\n onQualityChange?: (label: string) => void;\n onRateChange?: (rate: number) => void;\n onAdStart?: (type: 'preroll' | 'midroll' | 'postroll') => void;\n onAdEnd?: (type: 'preroll' | 'midroll' | 'postroll') => void;\n onAdError?: (message: string) => void;\n onItemChange?: (index: number, source: 'playlist' | 'story') => void;\n onSticky?: (sticky: boolean, corner?: StickyCorner) => void;\n /** Kaynak grubu düştü, sıradakine geçildi (bkz. `sourcePriority`). */\n onSourceFallback?: (detail: HopePlayerEventMap['hp:sourcefallback']['detail']) => void;\n}\n\nexport interface HopePlayerHandle {\n play(): Promise<void>;\n pause(): void;\n /** Çekirdeğin kendi API'sine (settings menü, plugin instance'ları vb.) doğrudan erişim için kaçış kapısı. */\n getElement(): HopePlayerEl | null;\n}\n\n/**\n * <hope-player> için ince React sarmalayıcı: prop'ları `.options`'a yazar, `hp:*` event'lerini callback'lere çevirir.\n * Core `useEffect` içinde dinamik import edilir — statik import `HTMLElement` olmayan SSR'da (Next.js) çöker.\n */\nexport const HopePlayer = forwardRef<HopePlayerHandle, HopePlayerProps>(function HopePlayer(\n {\n className,\n style,\n onReady,\n onPlay,\n onPause,\n onEnded,\n onError,\n onQualityChange,\n onRateChange,\n onAdStart,\n onAdEnd,\n onAdError,\n onItemChange,\n onSticky,\n onSourceFallback,\n ...options\n },\n ref\n) {\n const elRef = useRef<HopePlayerEl | null>(null);\n\n useEffect(() => {\n let cancelled = false;\n // Her seferinde import'u bekle: element upgrade olmadan .options yazmak prototip accessor'ını kalıcı olarak maskeler.\n import('@hopeplayer/core').then(() => {\n if (cancelled) return;\n const el = elRef.current;\n if (el) el.options = options as HopePlayerOptions;\n });\n return () => {\n cancelled = true;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [JSON.stringify(options)]);\n\n useEffect(() => {\n const el = elRef.current;\n if (!el) return;\n\n const listeners: Array<[keyof HopePlayerEventMap, EventListener]> = [];\n if (onReady) listeners.push(['hp:ready', () => onReady()]);\n if (onPlay) listeners.push(['hp:play', () => onPlay()]);\n if (onPause) listeners.push(['hp:pause', () => onPause()]);\n if (onEnded) listeners.push(['hp:ended', () => onEnded()]);\n if (onError) {\n listeners.push(['hp:error', (e) => onError((e as CustomEvent<{ message: string }>).detail.message)]);\n }\n if (onQualityChange) {\n listeners.push([\n 'hp:qualitychange',\n (e) => onQualityChange((e as CustomEvent<{ label: string }>).detail.label),\n ]);\n }\n if (onRateChange) {\n listeners.push(['hp:ratechange', (e) => onRateChange((e as CustomEvent<{ rate: number }>).detail.rate)]);\n }\n if (onAdStart) {\n listeners.push([\n 'hp:adstart',\n (e) => onAdStart((e as CustomEvent<{ type: 'preroll' | 'midroll' | 'postroll' }>).detail.type),\n ]);\n }\n if (onAdEnd) {\n listeners.push([\n 'hp:adend',\n (e) => onAdEnd((e as CustomEvent<{ type: 'preroll' | 'midroll' | 'postroll' }>).detail.type),\n ]);\n }\n if (onAdError) {\n listeners.push(['hp:aderror', (e) => onAdError((e as CustomEvent<{ message: string }>).detail.message)]);\n }\n if (onItemChange) {\n listeners.push([\n 'hp:itemchange',\n (e) => {\n const detail = (e as CustomEvent<{ index: number; source: 'playlist' | 'story' }>).detail;\n onItemChange(detail.index, detail.source);\n },\n ]);\n }\n if (onSticky) {\n listeners.push([\n 'hp:sticky',\n (e) => {\n const detail = (e as CustomEvent<{ sticky: boolean; corner?: StickyCorner }>).detail;\n onSticky(detail.sticky, detail.corner);\n },\n ]);\n }\n\n if (onSourceFallback) {\n listeners.push(['hp:sourcefallback', (e) => onSourceFallback((e as HopePlayerEventMap['hp:sourcefallback']).detail)]);\n }\n\n for (const [name, handler] of listeners) el.addEventListener(name, handler);\n return () => {\n for (const [name, handler] of listeners) el.removeEventListener(name, handler);\n };\n }, [\n onReady,\n onPlay,\n onPause,\n onEnded,\n onError,\n onQualityChange,\n onRateChange,\n onAdStart,\n onAdEnd,\n onAdError,\n onItemChange,\n onSticky,\n onSourceFallback,\n ]);\n\n useImperativeHandle(\n ref,\n () => ({\n play: () => elRef.current?.play() ?? Promise.resolve(),\n pause: () => elRef.current?.pause(),\n getElement: () => elRef.current,\n }),\n []\n );\n\n return <hope-player ref={elRef} className={className} style={style} />;\n});\n"],"names":["HopePlayer","forwardRef","className","style","onReady","onPlay","onPause","onEnded","onError","onQualityChange","onRateChange","onAdStart","onAdEnd","onAdError","onItemChange","onSticky","onSourceFallback","options","ref","elRef","useRef","useEffect","cancelled","el","listeners","detail","name","handler","useImperativeHandle","_a","jsx"],"mappings":";;;AA0CO,MAAMA,IAAaC,EAA8C,SACpE;AAAA,EACI,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WA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,OAAAC,GAAc;AACxE,CAAC;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hopeplayer/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Thin React wrapper around <hope-player> (@hopeplayer/core) — prop/event bridge only, no state duplication",
|
|
5
|
+
"keywords": ["react", "nextjs", "react-component", "video-player", "video", "player", "html5-video", "hls", "m3u8", "web-component", "custom-element", "ima", "vast", "vmap", "prebid", "ads", "monetization", "chromecast", "airplay", "subtitles", "shadow-dom", "hopeplayer"],
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/umutyaldiz/hopecoreplayer.git",
|
|
@@ -34,11 +35,11 @@
|
|
|
34
35
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
|
-
"@hopeplayer/core": "^1.0.
|
|
38
|
+
"@hopeplayer/core": "^1.0.17",
|
|
38
39
|
"react": ">=18"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"@hopeplayer/core": "^1.0.
|
|
42
|
+
"@hopeplayer/core": "^1.0.17",
|
|
42
43
|
"@types/react": "^18.3.0",
|
|
43
44
|
"react": "^18.3.0",
|
|
44
45
|
"typescript": "^5.7.0",
|