jamespot-react-core 1.3.18 → 1.3.19

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.
@@ -39,6 +39,7 @@ import { AppDispatch, useAppDispatch, useAppSelector } from './redux/store';
39
39
  declare const App: ReactCore;
40
40
  import './Router';
41
41
  export * from './components';
42
+ export { useDisplay, useDisplayList, formatField } from './displayer/useDisplay';
42
43
  export * from './hooks';
43
44
  export * from './types';
44
45
  export { AppDispatch, useAppDispatch, useAppSelector };
@@ -1,6 +1,5 @@
1
1
  import { TinyMCECommonOptions } from 'jamespot-user-api';
2
2
  import { MouseEvent, ReactNode } from 'react';
3
- import { useDisplay, useDisplayList } from './displayer/useDisplay';
4
3
  import { JInjectStore } from './redux/store';
5
4
  import { GlobalRegistry } from './registry/GlobalRegistry';
6
5
  import { ReactCommonRegistry } from './registry/ReactCommonRegistry';
@@ -19,8 +18,6 @@ declare class App implements ReactCore {
19
18
  store: JInjectStore;
20
19
  actions: object;
21
20
  registry: GlobalRegistry;
22
- useDisplay: typeof useDisplay;
23
- useDisplayList: typeof useDisplayList;
24
21
  locale: SupportedLanguages;
25
22
  translation: ReactTranslation;
26
23
  theme: any;
@@ -1,9 +1,9 @@
1
- import { jObjectLittle } from 'jamespot-user-api';
2
- export type AudienceProps<T extends jObjectLittle> = {
3
- audience: T[];
1
+ import { Audience as AudienceType } from 'jamespot-user-api';
2
+ export type AudienceProps = {
3
+ audience: AudienceType[];
4
4
  limit?: number;
5
5
  };
6
6
  export declare const AvatarLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
7
7
  overlap?: boolean;
8
8
  }>> & string;
9
- export declare const Audience: <T extends jObjectLittle>({ audience, limit }: AudienceProps<T>) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Audience: ({ audience, limit }: AudienceProps) => import("react/jsx-runtime").JSX.Element;
@@ -13,6 +13,7 @@ export type MeetingFormProps = {
13
13
  meeting?: CalendarEventWithExtensions<jMeetingView, ['socialEventRecord']>;
14
14
  extraInitialValues?: MeetingFormExtraInitialValues;
15
15
  mode: 'create' | 'update';
16
+ onChangeVisioMode: (mode: string) => void;
16
17
  };
17
18
  export type MeetingFormValues = Omit<MeetingCreation, 'publishTo' | 'uiObjectLink' | 'alertAuthor' | 'sendAlert' | 'type'> & {
18
19
  publishTo: AudienceAutocomplete[];
@@ -26,4 +27,4 @@ export type MeetingFormValues = Omit<MeetingCreation, 'publishTo' | 'uiObjectLin
26
27
  alertAuthor?: boolean;
27
28
  sendAlert?: boolean;
28
29
  };
29
- export declare const MeetingForm: ({ form, setUploadLoading, extraInitialValues, mode }: MeetingFormProps) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const MeetingForm: ({ form, setUploadLoading, extraInitialValues, mode, onChangeVisioMode, }: MeetingFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -14,5 +14,6 @@ export type SocialEventOrRecurringFormProps = {
14
14
  event?: WithExtensions<jSocialEventView | jRecurringEventView, ['socialEventRecord' | 'recurringEventRecord']>;
15
15
  extraInitialValues?: SocialEventFormExtraInitialValues;
16
16
  mode: 'create' | 'update';
17
+ onChangeVisioMode?: (mode: string) => void;
17
18
  };
18
- export declare const SocialEventOrRecurringEventForm: ({ form, setUploadLoading, extraInitialValues, mode, }: SocialEventOrRecurringFormProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const SocialEventOrRecurringEventForm: ({ form, setUploadLoading, extraInitialValues, mode, onChangeVisioMode, }: SocialEventOrRecurringFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -11,6 +11,7 @@ type HookParams = {
11
11
  open?: boolean;
12
12
  onSchedule?: (idDraft: string) => void;
13
13
  defaultValues?: Partial<SocialEventOrRecurringEventFormValues> | (() => Promise<Partial<SocialEventOrRecurringEventFormValues>>);
14
+ visioMode: string | null;
14
15
  };
15
16
  type HookReturn = {
16
17
  form: ReturnType<typeof useForm<SocialEventOrRecurringEventFormValues>>;
@@ -23,5 +24,5 @@ type HookReturn = {
23
24
  schedule: (scheduleDate: string, permalinkId: string) => void;
24
25
  loading: boolean;
25
26
  };
26
- export declare const useSocialEventOrRecurringEventCreationHook: ({ onCreate, defaultDateSelection, open, onSchedule: doOnSchedule, defaultValues, }: HookParams) => HookReturn;
27
+ export declare const useSocialEventOrRecurringEventCreationHook: ({ onCreate, defaultDateSelection, open, onSchedule: doOnSchedule, defaultValues, visioMode, }: HookParams) => HookReturn;
27
28
  export {};
@@ -5,6 +5,7 @@ import { SocialEventOrRecurringEventFormValues } from './types';
5
5
  type HookParams = {
6
6
  onUpdate: (event: jObjectLittle) => void;
7
7
  event?: CalendarEventWithExtensions<jSocialEventView, ['socialEventRecord']>;
8
+ visioMode: string | null;
8
9
  };
9
10
  type HookReturn = {
10
11
  form: ReturnType<typeof useForm<SocialEventOrRecurringEventFormValues>>;
@@ -17,5 +18,5 @@ type HookReturn = {
17
18
  initialLoading: boolean;
18
19
  extraInitialValues?: SocialEventFormExtraInitialValues;
19
20
  };
20
- export declare const useSocialEventUpdateHook: ({ event, onUpdate }: HookParams) => HookReturn;
21
+ export declare const useSocialEventUpdateHook: ({ event, onUpdate, visioMode }: HookParams) => HookReturn;
21
22
  export {};
@@ -1,6 +1,7 @@
1
- import { Widget } from 'jamespot-user-api';
2
- import { Displayer, Fields, FieldsWith, DisplayFormFieldsConfig } from './types';
1
+ import { Configuration, Widget } from 'jamespot-user-api';
2
+ import { Displayer, DisplayerElement, Fields, FieldsWith, DisplayFormFieldsConfig } from './types';
3
3
  import type { FieldValues, FieldPath } from 'react-hook-form';
4
+ export declare function formatField<TFieldValues extends FieldValues = FieldValues, Properties extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(configuration: Configuration<Properties>): DisplayerElement<TFieldValues>;
4
5
  /**
5
6
  *
6
7
  * @param fields - fields that we want to display (firstname, name, age...)
@@ -1,14 +1,15 @@
1
+ import { useRecurringEventUpdateHook } from '../components/calendar/socialEvent/useRecurringEventUpdateHook';
2
+ import { useSocialEventOrRecurringEventCreationHook } from '../components/calendar/socialEvent/useSocialEventOrRecurringEventCreationHook';
3
+ import { useSocialEventUpdateHook } from '../components/calendar/socialEvent/useSocialEventUpdateHook';
1
4
  import { useAbortController } from './useAbortController';
2
5
  import { useActivities } from './useActivities';
3
6
  import { useApplication } from './useApplication';
4
7
  import { useCommentRT } from './useCommentRT';
5
8
  import { useHref } from './useHref';
9
+ import { useIsEllipsed } from './useIsEllipsed';
6
10
  import { useLayout } from './useLayout';
7
11
  import { useMessengerUnread } from './useMessengerUnread';
8
12
  import { useNGEvent } from './useNGEvent';
9
- import { useRecurringEventUpdateHook } from '../components/calendar/socialEvent/useRecurringEventUpdateHook';
10
- import { useSocialEventOrRecurringEventCreationHook } from '../components/calendar/socialEvent/useSocialEventOrRecurringEventCreationHook';
11
- import { useSocialEventUpdateHook } from '../components/calendar/socialEvent/useSocialEventUpdateHook';
12
13
  import { useToggleFullScreen } from './useToggleFullScreen';
13
14
  import { useWindowDimension } from './useWindowDimension';
14
- export { useAbortController, useActivities, useApplication, useCommentRT, useHref, useLayout, useMessengerUnread, useNGEvent, useRecurringEventUpdateHook, useSocialEventOrRecurringEventCreationHook, useSocialEventUpdateHook, useToggleFullScreen, useWindowDimension, };
15
+ export { useAbortController, useActivities, useApplication, useCommentRT, useHref, useIsEllipsed, useLayout, useMessengerUnread, useNGEvent, useRecurringEventUpdateHook, useSocialEventOrRecurringEventCreationHook, useSocialEventUpdateHook, useToggleFullScreen, useWindowDimension, };
@@ -0,0 +1,6 @@
1
+ export declare const useIsEllipsed: <T extends HTMLElement>({ resize }?: {
2
+ resize?: boolean;
3
+ }) => {
4
+ ref: import("react").RefObject<T | null>;
5
+ isEllipsed: boolean;
6
+ };
@@ -1,5 +1,5 @@
1
1
  import { Reducer } from '@reduxjs/toolkit';
2
- import { AdminLogs, Animations, Application, AssetReservation, Bookmark, Calendar, ContentReport, ExtraBot, Faq, FileIntegrity, 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, FileIntegrity, Hook, jland, MagicPad, MediaLibrary, Model, Share, studio, TeamWork, TVDisplay, UserCurrent, Wall, 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';
@@ -47,6 +47,7 @@ export type AsyncReducers = {
47
47
  [studio.slice.name]: typeof studio.slice.reducer;
48
48
  [WidgetEditor.slice.name]: typeof WidgetEditor.slice.reducer;
49
49
  [FileIntegrity.slice.name]: typeof FileIntegrity.slice.reducer;
50
+ [Wall.slice.name]: typeof Wall.slice.reducer;
50
51
  } & {
51
52
  extensions: {
52
53
  [key: string]: Reducer;
@@ -154,6 +155,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
154
155
  };
155
156
  editors: import("jamespot-front-business/dist/src/store/widgetEditor/widgetEditor.types").EditorsState;
156
157
  fileIntegrity: import("jamespot-front-business").FileIntegrityState;
158
+ wall: import("jamespot-front-business").WallRootState;
157
159
  extensions: {
158
160
  [x: string]: any;
159
161
  };
@@ -242,6 +244,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
242
244
  };
243
245
  editors: import("jamespot-front-business/dist/src/store/widgetEditor/widgetEditor.types").EditorsState;
244
246
  fileIntegrity: import("jamespot-front-business").FileIntegrityState;
247
+ wall: import("jamespot-front-business").WallRootState;
245
248
  extensions: {
246
249
  [x: string]: any;
247
250
  };
@@ -335,6 +338,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
335
338
  };
336
339
  editors: import("jamespot-front-business/dist/src/store/widgetEditor/widgetEditor.types").EditorsState;
337
340
  fileIntegrity: import("jamespot-front-business").FileIntegrityState;
341
+ wall: import("jamespot-front-business").WallRootState;
338
342
  extensions: {
339
343
  [x: string]: any;
340
344
  };
@@ -2,7 +2,6 @@ import { ApplicationType, HookListType, jUserList, Model, Readable, TinyMCECommo
2
2
  import { MouseEvent, ReactElement, ReactNode } from 'react';
3
3
  import { RouteObject } from 'react-router-dom';
4
4
  import { TwoColLayoutRoute, TwoColLayoutRoutes } from '../components/types';
5
- import { useDisplay, useDisplayList } from '../displayer/useDisplay';
6
5
  import { GlobalRegistry } from '../registry/GlobalRegistry';
7
6
  import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
8
7
  import { ReactSocket } from './types.socket';
@@ -36,8 +35,6 @@ export interface ReactCore {
36
35
  event?: MouseEvent<HTMLElement>;
37
36
  }) => void;
38
37
  changeWindowLocation: (targetUrl: string, event: MouseEvent<HTMLElement>, enableWindowOpen: boolean) => void;
39
- useDisplay: typeof useDisplay;
40
- useDisplayList: typeof useDisplayList;
41
38
  tinymceCommonOptions?: TinyMCECommonOptions;
42
39
  }
43
40
  export interface ReactExtensions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
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.18",
42
- "jamespot-react-components": "^1.3.18",
43
- "jamespot-user-api": "^1.3.18",
41
+ "jamespot-front-business": "^1.3.19",
42
+ "jamespot-react-components": "^1.3.19",
43
+ "jamespot-user-api": "^1.3.19",
44
44
  "jest": "^30.2.0",
45
45
  "jest-environment-jsdom": "^30.2.0",
46
46
  "knip": "^5.70.0",