jamespot-react-components 1.0.225 → 1.0.227
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 +749 -743
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +1 -1
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.d.ts +1 -1
- package/build/src/components/JRCCropImage/JRCCropImage.d.ts +1 -0
- package/build/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +1 -1
- package/build/src/components/JRCIcon/JRCIcon.d.ts +2 -1
- package/build/src/components/Templates/template.type.d.ts +1 -0
- package/build/src/index.d.ts +2 -1
- package/build/src/utils/index.d.ts +53 -1
- package/build/src/utils/utils.form.d.ts +2 -0
- package/build/src/utils/utils.tinymce.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { JRCFormFieldRendererProps } from './JRCFormFieldRenderer.types';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare function JRCFormFieldRenderer<TFieldValues extends FieldValues = FieldValues>(props: JRCFormFieldRendererProps<TFieldValues>): React.JSX.Element;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
type FontAwesomeOptions = {
|
|
3
3
|
style?: 'solid' | 'regular' | 'brands';
|
|
4
4
|
};
|
|
5
|
+
type IconVariant = 'default' | 'circle' | 'square';
|
|
5
6
|
/**
|
|
6
7
|
* Props type for JRCIcon
|
|
7
8
|
* @property name string: Name of the icon (required)
|
|
@@ -17,7 +18,7 @@ export interface JRCIconProps {
|
|
|
17
18
|
/** Color */
|
|
18
19
|
color?: string;
|
|
19
20
|
/** background color */
|
|
20
|
-
variant?:
|
|
21
|
+
variant?: IconVariant;
|
|
21
22
|
/** Defined the icon's dimensions */
|
|
22
23
|
size?: number;
|
|
23
24
|
/** margin */
|
package/build/src/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export { JRCColumnCenter } from './components/JRCColumnCenter/JRCColumnCenter';
|
|
|
101
101
|
export { JRCColumnLeft } from './components/JRCColumnLeft/JRCColumnLeft';
|
|
102
102
|
export { JRCColumnRight } from './components/JRCColumnRight/JRCColumnRight';
|
|
103
103
|
export { JRCCommentsBloc } from './components/JRCCommentsBloc/JRCCommentsBloc';
|
|
104
|
+
export { JRCCropImage } from './components/JRCCropImage/JRCCropImage';
|
|
104
105
|
export { JRCDate } from './components/JRCDate/JRCDate';
|
|
105
106
|
export { JRCDisplayCard } from './components/JRCDisplayCard/JRCDisplayCard';
|
|
106
107
|
export { JRCDropDown } from './components/JRCDropDown/JRCDropDown';
|
|
@@ -200,4 +201,4 @@ export { JTinyMCEExtensionsBuilders } from './components/Form/Input/JRCInputTiny
|
|
|
200
201
|
*
|
|
201
202
|
*/
|
|
202
203
|
export * from './types';
|
|
203
|
-
export
|
|
204
|
+
export { Utils } from './utils';
|
|
@@ -10,4 +10,56 @@ import * as object from './utils.object';
|
|
|
10
10
|
import * as regexp from './utils.regexp';
|
|
11
11
|
import * as string from './utils.string';
|
|
12
12
|
import * as time from './utils.time';
|
|
13
|
-
export
|
|
13
|
+
export declare const Utils: {
|
|
14
|
+
array: typeof array;
|
|
15
|
+
color: typeof color;
|
|
16
|
+
date: typeof date;
|
|
17
|
+
document: typeof document;
|
|
18
|
+
file: typeof file;
|
|
19
|
+
icons: typeof icons;
|
|
20
|
+
image: typeof image;
|
|
21
|
+
misc: typeof misc;
|
|
22
|
+
object: typeof object;
|
|
23
|
+
regexp: typeof regexp;
|
|
24
|
+
string: typeof string;
|
|
25
|
+
time: typeof time;
|
|
26
|
+
tinymce: {
|
|
27
|
+
initTinyMCEOptions: (dynamicOptions: {
|
|
28
|
+
language: string;
|
|
29
|
+
cache_suffix: string;
|
|
30
|
+
toolbar: string;
|
|
31
|
+
content_css: string;
|
|
32
|
+
quickbars_selection_toolbar: string;
|
|
33
|
+
}) => {
|
|
34
|
+
height: number;
|
|
35
|
+
language: string;
|
|
36
|
+
cache_suffix: string;
|
|
37
|
+
toolbar: string;
|
|
38
|
+
content_css: string;
|
|
39
|
+
quickbars_selection_toolbar: string;
|
|
40
|
+
plugins: string[];
|
|
41
|
+
text_patterns: {
|
|
42
|
+
start: string;
|
|
43
|
+
end?: string | undefined;
|
|
44
|
+
format?: string | undefined;
|
|
45
|
+
cmd?: string | undefined;
|
|
46
|
+
}[];
|
|
47
|
+
menubar: boolean;
|
|
48
|
+
branding: boolean;
|
|
49
|
+
skin: string;
|
|
50
|
+
convert_urls: boolean;
|
|
51
|
+
invalid_elements: string;
|
|
52
|
+
extended_valid_elements: string;
|
|
53
|
+
custom_elements: string;
|
|
54
|
+
inline_boundaries_selector: string;
|
|
55
|
+
toolbar_mode: "scrolling" | "wrap" | "floating" | "sliding";
|
|
56
|
+
promotion: boolean;
|
|
57
|
+
font_size_formats: string;
|
|
58
|
+
contextmenu: string | false;
|
|
59
|
+
paste_data_images: boolean;
|
|
60
|
+
browser_spellcheck: boolean;
|
|
61
|
+
quickbars_insert_toolbar: boolean;
|
|
62
|
+
license_key: "gpl";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { TinyMCECommonOptions } from 'jamespot-user-api';
|
|
1
|
+
import { TinyMCECommonOptions, TinyMCEDynamicOptions } from 'jamespot-user-api';
|
|
2
|
+
export declare const initTinyMCEOptions: (dynamicOptions: TinyMCEDynamicOptions) => TinyMCECommonOptions;
|
|
2
3
|
export declare const tinyMCEOptions_mock: TinyMCECommonOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.227",
|
|
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.205",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|