jamespot-front-business 1.1.21 → 1.1.23
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/cjs.js +3 -4
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +3 -4
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +78 -78
- package/package.json +52 -52
- package/pnpm-lock.yaml +0 -4790
package/dist/types.d.ts
CHANGED
|
@@ -8,9 +8,8 @@ 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: "
|
|
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,7 +375,7 @@ declare const Bookmark: {
|
|
|
376
375
|
})[];
|
|
377
376
|
};
|
|
378
377
|
|
|
379
|
-
type FaqConfigState = Loading & Partial<FaqHookProperties> & {
|
|
378
|
+
declare type FaqConfigState = Loading & Partial<FaqHookProperties> & {
|
|
380
379
|
taxonomyId?: string;
|
|
381
380
|
};
|
|
382
381
|
declare const FaqConfigSlice: _reduxjs_toolkit.Slice<FaqConfigState, {}, "config">;
|
|
@@ -387,7 +386,7 @@ declare const FaqSlice: {
|
|
|
387
386
|
config: FaqConfigState;
|
|
388
387
|
}>, redux.AnyAction>;
|
|
389
388
|
};
|
|
390
|
-
type FaqRootState = {
|
|
389
|
+
declare type FaqRootState = {
|
|
391
390
|
[FaqSlice.name]: {
|
|
392
391
|
[FaqConfigSlice.name]: FaqConfigState;
|
|
393
392
|
};
|
|
@@ -419,19 +418,19 @@ declare const Faq: {
|
|
|
419
418
|
};
|
|
420
419
|
};
|
|
421
420
|
|
|
422
|
-
type MapCreateState = Loading$1 & {
|
|
421
|
+
declare type MapCreateState = Loading$1 & {
|
|
423
422
|
map: MapCreationFront$1;
|
|
424
423
|
status: 'success' | 'error' | undefined;
|
|
425
424
|
msg: string | undefined;
|
|
426
425
|
};
|
|
427
|
-
type MapCreateRootState = {
|
|
426
|
+
declare type MapCreateRootState = {
|
|
428
427
|
mapCreate: MapCreateState;
|
|
429
428
|
};
|
|
430
429
|
|
|
431
|
-
type JLandMapFront$1 = JLandMap & {
|
|
430
|
+
declare type JLandMapFront$1 = JLandMap & {
|
|
432
431
|
urlToJland?: string;
|
|
433
432
|
};
|
|
434
|
-
type JLandMapListState = {
|
|
433
|
+
declare type JLandMapListState = {
|
|
435
434
|
maps: Array<JLandMapFront$1>;
|
|
436
435
|
availableLicenses: AdminLicensesNotAssigned;
|
|
437
436
|
loading: 'idle' | 'pending';
|
|
@@ -441,14 +440,14 @@ type JLandMapListState = {
|
|
|
441
440
|
};
|
|
442
441
|
loadingMapDeletion: 'idle' | 'pending';
|
|
443
442
|
};
|
|
444
|
-
type JLandMapListRootState = {
|
|
443
|
+
declare type JLandMapListRootState = {
|
|
445
444
|
jLandMapList: JLandMapListState;
|
|
446
445
|
};
|
|
447
446
|
|
|
448
|
-
type JLandMapFront = JLandMap & {
|
|
447
|
+
declare type JLandMapFront = JLandMap & {
|
|
449
448
|
urlToJland?: string;
|
|
450
449
|
};
|
|
451
|
-
type JLandRootState = {
|
|
450
|
+
declare type JLandRootState = {
|
|
452
451
|
jland: JLandMapListRootState & MapCreateRootState;
|
|
453
452
|
};
|
|
454
453
|
declare const jland: {
|
|
@@ -569,7 +568,7 @@ declare const jland: {
|
|
|
569
568
|
};
|
|
570
569
|
};
|
|
571
570
|
|
|
572
|
-
type ModelRootState = {
|
|
571
|
+
declare type ModelRootState = {
|
|
573
572
|
entities: {
|
|
574
573
|
models: EntityState<Model$1>;
|
|
575
574
|
};
|
|
@@ -616,18 +615,18 @@ declare const Model: {
|
|
|
616
615
|
};
|
|
617
616
|
};
|
|
618
617
|
|
|
619
|
-
type Network$1 = {
|
|
618
|
+
declare type Network$1 = {
|
|
620
619
|
uri: string;
|
|
621
620
|
title: string;
|
|
622
621
|
type: string;
|
|
623
622
|
mainType: string;
|
|
624
623
|
};
|
|
625
|
-
type NetworkStaticsState = {
|
|
624
|
+
declare type NetworkStaticsState = {
|
|
626
625
|
networkPublic?: Network$1;
|
|
627
626
|
networkMe?: Network$1;
|
|
628
627
|
};
|
|
629
628
|
declare const NetworkStaticsSlice: _reduxjs_toolkit.Slice<NetworkStaticsState, {
|
|
630
|
-
initNetworkStatics: (_:
|
|
629
|
+
initNetworkStatics: (_: Draft<S>, { payload }: PayloadAction<NetworkStaticsState>) => NetworkStaticsState;
|
|
631
630
|
}, "statics">;
|
|
632
631
|
|
|
633
632
|
declare const NetworkSlice: {
|
|
@@ -636,7 +635,7 @@ declare const NetworkSlice: {
|
|
|
636
635
|
statics: NetworkStaticsState;
|
|
637
636
|
}>, redux.AnyAction>;
|
|
638
637
|
};
|
|
639
|
-
type NetworkRootState = {
|
|
638
|
+
declare type NetworkRootState = {
|
|
640
639
|
[NetworkSlice.name]: {
|
|
641
640
|
[NetworkStaticsSlice.name]: NetworkStaticsState;
|
|
642
641
|
};
|
|
@@ -668,7 +667,7 @@ declare const Network: {
|
|
|
668
667
|
};
|
|
669
668
|
};
|
|
670
669
|
|
|
671
|
-
type WedocAppState = {
|
|
670
|
+
declare type WedocAppState = {
|
|
672
671
|
entities: WedocFileType[];
|
|
673
672
|
nbEntities: number;
|
|
674
673
|
entitiesRecent: WedocFileType[];
|
|
@@ -679,21 +678,21 @@ type WedocAppState = {
|
|
|
679
678
|
page: number;
|
|
680
679
|
};
|
|
681
680
|
|
|
682
|
-
type WedocAppRootState = {
|
|
681
|
+
declare type WedocAppRootState = {
|
|
683
682
|
wedoc: WedocAppState;
|
|
684
683
|
};
|
|
685
|
-
type WedocAppTabKeys = 'my-documents' | 'all-documents';
|
|
684
|
+
declare type WedocAppTabKeys = 'my-documents' | 'all-documents';
|
|
686
685
|
declare const WedocApp: {
|
|
687
686
|
slice: _reduxjs_toolkit.Slice<WedocAppState, {
|
|
688
|
-
update: (state:
|
|
687
|
+
update: (state: Draft<S>, action: {
|
|
689
688
|
payload: jamespot_user_api.WedocFileType;
|
|
690
689
|
type: string;
|
|
691
690
|
}) => void;
|
|
692
|
-
setQuery: (state:
|
|
691
|
+
setQuery: (state: Draft<S>, action: {
|
|
693
692
|
payload: string;
|
|
694
693
|
type: string;
|
|
695
694
|
}) => void;
|
|
696
|
-
setTab: (state:
|
|
695
|
+
setTab: (state: Draft<S>, action: {
|
|
697
696
|
payload: WedocAppTabKeys;
|
|
698
697
|
type: string;
|
|
699
698
|
}) => void;
|
|
@@ -745,18 +744,18 @@ declare const WedocApp: {
|
|
|
745
744
|
};
|
|
746
745
|
};
|
|
747
746
|
|
|
748
|
-
type ShareAppState = {
|
|
747
|
+
declare type ShareAppState = {
|
|
749
748
|
entities: jUserLittle[];
|
|
750
749
|
nbEntities: number;
|
|
751
750
|
loading: 'idle' | 'pending';
|
|
752
751
|
};
|
|
753
752
|
|
|
754
|
-
type ShareRootState = {
|
|
753
|
+
declare type ShareRootState = {
|
|
755
754
|
share: ShareAppState;
|
|
756
755
|
};
|
|
757
756
|
declare const Share: {
|
|
758
757
|
slice: _reduxjs_toolkit.Slice<ShareAppState, {
|
|
759
|
-
remove: (state:
|
|
758
|
+
remove: (state: Draft<S>, action: {
|
|
760
759
|
payload: number;
|
|
761
760
|
type: string;
|
|
762
761
|
}) => void;
|
|
@@ -786,17 +785,17 @@ declare const Share: {
|
|
|
786
785
|
};
|
|
787
786
|
};
|
|
788
787
|
|
|
789
|
-
type ChannelsListState = Loading & {
|
|
788
|
+
declare type ChannelsListState = Loading & {
|
|
790
789
|
channels: PagingResults<TVChannelList> | undefined;
|
|
791
790
|
loadingChannelDeletion: 'idle' | 'pending';
|
|
792
791
|
};
|
|
793
|
-
type ChannelsListRootState = {
|
|
792
|
+
declare type ChannelsListRootState = {
|
|
794
793
|
channelsList: ChannelsListState;
|
|
795
794
|
};
|
|
796
795
|
|
|
797
796
|
declare function isChannelConfigured(channel: TVChannelList): boolean;
|
|
798
797
|
|
|
799
|
-
type TVDisplayRootState = {
|
|
798
|
+
declare type TVDisplayRootState = {
|
|
800
799
|
tvDisplay: ChannelsListRootState;
|
|
801
800
|
};
|
|
802
801
|
declare const TVDisplay: {
|
|
@@ -846,15 +845,15 @@ declare const TVDisplay: {
|
|
|
846
845
|
};
|
|
847
846
|
};
|
|
848
847
|
|
|
849
|
-
type UserCurrentRootState = {
|
|
848
|
+
declare type UserCurrentRootState = {
|
|
850
849
|
userCurrent: jUserList;
|
|
851
850
|
};
|
|
852
851
|
declare const slice: _reduxjs_toolkit.Slice<jUserList, {
|
|
853
|
-
init: (_:
|
|
852
|
+
init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => jUserList;
|
|
854
853
|
}, "userCurrent">;
|
|
855
854
|
declare const UserCurrent: {
|
|
856
855
|
slice: _reduxjs_toolkit.Slice<jUserList, {
|
|
857
|
-
init: (_:
|
|
856
|
+
init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => jUserList;
|
|
858
857
|
}, "userCurrent">;
|
|
859
858
|
actions: {
|
|
860
859
|
init: _reduxjs_toolkit.ActionCreatorWithPayload<jUserList, "userCurrent/init">;
|
|
@@ -899,7 +898,7 @@ declare function widgetDefinition(name: WidgetKeys | undefined): WidgetDefinitio
|
|
|
899
898
|
|
|
900
899
|
declare const MODE_EDIT = "edit";
|
|
901
900
|
declare const MODE_VIEW = "view";
|
|
902
|
-
type WidgetModalProps = {
|
|
901
|
+
declare type WidgetModalProps = {
|
|
903
902
|
title?: string;
|
|
904
903
|
view?: any;
|
|
905
904
|
};
|
|
@@ -911,29 +910,29 @@ declare const Widget: {
|
|
|
911
910
|
uniqid: typeof uniqid;
|
|
912
911
|
};
|
|
913
912
|
slice: _reduxjs_toolkit.Slice<WidgetsState, {
|
|
914
|
-
registerWidget: (state:
|
|
913
|
+
registerWidget: (state: Draft<S>, action: PayloadAction<{
|
|
915
914
|
uniqid: string;
|
|
916
915
|
widget: WidgetWrapperProps;
|
|
917
916
|
}>) => void;
|
|
918
|
-
updateWidget: (state:
|
|
917
|
+
updateWidget: (state: Draft<S>, action: PayloadAction<{
|
|
919
918
|
uniqid: string;
|
|
920
919
|
content: CombinedWidgetContent;
|
|
921
920
|
override?: boolean;
|
|
922
921
|
}>) => void;
|
|
923
|
-
flushWidget: (state:
|
|
922
|
+
flushWidget: (state: Draft<S>, action: PayloadAction<{
|
|
924
923
|
uniqid: string;
|
|
925
924
|
}>) => void;
|
|
926
|
-
flushAllWidget: (state:
|
|
927
|
-
updateWidgetWrapper: (state:
|
|
925
|
+
flushAllWidget: (state: Draft<S>) => void;
|
|
926
|
+
updateWidgetWrapper: (state: Draft<S>, action: PayloadAction<{
|
|
928
927
|
uniqid: string;
|
|
929
928
|
title?: string;
|
|
930
929
|
position?: WidgetVector;
|
|
931
930
|
}>) => void;
|
|
932
|
-
registerLayer: (state:
|
|
931
|
+
registerLayer: (state: Draft<S>, action: PayloadAction<{
|
|
933
932
|
uniqid: string;
|
|
934
933
|
widget: WidgetWrapperProps;
|
|
935
934
|
}>) => void;
|
|
936
|
-
updateLayer: (state:
|
|
935
|
+
updateLayer: (state: Draft<S>, action: PayloadAction<{
|
|
937
936
|
uniqid: string;
|
|
938
937
|
props: {
|
|
939
938
|
locked?: boolean;
|
|
@@ -944,33 +943,34 @@ declare const Widget: {
|
|
|
944
943
|
};
|
|
945
944
|
};
|
|
946
945
|
}>) => void;
|
|
947
|
-
flushLayer: (state:
|
|
946
|
+
flushLayer: (state: Draft<S>, action: PayloadAction<{
|
|
948
947
|
uniqid: string;
|
|
949
948
|
layerId: string;
|
|
950
949
|
}>) => void;
|
|
951
|
-
prevEditableIndex: (state:
|
|
952
|
-
nextEditableIndex: (state:
|
|
953
|
-
setEditableIndex: (state:
|
|
950
|
+
prevEditableIndex: (state: Draft<S>) => void;
|
|
951
|
+
nextEditableIndex: (state: Draft<S>) => void;
|
|
952
|
+
setEditableIndex: (state: Draft<S>, action: PayloadAction<{
|
|
954
953
|
index: number;
|
|
955
954
|
}>) => void;
|
|
956
|
-
setEditableWidgetId: (state:
|
|
955
|
+
setEditableWidgetId: (state: Draft<S>, action: PayloadAction<{
|
|
957
956
|
uniqid: string | undefined;
|
|
958
957
|
}>) => void;
|
|
959
|
-
registerEditableWidget: (state:
|
|
958
|
+
registerEditableWidget: (state: Draft<S>, action: PayloadAction<{
|
|
960
959
|
index: number;
|
|
961
960
|
uniqid: string;
|
|
962
961
|
}>) => void;
|
|
963
|
-
setToken: (state:
|
|
962
|
+
setToken: (state: Draft<S>, action: PayloadAction<{
|
|
964
963
|
token: string;
|
|
965
964
|
}>) => void;
|
|
966
|
-
setWidgetState: (state:
|
|
965
|
+
setWidgetState: (state: Draft<S>, action: PayloadAction<{
|
|
967
966
|
uniqid: string;
|
|
968
967
|
} & WidgetStateProps>) => void;
|
|
969
|
-
setAllWidgetStates: (state:
|
|
970
|
-
registerModal: (state:
|
|
971
|
-
flushModal: (state:
|
|
968
|
+
setAllWidgetStates: (state: Draft<S>, action: PayloadAction<WidgetStateProps>) => void;
|
|
969
|
+
registerModal: (state: Draft<S>, action: PayloadAction<WidgetModalProps>) => void;
|
|
970
|
+
flushModal: (state: Draft<S>) => void;
|
|
972
971
|
}, "widgets">;
|
|
973
972
|
selectors: {
|
|
973
|
+
isActive: (state: WidgetsRootState, uniqid: string) => boolean;
|
|
974
974
|
selectToken: (state: WidgetsRootState) => string | undefined;
|
|
975
975
|
selectWidgets: (state: WidgetsRootState) => Record<string, WidgetWrapperProps<jamespot_user_api.CombinedWidgetType>>;
|
|
976
976
|
selectWidget: (state: WidgetsRootState, uniqid: string) => WidgetWrapperProps<jamespot_user_api.CombinedWidgetType> | undefined;
|
|
@@ -980,40 +980,40 @@ declare const Widget: {
|
|
|
980
980
|
};
|
|
981
981
|
};
|
|
982
982
|
|
|
983
|
-
type EditorProps = {
|
|
983
|
+
declare type EditorProps = {
|
|
984
984
|
uniqid: string;
|
|
985
985
|
name: WidgetKeys;
|
|
986
986
|
position: 'left' | 'right';
|
|
987
987
|
popup?: boolean;
|
|
988
988
|
view?: any;
|
|
989
989
|
};
|
|
990
|
-
type EditorsState = {
|
|
990
|
+
declare type EditorsState = {
|
|
991
991
|
editors: EditorProps[];
|
|
992
992
|
};
|
|
993
|
-
type EditorsRootState = {
|
|
993
|
+
declare type EditorsRootState = {
|
|
994
994
|
editors: EditorsState;
|
|
995
995
|
};
|
|
996
996
|
declare const WidgetEditor: {
|
|
997
997
|
slice: _reduxjs_toolkit.Slice<EditorsState, {
|
|
998
|
-
registerEditor: (state:
|
|
998
|
+
registerEditor: (state: Draft<S>, action: PayloadAction<{
|
|
999
999
|
uniqid: string;
|
|
1000
1000
|
name: keyof WidgetTypeKeys;
|
|
1001
1001
|
}>) => void;
|
|
1002
|
-
registerEditorPopup: (state:
|
|
1002
|
+
registerEditorPopup: (state: Draft<S>, action: PayloadAction<{
|
|
1003
1003
|
uniqid: string;
|
|
1004
1004
|
view: any;
|
|
1005
1005
|
}>) => void;
|
|
1006
|
-
flushEditorPopup: (state:
|
|
1006
|
+
flushEditorPopup: (state: Draft<S>, action: PayloadAction<{
|
|
1007
1007
|
uniqid: string;
|
|
1008
1008
|
}>) => void;
|
|
1009
|
-
setEditorPosition: (state:
|
|
1009
|
+
setEditorPosition: (state: Draft<S>, action: PayloadAction<{
|
|
1010
1010
|
uniqid: string;
|
|
1011
1011
|
position: 'left' | 'right';
|
|
1012
1012
|
}>) => void;
|
|
1013
|
-
flushEditor: (state:
|
|
1013
|
+
flushEditor: (state: Draft<S>, action: PayloadAction<{
|
|
1014
1014
|
uniqid: string;
|
|
1015
1015
|
}>) => void;
|
|
1016
|
-
flushAllEditor: (state:
|
|
1016
|
+
flushAllEditor: (state: Draft<S>) => void;
|
|
1017
1017
|
}, "editors">;
|
|
1018
1018
|
selectors: {
|
|
1019
1019
|
selectEditors: (state: EditorsRootState) => EditorProps[];
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
2
|
+
"name": "jamespot-front-business",
|
|
3
|
+
"version": "1.1.23",
|
|
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.119",
|
|
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
|
+
}
|