jamespot-react-components 1.3.164 → 1.3.166

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 @@ export type JRCFileViewerProps<T extends jFileLittle> = {
7
7
  allowDownload?: boolean;
8
8
  children(open: (idFile: number) => void): ReactElement<HTMLElement>;
9
9
  onReadFile?(file: T): void;
10
+ onOpen?(file: T): void;
10
11
  };
11
12
  export type JRCFileViewerOpenWithOptionsType = Array<{
12
13
  condition: (file: jFileLittle) => boolean;
@@ -16,4 +17,4 @@ export type JRCFileViewerOpenWithOptionType = {
16
17
  label: string;
17
18
  onClick: (file: jFileLittle | undefined) => void;
18
19
  };
19
- export declare const JRCFileViewer: <T extends jFileLittle>({ files, size, children, openWithOptions, allowDownload, onReadFile, }: JRCFileViewerProps<T>) => import("react").JSX.Element;
20
+ export declare const JRCFileViewer: <T extends jFileLittle>({ files, size, children, openWithOptions, allowDownload, onReadFile, onOpen, }: JRCFileViewerProps<T>) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { JRCFileViewerItem, JRCFileViewerRawProps } from './types';
2
- export declare const JRCFileViewerRaw: <TItem extends JRCFileViewerItem>({ files, children, openWithOptions, onReadFile, }: JRCFileViewerRawProps<TItem>) => import("react").JSX.Element;
2
+ export declare const JRCFileViewerRaw: <TItem extends JRCFileViewerItem>({ files, children, openWithOptions, onReadFile, onOpen, }: JRCFileViewerRawProps<TItem>) => import("react").JSX.Element;
@@ -15,6 +15,7 @@ export type JRCFileViewerRawProps<TItem extends JRCFileViewerItem> = {
15
15
  openWithOptions: JRCFileViewerRawOptionsType<TItem>;
16
16
  children(open: (key: number) => void): ReactElement<HTMLElement>;
17
17
  onReadFile?(item: TItem): void;
18
+ onOpen?(item: TItem): void;
18
19
  };
19
20
  export type JRCFileViewerRawOptionsType<TItem extends JRCFileViewerItem> = Array<{
20
21
  condition: (item: TItem) => boolean;
@@ -10,4 +10,9 @@ export declare const LargeTooltipWithTitle: Story;
10
10
  export declare const LargeTooltipWithoutTitle: Story;
11
11
  export declare const LargeTooltipWithButton: Story;
12
12
  export declare const TooltipWithButtonTest: Story;
13
+ export declare const TooltipMountsOnDemandTest: Story;
14
+ export declare const DelayedTooltipTest: Story;
15
+ export declare const PointerLeftBeforeMountTest: Story;
16
+ export declare const DisabledToggleTest: Story;
17
+ export declare const PortalInsideAnchorTest: Story;
13
18
  export declare const InactiveTooltipTest: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.164",
3
+ "version": "1.3.166",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -89,8 +89,8 @@
89
89
  "vite-plugin-css-injected-by-js": "^3.5.2",
90
90
  "vite-plugin-dts": "^4.5.4",
91
91
  "vitest": "^4.1.10",
92
- "jamespot-front-business": "1.3.164",
93
- "jamespot-user-api": "1.3.164"
92
+ "jamespot-front-business": "1.3.166",
93
+ "jamespot-user-api": "1.3.166"
94
94
  },
95
95
  "lint-staged": {
96
96
  "*.{js,jsx,ts,tsx}": [