jamespot-front-business 1.3.7 → 1.3.8
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/src/index.d.ts +2 -0
- package/dist/src/store/admin/logs/logs.d.ts +97 -0
- package/dist/src/store/admin/logs/logs.mock.d.ts +64 -0
- package/dist/src/store/admin/logs/logsNavigation.d.ts +23 -0
- package/dist/src/store/admin/logs/logsObjects.d.ts +23 -0
- package/dist/src/store/admin/logs/logsSearch.d.ts +23 -0
- package/dist/src/store/admin/logs/types.d.ts +12 -0
- package/dist/src/store/animations/animationStats.d.ts +19 -0
- package/dist/src/store/animations/animationStatsCurrent.d.ts +17 -0
- package/dist/src/store/animations/animations.d.ts +150 -0
- package/dist/src/store/animations/animations.mock.d.ts +9 -0
- package/dist/src/store/animations/animationsList.d.ts +75 -0
- package/dist/src/store/animations/animationsRTHandlers.d.ts +3 -0
- package/dist/src/store/animations/animationsRTHandlers.mock.d.ts +4 -0
- package/dist/src/store/animations/types.d.ts +22 -0
- package/dist/src/store/application/application.d.ts +48 -0
- package/dist/src/store/application/application.mock.d.ts +4 -0
- package/dist/src/store/application/application.types.d.ts +5 -0
- package/dist/src/store/article/article.d.ts +3 -0
- package/dist/src/store/article/articleRTHandlers.d.ts +2 -0
- package/dist/src/store/article/articleRTHandlers.mock.d.ts +4 -0
- package/dist/src/store/assetReservation/assetReservation.d.ts +74 -0
- package/dist/src/store/assetReservation/assetReservation.types.d.ts +31 -0
- package/dist/src/store/assetReservation/bookableAsset.d.ts +15 -0
- package/dist/src/store/assetReservation/bookableAsset.mock.d.ts +2 -0
- package/dist/src/store/assetReservation/configuration.d.ts +25 -0
- package/dist/src/store/assetReservation/configuration.mock.d.ts +17 -0
- package/dist/src/store/assetReservation/reservation.d.ts +20 -0
- package/dist/src/store/assetReservation/reservation.mock.d.ts +2 -0
- package/dist/src/store/bookmark/bookmark.d.ts +472 -0
- package/dist/src/store/bookmark/bookmark.types.d.ts +31 -0
- package/dist/src/store/bookmark/bookmarkList.d.ts +226 -0
- package/dist/src/store/bookmark/bookmarkList.mock.d.ts +201 -0
- package/dist/src/store/bookmark/bookmarkRTHandlers.d.ts +5 -0
- package/dist/src/store/bookmark/bookmarkRTHandlers.mock.d.ts +94 -0
- package/dist/src/store/bookmark/editBookmarkForm.d.ts +52 -0
- package/dist/src/store/bookmark/editBookmarkForm.mock.d.ts +4 -0
- package/dist/src/store/calendar/calendar.d.ts +347 -0
- package/dist/src/store/calendar/calendar.types.d.ts +22 -0
- package/dist/src/store/calendar/calendarEvents.d.ts +164 -0
- package/dist/src/store/calendar/calendarEvents.mock.d.ts +6 -0
- package/dist/src/store/calendar/calendarRTHandlers.d.ts +5 -0
- package/dist/src/store/calendar/calendarRTHandlers.mock.d.ts +16 -0
- package/dist/src/store/comment/comment.d.ts +66 -0
- package/dist/src/store/comment/comment.types.d.ts +18 -0
- package/dist/src/store/comment/commentList.d.ts +52 -0
- package/dist/src/store/comment/commentList.mock.d.ts +2 -0
- package/dist/src/store/comment/commentRTHandlers.d.ts +3 -0
- package/dist/src/store/comment/commentRTHandlers.mock.d.ts +102 -0
- package/dist/src/store/comment/commentsLikeRTHandlers.d.ts +3 -0
- package/dist/src/store/comment/commentsLikeRTHandlers.mock.d.ts +96 -0
- package/dist/src/store/contentReport/contentReport.d.ts +89 -0
- package/dist/src/store/contentReport/contentReport.mock.d.ts +3 -0
- package/dist/src/store/contentReport/contentReport.types.d.ts +17 -0
- package/dist/src/store/extraBot/extraBot.const.d.ts +7 -0
- package/dist/src/store/extraBot/extraBot.d.ts +167 -0
- package/dist/src/store/extraBot/extraBot.mock.d.ts +8 -0
- package/dist/src/store/extraBot/extraBot.types.d.ts +21 -0
- package/dist/src/store/faq/faq.d.ts +67 -0
- package/dist/src/store/faq/faq.types.d.ts +14 -0
- package/dist/src/store/faq/faqCategories.d.ts +20 -0
- package/dist/src/store/faq/faqCategories.mock.d.ts +2 -0
- package/dist/src/store/faq/faqConfig.d.ts +26 -0
- package/dist/src/store/faq/faqConfig.mock.d.ts +3 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.const.d.ts +7 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.d.ts +116 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.mock.d.ts +4 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.types.d.ts +12 -0
- package/dist/src/store/hook/hook.d.ts +505 -0
- package/dist/src/store/hook/hook.mock.d.ts +2 -0
- package/dist/src/store/hook/hook.types.d.ts +4 -0
- package/dist/src/store/hook/utils/driveHook.utils.d.ts +2 -0
- package/dist/src/store/index.d.ts +30 -0
- package/dist/src/store/jland/jland.d.ts +130 -0
- package/dist/src/store/jland/jland.types.d.ts +39 -0
- package/dist/src/store/jland/mapCreate.d.ts +21 -0
- package/dist/src/store/jland/mapCreate.mock.d.ts +82 -0
- package/dist/src/store/jland/mapList.d.ts +93 -0
- package/dist/src/store/jland/mapList.mock.d.ts +105 -0
- package/dist/src/store/jland/utils.d.ts +3 -0
- package/dist/src/store/magicPad/magicPad.d.ts +59 -0
- package/dist/src/store/magicPad/magicPad.mock.d.ts +2 -0
- package/dist/src/store/magicPad/magicPad.types.d.ts +15 -0
- package/dist/src/store/mediaLibrary/mediaLibrary.const.d.ts +7 -0
- package/dist/src/store/mediaLibrary/mediaLibrary.d.ts +454 -0
- package/dist/src/store/mediaLibrary/mediaLibrary.types.d.ts +24 -0
- package/dist/src/store/mediaLibrary/medialibrary.mock.d.ts +72 -0
- package/dist/src/store/model/model.d.ts +51 -0
- package/dist/src/store/model/model.mock.d.ts +144 -0
- package/dist/src/store/model/model.types.d.ts +5 -0
- package/dist/src/store/network/network.d.ts +29 -0
- package/dist/src/store/network/network.types.d.ts +10 -0
- package/dist/src/store/network/networkStatics.d.ts +5 -0
- package/dist/src/store/platform/platform.d.ts +20 -0
- package/dist/src/store/platform/platform.types.d.ts +11 -0
- package/dist/src/store/platform/platformConfig.d.ts +5 -0
- package/dist/src/store/share/share.actions.d.ts +16 -0
- package/dist/src/store/share/share.d.ts +29 -0
- package/dist/src/store/share/share.mock.d.ts +2 -0
- package/dist/src/store/share/share.slice.d.ts +5 -0
- package/dist/src/store/share/share.types.d.ts +9 -0
- package/dist/src/store/socialActions/socialActions.d.ts +49 -0
- package/dist/src/store/socialActions/socialActions.mock.d.ts +2 -0
- package/dist/src/store/studio/StudioAppsList.d.ts +108 -0
- package/dist/src/store/studio/appListMocks/appInWorkNoValue.d.ts +4 -0
- package/dist/src/store/studio/appListMocks/studioSuspendedTransformed.d.ts +2624 -0
- package/dist/src/store/studio/currentStudioApp.d.ts +54 -0
- package/dist/src/store/studio/mocks/erikBug/erikList.mock.d.ts +587 -0
- package/dist/src/store/studio/mocks/erikBug/getActiviteCE.mock.d.ts +1028 -0
- package/dist/src/store/studio/mocks/erikBug/getConge.mock.d.ts +3 -0
- package/dist/src/store/studio/mocks/erikBug/getCongeSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getEmploi.mock.d.ts +1022 -0
- package/dist/src/store/studio/mocks/erikBug/getEmploiSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getEquipment.mock.d.ts +1020 -0
- package/dist/src/store/studio/mocks/erikBug/getEquipmentSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getIncident.mock.d.ts +3 -0
- package/dist/src/store/studio/mocks/erikBug/getIncidentSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getTelephoneSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getTrad.mock.d.ts +996 -0
- package/dist/src/store/studio/mocks/erikBug/taxoList.mock.d.ts +16 -0
- package/dist/src/store/studio/mocks/publishtoAndHtmlIssues/StudioList.d.ts +47 -0
- package/dist/src/store/studio/mocks/publishtoAndHtmlIssues/app1.d.ts +1016 -0
- package/dist/src/store/studio/studio.d.ts +172 -0
- package/dist/src/store/studio/studio.types.d.ts +572 -0
- package/dist/src/store/studio/studioAppsList.mock.d.ts +896 -0
- package/dist/src/store/studio/utils/appToXml.d.ts +6 -0
- package/dist/src/store/studio/utils/cloneStudioAppFromExistingApp.d.ts +2 -0
- package/dist/src/store/studio/utils/createNewStudioApp.d.ts +11 -0
- package/dist/src/store/studio/utils/generateNewFormField.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/fieldBuilders.d.ts +219 -0
- package/dist/src/store/studio/utils/installedToV2/installedToV2.d.ts +13 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsInstalled.mock.d.ts +1300 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsInstalled2.mock.d.ts +1274 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsV2-2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppAudienceInstalled.mock.d.ts +860 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppAudienceV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppFluxInstalled.mock.d.ts +774 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppFluxV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppInstalled.mock.d.ts +782 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/selectCommentModif.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/selectCommentModifInstalled.mock.d.ts +787 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/simpleFieldsInstalled.mock.d.ts +852 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/simpleFieldsV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/specialApp.mock.d.ts +834 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/wrongFixedAndHtmlData.d.ts +1308 -0
- package/dist/src/store/studio/utils/migrateJson.d.ts +3 -0
- package/dist/src/store/studio/utils/serverAppsToStudioApps.d.ts +3 -0
- package/dist/src/store/studio/utils/studioApplication.mock.d.ts +32 -0
- package/dist/src/store/teamWork/teamWork.d.ts +46 -0
- package/dist/src/store/teamWork/teamWorkRTHandlers.d.ts +3 -0
- package/dist/src/store/teamWork/teamWorkRTHandlers.mock.d.ts +2 -0
- package/dist/src/store/teamWork/teamWorkToDo.d.ts +20 -0
- package/dist/src/store/teamWork/teamWorkToDo.mock.d.ts +2 -0
- package/dist/src/store/teamWork/types.d.ts +10 -0
- package/dist/src/store/tinymce/tinyMCEOptions.d.ts +5 -0
- package/dist/src/store/tinymce/tinymce.d.ts +52 -0
- package/dist/src/store/tinymce/tinymce.types.d.ts +10 -0
- package/dist/src/store/toast/toast.d.ts +35 -0
- package/dist/src/store/toast/toast.types.d.ts +19 -0
- package/dist/src/store/tvDisplay/channelsList.d.ts +36 -0
- package/dist/src/store/tvDisplay/channelsList.mock.d.ts +3 -0
- package/dist/src/store/tvDisplay/tvDisplay.d.ts +54 -0
- package/dist/src/store/tvDisplay/tvDisplay.types.d.ts +12 -0
- package/dist/src/store/tvDisplay/utils.d.ts +2 -0
- package/dist/src/store/tvDisplay/utils.mock.d.ts +5 -0
- package/dist/src/store/user/user.types.d.ts +4 -0
- package/dist/src/store/user/userCurrent.d.ts +21 -0
- package/dist/src/store/user/userCurrent.mock.d.ts +36 -0
- package/dist/src/store/wedoc/wedoc.actions.d.ts +85 -0
- package/dist/src/store/wedoc/wedoc.d.ts +165 -0
- package/dist/src/store/wedoc/wedoc.mock.d.ts +3 -0
- package/dist/src/store/wedoc/wedoc.slice.d.ts +8 -0
- package/dist/src/store/wedoc/wedoc.types.d.ts +22 -0
- package/dist/src/store/widget/definitions/widget-article-attachment.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-button.d.ts +16 -0
- package/dist/src/store/widget/definitions/widget-article-gallery.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-image.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-slider.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-text.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-title.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-calendar-calDav.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-check-list.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-color.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-contact-cardDav.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-datasource-table.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-emails-imap.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-excel-datasource-table.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-extension.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-lucca-absence.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-presence.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-quick-survey.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-user-profile.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-welcome.d.ts +3 -0
- package/dist/src/store/widget/utils.d.ts +1 -0
- package/dist/src/store/widget/widget.const.d.ts +4 -0
- package/dist/src/store/widget/widget.d.ts +135 -0
- package/dist/src/store/widget/widget.def.d.ts +2 -0
- package/dist/src/store/widget/widget.factory.d.ts +4 -0
- package/dist/src/store/widget/widget.slice.d.ts +98 -0
- package/dist/src/store/widget/widgetRTHandlers.d.ts +3 -0
- package/dist/src/store/widgetEditor/widgetEditor.d.ts +31 -0
- package/dist/src/store/widgetEditor/widgetEditor.types.d.ts +16 -0
- package/dist/src/tests-utils/mockStore.d.ts +172 -0
- package/dist/src/tests-utils/testsUtils.d.ts +38 -0
- package/dist/src/types/index.d.ts +15 -0
- package/dist/src/types/oldStudio.d.ts +165 -0
- package/dist/src/types/store.d.ts +48 -0
- package/dist/src/types/utils.d.ts +18 -0
- package/dist/src/utils/errors.utils.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { RootState } from '../../types/store';
|
|
2
|
+
export declare const WedocApp: {
|
|
3
|
+
slice: import('@reduxjs/toolkit').Slice<import('./wedoc.types').WedocAppState, {
|
|
4
|
+
update: (state: import('@reduxjs/toolkit').WritableDraft<import('./wedoc.types').WedocAppState>, action: import('@reduxjs/toolkit').PayloadAction<import('jamespot-user-api').WedocFileType>) => void;
|
|
5
|
+
setQuery: (state: import('@reduxjs/toolkit').WritableDraft<import('./wedoc.types').WedocAppState>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
6
|
+
setTab: (state: import('@reduxjs/toolkit').WritableDraft<import('./wedoc.types').WedocAppState>, action: import('@reduxjs/toolkit').PayloadAction<import('./wedoc.types').WedocAppTabKeys>) => void;
|
|
7
|
+
}, "wedoc", "wedoc", import('@reduxjs/toolkit').SliceSelectors<import('./wedoc.types').WedocAppState>>;
|
|
8
|
+
selectors: {
|
|
9
|
+
getFiles: (state: RootState) => {
|
|
10
|
+
entities: {
|
|
11
|
+
type: string;
|
|
12
|
+
uri: string;
|
|
13
|
+
id: number;
|
|
14
|
+
mainType: string;
|
|
15
|
+
title: string;
|
|
16
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
17
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
18
|
+
dateCreation: string;
|
|
19
|
+
dateModified: string;
|
|
20
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
21
|
+
};
|
|
22
|
+
_right: import('jamespot-user-api').Rights;
|
|
23
|
+
mimetype: string;
|
|
24
|
+
_extend: {
|
|
25
|
+
dateCreation: string;
|
|
26
|
+
dateModified: string;
|
|
27
|
+
_url: string;
|
|
28
|
+
generalAccessRule: string;
|
|
29
|
+
fileInfo: import('jamespot-user-api').OnlyOfficeFileInfo;
|
|
30
|
+
parentId: number;
|
|
31
|
+
parentType: string;
|
|
32
|
+
parentFiles: number[];
|
|
33
|
+
generalAccessHash?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
_audience: import('jamespot-user-api').jObjectLittle[];
|
|
36
|
+
dateCreation?: string | undefined | undefined;
|
|
37
|
+
dateModified?: string | null | undefined | undefined;
|
|
38
|
+
}[];
|
|
39
|
+
nbEntities: number;
|
|
40
|
+
loading: boolean;
|
|
41
|
+
tab: import('./wedoc.types').WedocAppTabKeys;
|
|
42
|
+
query: string;
|
|
43
|
+
page: number;
|
|
44
|
+
};
|
|
45
|
+
getRecent: (state: RootState) => {
|
|
46
|
+
entities: {
|
|
47
|
+
type: string;
|
|
48
|
+
uri: string;
|
|
49
|
+
id: number;
|
|
50
|
+
mainType: string;
|
|
51
|
+
title: string;
|
|
52
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
53
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
54
|
+
dateCreation: string;
|
|
55
|
+
dateModified: string;
|
|
56
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
57
|
+
};
|
|
58
|
+
_right: import('jamespot-user-api').Rights;
|
|
59
|
+
mimetype: string;
|
|
60
|
+
_extend: {
|
|
61
|
+
dateCreation: string;
|
|
62
|
+
dateModified: string;
|
|
63
|
+
_url: string;
|
|
64
|
+
generalAccessRule: string;
|
|
65
|
+
fileInfo: import('jamespot-user-api').OnlyOfficeFileInfo;
|
|
66
|
+
parentId: number;
|
|
67
|
+
parentType: string;
|
|
68
|
+
parentFiles: number[];
|
|
69
|
+
generalAccessHash?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
_audience: import('jamespot-user-api').jObjectLittle[];
|
|
72
|
+
dateCreation?: string | undefined | undefined;
|
|
73
|
+
dateModified?: string | null | undefined | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
loading: boolean;
|
|
76
|
+
tab: import('./wedoc.types').WedocAppTabKeys;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
actions: {
|
|
80
|
+
fetchFiles: import('@reduxjs/toolkit').AsyncThunk<import('jamespot-user-api').ApiWrapper<import('jamespot-user-api').PagingResults<{
|
|
81
|
+
type: string;
|
|
82
|
+
uri: string;
|
|
83
|
+
id: number;
|
|
84
|
+
mainType: string;
|
|
85
|
+
title: string;
|
|
86
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
87
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
88
|
+
dateCreation: string;
|
|
89
|
+
dateModified: string;
|
|
90
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
91
|
+
};
|
|
92
|
+
_right: import('jamespot-user-api').Rights;
|
|
93
|
+
mimetype: string;
|
|
94
|
+
_extend: {
|
|
95
|
+
dateCreation: string;
|
|
96
|
+
dateModified: string;
|
|
97
|
+
_url: string;
|
|
98
|
+
generalAccessRule: string;
|
|
99
|
+
fileInfo: import('jamespot-user-api').OnlyOfficeFileInfo;
|
|
100
|
+
parentId: number;
|
|
101
|
+
parentType: string;
|
|
102
|
+
parentFiles: number[];
|
|
103
|
+
generalAccessHash?: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
_audience: import('jamespot-user-api').jObjectLittle[];
|
|
106
|
+
dateCreation?: string | undefined | undefined;
|
|
107
|
+
dateModified?: string | null | undefined | undefined;
|
|
108
|
+
}>, import('jamespot-user-api').BaseMessages>, {
|
|
109
|
+
page: number;
|
|
110
|
+
query: string;
|
|
111
|
+
sort: "ASC" | "DESC";
|
|
112
|
+
}, {
|
|
113
|
+
dispatch: import('../..').AppDispatch;
|
|
114
|
+
state: RootState;
|
|
115
|
+
extra: {
|
|
116
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
117
|
+
};
|
|
118
|
+
rejectValue?: unknown;
|
|
119
|
+
serializedErrorType?: unknown;
|
|
120
|
+
pendingMeta?: unknown;
|
|
121
|
+
fulfilledMeta?: unknown;
|
|
122
|
+
rejectedMeta?: unknown;
|
|
123
|
+
}>;
|
|
124
|
+
fetchRecentFiles: import('@reduxjs/toolkit').AsyncThunk<import('jamespot-user-api').ApiWrapper<import('jamespot-user-api').PagingResults<{
|
|
125
|
+
type: string;
|
|
126
|
+
uri: string;
|
|
127
|
+
id: number;
|
|
128
|
+
mainType: string;
|
|
129
|
+
title: string;
|
|
130
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
131
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
132
|
+
dateCreation: string;
|
|
133
|
+
dateModified: string;
|
|
134
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
135
|
+
};
|
|
136
|
+
_right: import('jamespot-user-api').Rights;
|
|
137
|
+
mimetype: string;
|
|
138
|
+
_extend: {
|
|
139
|
+
dateCreation: string;
|
|
140
|
+
dateModified: string;
|
|
141
|
+
_url: string;
|
|
142
|
+
generalAccessRule: string;
|
|
143
|
+
fileInfo: import('jamespot-user-api').OnlyOfficeFileInfo;
|
|
144
|
+
parentId: number;
|
|
145
|
+
parentType: string;
|
|
146
|
+
parentFiles: number[];
|
|
147
|
+
generalAccessHash?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
_audience: import('jamespot-user-api').jObjectLittle[];
|
|
150
|
+
dateCreation?: string | undefined | undefined;
|
|
151
|
+
dateModified?: string | null | undefined | undefined;
|
|
152
|
+
}>, import('jamespot-user-api').BaseMessages>, void, {
|
|
153
|
+
dispatch: import('../..').AppDispatch;
|
|
154
|
+
state: RootState;
|
|
155
|
+
extra: {
|
|
156
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
157
|
+
};
|
|
158
|
+
rejectValue?: unknown;
|
|
159
|
+
serializedErrorType?: unknown;
|
|
160
|
+
pendingMeta?: unknown;
|
|
161
|
+
fulfilledMeta?: unknown;
|
|
162
|
+
rejectedMeta?: unknown;
|
|
163
|
+
}>;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WedocAppState, WedocAppTabKeys } from './wedoc.types';
|
|
3
|
+
import { WedocFileType } from 'jamespot-user-api';
|
|
4
|
+
export declare const WedocAppSlice: import('@reduxjs/toolkit').Slice<WedocAppState, {
|
|
5
|
+
update: (state: import('@reduxjs/toolkit').WritableDraft<WedocAppState>, action: PayloadAction<WedocFileType>) => void;
|
|
6
|
+
setQuery: (state: import('@reduxjs/toolkit').WritableDraft<WedocAppState>, action: PayloadAction<string>) => void;
|
|
7
|
+
setTab: (state: import('@reduxjs/toolkit').WritableDraft<WedocAppState>, action: PayloadAction<WedocAppTabKeys>) => void;
|
|
8
|
+
}, "wedoc", "wedoc", import('@reduxjs/toolkit').SliceSelectors<WedocAppState>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Filters, Orders, WedocFileType } from 'jamespot-user-api';
|
|
2
|
+
export type WedocAppTabKeys = 'my-documents' | 'all-documents';
|
|
3
|
+
export type WedocAppRootState = {
|
|
4
|
+
wedoc: WedocAppState;
|
|
5
|
+
};
|
|
6
|
+
export type WedocAppState = {
|
|
7
|
+
entities: WedocFileType[];
|
|
8
|
+
nbEntities: number;
|
|
9
|
+
entitiesRecent: WedocFileType[];
|
|
10
|
+
tab: WedocAppTabKeys;
|
|
11
|
+
loading: 'idle' | 'pending';
|
|
12
|
+
loadingRecent: 'idle' | 'pending';
|
|
13
|
+
query: string;
|
|
14
|
+
page: number;
|
|
15
|
+
};
|
|
16
|
+
export type WedocFilesQuery = {
|
|
17
|
+
query: string;
|
|
18
|
+
filters: Filters;
|
|
19
|
+
orders: Orders;
|
|
20
|
+
page: number;
|
|
21
|
+
limit: number;
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WidgetDefinitionProps } from 'jamespot-user-api';
|
|
2
|
+
export declare const widgetArticleButtonDefinition: WidgetDefinitionProps;
|
|
3
|
+
export declare const widgetArticleButtonContent: {
|
|
4
|
+
text: string;
|
|
5
|
+
openingType: "link";
|
|
6
|
+
openingTypeLink: {
|
|
7
|
+
url: string;
|
|
8
|
+
target: string;
|
|
9
|
+
};
|
|
10
|
+
variant: "contained";
|
|
11
|
+
fontSize: string;
|
|
12
|
+
color: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
buttonSize: "lg";
|
|
15
|
+
borderRadius: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function uniqid(): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const WIDGET_CHECK_LIST_LABEL = "WIDGET_Check_List";
|
|
2
|
+
export declare const WIDGET_CHECK_LIST_DESCRIPTION = "WIDGET_Check_List_Description";
|
|
3
|
+
export declare const WIDGET_QUICK_SURVEY_LABEL = "WIDGET_Quick_Survey";
|
|
4
|
+
export declare const WIDGET_QUICK_SURVEY_DESCRIPTION = "WIDGET_Quick_Survey_Text";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { RootState } from '../../types/store';
|
|
2
|
+
import { uniqid } from './utils';
|
|
3
|
+
import { widgetDefinition } from './widget.def';
|
|
4
|
+
import { widgetFactory } from './widget.factory';
|
|
5
|
+
import * as WIDGETS from './widget.const';
|
|
6
|
+
export declare const updateWidgetContent: <T>(uniqid: string, content: Partial<T>, override?: boolean) => {
|
|
7
|
+
payload: {
|
|
8
|
+
uniqid: string;
|
|
9
|
+
content: Partial<import('jamespot-user-api').CombinedWidgetContent>;
|
|
10
|
+
override?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type: "widgets/updateWidget";
|
|
13
|
+
};
|
|
14
|
+
export declare const Widget: {
|
|
15
|
+
const: typeof WIDGETS;
|
|
16
|
+
factory: typeof widgetFactory;
|
|
17
|
+
definition: typeof widgetDefinition;
|
|
18
|
+
utils: {
|
|
19
|
+
uniqid: typeof uniqid;
|
|
20
|
+
};
|
|
21
|
+
slice: import('@reduxjs/toolkit').Slice<import('jamespot-user-api').WidgetsState, {
|
|
22
|
+
registerWidget: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
23
|
+
uniqid: string;
|
|
24
|
+
widget: import('jamespot-user-api').WidgetWrapperProps;
|
|
25
|
+
context: import('jamespot-user-api').WidgetContext;
|
|
26
|
+
}>) => void;
|
|
27
|
+
registerWidgetObject: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
28
|
+
uniqid: string;
|
|
29
|
+
object: Partial<import('jamespot-user-api').jObjectLittle>;
|
|
30
|
+
}>) => void;
|
|
31
|
+
registerWidgetObjectRights: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
32
|
+
uniqid: string;
|
|
33
|
+
rights: import('jamespot-user-api').Rights;
|
|
34
|
+
}>) => void;
|
|
35
|
+
registerWidgetAuthor: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
36
|
+
uniqid: string;
|
|
37
|
+
author: import('jamespot-user-api').jUserLittle;
|
|
38
|
+
}>) => void;
|
|
39
|
+
setWidgetChipCount: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
40
|
+
uniqid: string;
|
|
41
|
+
count: number;
|
|
42
|
+
}>) => void;
|
|
43
|
+
setWidgetWrapperStyle: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
44
|
+
uniqid: string;
|
|
45
|
+
styles: Record<string, string | number>;
|
|
46
|
+
}>) => void;
|
|
47
|
+
setWidgetTitleStyle: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
48
|
+
uniqid: string;
|
|
49
|
+
styles: Record<string, string | number>;
|
|
50
|
+
}>) => void;
|
|
51
|
+
updateWidget: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
52
|
+
uniqid: string;
|
|
53
|
+
content: Partial<import('jamespot-user-api').CombinedWidgetContent>;
|
|
54
|
+
override?: boolean;
|
|
55
|
+
}>) => void;
|
|
56
|
+
registerWidgetRTObject: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
57
|
+
uniqid: string;
|
|
58
|
+
fn: import('jamespot-user-api').WidgetFunctions;
|
|
59
|
+
object: import('jamespot-user-api').jObjectLittle;
|
|
60
|
+
}>) => void;
|
|
61
|
+
flushWidget: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
62
|
+
uniqid: string;
|
|
63
|
+
}>) => void;
|
|
64
|
+
flushAllWidget: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>) => void;
|
|
65
|
+
updateWidgetWrapper: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
66
|
+
uniqid: string;
|
|
67
|
+
title?: string;
|
|
68
|
+
position?: import('jamespot-user-api').WidgetVector;
|
|
69
|
+
level?: import('jamespot-user-api').WidgetWrapperLevel;
|
|
70
|
+
}>) => void;
|
|
71
|
+
registerLayer: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
72
|
+
uniqid: string;
|
|
73
|
+
widget: import('jamespot-user-api').WidgetWrapperProps;
|
|
74
|
+
}>) => void;
|
|
75
|
+
updateLayer: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
76
|
+
uniqid: string;
|
|
77
|
+
props: {
|
|
78
|
+
locked?: boolean;
|
|
79
|
+
visible?: boolean;
|
|
80
|
+
position?: {
|
|
81
|
+
x: number;
|
|
82
|
+
y: number;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}>) => void;
|
|
86
|
+
flushLayer: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
87
|
+
uniqid: string;
|
|
88
|
+
layerId: string;
|
|
89
|
+
}>) => void;
|
|
90
|
+
prevEditableIndex: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>) => void;
|
|
91
|
+
nextEditableIndex: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>) => void;
|
|
92
|
+
setEditableIndex: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
93
|
+
index: number;
|
|
94
|
+
}>) => void;
|
|
95
|
+
setEditableWidgetId: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
96
|
+
uniqid: string | undefined;
|
|
97
|
+
}>) => void;
|
|
98
|
+
registerEditableWidget: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
99
|
+
index: number;
|
|
100
|
+
uniqid: string;
|
|
101
|
+
}>) => void;
|
|
102
|
+
setToken: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
103
|
+
token: string;
|
|
104
|
+
}>) => void;
|
|
105
|
+
setWidgetState: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
106
|
+
uniqid: string;
|
|
107
|
+
} & import('jamespot-user-api').WidgetStateProps>) => void;
|
|
108
|
+
setAllWidgetStates: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<import('jamespot-user-api').WidgetStateProps>) => void;
|
|
109
|
+
registerModal: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>, action: import('@reduxjs/toolkit').PayloadAction<{
|
|
110
|
+
title?: string;
|
|
111
|
+
view?: React.ReactNode;
|
|
112
|
+
}>) => void;
|
|
113
|
+
flushModal: (state: import('@reduxjs/toolkit').WritableDraft<import('jamespot-user-api').WidgetsState>) => void;
|
|
114
|
+
}, "widgets", "widgets", import('@reduxjs/toolkit').SliceSelectors<import('jamespot-user-api').WidgetsState>>;
|
|
115
|
+
getWidgetRTHandlers: (dispatch: import('../..').AppDispatch, uniqid: string) => Array<import('jamespot-user-api').RTMessageHandler<"WIDGET", import('jamespot-user-api').Namespaces["WIDGET"]>>;
|
|
116
|
+
selectors: {
|
|
117
|
+
isActive: (state: RootState, uniqid: string) => boolean;
|
|
118
|
+
selectToken: (state: RootState) => string | undefined;
|
|
119
|
+
selectWidgets: (state: RootState) => Record<string, import('jamespot-user-api').WidgetWrapperProps>;
|
|
120
|
+
selectWidget: (state: RootState, uniqid: string) => import('jamespot-user-api').WidgetWrapperProps | undefined;
|
|
121
|
+
selectWidgetState: (state: RootState, uniqid: string) => import('jamespot-user-api').WidgetStateProps | undefined;
|
|
122
|
+
selectModal: (state: RootState) => import('jamespot-user-api').WidgetModalProps | undefined;
|
|
123
|
+
selectWidgetObject: (state: RootState, uniqid: string) => import('jamespot-user-api').PartialUndefined<import('jamespot-user-api').jObjectLittle> | undefined;
|
|
124
|
+
selectWidgetObjectUri: (state: RootState, uniqid: string) => string | undefined;
|
|
125
|
+
selectWidgetAuthor: (state: RootState, uniqid: string) => import('jamespot-user-api').PartialUndefined<import('jamespot-user-api').jUserLittle> | undefined;
|
|
126
|
+
selectWidgetObjectRights: (state: RootState, uniqid: string) => import('jamespot-user-api').Rights | undefined;
|
|
127
|
+
selectAllWidgetRTObject: (state: RootState, uniqid: string) => import('jamespot-user-api').WidgetRtObject[];
|
|
128
|
+
selectFlushedWidgets: (state: RootState) => string[];
|
|
129
|
+
selectWidgetContext: (state: RootState, uniqid: string) => "comment" | "article" | undefined;
|
|
130
|
+
selectWidgetLevel: (state: RootState, uniqid: string) => 1 | 2 | 3 | 4 | undefined;
|
|
131
|
+
selectWidgetWrapperStyle: (state: RootState, uniqid: string) => Record<string, string | number>;
|
|
132
|
+
selectWidgetTitleStyle: (state: RootState, uniqid: string) => Record<string, string | number>;
|
|
133
|
+
selectWidgetChipCount: (state: RootState, uniqid: string) => number;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WidgetContentKeys, WidgetKeys, WidgetTypeKeys, WidgetWrapperProps } from 'jamespot-user-api';
|
|
2
|
+
export declare function widgetFactory<T extends WidgetKeys>(name: T): WidgetWrapperProps;
|
|
3
|
+
export declare function widget<T extends WidgetKeys>(name: T): WidgetTypeKeys[T];
|
|
4
|
+
export declare function content<T extends WidgetKeys>(name: T): WidgetContentKeys[T];
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { CombinedWidgetContent, jObjectLittle, jUserLittle, Rights, WidgetContext, WidgetFunctions, WidgetsState, WidgetStateProps, WidgetVector, WidgetWrapperLevel, WidgetWrapperProps } from 'jamespot-user-api';
|
|
3
|
+
type WidgetModalProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
view?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const widgetsSlice: import('@reduxjs/toolkit').Slice<WidgetsState, {
|
|
8
|
+
registerWidget: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
9
|
+
uniqid: string;
|
|
10
|
+
widget: WidgetWrapperProps;
|
|
11
|
+
context: WidgetContext;
|
|
12
|
+
}>) => void;
|
|
13
|
+
registerWidgetObject: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
14
|
+
uniqid: string;
|
|
15
|
+
object: Partial<jObjectLittle>;
|
|
16
|
+
}>) => void;
|
|
17
|
+
registerWidgetObjectRights: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
18
|
+
uniqid: string;
|
|
19
|
+
rights: Rights;
|
|
20
|
+
}>) => void;
|
|
21
|
+
registerWidgetAuthor: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
22
|
+
uniqid: string;
|
|
23
|
+
author: jUserLittle;
|
|
24
|
+
}>) => void;
|
|
25
|
+
setWidgetChipCount: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
26
|
+
uniqid: string;
|
|
27
|
+
count: number;
|
|
28
|
+
}>) => void;
|
|
29
|
+
setWidgetWrapperStyle: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
30
|
+
uniqid: string;
|
|
31
|
+
styles: Record<string, string | number>;
|
|
32
|
+
}>) => void;
|
|
33
|
+
setWidgetTitleStyle: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
34
|
+
uniqid: string;
|
|
35
|
+
styles: Record<string, string | number>;
|
|
36
|
+
}>) => void;
|
|
37
|
+
updateWidget: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
38
|
+
uniqid: string;
|
|
39
|
+
content: Partial<CombinedWidgetContent>;
|
|
40
|
+
override?: boolean;
|
|
41
|
+
}>) => void;
|
|
42
|
+
registerWidgetRTObject: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
43
|
+
uniqid: string;
|
|
44
|
+
fn: WidgetFunctions;
|
|
45
|
+
object: jObjectLittle;
|
|
46
|
+
}>) => void;
|
|
47
|
+
flushWidget: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
48
|
+
uniqid: string;
|
|
49
|
+
}>) => void;
|
|
50
|
+
flushAllWidget: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>) => void;
|
|
51
|
+
updateWidgetWrapper: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
52
|
+
uniqid: string;
|
|
53
|
+
title?: string;
|
|
54
|
+
position?: WidgetVector;
|
|
55
|
+
level?: WidgetWrapperLevel;
|
|
56
|
+
}>) => void;
|
|
57
|
+
registerLayer: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
58
|
+
uniqid: string;
|
|
59
|
+
widget: WidgetWrapperProps;
|
|
60
|
+
}>) => void;
|
|
61
|
+
updateLayer: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
62
|
+
uniqid: string;
|
|
63
|
+
props: {
|
|
64
|
+
locked?: boolean;
|
|
65
|
+
visible?: boolean;
|
|
66
|
+
position?: {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}>) => void;
|
|
72
|
+
flushLayer: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
73
|
+
uniqid: string;
|
|
74
|
+
layerId: string;
|
|
75
|
+
}>) => void;
|
|
76
|
+
prevEditableIndex: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>) => void;
|
|
77
|
+
nextEditableIndex: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>) => void;
|
|
78
|
+
setEditableIndex: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
79
|
+
index: number;
|
|
80
|
+
}>) => void;
|
|
81
|
+
setEditableWidgetId: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
82
|
+
uniqid: string | undefined;
|
|
83
|
+
}>) => void;
|
|
84
|
+
registerEditableWidget: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
85
|
+
index: number;
|
|
86
|
+
uniqid: string;
|
|
87
|
+
}>) => void;
|
|
88
|
+
setToken: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
89
|
+
token: string;
|
|
90
|
+
}>) => void;
|
|
91
|
+
setWidgetState: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<{
|
|
92
|
+
uniqid: string;
|
|
93
|
+
} & WidgetStateProps>) => void;
|
|
94
|
+
setAllWidgetStates: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<WidgetStateProps>) => void;
|
|
95
|
+
registerModal: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>, action: PayloadAction<WidgetModalProps>) => void;
|
|
96
|
+
flushModal: (state: import('@reduxjs/toolkit').WritableDraft<WidgetsState>) => void;
|
|
97
|
+
}, "widgets", "widgets", import('@reduxjs/toolkit').SliceSelectors<WidgetsState>>;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WidgetDisplayMode } from 'jamespot-user-api';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { RootState } from '../../types/store';
|
|
5
|
+
import { EditorProps, EditorsState } from './widgetEditor.types';
|
|
6
|
+
export declare const WidgetEditor: {
|
|
7
|
+
slice: import('@reduxjs/toolkit').Slice<EditorsState, {
|
|
8
|
+
registerEditor: (state: import('@reduxjs/toolkit').WritableDraft<EditorsState>, action: PayloadAction<Pick<EditorProps, "name" | "onSave" | "uniqid"> & {
|
|
9
|
+
mode?: WidgetDisplayMode;
|
|
10
|
+
}>) => void;
|
|
11
|
+
registerEditorPopup: (state: import('@reduxjs/toolkit').WritableDraft<EditorsState>, action: PayloadAction<{
|
|
12
|
+
uniqid: string;
|
|
13
|
+
view: ReactNode;
|
|
14
|
+
}>) => void;
|
|
15
|
+
flushEditorPopup: (state: import('@reduxjs/toolkit').WritableDraft<EditorsState>, action: PayloadAction<{
|
|
16
|
+
uniqid: string;
|
|
17
|
+
}>) => void;
|
|
18
|
+
setEditorPosition: (state: import('@reduxjs/toolkit').WritableDraft<EditorsState>, action: PayloadAction<{
|
|
19
|
+
uniqid: string;
|
|
20
|
+
position: "left" | "right";
|
|
21
|
+
}>) => void;
|
|
22
|
+
flushEditor: (state: import('@reduxjs/toolkit').WritableDraft<EditorsState>, action: PayloadAction<{
|
|
23
|
+
uniqid: string;
|
|
24
|
+
}>) => void;
|
|
25
|
+
flushAllEditor: (state: import('@reduxjs/toolkit').WritableDraft<EditorsState>) => void;
|
|
26
|
+
}, "editors", "editors", import('@reduxjs/toolkit').SliceSelectors<EditorsState>>;
|
|
27
|
+
selectors: {
|
|
28
|
+
selectEditors: (state: RootState) => EditorProps[];
|
|
29
|
+
selectEditor: (state: RootState, uniqid: string) => EditorProps | undefined;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CombinedWidgetContent, WidgetDisplayMode, WidgetKeys } from 'jamespot-user-api';
|
|
2
|
+
export type EditorProps = {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
name: WidgetKeys;
|
|
5
|
+
position: 'left' | 'right';
|
|
6
|
+
mode: WidgetDisplayMode;
|
|
7
|
+
popup?: boolean;
|
|
8
|
+
view?: React.ReactNode;
|
|
9
|
+
onSave?: <T = CombinedWidgetContent>(content: Partial<T>) => void;
|
|
10
|
+
};
|
|
11
|
+
export type EditorsState = {
|
|
12
|
+
editors: EditorProps[];
|
|
13
|
+
};
|
|
14
|
+
export type EditorsRootState = {
|
|
15
|
+
editors: EditorsState;
|
|
16
|
+
};
|