jamespot-react-core 1.1.169 → 1.1.171
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/{241.bundle.js → 823.bundle.js} +87 -88
- package/build/823.bundle.js.map +1 -0
- package/build/app.bundle.js +201 -201
- package/build/app.bundle.js.map +1 -1
- package/build/src/components/comments/CommentsBloc.styles.d.ts +1 -0
- package/build/src/components/comments/CommentsBlocAddCommentWidgetsWrapper.d.ts +5 -0
- package/build/src/components/comments/CommentsBlocCommentWidgetsWrapper.d.ts +11 -0
- package/build/src/components/widgets/Widget.d.ts +1 -12
- package/build/src/components/widgets/WidgetWrapperCore.d.ts +1 -4
- package/build/src/components/widgets/wrapper/JRCWidgetCheckListWrapper.d.ts +1 -4
- package/build/src/components/widgets/wrapper/components/{WidgetViewFooterActions.d.ts → WidgetFooterView.d.ts} +5 -4
- package/build/src/components/widgets/wrapper/components/WidgetHeaderEdit.d.ts +11 -0
- package/build/src/components/widgets/wrapper/components/WidgetTitle.d.ts +5 -0
- package/build/src/components/widgets/wrapper/components/WidgetTitleEdit.d.ts +4 -0
- package/build/src/components/widgets/wrapper/utils.d.ts +1 -1
- package/build/src/displayer/components/inputs/{Radio.d.ts → InputCheckbox.d.ts} +3 -3
- package/build/src/displayer/components/inputs/InputTaxonomy.d.ts +2 -0
- package/build/src/displayer/displayer.utils.d.ts +1 -1
- package/build/src/displayer/formatter.d.ts +1 -0
- package/package.json +5 -5
- package/build/241.bundle.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CSSCommentsBlocWidgetWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
|
|
2
|
+
import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare const CommentsBlocCommentWidgetsWrapper: (props: {
|
|
5
|
+
comment: jCommentList;
|
|
6
|
+
widgets: WidgetWrapperProps[];
|
|
7
|
+
mode: WidgetDisplayMode;
|
|
8
|
+
inplace: boolean;
|
|
9
|
+
handleWidgetUpdate: () => void;
|
|
10
|
+
handleWidgetRemove: () => void;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CombinedWidgetType, WidgetDisplayMode } from 'jamespot-user-api';
|
|
3
3
|
export declare const CSSWidgetWithTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const CSSWidgetTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const DisplayWidget: ({ widget, commentId, width, inplace, mode, deleteRight, onWidgetUpdate, onRemove, cannotDisplayComponent, }: {
|
|
4
|
+
export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpdate, cannotDisplayComponent, }: {
|
|
7
5
|
widget: CombinedWidgetType;
|
|
8
|
-
commentId?: number | undefined;
|
|
9
6
|
width?: number | undefined;
|
|
10
7
|
inplace: boolean;
|
|
11
8
|
mode: WidgetDisplayMode;
|
|
12
|
-
deleteRight?: boolean | undefined;
|
|
13
|
-
onRemove?: ((id: string) => void) | undefined;
|
|
14
9
|
onWidgetUpdate?: (() => void) | undefined;
|
|
15
10
|
onClick: () => void;
|
|
16
11
|
cannotDisplayComponent?: ((widget: string) => React.ReactNode) | undefined;
|
|
17
12
|
}) => React.JSX.Element;
|
|
18
|
-
export declare const WidgetTitle: ({ uniqid }: {
|
|
19
|
-
uniqid: string;
|
|
20
|
-
}) => React.JSX.Element;
|
|
21
|
-
export declare const WidgetTitleEdit: ({ uniqid }: {
|
|
22
|
-
uniqid: string;
|
|
23
|
-
}) => React.JSX.Element;
|
|
@@ -3,15 +3,12 @@ import { jCommentList, WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-us
|
|
|
3
3
|
type WidgetWrapperCoreProps = {
|
|
4
4
|
uniqid: string;
|
|
5
5
|
widgetObject?: Partial<jCommentList>;
|
|
6
|
-
commentId?: number;
|
|
7
6
|
widget: WidgetWrapperProps;
|
|
8
7
|
inplace?: boolean;
|
|
9
8
|
mode: WidgetDisplayMode;
|
|
10
9
|
width?: number | undefined;
|
|
11
|
-
deleteRight?: boolean;
|
|
12
10
|
onWidgetUpdate?: () => void;
|
|
13
|
-
onRemove?: (id: string) => void;
|
|
14
11
|
cannotDisplayComponent?: (widget: string) => React.ReactNode;
|
|
15
12
|
};
|
|
16
|
-
export declare const WidgetWrapperCore: ({ uniqid, widgetObject,
|
|
13
|
+
export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, onWidgetUpdate, cannotDisplayComponent, }: WidgetWrapperCoreProps) => React.JSX.Element;
|
|
17
14
|
export default WidgetWrapperCore;
|
|
@@ -8,12 +8,9 @@ export declare const FormItemContainer: import("styled-components").StyledCompon
|
|
|
8
8
|
}, never>;
|
|
9
9
|
type JRCWidgetCheckListWrapperProps = {
|
|
10
10
|
widget: WidgetCheckListType;
|
|
11
|
-
commentId?: number;
|
|
12
11
|
inplace: boolean;
|
|
13
12
|
mode?: WidgetDisplayMode;
|
|
14
|
-
deleteRight: boolean;
|
|
15
|
-
onRemove?: (uniqid: string) => void;
|
|
16
13
|
onWidgetUpdate?: () => void;
|
|
17
14
|
};
|
|
18
|
-
export declare const JRCWidgetCheckListWrapper: ({ widget,
|
|
15
|
+
export declare const JRCWidgetCheckListWrapper: ({ widget, inplace, mode, onWidgetUpdate, }: JRCWidgetCheckListWrapperProps) => React.JSX.Element;
|
|
19
16
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidgetsName } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetsName, Rights, WidgetDisplayMode } from 'jamespot-user-api';
|
|
3
3
|
export declare const Footer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const
|
|
6
|
-
id: number;
|
|
7
|
-
type: string;
|
|
5
|
+
export declare const WidgetFooterView: ({ name, uniqid, mode, collaborationRights, handleOpenEditor, }: {
|
|
8
6
|
name: WidgetsName;
|
|
9
7
|
uniqid: string;
|
|
8
|
+
mode?: "view" | "edit" | "preview" | undefined;
|
|
9
|
+
collaborationRights?: Pick<Rights, "update"> | undefined;
|
|
10
|
+
handleOpenEditor?: (() => void) | undefined;
|
|
10
11
|
}) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetsName } from 'jamespot-user-api';
|
|
3
|
+
export declare const CSSModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const CSSWidgetHeaderEdit: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const CSSWidgetHeaderEditTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const CSSWidgetHeaderEditActions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const WidgetHeaderEdit: ({ uniqid, name, handleOpenEditor, }: {
|
|
8
|
+
uniqid: string;
|
|
9
|
+
name: WidgetsName;
|
|
10
|
+
handleOpenEditor?: (() => void) | undefined;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -7,7 +7,7 @@ export declare const getVisibleColumns: (tableColumnsData: {
|
|
|
7
7
|
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
8
8
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
9
9
|
}[], columns: WidgetTableColumn[]) => {
|
|
10
|
-
type: "number" | "uri" | "title" | "url" | "select" | "text" | "date" | "file" | "
|
|
10
|
+
type: "number" | "uri" | "title" | "url" | "select" | "text" | "date" | "file" | "datetime" | "email" | "transient";
|
|
11
11
|
name: string;
|
|
12
12
|
label: string;
|
|
13
13
|
widget: {} | {
|
|
@@ -2,10 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
import { WidgetOption } from 'displayer/displayer.utils';
|
|
5
|
-
type
|
|
6
|
-
checkboxMode: 'radio' | 'checkbox';
|
|
5
|
+
type CheckboxConfig = {
|
|
6
|
+
checkboxMode: 'radio' | 'checkbox' | 'toggle';
|
|
7
7
|
direction?: 'row' | 'column' | 'two-columns';
|
|
8
8
|
requireable?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const InputCheckbox: (options: WidgetOption[], config: CheckboxConfig) => <TFieldValues extends FieldValues>({ widget: _, ...props }: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -2,5 +2,5 @@ import { WidgetCheckbox, WidgetRadio, WidgetSelect } from 'jamespot-user-api';
|
|
|
2
2
|
export declare function widgetToOptions(widget: WidgetSelect | WidgetCheckbox | WidgetRadio): Array<WidgetOption>;
|
|
3
3
|
export type WidgetOption = {
|
|
4
4
|
label: string;
|
|
5
|
-
value: string;
|
|
5
|
+
value: string | number;
|
|
6
6
|
};
|
|
@@ -13,5 +13,6 @@ export declare function formatSelect<TFieldValues extends FieldValues, Propertie
|
|
|
13
13
|
export declare function formatRichText<TFieldValues extends FieldValues, Properties extends FieldPath<TFieldValues>>(configuration: FieldConfiguration<Properties>): DisplayerElement<TFieldValues>;
|
|
14
14
|
export declare function formatTaxonomy<TFieldValues extends FieldValues, Properties extends FieldPath<TFieldValues>>(configuration: FieldConfiguration<Properties>): DisplayerElement<TFieldValues>;
|
|
15
15
|
export declare function formatTextarea<TFieldValues extends FieldValues, Properties extends FieldPath<TFieldValues>>(configuration: FieldConfiguration<Properties>): DisplayerElement<TFieldValues>;
|
|
16
|
+
export declare function formatToggle<TFieldValues extends FieldValues, Properties extends FieldPath<TFieldValues>>(configuration: FieldConfiguration<Properties>): DisplayerElement<TFieldValues>;
|
|
16
17
|
export declare function formatUri<TFieldValues extends FieldValues, Properties extends FieldPath<TFieldValues>>(configuration: FieldConfiguration<Properties>): DisplayerElement<TFieldValues>;
|
|
17
18
|
export declare function formatUrl<TFieldValues extends FieldValues, Properties extends FieldPath<TFieldValues>>(configuration: FieldConfiguration<Properties>): DisplayerElement<TFieldValues>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.171",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@reduxjs/toolkit": "^1.9.0",
|
|
55
55
|
"history": "^5.3.0",
|
|
56
|
-
"jamespot-front-business": "^1.1.
|
|
57
|
-
"jamespot-react-components": "^1.0.
|
|
58
|
-
"jamespot-user-api": "^1.0.
|
|
56
|
+
"jamespot-front-business": "^1.1.71",
|
|
57
|
+
"jamespot-react-components": "^1.0.215",
|
|
58
|
+
"jamespot-user-api": "^1.0.194",
|
|
59
59
|
"react": "^17.0.2",
|
|
60
60
|
"react-dom": "^17.0.2",
|
|
61
61
|
"react-hook-form": "^7.25.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"lint:fix": "npx eslint . --ext .ts,.tsx,.js --fix ",
|
|
97
97
|
"lint:ci": "npx eslint --output-file eslint_report.json --format json . --ext .ts,.tsx,.js",
|
|
98
98
|
"generate-component-list": "node script/component-list-generator.js",
|
|
99
|
-
"test": "jest",
|
|
99
|
+
"test": "jest --runInBand",
|
|
100
100
|
"test:watch": "npm run test -- --watch",
|
|
101
101
|
"versions": "node -v && npm -v && webpack -v"
|
|
102
102
|
}
|