@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.
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +19 -14
- package/dist/components/Dropdown/DropdownContext.d.ts +8 -0
- package/dist/components/Dropdown/DropdownItem.js +17 -1
- package/dist/components/Dropdown/DropdownMenuGroup.js +24 -6
- package/dist/components/Dropdown/DropdownSearchInput.js +16 -8
- package/dist/components/Dropdown/DropdownTrigger.js +24 -8
- package/dist/components/Dropdown/useDropdownItemFilter.js +5 -7
- package/dist/components/Dropdown/useMatchRegistry.d.ts +5 -0
- package/dist/components/Dropdown/useMatchRegistry.js +20 -0
- 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/Select/Select.d.ts +14 -1
- package/dist/components/Select/Select.js +11 -5
- 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 +114 -24
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -0
- package/dist/hooks/useDropdown/useDropdown.js +27 -9
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +1 -1
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +2 -2
- package/dist/hooks/useUpload/useUpload.js +1 -1
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
- package/dist/icons-apps.js +256 -254
- package/dist/icons.js +406 -404
- package/dist/index.js +160 -156
- 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 -0
- package/dist/modules/editor/components/Editor/Editor.js +3 -0
- 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/AlloRegion/AlloRegion.d.ts +11 -0
- package/dist/modules/homepage/components/AlloRegion/AlloRegion.js +32 -0
- package/dist/modules/homepage/components/AlloRegion/AlloRegionContainer.d.ts +4 -0
- package/dist/modules/homepage/components/AlloRegion/AlloRegionContainer.js +10 -0
- package/dist/modules/homepage/components/AlloRegion/index.d.ts +3 -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/Captation/CaptationAudio/CaptationAudio.d.ts +7 -0
- package/dist/modules/homepage/components/Captation/CaptationAudio/CaptationAudio.js +44 -0
- package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.d.ts +9 -0
- package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.js +44 -0
- package/dist/modules/homepage/components/Captation/index.d.ts +2 -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/Favorites/Favorites.js +1 -4
- 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 +8 -20
- 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/Mediacentre/Mediacentre.d.ts +13 -0
- package/dist/modules/homepage/components/Mediacentre/Mediacentre.js +57 -0
- package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.d.ts +4 -0
- package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.js +12 -0
- package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.d.ts +6 -0
- package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.js +30 -0
- package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.d.ts +17 -0
- package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.js +32 -0
- package/dist/modules/homepage/components/Mediacentre/index.d.ts +5 -0
- package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.d.ts +24 -0
- package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.js +25 -0
- package/dist/modules/homepage/components/Mediacentre/types.d.ts +8 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -2
- 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/NotificationFilterModal.js +11 -13
- package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
- 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 +15 -0
- 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/IconAlloregion.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAlloregion.js +17 -0
- package/dist/modules/icons/components/apps/index.d.ts +1 -0
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +2 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +24 -10
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +1 -1
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +1 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +89 -50
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +7 -19
- package/dist/modules/multimedia/Nextcloud/NextcloudLogin.d.ts +12 -0
- package/dist/modules/multimedia/Nextcloud/NextcloudLogin.js +33 -0
- package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.d.ts +12 -0
- package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.js +51 -0
- package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.d.ts +16 -0
- package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.js +52 -0
- package/dist/modules/multimedia/NextcloudFolders/index.d.ts +1 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +6 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +53 -19
- package/dist/modules/multimedia/VideoRecorder/VideoRecorderToolbar.js +27 -27
- package/dist/modules/multimedia/VideoRecorder/useCameras.d.ts +2 -0
- package/dist/modules/multimedia/VideoRecorder/useCameras.js +10 -4
- package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +14 -12
- 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(),
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
|
124
|
-
/* @__PURE__ */ jsx("div", { className: "video-recorder-
|
|
125
|
-
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
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
|
|
130
|
-
/* @__PURE__ */ jsx("
|
|
131
|
-
(
|
|
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,
|
|
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:
|
|
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
|
|
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: "
|
|
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
|
-
|
|
29
|
+
leftIcon: /* @__PURE__ */ jsx(SvgIconRecord, {}),
|
|
30
30
|
color: "danger",
|
|
31
|
-
disabled:
|
|
31
|
+
disabled: isRecordDisabled,
|
|
32
32
|
onClick: handleRecord,
|
|
33
|
-
|
|
33
|
+
children: renderLabel(t("bbm.video.record.start"), isRecordDisabled)
|
|
34
34
|
},
|
|
35
35
|
tooltip: t("bbm.video.record.start")
|
|
36
36
|
}, {
|
|
37
|
-
type: "
|
|
37
|
+
type: "button",
|
|
38
38
|
name: "stop",
|
|
39
39
|
props: {
|
|
40
|
-
|
|
41
|
-
disabled:
|
|
40
|
+
leftIcon: /* @__PURE__ */ jsx(SvgIconRecordStop, {}),
|
|
41
|
+
disabled: isStopDisabled,
|
|
42
42
|
onClick: handleStop,
|
|
43
|
-
|
|
43
|
+
children: renderLabel(t("bbm.video.record.stop"), isStopDisabled)
|
|
44
44
|
},
|
|
45
45
|
tooltip: t("bbm.video.record.stop")
|
|
46
46
|
}, {
|
|
47
|
-
type: "
|
|
47
|
+
type: "button",
|
|
48
48
|
name: "play",
|
|
49
49
|
visibility: playing ? "hide" : "show",
|
|
50
50
|
props: {
|
|
51
|
-
|
|
52
|
-
disabled:
|
|
51
|
+
leftIcon: /* @__PURE__ */ jsx(SvgIconPlayFilled, {}),
|
|
52
|
+
disabled: isPlaybackDisabled,
|
|
53
53
|
onClick: handlePlayPause,
|
|
54
|
-
|
|
54
|
+
children: renderLabel(t("bbm.video.play.start"), isPlaybackDisabled)
|
|
55
55
|
},
|
|
56
56
|
tooltip: t("bbm.video.play.start")
|
|
57
57
|
}, {
|
|
58
|
-
type: "
|
|
58
|
+
type: "button",
|
|
59
59
|
name: "pause",
|
|
60
60
|
visibility: playing ? "show" : "hide",
|
|
61
61
|
props: {
|
|
62
|
-
|
|
63
|
-
disabled:
|
|
62
|
+
leftIcon: /* @__PURE__ */ jsx(SvgIconPause, {}),
|
|
63
|
+
disabled: isPlaybackDisabled,
|
|
64
64
|
onClick: handlePlayPause,
|
|
65
|
-
|
|
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: "
|
|
71
|
+
type: "button",
|
|
72
72
|
name: "reset",
|
|
73
73
|
props: {
|
|
74
|
-
|
|
75
|
-
disabled:
|
|
74
|
+
leftIcon: /* @__PURE__ */ jsx(SvgIconReset, {}),
|
|
75
|
+
disabled: isPlaybackDisabled,
|
|
76
76
|
onClick: handleReset,
|
|
77
|
-
|
|
77
|
+
children: renderLabel(t("bbm.video.record.reset"), isPlaybackDisabled)
|
|
78
78
|
},
|
|
79
79
|
tooltip: t("bbm.video.record.reset")
|
|
80
80
|
}, {
|
|
81
|
-
type: "
|
|
81
|
+
type: "button",
|
|
82
82
|
name: "save",
|
|
83
83
|
visibility: hideSaveAction ? "hide" : "show",
|
|
84
84
|
props: {
|
|
85
|
-
|
|
86
|
-
disabled:
|
|
85
|
+
leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}),
|
|
86
|
+
disabled: isSaveDisabled,
|
|
87
87
|
onClick: handleSave,
|
|
88
|
-
|
|
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
|
|
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
|
-
|
|
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,
|
|
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: [
|
package/dist/multimedia.js
CHANGED
|
@@ -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/
|
|
10
|
-
import { default as default11 } from "./modules/multimedia/
|
|
11
|
-
import { default as default12 } from "./modules/multimedia/
|
|
12
|
-
import { default as default13 } from "./modules/multimedia/
|
|
13
|
-
import { default as default14 } from "./modules/multimedia/
|
|
14
|
-
import { default as default15 } from "./modules/multimedia/
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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.
|
|
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.
|
|
144
|
-
"@edifice.io/tiptap-extensions": "2.6.
|
|
145
|
-
"@edifice.io/utilities": "2.6.
|
|
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.
|
|
178
|
-
"@edifice.io/config": "2.6.
|
|
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",
|