jamespot-react-components 1.0.212 → 1.0.213
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 +631 -620
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/JRCButton/JRCButton.d.ts +3 -0
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +1 -0
- package/build/src/components/JRCCommentsBloc/JRCComment.d.ts +11 -1
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +11 -1
- package/build/src/components/JRCDropDown/JRCDropDown.d.ts +1 -1
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ export type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy &
|
|
|
32
32
|
label?: string;
|
|
33
33
|
/** Disable margins **/
|
|
34
34
|
noMargin?: boolean;
|
|
35
|
+
size?: 'm' | 's';
|
|
35
36
|
};
|
|
36
37
|
export declare const transformColor: (color?: string) => JRCIconProps['color'];
|
|
37
38
|
/**
|
|
@@ -67,6 +68,7 @@ export declare const Button: import("styled-components").StyledComponent<"button
|
|
|
67
68
|
label?: string | undefined;
|
|
68
69
|
/** Disable margins **/
|
|
69
70
|
noMargin?: boolean | undefined;
|
|
71
|
+
size?: "s" | "m" | undefined;
|
|
70
72
|
} & DashedFocusBorderProps, never>;
|
|
71
73
|
export declare const JRCButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataCy & {
|
|
72
74
|
/** Color of the background of the button */
|
|
@@ -95,4 +97,5 @@ export declare const JRCButton: React.ForwardRefExoticComponent<Omit<React.Detai
|
|
|
95
97
|
label?: string | undefined;
|
|
96
98
|
/** Disable margins **/
|
|
97
99
|
noMargin?: boolean | undefined;
|
|
100
|
+
size?: "s" | "m" | undefined;
|
|
98
101
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -14,6 +14,7 @@ export declare const MarginLessJRCButton: import("styled-components").StyledComp
|
|
|
14
14
|
tooltip?: Omit<import("../..").JRCTooltipProps, "children"> | undefined;
|
|
15
15
|
label?: string | undefined;
|
|
16
16
|
noMargin?: boolean | undefined;
|
|
17
|
+
size?: "s" | "m" | undefined;
|
|
17
18
|
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, ButtonProps, never>;
|
|
18
19
|
export declare const MenuWithoutTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
20
|
export declare const MenuWithTitle: ({ direction, label, themeButton, children }: MenuWithTitleProps) => React.JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { DriveOrFilebank, JRCInputTinyMCERawProps } from 'types';
|
|
5
5
|
import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
|
|
6
|
+
import { JQuestionAnswerApi } from 'jamespot-user-api/lib/src/apis/questionAnswer/questionAnswer';
|
|
6
7
|
export type JRCCommentProps = {
|
|
7
8
|
isFocused: boolean;
|
|
8
9
|
comment: jCommentList;
|
|
@@ -30,7 +31,16 @@ export type JRCCommentProps = {
|
|
|
30
31
|
filebank: Pick<JFilebankApi, 'getBanks' | 'getFolders' | 'getDocuments'>;
|
|
31
32
|
file: Pick<JFileApi, 'copy'>;
|
|
32
33
|
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
34
|
+
questionAnswer: Pick<JQuestionAnswerApi, 'selectResponse' | 'unselectResponse'>;
|
|
33
35
|
};
|
|
36
|
+
socialQuestion?: {
|
|
37
|
+
isResolved: boolean;
|
|
38
|
+
responseId?: number;
|
|
39
|
+
onSelectResponse: (responseId: number) => void;
|
|
40
|
+
onUnselectResponse: () => void;
|
|
41
|
+
canSelectResponse: boolean;
|
|
42
|
+
};
|
|
43
|
+
articleId: number;
|
|
34
44
|
};
|
|
35
45
|
export declare const DropdownButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
36
|
-
export declare const JRCComment: ({ isFocused, comment, token, tinyMCEConfig, onCommentUpdate, onCommentDelete, fetchUser, fetchUserFields, fetchSocialActionUserList, removeAction, onError, highlightFields, userModel, userAccountStatus, isWedocActive, isWidgetActive, getAccessHash, onGetHashError, socialActionAdd, deleteFile, existingWidgetsWrapperComponent, activeDrives, handlers, }: JRCCommentProps) => React.JSX.Element;
|
|
46
|
+
export declare const JRCComment: ({ isFocused, comment, token, tinyMCEConfig, onCommentUpdate, onCommentDelete, fetchUser, fetchUserFields, fetchSocialActionUserList, removeAction, onError, highlightFields, userModel, userAccountStatus, isWedocActive, isWidgetActive, getAccessHash, onGetHashError, socialActionAdd, deleteFile, existingWidgetsWrapperComponent, activeDrives, handlers, socialQuestion, articleId, }: JRCCommentProps) => React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
5
5
|
import { DriveOrFilebank } from '../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
6
6
|
import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
|
|
7
|
+
import { JQuestionAnswerApi } from 'jamespot-user-api/lib/src/apis/questionAnswer/questionAnswer';
|
|
7
8
|
export type JRCCommentsBlocProps = {
|
|
8
9
|
comments?: jCommentList[];
|
|
9
10
|
initialCommentsNumber?: number;
|
|
@@ -38,7 +39,16 @@ export type JRCCommentsBlocProps = {
|
|
|
38
39
|
filebank: Pick<JFilebankApi, 'getBanks' | 'getFolders' | 'getDocuments'>;
|
|
39
40
|
file: Pick<JFileApi, 'copy'>;
|
|
40
41
|
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
42
|
+
questionAnswer: Pick<JQuestionAnswerApi, 'selectResponse' | 'unselectResponse'>;
|
|
41
43
|
};
|
|
44
|
+
socialQuestion?: {
|
|
45
|
+
isResolved: boolean;
|
|
46
|
+
responseId?: number;
|
|
47
|
+
onSelectResponse: (responseId: number) => void;
|
|
48
|
+
onUnselectResponse: () => void;
|
|
49
|
+
canSelectResponse: boolean;
|
|
50
|
+
};
|
|
51
|
+
articleId: number;
|
|
42
52
|
};
|
|
43
53
|
export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
44
|
-
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, socialActionAdd, variant, canComment, handlers, }: JRCCommentsBlocProps) => React.JSX.Element;
|
|
54
|
+
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, socialActionAdd, variant, canComment, handlers, socialQuestion, articleId, }: JRCCommentsBlocProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface JRCDropDownProps {
|
|
3
3
|
trigger: React.ReactNode;
|
|
4
|
-
dropdown: React.ReactNode;
|
|
4
|
+
dropdown: (collapseDropdown: () => void) => React.ReactNode;
|
|
5
5
|
align?: 'left' | 'right';
|
|
6
6
|
onToggle?: (isOpen: boolean) => void;
|
|
7
7
|
withBorder?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.213",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"chroma-js": "^2.1.1",
|
|
81
81
|
"classnames": "^2.3.1",
|
|
82
82
|
"dompurify": "^3.0.5",
|
|
83
|
-
"jamespot-user-api": "^1.0.
|
|
83
|
+
"jamespot-user-api": "^1.0.191",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|