jamespot-react-core 1.2.38 → 1.2.40

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.
@@ -28,7 +28,9 @@ declare class App implements ReactCore {
28
28
  coreComponentsRegistry: ReactCoreRegistry;
29
29
  }, locale: SupportedLanguages, translation: ReactTranslation, socket: ReactSocket);
30
30
  require: (extensionName: string, args?: any) => void;
31
- unmountExtension: (extensionName: string, args?: any) => void;
31
+ unmountExtension: (extensionName: string, args?: {
32
+ anchorId: string;
33
+ }) => void;
32
34
  extensionAdd(extensionName: string, load: () => void): void;
33
35
  routeAdd(route: string, extensionName: string, idDiv: string, gabarit?: Gabarit, gabaritOptions?: object): void;
34
36
  transitionTo(stateName: string, args: {}, options?: {
@@ -0,0 +1,11 @@
1
+ type ScheduleData = {
2
+ scheduleDate: string;
3
+ permalinkId: string;
4
+ };
5
+ export type ModalScheduleProps = {
6
+ open: boolean;
7
+ closeHandler: () => void;
8
+ onSubmit: (data: ScheduleData) => void;
9
+ };
10
+ export declare const ModalSchedule: ({ open, closeHandler, onSubmit }: ModalScheduleProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -62,6 +62,8 @@ export declare function makeStore(jValues: {
62
62
  platform: {
63
63
  userAccountStatus: 0 | 1;
64
64
  userHighlightFields: string[];
65
+ urlBase: string;
66
+ sendAlert: 0 | 1;
65
67
  };
66
68
  hooks: HookListType;
67
69
  userCurrent: jUserList | undefined;
@@ -88,6 +90,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
88
90
  config: {
89
91
  userHighlightFields?: string[];
90
92
  userAccountStatus: 0 | 1;
93
+ urlBase?: string;
94
+ sendAlert: 0 | 1;
91
95
  };
92
96
  }>;
93
97
  toasts: import("@reduxjs/toolkit").EntityState<{
@@ -96,6 +100,10 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
96
100
  description?: string;
97
101
  timeout: number;
98
102
  type: "error" | "success" | "warning";
103
+ link?: {
104
+ label: string;
105
+ url: string;
106
+ };
99
107
  }>;
100
108
  tinymce: import("redux").CombinedState<{
101
109
  options: {
@@ -517,6 +525,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
517
525
  config: {
518
526
  userHighlightFields?: string[];
519
527
  userAccountStatus: 0 | 1;
528
+ urlBase?: string;
529
+ sendAlert: 0 | 1;
520
530
  };
521
531
  }>;
522
532
  toasts: import("@reduxjs/toolkit").EntityState<{
@@ -525,6 +535,10 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
525
535
  description?: string;
526
536
  timeout: number;
527
537
  type: "error" | "success" | "warning";
538
+ link?: {
539
+ label: string;
540
+ url: string;
541
+ };
528
542
  }>;
529
543
  tinymce: import("redux").CombinedState<{
530
544
  options: {
@@ -951,6 +965,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
951
965
  config: {
952
966
  userHighlightFields?: string[];
953
967
  userAccountStatus: 0 | 1;
968
+ urlBase?: string;
969
+ sendAlert: 0 | 1;
954
970
  };
955
971
  }>;
956
972
  toasts: import("@reduxjs/toolkit").EntityState<{
@@ -959,6 +975,10 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
959
975
  description?: string;
960
976
  timeout: number;
961
977
  type: "error" | "success" | "warning";
978
+ link?: {
979
+ label: string;
980
+ url: string;
981
+ };
962
982
  }>;
963
983
  tinymce: import("redux").CombinedState<{
964
984
  options: {
@@ -14,6 +14,7 @@ export declare const coreComponentsMapping: {
14
14
  readonly InputTinyMCEWithExtRaw: "JRCInputTinyMCEWithExtRaw";
15
15
  readonly InputTinyMCEWithExt: "JRCInputTinyMCEWithExt";
16
16
  readonly ModalAudience: "ModalAudience";
17
+ readonly ModalSchedule: "ModalSchedule";
17
18
  readonly TinyMCEAIModal: "AIModal";
18
19
  readonly TinyMCEMarkdownModal: "MarkdownModal";
19
20
  readonly TwoColLayout: "TwoColLayout";
@@ -15,6 +15,7 @@ export { JRCInputTinyMCEWithExt } from '../components/tinymce/JRCInputTinyMCEWit
15
15
  export { JRCInputTinyMCEWithExtRaw } from '../components/tinymce/JRCInputTinyMCEWithExtRaw';
16
16
  export { MarkdownModal } from '../components/tinymce/extension/MarkdownModal';
17
17
  export { ModalAudience } from '../components/modals/ModalAudience';
18
+ export { ModalSchedule } from '../components/modals/ModalSchedule';
18
19
  export { TwoColLayout } from '../components/TwoColLayout';
19
20
  export { WidgetList } from '../components/widgets/WidgetList/WidgetList';
20
21
  export { WidgetWrapperCore } from '../components/widgets/WidgetWrapperCore';
@@ -47,11 +47,15 @@ declare const mapping: {
47
47
  DEPRECATEDFormTextField: "JRCFormTextField";
48
48
  DEPRECATEDFormUrlField: "JRCFormUrlField";
49
49
  DisplayCard: "JRCDisplayCard";
50
+ DndProvider: "DndProvider";
51
+ DndTwoLevelWithStack: "JRCDndTwoLevelWithStack";
50
52
  DoubleClick: "BETA_JRCDoubleClick";
53
+ Draggable: "Draggable";
51
54
  DraggingPlaceholder: "JRCDraggingPlaceholder";
52
55
  DriveDropbox: "JRCDriveDropbox";
53
56
  DriveMSGraph: "JRCDriveMSGraph";
54
57
  DropDown: "JRCDropDown";
58
+ Droppable: "Droppable";
55
59
  EmptySpace: "JRCEmptySpace";
56
60
  FadeStepper: "JRCFadeStepper";
57
61
  File: "JRCFile";
@@ -125,6 +129,7 @@ declare const mapping: {
125
129
  ProgressBar: "JRCProgressBar";
126
130
  PublishButton: "JRCPublishButton";
127
131
  SidePanelModal: "JRCSidePanelModal";
132
+ SidePanelModalForm: "JRCSidePanelModalForm";
128
133
  SkeletonLine: "JRCSkeletonLine";
129
134
  SkeletonList: "JRCSkeletonList";
130
135
  SkeletonSquare: "JRCSkeletonSquare";
@@ -45,10 +45,11 @@ export type ReactUnmountExtensionArgs<T> = {
45
45
  params?: T;
46
46
  };
47
47
  export interface ReactExtension {
48
- root: Root | undefined;
48
+ anchorId?: string | undefined;
49
+ roots: Map<string, Root>;
49
50
  container?: HTMLElement | undefined;
50
51
  initExtension: (args?: any) => void;
51
- unmountExtension: (args?: ReactUnmountExtensionArgs<any>) => void;
52
+ unmountExtension: (id?: string) => void;
52
53
  }
53
54
  export interface ReactExtensionContainer {
54
55
  default: ReactExtension;
@@ -113,6 +114,9 @@ export interface WindowJ {
113
114
  userHighlightFields: string[];
114
115
  userAccountStatus: 0 | 1;
115
116
  socketLongPolling?: boolean;
117
+ article: {
118
+ mail: 0 | 1;
119
+ };
116
120
  }
117
121
  export type IsAppActivateProps = {
118
122
  dependency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
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.38",
36
- "jamespot-react-components": "^1.2.38",
37
- "jamespot-user-api": "^1.2.38",
35
+ "jamespot-front-business": "^1.2.40",
36
+ "jamespot-react-components": "^1.2.40",
37
+ "jamespot-user-api": "^1.2.40",
38
38
  "jest": "^30.1.2",
39
39
  "jest-environment-jsdom": "^30.1.2",
40
40
  "lint-staged": "^12.5.0",