jamespot-react-components 1.0.138 → 1.0.140
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 +285 -274
- package/build/jamespot-react-components.js.LICENSE.txt +2 -0
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +2 -2
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.utils.d.ts +1 -1
- package/build/src/components/Form/Input/JRCInputRichText/JRCInputRichText.d.ts +2 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectList.d.ts +3 -1
- package/build/src/components/JRCFile/JRCFile.d.ts +0 -1
- package/build/src/components/JRCFile/JRCFileAvatar.d.ts +0 -1
- package/build/src/components/JRCHtml/JRCHtml.d.ts +4 -2
- package/build/src/components/JRCHtml/JRCHtml.test.d.ts +1 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/utils/utils.html.d.ts +2 -0
- package/build/src/utils/utils.html.test.d.ts +1 -0
- package/package.json +11 -9
- package/pnpm-lock.yaml +15494 -20728
|
@@ -3,14 +3,14 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
4
4
|
import { EventHandler, EventOrValueHandler } from 'redux-form';
|
|
5
5
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
6
|
-
import { FormRichTextFieldOptionsProps,
|
|
6
|
+
import { FormRichTextFieldOptionsProps, FormRichTextFieldToolbarProps } from '../JRCInputRichText/JRCInputRichText';
|
|
7
7
|
/**
|
|
8
8
|
* This component is used with redux-form (studio) and with react-hook-form!!
|
|
9
9
|
* @deprecated Split react-hook-form version in a dedicated component and use it instead
|
|
10
10
|
*/
|
|
11
11
|
export declare const MenuBar: ({ editor, toolbarOptions, isFixed, }: {
|
|
12
12
|
editor: Editor | null;
|
|
13
|
-
toolbarOptions:
|
|
13
|
+
toolbarOptions: FormRichTextFieldToolbarProps[] | '*';
|
|
14
14
|
isFixed: boolean;
|
|
15
15
|
}) => JSX.Element | null;
|
|
16
16
|
export declare type RichTextValue = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewValue<Value>(value: number[] | string[] | Value[] | undefined, optionValue: string | number | Value, checked: boolean): (string | number | Value)[]
|
|
1
|
+
export declare function getNewValue<Value>(value: number[] | string[] | Value[] | undefined, optionValue: string | number | Value, checked: boolean, defaultEmptyValue?: undefined | Value[]): (string | number | Value)[];
|
|
@@ -7,10 +7,10 @@ import { FieldValues } from 'react-hook-form/dist/types';
|
|
|
7
7
|
* validation props: required
|
|
8
8
|
* @returns JSX.Element
|
|
9
9
|
*/
|
|
10
|
-
export declare type
|
|
10
|
+
export declare type FormRichTextFieldToolbarProps = 'font-size' | 'text-color' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'list-ul' | 'list-ol' | 'align-left' | 'align-center' | 'align-right' | 'align-justify' | 'link' | 'undo' | 'redo';
|
|
11
11
|
export declare type FormRichTextFieldOptionsProps = {
|
|
12
12
|
richTextFixedToolbar: boolean;
|
|
13
|
-
richTextCustomToolbar: Array<
|
|
13
|
+
richTextCustomToolbar: Array<FormRichTextFieldToolbarProps>;
|
|
14
14
|
richTextHideCharactersCount: boolean;
|
|
15
15
|
richTextDefaultFontSize: string;
|
|
16
16
|
richTextFontSize?: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { JRCInputSelectProps } from './JRCInputSelect.types';
|
|
2
2
|
import { JRCModalProps } from 'components/JRCModal/JRCModal';
|
|
3
|
+
import { BaseAutocomplete } from 'jamespot-user-api';
|
|
3
4
|
export declare type JRCInputSelectListProps = JRCInputSelectProps & JRCModalProps & {
|
|
4
5
|
displayModal?: boolean;
|
|
6
|
+
setValues: (name: string, values: BaseAutocomplete[]) => void;
|
|
5
7
|
};
|
|
6
|
-
export declare const JRCInputSelectList: ({ asyncPromise, displayModal, inPlace, width, placeholder, ...props }: JRCInputSelectListProps) => JSX.Element;
|
|
8
|
+
export declare const JRCInputSelectList: ({ asyncPromise, displayModal, inPlace, width, placeholder, setValues, control, name, ...props }: JRCInputSelectListProps) => JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { LimitLinesProps } from '../Common/LimitLines';
|
|
2
3
|
export declare type JRCHtmlProps = LimitLinesProps & {
|
|
3
4
|
className?: string;
|
|
4
|
-
|
|
5
|
+
as?: React.ElementType | keyof JSX.IntrinsicElements;
|
|
6
|
+
__html: string | undefined;
|
|
5
7
|
};
|
|
6
|
-
export declare const JRCHtml: ({
|
|
8
|
+
export declare const JRCHtml: ({ __html, ...props }: JRCHtmlProps) => JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/src/index.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export { BETA_JRCDragAndDrop } from './components/Beta/BETA_JRCDragAndDrop/BETA_
|
|
|
56
56
|
export { JRCDropDown } from './components/JRCDropDown/JRCDropDown';
|
|
57
57
|
export { JRCEllipsis } from './components/JRCEllipsis/JRCEllipsis';
|
|
58
58
|
export { JRCFadeStepper } from './components/Stepper/JRCFadeStepper';
|
|
59
|
+
export { JRCFile } from './components/JRCFile/JRCFile';
|
|
60
|
+
export { JRCFileAvatar } from './components/JRCFile/JRCFileAvatar';
|
|
59
61
|
export { JRCFileOpen } from './components/JRCFileOpen/JRCFileOpen';
|
|
60
62
|
export { JRCFileViewer } from './components/JRCFileViewer/JRCFileViewer';
|
|
61
63
|
export { JRCFlexBox } from './components/JRCFlex/JRCFlexBox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.140",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@babel/preset-env": "^7.12.7",
|
|
32
32
|
"@babel/preset-react": "^7.12.7",
|
|
33
33
|
"@babel/preset-typescript": "^7.12.7",
|
|
34
|
-
"@storybook/addon-actions": "
|
|
35
|
-
"@storybook/addon-docs": "
|
|
36
|
-
"@storybook/addon-essentials": "
|
|
37
|
-
"@storybook/addon-links": "
|
|
38
|
-
"@storybook/builder-webpack5": "
|
|
39
|
-
"@storybook/manager-webpack5": "
|
|
40
|
-
"@storybook/react": "
|
|
34
|
+
"@storybook/addon-actions": "6.4.19",
|
|
35
|
+
"@storybook/addon-docs": "6.4.19",
|
|
36
|
+
"@storybook/addon-essentials": "6.4.19",
|
|
37
|
+
"@storybook/addon-links": "6.4.19",
|
|
38
|
+
"@storybook/builder-webpack5": "6.4.19",
|
|
39
|
+
"@storybook/manager-webpack5": "6.4.19",
|
|
40
|
+
"@storybook/react": "6.4.19",
|
|
41
41
|
"@testing-library/dom": "^8.11.0",
|
|
42
42
|
"@testing-library/jest-dom": "^5.12.0",
|
|
43
43
|
"@testing-library/react": "^12.1.2",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@testing-library/user-event": "^13.1.8",
|
|
46
46
|
"@types/chroma-js": "^2.1.3",
|
|
47
47
|
"@types/classnames": "^2.2.10",
|
|
48
|
+
"@types/dompurify": "^3.0.2",
|
|
48
49
|
"@types/jest": "^27.0.2",
|
|
49
50
|
"@types/node": "^20.3.1",
|
|
50
51
|
"@types/react": "^17.0.2",
|
|
@@ -105,7 +106,8 @@
|
|
|
105
106
|
"@tiptap/suggestion": "^2.0.3",
|
|
106
107
|
"chroma-js": "^2.1.1",
|
|
107
108
|
"classnames": "^2.3.1",
|
|
108
|
-
"
|
|
109
|
+
"dompurify": "^3.0.5",
|
|
110
|
+
"jamespot-user-api": "^1.0.110",
|
|
109
111
|
"moment": "^2.29.1",
|
|
110
112
|
"react": "^17.x",
|
|
111
113
|
"react-beautiful-dnd": "^13.1.1",
|