jamespot-react-components 1.2.51 → 1.2.52
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 +349 -343
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +3 -1
- package/build/src/components/JRCCommentsBloc/JRCComment.d.ts +3 -2
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +3 -2
- package/build/src/components/JRCQuarantineFiles/JRCQuarantineFiles.d.ts +9 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ControllerRenderProps, FieldValues, RegisterOptions, UseControllerProps } from 'react-hook-form';
|
|
2
|
+
import { ControllerRenderProps, FieldValues, Path, PathValue, RegisterOptions, UseControllerProps } from 'react-hook-form';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { JRCTooltipProps } from '../../../JRCTooltip/types';
|
|
5
5
|
import { FormControls, JRCFormControls } from './useFormControls';
|
|
@@ -42,6 +42,7 @@ export type JRCFormFieldRendererProps<T extends FieldValues = FieldValues> = Fie
|
|
|
42
42
|
width?: string | undefined;
|
|
43
43
|
readOnly?: boolean;
|
|
44
44
|
noLabel?: boolean;
|
|
45
|
+
fieldDefaultValue?: PathValue<T, Path<T>>;
|
|
45
46
|
srOnly?: string;
|
|
46
47
|
id?: string;
|
|
47
48
|
};
|
|
@@ -56,6 +57,7 @@ export type JRCInputFieldProps<T extends FieldValues = FieldValues> = FieldRende
|
|
|
56
57
|
width?: string | undefined;
|
|
57
58
|
readOnly?: boolean;
|
|
58
59
|
noLabel?: boolean;
|
|
60
|
+
fieldDefaultValue?: PathValue<T, Path<T>>;
|
|
59
61
|
srOnly?: string;
|
|
60
62
|
id?: string;
|
|
61
63
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CommentWithExtensions, JDriveApi, JFileApi, JGlobalApi, JQuestionAnswerApi, JUserApi, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jCommentList } from 'jamespot-user-api';
|
|
1
|
+
import { CommentWithExtensions, JDriveApi, JFileApi, JFileIntegrity, JGlobalApi, JQuestionAnswerApi, JUserApi, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jCommentList } from 'jamespot-user-api';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DriveOrFilebank } from '../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
4
4
|
import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
5
5
|
import { FoldersHandlers } from '../JRCFolders/types';
|
|
6
6
|
export type JRCCommentProps = {
|
|
7
7
|
isFocused: boolean;
|
|
8
|
-
comment: CommentWithExtensions<jCommentList, ['actions']> & {
|
|
8
|
+
comment: CommentWithExtensions<jCommentList, ['actions', 'quarantine']> & {
|
|
9
9
|
pending?: boolean;
|
|
10
10
|
};
|
|
11
11
|
token?: string;
|
|
@@ -24,6 +24,7 @@ export type JRCCommentProps = {
|
|
|
24
24
|
activeDrives: DriveOrFilebank[];
|
|
25
25
|
handlers: FoldersHandlers & {
|
|
26
26
|
file: Pick<JFileApi, 'copy'>;
|
|
27
|
+
fileIntegrity: Pick<JFileIntegrity, 'getCommentQuarantines'>;
|
|
27
28
|
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
28
29
|
user: Pick<JUserApi, 'get' | 'getFields'>;
|
|
29
30
|
global: Pick<JGlobalApi, 'addAction' | 'removeAction' | 'getUsers'>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AddCommentParams, CommentWithExtensions, JDriveApi, JFileApi, JGlobalApi, JQuestionAnswerApi, JUserApi, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jCommentList, jUserList } from 'jamespot-user-api';
|
|
1
|
+
import { AddCommentParams, CommentWithExtensions, JDriveApi, JFileApi, JGlobalApi, JQuestionAnswerApi, JUserApi, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jCommentList, jUserList, JFileIntegrity } from 'jamespot-user-api';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DriveOrFilebank } from '../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
4
4
|
import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
5
5
|
import { FoldersHandlers } from '../JRCFolders/types';
|
|
6
6
|
import { TinyMCEExtension } from '../Form/Input/JRCInputTinyMCERaw/types';
|
|
7
7
|
export type JRCCommentsBlocProps = {
|
|
8
|
-
comments?: Array<CommentWithExtensions<jCommentList, ['actions']> & {
|
|
8
|
+
comments?: Array<CommentWithExtensions<jCommentList, ['actions', 'quarantine']> & {
|
|
9
9
|
pending?: boolean;
|
|
10
10
|
}>;
|
|
11
11
|
initialCommentsNumber?: number;
|
|
@@ -32,6 +32,7 @@ export type JRCCommentsBlocProps = {
|
|
|
32
32
|
canComment: boolean;
|
|
33
33
|
handlers: FoldersHandlers & {
|
|
34
34
|
file: Pick<JFileApi, 'copy' | 'deleteFile'>;
|
|
35
|
+
fileIntegrity: Pick<JFileIntegrity, 'getCommentQuarantines'>;
|
|
35
36
|
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
36
37
|
user: Pick<JUserApi, 'get' | 'getFields'>;
|
|
37
38
|
global: Pick<JGlobalApi, 'addAction' | 'removeAction' | 'getUsers'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiWrapper, ArticleWithExtensions, jQuarantineList } from 'jamespot-user-api';
|
|
2
|
+
type JRCQuarantineFilesProps = {
|
|
3
|
+
count: number;
|
|
4
|
+
commentId: number;
|
|
5
|
+
load: (commentId: number) => Promise<ApiWrapper<ArticleWithExtensions<jQuarantineList, ['attachments']>[]>>;
|
|
6
|
+
onError?: (message?: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const JRCQuarantineFiles: ({ count, commentId, load, onError }: JRCQuarantineFilesProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"html-webpack-plugin": "^5.6.4",
|
|
69
69
|
"husky": "^7.0.4",
|
|
70
70
|
"identity-obj-proxy": "^3.0.0",
|
|
71
|
-
"jamespot-user-api": "^1.2.
|
|
71
|
+
"jamespot-user-api": "^1.2.52",
|
|
72
72
|
"jest": "^30.2.0",
|
|
73
73
|
"jest-environment-jsdom": "^30.2.0",
|
|
74
74
|
"jest-styled-components": "^7.2.0",
|