@streamlayer/react-ui 1.26.0 → 1.27.0

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.
Files changed (205) hide show
  1. package/lib/app/app/Advertisement/index.d.ts +1 -0
  2. package/lib/app/app/Advertisement/index.js +125 -92
  3. package/lib/app/app/Banner/index.d.ts +6 -0
  4. package/lib/app/app/Banner/index.js +6 -0
  5. package/lib/app/app/Features/Gamification/Question.d.ts +4 -0
  6. package/lib/app/app/Features/Gamification/Question.js +79 -50
  7. package/lib/app/app/Features/Gamification/QuestionAdvertisement.d.ts +6 -0
  8. package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +46 -0
  9. package/lib/app/app/Features/Gamification/Tabs.js +12 -12
  10. package/lib/app/app/Features/Gamification/index.d.ts +3 -0
  11. package/lib/app/app/Features/Gamification/index.js +56 -52
  12. package/lib/app/app/Features/index.d.ts +1 -0
  13. package/lib/app/app/Features/index.js +6 -4
  14. package/lib/app/app/InApp/index.d.ts +1 -0
  15. package/lib/app/app/InApp/index.js +44 -17
  16. package/lib/app/app/Insight/index.d.ts +3 -0
  17. package/lib/app/app/Insight/index.js +33 -30
  18. package/lib/app/app/Layout/index.d.ts +17 -0
  19. package/lib/app/app/Layout/index.js +105 -0
  20. package/lib/app/app/Layout/styles.d.ts +12 -0
  21. package/lib/app/app/Layout/styles.js +64 -0
  22. package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +7 -1
  23. package/lib/app/app/Notifications/styles.d.ts +18 -2
  24. package/lib/app/app/index.d.ts +1 -0
  25. package/lib/app/app/index.js +91 -85
  26. package/lib/app/app/story/index.js +56 -58
  27. package/lib/app/app/story/promotion/index.js +31 -36
  28. package/lib/app/app/story/promotion/styles.d.ts +3 -1
  29. package/lib/app/app/story/promotion/video.js +63 -81
  30. package/lib/app/app/story/promotion-notification/styles.d.ts +3 -1
  31. package/lib/app/app/story/styles.d.ts +5 -1
  32. package/lib/app/app/story/styles.js +36 -16
  33. package/lib/app/app/story/video.d.ts +5 -1
  34. package/lib/app/app/story/video.js +70 -33
  35. package/lib/app/app/useApp.d.ts +1 -2
  36. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +7 -1
  37. package/lib/app/masters/BetPack/BetPackContent/index.js +175 -187
  38. package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +84 -84
  39. package/lib/app/masters/BetPack/BetPackOverlay/styles.d.ts +14 -2
  40. package/lib/app/masters/Features/Gamification/Question.js +19 -17
  41. package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +7 -1
  42. package/lib/app/masters/Notifications/styles.d.ts +18 -2
  43. package/lib/app/masters/masters.d.ts +4 -1
  44. package/lib/app/masters/useMastersApp.d.ts +1 -1
  45. package/lib/app/tgl/styles.d.ts +3 -1
  46. package/lib/app/{tvos → webos/Advertisement}/AdvertisementUI.d.ts +7 -1
  47. package/lib/app/webos/Advertisement/AdvertisementUI.js +63 -0
  48. package/lib/app/{tvos/Advertisement.d.ts → webos/Advertisement/index.d.ts} +3 -1
  49. package/lib/app/webos/Advertisement/index.js +119 -0
  50. package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +15 -0
  51. package/lib/app/webos/ExposedPauseAd/PauseAd.js +93 -0
  52. package/lib/app/webos/ExposedPauseAd/styles.d.ts +12 -0
  53. package/lib/app/webos/ExposedPauseAd/styles.js +64 -0
  54. package/lib/app/webos/Question/index.d.ts +9 -0
  55. package/lib/app/webos/Question/index.js +56 -0
  56. package/lib/app/webos/index.d.ts +24 -0
  57. package/lib/app/webos/index.js +65 -0
  58. package/lib/app/webos/story.d.ts +9 -0
  59. package/lib/app/webos/story.js +74 -0
  60. package/lib/app/webos/styles.js +4 -0
  61. package/lib/app/webos/ui/Layout/index.js +78 -0
  62. package/lib/app/{tvos → webos}/ui/Layout/styles.js +25 -25
  63. package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +7 -0
  64. package/lib/app/webos/ui/Sidebar/PromoAction.js +63 -0
  65. package/lib/app/{tvos → webos}/ui/Sidebar/index.d.ts +6 -0
  66. package/lib/app/webos/ui/Sidebar/index.js +176 -0
  67. package/lib/app/{tvos → webos}/ui/Sidebar/styles.d.ts +7 -3
  68. package/lib/app/{tvos → webos}/ui/Sidebar/styles.js +175 -170
  69. package/lib/app/webos/ui/insight/index.d.ts +9 -0
  70. package/lib/app/webos/ui/insight/index.js +100 -0
  71. package/lib/app/webos/ui/insight/styles.d.ts +12 -0
  72. package/lib/app/webos/ui/insight/styles.js +51 -0
  73. package/lib/app/webos/useTvButton.d.ts +9 -0
  74. package/lib/app/webos/useTvButton.js +23 -0
  75. package/lib/assets/style.css +1 -1
  76. package/lib/hooks/analytics.d.ts +14 -0
  77. package/lib/hooks/showIn.d.ts +9 -0
  78. package/lib/hooks/useKeyboardNavigation.d.ts +15 -0
  79. package/lib/hooks/useKeyboardNavigation.js +74 -0
  80. package/lib/index-T1iiS0ZO.js +17 -0
  81. package/lib/ui/advertisement/banner/index.d.ts +3 -0
  82. package/lib/ui/advertisement/banner/index.js +29 -17
  83. package/lib/ui/advertisement/banner/styles.d.ts +5 -1
  84. package/lib/ui/advertisement/index.d.ts +4 -1
  85. package/lib/ui/advertisement/index.js +56 -44
  86. package/lib/ui/advertisement/notification/index.d.ts +2 -0
  87. package/lib/ui/advertisement/notification/index.js +50 -34
  88. package/lib/ui/advertisement/notification/lower-third/index.d.ts +2 -0
  89. package/lib/ui/advertisement/notification/lower-third/index.js +42 -26
  90. package/lib/ui/advertisement/notification/lower-third/styles.d.ts +11 -0
  91. package/lib/ui/advertisement/notification/lower-third/styles.js +39 -24
  92. package/lib/ui/advertisement/notification/styles.d.ts +18 -1
  93. package/lib/ui/advertisement/notification/styles.js +48 -33
  94. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +2 -2
  95. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
  96. package/lib/ui/advertisement/overlay/index.d.ts +4 -1
  97. package/lib/ui/advertisement/overlay/index.js +135 -77
  98. package/lib/ui/gamification/detail/header/index.d.ts +2 -0
  99. package/lib/ui/gamification/detail/header/index.js +19 -16
  100. package/lib/ui/gamification/detail/header/styles.d.ts +15 -3
  101. package/lib/ui/gamification/detail/header/styles.js +1 -1
  102. package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -0
  103. package/lib/ui/gamification/detail/sponsor/index.js +25 -13
  104. package/lib/ui/gamification/invite-link/styles.d.ts +14 -2
  105. package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -1
  106. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +14 -2
  107. package/lib/ui/gamification/onboarding/styles.d.ts +10 -2
  108. package/lib/ui/gamification/points/styles.d.ts +7 -1
  109. package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +48 -0
  110. package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +94 -0
  111. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +9 -0
  112. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +99 -0
  113. package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.d.ts +42 -0
  114. package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.js +117 -0
  115. package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +9 -8
  116. package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -1
  117. package/lib/ui/gamification/question/inapp/onboarding/index.js +12 -12
  118. package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +18 -2
  119. package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +9 -9
  120. package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +7 -1
  121. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.d.ts +5 -0
  122. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.js +49 -0
  123. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +12 -0
  124. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.js +56 -0
  125. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.d.ts +1 -0
  126. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.js +34 -0
  127. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.d.ts +1 -0
  128. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.js +19 -0
  129. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.d.ts +4 -0
  130. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.js +34 -0
  131. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.d.ts +7 -0
  132. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.js +43 -0
  133. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.d.ts +9 -0
  134. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.js +20 -0
  135. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +10 -0
  136. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +20 -0
  137. package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.d.ts +11 -0
  138. package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.js +34 -0
  139. package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +38 -5
  140. package/lib/ui/gamification/question/notification/styles.d.ts +14 -2
  141. package/lib/ui/gamification/question/styles.d.ts +26 -4
  142. package/lib/ui/gamification/vote/alert/styles.d.ts +7 -1
  143. package/lib/ui/gamification/vote/feedback/styles.d.ts +19 -2
  144. package/lib/ui/gamification/vote/feedbackAlert/index.d.ts +9 -0
  145. package/lib/ui/gamification/vote/feedbackAlert/index.js +11 -0
  146. package/lib/ui/gamification/vote/feedbackAlert/styles.d.ts +11 -0
  147. package/lib/ui/gamification/vote/feedbackAlert/styles.js +30 -0
  148. package/lib/ui/gamification/vote/index.d.ts +3 -1
  149. package/lib/ui/gamification/vote/index.js +160 -130
  150. package/lib/ui/gamification/vote/insight-details/index.js +8 -7
  151. package/lib/ui/gamification/vote/insight-details/styles.d.ts +7 -1
  152. package/lib/ui/gamification/vote/styles.d.ts +29 -4
  153. package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
  154. package/lib/ui/gamification/vote/vote-option/index.js +72 -64
  155. package/lib/ui/gamification/vote/vote-option/styles.d.ts +7 -1
  156. package/lib/ui/gamification/vote/win-bar/styles.d.ts +19 -2
  157. package/lib/ui/icons/index.d.ts +1 -0
  158. package/lib/ui/icons/index.js +80 -79
  159. package/lib/ui/modal/index.js +12 -17
  160. package/lib/ui/questions/insight/index.d.ts +4 -1
  161. package/lib/ui/questions/insight/index.js +29 -26
  162. package/lib/ui/questions/twitter/account/styles.d.ts +7 -1
  163. package/lib/ui/questions/twitter/index.d.ts +1 -0
  164. package/lib/ui/questions/twitter/index.js +27 -19
  165. package/lib/ui/theme/constants.d.ts +2 -0
  166. package/lib/ui/theme/constants.js +2 -0
  167. package/lib/ui/theme/masters-theme.js +1 -0
  168. package/lib/ui/theme/utils.d.ts +10 -0
  169. package/lib/ui/theme/utils.js +77 -0
  170. package/lib/ui/video-player/index.d.ts +10 -2
  171. package/lib/ui/video-player/index.js +189 -110
  172. package/lib/ui/video-player/styles.d.ts +36 -0
  173. package/lib/ui/video-player/styles.js +59 -11
  174. package/lib/utils/common.d.ts +6 -0
  175. package/lib/utils/createDemo.d.ts +12 -0
  176. package/lib/utils/debug/components/bypassLogin.d.ts +6 -0
  177. package/lib/utils/debug/components/copyLogs.d.ts +1 -0
  178. package/lib/utils/debug/components/developer.d.ts +14 -0
  179. package/lib/utils/debug/components/envToggle.d.ts +6 -0
  180. package/lib/utils/debug/components/eventInput.d.ts +8 -0
  181. package/lib/utils/debug/components/sdkKey.d.ts +6 -0
  182. package/lib/utils/debug/components/styles.d.ts +1 -0
  183. package/lib/utils/debug/index.d.ts +36 -0
  184. package/lib/utils/debug/storage.d.ts +14 -0
  185. package/lib/utils/decorators/container.d.ts +6 -0
  186. package/lib/utils/decorators/container.js +5 -5
  187. package/lib/utils/decorators/masters.d.ts +2 -0
  188. package/lib/utils/decorators/styles.d.ts +2 -0
  189. package/lib/utils/login.d.ts +3 -0
  190. package/lib/utils/storage.d.ts +14 -0
  191. package/package.json +27 -20
  192. package/lib/app/tvos/Advertisement.js +0 -88
  193. package/lib/app/tvos/AdvertisementUI.js +0 -40
  194. package/lib/app/tvos/index.d.ts +0 -16
  195. package/lib/app/tvos/index.js +0 -23
  196. package/lib/app/tvos/story.d.ts +0 -6
  197. package/lib/app/tvos/story.js +0 -34
  198. package/lib/app/tvos/styles.js +0 -4
  199. package/lib/app/tvos/ui/Layout/index.js +0 -76
  200. package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +0 -2
  201. package/lib/app/tvos/ui/Sidebar/PromoAction.js +0 -62
  202. package/lib/app/tvos/ui/Sidebar/index.js +0 -114
  203. /package/lib/app/{tvos → webos}/styles.d.ts +0 -0
  204. /package/lib/app/{tvos → webos}/ui/Layout/index.d.ts +0 -0
  205. /package/lib/app/{tvos → webos}/ui/Layout/styles.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import { InsightHistory, Promotion } from '@streamlayer/sdk-web-types';
2
+ import { VideoPlayerProps } from '../../../../ui/video-player';
3
+ export type InsightContentProps = InsightHistory & {
4
+ isDetail?: boolean;
5
+ muted?: boolean;
6
+ adPromotion?: Promotion;
7
+ controlVideo: VideoPlayerProps['controlVideo'];
8
+ };
9
+ export declare const InsightContentTV: React.FC<InsightContentProps>;
@@ -0,0 +1,100 @@
1
+ import { jsxs as a, jsx as c } from "react/jsx-runtime";
2
+ import { useKeyboardNavigation as Q } from "../../../../hooks/useKeyboardNavigation.js";
3
+ import { useRef as T, useState as b, useCallback as A, useEffect as W } from "react";
4
+ import { PlayVideoMuted as z, AutoPlayVideo as v, QuestionImages as G } from "@streamlayer/sdk-web-types";
5
+ import { SvgIcon as D } from "../../../../ui/icons/index.js";
6
+ import { Container as H, VideoWrapper as J, FocusableVideo as X, contentContainerClassName as S, VideoStatus as U, ImageContainer as Y, Image as Z, Content as _, Title as $, Description as n } from "./styles.js";
7
+ const ue = ({
8
+ instantView: e,
9
+ isDetail: d,
10
+ notification: l,
11
+ controlVideo: k,
12
+ muted: x
13
+ }) => {
14
+ var I, P;
15
+ const p = T(null), [L, o] = b(!1), [f, M] = b(void 0), [R, N] = b(!1), m = (e == null ? void 0 : e.playVideoMuted) === z.ENABLED, s = d && (e == null ? void 0 : e.autoPlayVideo) === v.ENABLED, F = m && s, E = T(), g = e == null ? void 0 : e.heading, B = e == null ? void 0 : e.body, C = g || B, O = l == null ? void 0 : l.title, j = l == null ? void 0 : l.body, y = A(() => {
16
+ const r = [];
17
+ p.current && r.push(p.current);
18
+ const t = document.querySelector(".webos"), h = t == null ? void 0 : t.querySelector('[data-close-btn="true"]');
19
+ return h && r.push(h), r;
20
+ }, []), q = A(
21
+ (r) => {
22
+ const t = document.activeElement;
23
+ if (y().includes(t))
24
+ switch (r.tagName) {
25
+ case "BUTTON":
26
+ r.click();
27
+ break;
28
+ case "VIDEO":
29
+ E.current = setTimeout(() => {
30
+ const u = r;
31
+ m && s ? u.muted ? (M(!1), u.muted = !1) : (M(!0), u.muted = !0) : u.paused || u.ended ? (o(!1), N(!0), u.play().then(() => {
32
+ }).catch((K) => console.warn("⛔ start failed:", K))) : (o(!0), u.pause(), N(!0));
33
+ }, 0);
34
+ break;
35
+ }
36
+ },
37
+ [s, m, y]
38
+ );
39
+ return W(() => () => {
40
+ E.current && clearTimeout(E.current);
41
+ }, []), Q({
42
+ containerSelector: ".webos",
43
+ getElements: y,
44
+ onEscape: () => {
45
+ },
46
+ onEnter: q,
47
+ initialFocusPriority: s ? 0 : 1,
48
+ enabled: !0,
49
+ dependencies: [s, m]
50
+ }), /* @__PURE__ */ a(H, { children: [
51
+ ((I = e == null ? void 0 : e.video) == null ? void 0 : I.url) && /* @__PURE__ */ a(J, { children: [
52
+ /* @__PURE__ */ c(
53
+ X,
54
+ {
55
+ className: S,
56
+ source: e.video.url,
57
+ poster: e.video.thumbnailUrl,
58
+ controlVideo: k,
59
+ muted: x,
60
+ autoPlay: d && e.autoPlayVideo === v.ENABLED,
61
+ tabIndex: 0,
62
+ ref: p,
63
+ onPause: () => {
64
+ d && e.autoPlayVideo === v.ENABLED && (o == null || o(!0));
65
+ },
66
+ onPlay: () => {
67
+ o == null || o(!1);
68
+ },
69
+ playMuted: m,
70
+ noControlsButtons: !0,
71
+ isMutedMediaVideo: f,
72
+ webos: !0
73
+ }
74
+ ),
75
+ L && R && /* @__PURE__ */ a(U, { children: [
76
+ /* @__PURE__ */ c(D, { name: "icon-pause" }),
77
+ "PAUSED"
78
+ ] }),
79
+ (f || F && f === void 0) && /* @__PURE__ */ a(U, { children: [
80
+ /* @__PURE__ */ c(D, { name: "iconMute" }),
81
+ "MUTED"
82
+ ] })
83
+ ] }),
84
+ (e == null ? void 0 : e.image) && !((P = e == null ? void 0 : e.video) != null && P.url) && /* @__PURE__ */ c(
85
+ Y,
86
+ {
87
+ className: S,
88
+ "data-rounded": e.imageMode === G.ROUNDED,
89
+ children: /* @__PURE__ */ c(Z, { src: e == null ? void 0 : e.image })
90
+ }
91
+ ),
92
+ /* @__PURE__ */ a(_, { children: [
93
+ /* @__PURE__ */ c($, { children: d && C ? g : O }),
94
+ /* @__PURE__ */ c(n, { children: d && C ? B : j })
95
+ ] })
96
+ ] });
97
+ };
98
+ export {
99
+ ue as InsightContentTV
100
+ };
@@ -0,0 +1,12 @@
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const VideoWrapper: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const FocusableVideo: {
4
+ __wyw_meta: unknown;
5
+ } & import('react').ForwardRefExoticComponent<import('../../../../ui/video-player').VideoPlayerProps & import('react').RefAttributes<HTMLVideoElement | null>>;
6
+ export declare const VideoStatus: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
+ export declare const contentContainerClassName: import('@linaria/core').LinariaClassName;
8
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
+ export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLHeadingElement> & import('react').HTMLAttributes<HTMLHeadingElement> & Record<never, unknown>>;
10
+ export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
11
+ export declare const Image: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
12
+ export declare const ImageContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -0,0 +1,51 @@
1
+ import { styled as s } from "@linaria/react";
2
+ import { VideoPlayer as e } from "../../../../ui/video-player/index.js";
3
+ const t = /* @__PURE__ */ s("div")({
4
+ name: "Container",
5
+ class: "cq8qxhy",
6
+ propsAsIs: !1
7
+ }), c = /* @__PURE__ */ s("div")({
8
+ name: "VideoWrapper",
9
+ class: "v18kj6dc",
10
+ propsAsIs: !1
11
+ }), a = () => e, i = /* @__PURE__ */ s(a())({
12
+ name: "FocusableVideo",
13
+ class: "fv2nwib",
14
+ propsAsIs: !0
15
+ }), p = /* @__PURE__ */ s("div")({
16
+ name: "VideoStatus",
17
+ class: "v8ptucg",
18
+ propsAsIs: !1
19
+ }), r = "caip8y5", l = /* @__PURE__ */ s("div")({
20
+ name: "Content",
21
+ class: "ccgc65e",
22
+ propsAsIs: !1
23
+ }), m = /* @__PURE__ */ s("h3")({
24
+ name: "Title",
25
+ class: "t1q3iml2",
26
+ propsAsIs: !1
27
+ }), d = /* @__PURE__ */ s("div")({
28
+ name: "Description",
29
+ class: "d1y2pxs8",
30
+ propsAsIs: !1
31
+ }), I = /* @__PURE__ */ s("img")({
32
+ name: "Image",
33
+ class: "ig2j4fc",
34
+ propsAsIs: !1
35
+ }), f = /* @__PURE__ */ s("div")({
36
+ name: "ImageContainer",
37
+ class: "i3dd6iy",
38
+ propsAsIs: !1
39
+ });
40
+ export {
41
+ t as Container,
42
+ l as Content,
43
+ d as Description,
44
+ i as FocusableVideo,
45
+ I as Image,
46
+ f as ImageContainer,
47
+ m as Title,
48
+ p as VideoStatus,
49
+ c as VideoWrapper,
50
+ r as contentContainerClassName
51
+ };
@@ -0,0 +1,9 @@
1
+ import { UseFocusableConfig } from '@noriginmedia/norigin-spatial-navigation';
2
+ type FocusableProps = {
3
+ webos?: boolean;
4
+ autoFocus?: boolean;
5
+ options?: UseFocusableConfig<unknown>;
6
+ onClick?: (...args: any[]) => void;
7
+ };
8
+ export declare function withFocusable<P extends object>(Component: React.ComponentType<P>, rawOptions?: UseFocusableConfig<unknown>): ({ webos, options, ...props }: P & FocusableProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useFocusable as f } from "@noriginmedia/norigin-spatial-navigation";
3
+ import { useEffect as m } from "react";
4
+ const a = (t) => {
5
+ const { Component: e, options: n, customOptions: r, autoFocus: o, ...i } = t, u = f({
6
+ ...n,
7
+ ...r,
8
+ onEnterPress: () => {
9
+ var c;
10
+ return (c = t.onClick) == null ? void 0 : c.call(t, { currentTarget: u.ref.current, stopPropagation: () => {
11
+ } });
12
+ }
13
+ });
14
+ return m(() => {
15
+ o && u.focusSelf();
16
+ }, []), /* @__PURE__ */ s(e, { ...i, ...u, "data-is-with-focus": "true" });
17
+ };
18
+ function O(t, e) {
19
+ return ({ webos: n, options: r, ...o }) => n ? /* @__PURE__ */ s(a, { Component: t, options: e, customOptions: r, ...o }) : /* @__PURE__ */ s(t, { ...o });
20
+ }
21
+ export {
22
+ O as withFocusable
23
+ };