@edifice.io/react 2.6.12-develop-integration.20261103121816 → 2.6.12-develop-b2school.20261103172112
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/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Dropdown/DropdownItem.js +17 -1
- package/dist/components/Layout/Layout.js +12 -4
- package/dist/components/Masonry/Masonry.d.ts +40 -0
- package/dist/components/Masonry/Masonry.js +50 -0
- package/dist/components/Masonry/index.d.ts +2 -0
- package/dist/components/SearchBar/SearchBar.js +17 -26
- package/dist/components/Tree/components/Tree.d.ts +2 -5
- package/dist/components/Tree/components/Tree.js +10 -7
- package/dist/components/Tree/hooks/useTree.d.ts +1 -0
- package/dist/components/Tree/hooks/useTree.js +6 -2
- package/dist/components/Tree/types/index.d.ts +7 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/homepage.js +97 -28
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useDropdown/useDropdown.js +2 -2
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
- package/dist/icons-apps.js +182 -184
- package/dist/icons.js +406 -404
- package/dist/index.js +194 -198
- package/dist/modules/HelpZone/HelpZone.js +6 -8
- package/dist/modules/HelpZone/HelpZoneContainer.js +2 -5
- package/dist/modules/editor/components/Editor/Editor.d.ts +5 -7
- package/dist/modules/editor/components/Editor/Editor.js +5 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +1 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +8 -14
- package/dist/modules/editor/components/NodeView/ImageNodeView.d.ts +1 -1
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +7 -14
- package/dist/modules/editor/hooks/useActionOptions.d.ts +1 -1
- package/dist/modules/editor/hooks/useActionOptions.js +12 -12
- package/dist/modules/editor/hooks/useTipTapEditor.d.ts +1 -2
- package/dist/modules/editor/hooks/useTipTapEditor.js +2 -2
- package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
- package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
- package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
- package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
- package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
- package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +9 -0
- package/dist/modules/homepage/components/BriefMe/BriefMe.js +59 -0
- package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +4 -0
- package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +17 -0
- package/dist/modules/homepage/components/BriefMe/index.d.ts +4 -0
- package/dist/modules/homepage/components/BriefMe/types.d.ts +17 -0
- package/dist/modules/homepage/components/BriefMe/types.js +8 -0
- package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +31 -0
- package/dist/modules/homepage/components/BriefMe/useBriefMe.js +51 -0
- package/dist/modules/homepage/components/Cantine/Cantine.d.ts +7 -0
- package/dist/modules/homepage/components/Cantine/Cantine.js +44 -0
- package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +4 -0
- package/dist/modules/homepage/components/Cantine/CantineContainer.js +18 -0
- package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +24 -0
- package/dist/modules/homepage/components/Cantine/CantineModal.js +88 -0
- package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +7 -0
- package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +12 -0
- package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +5 -0
- package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +22 -0
- package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +6 -0
- package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +28 -0
- package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +12 -0
- package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +60 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +11 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +20 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +24 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +65 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +23 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +43 -0
- package/dist/modules/homepage/components/Cantine/index.d.ts +7 -0
- package/dist/modules/homepage/components/Cantine/types.d.ts +42 -0
- package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +9 -0
- package/dist/modules/homepage/components/Edumalin/Edumalin.js +65 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +4 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +21 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +8 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +62 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +5 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +38 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +5 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +12 -0
- package/dist/modules/homepage/components/Edumalin/index.d.ts +7 -0
- package/dist/modules/homepage/components/Edumalin/types.d.ts +24 -0
- package/dist/modules/homepage/components/Edumalin/types.js +4 -0
- package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +16 -0
- package/dist/modules/homepage/components/Edumalin/useEdumalin.js +35 -0
- package/dist/modules/homepage/components/Edumalin/utils.d.ts +28 -0
- package/dist/modules/homepage/components/Edumalin/utils.js +56 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +16 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +65 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +4 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +12 -0
- package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +1 -0
- package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +6 -0
- package/dist/modules/homepage/components/GenerationHdf/index.d.ts +3 -0
- package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +10 -0
- package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +69 -0
- package/dist/modules/homepage/components/Header/Header.js +9 -21
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
- package/dist/modules/homepage/components/Notifications/NotificationList.js +7 -8
- package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +7 -12
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +7 -4
- package/dist/modules/homepage/components/Notifications/components/CommonNotificationItem.js +9 -9
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +11 -13
- package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.d.ts +1 -2
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +14 -12
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
- package/dist/modules/homepage/components/Qwant/Qwant.d.ts +4 -0
- package/dist/modules/homepage/components/Qwant/Qwant.js +41 -0
- package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Qwant/QwantContainer.js +10 -0
- package/dist/modules/homepage/components/Qwant/index.d.ts +3 -0
- package/dist/modules/homepage/components/Rss/Rss.d.ts +11 -0
- package/dist/modules/homepage/components/Rss/Rss.js +64 -0
- package/dist/modules/homepage/components/Rss/RssContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Rss/RssContainer.js +45 -0
- package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +13 -0
- package/dist/modules/homepage/components/Rss/RssFeedForm.js +69 -0
- package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +11 -0
- package/dist/modules/homepage/components/Rss/RssFeedsModal.js +58 -0
- package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +25 -0
- package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +43 -0
- package/dist/modules/homepage/components/Rss/index.d.ts +6 -0
- package/dist/modules/homepage/components/Rss/services/api/index.d.ts +5 -0
- package/dist/modules/homepage/components/Rss/services/api/index.js +5 -0
- package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +38 -0
- package/dist/modules/homepage/components/Rss/services/api/rssService.js +51 -0
- package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +28 -0
- package/dist/modules/homepage/components/Rss/services/queries/rss.js +71 -0
- package/dist/modules/homepage/components/Rss/types.d.ts +25 -0
- package/dist/modules/homepage/components/Rss/utils.d.ts +7 -0
- package/dist/modules/homepage/components/Rss/utils.js +19 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
- package/dist/modules/homepage/components/ScreenTime/ScreenTime.d.ts +11 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTime.js +49 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.d.ts +10 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.js +115 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.d.ts +1 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.js +25 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.d.ts +5 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.js +22 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.d.ts +22 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.js +81 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.d.ts +14 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js +22 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.d.ts +6 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.js +25 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.d.ts +31 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js +34 -0
- package/dist/modules/homepage/components/ScreenTime/index.d.ts +6 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/index.js +5 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.d.ts +28 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.js +39 -0
- package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.d.ts +23 -0
- package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.js +41 -0
- package/dist/modules/homepage/components/ScreenTime/types.d.ts +30 -0
- package/dist/modules/homepage/components/ScreenTime/utils.d.ts +50 -0
- package/dist/modules/homepage/components/ScreenTime/utils.js +115 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +43 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +23 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +34 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +26 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +14 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +64 -0
- package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +20 -0
- package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +43 -0
- package/dist/modules/homepage/components/TabsKids/index.d.ts +3 -0
- package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +15 -0
- package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +21 -0
- package/dist/modules/homepage/components/Universalis/Universalis.d.ts +8 -0
- package/dist/modules/homepage/components/Universalis/Universalis.js +62 -0
- package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +16 -0
- package/dist/modules/homepage/components/Universalis/index.d.ts +3 -0
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
- package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
- package/dist/modules/homepage/components/index.d.ts +12 -2
- package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.d.ts +2 -2
- package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.js +4 -4
- package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
- package/dist/modules/icons/components/IconAddWidget.js +12 -0
- package/dist/modules/icons/components/apps/index.d.ts +0 -1
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +5 -7
- package/dist/modules/icons/components/nav/IconHomeBeta.js +6 -3
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +7 -7
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +2 -3
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +2 -4
- package/dist/modules/multimedia/FileCard/index.d.ts +0 -2
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +1 -7
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +0 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +5 -16
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -2
- package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
- package/dist/modules/multimedia/index.d.ts +0 -1
- package/dist/multimedia.js +22 -26
- package/package.json +7 -6
- package/dist/hooks/useGoogleDriveSearch/index.d.ts +0 -1
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +0 -19
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +0 -60
- package/dist/modules/homepage/components/AlloLycee/AlloLycee.d.ts +0 -11
- package/dist/modules/homepage/components/AlloLycee/AlloLycee.js +0 -32
- package/dist/modules/homepage/components/AlloLycee/AlloLyceeContainer.d.ts +0 -4
- package/dist/modules/homepage/components/AlloLycee/AlloLyceeContainer.js +0 -10
- package/dist/modules/homepage/components/AlloLycee/index.d.ts +0 -3
- package/dist/modules/icons/components/apps/IconElea.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconElea.js +0 -23
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +0 -25
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +0 -102
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +0 -24
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +0 -103
- package/dist/modules/multimedia/GoogleDrive/index.d.ts +0 -2
- package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.js +0 -61
package/dist/index.js
CHANGED
|
@@ -30,103 +30,101 @@ import { default as default28 } from "./modules/multimedia/FileCard/FileCard.js"
|
|
|
30
30
|
import { default as default29 } from "./components/Flex/Flex.js";
|
|
31
31
|
import { default as default30 } from "./components/Form/FormControl.js";
|
|
32
32
|
import { default as default31 } from "./components/Form/FormText.js";
|
|
33
|
-
import { default as default32 } from "./
|
|
34
|
-
import { default as default33 } from "./
|
|
35
|
-
import { default as default34 } from "./components/
|
|
36
|
-
import { default as default35 } from "./components/
|
|
37
|
-
import { default as default36 } from "./
|
|
38
|
-
import { default as default37 } from "./
|
|
39
|
-
import { default as default38 } from "./
|
|
40
|
-
import { default as default39 } from "./components/
|
|
41
|
-
import { default as default40 } from "./components/
|
|
42
|
-
import { default as default41 } from "./components/
|
|
43
|
-
import { default as default42 } from "./components/
|
|
44
|
-
import { default as default43 } from "./components/
|
|
45
|
-
import {
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import { default as
|
|
118
|
-
import { default as
|
|
119
|
-
import { default as
|
|
120
|
-
import { default as
|
|
121
|
-
import { default as
|
|
122
|
-
import { default as
|
|
123
|
-
import { default as
|
|
124
|
-
import { default as
|
|
125
|
-
import { default as
|
|
126
|
-
import {
|
|
127
|
-
import { default as
|
|
128
|
-
import { default as default127 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
129
|
-
import { default as default128 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
33
|
+
import { default as default32 } from "./components/Heading/Heading.js";
|
|
34
|
+
import { default as default33 } from "./components/Button/IconButton.js";
|
|
35
|
+
import { default as default34 } from "./components/Image/Image.js";
|
|
36
|
+
import { default as default35 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
37
|
+
import { default as default36 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
38
|
+
import { default as default37 } from "./components/Input/Input.js";
|
|
39
|
+
import { default as default38 } from "./components/Label/Label.js";
|
|
40
|
+
import { default as default39 } from "./components/LinkPill/LinkPill.js";
|
|
41
|
+
import { default as default40 } from "./components/Loading/Loading.js";
|
|
42
|
+
import { default as default41 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
43
|
+
import { default as default42 } from "./components/Logo/Logo.js";
|
|
44
|
+
import { default as default43 } from "./components/LogoBeta/LogoBeta.js";
|
|
45
|
+
import { Masonry } from "./components/Masonry/Masonry.js";
|
|
46
|
+
import { default as default44 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
47
|
+
import { default as default45 } from "./components/MediaViewer/MediaViewer.js";
|
|
48
|
+
import { default as default46 } from "./components/Modal/Modal.js";
|
|
49
|
+
import { default as default47 } from "./components/ModalBeta/ModalBeta.js";
|
|
50
|
+
import { default as default48 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
51
|
+
import { default as default49 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
52
|
+
import { default as default50 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
53
|
+
import { default as default51 } from "./components/PageLayout/PageLayout.js";
|
|
54
|
+
import { default as default52 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
55
|
+
import { default as default53, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
56
|
+
import { default as default54 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
57
|
+
import { default as default55 } from "./components/Radio/Radio.js";
|
|
58
|
+
import { default as default56 } from "./components/RadioCard/RadioCard.js";
|
|
59
|
+
import { default as default57 } from "./components/RadioTile/RadioTile.js";
|
|
60
|
+
import { default as default58 } from "./components/SearchBar/SearchBar.js";
|
|
61
|
+
import { default as default59 } from "./components/Button/SearchButton.js";
|
|
62
|
+
import { default as default60 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
63
|
+
import { default as default61 } from "./components/Select/Select.js";
|
|
64
|
+
import { default as default62 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
65
|
+
import { default as default63 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
66
|
+
import { default as default64 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
67
|
+
import { default as default65 } from "./components/Tree/components/SortableTree.js";
|
|
68
|
+
import { default as default66 } from "./components/StackedGroup/StackedGroup.js";
|
|
69
|
+
import { default as default67 } from "./components/Stepper/Stepper.js";
|
|
70
|
+
import { default as default68 } from "./components/Switch/Switch.js";
|
|
71
|
+
import { default as default69 } from "./components/Table/components/Table.js";
|
|
72
|
+
import { default as default70 } from "./components/TextArea/TextArea.js";
|
|
73
|
+
import { default as default71 } from "./components/Skeleton/TextSkeleton.js";
|
|
74
|
+
import { default as default72 } from "./components/Tooltip/Tooltip.js";
|
|
75
|
+
import { default as default73 } from "./components/Tree/components/Tree.js";
|
|
76
|
+
import { default as default74 } from "./components/TreeView/TreeView.js";
|
|
77
|
+
import { default as default75 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
78
|
+
import { default as default76 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
79
|
+
import { default as default77 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
80
|
+
import { default as default78 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
81
|
+
import { default as default79 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
82
|
+
import { default as default80 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
83
|
+
import { default as default81 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
84
|
+
import { default as default82 } from "./hooks/useBookmark/useBookmark.js";
|
|
85
|
+
import { default as default83 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
86
|
+
import { default as default84 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
87
|
+
import { default as default85 } from "./hooks/useCantoo/useCantoo.js";
|
|
88
|
+
import { default as default86 } from "./hooks/useCarbonioUnread/useCarbonioUnread.js";
|
|
89
|
+
import { default as default87 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
90
|
+
import { default as default88 } from "./hooks/useConversation/useConversation.js";
|
|
91
|
+
import { default as default89 } from "./hooks/useDate/useDate.js";
|
|
92
|
+
import { default as default90 } from "./hooks/useDebounce/useDebounce.js";
|
|
93
|
+
import { default as default91 } from "./hooks/useDirectory/useDirectory.js";
|
|
94
|
+
import { default as default92 } from "./hooks/useDropdown/useDropdown.js";
|
|
95
|
+
import { default as default93 } from "./hooks/useDropzone/useDropzone.js";
|
|
96
|
+
import { default as default94 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
97
|
+
import { default as default95 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
98
|
+
import { default as default96 } from "./hooks/useHover/useHover.js";
|
|
99
|
+
import { default as default97 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
100
|
+
import { default as default98 } from "./hooks/useImage/useImage.js";
|
|
101
|
+
import { default as default99 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
102
|
+
import { default as default100 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
103
|
+
import { default as default101 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
104
|
+
import { default as default102 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
105
|
+
import { default as default103 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
106
|
+
import { default as default104 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
107
|
+
import { default as default105 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
108
|
+
import { default as default106 } from "./hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
109
|
+
import { default as default107 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
110
|
+
import { default as default108 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
111
|
+
import { default as default109 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
112
|
+
import { default as default110 } from "./hooks/useTitle/useTitle.js";
|
|
113
|
+
import { default as default111 } from "./hooks/useToast/useToast.js";
|
|
114
|
+
import { default as default112 } from "./hooks/useToggle/useToggle.js";
|
|
115
|
+
import { default as default113 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
116
|
+
import { default as default114 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
117
|
+
import { default as default115 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
118
|
+
import { default as default116 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
119
|
+
import { default as default117 } from "./hooks/useUpload/useUpload.js";
|
|
120
|
+
import { default as default118 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
121
|
+
import { default as default119 } from "./hooks/useUser/useUser.js";
|
|
122
|
+
import { default as default120 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
123
|
+
import { default as default121 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
124
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default122 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
125
|
+
import { default as default123 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
126
|
+
import { default as default124 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
127
|
+
import { default as default125 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
130
128
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
131
129
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
132
130
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -162,7 +160,7 @@ import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-
|
|
|
162
160
|
import { getRotateTransitionStyle } from "./utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
163
161
|
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
164
162
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
165
|
-
import { default as
|
|
163
|
+
import { default as default126 } from "./hooks/useBackground/useBackground.js";
|
|
166
164
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
167
165
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
168
166
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
@@ -171,7 +169,7 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
171
169
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
172
170
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
173
171
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
174
|
-
import { default as
|
|
172
|
+
import { default as default127 } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
175
173
|
export {
|
|
176
174
|
AccessiblePalette,
|
|
177
175
|
default2 as ActionBar,
|
|
@@ -217,82 +215,81 @@ export {
|
|
|
217
215
|
default29 as Flex,
|
|
218
216
|
default30 as FormControl,
|
|
219
217
|
default31 as FormText,
|
|
220
|
-
default32 as GoogleDrive,
|
|
221
|
-
default33 as GoogleDriveFileCard,
|
|
222
218
|
Grid,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
219
|
+
default32 as Heading,
|
|
220
|
+
default33 as IconButton,
|
|
221
|
+
default34 as Image,
|
|
222
|
+
default35 as ImageEditor,
|
|
223
|
+
default36 as ImagePicker,
|
|
224
|
+
default37 as Input,
|
|
229
225
|
InternalLinker,
|
|
230
|
-
|
|
226
|
+
default38 as Label,
|
|
231
227
|
Layout,
|
|
232
|
-
|
|
228
|
+
default39 as LinkPill,
|
|
233
229
|
List,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
230
|
+
default40 as Loading,
|
|
231
|
+
default41 as LoadingScreen,
|
|
232
|
+
default42 as Logo,
|
|
233
|
+
default43 as LogoBeta,
|
|
234
|
+
Masonry,
|
|
235
|
+
default44 as MediaLibrary,
|
|
236
|
+
default45 as MediaViewer,
|
|
240
237
|
Menu,
|
|
241
238
|
MockedProvider,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
239
|
+
default46 as Modal,
|
|
240
|
+
default47 as ModalBeta,
|
|
241
|
+
default48 as Nextcloud,
|
|
242
|
+
default49 as NextcloudFileCard,
|
|
243
|
+
default50 as OnboardingModal,
|
|
244
|
+
default51 as PageLayout,
|
|
248
245
|
PageLayoutContext,
|
|
249
246
|
Pagination,
|
|
250
247
|
Popover,
|
|
251
248
|
PopoverBody,
|
|
252
249
|
PopoverFooter,
|
|
253
250
|
PopoverHeader,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
251
|
+
default52 as PreventPropagation,
|
|
252
|
+
default53 as PromotionCard,
|
|
253
|
+
default54 as PublishModal,
|
|
254
|
+
default55 as Radio,
|
|
255
|
+
default56 as RadioCard,
|
|
256
|
+
default57 as RadioTile,
|
|
260
257
|
ResourceModal,
|
|
261
258
|
Root,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
259
|
+
default58 as SearchBar,
|
|
260
|
+
default59 as SearchButton,
|
|
261
|
+
default60 as SegmentedControl,
|
|
262
|
+
default61 as Select,
|
|
263
|
+
default62 as ShareBlog,
|
|
264
|
+
default63 as ShareModal,
|
|
265
|
+
default64 as ShareResources,
|
|
266
|
+
default65 as SortableTree,
|
|
267
|
+
default66 as StackedGroup,
|
|
268
|
+
default67 as Stepper,
|
|
269
|
+
default68 as Switch,
|
|
270
|
+
default69 as Table,
|
|
274
271
|
Tabs,
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
default70 as TextArea,
|
|
273
|
+
default71 as TextSkeleton,
|
|
277
274
|
Toolbar,
|
|
278
|
-
|
|
279
|
-
|
|
275
|
+
default72 as Tooltip,
|
|
276
|
+
default73 as Tree,
|
|
280
277
|
TreeNode,
|
|
281
278
|
TreeNodeFolderWrapper,
|
|
282
|
-
|
|
279
|
+
default74 as TreeView,
|
|
283
280
|
Upload,
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
default75 as UploadCard,
|
|
282
|
+
default76 as UploadFiles,
|
|
286
283
|
UserRightsList,
|
|
287
284
|
UserSearch,
|
|
288
|
-
|
|
289
|
-
|
|
285
|
+
default77 as VideoEmbed,
|
|
286
|
+
default78 as VideoRecorder,
|
|
290
287
|
VisibleType,
|
|
291
|
-
|
|
288
|
+
default79 as VisuallyHidden,
|
|
292
289
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
293
290
|
WORKSPACE_USER_FOLDER_ID,
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
default80 as Workspace,
|
|
292
|
+
default81 as WorkspaceFolders,
|
|
296
293
|
addNode,
|
|
297
294
|
arrayUnique,
|
|
298
295
|
buildTree,
|
|
@@ -323,62 +320,61 @@ export {
|
|
|
323
320
|
setRef,
|
|
324
321
|
updateNode,
|
|
325
322
|
updateParentIds,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
323
|
+
default126 as useBackground,
|
|
324
|
+
default82 as useBookmark,
|
|
325
|
+
default83 as useBreakpoint,
|
|
326
|
+
default84 as useBrowserInfo,
|
|
327
|
+
default85 as useCantoo,
|
|
328
|
+
default86 as useCarbonioUnread,
|
|
332
329
|
useCheckable,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
330
|
+
default87 as useClickOutside,
|
|
331
|
+
default88 as useConversation,
|
|
332
|
+
default89 as useDate,
|
|
333
|
+
default90 as useDebounce,
|
|
334
|
+
default91 as useDirectory,
|
|
335
|
+
default92 as useDropdown,
|
|
336
|
+
default93 as useDropzone,
|
|
340
337
|
useDropzoneContext,
|
|
341
338
|
useEdificeClient,
|
|
342
|
-
|
|
339
|
+
default94 as useEdificeIcons,
|
|
343
340
|
useEdificeTheme,
|
|
344
341
|
useFileToAttachment,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
default109 as useNextcloudSearch,
|
|
342
|
+
default95 as useHasWorkflow,
|
|
343
|
+
default96 as useHover,
|
|
344
|
+
default97 as useHttpErrorToast,
|
|
345
|
+
default98 as useImage,
|
|
346
|
+
default99 as useInfiniteScroll,
|
|
347
|
+
default100 as useIsAdmc,
|
|
348
|
+
default101 as useIsAdml,
|
|
349
|
+
default102 as useIsAdmlcOrAdmc,
|
|
350
|
+
default103 as useKeyPress,
|
|
351
|
+
default104 as useLibraryUrl,
|
|
352
|
+
default105 as useMediaLibrary,
|
|
353
|
+
default106 as useNextcloudSearch,
|
|
358
354
|
useOverlay,
|
|
359
355
|
usePageLayout,
|
|
360
|
-
|
|
356
|
+
default107 as usePublicConf,
|
|
361
357
|
useScreeb,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
358
|
+
default108 as useScrollToTop,
|
|
359
|
+
default109 as useShareMutation,
|
|
360
|
+
default110 as useTitle,
|
|
361
|
+
default111 as useToast,
|
|
362
|
+
default112 as useToggle,
|
|
363
|
+
default113 as useTrapFocus,
|
|
364
|
+
default114 as useTrashedResource,
|
|
369
365
|
useTreeSortable,
|
|
370
366
|
useTreeView,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
367
|
+
default115 as useUiOverride,
|
|
368
|
+
default116 as useUpdateMutation,
|
|
369
|
+
default117 as useUpload,
|
|
370
|
+
default118 as useUploadFiles,
|
|
371
|
+
default119 as useUser,
|
|
372
|
+
default127 as useUserPreferences,
|
|
373
|
+
default120 as useWorkspaceFile,
|
|
374
|
+
default121 as useWorkspaceFolders,
|
|
375
|
+
default122 as useWorkspaceFoldersTree,
|
|
376
|
+
default123 as useWorkspaceSearch,
|
|
377
|
+
default124 as useXitiTrackPageLoad,
|
|
378
|
+
default125 as useZendeskGuide,
|
|
383
379
|
wrapTreeNode
|
|
384
380
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState,
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
@@ -16,22 +16,20 @@ const HelpZone = ({
|
|
|
16
16
|
}) => {
|
|
17
17
|
const {
|
|
18
18
|
t
|
|
19
|
-
} = useTranslation(), [portalRoot, setPortalRoot] = useState(null), [isCompact, setIsCompact] = useState(!1)
|
|
19
|
+
} = useTranslation(), [portalRoot, setPortalRoot] = useState(null), [isCompact, setIsCompact] = useState(!1);
|
|
20
20
|
if (useEffect(() => (document.body.classList.add("help-zone-active"), setPortalRoot(document.getElementById("portal")), () => {
|
|
21
21
|
document.body.classList.remove("help-zone-active");
|
|
22
22
|
}), []), useEffect(() => {
|
|
23
23
|
if (isCompact)
|
|
24
24
|
return;
|
|
25
|
-
const goCompact = () => setIsCompact(!0)
|
|
26
|
-
questionButtonRef.current && event.target instanceof Node && questionButtonRef.current.contains(event.target) || goCompact();
|
|
27
|
-
};
|
|
25
|
+
const goCompact = () => setIsCompact(!0);
|
|
28
26
|
return document.addEventListener("scroll", goCompact, {
|
|
29
27
|
capture: !0,
|
|
30
28
|
passive: !0
|
|
31
|
-
}),
|
|
29
|
+
}), () => {
|
|
32
30
|
document.removeEventListener("scroll", goCompact, {
|
|
33
31
|
capture: !0
|
|
34
|
-
})
|
|
32
|
+
});
|
|
35
33
|
};
|
|
36
34
|
}, [isCompact]), !isReady || !portalRoot)
|
|
37
35
|
return null;
|
|
@@ -44,7 +42,7 @@ const HelpZone = ({
|
|
|
44
42
|
"help-zone-logo--full": !isCompact
|
|
45
43
|
}), children: isCompact ? /* @__PURE__ */ jsx(SvgIconLogoEdificeSmall, { width: 18, height: 18 }) : /* @__PURE__ */ jsx(SvgIconLogoEdificeFull, { width: 81, height: 18 }) }) }) }),
|
|
46
44
|
/* @__PURE__ */ jsx("span", { className: "help-zone-divider" }),
|
|
47
|
-
/* @__PURE__ */ jsx(ButtonBeta, {
|
|
45
|
+
/* @__PURE__ */ jsx(ButtonBeta, { className: "help-zone-question", "aria-label": t("help-zone.support.open"), color: "tertiary", variant: "ghost", onClick: handleOpenHelpZone, children: /* @__PURE__ */ jsx(Tooltip, { message: t("help-zone.support.open"), placement: "top", children: /* @__PURE__ */ jsx(SvgIconQuestion, { width: 24, height: 24, color: "white" }) }) })
|
|
48
46
|
] }), portalRoot);
|
|
49
47
|
};
|
|
50
48
|
export {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import HelpZone from "./HelpZone.js";
|
|
3
3
|
import useZendeskGuide from "../../hooks/useZendeskGuide/useZendeskGuide.js";
|
|
4
|
-
function getHeaderColor() {
|
|
5
|
-
return getComputedStyle(document.documentElement).getPropertyValue("--primitive-blue-400").trim();
|
|
6
|
-
}
|
|
7
4
|
function HelpZoneContainer() {
|
|
8
|
-
const
|
|
5
|
+
const {
|
|
9
6
|
isReady,
|
|
10
7
|
isOpen,
|
|
11
8
|
open,
|
|
12
9
|
close
|
|
13
|
-
} = useZendeskGuide(
|
|
10
|
+
} = useZendeskGuide();
|
|
14
11
|
return /* @__PURE__ */ jsx(HelpZone, { isReady, isOpen, onOpen: open, onClose: close });
|
|
15
12
|
}
|
|
16
13
|
export {
|
|
@@ -3,6 +3,11 @@ import { Content, Extensions, FocusPosition, JSONContent } from '@tiptap/react';
|
|
|
3
3
|
export interface EditorRef {
|
|
4
4
|
/** Get the current content. */
|
|
5
5
|
getContent: (as: 'html' | 'json' | 'plain') => undefined | string | JSONContent;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the editor has no content (TipTap's `editor.isEmpty`).
|
|
8
|
+
* Evaluated on each access, so it always reflects the current document.
|
|
9
|
+
*/
|
|
10
|
+
readonly isEmpty: boolean;
|
|
6
11
|
/** Get speech synthetisis current state */
|
|
7
12
|
isSpeeching: () => boolean;
|
|
8
13
|
/** [De]activate speech synthetisis */
|
|
@@ -32,13 +37,6 @@ export interface EditorProps {
|
|
|
32
37
|
mode?: 'edit' | 'read';
|
|
33
38
|
/** Toolbar to display in `edit` mode. */
|
|
34
39
|
toolbar?: 'full' | 'none';
|
|
35
|
-
/**
|
|
36
|
-
* Let users insert multimedia content (images, videos, audio, attachments
|
|
37
|
-
* and embedded content), `true` by default. When `false`, the toolbar hides
|
|
38
|
-
* these tools and pasted or dropped images are not uploaded. Content that
|
|
39
|
-
* already holds media is still rendered.
|
|
40
|
-
*/
|
|
41
|
-
multimedia?: boolean;
|
|
42
40
|
/** Display with or without a border */
|
|
43
41
|
variant?: 'outline' | 'ghost';
|
|
44
42
|
/** Set focus position to the editor */
|
|
@@ -27,7 +27,6 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
27
27
|
content,
|
|
28
28
|
mode = "read",
|
|
29
29
|
toolbar = "full",
|
|
30
|
-
multimedia = !0,
|
|
31
30
|
variant = "outline",
|
|
32
31
|
focus = "start",
|
|
33
32
|
placeholder = "",
|
|
@@ -41,7 +40,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
41
40
|
} = useEdificeClient(), {
|
|
42
41
|
editor,
|
|
43
42
|
editable
|
|
44
|
-
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions
|
|
43
|
+
} = useTipTapEditor(mode === "edit", content, focus, placeholder, onContentChange, visibility, extensions), {
|
|
45
44
|
ref: mediaLibraryModalRef,
|
|
46
45
|
...mediaLibraryModalHandlers
|
|
47
46
|
} = useMediaLibraryEditor(editor), {
|
|
@@ -61,6 +60,9 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
61
60
|
throw `[Editor] Unknown content format ${as}`;
|
|
62
61
|
}
|
|
63
62
|
},
|
|
63
|
+
get isEmpty() {
|
|
64
|
+
return (editor == null ? void 0 : editor.isEmpty) ?? !0;
|
|
65
|
+
},
|
|
64
66
|
toogleSpeechSynthetisis: speechSynthetisis.toggle,
|
|
65
67
|
isSpeeching: () => speechSynthetisis.isActivated,
|
|
66
68
|
setFocus: (position) => {
|
|
@@ -77,7 +79,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
77
79
|
editable
|
|
78
80
|
}, children: [
|
|
79
81
|
/* @__PURE__ */ jsxs("div", { className: borderClass, children: [
|
|
80
|
-
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal, cantooEditor: contooEditor
|
|
82
|
+
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal, cantooEditor: contooEditor }),
|
|
81
83
|
/* @__PURE__ */ jsxs(Flex, { direction: "row", children: [
|
|
82
84
|
/* @__PURE__ */ jsx(EditorContent, { "data-testid": "editor-content", id: id ?? editorId, editor, className: contentClass, style: {
|
|
83
85
|
flex: 1
|
|
@@ -8,8 +8,6 @@ interface Props {
|
|
|
8
8
|
toggleMathsModal: () => void;
|
|
9
9
|
/** Ref to a Cantoo editor instance */
|
|
10
10
|
cantooEditor: CantooEditor;
|
|
11
|
-
/** Show the tools inserting multimedia content, `true` by default. */
|
|
12
|
-
multimedia?: boolean;
|
|
13
11
|
}
|
|
14
|
-
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal, cantooEditor,
|
|
12
|
+
export declare const EditorToolbar: ({ mediaLibraryRef, toggleMathsModal, cantooEditor, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export {};
|