@conboai/storybook.components 0.5.2 → 0.5.3

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.
@@ -3,8 +3,8 @@ import { default as React } from 'react';
3
3
  interface ImageBoxProps {
4
4
  images: string[];
5
5
  imgIndex?: number;
6
- isFirstPage: boolean;
7
- setToFirstPage: (value: boolean) => void;
6
+ isFirstPage?: boolean;
7
+ setToFirstPage?: (value: boolean) => void;
8
8
  }
9
9
  declare const ImageBox: React.FC<ImageBoxProps>;
10
10
  export default ImageBox;
@@ -64706,7 +64706,7 @@ const dce = {
64706
64706
  }) => {
64707
64707
  const [o, i] = Be(t), [s, l] = Be(!1), c = e.length ? `${o + 1} / ${e.length}` : "0 / 0";
64708
64708
  Ie(() => {
64709
- n && (i(0), r(!1));
64709
+ n && (i(0), r == null || r(!1));
64710
64710
  }, [n, r]);
64711
64711
  const u = () => {
64712
64712
  i((g) => (g + 1) % e.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [