@conboai/storybook.components 0.1.17 → 0.1.19

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.
@@ -7,6 +7,7 @@ interface IVideoBox {
7
7
  autoPlay?: boolean;
8
8
  controls?: boolean;
9
9
  isHls?: boolean;
10
+ playVideo?: boolean;
10
11
  }
11
12
  declare const VideoBox: FC<IVideoBox>;
12
13
  export default VideoBox;
@@ -58241,8 +58241,7 @@ const _5 = {
58241
58241
  bottom: u ? 0 : "auto",
58242
58242
  width: u ? "100%" : "auto",
58243
58243
  backgroundColor: u ? "rgba(0, 0, 0, 0.5)" : "transparent",
58244
- transition: "opacity 0.5s",
58245
- opacity: l ? 1 : 0
58244
+ transition: "opacity 0.5s"
58246
58245
  },
58247
58246
  children: [
58248
58247
  /* @__PURE__ */ E.jsx(at, { item: !0, children: /* @__PURE__ */ E.jsx(Wt, { onClick: m, children: r ? /* @__PURE__ */ E.jsx(Yt, { icon: "pause" }) : /* @__PURE__ */ E.jsx(Yt, { icon: "play" }) }) }),
@@ -58285,9 +58284,15 @@ const _5 = {
58285
58284
  )
58286
58285
  }
58287
58286
  );
58288
- }, c3 = ({ onGenerate: t, isLoading: e, src: n, isHls: r }) => {
58289
- const [o, i] = ut(!1), a = () => {
58290
- t(), i(!0);
58287
+ }, c3 = ({
58288
+ onGenerate: t,
58289
+ isLoading: e,
58290
+ src: n,
58291
+ isHls: r,
58292
+ playVideo: o = !1
58293
+ }) => {
58294
+ const [i, a] = ut(o), l = () => {
58295
+ t(), a(!0);
58291
58296
  };
58292
58297
  return /* @__PURE__ */ E.jsx(
58293
58298
  at,
@@ -58297,7 +58302,7 @@ const _5 = {
58297
58302
  justifyContent: "center",
58298
58303
  alignItems: "center",
58299
58304
  sx: { display: "flex", backgroundColor: gn },
58300
- children: o ? /* @__PURE__ */ E.jsx(N5, { src: n, isLoading: e, isHls: r }) : /* @__PURE__ */ E.jsx(Yr, { onClick: a, size: "large", children: "Generate video" })
58305
+ children: i ? /* @__PURE__ */ E.jsx(N5, { src: n, isLoading: e, isHls: r }) : /* @__PURE__ */ E.jsx(Yr, { onClick: l, size: "large", children: "Generate video" })
58301
58306
  }
58302
58307
  );
58303
58308
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [