zarebin-player-library 1.1.6 → 1.1.8
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.
|
@@ -445,8 +445,8 @@ export type Ad = {
|
|
|
445
445
|
mandatory_play_time: number;
|
|
446
446
|
channel: number;
|
|
447
447
|
banner?: string;
|
|
448
|
-
video_id?:
|
|
449
|
-
user_id?: number;
|
|
448
|
+
video_id?: string;
|
|
449
|
+
user_id?: number | null;
|
|
450
450
|
content_id?: number;
|
|
451
451
|
content_type?: number;
|
|
452
452
|
};
|
|
@@ -69009,6 +69009,10 @@ var useVideoControls = (ad, params) => {
|
|
|
69009
69009
|
var MoreInfoButton = ({ link }) => link ? /* @__PURE__ */ jsx("a", {
|
|
69010
69010
|
href: link,
|
|
69011
69011
|
target: "_blank",
|
|
69012
|
+
onClick: (event) => {
|
|
69013
|
+
event.stopPropagation();
|
|
69014
|
+
event.preventDefault();
|
|
69015
|
+
},
|
|
69012
69016
|
className: `pl-absolute pl-z-[3] pl-flex pl-cursor-pointer pl-items-center pl-gap-2 pl-rounded-lg pl-bg-gray-500 pl-font-medium pl-text-gray-100 ${conditions(ConditionName.isTouchScreen) ? "pl-bottom-[56px] pl-left-2 pl-px-[10px] pl-py-[6px] pl-text-xs lg:pl-bottom-[78px] lg:pl-h-11 lg:pl-text-[14px]" : "pl-bottom-[66px] pl-left-6 pl-h-12 pl-px-5 pl-py-2 pl-text-[16px] lg:pl-bottom-[88px]"}`,
|
|
69013
69017
|
children: "اطلاعات بیشتر"
|
|
69014
69018
|
}) : null;
|
|
@@ -69171,7 +69175,7 @@ var Advertisement = () => {
|
|
|
69171
69175
|
]
|
|
69172
69176
|
}),
|
|
69173
69177
|
/* @__PURE__ */ jsx(MoreInfoButton, {
|
|
69174
|
-
link: adData
|
|
69178
|
+
link: adData.ad_link,
|
|
69175
69179
|
currentTime
|
|
69176
69180
|
}),
|
|
69177
69181
|
hasSkip && /* @__PURE__ */ jsx(SkipButton, {
|
|
@@ -69230,8 +69234,8 @@ var VideoArea = () => {
|
|
|
69230
69234
|
dispatch(setAdData({
|
|
69231
69235
|
...getRandomAd(ads),
|
|
69232
69236
|
banner: details.banner,
|
|
69233
|
-
video_id:
|
|
69234
|
-
user_id:
|
|
69237
|
+
video_id: params.id,
|
|
69238
|
+
user_id: details.user_id,
|
|
69235
69239
|
content_id: details.content_id,
|
|
69236
69240
|
content_type: +details.content_type
|
|
69237
69241
|
}));
|