jamespot-react-components 1.3.136 → 1.3.138
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.
- package/dist/jamespot-react-components.cjs +435 -427
- package/dist/jamespot-react-components.js +2400 -2378
- package/dist/src/components/JRCAttachments/JRCAttachments.d.ts +2 -1
- package/dist/src/components/JRCFileViewer/JRCFileViewer.d.ts +2 -1
- package/dist/src/components/JRCFileViewer/fileToViewerItem.d.ts +1 -1
- package/dist/src/components/JRCMediaCarousel/JRCMediaCarousel.d.ts +1 -1
- package/dist/src/components/JRCMediaCarousel/types.d.ts +3 -0
- package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.d.ts +2 -1
- package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.stories.d.ts +1 -0
- package/package.json +3 -3
|
@@ -6,5 +6,6 @@ export type JRCAttachmentsProps = {
|
|
|
6
6
|
onDelete?: (id: number) => Promise<void>;
|
|
7
7
|
mode?: 'view' | 'edit';
|
|
8
8
|
display?: AttachmentDisplayValues;
|
|
9
|
+
allowDownload?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const JRCAttachments: ({ files, onError, onDelete, mode, display, }: JRCAttachmentsProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const JRCAttachments: ({ files, onError, onDelete, mode, display, allowDownload, }: JRCAttachmentsProps) => import("react").JSX.Element;
|
|
@@ -4,6 +4,7 @@ export type JRCFileViewerProps<T extends jFileLittle> = {
|
|
|
4
4
|
files: T[];
|
|
5
5
|
size?: string;
|
|
6
6
|
openWithOptions: JRCFileViewerOpenWithOptionsType;
|
|
7
|
+
allowDownload?: boolean;
|
|
7
8
|
children(open: (idFile: number) => void): ReactElement<HTMLElement>;
|
|
8
9
|
onReadFile?(file: T): void;
|
|
9
10
|
};
|
|
@@ -15,4 +16,4 @@ export type JRCFileViewerOpenWithOptionType = {
|
|
|
15
16
|
label: string;
|
|
16
17
|
onClick: (file: jFileLittle | undefined) => void;
|
|
17
18
|
};
|
|
18
|
-
export declare const JRCFileViewer: <T extends jFileLittle>({ files, size, children, openWithOptions, onReadFile, }: JRCFileViewerProps<T>) => import("react").JSX.Element;
|
|
19
|
+
export declare const JRCFileViewer: <T extends jFileLittle>({ files, size, children, openWithOptions, allowDownload, onReadFile, }: JRCFileViewerProps<T>) => import("react").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export declare const DEFAULT_VIEWER_SIZE = "fitx1200";
|
|
|
5
5
|
export type JRCFileViewerFileItem<T extends jFileLittle> = JRCFileViewerItem & {
|
|
6
6
|
file: T;
|
|
7
7
|
};
|
|
8
|
-
export declare const fileToViewerItem: <T extends jFileLittle>(file: T, size?: string) => JRCFileViewerFileItem<T>;
|
|
8
|
+
export declare const fileToViewerItem: <T extends jFileLittle>(file: T, size?: string, allowDownload?: boolean) => JRCFileViewerFileItem<T>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JRCMediaCarouselProps } from './types';
|
|
2
|
-
export declare const JRCMediaCarousel: ({ files, maxWidth, withAttachments, urlResolve, }: JRCMediaCarouselProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const JRCMediaCarousel: ({ files, maxWidth, withAttachments, attachmentDisplay, allowDownload, urlResolve, }: JRCMediaCarouselProps) => import("react").JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { jFileLittle } from 'jamespot-user-api';
|
|
2
|
+
import { AttachmentDisplayValues } from '../JRCFileRow/JRCFileRow.styles';
|
|
2
3
|
export type JRCMediaCarouselProps = {
|
|
3
4
|
files: jFileLittle[];
|
|
4
5
|
maxWidth?: number;
|
|
5
6
|
withAttachments?: boolean;
|
|
7
|
+
attachmentDisplay?: AttachmentDisplayValues;
|
|
8
|
+
allowDownload?: boolean;
|
|
6
9
|
urlResolve: (file: jFileLittle) => string;
|
|
7
10
|
};
|
|
@@ -20,5 +20,6 @@ export type JRCWidgetAttachmentProps = {
|
|
|
20
20
|
onClick: (idFile: number) => void;
|
|
21
21
|
inline?: boolean;
|
|
22
22
|
display?: AttachmentDisplayValues;
|
|
23
|
+
allowDownload?: boolean;
|
|
23
24
|
};
|
|
24
|
-
export declare const JRCWidgetAttachment: ({ files, inline, onClick, onDelete, onError, mocks, mode, display, }: JRCWidgetAttachmentProps) => import("react").JSX.Element;
|
|
25
|
+
export declare const JRCWidgetAttachment: ({ files, inline, onClick, onDelete, onError, mocks, mode, display, allowDownload, }: JRCWidgetAttachmentProps) => import("react").JSX.Element;
|
|
@@ -4,3 +4,4 @@ declare const _default: Meta;
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Primary: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCWidgetAttachmentProps>;
|
|
6
6
|
export declare const Large: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCWidgetAttachmentProps>;
|
|
7
|
+
export declare const NoDownload: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCWidgetAttachmentProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.138",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"eslint-plugin-storybook": "10.3.6",
|
|
61
61
|
"globals": "^16.5.0",
|
|
62
62
|
"html2canvas": "^1.4.1",
|
|
63
|
-
"jamespot-front-business": "^1.3.
|
|
64
|
-
"jamespot-user-api": "^1.3.
|
|
63
|
+
"jamespot-front-business": "^1.3.138",
|
|
64
|
+
"jamespot-user-api": "^1.3.138",
|
|
65
65
|
"jsdom": "^26.1.0",
|
|
66
66
|
"knip": "^5.88.1",
|
|
67
67
|
"lint-staged": "^16.4.0",
|