jamespot-react-components 1.0.161 → 1.0.162
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 +544 -548
- package/build/jamespot-react-components.js.LICENSE.txt +0 -30
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE.d.ts +3 -2
- package/build/src/components/Form/Input/JRCInputTinyMCE/JRCTinyMCEFileUploadModal.d.ts +8 -0
- package/build/src/components/JRCCropImage/JRCCropImage.d.ts +8 -5
- package/build/src/index.d.ts +1 -0
- package/build/src/types.d.ts +1 -1
- package/package.json +3 -3
|
@@ -6,12 +6,13 @@ import { DataCy } from '../../../../types/dataAttributes';
|
|
|
6
6
|
declare global {
|
|
7
7
|
const tinymce: any;
|
|
8
8
|
}
|
|
9
|
-
export type
|
|
9
|
+
export type TinyMention = {
|
|
10
10
|
type: 'autocompleteitem';
|
|
11
11
|
value: string;
|
|
12
12
|
text: string;
|
|
13
13
|
icon?: string;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
|
+
export type MentionQuery = (query: string) => Promise<TinyMention[]>;
|
|
15
16
|
export type JRCInputTinyMCEProps = DataCy & {
|
|
16
17
|
token?: string;
|
|
17
18
|
commonOptions: TinyMCECommonOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type JRCTinyMCEFileUploadModalProps = {
|
|
3
|
+
closeHandler: () => void;
|
|
4
|
+
open: boolean;
|
|
5
|
+
token?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCTinyMCEFileUploadModal: ({ open, closeHandler, token }: JRCTinyMCEFileUploadModalProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Area as _Area, Point as _Point, Size as _Size } from 'react-easy-crop/types';
|
|
3
2
|
import { JRCModalProps } from '../JRCModal/templates/JRCModal.types';
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
|
|
3
|
+
import 'react-image-crop/dist/ReactCrop.css';
|
|
4
|
+
export type Area = {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
7
10
|
export type JRCCropImageProps = Pick<JRCModalProps, 'open' | 'closeHandler'> & {
|
|
8
11
|
aspectRatio?: number | undefined;
|
|
9
12
|
allowCustomRatio?: boolean;
|
|
@@ -13,4 +16,4 @@ export type JRCCropImageProps = Pick<JRCModalProps, 'open' | 'closeHandler'> & {
|
|
|
13
16
|
}) => void;
|
|
14
17
|
zIndex?: number;
|
|
15
18
|
};
|
|
16
|
-
export declare function JRCCropImage(props: JRCCropImageProps): React.JSX.Element;
|
|
19
|
+
export declare function JRCCropImage({ save, ...props }: JRCCropImageProps): React.JSX.Element;
|
package/build/src/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export { JRCTag } from './components/JRCTag/JRCTag';
|
|
|
136
136
|
export { JRCTemplateBase } from './components/Templates/JRCBase.template';
|
|
137
137
|
export { JRCTemplateTwoColumns } from './components/Templates/JRCTwoColumns.template';
|
|
138
138
|
export { JRCThemeProvider } from './components/JRCThemeProvider/JRCThemeProvider';
|
|
139
|
+
export { JRCTinyMCEFileUploadModal } from './components/Form/Input/JRCInputTinyMCE/JRCTinyMCEFileUploadModal';
|
|
139
140
|
export { JRCTinyMCEImageUploadModal } from './components/Form/Input/JRCInputTinyMCE/JRCTinyMCEImageUploadModal';
|
|
140
141
|
export { JRCTinyMCEVideoUploadModal } from './components/Form/Input/JRCInputTinyMCE/JRCTinyMCEVideoUploadModal';
|
|
141
142
|
export { JRCTooltip } from './components/JRCTooltip/JRCTooltip';
|
package/build/src/types.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export type { JRCTypographyProps } from './components/JRCTypography/JRCTypograph
|
|
|
78
78
|
export type { JRCValidationButtonProps } from './components/JRCButton/JRCValidationButton';
|
|
79
79
|
export type { JRCValueLabelProps } from './components/Form/Common/types';
|
|
80
80
|
export type { JRCWritableFormInputProps } from './components/Form/Input/JRCFormFieldRender';
|
|
81
|
-
export type { MentionQuery } from './components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE';
|
|
81
|
+
export type { MentionQuery, TinyMention } from './components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE';
|
|
82
82
|
export type { MessageType } from './components/Common/util/getColor.util';
|
|
83
83
|
export type { TextareaFormInputProps } from './components/Form/Input/JRCFormTextarea/JRCFormTextarea';
|
|
84
84
|
export type { ThemeConfigOptions, ThemeType } from './styles/theme';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.162",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
"chroma-js": "^2.1.1",
|
|
93
93
|
"classnames": "^2.3.1",
|
|
94
94
|
"dompurify": "^3.0.5",
|
|
95
|
-
"jamespot-user-api": "^1.0.
|
|
95
|
+
"jamespot-user-api": "^1.0.132",
|
|
96
96
|
"moment": "2.29.4",
|
|
97
97
|
"react": "^17.x",
|
|
98
98
|
"react-beautiful-dnd": "^13.1.1",
|
|
99
99
|
"react-dnd": "^14.0.4",
|
|
100
100
|
"react-dnd-html5-backend": "^14.0.2",
|
|
101
101
|
"react-dom": "^17.0.2",
|
|
102
|
-
"react-easy-crop": "^4.6.3",
|
|
103
102
|
"react-hook-form": "^7.25.0",
|
|
103
|
+
"react-image-crop": "^11.0.4",
|
|
104
104
|
"react-intl": "^5.8.6",
|
|
105
105
|
"react-redux": "^7.2.9",
|
|
106
106
|
"react-router-dom": "^6.2.1",
|