jamespot-react-core 1.1.188 → 1.1.190
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/593.56c6fcd2db8c13313d75.chunk.js +670 -0
- package/build/593.56c6fcd2db8c13313d75.chunk.js.map +1 -0
- package/build/app.bundle.js +780 -769
- package/build/app.bundle.js.map +1 -1
- package/build/src/components/CommentsBloc.d.ts +2 -1
- package/build/src/components/comments/AddReportModal.d.ts +8 -0
- package/build/src/components/widgets/Widget.d.ts +0 -1
- package/build/src/components/widgets/wrapper/components/OfficeConfigurationPrompt.d.ts +2 -3
- package/build/src/components/widgets/wrapper/components/WidgetStyleWrapper.d.ts +2 -2
- package/build/src/components/widgets/wrapper/utils.d.ts +1 -1
- package/build/src/redux/store.d.ts +11 -7
- package/build/src/registry/core-component-list.d.ts +1 -0
- package/build/src/registry/coreComponents.d.ts +1 -0
- package/package.json +4 -4
- package/build/435.8fff25978e742bb78f49.chunk.js +0 -651
- package/build/435.8fff25978e742bb78f49.chunk.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type CommentsBlocProps = {
|
|
3
3
|
articleId: number;
|
|
4
|
+
articleUri: string;
|
|
4
5
|
variant?: 'modal' | 'inline';
|
|
5
6
|
canComment: boolean;
|
|
6
7
|
commentType?: 'comment' | 'commentResponse';
|
|
@@ -10,4 +11,4 @@ export type CommentsBlocProps = {
|
|
|
10
11
|
canSelectResponse: boolean;
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
|
-
export declare const CommentsBloc: ({ articleId, variant, canComment, commentType, socialQuestion, }: CommentsBlocProps) => React.JSX.Element;
|
|
14
|
+
export declare const CommentsBloc: ({ articleId, variant, canComment, commentType, socialQuestion, articleUri, }: CommentsBlocProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AddReportModalProps = {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
articleId: number;
|
|
5
|
+
articleUri: string;
|
|
6
|
+
commentUri: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const AddReportModal: ({ onClose, articleId, articleUri, commentUri }: AddReportModalProps) => React.JSX.Element;
|
|
@@ -7,7 +7,6 @@ export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpd
|
|
|
7
7
|
inplace: boolean;
|
|
8
8
|
mode: WidgetDisplayMode;
|
|
9
9
|
onWidgetUpdate?: (() => void) | undefined;
|
|
10
|
-
onClick: () => void;
|
|
11
10
|
cannotDisplayComponent?: ((widget: string) => ReactNode) | undefined;
|
|
12
11
|
levelFallback?: ((level: WidgetWrapperLevel, url: string) => ReactNode | undefined) | undefined;
|
|
13
12
|
dataCy?: string | undefined;
|
|
@@ -15,11 +15,10 @@ export declare const officeConfigurationInitialState: {
|
|
|
15
15
|
password: string;
|
|
16
16
|
hostname: string;
|
|
17
17
|
imapPort: number;
|
|
18
|
+
imapConnectionSecurity: "none";
|
|
18
19
|
imapMailbox: string;
|
|
19
20
|
cardDavAddressBook: string;
|
|
20
21
|
calDavCalendar: string;
|
|
21
22
|
provider: string;
|
|
22
23
|
};
|
|
23
|
-
export declare const OfficeConfigurationPrompt: (
|
|
24
|
-
handleCallback?: ((isValid: boolean) => void) | undefined;
|
|
25
|
-
}) => React.JSX.Element;
|
|
24
|
+
export declare const OfficeConfigurationPrompt: () => React.JSX.Element;
|
|
@@ -7,8 +7,8 @@ export declare const UIWrapper: import("styled-components").StyledComponent<"div
|
|
|
7
7
|
borderRadius: string;
|
|
8
8
|
overflow: string;
|
|
9
9
|
}, never>;
|
|
10
|
-
export declare const WidgetStyleWrapper:
|
|
10
|
+
export declare const WidgetStyleWrapper: ({ uniqid, onClick, children, }: {
|
|
11
11
|
uniqid: string;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
-
}
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -7,7 +7,7 @@ export declare const getVisibleColumns: (tableColumnsData: {
|
|
|
7
7
|
dateFormat?: "date" | "time" | "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" | "date" | "select" | "text" | "email" | "file" | "
|
|
10
|
+
type: "number" | "uri" | "title" | "url" | "date" | "select" | "text" | "email" | "file" | "datetime" | "transient";
|
|
11
11
|
name: string;
|
|
12
12
|
label: string;
|
|
13
13
|
widget: {} | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Reducer } from '@reduxjs/toolkit';
|
|
3
|
-
import { Application, Comment, Hook, Model, Share, studio, TVDisplay, UserCurrent, WedocApp, Bookmark, MediaLibrary, MagicPad, jland, Faq, AssetReservation, Animations, AdminLogs, Widget, WidgetEditor } from 'jamespot-front-business';
|
|
3
|
+
import { Application, Comment, Hook, Model, Share, studio, TVDisplay, UserCurrent, WedocApp, Bookmark, MediaLibrary, MagicPad, jland, Faq, AssetReservation, Animations, AdminLogs, Widget, WidgetEditor, ContentReport } from 'jamespot-front-business';
|
|
4
4
|
import { ApplicationType, HookListType, jUserList, Model as ModelType, NetworkType, TinyMCECommonOptions, TinyMCEExtendedOptions } from 'jamespot-user-api';
|
|
5
5
|
import { ArticleActionsType, ArticleSelectorType } from './slice/Article.slice';
|
|
6
6
|
import { GenericActionsType } from './slice/Generic.actions';
|
|
@@ -33,6 +33,7 @@ export type AsyncReducers = {
|
|
|
33
33
|
[AssetReservation.slice.name]: typeof AssetReservation.slice.reducer;
|
|
34
34
|
[Bookmark.slice.name]: typeof Bookmark.slice.reducer;
|
|
35
35
|
[Comment.slice.name]: typeof Comment.slice.reducer;
|
|
36
|
+
[ContentReport.slice.name]: typeof ContentReport.slice.reducer;
|
|
36
37
|
[Faq.slice.name]: typeof Faq.slice.reducer;
|
|
37
38
|
[MagicPad.slice.name]: typeof MagicPad.slice.reducer;
|
|
38
39
|
[MediaLibrary.slice.name]: typeof MediaLibrary.slice.reducer;
|
|
@@ -377,6 +378,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
377
378
|
bookmarkList: import("jamespot-front-business").bookmarkListState;
|
|
378
379
|
bookmarkEdit: import("jamespot-front-business").bookmarkEditState;
|
|
379
380
|
}>;
|
|
381
|
+
contentReport: import("jamespot-front-business").ContentReportSliceRootState;
|
|
380
382
|
faq: import("redux").CombinedState<{
|
|
381
383
|
config: {
|
|
382
384
|
loading: "idle" | "pending";
|
|
@@ -662,7 +664,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
662
664
|
tvChannelNumImages: 0;
|
|
663
665
|
tvChannelConfig: {
|
|
664
666
|
key: string;
|
|
665
|
-
backgroundType?: "
|
|
667
|
+
backgroundType?: "color" | "image" | undefined;
|
|
666
668
|
globalShowComment?: boolean | undefined;
|
|
667
669
|
scaleImg?: boolean | undefined;
|
|
668
670
|
contents?: {
|
|
@@ -816,7 +818,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
816
818
|
tvChannelNumImages: number;
|
|
817
819
|
tvChannelConfig: {
|
|
818
820
|
key: string;
|
|
819
|
-
backgroundType?: "
|
|
821
|
+
backgroundType?: "color" | "image" | undefined;
|
|
820
822
|
globalShowComment?: boolean | undefined;
|
|
821
823
|
scaleImg?: boolean | undefined;
|
|
822
824
|
contents?: {
|
|
@@ -1295,6 +1297,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1295
1297
|
bookmarkList: import("jamespot-front-business").bookmarkListState;
|
|
1296
1298
|
bookmarkEdit: import("jamespot-front-business").bookmarkEditState;
|
|
1297
1299
|
}>;
|
|
1300
|
+
contentReport: import("jamespot-front-business").ContentReportSliceRootState;
|
|
1298
1301
|
faq: import("redux").CombinedState<{
|
|
1299
1302
|
config: {
|
|
1300
1303
|
loading: "idle" | "pending";
|
|
@@ -1580,7 +1583,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1580
1583
|
tvChannelNumImages: 0;
|
|
1581
1584
|
tvChannelConfig: {
|
|
1582
1585
|
key: string;
|
|
1583
|
-
backgroundType?: "
|
|
1586
|
+
backgroundType?: "color" | "image" | undefined;
|
|
1584
1587
|
globalShowComment?: boolean | undefined;
|
|
1585
1588
|
scaleImg?: boolean | undefined;
|
|
1586
1589
|
contents?: {
|
|
@@ -1734,7 +1737,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1734
1737
|
tvChannelNumImages: number;
|
|
1735
1738
|
tvChannelConfig: {
|
|
1736
1739
|
key: string;
|
|
1737
|
-
backgroundType?: "
|
|
1740
|
+
backgroundType?: "color" | "image" | undefined;
|
|
1738
1741
|
globalShowComment?: boolean | undefined;
|
|
1739
1742
|
scaleImg?: boolean | undefined;
|
|
1740
1743
|
contents?: {
|
|
@@ -2218,6 +2221,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2218
2221
|
bookmarkList: import("jamespot-front-business").bookmarkListState;
|
|
2219
2222
|
bookmarkEdit: import("jamespot-front-business").bookmarkEditState;
|
|
2220
2223
|
}>;
|
|
2224
|
+
contentReport: import("jamespot-front-business").ContentReportSliceRootState;
|
|
2221
2225
|
faq: import("redux").CombinedState<{
|
|
2222
2226
|
config: {
|
|
2223
2227
|
loading: "idle" | "pending";
|
|
@@ -2503,7 +2507,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2503
2507
|
tvChannelNumImages: 0;
|
|
2504
2508
|
tvChannelConfig: {
|
|
2505
2509
|
key: string;
|
|
2506
|
-
backgroundType?: "
|
|
2510
|
+
backgroundType?: "color" | "image" | undefined;
|
|
2507
2511
|
globalShowComment?: boolean | undefined;
|
|
2508
2512
|
scaleImg?: boolean | undefined;
|
|
2509
2513
|
contents?: {
|
|
@@ -2657,7 +2661,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2657
2661
|
tvChannelNumImages: number;
|
|
2658
2662
|
tvChannelConfig: {
|
|
2659
2663
|
key: string;
|
|
2660
|
-
backgroundType?: "
|
|
2664
|
+
backgroundType?: "color" | "image" | undefined;
|
|
2661
2665
|
globalShowComment?: boolean | undefined;
|
|
2662
2666
|
scaleImg?: boolean | undefined;
|
|
2663
2667
|
contents?: {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export declare const coreComponentsMapping: {
|
|
5
5
|
readonly Audience: "Audience";
|
|
6
6
|
readonly Avatar: "Avatar";
|
|
7
|
+
readonly AddReportModal: "AddReportModal";
|
|
7
8
|
readonly CommentsBloc: "CommentsBloc";
|
|
8
9
|
readonly DisplayForm: "DisplayForm";
|
|
9
10
|
readonly EditorsPortal: "EditorsPortal";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export { Audience } from '../components/Audience';
|
|
5
5
|
export { AIModal } from '../components/tinymce/extension/AIModal';
|
|
6
6
|
export { Avatar } from '../components/Avatar';
|
|
7
|
+
export { AddReportModal } from '../components/comments/AddReportModal';
|
|
7
8
|
export { CommentsBloc } from '../components/CommentsBloc';
|
|
8
9
|
export { DisplayForm } from '../displayer/DisplayForm.component';
|
|
9
10
|
export { EditorsPortal } from '../components/editors/EditorsPortal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.190",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
57
57
|
"eslint-plugin-import": "^2.31.0",
|
|
58
58
|
"history": "^5.3.0",
|
|
59
|
-
"jamespot-front-business": "^1.1.
|
|
60
|
-
"jamespot-react-components": "^1.0.
|
|
61
|
-
"jamespot-user-api": "^1.0.
|
|
59
|
+
"jamespot-front-business": "^1.1.87",
|
|
60
|
+
"jamespot-react-components": "^1.0.239",
|
|
61
|
+
"jamespot-user-api": "^1.0.215",
|
|
62
62
|
"marked": "^15.0.3",
|
|
63
63
|
"react": "^17.0.2",
|
|
64
64
|
"react-dom": "17.0.2",
|