jamespot-react-components 1.0.228 → 1.0.229
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 +360 -351
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.d.ts +0 -5
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextareaRaw.d.ts +8 -0
- package/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions.d.ts +1 -0
- package/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/MarkdownExtension/MarkdownExtension.d.ts +4 -0
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +3 -1
- package/build/src/components/JRCCommentsBloc/components/NewComment.d.ts +3 -1
- package/build/src/index.d.ts +1 -0
- package/build/src/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3,11 +3,6 @@ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
5
|
export type JRCInputTextareaProps = DataCy & React.ComponentPropsWithoutRef<'textarea'>;
|
|
6
|
-
export declare const StyledTextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, DataCy & {
|
|
7
|
-
error?: boolean | undefined;
|
|
8
|
-
valid?: boolean | undefined;
|
|
9
|
-
readOnly?: boolean | undefined;
|
|
10
|
-
}, never>;
|
|
11
6
|
/**
|
|
12
7
|
* Component used as a <input type="text"/>
|
|
13
8
|
* @param props JRCInputFieldProps
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataCy } from '../../../../types/dataAttributes';
|
|
2
|
+
export declare const JRCInputTextareaRaw: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, {
|
|
3
|
+
height?: string | undefined;
|
|
4
|
+
} & DataCy & {
|
|
5
|
+
error?: boolean | undefined;
|
|
6
|
+
valid?: boolean | undefined;
|
|
7
|
+
readOnly?: boolean | undefined;
|
|
8
|
+
}, "height">;
|
package/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ export interface TinyMCEExtensionBuilder<T extends Array<any>> {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const JTinyMCEExtensionsBuilders: {
|
|
9
9
|
readonly jia: TinyMCEExtensionBuilder<[import("./JIAExtension/JIATextGenerationExtension").TextGenerationCapabilities, import("react-intl").IntlShape]>;
|
|
10
|
+
readonly markdown: TinyMCEExtensionBuilder<[(editor: Editor) => void, import("react-intl").IntlShape]>;
|
|
10
11
|
};
|
|
@@ -5,6 +5,7 @@ import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInp
|
|
|
5
5
|
import { DriveOrFilebank } from '../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
6
6
|
import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
|
|
7
7
|
import { JQuestionAnswerApi } from 'jamespot-user-api/lib/src/apis/questionAnswer/questionAnswer';
|
|
8
|
+
import { TinyMCEExtension } from '../Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
|
|
8
9
|
export type JRCCommentsBlocProps = {
|
|
9
10
|
comments?: jCommentList[];
|
|
10
11
|
initialCommentsNumber?: number;
|
|
@@ -45,6 +46,7 @@ export type JRCCommentsBlocProps = {
|
|
|
45
46
|
canSelectResponse: boolean;
|
|
46
47
|
};
|
|
47
48
|
articleId: number;
|
|
49
|
+
additionalExtensions: Array<TinyMCEExtension>;
|
|
48
50
|
};
|
|
49
51
|
export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
50
|
-
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, variant, canComment, handlers, socialQuestion, articleId, }: JRCCommentsBlocProps) => React.JSX.Element;
|
|
52
|
+
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, variant, canComment, handlers, socialQuestion, articleId, additionalExtensions, }: JRCCommentsBlocProps) => React.JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { DriveOrFilebank } from '../../Form/Input/JRCInputFileAdvanced/JRCInputF
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { AddCommentParams, JFileApi, JFilebankApi, jUserList } from 'jamespot-user-api';
|
|
5
5
|
import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
|
|
6
|
+
import { TinyMCEExtension } from '../../Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
|
|
6
7
|
export type NewCommentProps = {
|
|
7
8
|
currentUser: jUserList;
|
|
8
9
|
widgetListComponent: React.ReactNode;
|
|
@@ -22,5 +23,6 @@ export type NewCommentProps = {
|
|
|
22
23
|
isWidgetActive?: boolean;
|
|
23
24
|
socialQuestion?: boolean;
|
|
24
25
|
deleteFile?: (id: number) => Promise<void>;
|
|
26
|
+
additionalExtensions: Array<TinyMCEExtension>;
|
|
25
27
|
};
|
|
26
|
-
export declare const NewComment: ({ newWidgetsWrapperComponent, widgetListComponent, canComment, loading, currentUser, onComment, onError, tinyMCEConfig, token, handlers, activeDrives, isWidgetActive, socialQuestion, deleteFile, }: NewCommentProps) => React.JSX.Element;
|
|
28
|
+
export declare const NewComment: ({ newWidgetsWrapperComponent, widgetListComponent, canComment, loading, currentUser, onComment, onError, tinyMCEConfig, token, handlers, activeDrives, isWidgetActive, socialQuestion, deleteFile, additionalExtensions, }: NewCommentProps) => React.JSX.Element;
|
package/build/src/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export { JRCInputNumber, JRCInputText } from './components/Form/Input/JRCInputTe
|
|
|
71
71
|
export { JRCInputTextIconButton } from './components/Form/Input/JRCInputText/JRCInputTextIconButton';
|
|
72
72
|
export { JRCInputTextRaw } from './components/Form/Input/JRCInputTextRaw/JRCInputTextRaw';
|
|
73
73
|
export { JRCInputTextarea } from './components/Form/Input/JRCInputTextarea/JRCInputTextarea';
|
|
74
|
+
export { JRCInputTextareaRaw } from './components/Form/Input/JRCInputTextarea/JRCInputTextareaRaw';
|
|
74
75
|
export { JRCInputTime } from './components/Form/Input/JRCInputTime/JRCInputTime';
|
|
75
76
|
export { JRCInputTinyMCE } from './components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE';
|
|
76
77
|
export { JRCInputTinyMCERaw } from './components/Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
package/build/src/types.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export type { JRCTemplateTwoColumnsProps } from './components/Templates/JRCTwoCo
|
|
|
84
84
|
export type { JRCAppColumnProps, JRCAppTabsProps, JRCColumnProps, JRCContainerProps, JRCMainColumnProps, JRCTabEntry, LayoutMode, TabEventProps, } from './components/Templates/template.type';
|
|
85
85
|
export type { JRCWidgetCheckListEntries } from './components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
|
|
86
86
|
export type { ThemeConfigOptions, ThemeType } from './styles/theme';
|
|
87
|
+
export type { Editor } from 'tinymce';
|
|
87
88
|
/****
|
|
88
89
|
*
|
|
89
90
|
* PLEASE RESPECT ALPHABETICAL ORDER
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.229",
|
|
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.206",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|