jamespot-react-core 1.3.38 → 1.3.39

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,7 +1,7 @@
1
- import { AudienceAutocomplete, CalendarEventWithExtensions, jFileLittle, jMeetingView, MeetingCreation } from 'jamespot-user-api';
1
+ import { AudienceAutocomplete, CalendarEventWithExtensions, EventMode, jFileLittle, jMeetingView, MeetingCreation } from 'jamespot-user-api';
2
2
  import { UseFormReturn } from 'react-hook-form';
3
3
  export type MeetingFormExtraInitialValues = {
4
- eventMode: 'onSpot' | 'visio' | 'hybrid';
4
+ eventMode: EventMode;
5
5
  customColors: boolean;
6
6
  attachments: Array<jFileLittle>;
7
7
  reportFile: jFileLittle | null;
@@ -14,6 +14,7 @@ export type MeetingFormProps = {
14
14
  extraInitialValues?: MeetingFormExtraInitialValues;
15
15
  mode: 'create' | 'update';
16
16
  onChangeVisioMode: (mode: string) => void;
17
+ onChangeEventMode: (mode: EventMode) => void;
17
18
  };
18
19
  export type MeetingFormValues = Omit<MeetingCreation, 'publishTo' | 'uiObjectLink' | 'alertAuthor' | 'sendAlert' | 'type'> & {
19
20
  publishTo: AudienceAutocomplete[];
@@ -27,4 +28,4 @@ export type MeetingFormValues = Omit<MeetingCreation, 'publishTo' | 'uiObjectLin
27
28
  alertAuthor?: boolean;
28
29
  sendAlert?: boolean;
29
30
  };
30
- export declare const MeetingForm: ({ form, setUploadLoading, extraInitialValues, mode, onChangeVisioMode, }: MeetingFormProps) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const MeetingForm: ({ form, setUploadLoading, extraInitialValues, mode, onChangeVisioMode, onChangeEventMode, }: MeetingFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { jFileLittle, jRecurringEventView, jSocialEventView, WithExtensions } from 'jamespot-user-api';
1
+ import { EventMode, jFileLittle, jRecurringEventView, jSocialEventView, WithExtensions } from 'jamespot-user-api';
2
2
  import { UseFormReturn } from 'react-hook-form';
3
3
  import { SocialEventOrRecurringEventFormValues } from './types';
4
4
  export type SocialEventFormExtraInitialValues = {
5
- eventMode: 'onSpot' | 'visio' | 'hybrid';
5
+ eventMode: EventMode;
6
6
  customColors: boolean;
7
7
  attachments: Array<jFileLittle>;
8
8
  tags: Record<string, unknown>;
@@ -15,5 +15,6 @@ export type SocialEventOrRecurringFormProps = {
15
15
  extraInitialValues?: SocialEventFormExtraInitialValues;
16
16
  mode: 'create' | 'update';
17
17
  onChangeVisioMode?: (mode: string) => void;
18
+ onChangeEventMode?: (mode: EventMode) => void;
18
19
  };
19
- export declare const SocialEventOrRecurringEventForm: ({ form, setUploadLoading, extraInitialValues, mode, onChangeVisioMode, }: SocialEventOrRecurringFormProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const SocialEventOrRecurringEventForm: ({ form, setUploadLoading, extraInitialValues, mode, onChangeVisioMode, onChangeEventMode, }: SocialEventOrRecurringFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jObjectLittle } from 'jamespot-user-api';
1
+ import { EventMode, jObjectLittle } from 'jamespot-user-api';
2
2
  import { useForm } from 'react-hook-form';
3
3
  import { SocialEventOrRecurringEventFormValues } from './types';
4
4
  type HookParams = {
@@ -12,6 +12,7 @@ type HookParams = {
12
12
  onSchedule?: (idDraft: string) => void;
13
13
  defaultValues?: Partial<SocialEventOrRecurringEventFormValues> | (() => Promise<Partial<SocialEventOrRecurringEventFormValues>>);
14
14
  visioMode: string | null;
15
+ eventMode: EventMode;
15
16
  idSpot?: number;
16
17
  idDraft?: number;
17
18
  };
@@ -26,5 +27,5 @@ type HookReturn = {
26
27
  schedule: (scheduleDate: string, permalinkId: string) => void;
27
28
  loading: boolean;
28
29
  };
29
- export declare const useSocialEventOrRecurringEventCreationHook: ({ onCreate, defaultDateSelection, open, onSchedule: doOnSchedule, defaultValues, visioMode, idSpot, idDraft, }: HookParams) => HookReturn;
30
+ export declare const useSocialEventOrRecurringEventCreationHook: ({ onCreate, defaultDateSelection, open, onSchedule: doOnSchedule, defaultValues, visioMode, eventMode, idSpot, idDraft, }: HookParams) => HookReturn;
30
31
  export {};
@@ -1,4 +1,4 @@
1
- import { CalendarEventWithExtensions, jObjectLittle, jSocialEventView } from 'jamespot-user-api';
1
+ import { CalendarEventWithExtensions, EventMode, jObjectLittle, jSocialEventView } from 'jamespot-user-api';
2
2
  import { useForm } from 'react-hook-form';
3
3
  import { SocialEventFormExtraInitialValues } from './SocialEventOrRecurringEventForm';
4
4
  import { SocialEventOrRecurringEventFormValues } from './types';
@@ -6,6 +6,7 @@ type HookParams = {
6
6
  onUpdate: (event: jObjectLittle) => void;
7
7
  event?: CalendarEventWithExtensions<jSocialEventView, ['socialEventRecord']>;
8
8
  visioMode: string | null;
9
+ eventMode: EventMode;
9
10
  };
10
11
  type HookReturn = {
11
12
  form: ReturnType<typeof useForm<SocialEventOrRecurringEventFormValues>>;
@@ -18,5 +19,5 @@ type HookReturn = {
18
19
  initialLoading: boolean;
19
20
  extraInitialValues?: SocialEventFormExtraInitialValues;
20
21
  };
21
- export declare const useSocialEventUpdateHook: ({ event, onUpdate, visioMode }: HookParams) => HookReturn;
22
+ export declare const useSocialEventUpdateHook: ({ event, onUpdate, visioMode, eventMode }: HookParams) => HookReturn;
22
23
  export {};
@@ -31,6 +31,7 @@ declare const mapping: {
31
31
  Deprecated_ClickAwayListener: "Deprecated_ClickAwayListener";
32
32
  Deprecated_Ellipsis: "Deprecated_JRCEllipsis";
33
33
  DisplayCard: "JRCDisplayCard";
34
+ DndOneLevelWithStack: "JRCDndOneLevelWithStack";
34
35
  DndProvider: "DndProvider";
35
36
  DndTwoLevelWithStack: "JRCDndTwoLevelWithStack";
36
37
  DoubleClick: "BETA_JRCDoubleClick";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.3.38",
3
+ "version": "1.3.39",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -38,9 +38,9 @@
38
38
  "fork-ts-checker-webpack-plugin": "^9.1.0",
39
39
  "history": "^5.3.0",
40
40
  "husky": "^9.1.7",
41
- "jamespot-front-business": "^1.3.38",
42
- "jamespot-react-components": "^1.3.38",
43
- "jamespot-user-api": "^1.3.38",
41
+ "jamespot-front-business": "^1.3.39",
42
+ "jamespot-react-components": "^1.3.39",
43
+ "jamespot-user-api": "^1.3.39",
44
44
  "jest": "^30.2.0",
45
45
  "jest-environment-jsdom": "^30.2.0",
46
46
  "knip": "^5.70.0",