jamespot-react-components 1.3.98 → 1.3.99

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.
@@ -0,0 +1,8 @@
1
+ export declare const DEFAULT_COLOR_FILTER = "#000000";
2
+ export declare const DEFAULT_OPACITY_FILTER = 2;
3
+ export declare const OPACITY_FILTER_MIN = 0;
4
+ export declare const OPACITY_FILTER_MAX = 10;
5
+ export declare const SLIDER_MAX_WIDTH = 800;
6
+ export declare const SLIDER_MAX_DOTS = 6;
7
+ export declare const DEFAULT_SLIDER_DELAY_SECONDS = 8;
8
+ export declare const DEFAULT_MIN_HEIGHT = 200;
@@ -0,0 +1,10 @@
1
+ import { NewsflashItem, NewsflashProperties, WidgetDisplayMode, WidgetNewsflashContent } from 'jamespot-user-api';
2
+ export type JRCWidgetNewsflashProps = {
3
+ items: NewsflashItem[];
4
+ properties: NewsflashProperties;
5
+ content: WidgetNewsflashContent;
6
+ mode?: WidgetDisplayMode | undefined;
7
+ isLoading?: boolean | undefined;
8
+ emptyImageSrc?: string | undefined;
9
+ };
10
+ export declare const JRCWidgetNewsflash: ({ items, properties, content, mode, isLoading, emptyImageSrc, }: JRCWidgetNewsflashProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { JRCWidgetNewsflash } from './JRCWidgetNewsflash';
3
+ declare const meta: Meta<typeof JRCWidgetNewsflash>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof JRCWidgetNewsflash>;
6
+ export declare const ImageMode: Story;
7
+ export declare const BannerMode: Story;
8
+ export declare const CoverMode: Story;
9
+ export declare const EmptyEdit: Story;
10
+ export declare const EmptyView: Story;
@@ -0,0 +1,12 @@
1
+ import { NewsflashItem } from 'jamespot-user-api';
2
+ export type NewsflashCardProps = {
3
+ item: NewsflashItem;
4
+ textColor?: string | undefined;
5
+ buttonBackgroundColor?: string | undefined;
6
+ buttonTextColor?: string | undefined;
7
+ readMoreLabel: string;
8
+ };
9
+ export type NewsflashCoverCardProps = NewsflashCardProps & {
10
+ colorFilter: string;
11
+ opacityFilter: number;
12
+ };
@@ -0,0 +1,7 @@
1
+ import { WidgetNewsflashContent } from 'jamespot-user-api';
2
+ export interface JRCWidgetNewsflashEditorProps {
3
+ uniqid: string;
4
+ content: WidgetNewsflashContent;
5
+ onChangeContent: (uniqid: string, content: WidgetNewsflashContent) => void;
6
+ }
7
+ export declare const JRCWidgetNewsflashEditor: ({ uniqid, content, onChangeContent }: JRCWidgetNewsflashEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export type NewsflashActionButtonProps = {
2
+ href: string;
3
+ label: string;
4
+ color?: string | undefined;
5
+ backgroundColor?: string | undefined;
6
+ };
7
+ export declare const NewsflashActionButton: ({ href, label, color, backgroundColor }: NewsflashActionButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export type NewsflashReadMoreProps = {
9
+ href: string;
10
+ label: string;
11
+ color?: string | undefined;
12
+ };
13
+ export declare const NewsflashReadMore: ({ href, label, color }: NewsflashReadMoreProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NewsflashCardProps } from './JRCWidgetNewsflash.types';
2
+ export declare const NewsflashBannerCard: ({ item, textColor, buttonBackgroundColor, buttonTextColor, readMoreLabel, }: NewsflashCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NewsflashCoverCardProps } from './JRCWidgetNewsflash.types';
2
+ export declare const NewsflashCoverCard: ({ item, textColor, buttonBackgroundColor, buttonTextColor, colorFilter, opacityFilter, }: NewsflashCoverCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const NewsflashEmptyState: ({ imageSrc }: {
2
+ imageSrc?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NewsflashCardProps } from './JRCWidgetNewsflash.types';
2
+ export declare const NewsflashImageCard: ({ item, textColor, buttonBackgroundColor, buttonTextColor, readMoreLabel, }: NewsflashCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -189,6 +189,8 @@ export { JRCWidgetImage } from './Widgets/JRCWidgetImage/JRCWidgetImage';
189
189
  export { JRCWidgetImageEditor } from './Widgets/JRCWidgetImage/JRCWidgetImageEditor';
190
190
  export { JRCWidgetLuccaAbsence } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence';
191
191
  export { JRCWidgetLuccaAbsenceEditor } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceEditor';
192
+ export { JRCWidgetNewsflash } from './Widgets/JRCWidgetNewsflash/JRCWidgetNewsflash';
193
+ export { JRCWidgetNewsflashEditor } from './Widgets/JRCWidgetNewsflash/JRCWidgetNewsflashEditor';
192
194
  export { JRCWidgetPresence } from './Widgets/JRCWidgetPresence/JRCWidgetPresence';
193
195
  export { JRCWidgetPresenceEditor } from './Widgets/JRCWidgetPresence/JRCWidgetPresenceEditor';
194
196
  export { JRCWidgetQuickSurvey } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey';
@@ -220,6 +220,9 @@ declare const _default: {
220
220
  "GLOBAL_IframeVideo_OpenInNewTab": "Open video in a new tab",
221
221
  "GLOBAL_IframeVideo_Play": "Play video",
222
222
  "GLOBAL_Image": "Image",
223
+ "GLOBAL_Image_Format_Image": "Image",
224
+ "GLOBAL_Image_Format_Banner": "Banner",
225
+ "GLOBAL_Image_Format_Cover": "Cover",
223
226
  "GLOBAL_Import": "Import",
224
227
  "GLOBAL_Insert": "Insert",
225
228
  "GLOBAL_Jamespot": "Jamespot",
@@ -239,6 +242,7 @@ declare const _default: {
239
242
  "GLOBAL_Provide_Missing_Token": "A token must be provided to use this widget",
240
243
  "GLOBAL_Public_Groups": "Public groups",
241
244
  "GLOBAL_Publish": "Publish",
245
+ "GLOBAL_Read_Following": "Read more",
242
246
  "GLOBAL_Recommended": "recommended",
243
247
  "GLOBAL_Redirect_To_User_Profile_React": "Redirection to the profile page of {username}",
244
248
  "GLOBAL_Reorder": "Reorder",
@@ -424,6 +428,12 @@ declare const _default: {
424
428
  "WIDGET_Lucca_Absent_Until_Today": "Absent jusqu'a aujourd'hui",
425
429
  "WIDGET_Lucca_Absent_Until_Tomorrow": "Absent jusqu'a demain",
426
430
  "WIDGET_Lucca_Absent_Until": "Absent jusqu'au",
431
+ "WIDGET_Newsflash": "Flash info",
432
+ "WIDGET_Newsflash_Text": "Display the latest flash info on your homepage",
433
+ "WIDGET_Newsflash_Is_Empty": "No recent news",
434
+ "WIDGET_Newsflash_Display_Mode": "Display mode",
435
+ "WIDGET_Newsflash_Button_Background": "Button background color",
436
+ "WIDGET_Newsflash_Button_Text": "Button text color",
427
437
  "WIDGET_Panel_Tpl_Warning_Message": "Il n'est pas possible de configurer ce widget en mode template",
428
438
  "WIDGET_Presence_Availability": "{max} places disponibles",
429
439
  "WIDGET_Presence_Is_Closed": "Il n'est plus possible de répondre à ce sondage",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.98",
3
+ "version": "1.3.99",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -59,8 +59,8 @@
59
59
  "eslint-plugin-storybook": "10.3.6",
60
60
  "globals": "^16.5.0",
61
61
  "html2canvas": "^1.4.1",
62
- "jamespot-front-business": "^1.3.98",
63
- "jamespot-user-api": "^1.3.98",
62
+ "jamespot-front-business": "^1.3.99",
63
+ "jamespot-user-api": "^1.3.99",
64
64
  "jsdom": "^26.1.0",
65
65
  "knip": "^5.88.1",
66
66
  "lint-staged": "^16.4.0",