jamespot-react-core 1.2.49 → 1.2.51

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.
@@ -1,11 +1,12 @@
1
1
  import { CalendarApi, CalendarView } from 'jamespot-react-components';
2
2
  type Filter = ('socialEvent' | 'meeting' | 'animatedMeeting' | 'boardCard')[];
3
+ type OptionView = {
4
+ label: string;
5
+ value: CalendarView;
6
+ };
3
7
  export declare const CalendarToolbar: ({ label, view, viewsOptions, calendarApi, isLoading, navigateWithQuery, setView, setCreationType, setExportModalOpen, }: {
4
8
  label?: string;
5
- view: {
6
- label: string;
7
- value: CalendarView;
8
- };
9
+ view: OptionView;
9
10
  viewsOptions: {
10
11
  label: string;
11
12
  value: CalendarView;
@@ -1,5 +1,5 @@
1
- import { CalendarEvent, JRCCalendarProps } from 'jamespot-react-components';
2
1
  import { ReactNode } from 'react';
2
+ import { CalendarEvent, JRCCalendarProps } from 'jamespot-react-components';
3
3
  export declare const CalendarWrapper: ({ views, mode, withPadding, withHeader, withToolbar, fluid, children, }: {
4
4
  views: Array<"dayGridMonth" | "timeGridWeek" | "timeGridDay" | "list">;
5
5
  mode?: JRCCalendarProps["mode"];
@@ -7,18 +7,14 @@ export declare const CalendarWrapper: ({ views, mode, withPadding, withHeader, w
7
7
  withPadding?: boolean;
8
8
  withHeader?: boolean;
9
9
  withToolbar?: boolean;
10
- children({ dates, eventToUpdate, creationType, isExportModalOpen, fetchEvents, setCreationType, setEventToUpdate, setExportModalOpen, }: {
10
+ children?({ dates, eventToUpdate, creationType, isExportModalOpen, setCreationType, setEventToUpdate, setExportModalOpen, }: {
11
11
  dates?: {
12
- start: Date;
13
- end: Date;
12
+ start: string;
13
+ end: string;
14
14
  };
15
15
  eventToUpdate?: CalendarEvent | null;
16
16
  creationType: string | null;
17
17
  isExportModalOpen: boolean;
18
- fetchEvents: (dates?: {
19
- start: Date;
20
- end: Date;
21
- }, uri?: string) => void;
22
18
  setEventToUpdate: React.Dispatch<React.SetStateAction<CalendarEvent | null>>;
23
19
  setCreationType: React.Dispatch<React.SetStateAction<"socialEvent" | "meeting" | "animatedMeeting" | null>>;
24
20
  setExportModalOpen: React.Dispatch<React.SetStateAction<boolean>>;
@@ -0,0 +1,2 @@
1
+ declare const useCalendarRT: () => void;
2
+ export default useCalendarRT;
@@ -1,5 +1,5 @@
1
1
  import { Reducer } from '@reduxjs/toolkit';
2
- import { AdminLogs, Animations, Application, AssetReservation, Bookmark, ContentReport, ExtraBot, Faq, Hook, jland, MagicPad, MediaLibrary, Model, Share, studio, TeamWork, TVDisplay, UserCurrent, WedocApp, Widget, WidgetEditor } from 'jamespot-front-business';
2
+ import { AdminLogs, Animations, Application, AssetReservation, Bookmark, Calendar, ContentReport, ExtraBot, Faq, Hook, jland, MagicPad, MediaLibrary, Model, Share, studio, TeamWork, TVDisplay, UserCurrent, WedocApp, Widget, WidgetEditor } from 'jamespot-front-business';
3
3
  import { ApplicationType, HookListType, jUserList, Model as ModelType, NetworkType, TinyMCECommonOptions, TinyMCEExtendedOptions } from 'jamespot-user-api';
4
4
  import { TypedUseSelectorHook } from 'react-redux';
5
5
  import { ArticleActionsType, ArticleSelectorType } from './slice/Article.slice';
@@ -32,6 +32,7 @@ export type AsyncReducers = {
32
32
  [Animations.slice.name]: typeof Animations.slice.reducer;
33
33
  [AssetReservation.slice.name]: typeof AssetReservation.slice.reducer;
34
34
  [Bookmark.slice.name]: typeof Bookmark.slice.reducer;
35
+ [Calendar.slice.name]: typeof Calendar.slice.reducer;
35
36
  [ExtraBot.slice.name]: typeof ExtraBot.slice.reducer;
36
37
  [ContentReport.slice.name]: typeof ContentReport.slice.reducer;
37
38
  [Faq.slice.name]: typeof Faq.slice.reducer;
@@ -180,6 +181,25 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
180
181
  bookmarkList: import("jamespot-front-business").bookmarkListState;
181
182
  bookmarkEdit: import("jamespot-front-business").bookmarkEditState;
182
183
  }>;
184
+ calendar: import("redux").CombinedState<{
185
+ events: {
186
+ loading: "idle" | "pending";
187
+ } & {
188
+ list: import("jamespot-user-api").CalendarEventWithExtensions<import("jamespot-user-api").CalendarEventViewAbstractType, ["socialEventRecord"]>[];
189
+ statuses: import("jamespot-user-api").EventStatusFilter[];
190
+ types: Array<"socialEvent" | "meeting" | "animatedMeeting" | "boardCard">;
191
+ dates?: {
192
+ start: string;
193
+ end: string;
194
+ };
195
+ pendingStatusChanges: {
196
+ requestId: string;
197
+ prevStatus: import("jamespot-user-api").UserResponseStatus;
198
+ prevSubscribersTotal: number;
199
+ eventId: number;
200
+ }[];
201
+ };
202
+ }>;
183
203
  extraBot: import("jamespot-front-business").ExtraBotState;
184
204
  contentReport: import("jamespot-front-business").ContentReportSliceRootState;
185
205
  faq: import("redux").CombinedState<{
@@ -615,6 +635,25 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
615
635
  bookmarkList: import("jamespot-front-business").bookmarkListState;
616
636
  bookmarkEdit: import("jamespot-front-business").bookmarkEditState;
617
637
  }>;
638
+ calendar: import("redux").CombinedState<{
639
+ events: {
640
+ loading: "idle" | "pending";
641
+ } & {
642
+ list: import("jamespot-user-api").CalendarEventWithExtensions<import("jamespot-user-api").CalendarEventViewAbstractType, ["socialEventRecord"]>[];
643
+ statuses: import("jamespot-user-api").EventStatusFilter[];
644
+ types: Array<"socialEvent" | "meeting" | "animatedMeeting" | "boardCard">;
645
+ dates?: {
646
+ start: string;
647
+ end: string;
648
+ };
649
+ pendingStatusChanges: {
650
+ requestId: string;
651
+ prevStatus: import("jamespot-user-api").UserResponseStatus;
652
+ prevSubscribersTotal: number;
653
+ eventId: number;
654
+ }[];
655
+ };
656
+ }>;
618
657
  extraBot: import("jamespot-front-business").ExtraBotState;
619
658
  contentReport: import("jamespot-front-business").ContentReportSliceRootState;
620
659
  faq: import("redux").CombinedState<{
@@ -1055,6 +1094,25 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
1055
1094
  bookmarkList: import("jamespot-front-business").bookmarkListState;
1056
1095
  bookmarkEdit: import("jamespot-front-business").bookmarkEditState;
1057
1096
  }>;
1097
+ calendar: import("redux").CombinedState<{
1098
+ events: {
1099
+ loading: "idle" | "pending";
1100
+ } & {
1101
+ list: import("jamespot-user-api").CalendarEventWithExtensions<import("jamespot-user-api").CalendarEventViewAbstractType, ["socialEventRecord"]>[];
1102
+ statuses: import("jamespot-user-api").EventStatusFilter[];
1103
+ types: Array<"socialEvent" | "meeting" | "animatedMeeting" | "boardCard">;
1104
+ dates?: {
1105
+ start: string;
1106
+ end: string;
1107
+ };
1108
+ pendingStatusChanges: {
1109
+ requestId: string;
1110
+ prevStatus: import("jamespot-user-api").UserResponseStatus;
1111
+ prevSubscribersTotal: number;
1112
+ eventId: number;
1113
+ }[];
1114
+ };
1115
+ }>;
1058
1116
  extraBot: import("jamespot-front-business").ExtraBotState;
1059
1117
  contentReport: import("jamespot-front-business").ContentReportSliceRootState;
1060
1118
  faq: import("redux").CombinedState<{
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
7
7
  "devDependencies": {
8
8
  "@reduxjs/toolkit": "^1.9.7",
9
- "@testing-library/jest-dom": "^6.8.0",
9
+ "@testing-library/jest-dom": "^6.9.1",
10
10
  "@testing-library/react": "^14.3.1",
11
11
  "@types/jest": "^30.0.0",
12
- "@types/node": "^20.19.11",
13
- "@types/react": "^18.3.24",
12
+ "@types/node": "^20.19.19",
13
+ "@types/react": "^18.3.25",
14
14
  "@types/react-dom": "^18.3.7",
15
15
  "@types/react-redux": "^7.1.34",
16
16
  "@types/react-router-dom": "^5.3.3",
@@ -32,18 +32,18 @@
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.49",
36
- "jamespot-react-components": "^1.2.49",
37
- "jamespot-user-api": "^1.2.49",
38
- "jest": "^30.1.2",
39
- "jest-environment-jsdom": "^30.1.2",
35
+ "jamespot-front-business": "^1.2.51",
36
+ "jamespot-react-components": "^1.2.51",
37
+ "jamespot-user-api": "^1.2.51",
38
+ "jest": "^30.2.0",
39
+ "jest-environment-jsdom": "^30.2.0",
40
40
  "lint-staged": "^12.5.0",
41
- "marked": "^16.2.1",
41
+ "marked": "^16.3.0",
42
42
  "mini-css-extract-plugin": "^0.10.1",
43
43
  "prettier": "^3.6.2",
44
44
  "react": "^18.3.1",
45
45
  "react-dom": "^18.3.1",
46
- "react-hook-form": "^7.62.0",
46
+ "react-hook-form": "^7.64.0",
47
47
  "react-intl": "7.1.11",
48
48
  "react-redux": "^8.1.3",
49
49
  "react-router-dom": "^6.30.1",
@@ -55,12 +55,12 @@
55
55
  "socket.io-client": "^4.8.1",
56
56
  "source-map-loader": "^1.1.3",
57
57
  "styled-components": "^5.3.11",
58
- "ts-jest": "^29.4.1",
58
+ "ts-jest": "^29.4.4",
59
59
  "ts-loader": "^9.5.4",
60
60
  "ts-node": "^10.9.2",
61
- "typescript": "^5.9.2",
61
+ "typescript": "^5.9.3",
62
62
  "uuid": "^10.0.0",
63
- "webpack": "^5.101.3",
63
+ "webpack": "^5.102.0",
64
64
  "webpack-cli": "^4.10.0",
65
65
  "webpack-dev-server": "^4.15.2",
66
66
  "worker-loader": "^3.0.8"