jamespot-react-components 1.0.170 → 1.0.172
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/build/jamespot-react-components.js +602 -618
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +2 -0
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +1 -0
- package/build/src/components/JRCAttachments/JRCAttachments.d.ts +9 -1
- package/build/src/components/JRCCommentsBloc/JRCComment.d.ts +4 -1
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +4 -1
- package/build/src/components/JRCFile/types.d.ts +1 -0
- package/build/src/components/JRCFileViewer/JRCFileViewer.d.ts +1 -1
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.d.ts +1 -0
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +6 -2
- package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts +5 -2
- package/build/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor.d.ts +1 -1
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ type CheckboxOption<TFieldValues> = {
|
|
|
8
8
|
value: string | number | TFieldValues;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
recommended?: boolean;
|
|
11
|
+
description?: string;
|
|
11
12
|
};
|
|
12
13
|
export type CheckboxProps<TFieldValues> = DataCy & {
|
|
13
14
|
disabled?: boolean;
|
|
@@ -30,6 +31,7 @@ export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues>
|
|
|
30
31
|
value: TFieldValues | TFieldValues[];
|
|
31
32
|
};
|
|
32
33
|
export declare const ReadOnlyUl: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
34
|
+
export declare const StyledDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
33
35
|
export declare const JRCInputCheckboxRaw: <T extends FieldValues = FieldValues>(props: NativeCheckboxProps<T>) => JSX.Element;
|
|
34
36
|
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
|
|
35
37
|
export declare namespace JRCInputCheckbox {
|
|
@@ -7,6 +7,7 @@ export type CheckboxOption<TFieldValues extends FieldValues = FieldValues> = {
|
|
|
7
7
|
label: string | JSX.Element;
|
|
8
8
|
value: CheckboxValue<TFieldValues>;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
description?: string;
|
|
10
11
|
};
|
|
11
12
|
export type InnerProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
12
13
|
disabled?: boolean;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { jFileLittle } from 'jamespot-user-api';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
export type WedocAttachmentOptions = {
|
|
4
|
+
active: boolean;
|
|
5
|
+
getAccessHash?: (fileId: number) => Promise<string>;
|
|
6
|
+
onError: (message?: string) => void;
|
|
7
|
+
};
|
|
3
8
|
export type JRCAttachmentsProps = {
|
|
4
9
|
files: jFileLittle[];
|
|
10
|
+
isWedocActive: boolean;
|
|
11
|
+
getAccessHash?: (fileId: number) => Promise<string>;
|
|
12
|
+
onError: (message?: string) => void;
|
|
5
13
|
};
|
|
6
|
-
export declare const JRCAttachments: ({ files }: JRCAttachmentsProps) => React.JSX.Element;
|
|
14
|
+
export declare const JRCAttachments: ({ files, isWedocActive, getAccessHash, onError }: JRCAttachmentsProps) => React.JSX.Element;
|
|
@@ -22,6 +22,9 @@ export type JRCCommentProps = {
|
|
|
22
22
|
highlightFields?: string[];
|
|
23
23
|
userAccountStatus?: 0 | 1;
|
|
24
24
|
userModel?: Model;
|
|
25
|
+
isWedocActive: boolean;
|
|
26
|
+
getAccessHash?: (fileId: number) => Promise<string>;
|
|
27
|
+
onGetHashError: (message?: string) => void;
|
|
25
28
|
};
|
|
26
29
|
export declare const DropdownButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
27
|
-
export declare const JRCComment: ({ isFocused, comment, token, tinyMCEConfig, onCommentUpdate, onCommentDelete, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, addAction, removeAction, onError, highlightFields, userModel, userAccountStatus, }: JRCCommentProps) => React.JSX.Element;
|
|
30
|
+
export declare const JRCComment: ({ isFocused, comment, token, tinyMCEConfig, onCommentUpdate, onCommentDelete, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, addAction, removeAction, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, }: JRCCommentProps) => React.JSX.Element;
|
|
@@ -25,6 +25,9 @@ export type JRCCommentsBlocProps = {
|
|
|
25
25
|
highlightFields?: string[];
|
|
26
26
|
userModel?: Model;
|
|
27
27
|
userAccountStatus?: 0 | 1;
|
|
28
|
+
isWedocActive: boolean;
|
|
29
|
+
getAccessHash?: (fileId: number) => Promise<string>;
|
|
30
|
+
onGetHashError: (message?: string) => void;
|
|
28
31
|
};
|
|
29
32
|
export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
30
|
-
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, addLike, removeLike, onError, highlightFields, userModel, userAccountStatus, }: JRCCommentsBlocProps) => React.JSX.Element;
|
|
33
|
+
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, addLike, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, }: JRCCommentsBlocProps) => React.JSX.Element;
|
|
@@ -11,5 +11,6 @@ export type JRCSidePanelModalProps = {
|
|
|
11
11
|
enableClickAwayCloseModal?: boolean;
|
|
12
12
|
position: 'left' | 'right';
|
|
13
13
|
footer?: ReactNode;
|
|
14
|
+
removePadding?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export declare const JRCSidePanelModal: React.ForwardRefExoticComponent<JRCSidePanelModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,11 @@ export declare const JRCModalBox: import("styled-components").StyledComponent<"d
|
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const JRCModalContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
|
-
|
|
8
|
+
export declare const JRCModalContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
|
+
removePadding?: boolean | undefined;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const JRCModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
12
|
+
removePadding?: boolean | undefined;
|
|
13
|
+
}, never>;
|
|
10
14
|
export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
15
|
export declare const JRCModalClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WidgetArticleAttachmentContent } from 'jamespot-user-api';
|
|
3
|
-
export declare const CSSWidgetAttachment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
-
|
|
3
|
+
export declare const CSSWidgetAttachment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
+
inline?: boolean | undefined;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const JRCWidgetArticleAttachment: ({ files, onClick, inline, }: WidgetArticleAttachmentContent & {
|
|
5
7
|
onClick: (idFile: number) => void;
|
|
8
|
+
inline?: boolean | undefined;
|
|
6
9
|
}) => React.JSX.Element;
|
|
@@ -15,8 +15,8 @@ export declare const EditorSlide: ({ forceOpen, title, text, displayAs, backgrou
|
|
|
15
15
|
title: string;
|
|
16
16
|
type: string;
|
|
17
17
|
id: number;
|
|
18
|
-
mainType: string;
|
|
19
18
|
uri: string;
|
|
19
|
+
mainType: string;
|
|
20
20
|
dateCreation: string;
|
|
21
21
|
_url: string;
|
|
22
22
|
dateModified: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.172",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"chroma-js": "^2.1.1",
|
|
93
93
|
"classnames": "^2.3.1",
|
|
94
94
|
"dompurify": "^3.0.5",
|
|
95
|
-
"jamespot-user-api": "^1.0.
|
|
95
|
+
"jamespot-user-api": "^1.0.143",
|
|
96
96
|
"moment": "2.29.4",
|
|
97
97
|
"react": "^17.x",
|
|
98
98
|
"react-beautiful-dnd": "^13.1.1",
|