jamespot-react-components 1.0.248 → 1.0.250
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 +300 -300
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputText/JRCInputPassword.d.ts +3 -3
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +6 -0
- package/build/src/components/JRCCommentsBloc/JRCComment.d.ts +1 -1
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +1 -1
- package/build/src/components/JRCList/JRCList.d.ts +1 -0
- package/build/src/components/JRCUserPopup/JRCUserPopup.d.ts +1 -2
- package/build/src/components/JRCUserStatusIcon/JRCUserStatusIcon.d.ts +7 -0
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +6 -6
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts +2 -2
- package/build/src/components/Widgets/context/hooks.d.ts +6 -6
- package/build/src/utils/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
|
-
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
|
+
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
5
5
|
export type JRCInputTextProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> & {
|
|
6
6
|
width?: string;
|
|
7
7
|
};
|
|
@@ -16,7 +16,7 @@ export declare const RenderPasswordInput: React.ForwardRefExoticComponent<DataCy
|
|
|
16
16
|
* @returns JSX.Element
|
|
17
17
|
*/
|
|
18
18
|
export declare function JRCInputPassword<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
|
|
19
|
-
|
|
19
|
+
autoComplete?: AutoCompletePassword;
|
|
20
20
|
width?: string;
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
}): React.JSX.Element;
|
|
@@ -4,9 +4,13 @@ import { DataCy } from '../../../../types/dataAttributes';
|
|
|
4
4
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
5
5
|
export type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
6
6
|
width?: string;
|
|
7
|
+
autocomplete?: 'on' | 'off';
|
|
8
|
+
inputmode?: 'text' | 'numeric';
|
|
7
9
|
};
|
|
8
10
|
export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
9
11
|
width?: string | undefined;
|
|
12
|
+
autocomplete?: "on" | "off" | undefined;
|
|
13
|
+
inputmode?: "text" | "numeric" | undefined;
|
|
10
14
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
11
15
|
/**
|
|
12
16
|
* Component used as a <input type="text"/>
|
|
@@ -17,6 +21,8 @@ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<
|
|
|
17
21
|
export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
|
|
18
22
|
width?: string;
|
|
19
23
|
disabled?: boolean;
|
|
24
|
+
autoComplete?: 'on' | 'off';
|
|
25
|
+
inputmode?: 'text' | 'numeric';
|
|
20
26
|
}): React.JSX.Element;
|
|
21
27
|
export type JRCInputNumberProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
22
28
|
width?: string;
|
|
@@ -6,7 +6,7 @@ import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
|
|
|
6
6
|
import { JQuestionAnswerApi } from 'jamespot-user-api/lib/src/apis/questionAnswer/questionAnswer';
|
|
7
7
|
export type JRCCommentProps = {
|
|
8
8
|
isFocused: boolean;
|
|
9
|
-
comment: CommentWithExtensions<jCommentList, ['actions'
|
|
9
|
+
comment: CommentWithExtensions<jCommentList, ['actions']> & {
|
|
10
10
|
pending?: boolean;
|
|
11
11
|
};
|
|
12
12
|
token?: string;
|
|
@@ -7,7 +7,7 @@ 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
8
|
import { TinyMCEExtension } from '../Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
|
|
9
9
|
export type JRCCommentsBlocProps = {
|
|
10
|
-
comments?: Array<CommentWithExtensions<jCommentList, ['actions'
|
|
10
|
+
comments?: Array<CommentWithExtensions<jCommentList, ['actions']> & {
|
|
11
11
|
pending?: boolean;
|
|
12
12
|
}>;
|
|
13
13
|
initialCommentsNumber?: number;
|
|
@@ -8,6 +8,5 @@ export type JRCUserPopupProps = {
|
|
|
8
8
|
user: Pick<JUserApi, 'get' | 'getFields'>;
|
|
9
9
|
};
|
|
10
10
|
children: ReactNode;
|
|
11
|
-
icon?: ReactNode;
|
|
12
11
|
};
|
|
13
|
-
export declare const JRCUserPopup: ({
|
|
12
|
+
export declare const JRCUserPopup: ({ children, uri, fetchBusinessNetworking, handlers, onError }: JRCUserPopupProps) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jUserLittle } from 'jamespot-user-api';
|
|
3
|
+
export type JRCUserStatusIconProps = {
|
|
4
|
+
user: jUserLittle;
|
|
5
|
+
isUserActive?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCUserStatusIcon: ({ user, isUserActive }: JRCUserStatusIconProps) => React.JSX.Element | null;
|
|
@@ -35,8 +35,8 @@ export declare const Primary: Story<{
|
|
|
35
35
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
36
36
|
uniqid: string;
|
|
37
37
|
content: {
|
|
38
|
-
limit?: number | boolean | undefined;
|
|
39
38
|
uri?: string | undefined;
|
|
39
|
+
limit?: number | boolean | undefined;
|
|
40
40
|
tableColumnsData?: {
|
|
41
41
|
name?: string | undefined;
|
|
42
42
|
label?: string | undefined;
|
|
@@ -82,19 +82,19 @@ export declare const Primary: Story<{
|
|
|
82
82
|
url?: string | undefined;
|
|
83
83
|
}>)>[] | undefined;
|
|
84
84
|
} & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | import("jamespot-user-api").WidgetArticleSliderContent | {
|
|
85
|
-
target?: string | undefined;
|
|
86
85
|
text?: string | undefined;
|
|
87
86
|
color?: string | undefined;
|
|
88
87
|
url?: string | undefined;
|
|
88
|
+
target?: string | undefined;
|
|
89
|
+
variant?: "contained" | "outlined" | undefined;
|
|
89
90
|
backgroundColor?: string | undefined;
|
|
90
91
|
borderRadius?: string | undefined;
|
|
91
92
|
fontSize?: string | undefined;
|
|
92
93
|
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
93
|
-
variant?: "contained" | "outlined" | undefined;
|
|
94
94
|
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
95
95
|
openingTypeLink?: {
|
|
96
|
-
target: string;
|
|
97
96
|
url: string;
|
|
97
|
+
target: string;
|
|
98
98
|
} | undefined;
|
|
99
99
|
openingTypeAnchor?: {
|
|
100
100
|
uniqid: string;
|
|
@@ -109,8 +109,8 @@ export declare const Primary: Story<{
|
|
|
109
109
|
css?: Record<string, string> | undefined;
|
|
110
110
|
edit?: boolean | undefined;
|
|
111
111
|
} | {
|
|
112
|
-
limit?: number | boolean | undefined;
|
|
113
112
|
uri?: string | undefined;
|
|
113
|
+
limit?: number | boolean | undefined;
|
|
114
114
|
tableColumnsData?: {
|
|
115
115
|
name?: string | undefined;
|
|
116
116
|
label?: string | undefined;
|
|
@@ -128,8 +128,8 @@ export declare const Primary: Story<{
|
|
|
128
128
|
tableSizedColumns?: boolean | undefined;
|
|
129
129
|
tableSizedColumnsWidth?: number | undefined;
|
|
130
130
|
} | {
|
|
131
|
-
limit?: number | boolean | undefined;
|
|
132
131
|
uri?: string | undefined;
|
|
132
|
+
limit?: number | boolean | undefined;
|
|
133
133
|
tableColumnsData?: {
|
|
134
134
|
name?: string | undefined;
|
|
135
135
|
label?: string | undefined;
|
|
@@ -13,8 +13,8 @@ export type WidgetDatasourceContext = EditorBaseContext<WidgetDatasourceTableCon
|
|
|
13
13
|
handlers: WidgetDatasourceHandlers;
|
|
14
14
|
};
|
|
15
15
|
export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, hook, handlers, onChange, onSave, onStateChange, onError, }: {
|
|
16
|
-
limit?: number | boolean | undefined;
|
|
17
16
|
uri?: string | undefined;
|
|
17
|
+
limit?: number | boolean | undefined;
|
|
18
18
|
tableColumnsData?: {
|
|
19
19
|
name?: string | undefined;
|
|
20
20
|
label?: string | undefined;
|
|
@@ -38,8 +38,8 @@ export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadCol
|
|
|
38
38
|
isActive: HookIsActive;
|
|
39
39
|
};
|
|
40
40
|
} & WidgetEditorActions<{
|
|
41
|
-
limit?: number | boolean | undefined;
|
|
42
41
|
uri?: string | undefined;
|
|
42
|
+
limit?: number | boolean | undefined;
|
|
43
43
|
tableColumnsData?: {
|
|
44
44
|
name?: string | undefined;
|
|
45
45
|
label?: string | undefined;
|
package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export type WidgetExcelDatasourceContext = EditorBaseContext<WidgetExcelDatasour
|
|
|
13
13
|
handlers: WidgetExcelDatasourceHandlers;
|
|
14
14
|
};
|
|
15
15
|
export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableSizedColumns, tableSizedColumnsWidth, tableBorderRadius, hook, handlers, onChange, onSave, onStateChange, onError, }: {
|
|
16
|
-
limit?: number | boolean | undefined;
|
|
17
16
|
uri?: string | undefined;
|
|
17
|
+
limit?: number | boolean | undefined;
|
|
18
18
|
tableColumnsData?: {
|
|
19
19
|
name?: string | undefined;
|
|
20
20
|
label?: string | undefined;
|
|
@@ -38,8 +38,8 @@ export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHe
|
|
|
38
38
|
isActive: HookIsActive;
|
|
39
39
|
};
|
|
40
40
|
} & WidgetEditorActions<{
|
|
41
|
-
limit?: number | boolean | undefined;
|
|
42
41
|
uri?: string | undefined;
|
|
42
|
+
limit?: number | boolean | undefined;
|
|
43
43
|
tableColumnsData?: {
|
|
44
44
|
name?: string | undefined;
|
|
45
45
|
label?: string | undefined;
|
|
@@ -29,8 +29,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
29
29
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
30
30
|
uniqid: string;
|
|
31
31
|
content: {
|
|
32
|
-
limit?: number | boolean | undefined;
|
|
33
32
|
uri?: string | undefined;
|
|
33
|
+
limit?: number | boolean | undefined;
|
|
34
34
|
tableColumnsData?: {
|
|
35
35
|
name?: string | undefined;
|
|
36
36
|
label?: string | undefined;
|
|
@@ -76,19 +76,19 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
76
76
|
url?: string | undefined;
|
|
77
77
|
}>)>[] | undefined;
|
|
78
78
|
} & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | {
|
|
79
|
-
target?: string | undefined;
|
|
80
79
|
text?: string | undefined;
|
|
81
80
|
color?: string | undefined;
|
|
82
81
|
url?: string | undefined;
|
|
82
|
+
target?: string | undefined;
|
|
83
|
+
variant?: "contained" | "outlined" | undefined;
|
|
83
84
|
backgroundColor?: string | undefined;
|
|
84
85
|
borderRadius?: string | undefined;
|
|
85
86
|
fontSize?: string | undefined;
|
|
86
87
|
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
87
|
-
variant?: "contained" | "outlined" | undefined;
|
|
88
88
|
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
89
89
|
openingTypeLink?: {
|
|
90
|
-
target: string;
|
|
91
90
|
url: string;
|
|
91
|
+
target: string;
|
|
92
92
|
} | undefined;
|
|
93
93
|
openingTypeAnchor?: {
|
|
94
94
|
uniqid: string;
|
|
@@ -103,8 +103,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
103
103
|
css?: Record<string, string> | undefined;
|
|
104
104
|
edit?: boolean | undefined;
|
|
105
105
|
} | {
|
|
106
|
-
limit?: number | boolean | undefined;
|
|
107
106
|
uri?: string | undefined;
|
|
107
|
+
limit?: number | boolean | undefined;
|
|
108
108
|
tableColumnsData?: {
|
|
109
109
|
name?: string | undefined;
|
|
110
110
|
label?: string | undefined;
|
|
@@ -122,8 +122,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
122
122
|
tableSizedColumns?: boolean | undefined;
|
|
123
123
|
tableSizedColumnsWidth?: number | undefined;
|
|
124
124
|
} | {
|
|
125
|
-
limit?: number | boolean | undefined;
|
|
126
125
|
uri?: string | undefined;
|
|
126
|
+
limit?: number | boolean | undefined;
|
|
127
127
|
tableColumnsData?: {
|
|
128
128
|
name?: string | undefined;
|
|
129
129
|
label?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.250",
|
|
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.224",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|