jamespot-front-business 1.1.20 → 1.1.22

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/dist/types.d.ts CHANGED
@@ -2,15 +2,14 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import { EntityState, Action, Dispatch as Dispatch$1, PayloadAction } from '@reduxjs/toolkit';
3
3
  import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
4
4
  import * as jamespot_user_api from 'jamespot-user-api';
5
- import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, JLandMap, AdminLicensesNotAssigned, Model as Model$1, WedocFileType, jUserLittle, PagingResults, TVChannelList, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, WidgetsState, CombinedWidgetContent, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
5
+ import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, JLandMap, AdminLicensesNotAssigned, Model as Model$1, WedocFileType, jUserLittle, PagingResults, TVChannelList, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, WidgetsState, CombinedWidgetContent, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
6
6
  import * as redux from 'redux';
7
7
  import { Dispatch } from 'redux';
8
8
  import React from 'react';
9
9
  import { MapCreationFront as MapCreationFront$1 } from 'src/types';
10
10
  import { Loading as Loading$1 } from 'src/types/utils';
11
- import * as immer_dist_internal from 'immer/dist/internal';
12
11
 
13
- type ApplicationRootState = {
12
+ declare type ApplicationRootState = {
14
13
  entities: {
15
14
  applications: EntityState<ApplicationType>;
16
15
  };
@@ -47,9 +46,9 @@ declare const Application: {
47
46
  selectors: _reduxjs_toolkit.EntitySelectors<ApplicationType, ApplicationRootState>;
48
47
  };
49
48
 
50
- type RootState = Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState & WedocAppRootState & ShareRootState>;
51
- type RootDispatch = Dispatch<Action>;
52
- type ThunkApiConfig<T> = {
49
+ declare type RootState = Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState & WedocAppRootState & ShareRootState>;
50
+ declare type RootDispatch = Dispatch<Action>;
51
+ declare type ThunkApiConfig<T> = {
53
52
  dispatch: any;
54
53
  state: RootState & T;
55
54
  extra: {
@@ -57,7 +56,7 @@ type ThunkApiConfig<T> = {
57
56
  };
58
57
  };
59
58
 
60
- type ReservationForm = {
59
+ declare type ReservationForm = {
61
60
  date: string;
62
61
  hourStart: string;
63
62
  hourEnd: string;
@@ -65,7 +64,7 @@ type ReservationForm = {
65
64
  description?: string;
66
65
  };
67
66
 
68
- type MapCreationFront = {
67
+ declare type MapCreationFront = {
69
68
  title: string;
70
69
  type: string;
71
70
  flavor: string;
@@ -75,11 +74,11 @@ type MapCreationFront = {
75
74
  assignLicense: boolean;
76
75
  };
77
76
 
78
- type Loading = {
77
+ declare type Loading = {
79
78
  loading: 'idle' | 'pending';
80
79
  };
81
80
 
82
- type ReservationState = Loading & {
81
+ declare type ReservationState = Loading & {
83
82
  entities: ReservationList[];
84
83
  nbResults: number;
85
84
  form: ReservationForm;
@@ -88,7 +87,7 @@ interface ReservationRootState {
88
87
  reservation: ReservationState;
89
88
  }
90
89
 
91
- type BookableAssetState = Loading & {
90
+ declare type BookableAssetState = Loading & {
92
91
  entities: BookableAssetList[];
93
92
  nbResults: number;
94
93
  };
@@ -96,12 +95,12 @@ interface BookableAssetRootState {
96
95
  bookableAsset: BookableAssetState;
97
96
  }
98
97
 
99
- type Configuration = AssetReservationConfiguration & Loading;
98
+ declare type Configuration = AssetReservationConfiguration & Loading;
100
99
  interface ConfigurationRootState {
101
100
  configuration: Configuration;
102
101
  }
103
102
 
104
- type AssetReservationRootState = {
103
+ declare type AssetReservationRootState = {
105
104
  assetReservation: BookableAssetRootState & ConfigurationRootState & ReservationRootState;
106
105
  };
107
106
  declare const AssetReservation: {
@@ -164,7 +163,7 @@ declare const AssetReservation: {
164
163
  };
165
164
  };
166
165
 
167
- type bookmarkEditState = Loading & {
166
+ declare type bookmarkEditState = Loading & {
168
167
  bookmark: BookmarkRawList | undefined;
169
168
  status: 'success' | 'error' | undefined;
170
169
  };
@@ -172,12 +171,12 @@ interface bookmarkEditRootState {
172
171
  bookmarkEdit: bookmarkEditState;
173
172
  }
174
173
 
175
- type ToastType = 'success' | 'warning' | 'error';
176
- type ToastRootState = {
174
+ declare type ToastType = 'success' | 'warning' | 'error';
175
+ declare type ToastRootState = {
177
176
  toasts: EntityState<ToastEntity>;
178
177
  };
179
- type intlValuesType = Record<string, string | number | boolean | null | undefined | Date | React.ReactElement | ((children: string) => React.ReactElement)>;
180
- type ToastEntity = {
178
+ declare type intlValuesType = Record<string, string | number | boolean | null | undefined | Date | React.ReactElement | ((children: string) => React.ReactElement)>;
179
+ declare type ToastEntity = {
181
180
  id: string;
182
181
  label: string | {
183
182
  id: string;
@@ -196,7 +195,7 @@ declare const actions: {
196
195
  warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
197
196
  error: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
198
197
  };
199
- type Toast = {
198
+ declare type Toast = {
200
199
  id?: string;
201
200
  label: string | {
202
201
  id: string;
@@ -235,7 +234,7 @@ declare const Toast: {
235
234
  selectors: _reduxjs_toolkit.EntitySelectors<ToastEntity, ToastRootState>;
236
235
  };
237
236
 
238
- type bookmarkListState = Loading & {
237
+ declare type bookmarkListState = Loading & {
239
238
  bookmarks: BookmarkRawList[];
240
239
  nbResults: number;
241
240
  status: 'success' | 'error' | undefined;
@@ -255,7 +254,7 @@ interface bookmarkListRootState {
255
254
  bookmarkList: bookmarkListState;
256
255
  }
257
256
 
258
- type BookmarkRootState = {
257
+ declare type BookmarkRootState = {
259
258
  bookmark: bookmarkListRootState & bookmarkEditRootState;
260
259
  };
261
260
  declare const Bookmark: {
@@ -367,7 +366,7 @@ declare const Bookmark: {
367
366
  };
368
367
  getRTHandlers: (dispatch: redux.Dispatch<any>) => ({
369
368
  namespace: "BOOKMARKS";
370
- function: "delete" | "add" | "update";
369
+ function: "add" | "delete" | "update";
371
370
  handler: (message: jamespot_user_api.RTMessageObject<"BOOKMARKS", "update", jamespot_user_api.jObjectBase> | jamespot_user_api.RTMessageObject<"BOOKMARKS", "add", jamespot_user_api.jObjectBase> | jamespot_user_api.RTMessageObject<"BOOKMARKS", "delete", jamespot_user_api.jObjectBase>) => void;
372
371
  } | {
373
372
  namespace: "CUSTOM-ACTION";
@@ -376,19 +375,62 @@ declare const Bookmark: {
376
375
  })[];
377
376
  };
378
377
 
379
- type MapCreateState = Loading$1 & {
378
+ declare type FaqConfigState = Loading & Partial<FaqHookProperties> & {
379
+ taxonomyId?: string;
380
+ };
381
+ declare const FaqConfigSlice: _reduxjs_toolkit.Slice<FaqConfigState, {}, "config">;
382
+
383
+ declare const FaqSlice: {
384
+ name: "faq";
385
+ reducer: redux.Reducer<redux.CombinedState<{
386
+ config: FaqConfigState;
387
+ }>, redux.AnyAction>;
388
+ };
389
+ declare type FaqRootState = {
390
+ [FaqSlice.name]: {
391
+ [FaqConfigSlice.name]: FaqConfigState;
392
+ };
393
+ };
394
+ declare const Faq: {
395
+ slice: {
396
+ name: "faq";
397
+ reducer: redux.Reducer<redux.CombinedState<{
398
+ config: FaqConfigState;
399
+ }>, redux.AnyAction>;
400
+ };
401
+ actions: {
402
+ fetchFaqConfig: _reduxjs_toolkit.AsyncThunk<{
403
+ taxonomyId: string;
404
+ _web: "" | "0" | "1";
405
+ }, void, {
406
+ state?: unknown;
407
+ dispatch?: redux.Dispatch<redux.AnyAction>;
408
+ extra?: unknown;
409
+ rejectValue?: unknown;
410
+ serializedErrorType?: unknown;
411
+ pendingMeta?: unknown;
412
+ fulfilledMeta?: unknown;
413
+ rejectedMeta?: unknown;
414
+ }>;
415
+ };
416
+ selectors: {
417
+ selectFaqConfig: (state: FaqRootState) => FaqConfigState;
418
+ };
419
+ };
420
+
421
+ declare type MapCreateState = Loading$1 & {
380
422
  map: MapCreationFront$1;
381
423
  status: 'success' | 'error' | undefined;
382
424
  msg: string | undefined;
383
425
  };
384
- type MapCreateRootState = {
426
+ declare type MapCreateRootState = {
385
427
  mapCreate: MapCreateState;
386
428
  };
387
429
 
388
- type JLandMapFront$1 = JLandMap & {
430
+ declare type JLandMapFront$1 = JLandMap & {
389
431
  urlToJland?: string;
390
432
  };
391
- type JLandMapListState = {
433
+ declare type JLandMapListState = {
392
434
  maps: Array<JLandMapFront$1>;
393
435
  availableLicenses: AdminLicensesNotAssigned;
394
436
  loading: 'idle' | 'pending';
@@ -398,14 +440,14 @@ type JLandMapListState = {
398
440
  };
399
441
  loadingMapDeletion: 'idle' | 'pending';
400
442
  };
401
- type JLandMapListRootState = {
443
+ declare type JLandMapListRootState = {
402
444
  jLandMapList: JLandMapListState;
403
445
  };
404
446
 
405
- type JLandMapFront = JLandMap & {
447
+ declare type JLandMapFront = JLandMap & {
406
448
  urlToJland?: string;
407
449
  };
408
- type JLandRootState = {
450
+ declare type JLandRootState = {
409
451
  jland: JLandMapListRootState & MapCreateRootState;
410
452
  };
411
453
  declare const jland: {
@@ -526,7 +568,7 @@ declare const jland: {
526
568
  };
527
569
  };
528
570
 
529
- type ModelRootState = {
571
+ declare type ModelRootState = {
530
572
  entities: {
531
573
  models: EntityState<Model$1>;
532
574
  };
@@ -573,7 +615,59 @@ declare const Model: {
573
615
  };
574
616
  };
575
617
 
576
- type WedocAppState = {
618
+ declare type Network$1 = {
619
+ uri: string;
620
+ title: string;
621
+ type: string;
622
+ mainType: string;
623
+ };
624
+ declare type NetworkStaticsState = {
625
+ networkPublic?: Network$1;
626
+ networkMe?: Network$1;
627
+ };
628
+ declare const NetworkStaticsSlice: _reduxjs_toolkit.Slice<NetworkStaticsState, {
629
+ initNetworkStatics: (_: Draft<S>, { payload }: PayloadAction<NetworkStaticsState>) => NetworkStaticsState;
630
+ }, "statics">;
631
+
632
+ declare const NetworkSlice: {
633
+ name: "network";
634
+ reducer: redux.Reducer<redux.CombinedState<{
635
+ statics: NetworkStaticsState;
636
+ }>, redux.AnyAction>;
637
+ };
638
+ declare type NetworkRootState = {
639
+ [NetworkSlice.name]: {
640
+ [NetworkStaticsSlice.name]: NetworkStaticsState;
641
+ };
642
+ };
643
+ declare const Network: {
644
+ slice: {
645
+ name: "network";
646
+ reducer: redux.Reducer<redux.CombinedState<{
647
+ statics: NetworkStaticsState;
648
+ }>, redux.AnyAction>;
649
+ };
650
+ actions: {
651
+ initNetworkStatics: _reduxjs_toolkit.ActionCreatorWithPayload<NetworkStaticsState, "statics/initNetworkStatics">;
652
+ };
653
+ selectors: {
654
+ selectNetworkStatics: (state: NetworkRootState) => NetworkStaticsState;
655
+ selectNetworkPublic: (state: NetworkRootState) => {
656
+ uri: string;
657
+ title: string;
658
+ type: string;
659
+ mainType: string;
660
+ } | undefined;
661
+ selectNetworkMe: (state: NetworkRootState) => {
662
+ uri: string;
663
+ title: string;
664
+ type: string;
665
+ mainType: string;
666
+ } | undefined;
667
+ };
668
+ };
669
+
670
+ declare type WedocAppState = {
577
671
  entities: WedocFileType[];
578
672
  nbEntities: number;
579
673
  entitiesRecent: WedocFileType[];
@@ -584,21 +678,21 @@ type WedocAppState = {
584
678
  page: number;
585
679
  };
586
680
 
587
- type WedocAppRootState = {
681
+ declare type WedocAppRootState = {
588
682
  wedoc: WedocAppState;
589
683
  };
590
- type WedocAppTabKeys = 'my-documents' | 'all-documents';
684
+ declare type WedocAppTabKeys = 'my-documents' | 'all-documents';
591
685
  declare const WedocApp: {
592
686
  slice: _reduxjs_toolkit.Slice<WedocAppState, {
593
- update: (state: immer_dist_internal.WritableDraft<WedocAppState>, action: {
687
+ update: (state: Draft<S>, action: {
594
688
  payload: jamespot_user_api.WedocFileType;
595
689
  type: string;
596
690
  }) => void;
597
- setQuery: (state: immer_dist_internal.WritableDraft<WedocAppState>, action: {
691
+ setQuery: (state: Draft<S>, action: {
598
692
  payload: string;
599
693
  type: string;
600
694
  }) => void;
601
- setTab: (state: immer_dist_internal.WritableDraft<WedocAppState>, action: {
695
+ setTab: (state: Draft<S>, action: {
602
696
  payload: WedocAppTabKeys;
603
697
  type: string;
604
698
  }) => void;
@@ -650,18 +744,18 @@ declare const WedocApp: {
650
744
  };
651
745
  };
652
746
 
653
- type ShareAppState = {
747
+ declare type ShareAppState = {
654
748
  entities: jUserLittle[];
655
749
  nbEntities: number;
656
750
  loading: 'idle' | 'pending';
657
751
  };
658
752
 
659
- type ShareRootState = {
753
+ declare type ShareRootState = {
660
754
  share: ShareAppState;
661
755
  };
662
756
  declare const Share: {
663
757
  slice: _reduxjs_toolkit.Slice<ShareAppState, {
664
- remove: (state: immer_dist_internal.WritableDraft<ShareAppState>, action: {
758
+ remove: (state: Draft<S>, action: {
665
759
  payload: number;
666
760
  type: string;
667
761
  }) => void;
@@ -691,17 +785,17 @@ declare const Share: {
691
785
  };
692
786
  };
693
787
 
694
- type ChannelsListState = Loading & {
788
+ declare type ChannelsListState = Loading & {
695
789
  channels: PagingResults<TVChannelList> | undefined;
696
790
  loadingChannelDeletion: 'idle' | 'pending';
697
791
  };
698
- type ChannelsListRootState = {
792
+ declare type ChannelsListRootState = {
699
793
  channelsList: ChannelsListState;
700
794
  };
701
795
 
702
796
  declare function isChannelConfigured(channel: TVChannelList): boolean;
703
797
 
704
- type TVDisplayRootState = {
798
+ declare type TVDisplayRootState = {
705
799
  tvDisplay: ChannelsListRootState;
706
800
  };
707
801
  declare const TVDisplay: {
@@ -751,15 +845,15 @@ declare const TVDisplay: {
751
845
  };
752
846
  };
753
847
 
754
- type UserCurrentRootState = {
848
+ declare type UserCurrentRootState = {
755
849
  userCurrent: jUserList;
756
850
  };
757
851
  declare const slice: _reduxjs_toolkit.Slice<jUserList, {
758
- init: (_: immer_dist_internal.WritableDraft<jUserList>, { payload }: PayloadAction<jUserList>) => jUserList;
852
+ init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => jUserList;
759
853
  }, "userCurrent">;
760
854
  declare const UserCurrent: {
761
855
  slice: _reduxjs_toolkit.Slice<jUserList, {
762
- init: (_: immer_dist_internal.WritableDraft<jUserList>, { payload }: PayloadAction<jUserList>) => jUserList;
856
+ init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => jUserList;
763
857
  }, "userCurrent">;
764
858
  actions: {
765
859
  init: _reduxjs_toolkit.ActionCreatorWithPayload<jUserList, "userCurrent/init">;
@@ -804,7 +898,7 @@ declare function widgetDefinition(name: WidgetKeys | undefined): WidgetDefinitio
804
898
 
805
899
  declare const MODE_EDIT = "edit";
806
900
  declare const MODE_VIEW = "view";
807
- type WidgetModalProps = {
901
+ declare type WidgetModalProps = {
808
902
  title?: string;
809
903
  view?: any;
810
904
  };
@@ -816,29 +910,29 @@ declare const Widget: {
816
910
  uniqid: typeof uniqid;
817
911
  };
818
912
  slice: _reduxjs_toolkit.Slice<WidgetsState, {
819
- registerWidget: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
913
+ registerWidget: (state: Draft<S>, action: PayloadAction<{
820
914
  uniqid: string;
821
915
  widget: WidgetWrapperProps;
822
916
  }>) => void;
823
- updateWidget: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
917
+ updateWidget: (state: Draft<S>, action: PayloadAction<{
824
918
  uniqid: string;
825
919
  content: CombinedWidgetContent;
826
920
  override?: boolean;
827
921
  }>) => void;
828
- flushWidget: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
922
+ flushWidget: (state: Draft<S>, action: PayloadAction<{
829
923
  uniqid: string;
830
924
  }>) => void;
831
- flushAllWidget: (state: immer_dist_internal.WritableDraft<WidgetsState>) => void;
832
- updateWidgetWrapper: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
925
+ flushAllWidget: (state: Draft<S>) => void;
926
+ updateWidgetWrapper: (state: Draft<S>, action: PayloadAction<{
833
927
  uniqid: string;
834
928
  title?: string;
835
929
  position?: WidgetVector;
836
930
  }>) => void;
837
- registerLayer: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
931
+ registerLayer: (state: Draft<S>, action: PayloadAction<{
838
932
  uniqid: string;
839
933
  widget: WidgetWrapperProps;
840
934
  }>) => void;
841
- updateLayer: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
935
+ updateLayer: (state: Draft<S>, action: PayloadAction<{
842
936
  uniqid: string;
843
937
  props: {
844
938
  locked?: boolean;
@@ -849,31 +943,31 @@ declare const Widget: {
849
943
  };
850
944
  };
851
945
  }>) => void;
852
- flushLayer: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
946
+ flushLayer: (state: Draft<S>, action: PayloadAction<{
853
947
  uniqid: string;
854
948
  layerId: string;
855
949
  }>) => void;
856
- prevEditableIndex: (state: immer_dist_internal.WritableDraft<WidgetsState>) => void;
857
- nextEditableIndex: (state: immer_dist_internal.WritableDraft<WidgetsState>) => void;
858
- setEditableIndex: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
950
+ prevEditableIndex: (state: Draft<S>) => void;
951
+ nextEditableIndex: (state: Draft<S>) => void;
952
+ setEditableIndex: (state: Draft<S>, action: PayloadAction<{
859
953
  index: number;
860
954
  }>) => void;
861
- setEditableWidgetId: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
955
+ setEditableWidgetId: (state: Draft<S>, action: PayloadAction<{
862
956
  uniqid: string | undefined;
863
957
  }>) => void;
864
- registerEditableWidget: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
958
+ registerEditableWidget: (state: Draft<S>, action: PayloadAction<{
865
959
  index: number;
866
960
  uniqid: string;
867
961
  }>) => void;
868
- setToken: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
962
+ setToken: (state: Draft<S>, action: PayloadAction<{
869
963
  token: string;
870
964
  }>) => void;
871
- setWidgetState: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<{
965
+ setWidgetState: (state: Draft<S>, action: PayloadAction<{
872
966
  uniqid: string;
873
967
  } & WidgetStateProps>) => void;
874
- setAllWidgetStates: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<WidgetStateProps>) => void;
875
- registerModal: (state: immer_dist_internal.WritableDraft<WidgetsState>, action: PayloadAction<WidgetModalProps>) => void;
876
- flushModal: (state: immer_dist_internal.WritableDraft<WidgetsState>) => void;
968
+ setAllWidgetStates: (state: Draft<S>, action: PayloadAction<WidgetStateProps>) => void;
969
+ registerModal: (state: Draft<S>, action: PayloadAction<WidgetModalProps>) => void;
970
+ flushModal: (state: Draft<S>) => void;
877
971
  }, "widgets">;
878
972
  selectors: {
879
973
  selectToken: (state: WidgetsRootState) => string | undefined;
@@ -885,40 +979,40 @@ declare const Widget: {
885
979
  };
886
980
  };
887
981
 
888
- type EditorProps = {
982
+ declare type EditorProps = {
889
983
  uniqid: string;
890
984
  name: WidgetKeys;
891
985
  position: 'left' | 'right';
892
986
  popup?: boolean;
893
987
  view?: any;
894
988
  };
895
- type EditorsState = {
989
+ declare type EditorsState = {
896
990
  editors: EditorProps[];
897
991
  };
898
- type EditorsRootState = {
992
+ declare type EditorsRootState = {
899
993
  editors: EditorsState;
900
994
  };
901
995
  declare const WidgetEditor: {
902
996
  slice: _reduxjs_toolkit.Slice<EditorsState, {
903
- registerEditor: (state: immer_dist_internal.WritableDraft<EditorsState>, action: PayloadAction<{
997
+ registerEditor: (state: Draft<S>, action: PayloadAction<{
904
998
  uniqid: string;
905
999
  name: keyof WidgetTypeKeys;
906
1000
  }>) => void;
907
- registerEditorPopup: (state: immer_dist_internal.WritableDraft<EditorsState>, action: PayloadAction<{
1001
+ registerEditorPopup: (state: Draft<S>, action: PayloadAction<{
908
1002
  uniqid: string;
909
1003
  view: any;
910
1004
  }>) => void;
911
- flushEditorPopup: (state: immer_dist_internal.WritableDraft<EditorsState>, action: PayloadAction<{
1005
+ flushEditorPopup: (state: Draft<S>, action: PayloadAction<{
912
1006
  uniqid: string;
913
1007
  }>) => void;
914
- setEditorPosition: (state: immer_dist_internal.WritableDraft<EditorsState>, action: PayloadAction<{
1008
+ setEditorPosition: (state: Draft<S>, action: PayloadAction<{
915
1009
  uniqid: string;
916
1010
  position: 'left' | 'right';
917
1011
  }>) => void;
918
- flushEditor: (state: immer_dist_internal.WritableDraft<EditorsState>, action: PayloadAction<{
1012
+ flushEditor: (state: Draft<S>, action: PayloadAction<{
919
1013
  uniqid: string;
920
1014
  }>) => void;
921
- flushAllEditor: (state: immer_dist_internal.WritableDraft<EditorsState>) => void;
1015
+ flushAllEditor: (state: Draft<S>) => void;
922
1016
  }, "editors">;
923
1017
  selectors: {
924
1018
  selectEditors: (state: EditorsRootState) => EditorProps[];
@@ -926,4 +1020,4 @@ declare const WidgetEditor: {
926
1020
  };
927
1021
  };
928
1022
 
929
- export { Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, EditorProps, EditorsRootState, EditorsState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, Model, ModelRootState, ReservationForm, RootDispatch, RootState, Share, ShareRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, Toast, ToastRootState, UserCurrent, UserCurrentRootState, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice };
1023
+ export { Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, EditorProps, EditorsRootState, EditorsState, Faq, FaqRootState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, Model, ModelRootState, Network, NetworkRootState, ReservationForm, RootDispatch, RootState, Share, ShareRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, Toast, ToastRootState, UserCurrent, UserCurrentRootState, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice };
package/package.json CHANGED
@@ -1,53 +1,53 @@
1
1
  {
2
- "name": "jamespot-front-business",
3
- "version": "1.1.20",
4
- "description": "typescript utils",
5
- "main": "dist/cjs.js",
6
- "module": "dist/esm.js",
7
- "types": "dist/types.d.ts",
8
- "scripts": {
9
- "build": "rollup -c",
10
- "watch": "rollup -c -w",
11
- "format": "prettier --write --plugin-search-dir=. .",
12
- "lint": "eslint --ignore-path .gitignore .",
13
- "test": "jest",
14
- "test:one": "jest --coverage=0",
15
- "test:clearJest": "jest --clearCache"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+ssh://git@github.com/Jamespot/jamespot-front-business.git"
20
- },
21
- "keywords": [
22
- "typescript",
23
- "jamespot",
24
- "api",
25
- "redux"
26
- ],
27
- "author": "Jamespot",
28
- "devDependencies": {
29
- "@changesets/cli": "^2.24.3",
30
- "@rollup/plugin-commonjs": "^22.0.2",
31
- "@rollup/plugin-typescript": "^8.3.3",
32
- "@types/jest": "^28.1.4",
33
- "@types/react": "^17.0.2",
34
- "@typescript-eslint/eslint-plugin": "^5.30.5",
35
- "@typescript-eslint/parser": "^5.30.5",
36
- "eslint": "^8.19.0",
37
- "eslint-config-prettier": "^8.5.0",
38
- "jest": "^28.1.2",
39
- "jest-environment-jsdom": "^29.0.1",
40
- "prettier": "^2.7.1",
41
- "rollup": "^2.75.7",
42
- "rollup-plugin-dts": "^4.2.2",
43
- "ts-jest": "^28.0.5",
44
- "tslib": "^2.4.0",
45
- "typescript": "^4.7.4"
46
- },
47
- "dependencies": {
48
- "@reduxjs/toolkit": "1.9.0",
49
- "jamespot-user-api": "^1.0.114",
50
- "react-redux": "7.2.9",
51
- "redux": "4.2.0"
52
- }
53
- }
2
+ "name": "jamespot-front-business",
3
+ "version": "1.1.22",
4
+ "description": "typescript utils",
5
+ "main": "dist/cjs.js",
6
+ "module": "dist/esm.js",
7
+ "types": "dist/types.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+ssh://git@github.com/Jamespot/jamespot-front-business.git"
11
+ },
12
+ "keywords": [
13
+ "typescript",
14
+ "jamespot",
15
+ "api",
16
+ "redux"
17
+ ],
18
+ "author": "Jamespot",
19
+ "devDependencies": {
20
+ "@changesets/cli": "^2.24.3",
21
+ "@rollup/plugin-commonjs": "^22.0.2",
22
+ "@rollup/plugin-typescript": "^8.3.3",
23
+ "@types/jest": "^28.1.4",
24
+ "@types/react": "^17.0.2",
25
+ "@typescript-eslint/eslint-plugin": "^5.30.5",
26
+ "@typescript-eslint/parser": "^5.30.5",
27
+ "eslint": "^8.19.0",
28
+ "eslint-config-prettier": "^8.5.0",
29
+ "jest": "^28.1.2",
30
+ "jest-environment-jsdom": "^29.0.1",
31
+ "prettier": "^2.7.1",
32
+ "rollup": "^2.75.7",
33
+ "rollup-plugin-dts": "^4.2.2",
34
+ "ts-jest": "^28.0.5",
35
+ "tslib": "^2.4.0",
36
+ "typescript": "^4.7.4"
37
+ },
38
+ "dependencies": {
39
+ "@reduxjs/toolkit": "1.9.0",
40
+ "jamespot-user-api": "^1.0.116",
41
+ "react-redux": "7.2.9",
42
+ "redux": "4.2.0"
43
+ },
44
+ "scripts": {
45
+ "build": "rollup -c",
46
+ "watch": "rollup -c -w",
47
+ "format": "prettier --write --plugin-search-dir=. .",
48
+ "lint": "eslint --ignore-path .gitignore .",
49
+ "test": "jest",
50
+ "test:one": "jest --coverage=0",
51
+ "test:clearJest": "jest --clearCache"
52
+ }
53
+ }