jamespot-react-components 1.0.224 → 1.0.226
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 +757 -760
- 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/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.d.ts +1 -1
- package/build/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListItem.d.ts +1 -0
- package/build/src/components/Widgets/JRCWidgetPresence/JRCWidgetPresence.styles.d.ts +0 -1
- package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditorAddEntry.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyItemWrapper.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 */
|
|
@@ -9,6 +9,6 @@ export type JRCWidgetArticleTextProps = {
|
|
|
9
9
|
mode?: WidgetDisplayMode;
|
|
10
10
|
onChange: (text: string) => void;
|
|
11
11
|
additionalExtensions?: Array<TinyMCEExtension>;
|
|
12
|
-
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'
|
|
12
|
+
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'> & Partial<Pick<JRCInputTinyMCERawProps, 'tinymceScriptSrc'>>;
|
|
13
13
|
};
|
|
14
14
|
export declare const JRCWidgetArticleText: ({ text, autoFocus, token, mode, onChange, additionalExtensions, tinyMCECommonOptions, }: JRCWidgetArticleTextProps) => React.JSX.Element;
|
|
@@ -22,6 +22,7 @@ type JRCWidgetCheckListItemProps = {
|
|
|
22
22
|
handleRemoveUri: (idUri: number, idWidget: number) => void;
|
|
23
23
|
handleRemoveImage: (idWidget: number) => void;
|
|
24
24
|
handleAddImageWidget: (index: number, file: jFileLittle) => void;
|
|
25
|
+
handleNewItem: () => void;
|
|
25
26
|
};
|
|
26
27
|
export declare const JRCWidgetCheckListItem: FC<JRCWidgetCheckListItemProps>;
|
|
27
28
|
export {};
|
|
@@ -6,5 +6,4 @@ export declare const CSSWidgetPresenceEntry: import("styled-components").StyledC
|
|
|
6
6
|
export declare const CSSWidgetPresenceLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
7
|
isOn: boolean;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const CSSWidgetPresenceIsClosed: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
9
|
export declare const CSSWidgetPresenceAvatar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditorAddEntry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WidgetQuickSurveyContent } from 'jamespot-user-api';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const JRCWidgetQuickSurveyEditorAddEntry: ({ content,
|
|
3
|
+
export declare const JRCWidgetQuickSurveyEditorAddEntry: ({ content, handleNewItem, }: {
|
|
4
4
|
content: WidgetQuickSurveyContent;
|
|
5
|
-
|
|
5
|
+
handleNewItem: () => void;
|
|
6
6
|
}) => React.JSX.Element;
|
package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyItemWrapper.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ type JRCWidgetQuickSurveyWrapperItemProps = {
|
|
|
18
18
|
removeItem: (id: number) => void;
|
|
19
19
|
handleRemoveImage: (idWidget: number) => void;
|
|
20
20
|
handleAddImageWidget: (index: number, file: jFileLittle) => void;
|
|
21
|
+
handleNewItem: () => void;
|
|
21
22
|
};
|
|
22
23
|
export declare const JRCWidgetQuickSurveyWrapperItem: FC<JRCWidgetQuickSurveyWrapperItemProps>;
|
|
23
24
|
export {};
|
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.226",
|
|
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",
|