zarebin-player-library 1.0.35 → 1.0.37

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.
@@ -93,7 +93,7 @@ export interface IParams {
93
93
  homeButtonClickFlag?: number | null;
94
94
  ad?: {
95
95
  adUserId: string;
96
- onAdView?: () => void;
96
+ onAdView?: (ad: Ad) => void;
97
97
  } | undefined;
98
98
  redirectOnEndedUrl?: string;
99
99
  lang?: "ar" | "fa" | "en";
@@ -11278,6 +11278,8 @@ video {
11278
11278
  z-index: 2;
11279
11279
  }.pl-z-\[3\]{
11280
11280
  z-index: 3;
11281
+ }.pl-z-\[4\]{
11282
+ z-index: 4;
11281
11283
  }.pl-order-1{
11282
11284
  order: 1;
11283
11285
  }.pl-order-2{
@@ -68934,7 +68934,7 @@ var useVideoControls = (ad, params) => {
68934
68934
  setIsCounting(true);
68935
68935
  setIsPaused(false);
68936
68936
  if (firstPlayRef.current) {
68937
- params.ad.onAdView();
68937
+ params.ad.onAdView(ad);
68938
68938
  setFirstPlay(false);
68939
68939
  }
68940
68940
  };
@@ -69047,9 +69047,9 @@ var SkipButton = ({ skipCounter }) => {
69047
69047
  //#endregion
69048
69048
  //#region src/videoPlayerLibrary/shared/ui/src/components/advertisement/UnMuteVideo.tsx
69049
69049
  var UnMuteVideo = ({ advertisement }) => /* @__PURE__ */ jsxs("div", {
69050
- className: `pl-flex pl-cursor-pointer pl-items-center pl-rounded-[4px] pl-bg-gray-500 ${!advertisement ? "pl-absolute -pl-left-2 pl-top-[60px]" : ""} ${conditions(ConditionName.isTouchScreen) ? "pl-gap-1 pl-px-2 pl-py-[10px]" : "!pl-left-8 pl-gap-2 pl-p-3"} ${conditions(ConditionName.isTouchScreen) && "pl-mx-4"}`,
69050
+ className: `pl-flex pl-cursor-pointer pl-items-center pl-rounded-lg pl-bg-gray-500 ${!advertisement ? "pl-absolute -pl-left-2 pl-top-[60px]" : ""} ${conditions(ConditionName.isTouchScreen) ? "pl-gap-1 pl-px-2 pl-py-[10px]" : "!pl-left-8 pl-gap-2 pl-p-3"} ${conditions(ConditionName.isTouchScreen) && "pl-mx-4"}`,
69051
69051
  children: [/* @__PURE__ */ jsx("img", {
69052
- src: IMAGES.muteBlack,
69052
+ src: IMAGES.mute,
69053
69053
  alt: "mute icon",
69054
69054
  className: `pl-shrink-0 ${conditions(ConditionName.isTouchScreen) ? "pl-size-4" : "pl-size-6"}`
69055
69055
  }), /* @__PURE__ */ jsx("p", {
@@ -69156,7 +69156,7 @@ var Advertisement = () => {
69156
69156
  className: `pl-relative pl-flex pl-h-full pl-w-full pl-flex-col pl-justify-between ${conditions(ConditionName.isTouchScreen) ? "pl-pb-3 pl-pt-4 lg:pl-pb-4" : "pl-pb-5 pl-pt-[30px]"}`,
69157
69157
  children: [
69158
69158
  /* @__PURE__ */ jsx("div", {
69159
- className: `pl-relative pl-z-[3] pl-flex pl-items-center pl-gap-5 pl-self-end pl-px-3 ${conditions(ConditionName.isTouchScreenPortrait) && "!pl-h-max !pl-flex-col-reverse !pl-items-start !pl-gap-0 !pl-self-start"} ${conditions(ConditionName.isTouchScreenLandscape) && "!pl-flex-row-reverse !pl-justify-between !pl-self-stretch"}`,
69159
+ className: `pl-relative pl-z-[4] pl-flex pl-items-center pl-gap-5 pl-self-end pl-px-3 ${conditions(ConditionName.isTouchScreenPortrait) && "!pl-h-max !pl-flex-col-reverse !pl-items-start !pl-gap-0 !pl-self-start"} ${conditions(ConditionName.isTouchScreenLandscape) && "!pl-flex-row-reverse !pl-justify-between !pl-self-stretch"}`,
69160
69160
  children: firstMute && /* @__PURE__ */ jsx(UnMuteVideo, { advertisement: true })
69161
69161
  }),
69162
69162
  /* @__PURE__ */ jsx("div", {