jamespot-react-core 1.2.43 → 1.2.45
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/{563.d847a02d096530ebe4be.chunk.js → 664.aa63b7766909c67d5905.chunk.js} +266 -231
- package/build/664.aa63b7766909c67d5905.chunk.js.map +1 -0
- package/build/app.bundle.js +935 -882
- package/build/app.bundle.js.map +1 -1
- package/build/src/components/calendar/CalendarHeader.d.ts +1 -0
- package/build/src/components/calendar/CalendarToolbar.d.ts +23 -0
- package/build/src/components/calendar/CalendarWrapper.d.ts +26 -0
- package/build/src/hooks/index.d.ts +5 -3
- package/build/src/hooks/useActivities.d.ts +5 -0
- package/build/src/hooks/useMessengerUnread.d.ts +1 -0
- package/build/src/redux/store.d.ts +3 -3
- package/build/src/registry/core-component-list.d.ts +2 -1
- package/build/src/registry/coreComponents.d.ts +2 -0
- package/build/src/registry/ext-component-list.d.ts +2 -0
- package/package.json +7 -7
- package/build/563.d847a02d096530ebe4be.chunk.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CalendarHeader: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CalendarApi, CalendarView } from 'jamespot-react-components';
|
|
2
|
+
type Filter = ('socialEvent' | 'meeting' | 'animatedMeeting' | 'boardCard')[];
|
|
3
|
+
export declare const CalendarToolbar: ({ label, view, viewsOptions, calendarApi, isLoading, navigateWithQuery, setView, setCreationType, setExportModalOpen, }: {
|
|
4
|
+
label?: string;
|
|
5
|
+
view: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: CalendarView;
|
|
8
|
+
};
|
|
9
|
+
viewsOptions: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: CalendarView;
|
|
12
|
+
}[];
|
|
13
|
+
calendarApi?: CalendarApi;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
navigateWithQuery: (queries: {
|
|
16
|
+
types?: Filter;
|
|
17
|
+
view?: CalendarView;
|
|
18
|
+
}) => void;
|
|
19
|
+
setView: (view: any) => void;
|
|
20
|
+
setCreationType: (type: "socialEvent" | "meeting" | "animatedMeeting" | null) => void;
|
|
21
|
+
setExportModalOpen: (value: boolean) => void;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CalendarEvent, JRCCalendarProps } from 'jamespot-react-components';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare const CalendarWrapper: ({ views, mode, withPadding, withHeader, withToolbar, fluid, children, }: {
|
|
4
|
+
views: Array<"dayGridMonth" | "timeGridWeek" | "timeGridDay" | "list">;
|
|
5
|
+
mode?: JRCCalendarProps["mode"];
|
|
6
|
+
fluid?: boolean;
|
|
7
|
+
withPadding?: boolean;
|
|
8
|
+
withHeader?: boolean;
|
|
9
|
+
withToolbar?: boolean;
|
|
10
|
+
children({ dates, eventToUpdate, creationType, isExportModalOpen, fetchEvents, setCreationType, setEventToUpdate, setExportModalOpen, }: {
|
|
11
|
+
dates?: {
|
|
12
|
+
start: Date;
|
|
13
|
+
end: Date;
|
|
14
|
+
};
|
|
15
|
+
eventToUpdate?: CalendarEvent | null;
|
|
16
|
+
creationType: string | null;
|
|
17
|
+
isExportModalOpen: boolean;
|
|
18
|
+
fetchEvents: (dates?: {
|
|
19
|
+
start: Date;
|
|
20
|
+
end: Date;
|
|
21
|
+
}, uri?: string) => void;
|
|
22
|
+
setEventToUpdate: React.Dispatch<React.SetStateAction<CalendarEvent | null>>;
|
|
23
|
+
setCreationType: React.Dispatch<React.SetStateAction<"socialEvent" | "meeting" | "animatedMeeting" | null>>;
|
|
24
|
+
setExportModalOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
25
|
+
}): ReactNode;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import useWindowDimension from './useWindowDimension';
|
|
2
1
|
import useAbortController from './useAbortController';
|
|
3
|
-
import
|
|
2
|
+
import { useActivities } from './useActivities';
|
|
4
3
|
import useCommentRT from './useCommentRT';
|
|
4
|
+
import { useMessengerUnread } from './useMessengerUnread';
|
|
5
5
|
import { useNGEvent } from './useNGEvent';
|
|
6
|
-
|
|
6
|
+
import useToggleFullScreen from './useToggleFullScreen';
|
|
7
|
+
import useWindowDimension from './useWindowDimension';
|
|
8
|
+
export { useAbortController, useActivities, useCommentRT, useMessengerUnread, useNGEvent, useToggleFullScreen, useWindowDimension, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMessengerUnread(): Map<string, number> | undefined;
|
|
@@ -120,8 +120,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
120
120
|
level: number;
|
|
121
121
|
pseudo: string;
|
|
122
122
|
idUser: number;
|
|
123
|
-
action: string;
|
|
124
123
|
ip: string;
|
|
124
|
+
action: string;
|
|
125
125
|
extended?: string | undefined;
|
|
126
126
|
}[];
|
|
127
127
|
page: number;
|
|
@@ -555,8 +555,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
555
555
|
level: number;
|
|
556
556
|
pseudo: string;
|
|
557
557
|
idUser: number;
|
|
558
|
-
action: string;
|
|
559
558
|
ip: string;
|
|
559
|
+
action: string;
|
|
560
560
|
extended?: string | undefined;
|
|
561
561
|
}[];
|
|
562
562
|
page: number;
|
|
@@ -995,8 +995,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
995
995
|
level: number;
|
|
996
996
|
pseudo: string;
|
|
997
997
|
idUser: number;
|
|
998
|
-
action: string;
|
|
999
998
|
ip: string;
|
|
999
|
+
action: string;
|
|
1000
1000
|
extended?: string | undefined;
|
|
1001
1001
|
}[];
|
|
1002
1002
|
page: number;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* please fill this file and coreComponents.ts
|
|
3
3
|
*/
|
|
4
4
|
export declare const coreComponentsMapping: {
|
|
5
|
-
readonly Audience: "Audience";
|
|
6
5
|
readonly Avatar: "Avatar";
|
|
7
6
|
readonly AddReportModal: "AddReportModal";
|
|
7
|
+
readonly CalendarWrapper: "CalendarWrapper";
|
|
8
|
+
readonly CalendarToolbar: "CalendarToolbar";
|
|
8
9
|
readonly CommentsBloc: "CommentsBloc";
|
|
9
10
|
readonly DisplayForm: "DisplayForm";
|
|
10
11
|
readonly EditorsPortal: "EditorsPortal";
|
|
@@ -5,6 +5,8 @@ export { Audience } from '../components/Audience';
|
|
|
5
5
|
export { AIModal } from '../components/tinymce/extension/AIModal';
|
|
6
6
|
export { Avatar } from '../components/Avatar';
|
|
7
7
|
export { AddReportModal } from '../components/comments/AddReportModal';
|
|
8
|
+
export { CalendarWrapper } from '../components/calendar/CalendarWrapper';
|
|
9
|
+
export { CalendarToolbar } from '../components/calendar/CalendarToolbar';
|
|
8
10
|
export { CommentsBloc } from '../components/CommentsBloc';
|
|
9
11
|
export { DisplayForm } from '../displayer/DisplayForm.component';
|
|
10
12
|
export { EditorsPortal } from '../components/editors/EditorsPortal';
|
|
@@ -5,7 +5,9 @@ declare const mapping: {
|
|
|
5
5
|
AppContainer: "JRCAppContainer";
|
|
6
6
|
AppHeader: "JRCAppHeader";
|
|
7
7
|
AppLeftColumn: "JRCAppLeftColumn";
|
|
8
|
+
ArticleCard: "ArticleCard";
|
|
8
9
|
Attachments: "JRCAttachments";
|
|
10
|
+
Audience: "JRCAudience";
|
|
9
11
|
BaseTooltip: "JRCBaseTooltip";
|
|
10
12
|
BasicAutoMarginContainer: "JRCBasicAutoMarginContainer";
|
|
11
13
|
BETA_DragAndDrop: "BETA_JRCDragAndDrop";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.45",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
33
33
|
"history": "^5.3.0",
|
|
34
34
|
"husky": "^7.0.4",
|
|
35
|
-
"jamespot-front-business": "^1.2.
|
|
36
|
-
"jamespot-react-components": "^1.2.
|
|
37
|
-
"jamespot-user-api": "^1.2.
|
|
35
|
+
"jamespot-front-business": "^1.2.45",
|
|
36
|
+
"jamespot-react-components": "^1.2.45",
|
|
37
|
+
"jamespot-user-api": "^1.2.45",
|
|
38
38
|
"jest": "^30.1.2",
|
|
39
39
|
"jest-environment-jsdom": "^30.1.2",
|
|
40
40
|
"lint-staged": "^12.5.0",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
},
|
|
68
68
|
"lint-staged": {
|
|
69
69
|
"*.{js,jsx,ts,tsx}": [
|
|
70
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"eslint --ext .ts,.tsx --fix",
|
|
71
|
+
"prettier --write"
|
|
72
72
|
],
|
|
73
73
|
"*.{json,md}": [
|
|
74
|
-
"
|
|
74
|
+
"prettier --write"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|