@openpeepshq/react 0.6.3 → 0.7.1
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/configuration/ConfigurationCategory.js +3 -2
- package/dist/components/configuration/ConfigurationList.js +1 -1
- package/dist/components/form/LocationInput.js +1 -1
- package/dist/components/groups/GroupHeader.js +2 -1
- package/dist/components/groups/GroupNotificationSettingsModal.d.ts +9 -0
- package/dist/components/groups/GroupNotificationSettingsModal.js +57 -0
- package/dist/components/groups/GroupShareMenu.js +30 -8
- package/dist/components/groups/index.d.ts +2 -0
- package/dist/components/groups/index.js +1 -0
- package/dist/components/jams/JamCapacityGate.js +1 -1
- package/dist/components/jams/JamConference.js +2 -0
- package/dist/components/jams/JamParticipantConference.js +2 -0
- package/dist/components/jams/JamRoom.js +2 -3
- package/dist/components/jams/LiveJamsSection.js +8 -2
- package/dist/components/jams/LivekitUnavailableNotice.d.ts +9 -0
- package/dist/components/jams/LivekitUnavailableNotice.js +19 -0
- package/dist/components/jams/dropLateAudio.d.ts +22 -0
- package/dist/components/jams/dropLateAudio.js +115 -0
- package/dist/components/jams/index.d.ts +1 -0
- package/dist/components/jams/index.js +1 -0
- package/dist/components/notifications/TypedNotification.js +46 -4
- package/dist/components/post/Markdown.d.ts +2 -2
- package/dist/components/post/Markdown.js +1 -1
- package/dist/components/post/attachmentPreview.js +1 -1
- package/dist/components/post/pieces/Attachments.js +23 -17
- package/dist/components/post/pieces/EventRsvpButton.js +37 -7
- package/dist/components/post/pieces/EventRsvpList.js +23 -3
- package/dist/components/post/pieces/EventRsvpScopeDialog.d.ts +1 -1
- package/dist/components/post/pieces/EventRsvpScopeDialog.js +34 -22
- package/dist/components/post/pieces/EventWaitlistJoinDialog.d.ts +10 -0
- package/dist/components/post/pieces/EventWaitlistJoinDialog.js +26 -0
- package/dist/components/post/pieces/ParticipantsCard.d.ts +1 -1
- package/dist/components/post/pieces/ParticipantsCard.js +1 -1
- package/dist/components/post/pieces/PostActions.d.ts +1 -1
- package/dist/components/post/pieces/PostActions.js +20 -12
- package/dist/components/post/pieces/ShareMenu.d.ts +6 -1
- package/dist/components/post/pieces/ShareMenu.js +40 -7
- package/dist/components/post/post-form/EventForm.js +10 -2
- package/dist/components/post/types/Article.js +1 -1
- package/dist/components/post/types/article/FullArticle.js +1 -1
- package/dist/components/post/types/event/CardEvent.js +2 -1
- package/dist/components/post/types/event/FullEvent.js +21 -11
- package/dist/components/post/types/event/ProfileEventRelationship.js +8 -0
- package/dist/components/preview-link/LocalPreviewLink.js +4 -2
- package/dist/components/preview-link/PreviewLink.js +1 -1
- package/dist/components/preview-link/helpers.d.ts +5 -0
- package/dist/components/preview-link/helpers.js +27 -1
- package/dist/components/preview-link/local/WelcomePreview.d.ts +1 -0
- package/dist/components/preview-link/local/WelcomePreview.js +6 -0
- package/dist/components/profile/Avatar.js +2 -2
- package/dist/components/profile/ProfileFromId.js +1 -1
- package/dist/components/server-data/context.d.ts +1 -0
- package/dist/contexts/openpeeps/hooks/accounts.d.ts +5 -5
- package/dist/contexts/openpeeps/hooks/accounts.js +1 -3
- package/dist/contexts/openpeeps/hooks/admin.d.ts +165 -66
- package/dist/contexts/openpeeps/hooks/admin.js +11 -3
- package/dist/contexts/openpeeps/hooks/auth.d.ts +2 -2
- package/dist/contexts/openpeeps/hooks/groups.d.ts +8 -8
- package/dist/contexts/openpeeps/hooks/jams.d.ts +73 -24
- package/dist/contexts/openpeeps/hooks/other.d.ts +7 -6
- package/dist/contexts/openpeeps/hooks/payments.d.ts +2 -2
- package/dist/contexts/openpeeps/hooks/posts.d.ts +368 -170
- package/dist/contexts/openpeeps/hooks/streaming.d.ts +1 -1
- package/dist/hooks/admin/useCanAccessAdminSection.d.ts +13 -0
- package/dist/hooks/admin/useCanAccessAdminSection.js +21 -0
- package/dist/hooks/events/useEventComposer.d.ts +94 -41
- package/dist/hooks/events/useEventForm.d.ts +1 -0
- package/dist/hooks/events/useEventRsvp.d.ts +11 -2
- package/dist/hooks/events/useEventRsvp.js +46 -5
- package/dist/hooks/events/useEventsCalendar.d.ts +174 -76
- package/dist/hooks/groups/useGroupNotificationLevel.d.ts +9 -0
- package/dist/hooks/groups/useGroupNotificationLevel.js +57 -0
- package/dist/hooks/groups/useNewGroup.js +22 -2
- package/dist/hooks/index.d.ts +6 -1
- package/dist/hooks/index.js +5 -1
- package/dist/hooks/jams/useCanDiagnoseLivekit.d.ts +2 -0
- package/dist/hooks/jams/useCanDiagnoseLivekit.js +3 -0
- package/dist/hooks/jams/useCreateNewJamForm.d.ts +3 -1
- package/dist/hooks/jams/useJamDetails.d.ts +87 -38
- package/dist/hooks/jams/useJamLobby.d.ts +1 -0
- package/dist/hooks/jams/useJamRoom.d.ts +175 -76
- package/dist/hooks/posts/useArticleComposer.d.ts +93 -41
- package/dist/hooks/posts/useFeedPostPresentation.d.ts +174 -76
- package/dist/hooks/posts/usePostDetailTitle.d.ts +87 -38
- package/dist/hooks/posts/useResourceComposer.d.ts +93 -41
- package/dist/hooks/posts/useResourceComposer.js +4 -2
- package/dist/hooks/posts/useShareMenu.d.ts +2 -0
- package/dist/hooks/posts/useShareMenu.js +7 -0
- package/dist/hooks/resources/useResourceLibrary.d.ts +176 -78
- package/dist/hooks/settings/useNotificationPreferences.d.ts +1 -1
- package/dist/hooks/useWelcomePreview.d.ts +13 -0
- package/dist/hooks/useWelcomePreview.js +39 -0
- package/dist/lib/groupFormErrors.d.ts +1 -0
- package/dist/lib/groupFormErrors.js +5 -2
- package/dist/lib/threadHelpers.js +1 -5
- package/dist/pages/admin/ConfigurationCommunity.js +1 -1
- package/dist/pages/admin/Diagnostics.js +1 -1
- package/dist/pages/admin/DiagnosticsLivekit.d.ts +1 -0
- package/dist/pages/admin/DiagnosticsLivekit.js +50 -0
- package/dist/pages/admin/Invites.js +5 -3
- package/dist/pages/admin/Media.d.ts +1 -0
- package/dist/pages/admin/Media.js +135 -0
- package/dist/pages/admin/community/CommunityForbiddenUsernames.d.ts +1 -0
- package/dist/pages/admin/community/CommunityForbiddenUsernames.js +106 -0
- package/dist/pages/admin/community/CommunityRoles.js +1 -1
- package/dist/pages/admin/community/useCommunityConfig.d.ts +2 -0
- package/dist/pages/admin/components/EditInviteLinkModal.d.ts +5 -0
- package/dist/pages/admin/components/EditInviteLinkModal.js +131 -0
- package/dist/pages/admin/configurationSsoShared.d.ts +4 -0
- package/dist/pages/auth/Register.js +30 -8
- package/dist/pages/conversations/Show.js +11 -0
- package/dist/pages/groups/Show.js +22 -19
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/index.js +3 -0
- package/dist/pages/jams/Index.js +2 -4
- package/dist/pages/settings/PublicProfile.js +15 -3
- package/dist/pwa/sw.d.ts +0 -1
- package/dist/react-native.d.ts +2 -1
- package/dist/react-native.js +2 -1
- package/dist/stores/newPosts.d.ts +4 -2
- package/dist/stores/newPosts.js +6 -1
- package/package.json +11 -6
- package/src/components/configuration/ConfigurationCategory.tsx +23 -10
- package/src/components/configuration/ConfigurationList.tsx +6 -1
- package/src/components/form/LocationInput.tsx +7 -1
- package/src/components/groups/GroupHeader.tsx +2 -0
- package/src/components/groups/GroupNotificationSettingsModal.tsx +163 -0
- package/src/components/groups/GroupShareMenu.tsx +77 -12
- package/src/components/groups/index.ts +5 -0
- package/src/components/jams/JamCapacityGate.tsx +1 -1
- package/src/components/jams/JamConference.tsx +2 -0
- package/src/components/jams/JamParticipantConference.tsx +2 -0
- package/src/components/jams/JamRoom.tsx +2 -6
- package/src/components/jams/LiveJamsSection.tsx +16 -2
- package/src/components/jams/LivekitUnavailableNotice.tsx +40 -0
- package/src/components/jams/dropLateAudio.ts +153 -0
- package/src/components/jams/index.ts +1 -0
- package/src/components/notifications/TypedNotification.tsx +81 -9
- package/src/components/post/Markdown.tsx +8 -2
- package/src/components/post/attachmentPreview.ts +1 -3
- package/src/components/post/pieces/Attachments.tsx +93 -78
- package/src/components/post/pieces/EventRsvpButton.tsx +107 -7
- package/src/components/post/pieces/EventRsvpList.tsx +64 -0
- package/src/components/post/pieces/EventRsvpScopeDialog.tsx +39 -27
- package/src/components/post/pieces/EventWaitlistJoinDialog.tsx +77 -0
- package/src/components/post/pieces/ParticipantsCard.tsx +4 -1
- package/src/components/post/pieces/PostActions.tsx +73 -42
- package/src/components/post/pieces/ShareMenu.tsx +67 -9
- package/src/components/post/post-form/EventForm.tsx +26 -0
- package/src/components/post/post-form/VisibilitySelector.tsx +1 -2
- package/src/components/post/types/Article.tsx +1 -1
- package/src/components/post/types/article/FullArticle.tsx +2 -2
- package/src/components/post/types/event/CardEvent.tsx +26 -14
- package/src/components/post/types/event/FullEvent.tsx +47 -29
- package/src/components/post/types/event/ProfileEventRelationship.tsx +8 -0
- package/src/components/post/types/note/FullNote.tsx +1 -4
- package/src/components/post/types/poll/FullPoll.tsx +1 -4
- package/src/components/preview-link/LocalPreviewLink.tsx +4 -1
- package/src/components/preview-link/PreviewLink.tsx +2 -7
- package/src/components/preview-link/helpers.ts +32 -1
- package/src/components/preview-link/local/GroupPreview.tsx +1 -1
- package/src/components/preview-link/local/JamPreview.tsx +1 -1
- package/src/components/preview-link/local/WelcomePreview.tsx +36 -0
- package/src/components/profile/Avatar.tsx +6 -2
- package/src/components/profile/ProfileFromId.tsx +1 -5
- package/src/components/resources/ResourceCard.tsx +0 -1
- package/src/contexts/openpeeps/hooks/accounts.ts +1 -3
- package/src/contexts/openpeeps/hooks/admin.ts +11 -3
- package/src/contexts/openpeeps/hooks/other.ts +9 -12
- package/src/contexts/openpeeps/hooks/streaming.ts +3 -3
- package/src/css.d.ts +4 -0
- package/src/hooks/admin/useCanAccessAdminSection.ts +27 -0
- package/src/hooks/events/useEventRsvp.ts +51 -7
- package/src/hooks/groups/useGroupNotificationLevel.ts +57 -0
- package/src/hooks/groups/useNewGroup.ts +28 -3
- package/src/hooks/index.ts +9 -1
- package/src/hooks/jams/useCanDiagnoseLivekit.ts +5 -0
- package/src/hooks/posts/useResourceComposer.ts +8 -6
- package/src/hooks/posts/useShareMenu.ts +9 -0
- package/src/hooks/useWelcomePreview.ts +57 -0
- package/src/i18n/I18nProvider.tsx +1 -4
- package/src/lib/groupFormErrors.ts +9 -2
- package/src/lib/threadHelpers.ts +1 -5
- package/src/pages/admin/ConfigurationCommunity.tsx +5 -0
- package/src/pages/admin/Diagnostics.tsx +4 -0
- package/src/pages/admin/DiagnosticsLivekit.tsx +147 -0
- package/src/pages/admin/Invites.tsx +23 -1
- package/src/pages/admin/Media.tsx +290 -0
- package/src/pages/admin/community/CommunityForbiddenUsernames.tsx +223 -0
- package/src/pages/admin/community/CommunityRoles.tsx +2 -2
- package/src/pages/admin/components/EditInviteLinkModal.tsx +263 -0
- package/src/pages/auth/Register.tsx +33 -4
- package/src/pages/conversations/Show.tsx +11 -0
- package/src/pages/groups/Show.tsx +60 -53
- package/src/pages/index.ts +3 -0
- package/src/pages/jams/Index.tsx +2 -6
- package/src/pages/settings/PublicProfile.tsx +20 -2
- package/src/pwa/sw.ts +6 -3
- package/src/pwa/useNotificationBadgeSync.ts +3 -1
- package/src/react-native.ts +2 -1
- package/src/stores/newPosts.ts +6 -1
- package/src/streaming.ts +3 -3
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useGroupNotificationLevel: (groupId: string) => {
|
|
2
|
+
level: "all" | "mostRelevant" | "off";
|
|
3
|
+
setLevel: import("react").Dispatch<import("react").SetStateAction<"all" | "mostRelevant" | "off">>;
|
|
4
|
+
save: () => Promise<boolean>;
|
|
5
|
+
saving: boolean;
|
|
6
|
+
ready: boolean;
|
|
7
|
+
loadFailed: boolean;
|
|
8
|
+
error: string | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
3
|
+
export const useGroupNotificationLevel = (groupId) => {
|
|
4
|
+
const { openpeepsApi } = useOpenpeeps();
|
|
5
|
+
const settingsQuery = openpeepsApi.useCurrentProfileSettings();
|
|
6
|
+
const updateSettings = openpeepsApi.updateCurrentProfileSettingsAction();
|
|
7
|
+
const [level, setLevel] = useState('all');
|
|
8
|
+
const [ready, setReady] = useState(false);
|
|
9
|
+
const [saving, setSaving] = useState(false);
|
|
10
|
+
const [error, setError] = useState(null);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const settings = settingsQuery.data;
|
|
13
|
+
if (!settings || ready)
|
|
14
|
+
return;
|
|
15
|
+
setLevel(settings.groupNotificationLevels?.[groupId] ?? 'all');
|
|
16
|
+
setReady(true);
|
|
17
|
+
}, [settingsQuery.data, groupId, ready]);
|
|
18
|
+
const save = async () => {
|
|
19
|
+
const current = settingsQuery.data;
|
|
20
|
+
if (!current)
|
|
21
|
+
return false;
|
|
22
|
+
setError(null);
|
|
23
|
+
setSaving(true);
|
|
24
|
+
try {
|
|
25
|
+
const groupNotificationLevels = {
|
|
26
|
+
...(current.groupNotificationLevels ?? {}),
|
|
27
|
+
};
|
|
28
|
+
if (level === 'all') {
|
|
29
|
+
delete groupNotificationLevels[groupId];
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
groupNotificationLevels[groupId] = level;
|
|
33
|
+
}
|
|
34
|
+
await updateSettings({
|
|
35
|
+
...current,
|
|
36
|
+
groupNotificationLevels,
|
|
37
|
+
});
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
catch (err) {
|
|
41
|
+
setError(err.message);
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
setSaving(false);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return {
|
|
49
|
+
level,
|
|
50
|
+
setLevel,
|
|
51
|
+
save,
|
|
52
|
+
saving,
|
|
53
|
+
ready: ready && !settingsQuery.isLoading,
|
|
54
|
+
loadFailed: settingsQuery.isError,
|
|
55
|
+
error,
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
+
import { HANDLE_RESERVED_MESSAGE, isForbiddenHandle, } from '@openpeepshq/common/types';
|
|
2
3
|
import { applySimpleGroupTemplate, defaultSimpleGroupTemplate, } from '@openpeepshq/common/lib';
|
|
3
4
|
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
4
5
|
import { useNavigate } from '../../contexts/router/index.js';
|
|
@@ -17,7 +18,9 @@ export const useNewGroup = () => {
|
|
|
17
18
|
const navigate = useNavigate();
|
|
18
19
|
const { openpeepsApi } = useOpenpeeps();
|
|
19
20
|
const createGroup = openpeepsApi.createGroupAction();
|
|
20
|
-
const
|
|
21
|
+
const serverInfo = useServerInfo();
|
|
22
|
+
const { publicContent } = serverInfo;
|
|
23
|
+
const additionalForbiddenHandles = serverInfo.communityConfig?.settings?.additionalForbiddenHandles;
|
|
21
24
|
const [members, setMembers] = useState([]);
|
|
22
25
|
const [groupData, setGroupData] = useState(() => ({
|
|
23
26
|
displayName: '',
|
|
@@ -31,7 +34,9 @@ export const useNewGroup = () => {
|
|
|
31
34
|
const [fieldErrors, setFieldErrors] = useState({});
|
|
32
35
|
const submit = async () => {
|
|
33
36
|
setError(null);
|
|
34
|
-
const nextFieldErrors = groupFormFieldErrors(groupData, t
|
|
37
|
+
const nextFieldErrors = groupFormFieldErrors(groupData, t, {
|
|
38
|
+
additionalForbiddenHandles,
|
|
39
|
+
});
|
|
35
40
|
if (hasGroupFormFieldErrors(nextFieldErrors)) {
|
|
36
41
|
setFieldErrors(nextFieldErrors);
|
|
37
42
|
return;
|
|
@@ -43,12 +48,27 @@ export const useNewGroup = () => {
|
|
|
43
48
|
handle: handleFromDisplayName(groupData.displayName),
|
|
44
49
|
}
|
|
45
50
|
: groupData;
|
|
51
|
+
if (isForbiddenHandle(data.handle, additionalForbiddenHandles)) {
|
|
52
|
+
const msg = t('profile.form.handleReserved', {
|
|
53
|
+
defaultValue: 'That handle is reserved. Please choose another.',
|
|
54
|
+
});
|
|
55
|
+
setFieldErrors({ handle: msg });
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
46
58
|
setSubmitting(true);
|
|
47
59
|
try {
|
|
48
60
|
const group = (await createGroup({ ...data, members }));
|
|
49
61
|
navigate({ type: 'group', handle: group.handle });
|
|
50
62
|
}
|
|
51
63
|
catch (err) {
|
|
64
|
+
if (err.message === HANDLE_RESERVED_MESSAGE) {
|
|
65
|
+
const msg = t('profile.form.handleReserved', {
|
|
66
|
+
defaultValue: 'That handle is reserved. Please choose another.',
|
|
67
|
+
});
|
|
68
|
+
setFieldErrors({ handle: msg });
|
|
69
|
+
setError(msg);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
52
72
|
if (isDuplicateHandleError(err)) {
|
|
53
73
|
const msg = duplicateHandleMessage(t);
|
|
54
74
|
setFieldErrors({ handle: msg });
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { useJoinGroup } from './groups/useJoinGroup';
|
|
2
|
+
export { useGroupNotificationLevel } from './groups/useGroupNotificationLevel';
|
|
2
3
|
export { useCreateConversation } from './conversations/useCreateConversation';
|
|
3
4
|
export type { UseCreateConversationArgs } from './conversations/useCreateConversation';
|
|
5
|
+
export { useCanDiagnoseLivekit } from './jams/useCanDiagnoseLivekit';
|
|
4
6
|
export { useLeaveCloseJam } from './jams/useLeaveCloseJam';
|
|
5
7
|
export type { UseLeaveCloseJamArgs } from './jams/useLeaveCloseJam';
|
|
6
8
|
export { useCreateNewJamForm } from './jams/useCreateNewJamForm';
|
|
@@ -57,10 +59,13 @@ export { useCommunityInfoPages } from './community/useCommunityInfoPages';
|
|
|
57
59
|
export { usePostThreads } from './posts/usePostThreads';
|
|
58
60
|
export { usePostDetailTitle } from './posts/usePostDetailTitle';
|
|
59
61
|
export { useEventMenu } from './events/useEventMenu';
|
|
60
|
-
export { useShareMenu } from './posts/useShareMenu';
|
|
62
|
+
export { postPublicPath, useShareMenu } from './posts/useShareMenu';
|
|
61
63
|
export type { EventIcsFile } from './posts/useShareMenu';
|
|
62
64
|
export { useNewEvent, useEditEvent } from './events/useEventComposer';
|
|
63
65
|
export { EVENT_WEEKDAYS, useEventForm } from './events/useEventForm';
|
|
64
66
|
export type { RepeatEnd, RepeatFreq } from './events/useEventForm';
|
|
65
67
|
export { useEventTypeSwitcher, useLocationSearch, } from './events/useEventTypeSwitcher';
|
|
66
68
|
export type { EventFormat, UseEventTypeSwitcherArgs, } from './events/useEventTypeSwitcher';
|
|
69
|
+
export { useAdminRoles, useCanAccessAdminSection, } from './admin/useCanAccessAdminSection';
|
|
70
|
+
export { useWelcomePreview } from './useWelcomePreview';
|
|
71
|
+
export type { WelcomePreviewContent } from './useWelcomePreview';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { useJoinGroup } from './groups/useJoinGroup.js';
|
|
2
|
+
export { useGroupNotificationLevel } from './groups/useGroupNotificationLevel.js';
|
|
2
3
|
export { useCreateConversation } from './conversations/useCreateConversation.js';
|
|
4
|
+
export { useCanDiagnoseLivekit } from './jams/useCanDiagnoseLivekit.js';
|
|
3
5
|
export { useLeaveCloseJam } from './jams/useLeaveCloseJam.js';
|
|
4
6
|
export { useCreateNewJamForm } from './jams/useCreateNewJamForm.js';
|
|
5
7
|
export { useJamRoom } from './jams/useJamRoom.js';
|
|
@@ -36,7 +38,9 @@ export { useCommunityInfoPages } from './community/useCommunityInfoPages.js';
|
|
|
36
38
|
export { usePostThreads } from './posts/usePostThreads.js';
|
|
37
39
|
export { usePostDetailTitle } from './posts/usePostDetailTitle.js';
|
|
38
40
|
export { useEventMenu } from './events/useEventMenu.js';
|
|
39
|
-
export { useShareMenu } from './posts/useShareMenu.js';
|
|
41
|
+
export { postPublicPath, useShareMenu } from './posts/useShareMenu.js';
|
|
40
42
|
export { useNewEvent, useEditEvent } from './events/useEventComposer.js';
|
|
41
43
|
export { EVENT_WEEKDAYS, useEventForm } from './events/useEventForm.js';
|
|
42
44
|
export { useEventTypeSwitcher, useLocationSearch, } from './events/useEventTypeSwitcher.js';
|
|
45
|
+
export { useAdminRoles, useCanAccessAdminSection, } from './admin/useCanAccessAdminSection.js';
|
|
46
|
+
export { useWelcomePreview } from './useWelcomePreview.js';
|
|
@@ -124,6 +124,7 @@ export declare const useCreateNewJamForm: ({ onClose }: UseCreateNewJamFormArgs)
|
|
|
124
124
|
image?: string | undefined;
|
|
125
125
|
end?: string | undefined;
|
|
126
126
|
maxAttendees?: number | undefined;
|
|
127
|
+
waitlistOfferMinutes?: number | undefined;
|
|
127
128
|
attendeeListPublic?: boolean | undefined;
|
|
128
129
|
moderators?: string[] | undefined;
|
|
129
130
|
jam?: {
|
|
@@ -206,7 +207,7 @@ export declare const useCreateNewJamForm: ({ onClose }: UseCreateNewJamFormArgs)
|
|
|
206
207
|
} | {
|
|
207
208
|
type: "resource";
|
|
208
209
|
title: string;
|
|
209
|
-
resourceKind: "
|
|
210
|
+
resourceKind: "file" | "link" | "video" | "gallery" | "audio";
|
|
210
211
|
content?: string | undefined;
|
|
211
212
|
sensitive?: boolean | undefined;
|
|
212
213
|
spoilerText?: string | undefined;
|
|
@@ -406,6 +407,7 @@ export declare const useCreateNewJamForm: ({ onClose }: UseCreateNewJamFormArgs)
|
|
|
406
407
|
image?: string | undefined;
|
|
407
408
|
end?: string | undefined;
|
|
408
409
|
maxAttendees?: number | undefined;
|
|
410
|
+
waitlistOfferMinutes?: number | undefined;
|
|
409
411
|
attendeeListPublic?: boolean | undefined;
|
|
410
412
|
moderators?: string[] | undefined;
|
|
411
413
|
jam?: {
|