jamespot-react-components 1.3.49 → 1.3.50
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 +887 -863
- package/dist/jamespot-react-components.js +6863 -6731
- package/dist/src/components/Editors/components/EditorImageUpload.d.ts +3 -1
- package/dist/src/components/Editors/components/EditorInputCheckbox.d.ts +2 -1
- package/dist/src/components/Editors/components/EditorInputNumber.d.ts +2 -1
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditorSlide.d.ts +3 -3
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetSlider.d.ts +3 -1
- package/dist/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderImage.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderSlide.d.ts +2 -0
- package/dist/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderSlideTitle.d.ts +2 -0
- package/dist/src/components/Widgets/JRCWidgetSlider/types.d.ts +11 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/translation/lang.json.d.ts +2 -0
- package/package.json +2 -2
- package/dist/src/components/Widgets/JRCWidgetSlider/components/SliderImage.d.ts +0 -7
- package/dist/src/components/Widgets/JRCWidgetSlider/components/SliderSlideTitle.d.ts +0 -2
|
@@ -3,8 +3,10 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
type EditorImageUploadProps = {
|
|
4
4
|
token: string;
|
|
5
5
|
initialFile?: jFileLittle;
|
|
6
|
+
allowCustomRatio?: boolean;
|
|
6
7
|
children(open: () => void, openCrop: () => void): ReactElement<HTMLElement>;
|
|
7
8
|
onUploadSuccess: (file: jFileLittle) => void;
|
|
9
|
+
onLoading?: (isLoading: boolean) => void;
|
|
8
10
|
};
|
|
9
|
-
export declare const EditorImageUpload: ({ token, children, initialFile, onUploadSuccess }: EditorImageUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const EditorImageUpload: ({ token, children, initialFile, onUploadSuccess, onLoading, allowCustomRatio, }: EditorImageUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const EditorInputCheckbox: ({ label, initialValue, options, onChange, }: {
|
|
1
|
+
export declare const EditorInputCheckbox: ({ label, initialValue, disabled, options, onChange, }: {
|
|
2
2
|
label: string;
|
|
3
3
|
initialValue: string[];
|
|
4
|
+
disabled?: boolean;
|
|
4
5
|
options: {
|
|
5
6
|
label: string;
|
|
6
7
|
value: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const EditorInputNumber: ({ label, initialValue, onChange, }: {
|
|
1
|
+
export declare const EditorInputNumber: ({ label, disabled, initialValue, onChange, }: {
|
|
2
2
|
label: string;
|
|
3
|
+
disabled?: boolean;
|
|
3
4
|
initialValue?: number;
|
|
4
5
|
onChange: (value: number) => void;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetArticleSliderContent } from 'jamespot-user-api';
|
|
2
|
-
export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, useDots, token, onChange, onSave, }: WidgetArticleSliderContent & {
|
|
2
|
+
export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, autoplay, delay, useDots, token, onChange, onSave, }: WidgetArticleSliderContent & {
|
|
3
3
|
token: string;
|
|
4
4
|
onSave: (content: Partial<WidgetArticleSliderContent>) => void;
|
|
5
5
|
onChange: (content: Partial<WidgetArticleSliderContent>, override?: boolean) => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jFileLittle } from 'jamespot-user-api';
|
|
2
|
-
import {
|
|
2
|
+
import { WidgetArticleSlideAttributes } from './types';
|
|
3
3
|
export declare const JRCWidgetArticleSliderEditorSlide: ({ forceOpen, title, text, opacityColor, opacityFilter, displayAs, backgroundSize, backgroundPosition, file, token, onUploadSuccess, onSave, onClickDelete, }: {
|
|
4
4
|
forceOpen?: boolean;
|
|
5
5
|
file?: jFileLittle;
|
|
6
6
|
token?: string;
|
|
7
7
|
onUploadStart: () => void;
|
|
8
8
|
onUploadSuccess: (response: jFileLittle) => void;
|
|
9
|
-
onSave: (slide: Partial<
|
|
9
|
+
onSave: (slide: Partial<WidgetArticleSlideAttributes>) => void;
|
|
10
10
|
onClickDelete: () => void;
|
|
11
|
-
} & Pick<
|
|
11
|
+
} & Pick<WidgetArticleSlideAttributes, "title" | "text" | "opacityColor" | "opacityFilter" | "displayAs" | "backgroundSize" | "backgroundPosition">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,11 @@ import { WidgetSliderSlide } from './types';
|
|
|
2
2
|
export type JRCWidgetSliderProps = {
|
|
3
3
|
slides: WidgetSliderSlide[];
|
|
4
4
|
maxWidth: number;
|
|
5
|
+
delay: number;
|
|
5
6
|
loop: boolean;
|
|
7
|
+
autoplay: boolean;
|
|
6
8
|
useDots?: boolean;
|
|
7
9
|
startAt?: number;
|
|
8
10
|
onClickSlide?: (index: number) => void;
|
|
9
11
|
};
|
|
10
|
-
export declare const JRCWidgetSlider: ({ slides, maxWidth, loop, useDots, startAt, onClickSlide, }: JRCWidgetSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const JRCWidgetSlider: ({ slides, autoplay, delay, maxWidth, loop, useDots, startAt, onClickSlide, }: JRCWidgetSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetArticleSlideAttributes } from '../types';
|
|
2
|
+
export declare const ArticleSliderImage: ({ initialUri, maxWidth, maxHeight, onClick, }: {
|
|
3
|
+
initialUri: string;
|
|
4
|
+
maxWidth: number;
|
|
5
|
+
maxHeight: number;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
} & Pick<WidgetArticleSlideAttributes, "displayAs" | "backgroundSize" | "backgroundPosition">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSBackgroundPosition, CSSBackgroundSize } from 'jamespot-user-api';
|
|
2
2
|
import { TVariants } from '../../JRCTypography/JRCTypography.d';
|
|
3
|
-
export type
|
|
3
|
+
export type WidgetArticleSlideAttributes = {
|
|
4
4
|
title: string;
|
|
5
5
|
text: string;
|
|
6
6
|
titleHeading?: TVariants;
|
|
@@ -12,3 +12,13 @@ export type WidgetSliderSlide = {
|
|
|
12
12
|
backgroundSize?: CSSBackgroundSize;
|
|
13
13
|
uri: string;
|
|
14
14
|
};
|
|
15
|
+
export type WidgetSliderSlideComponentProps = {
|
|
16
|
+
slide: WidgetArticleSlideAttributes;
|
|
17
|
+
maxWidth: number;
|
|
18
|
+
maxHeight: number;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
};
|
|
21
|
+
export type WidgetSliderSlide = {
|
|
22
|
+
component: React.ComponentType<WidgetSliderSlideComponentProps>;
|
|
23
|
+
attributes: WidgetArticleSlideAttributes;
|
|
24
|
+
};
|
|
@@ -172,6 +172,7 @@ export { JRCWidgetQuickSurvey } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQu
|
|
|
172
172
|
export { JRCWidgetQuickSurveyEditor } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor';
|
|
173
173
|
export { JRCWidgetArticleSliderEditor } from './Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor';
|
|
174
174
|
export { JRCWidgetSlider } from './Widgets/JRCWidgetSlider/JRCWidgetSlider';
|
|
175
|
+
export { ArticleSliderSlide } from './Widgets/JRCWidgetSlider/components/ArticleSliderSlide';
|
|
175
176
|
export { JRCWidgetSurveyDate } from './Widgets/JRCWidgetSurveyDate/JRCWidgetSurveyDate';
|
|
176
177
|
export { JRCWidgetDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor';
|
|
177
178
|
export { JRCWidgetExcelDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor';
|
|
@@ -389,6 +389,8 @@ declare const _default: {
|
|
|
389
389
|
"WIDGET_Quick_Survey_Reset": "Reset the survey answers",
|
|
390
390
|
"WIDGET_Quick_Survey_isStarted_no_modification": "The survey has already some answers, some modifications are not possible, if needed, please start a new survey.",
|
|
391
391
|
"WIDGET_Set_Widget": "Configurer",
|
|
392
|
+
"WIDGET_Slider_Autoplay": "Défilement automatique",
|
|
393
|
+
"WIDGET_Slider_Delay": "Délai de défilement",
|
|
392
394
|
"WIDGET_Survey_After_Help": "Respondents will only see the results once after they respond. They will no longer be able to edit their answer.",
|
|
393
395
|
"WIDGET_Survey_Anonymize_Help": "Les réponses de ce sondage seront anonymes : personne ne pourra savoir qui a répondu quoi, seulement les pourcentages.",
|
|
394
396
|
"WIDGET_Survey_Close_Survey": "Close the survey",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.50",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.js",
|
|
6
6
|
"module": "dist/jamespot-react-components.mjs",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"globals": "^16.5.0",
|
|
79
79
|
"html2canvas": "^1.4.1",
|
|
80
80
|
"husky": "^9.1.7",
|
|
81
|
-
"jamespot-user-api": "^1.3.
|
|
81
|
+
"jamespot-user-api": "^1.3.50",
|
|
82
82
|
"jest": "^30.2.0",
|
|
83
83
|
"jest-environment-jsdom": "^30.2.0",
|
|
84
84
|
"knip": "^5.82.1",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WidgetSliderSlide } from '../types';
|
|
2
|
-
export declare const SliderImage: ({ initialUri, maxWidth, maxHeight, onClick, }: {
|
|
3
|
-
initialUri: string;
|
|
4
|
-
maxWidth: number;
|
|
5
|
-
maxHeight: number;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
} & Pick<WidgetSliderSlide, "displayAs" | "backgroundSize" | "backgroundPosition">) => import("react/jsx-runtime").JSX.Element;
|