jamespot-react-components 1.2.50 → 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.
@@ -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.50",
3
+ "version": "1.2.52",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -19,15 +19,15 @@
19
19
  "@fullcalendar/timegrid": "^6.1.19",
20
20
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
21
21
  "@lcov-viewer/istanbul-report": "^1.4.0",
22
- "@storybook/addon-a11y": "^9.1.4",
22
+ "@storybook/addon-a11y": "^9.1.10",
23
23
  "@storybook/addon-coverage": "^2.0.0",
24
- "@storybook/addon-docs": "^9.1.4",
25
- "@storybook/addon-links": "^9.1.4",
26
- "@storybook/react-webpack5": "^9.1.4",
24
+ "@storybook/addon-docs": "^9.1.10",
25
+ "@storybook/addon-links": "^9.1.10",
26
+ "@storybook/react-webpack5": "^9.1.10",
27
27
  "@storybook/test-runner": "^0.23.0",
28
28
  "@storybook/testing-library": "^0.2.2",
29
29
  "@testing-library/dom": "^8.20.1",
30
- "@testing-library/jest-dom": "^6.8.0",
30
+ "@testing-library/jest-dom": "^6.9.1",
31
31
  "@testing-library/react": "^14.3.1",
32
32
  "@testing-library/react-hooks": "^5.1.3",
33
33
  "@testing-library/user-event": "^13.5.0",
@@ -35,8 +35,8 @@
35
35
  "@types/chroma-js": "^2.4.5",
36
36
  "@types/dompurify": "^3.2.0",
37
37
  "@types/jest": "^30.0.0",
38
- "@types/node": "^20.19.11",
39
- "@types/react": "^18.3.24",
38
+ "@types/node": "^20.19.19",
39
+ "@types/react": "^18.3.25",
40
40
  "@types/react-dom": "^18.3.7",
41
41
  "@types/react-redux": "^7.1.34",
42
42
  "@types/react-router-dom": "^5.3.3",
@@ -54,7 +54,7 @@
54
54
  "concurrently": "^9.2.1",
55
55
  "cross-env": "^6.0.3",
56
56
  "css-loader": "^6.11.0",
57
- "dompurify": "^3.2.6",
57
+ "dompurify": "^3.2.7",
58
58
  "eslint": "^8.57.1",
59
59
  "eslint-config-prettier": "^8.10.2",
60
60
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -68,21 +68,21 @@
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.50",
72
- "jest": "^30.1.2",
73
- "jest-environment-jsdom": "^30.1.2",
71
+ "jamespot-user-api": "^1.2.52",
72
+ "jest": "^30.2.0",
73
+ "jest-environment-jsdom": "^30.2.0",
74
74
  "jest-styled-components": "^7.2.0",
75
75
  "lint-staged": "^12.5.0",
76
76
  "nyc": "^17.1.0",
77
77
  "prettier": "^3.6.2",
78
78
  "react": "^18.3.1",
79
79
  "react-beautiful-dnd": "^13.1.1",
80
- "react-day-picker": "^9.8.1",
80
+ "react-day-picker": "^9.11.0",
81
81
  "react-dnd": "^14.0.5",
82
82
  "react-dnd-html5-backend": "^14.1.0",
83
83
  "react-dnd-test-backend": "^16.0.1",
84
84
  "react-dom": "^18.3.1",
85
- "react-hook-form": "^7.62.0",
85
+ "react-hook-form": "^7.64.0",
86
86
  "react-image-crop": "^11.0.10",
87
87
  "react-intl": "7.1.11",
88
88
  "react-qr-code": "^2.0.18",
@@ -97,18 +97,18 @@
97
97
  "redux-form": "^8.3.10",
98
98
  "slick-carousel": "^1.8.1",
99
99
  "source-map-loader": "^1.1.3",
100
- "storybook": "^9.1.4",
100
+ "storybook": "^9.1.10",
101
101
  "style-loader": "^1.3.0",
102
102
  "styled-components": "^5.3.11",
103
103
  "styled-reset": "^4.5.2",
104
104
  "tippy.js": "^6.3.7",
105
- "ts-jest": "^29.4.1",
105
+ "ts-jest": "^29.4.4",
106
106
  "ts-loader": "^9.5.4",
107
107
  "ts-node": "^10.9.2",
108
- "typescript": "^5.9.2",
108
+ "typescript": "^5.9.3",
109
109
  "uuid": "^10.0.0",
110
- "wait-on": "^8.0.4",
111
- "webpack": "^5.101.3",
110
+ "wait-on": "^8.0.5",
111
+ "webpack": "^5.102.0",
112
112
  "webpack-cli": "^4.10.0",
113
113
  "webpack-dev-server": "^4.15.2"
114
114
  },