zarebin-player-library 1.1.8 → 1.1.10

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.
@@ -1,4 +1,2 @@
1
- declare const UnMuteVideo: ({ advertisement }: {
2
- advertisement?: boolean;
3
- }) => import("react/jsx-runtime").JSX.Element;
1
+ declare const UnMuteVideo: () => import("react/jsx-runtime").JSX.Element;
4
2
  export default UnMuteVideo;
@@ -11509,9 +11509,9 @@ video {
11509
11509
  }.pl-size-4{
11510
11510
  width: 1rem;
11511
11511
  height: 1rem;
11512
- }.pl-size-6{
11513
- width: 1.5rem;
11514
- height: 1.5rem;
11512
+ }.pl-size-5{
11513
+ width: 1.25rem;
11514
+ height: 1.25rem;
11515
11515
  }.pl-size-full{
11516
11516
  width: 100%;
11517
11517
  height: 100%;
@@ -13293,6 +13293,9 @@ video {
13293
13293
  height: 2.75rem;
13294
13294
  }.lg\:pl-w-\[40\%\]{
13295
13295
  width: 40%;
13296
+ }.lg\:pl-px-3{
13297
+ padding-left: 0.75rem;
13298
+ padding-right: 0.75rem;
13296
13299
  }.lg\:pl-pb-4{
13297
13300
  padding-bottom: 1rem;
13298
13301
  }.lg\:pl-text-\[14px\]{
@@ -68961,8 +68961,13 @@ var useVideoControls = (ad, params) => {
68961
68961
  const playPromise = video.play();
68962
68962
  dispatch(setPlay(true));
68963
68963
  if (playPromise !== void 0) playPromise.then(() => {
68964
- handleChangeSoundVolume(100);
68965
- dispatch(setFirstMute(false));
68964
+ if (!isIOS()) {
68965
+ handleChangeSoundVolume(100);
68966
+ dispatch(setFirstMute(false));
68967
+ } else {
68968
+ dispatch(setFirstMute(true));
68969
+ handleChangeSoundVolume(0);
68970
+ }
68966
68971
  }).catch(() => {
68967
68972
  handleChangeSoundVolume(0);
68968
68973
  dispatch(setFirstMute(true));
@@ -69006,12 +69011,11 @@ var useVideoControls = (ad, params) => {
69006
69011
  };
69007
69012
  //#endregion
69008
69013
  //#region src/videoPlayerLibrary/shared/ui/src/components/advertisement/MoreInfoButton.tsx
69009
- var MoreInfoButton = ({ link }) => link ? /* @__PURE__ */ jsx("a", {
69010
- href: link,
69011
- target: "_blank",
69014
+ var MoreInfoButton = ({ link }) => link ? /* @__PURE__ */ jsx("div", {
69012
69015
  onClick: (event) => {
69013
69016
  event.stopPropagation();
69014
69017
  event.preventDefault();
69018
+ window.open(link);
69015
69019
  },
69016
69020
  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]"}`,
69017
69021
  children: "اطلاعات بیشتر"
@@ -69042,14 +69046,14 @@ var SkipButton = ({ skipCounter }) => {
69042
69046
  };
69043
69047
  //#endregion
69044
69048
  //#region src/videoPlayerLibrary/shared/ui/src/components/advertisement/UnMuteVideo.tsx
69045
- var UnMuteVideo = ({ advertisement }) => /* @__PURE__ */ jsxs("div", {
69046
- 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"}`,
69049
+ var UnMuteVideo = () => /* @__PURE__ */ jsxs("div", {
69050
+ className: `pl-absolute pl-left-0 pl-top-[10px] pl-flex pl-cursor-pointer pl-items-center pl-rounded-lg pl-bg-gray-500 ${conditions(ConditionName.isTouchScreen) ? "pl-gap-1 pl-px-2 pl-py-2" : "!pl-left-8 pl-gap-2 pl-p-3"} ${conditions(ConditionName.isTouchScreen) && "pl-mx-4"}`,
69047
69051
  children: [/* @__PURE__ */ jsx("img", {
69048
69052
  src: IMAGES.mute,
69049
69053
  alt: "mute icon",
69050
- className: `pl-shrink-0 ${conditions(ConditionName.isTouchScreen) ? "pl-size-4" : "pl-size-6"}`
69054
+ className: `pl-shrink-0 ${conditions(ConditionName.isTouchScreen) ? "pl-size-4" : "pl-size-5"}`
69051
69055
  }), /* @__PURE__ */ jsx("p", {
69052
- className: `pl-text-[14px] ${!advertisement ? "pl-whitespace-nowrap" : ""} pl-font-medium dark:pl-text-secondary-100`,
69056
+ className: `pl-whitespace-nowrap pl-text-[14px] pl-font-medium dark:pl-text-secondary-100`,
69053
69057
  children: "برای پخش صدا روی ویدیو ضربه بزنید."
69054
69058
  })]
69055
69059
  });
@@ -69152,8 +69156,8 @@ var Advertisement = () => {
69152
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]"}`,
69153
69157
  children: [
69154
69158
  /* @__PURE__ */ jsx("div", {
69155
- 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"}`,
69156
- children: firstMute && /* @__PURE__ */ jsx(UnMuteVideo, { advertisement: true })
69159
+ className: `pl-z-[3] pl-flex pl-items-center pl-gap-5 pl-self-end pl-px-2 lg: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
+ children: firstMute && /* @__PURE__ */ jsx(UnMuteVideo, {})
69157
69161
  }),
69158
69162
  /* @__PURE__ */ jsx("div", {
69159
69163
  className: `pl-absolute pl-inset-0 pl-z-[2] pl-flex pl-items-center pl-justify-center pl-transition-opacity pl-duration-500 pl-ease-in-out ${showControls ? "pl-opacity-100" : "pl-pointer-events-none pl-opacity-0"}`,