@edifice.io/react 2.6.12 → 2.6.13-develop-integration-demo.20261108143606

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.
Files changed (254) hide show
  1. package/dist/components/Checkbox/Checkbox.js +1 -1
  2. package/dist/components/Dropdown/Dropdown.js +19 -14
  3. package/dist/components/Dropdown/DropdownContext.d.ts +8 -0
  4. package/dist/components/Dropdown/DropdownItem.js +17 -1
  5. package/dist/components/Dropdown/DropdownMenuGroup.js +24 -6
  6. package/dist/components/Dropdown/DropdownSearchInput.js +16 -8
  7. package/dist/components/Dropdown/DropdownTrigger.js +24 -8
  8. package/dist/components/Dropdown/useDropdownItemFilter.js +5 -7
  9. package/dist/components/Dropdown/useMatchRegistry.d.ts +5 -0
  10. package/dist/components/Dropdown/useMatchRegistry.js +20 -0
  11. package/dist/components/Layout/Layout.js +12 -4
  12. package/dist/components/Masonry/Masonry.d.ts +40 -0
  13. package/dist/components/Masonry/Masonry.js +50 -0
  14. package/dist/components/Masonry/index.d.ts +2 -0
  15. package/dist/components/SearchBar/SearchBar.js +17 -26
  16. package/dist/components/Select/Select.d.ts +14 -1
  17. package/dist/components/Select/Select.js +11 -5
  18. package/dist/components/Tree/components/Tree.d.ts +2 -5
  19. package/dist/components/Tree/components/Tree.js +10 -7
  20. package/dist/components/Tree/hooks/useTree.d.ts +1 -0
  21. package/dist/components/Tree/hooks/useTree.js +6 -2
  22. package/dist/components/Tree/types/index.d.ts +7 -0
  23. package/dist/components/index.d.ts +1 -0
  24. package/dist/homepage.js +114 -24
  25. package/dist/hooks/useDropdown/useDropdown.d.ts +1 -0
  26. package/dist/hooks/useDropdown/useDropdown.js +27 -9
  27. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +1 -1
  28. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +2 -2
  29. package/dist/hooks/useUpload/useUpload.js +1 -1
  30. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
  31. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
  32. package/dist/icons-apps.js +256 -254
  33. package/dist/icons.js +406 -404
  34. package/dist/index.js +160 -156
  35. package/dist/modules/HelpZone/HelpZone.js +6 -8
  36. package/dist/modules/HelpZone/HelpZoneContainer.js +2 -5
  37. package/dist/modules/editor/components/Editor/Editor.d.ts +5 -0
  38. package/dist/modules/editor/components/Editor/Editor.js +3 -0
  39. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
  40. package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
  41. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
  42. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
  43. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
  44. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
  45. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
  46. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
  47. package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
  48. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
  49. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
  50. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
  51. package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
  52. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
  53. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
  54. package/dist/modules/homepage/components/AlloRegion/AlloRegion.d.ts +11 -0
  55. package/dist/modules/homepage/components/AlloRegion/AlloRegion.js +32 -0
  56. package/dist/modules/homepage/components/AlloRegion/AlloRegionContainer.d.ts +4 -0
  57. package/dist/modules/homepage/components/AlloRegion/AlloRegionContainer.js +10 -0
  58. package/dist/modules/homepage/components/AlloRegion/index.d.ts +3 -0
  59. package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +9 -0
  60. package/dist/modules/homepage/components/BriefMe/BriefMe.js +59 -0
  61. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +4 -0
  62. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +17 -0
  63. package/dist/modules/homepage/components/BriefMe/index.d.ts +4 -0
  64. package/dist/modules/homepage/components/BriefMe/types.d.ts +17 -0
  65. package/dist/modules/homepage/components/BriefMe/types.js +8 -0
  66. package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +31 -0
  67. package/dist/modules/homepage/components/BriefMe/useBriefMe.js +51 -0
  68. package/dist/modules/homepage/components/Cantine/Cantine.d.ts +7 -0
  69. package/dist/modules/homepage/components/Cantine/Cantine.js +44 -0
  70. package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +4 -0
  71. package/dist/modules/homepage/components/Cantine/CantineContainer.js +18 -0
  72. package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +24 -0
  73. package/dist/modules/homepage/components/Cantine/CantineModal.js +88 -0
  74. package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +7 -0
  75. package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +12 -0
  76. package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +5 -0
  77. package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +22 -0
  78. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +6 -0
  79. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +28 -0
  80. package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +12 -0
  81. package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +60 -0
  82. package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +11 -0
  83. package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +20 -0
  84. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +24 -0
  85. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +65 -0
  86. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +23 -0
  87. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +43 -0
  88. package/dist/modules/homepage/components/Cantine/index.d.ts +7 -0
  89. package/dist/modules/homepage/components/Cantine/types.d.ts +42 -0
  90. package/dist/modules/homepage/components/Captation/CaptationAudio/CaptationAudio.d.ts +7 -0
  91. package/dist/modules/homepage/components/Captation/CaptationAudio/CaptationAudio.js +44 -0
  92. package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.d.ts +9 -0
  93. package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.js +44 -0
  94. package/dist/modules/homepage/components/Captation/index.d.ts +2 -0
  95. package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +9 -0
  96. package/dist/modules/homepage/components/Edumalin/Edumalin.js +65 -0
  97. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +4 -0
  98. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +21 -0
  99. package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +8 -0
  100. package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +62 -0
  101. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +5 -0
  102. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +38 -0
  103. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +5 -0
  104. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +12 -0
  105. package/dist/modules/homepage/components/Edumalin/index.d.ts +7 -0
  106. package/dist/modules/homepage/components/Edumalin/types.d.ts +24 -0
  107. package/dist/modules/homepage/components/Edumalin/types.js +4 -0
  108. package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +16 -0
  109. package/dist/modules/homepage/components/Edumalin/useEdumalin.js +35 -0
  110. package/dist/modules/homepage/components/Edumalin/utils.d.ts +28 -0
  111. package/dist/modules/homepage/components/Edumalin/utils.js +56 -0
  112. package/dist/modules/homepage/components/Favorites/Favorites.js +1 -4
  113. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +16 -0
  114. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +65 -0
  115. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +4 -0
  116. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +12 -0
  117. package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +1 -0
  118. package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +6 -0
  119. package/dist/modules/homepage/components/GenerationHdf/index.d.ts +3 -0
  120. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +10 -0
  121. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +69 -0
  122. package/dist/modules/homepage/components/Header/Header.js +8 -20
  123. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
  124. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  125. package/dist/modules/homepage/components/Mediacentre/Mediacentre.d.ts +13 -0
  126. package/dist/modules/homepage/components/Mediacentre/Mediacentre.js +57 -0
  127. package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.d.ts +4 -0
  128. package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.js +12 -0
  129. package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.d.ts +6 -0
  130. package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.js +30 -0
  131. package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.d.ts +17 -0
  132. package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.js +32 -0
  133. package/dist/modules/homepage/components/Mediacentre/index.d.ts +5 -0
  134. package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.d.ts +24 -0
  135. package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.js +25 -0
  136. package/dist/modules/homepage/components/Mediacentre/types.d.ts +8 -0
  137. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -2
  138. package/dist/modules/homepage/components/Notifications/NotificationList.js +7 -8
  139. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +7 -12
  140. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +7 -4
  141. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +11 -13
  142. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
  143. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
  144. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
  145. package/dist/modules/homepage/components/Qwant/Qwant.d.ts +4 -0
  146. package/dist/modules/homepage/components/Qwant/Qwant.js +41 -0
  147. package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +1 -0
  148. package/dist/modules/homepage/components/Qwant/QwantContainer.js +10 -0
  149. package/dist/modules/homepage/components/Qwant/index.d.ts +3 -0
  150. package/dist/modules/homepage/components/Rss/Rss.d.ts +11 -0
  151. package/dist/modules/homepage/components/Rss/Rss.js +64 -0
  152. package/dist/modules/homepage/components/Rss/RssContainer.d.ts +1 -0
  153. package/dist/modules/homepage/components/Rss/RssContainer.js +45 -0
  154. package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +13 -0
  155. package/dist/modules/homepage/components/Rss/RssFeedForm.js +69 -0
  156. package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +11 -0
  157. package/dist/modules/homepage/components/Rss/RssFeedsModal.js +58 -0
  158. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +25 -0
  159. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +43 -0
  160. package/dist/modules/homepage/components/Rss/index.d.ts +6 -0
  161. package/dist/modules/homepage/components/Rss/services/api/index.d.ts +5 -0
  162. package/dist/modules/homepage/components/Rss/services/api/index.js +5 -0
  163. package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +38 -0
  164. package/dist/modules/homepage/components/Rss/services/api/rssService.js +51 -0
  165. package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +28 -0
  166. package/dist/modules/homepage/components/Rss/services/queries/rss.js +71 -0
  167. package/dist/modules/homepage/components/Rss/types.d.ts +25 -0
  168. package/dist/modules/homepage/components/Rss/utils.d.ts +7 -0
  169. package/dist/modules/homepage/components/Rss/utils.js +19 -0
  170. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
  171. package/dist/modules/homepage/components/ScreenTime/ScreenTime.d.ts +11 -0
  172. package/dist/modules/homepage/components/ScreenTime/ScreenTime.js +49 -0
  173. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.d.ts +10 -0
  174. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.js +115 -0
  175. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.d.ts +1 -0
  176. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.js +25 -0
  177. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.d.ts +5 -0
  178. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.js +22 -0
  179. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.d.ts +22 -0
  180. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.js +81 -0
  181. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.d.ts +14 -0
  182. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js +22 -0
  183. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.d.ts +6 -0
  184. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.js +25 -0
  185. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.d.ts +31 -0
  186. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js +34 -0
  187. package/dist/modules/homepage/components/ScreenTime/index.d.ts +6 -0
  188. package/dist/modules/homepage/components/ScreenTime/services/api/index.d.ts +4 -0
  189. package/dist/modules/homepage/components/ScreenTime/services/api/index.js +5 -0
  190. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.d.ts +28 -0
  191. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.js +39 -0
  192. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.d.ts +23 -0
  193. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.js +41 -0
  194. package/dist/modules/homepage/components/ScreenTime/types.d.ts +30 -0
  195. package/dist/modules/homepage/components/ScreenTime/utils.d.ts +50 -0
  196. package/dist/modules/homepage/components/ScreenTime/utils.js +115 -0
  197. package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +43 -0
  198. package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +23 -0
  199. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +34 -0
  200. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +26 -0
  201. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +14 -0
  202. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +64 -0
  203. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +20 -0
  204. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +43 -0
  205. package/dist/modules/homepage/components/TabsKids/index.d.ts +3 -0
  206. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +15 -0
  207. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +21 -0
  208. package/dist/modules/homepage/components/Universalis/Universalis.d.ts +8 -0
  209. package/dist/modules/homepage/components/Universalis/Universalis.js +62 -0
  210. package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +1 -0
  211. package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +16 -0
  212. package/dist/modules/homepage/components/Universalis/index.d.ts +3 -0
  213. package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
  214. package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
  215. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
  216. package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
  217. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
  218. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
  219. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
  220. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
  221. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
  222. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
  223. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
  224. package/dist/modules/homepage/components/index.d.ts +15 -0
  225. package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.d.ts +2 -2
  226. package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.js +4 -4
  227. package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
  228. package/dist/modules/icons/components/IconAddWidget.js +12 -0
  229. package/dist/modules/icons/components/apps/IconAlloregion.d.ts +7 -0
  230. package/dist/modules/icons/components/apps/IconAlloregion.js +17 -0
  231. package/dist/modules/icons/components/apps/index.d.ts +1 -0
  232. package/dist/modules/icons/components/index.d.ts +1 -0
  233. package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +2 -0
  234. package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +24 -10
  235. package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +1 -1
  236. package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +1 -0
  237. package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +89 -50
  238. package/dist/modules/multimedia/Nextcloud/Nextcloud.js +7 -19
  239. package/dist/modules/multimedia/Nextcloud/NextcloudLogin.d.ts +12 -0
  240. package/dist/modules/multimedia/Nextcloud/NextcloudLogin.js +33 -0
  241. package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.d.ts +12 -0
  242. package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.js +51 -0
  243. package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.d.ts +16 -0
  244. package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.js +52 -0
  245. package/dist/modules/multimedia/NextcloudFolders/index.d.ts +1 -0
  246. package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +6 -0
  247. package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +53 -19
  248. package/dist/modules/multimedia/VideoRecorder/VideoRecorderToolbar.js +27 -27
  249. package/dist/modules/multimedia/VideoRecorder/useCameras.d.ts +2 -0
  250. package/dist/modules/multimedia/VideoRecorder/useCameras.js +10 -4
  251. package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
  252. package/dist/modules/multimedia/index.d.ts +1 -0
  253. package/dist/multimedia.js +14 -12
  254. package/package.json +7 -6
@@ -8,8 +8,10 @@ import SvgIconRecord from "../../icons/components/IconRecord.js";
8
8
  import { useCameras } from "./useCameras.js";
9
9
  import { VideoRecorderToolbar } from "./VideoRecorderToolbar.js";
10
10
  import useUpload from "../../../hooks/useUpload/useUpload.js";
11
+ import useDate from "../../../hooks/useDate/useDate.js";
11
12
  import FormControl from "../../../components/Form/FormControl.js";
12
13
  import Label from "../../../components/Label/Label.js";
14
+ import Input from "../../../components/Input/Input.js";
13
15
  import Select from "../../../components/Select/Select.js";
14
16
  import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
15
17
  const VideoRecorder = /* @__PURE__ */ forwardRef(({
@@ -18,13 +20,15 @@ const VideoRecorder = /* @__PURE__ */ forwardRef(({
18
20
  onSuccess,
19
21
  onError,
20
22
  onRecordUpdated,
21
- hideSaveAction = !1
23
+ hideSaveAction = !1,
24
+ onNameChange
22
25
  }, ref) => {
23
26
  const {
24
27
  inputDevices,
25
28
  setPreferedDevice,
26
29
  restartStream,
27
- stream
30
+ stream,
31
+ streamError
28
32
  } = useCameras(), [maxDuration, setMaxDuration] = useState(18e4), [recording, setRecording] = useState(!1), [recorded, setRecorded] = useState(!1), [playing, setPlaying] = useState(!1), [saving, setSaving] = useState(!1), [saved, setSaved] = useState(!1), [mimeType, setMimeType] = useState(""), [recordedChunks, setRecordedChunks] = useState([]), [recordedVideo, setRecordedVideo] = useState(), [recordedTime, setRecordedTime] = useState(0), [playedTime, setPlayedTime] = useState(0), videoRef = useRef(null), recorderRef = useRef(null), {
29
33
  uploadBlob
30
34
  } = useUpload(void 0, appCode);
@@ -33,7 +37,11 @@ const VideoRecorder = /* @__PURE__ */ forwardRef(({
33
37
  }));
34
38
  const {
35
39
  t
36
- } = useTranslation();
40
+ } = useTranslation(), {
41
+ formatDate
42
+ } = useDate(), [recordName, setRecordName] = useState(() => `${t("bbm.video.recorder.defaultName")} ${formatDate(/* @__PURE__ */ new Date(), "YYYY/MM/DD HH[h]mm")}`.trim()), handleNameChange = (name) => {
43
+ setRecordName(name), onNameChange == null || onNameChange(name);
44
+ };
37
45
  useEffect(() => {
38
46
  initMaxDuration();
39
47
  }, []);
@@ -101,16 +109,24 @@ const VideoRecorder = /* @__PURE__ */ forwardRef(({
101
109
  setRecorded(!1), setRecording(!1), setPlaying(!1), setSaved(!1), setRecordedTime(0), setRecordedChunks([]), setRecordedVideo(void 0), restartStream(), onRecordUpdated && onRecordUpdated();
102
110
  }, handleSave = async () => {
103
111
  var _a;
104
- if ((_a = videoRef == null ? void 0 : videoRef.current) == null || _a.pause(), setSaving(!0), !recordedVideo) {
112
+ if ((_a = videoRef == null ? void 0 : videoRef.current) == null || _a.pause(), !recordedVideo) {
105
113
  console.error("Error while saving video: recorded video is undefined.");
106
114
  return;
107
115
  }
108
- const resVideo = await uploadBlob(recordedVideo, {
109
- duration: recordedTime
110
- });
111
- if (resVideo != null)
112
- return onSuccess == null || onSuccess([resVideo]), setSaving(!1), setSaved(!0), [resVideo];
113
- onError("Error while uploading video"), setSaving(!1), setSaved(!0);
116
+ setSaving(!0);
117
+ try {
118
+ const resVideo = await uploadBlob(recordedVideo, {
119
+ filename: recordName.trim(),
120
+ duration: recordedTime
121
+ });
122
+ if (resVideo != null)
123
+ return onSuccess == null || onSuccess([resVideo]), setSaved(!0), [resVideo];
124
+ onError("Error while uploading video");
125
+ } catch (error) {
126
+ console.error(error), onError("Error while uploading video");
127
+ } finally {
128
+ setSaving(!1);
129
+ }
114
130
  }, handleEnded = () => {
115
131
  setPlaying(!1), setPlayedTime(0), videoRef.current && (videoRef.current.currentTime = 0);
116
132
  }, handleInputDeviceChange = (option) => {
@@ -120,17 +136,35 @@ const VideoRecorder = /* @__PURE__ */ forwardRef(({
120
136
  };
121
137
  return useEffect(() => {
122
138
  recordedTime >= maxDuration && handleStop();
123
- }, [recordedTime, handleStop]), /* @__PURE__ */ jsxs("div", { className: "video-recorder d-flex flex-fill flex-column align-items-center pb-8", children: [
124
- /* @__PURE__ */ jsx("div", { className: "video-recorder-caption d-none d-md-block", children: caption }),
125
- inputDevices.length > 1 && /* @__PURE__ */ jsx("div", { className: "video-recorder-devices mb-12", children: /* @__PURE__ */ jsxs(FormControl, { id: "selectInputDevice", children: [
126
- /* @__PURE__ */ jsx(Label, { className: "d-none d-md-block", children: t("bbm.video.record.select.devices.label") }),
139
+ }, [recordedTime, handleStop]), streamError ? /* @__PURE__ */ jsxs("div", { className: "video-recorder-error", children: [
140
+ /* @__PURE__ */ jsx("div", { className: "video-recorder-error-illustration", "aria-hidden": "true" }),
141
+ /* @__PURE__ */ jsxs("div", { className: "video-recorder-error-text", children: [
142
+ /* @__PURE__ */ jsx("p", { className: "video-recorder-error-title", children: t("bbm.video.recorder.device.error.title") }),
143
+ /* @__PURE__ */ jsx("p", { className: "video-recorder-error-description", children: t("bbm.video.recorder.device.error.text") })
144
+ ] })
145
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "video-recorder", children: [
146
+ /* @__PURE__ */ jsxs(FormControl, { id: "recordName", isRequired: !0, isReadOnly: saving || saved, children: [
147
+ /* @__PURE__ */ jsx(Label, { leftIcon: /* @__PURE__ */ jsx(SvgIconRecordVideo, { width: 18, height: 18 }), children: t("bbm.video.recorder.name.label") }),
148
+ /* @__PURE__ */ jsx(Input, { type: "text", size: "lg", maxLength: 80, showCounter: !0, value: recordName, placeholder: t("bbm.video.recorder.name"), onChange: (event) => handleNameChange(event.target.value) })
149
+ ] }),
150
+ inputDevices.length > 1 && /* @__PURE__ */ jsx("div", { className: "video-recorder-devices", children: /* @__PURE__ */ jsxs(FormControl, { id: "selectInputDevice", children: [
151
+ /* @__PURE__ */ jsx(Label, { children: t("bbm.video.record.select.devices.label") }),
127
152
  /* @__PURE__ */ jsx(Select, { placeholderOption: t("bbm.video.record.select.devices.placeholder"), options: inputDevices.map((videoInputDevice) => videoInputDevice.label), onValueChange: handleInputDeviceChange })
128
153
  ] }) }),
129
- /* @__PURE__ */ jsxs("div", { className: "video-recorder-video-container position-relative align-self-stretch", children: [
130
- /* @__PURE__ */ jsx("video", { ref: videoRef, playsInline: !0, autoPlay: !0, controls: !1, muted: !0, onEnded: handleEnded, className: "rounded", children: /* @__PURE__ */ jsx("track", { default: !0, kind: "captions", srcLang: "fr", src: "" }) }),
131
- (recording || recorded) && /* @__PURE__ */ jsxs("div", { className: "video-recorder-time d-flex align-items-center font-monospace fs-6 text-bg-dark rounded", children: [
154
+ /* @__PURE__ */ jsxs("div", { className: "video-recorder-video-container", children: [
155
+ /* @__PURE__ */ jsx("div", { className: "video-recorder-placeholder", children: /* @__PURE__ */ jsx(SvgIconRecordVideo, { width: 60, height: 60 }) }),
156
+ /* @__PURE__ */ jsx("video", { ref: videoRef, playsInline: !0, autoPlay: !0, controls: !1, muted: !0, onEnded: handleEnded, children: /* @__PURE__ */ jsx("track", { default: !0, kind: "captions", srcLang: "fr", src: "" }) }),
157
+ /* @__PURE__ */ jsxs("div", { className: "video-recorder-time", children: [
158
+ !recording && !recorded && /* @__PURE__ */ jsxs(Fragment, { children: [
159
+ /* @__PURE__ */ jsx(SvgIconRecordVideo, { width: 18, height: 18 }),
160
+ /* @__PURE__ */ jsxs("span", { children: [
161
+ convertMsToMS(0),
162
+ "/",
163
+ convertMsToMS(maxDuration)
164
+ ] })
165
+ ] }),
132
166
  recording && /* @__PURE__ */ jsxs(Fragment, { children: [
133
- /* @__PURE__ */ jsx(SvgIconRecord, { width: 12, height: 12, color: "red", className: "me-4" }),
167
+ /* @__PURE__ */ jsx(SvgIconRecord, { width: 12, height: 12, className: "video-recorder-time-recording" }),
134
168
  /* @__PURE__ */ jsxs("span", { children: [
135
169
  convertMsToMS(recordedTime),
136
170
  "/",
@@ -138,7 +172,7 @@ const VideoRecorder = /* @__PURE__ */ forwardRef(({
138
172
  ] })
139
173
  ] }),
140
174
  recorded && /* @__PURE__ */ jsxs(Fragment, { children: [
141
- /* @__PURE__ */ jsx(SvgIconRecordVideo, { width: 14, height: 14, className: "me-4" }),
175
+ /* @__PURE__ */ jsx(SvgIconRecordVideo, { width: 18, height: 18 }),
142
176
  /* @__PURE__ */ jsxs("span", { children: [
143
177
  convertMsToMS(playedTime),
144
178
  "/",
@@ -4,7 +4,7 @@ import SvgIconPause from "../../icons/components/IconPause.js";
4
4
  import SvgIconPlayFilled from "../../icons/components/IconPlayFilled.js";
5
5
  import SvgIconRecordStop from "../../icons/components/IconRecordStop.js";
6
6
  import SvgIconRecord from "../../icons/components/IconRecord.js";
7
- import SvgIconRefresh from "../../icons/components/IconRefresh.js";
7
+ import SvgIconReset from "../../icons/components/IconReset.js";
8
8
  import SvgIconSave from "../../icons/components/IconSave.js";
9
9
  import { Toolbar } from "../../../components/Toolbar/Toolbar.js";
10
10
  const VideoRecorderToolbar = ({
@@ -22,74 +22,74 @@ const VideoRecorderToolbar = ({
22
22
  }) => {
23
23
  const {
24
24
  t
25
- } = useTranslation(), toolbarItems = [{
26
- type: "icon",
25
+ } = useTranslation(), renderLabel = (label, disabled) => disabled ? void 0 : /* @__PURE__ */ jsx("span", { className: "video-recorder-toolbar-label", children: label }), isRecordDisabled = recording || recorded || saving, isStopDisabled = !recording || recorded || saving, isPlaybackDisabled = !recorded || saving, isSaveDisabled = !recorded || saving || saved, toolbarItems = [{
26
+ type: "button",
27
27
  name: "record",
28
28
  props: {
29
- icon: /* @__PURE__ */ jsx(SvgIconRecord, { color: recording || recorded ? "" : "red" }),
29
+ leftIcon: /* @__PURE__ */ jsx(SvgIconRecord, {}),
30
30
  color: "danger",
31
- disabled: recording || recorded || saving,
31
+ disabled: isRecordDisabled,
32
32
  onClick: handleRecord,
33
- "aria-label": t("bbm.video.record.start")
33
+ children: renderLabel(t("bbm.video.record.start"), isRecordDisabled)
34
34
  },
35
35
  tooltip: t("bbm.video.record.start")
36
36
  }, {
37
- type: "icon",
37
+ type: "button",
38
38
  name: "stop",
39
39
  props: {
40
- icon: /* @__PURE__ */ jsx(SvgIconRecordStop, {}),
41
- disabled: !recording || recorded || saving,
40
+ leftIcon: /* @__PURE__ */ jsx(SvgIconRecordStop, {}),
41
+ disabled: isStopDisabled,
42
42
  onClick: handleStop,
43
- "aria-label": t("bbm.video.record.stop")
43
+ children: renderLabel(t("bbm.video.record.stop"), isStopDisabled)
44
44
  },
45
45
  tooltip: t("bbm.video.record.stop")
46
46
  }, {
47
- type: "icon",
47
+ type: "button",
48
48
  name: "play",
49
49
  visibility: playing ? "hide" : "show",
50
50
  props: {
51
- icon: /* @__PURE__ */ jsx(SvgIconPlayFilled, {}),
52
- disabled: !recorded || saving,
51
+ leftIcon: /* @__PURE__ */ jsx(SvgIconPlayFilled, {}),
52
+ disabled: isPlaybackDisabled,
53
53
  onClick: handlePlayPause,
54
- "aria-label": t("bbm.video.play.start")
54
+ children: renderLabel(t("bbm.video.play.start"), isPlaybackDisabled)
55
55
  },
56
56
  tooltip: t("bbm.video.play.start")
57
57
  }, {
58
- type: "icon",
58
+ type: "button",
59
59
  name: "pause",
60
60
  visibility: playing ? "show" : "hide",
61
61
  props: {
62
- icon: /* @__PURE__ */ jsx(SvgIconPause, {}),
63
- disabled: !recorded || saving,
62
+ leftIcon: /* @__PURE__ */ jsx(SvgIconPause, {}),
63
+ disabled: isPlaybackDisabled,
64
64
  onClick: handlePlayPause,
65
- "aria-label": t("bbm.video.play.pause")
65
+ children: renderLabel(t("bbm.video.play.pause"), isPlaybackDisabled)
66
66
  },
67
67
  tooltip: t("bbm.video.play.pause")
68
68
  }, {
69
69
  type: "divider"
70
70
  }, {
71
- type: "icon",
71
+ type: "button",
72
72
  name: "reset",
73
73
  props: {
74
- icon: /* @__PURE__ */ jsx(SvgIconRefresh, {}),
75
- disabled: !recorded || saving,
74
+ leftIcon: /* @__PURE__ */ jsx(SvgIconReset, {}),
75
+ disabled: isPlaybackDisabled,
76
76
  onClick: handleReset,
77
- "aria-label": t("bbm.video.record.reset")
77
+ children: renderLabel(t("bbm.video.record.reset"), isPlaybackDisabled)
78
78
  },
79
79
  tooltip: t("bbm.video.record.reset")
80
80
  }, {
81
- type: "icon",
81
+ type: "button",
82
82
  name: "save",
83
83
  visibility: hideSaveAction ? "hide" : "show",
84
84
  props: {
85
- icon: /* @__PURE__ */ jsx(SvgIconSave, {}),
86
- disabled: !recorded || saving || saved,
85
+ leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}),
86
+ disabled: isSaveDisabled,
87
87
  onClick: handleSave,
88
- "aria-label": t("bbm.video.record.save")
88
+ children: renderLabel(t("bbm.video.record.save"), isSaveDisabled)
89
89
  },
90
90
  tooltip: t("bbm.video.record.save")
91
91
  }];
92
- return /* @__PURE__ */ jsx(Toolbar, { items: toolbarItems, className: "position-absolute bottom-0 start-50 bg-white" });
92
+ return /* @__PURE__ */ jsx(Toolbar, { items: toolbarItems });
93
93
  };
94
94
  export {
95
95
  VideoRecorderToolbar
@@ -5,6 +5,8 @@ export declare function useCameras(): {
5
5
  setPreferedDevice: (device?: MediaDeviceInfo) => void;
6
6
  /** The current video stream. */
7
7
  stream: MediaStream | undefined;
8
+ /** Why no usable stream could be acquired, if so. */
9
+ streamError: unknown;
8
10
  /** Start a video stream from the default or prefered device. */
9
11
  restartStream: () => void;
10
12
  };
@@ -10,16 +10,20 @@ function useCameras() {
10
10
  } = useTranslation(), [inputDevices, setInputDevices] = useState([]), [mediaStreamConstraints, setMediaStreamConstraints] = useState({
11
11
  audio: !0,
12
12
  video: !0
13
- }), [stream, setStream] = useState();
13
+ }), [stream, setStream] = useState(), [streamError, setStreamError] = useState();
14
14
  async function getVideoInputDevices() {
15
15
  return (await navigator.mediaDevices.enumerateDevices()).filter((device2) => device2.kind === "videoinput");
16
16
  }
17
17
  const enableStream = async (constraints) => {
18
18
  try {
19
- const mediaStream = await navigator.mediaDevices.getUserMedia(constraints);
20
- setStream(mediaStream);
19
+ const mediaStream = await navigator.mediaDevices.getUserMedia(constraints), kinds = mediaStream.getTracks().map((track) => track.kind);
20
+ if (!kinds.includes("video") || !kinds.includes("audio"))
21
+ throw new Error("Missing camera or microphone track");
22
+ mediaStream.getTracks().forEach((track) => {
23
+ track.onended = () => setStreamError(new Error("Track ended"));
24
+ }), setStream(mediaStream), setStreamError(void 0);
21
25
  } catch (err) {
22
- console.error(err);
26
+ console.error(err), setStreamError(err);
23
27
  }
24
28
  }, restartStream = () => {
25
29
  stream == null || stream.getTracks().forEach((track) => track.stop()), enableStream(mediaStreamConstraints);
@@ -77,6 +81,8 @@ function useCameras() {
77
81
  setPreferedDevice,
78
82
  /** The current video stream. */
79
83
  stream,
84
+ /** Why no usable stream could be acquired, if so. */
85
+ streamError,
80
86
  /** Start a video stream from the default or prefered device. */
81
87
  restartStream
82
88
  };
@@ -150,7 +150,7 @@ const WORKSPACE_VIEW_WORKFLOW = "org.entcore.workspace.controllers.WorkspaceCont
150
150
  ] }) }),
151
151
  /* @__PURE__ */ jsx(Grid.Col, { sm: "12", md: "5", xl: "8", children: /* @__PURE__ */ jsxs(Grid, { className: "flex-grow-1 gap-0", children: [
152
152
  /* @__PURE__ */ jsxs(Grid.Col, { sm: "4", md: "8", xl: "12", children: [
153
- /* @__PURE__ */ jsx("div", { className: "workspace-search px-16 py-8 ", children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, className: "gap-16", onChange: handleSearchChange }) }),
153
+ /* @__PURE__ */ jsx("div", { className: "workspace-search px-16 py-8 ", children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, onChange: handleSearchChange }) }),
154
154
  /* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center justify-content-end px-8 py-4", children: [
155
155
  /* @__PURE__ */ jsx("small", { className: "text-muted", children: t("workspace.search.order") }),
156
156
  /* @__PURE__ */ jsxs(Dropdown, { children: [
@@ -6,6 +6,7 @@ export * from './FileCard';
6
6
  export * from './Linker';
7
7
  export * from './MediaLibrary';
8
8
  export * from './Nextcloud';
9
+ export * from './NextcloudFolders';
9
10
  export * from './UploadCard';
10
11
  export * from './VideoEmbed';
11
12
  export * from './VideoRecorder';
@@ -6,12 +6,13 @@ import { default as default6 } from "./modules/multimedia/ImagePicker/ImagePicke
6
6
  import { default as default7 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
7
7
  import { default as default8 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
8
8
  import { default as default9 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
9
- import { default as default10 } from "./modules/multimedia/UploadCard/UploadCard.js";
10
- import { default as default11 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
11
- import { default as default12 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
12
- import { default as default13 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
13
- import { default as default14 } from "./modules/multimedia/Workspace/Workspace.js";
14
- import { default as default15 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
9
+ import { default as default10 } from "./modules/multimedia/NextcloudFolders/NextcloudFolders.js";
10
+ import { default as default11 } from "./modules/multimedia/UploadCard/UploadCard.js";
11
+ import { default as default12 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
12
+ import { default as default13 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
13
+ import { default as default14 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
14
+ import { default as default15 } from "./modules/multimedia/Workspace/Workspace.js";
15
+ import { default as default16 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
15
16
  import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
16
17
  import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
17
18
  import { Upload } from "./modules/multimedia/MediaLibrary/innertabs/Upload.js";
@@ -26,11 +27,12 @@ export {
26
27
  default7 as MediaLibrary,
27
28
  default8 as Nextcloud,
28
29
  default9 as NextcloudFileCard,
30
+ default10 as NextcloudFolders,
29
31
  Upload,
30
- default10 as UploadCard,
31
- default11 as UploadFiles,
32
- default12 as VideoEmbed,
33
- default13 as VideoRecorder,
34
- default14 as Workspace,
35
- default15 as WorkspaceFolders
32
+ default11 as UploadCard,
33
+ default12 as UploadFiles,
34
+ default13 as VideoEmbed,
35
+ default14 as VideoRecorder,
36
+ default15 as Workspace,
37
+ default16 as WorkspaceFolders
36
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.6.12",
3
+ "version": "2.6.13-develop-integration-demo.20261108143606",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -124,6 +124,7 @@
124
124
  "@tiptap/starter-kit": "2.11.0",
125
125
  "@uidotdev/usehooks": "2.4.1",
126
126
  "antd": "5.29.1",
127
+ "chart.js": "4.5.1",
127
128
  "clsx": "2.1.1",
128
129
  "dayjs": "1.11.19",
129
130
  "emoji-picker-react": "4.17.4",
@@ -140,9 +141,9 @@
140
141
  "swiper": "10.1.0",
141
142
  "ua-parser-js": "1.0.36",
142
143
  "zustand": "4.5.7",
143
- "@edifice.io/bootstrap": "2.6.12",
144
- "@edifice.io/tiptap-extensions": "2.6.12",
145
- "@edifice.io/utilities": "2.6.12"
144
+ "@edifice.io/bootstrap": "2.6.13-develop-integration-demo.20261108143606",
145
+ "@edifice.io/tiptap-extensions": "2.6.13-develop-integration-demo.20261108143606",
146
+ "@edifice.io/utilities": "2.6.13-develop-integration-demo.20261108143606"
146
147
  },
147
148
  "devDependencies": {
148
149
  "@babel/plugin-transform-react-pure-annotations": "7.27.1",
@@ -174,8 +175,8 @@
174
175
  "vite": "5.4.14",
175
176
  "vite-plugin-dts": "4.5.4",
176
177
  "vite-tsconfig-paths": "5.1.4",
177
- "@edifice.io/client": "2.6.12",
178
- "@edifice.io/config": "2.6.12"
178
+ "@edifice.io/client": "2.6.13-develop-integration-demo.20261108143606",
179
+ "@edifice.io/config": "2.6.13-develop-integration-demo.20261108143606"
179
180
  },
180
181
  "peerDependencies": {
181
182
  "@react-spring/web": "9.7.5",