@selfcommunity/react-ui 0.10.2-courses.125 → 0.10.2-courses.126
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/lib/cjs/components/CourseDashboard/Teacher/Info.js +1 -1
- package/lib/cjs/components/CourseDashboard/Teacher.js +4 -4
- package/lib/cjs/components/CourseDashboard/types.d.ts +4 -6
- package/lib/cjs/components/CourseDashboard/types.js +11 -11
- package/lib/cjs/components/EditCourse/EditCourse.d.ts +3 -2
- package/lib/cjs/components/EditCourse/EditCourse.js +21 -16
- package/lib/cjs/components/EditCourse/Lessons/FieldName.js +2 -2
- package/lib/cjs/components/EditCourse/Lessons/LessonRow.js +1 -1
- package/lib/cjs/components/EditCourse/Lessons/SectionRow.js +8 -8
- package/lib/cjs/components/EditCourse/Lessons.js +7 -7
- package/lib/cjs/components/EditCourse/Skeleton.js +1 -1
- package/lib/cjs/components/EditCourse/types.d.ts +1 -10
- package/lib/cjs/components/EditCourse/types.js +11 -19
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +11 -11
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +8 -8
- package/lib/cjs/components/EventMembersWidget/types.d.ts +4 -5
- package/lib/cjs/components/EventMembersWidget/types.js +7 -7
- package/lib/cjs/index.d.ts +2 -2
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/types/course.d.ts +1 -2
- package/lib/cjs/types/course.js +9 -9
- package/lib/cjs/types/index.d.ts +2 -4
- package/lib/cjs/types/index.js +2 -2
- package/lib/esm/components/CourseDashboard/Teacher/Info.js +2 -2
- package/lib/esm/components/CourseDashboard/Teacher.js +5 -5
- package/lib/esm/components/CourseDashboard/types.d.ts +4 -6
- package/lib/esm/components/CourseDashboard/types.js +10 -10
- package/lib/esm/components/EditCourse/EditCourse.d.ts +3 -2
- package/lib/esm/components/EditCourse/EditCourse.js +21 -16
- package/lib/esm/components/EditCourse/Lessons/FieldName.js +3 -3
- package/lib/esm/components/EditCourse/Lessons/LessonRow.js +2 -2
- package/lib/esm/components/EditCourse/Lessons/SectionRow.js +9 -9
- package/lib/esm/components/EditCourse/Lessons.js +8 -8
- package/lib/esm/components/EditCourse/Skeleton.js +2 -2
- package/lib/esm/components/EditCourse/types.d.ts +1 -10
- package/lib/esm/components/EditCourse/types.js +10 -18
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +12 -12
- package/lib/esm/components/EventMembersWidget/TabContentComponent.js +9 -9
- package/lib/esm/components/EventMembersWidget/types.d.ts +4 -5
- package/lib/esm/components/EventMembersWidget/types.js +6 -6
- package/lib/esm/index.d.ts +2 -2
- package/lib/esm/index.js +2 -2
- package/lib/esm/types/course.d.ts +1 -2
- package/lib/esm/types/course.js +8 -8
- package/lib/esm/types/index.d.ts +2 -4
- package/lib/esm/types/index.js +2 -2
- package/lib/umd/react-ui.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ import UrlTextField from './shared/UrlTextField';
|
|
|
175
175
|
import UserAvatar, { UserAvatarProps } from './shared/UserAvatar';
|
|
176
176
|
import UserDeletedSnackBar, { UserDeletedSnackBarProps } from './shared/UserDeletedSnackBar';
|
|
177
177
|
import UsernameTextField from './shared/UsernameTextField';
|
|
178
|
-
import { PlatformWidgetActionType, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCEventTemplateType, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, VirtualScrollerItemProps, SCCourseTemplateType, SCLessonActionsType, SCLessonModeType,
|
|
178
|
+
import { PlatformWidgetActionType, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCEventTemplateType, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, VirtualScrollerItemProps, SCCourseTemplateType, SCLessonActionsType, SCLessonModeType, SCCourseEditTabType } from './types';
|
|
179
179
|
/**
|
|
180
180
|
* Constants
|
|
181
181
|
*/
|
|
@@ -209,4 +209,4 @@ import DefaultCoverSelfCommunity from './assets/deafultCover';
|
|
|
209
209
|
/**
|
|
210
210
|
* List all exports
|
|
211
211
|
*/
|
|
212
|
-
export { AcceptRequestUserEventButton, AcceptRequestUserEventButtonProps, AccountChangeMailValidation, AccountChangeMailValidationProps, AccountDataPortability, AccountDataPortabilityButton, AccountDataPortabilityButtonProps, AccountDataPortabilityProps, AccountDelete, AccountDeleteButton, AccountDeleteButtonProps, AccountDeleteProps, AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, AvatarGroupSkeleton, BaseDialog, BaseDialogProps, BaseItem, BaseItemProps, BaseLightbox, BaseLightboxProps, BottomNavigation, BottomNavigationProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, bytesToSize, generateRoomId, randomString, decodePassphrase, encodePassphrase, getCurrentSectionAndLessonIndex, Calendar, CalendarProps, Categories, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, CategoriesSuggestionWidget, CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton, Category, CategoryAutocomplete, CategoryAutocompleteProps, CategoryFollowButton, CategoryFollowButtonProps, CategoryFollowersButton, CategoryFollowersButtonProps, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, CategoryProps, CategorySkeleton, CategoryTrendingFeedWidget, CategoryTrendingFeedWidgetProps, CategoryTrendingFeedWidgetSkeleton, CategoryTrendingPeopleWidgetSkeleton, CategoryTrendingUsersWidget, CategoryTrendingUsersWidgetProps, CentralProgress, ChangeCover, ChangeCoverProps, ChangeGroupCover, ChangeGroupCoverProps, ChangeGroupPicture, ChangeGroupPictureProps, ChangePicture, ChangePictureProps, CommentObject, CommentObjectProps, CommentObjectReply, CommentObjectReplyProps, CommentObjectSkeleton, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, CommentsObject, CommentsObjectProps, CommentsObjectSkeleton, Composer, ComposerIconButton, ComposerIconButtonProps, ComposerProps, ConfirmDialog, ConnectionUserButton, ConsentSolution, ConsentSolutionButton, ConsentSolutionButtonProps, ConsentSolutionProps, ConsentSolutionSkeleton, ContributionUtils, SCCourseEditTabEnum, SCCourseEditTabType, Course, CourseProps, CourseSkeleton, CourseSkeletonProps, CourseJoinButton, CourseJoinButtonProps, Courses, CreateCourseButton, CreateCourseButtonProps, CoursesProps, CoursesSkeleton, CoursesSkeletonProps, CourseContentMenu, CourseContentMenuProps, CourseDashboard, TeacherCourseDashboardProps, TeacherSkeleton, StudentCourseDashboardProps, StudentSkeleton, CreateEventButton, CreateEventButtonProps, CreateEventWidget, CreateEventWidgetProps, CreateEventWidgetSkeleton, CreateGroupButton, EventForm, EventFormProps, EventFormDialog, EventFormDialogProps, CreateGroupButtonProps, CustomAdv, CustomAdvProps, CustomAdvSkeleton, DEFAULT_FIELDS, DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PRELOAD_OFFSET_VIEWPORT, DEFAULT_WIDGETS_NUMBER, DefaultDrawerContent, DefaultDrawerContentProps, DefaultHeaderContent, DefaultHeaderContentProps, DefaultDrawerSkeleton, DefaultDrawerSkeletonProps, EditEventButton, EditEventButtonProps, EditGroupButton, EditGroupButtonProps, EditMediaProps, Editor, EditorProps, EditorSkeleton, EmailTextField, EditCourse, EditCourseProps, EditCourseSkeleton, Event, EventActionsMenu, EventActionsMenuProps, EventHeader, EventHeaderProps, EventHeaderSkeleton, EventInfoDetails, EventInfoDetailsProps, EventInfoWidget, EventInfoWidgetProps, EventInviteButton, EventInviteButtonProps, EventLocationWidget, EventLocationWidgetProps, EventLocationWidgetSkeleton, EventMediaWidget, EventMediaWidgetProps, EventMediaWidgetSkeleton, EventMembersWidget, EventMembersWidgetProps, EventMembersWidgetSkeleton, EventParticipantsButton, EventParticipantsButtonProps, EventProps, Events, EventSkeleton, EventSkeletonProps, EventsProps, EventsSkeleton, EventsSkeletonProps, FACEBOOK_SHARE, Feed, FeedObject, FeedObjectMediaPreview, FeedObjectMediaPreviewProps, FeedObjectProps, FeedObjectSkeleton, FeedProps, FeedRef, FeedSidebarProps, FeedSkeleton, FeedUpdatesWidget, FeedUpdatesWidgetProps, FeedUpdatesWidgetSkeleton, File, FollowUserButton, FollowUserButtonProps, Footer, FooterProps, FooterSkeleton, FriendshipButtonProps, FriendshipUserButton, GenericSkeleton, getRelativeTime, getUnseenNotification, getUnseenNotificationCounter, Group, GroupActionsMenu, GroupActionsMenuProps, GroupForm, GroupFormProps, GroupHeader, GroupHeaderProps, GroupHeaderSkeleton, GroupInfoWidget, GroupInfoWidgetProps, GroupInfoWidgetSkeleton, GroupInviteButton, GroupInviteButtonProps, GroupInvitedWidget, GroupInvitedWidgetProps, GroupInvitedWidgetSkeleton, GroupMembersButton, GroupMembersButtonProps, GroupMembersWidget, GroupMembersWidgetProps, GroupMembersWidgetSkeleton, GroupProps, GroupRequestsWidget, GroupRequestsWidgetProps, GroupRequestsWidgetSkeleton, Groups, GroupSettingsIconButton, GroupSettingsIconButtonProps, GroupSkeleton, GroupsProps, GroupsSkeleton, GroupSubscribeButton, GroupSubscribeButtonProps, AccordionLessons, AccordionLessonsProps, AccordionLessonsSkeleton, AddUsersButton, AddUsersButtonProps, CourseUsersTable, CourseUsersTableProps, CourseUsersTableSkeleton, EmptyStatus, EmptyStatusProps, HiddenPlaceholder, Incubator, IncubatorDetail, IncubatorDetailProps, IncubatorListWidget, IncubatorListWidgetProps, IncubatorProps, IncubatorSubscribeButton, IncubatorSubscribeButtonProps, IncubatorSuggestionWidget, IncubatorSuggestionWidgetProps, InfiniteScroll, ScrollContainer, InlineComposerWidget, InlineComposerWidgetProps, InlineComposerWidgetSkeleton, InviteUserEventButton, LessonAppbar, LessonAppbarProps, LessonDrawer, LessonDrawerProps, LessonEditForm, LessonEditFormProps, LessonObject, LessonObjectProps, InviteUserEventButtonProps, LanguageSwitcher, LEGAL_POLICIES, CourseCompletedDialog, CourseCompletedDialogProps, Lightbox, LightboxProps, Link, LINKEDIN_SHARE, LocationAutocomplete, LocationAutocompleteProps, LogoSelfCommunity, DefaultCoverSelfCommunity, LoyaltyProgramWidget, LoyaltyProgramWidgetProps, LoyaltyProgramWidgetSkeleton, MAX_PRELOAD_OFFSET_VIEWPORT, MEDIA_EMBED_SC_LINK_TYPE, MEDIA_EMBED_SC_SHARED_EVENT, MEDIA_EMBED_SC_SHARED_OBJECT, MEDIA_TYPE_DOCUMENT, MEDIA_TYPE_EMBED, MEDIA_TYPE_EVENT, MEDIA_TYPE_IMAGE, MEDIA_TYPE_LINK, MEDIA_TYPE_SHARE, MEDIA_TYPE_URL, MEDIA_TYPE_VIDEO, SCCourseFormStepType, MediaChunkUploader, MediaChunkUploaderProps, MessageUploaderUtils, MetadataField, MetadataFieldProps, MIN_PRELOAD_OFFSET_VIEWPORT, MyEventsWidget, MyEventsWidgetProps, MyEventsWidgetSkeleton, NavigationMenuContent, NavigationMenuDrawer, NavigationMenuDrawerProps, NavigationMenuHeader, NavigationMenuIconButton, NavigationMenuIconButtonProps, NavigationSettingsIconButton, NavigationSettingsIconButtonProps, NavigationSettingsItem, NavigationToolbar, NavigationToolbarMobile, NavigationToolbarMobileProps, NavigationToolbarMobileSkeleton, NavigationToolbarProps, NavigationToolbarSkeleton, Notification, NotificationProps, NotificationSkeleton, OnBoardingWidget, OnBoardingWidgetProps, OnBoardingWidgetSkeleton, PasswordTextField, PhoneTextField, PlatformWidget, PlatformWidgetActionType, PlatformWidgetProps, PlatformWidgetSkeleton, PollSuggestionWidget, PollSuggestionWidgetProps, PrivateMessageComponent, PrivateMessageComponentProps, PrivateMessageComponentSkeleton, PrivateMessageEditor, PrivateMessageEditorProps, PrivateMessageEditorSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSettingsIconButtonProps, PrivateMessageSnippetItem, PrivateMessageSnippetItemProps, PrivateMessageSnippetItemSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsProps, PrivateMessageSnippetsSkeleton, PrivateMessageThread, PrivateMessageThreadItem, PrivateMessageThreadItemProps, PrivateMessageThreadItemSkeleton, PrivateMessageThreadProps, PrivateMessageThreadSkeleton, ProgressBar, ProgressBarProps, RelatedEventsWidget, RelatedEventsWidgetProps, RelatedEventsWidgetSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, RelatedFeedObjectWidgetProps, ReplyComment, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCEventMembersEventType, SCEventTemplateType, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCGroupMembersEventType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, SearchAutocomplete, SearchAutocompleteProps, SearchDialog, SearchDialogProps, Share, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, StickyBox, StickyBoxComponent, StickyBoxProps, SuggestedEventsWidget, TagAutocomplete, TagAutocompleteProps, SuggestedEventsWidgetProps, SuggestedEventsWidgetSkeleton, TagChip, TagChipProps, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, UrlTextField, User, UserActionIconButton, UserActionIconButtonProps, UserAvatar, UserAvatarProps, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetProps, UserConnectionsRequestsSentWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetProps, UserConnectionsRequestsWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetProps, UserConnectionsWidgetSkeleton, UserCounters, UserCountersProps, UserDeletedSnackBar, UserDeletedSnackBarProps, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton, UserFollowedUsersWidget, UserFollowedUsersWidgetProps, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetProps, UserFollowersWidgetSkeleton, UserInfo, UserInfoDialog, UserInfoDialogProps, UserInfoProps, UserInfoSkeleton, UsernameTextField, UserProfileBlocked, UserProfileBlockedProps, UserProfileEdit, UserProfileEditProps, UserProfileEditSectionAccount, UserProfileEditSectionAccountProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UserProfileEditSkeleton, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserProps, UserSkeleton, UserSocialAssociation, UserSocialAssociationProps, UserSubscribedGroupsWidget, UserSubscribedGroupsWidgetProps, UserSubscribedGroupsWidgetSkeleton, UserSuggestionWidget, UserSuggestionWidgetProps, UserSuggestionWidgetSkeleton, UserLiveStreamWidget, UserLiveStreamWidgetProps, UserLiveStreamWidgetSkeleton, useStickyBox, UseStickyBoxProps, LiveStream, LiveStreamProps, LiveStreamSkeletonProps, LiveStreamSkeleton, LiveStreamInfoDetails, LiveStreamInfoDetailsProps, UpScalingTierBadge, UpScalingTierProps, CreateLiveStreamDialog, CreateLiveStreamDialogProps, CreateLiveStreamButton, CreateLiveStreamButtonProps, LiveStreamForm, LiveStreamFormProps, LiveStreamRoom, LiveStreamRoomProps, LiveStreamVideoConference, LiveStreamVideoConferenceProps, VirtualScrollerItemProps, SCCourseTemplateType, SCLessonActionsType, SCLessonModeType, Widget, WidgetProps, X_SHARE, PROVIDER_ICONS_CONTAINED, PROVIDER_ICONS_OUTLINED };
|
|
212
|
+
export { AcceptRequestUserEventButton, AcceptRequestUserEventButtonProps, AccountChangeMailValidation, AccountChangeMailValidationProps, AccountDataPortability, AccountDataPortabilityButton, AccountDataPortabilityButtonProps, AccountDataPortabilityProps, AccountDelete, AccountDeleteButton, AccountDeleteButtonProps, AccountDeleteProps, AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, AvatarGroupSkeleton, BaseDialog, BaseDialogProps, BaseItem, BaseItemProps, BaseLightbox, BaseLightboxProps, BottomNavigation, BottomNavigationProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, bytesToSize, generateRoomId, randomString, decodePassphrase, encodePassphrase, getCurrentSectionAndLessonIndex, Calendar, CalendarProps, Categories, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, CategoriesSuggestionWidget, CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton, Category, CategoryAutocomplete, CategoryAutocompleteProps, CategoryFollowButton, CategoryFollowButtonProps, CategoryFollowersButton, CategoryFollowersButtonProps, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, CategoryProps, CategorySkeleton, CategoryTrendingFeedWidget, CategoryTrendingFeedWidgetProps, CategoryTrendingFeedWidgetSkeleton, CategoryTrendingPeopleWidgetSkeleton, CategoryTrendingUsersWidget, CategoryTrendingUsersWidgetProps, CentralProgress, ChangeCover, ChangeCoverProps, ChangeGroupCover, ChangeGroupCoverProps, ChangeGroupPicture, ChangeGroupPictureProps, ChangePicture, ChangePictureProps, CommentObject, CommentObjectProps, CommentObjectReply, CommentObjectReplyProps, CommentObjectSkeleton, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, CommentsObject, CommentsObjectProps, CommentsObjectSkeleton, Composer, ComposerIconButton, ComposerIconButtonProps, ComposerProps, ConfirmDialog, ConnectionUserButton, ConsentSolution, ConsentSolutionButton, ConsentSolutionButtonProps, ConsentSolutionProps, ConsentSolutionSkeleton, ContributionUtils, SCCourseEditTabType, Course, CourseProps, CourseSkeleton, CourseSkeletonProps, CourseJoinButton, CourseJoinButtonProps, Courses, CreateCourseButton, CreateCourseButtonProps, CoursesProps, CoursesSkeleton, CoursesSkeletonProps, CourseContentMenu, CourseContentMenuProps, CourseDashboard, TeacherCourseDashboardProps, TeacherSkeleton, StudentCourseDashboardProps, StudentSkeleton, CreateEventButton, CreateEventButtonProps, CreateEventWidget, CreateEventWidgetProps, CreateEventWidgetSkeleton, CreateGroupButton, EventForm, EventFormProps, EventFormDialog, EventFormDialogProps, CreateGroupButtonProps, CustomAdv, CustomAdvProps, CustomAdvSkeleton, DEFAULT_FIELDS, DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PRELOAD_OFFSET_VIEWPORT, DEFAULT_WIDGETS_NUMBER, DefaultDrawerContent, DefaultDrawerContentProps, DefaultHeaderContent, DefaultHeaderContentProps, DefaultDrawerSkeleton, DefaultDrawerSkeletonProps, EditEventButton, EditEventButtonProps, EditGroupButton, EditGroupButtonProps, EditMediaProps, Editor, EditorProps, EditorSkeleton, EmailTextField, EditCourse, EditCourseProps, EditCourseSkeleton, Event, EventActionsMenu, EventActionsMenuProps, EventHeader, EventHeaderProps, EventHeaderSkeleton, EventInfoDetails, EventInfoDetailsProps, EventInfoWidget, EventInfoWidgetProps, EventInviteButton, EventInviteButtonProps, EventLocationWidget, EventLocationWidgetProps, EventLocationWidgetSkeleton, EventMediaWidget, EventMediaWidgetProps, EventMediaWidgetSkeleton, EventMembersWidget, EventMembersWidgetProps, EventMembersWidgetSkeleton, EventParticipantsButton, EventParticipantsButtonProps, EventProps, Events, EventSkeleton, EventSkeletonProps, EventsProps, EventsSkeleton, EventsSkeletonProps, FACEBOOK_SHARE, Feed, FeedObject, FeedObjectMediaPreview, FeedObjectMediaPreviewProps, FeedObjectProps, FeedObjectSkeleton, FeedProps, FeedRef, FeedSidebarProps, FeedSkeleton, FeedUpdatesWidget, FeedUpdatesWidgetProps, FeedUpdatesWidgetSkeleton, File, FollowUserButton, FollowUserButtonProps, Footer, FooterProps, FooterSkeleton, FriendshipButtonProps, FriendshipUserButton, GenericSkeleton, getRelativeTime, getUnseenNotification, getUnseenNotificationCounter, Group, GroupActionsMenu, GroupActionsMenuProps, GroupForm, GroupFormProps, GroupHeader, GroupHeaderProps, GroupHeaderSkeleton, GroupInfoWidget, GroupInfoWidgetProps, GroupInfoWidgetSkeleton, GroupInviteButton, GroupInviteButtonProps, GroupInvitedWidget, GroupInvitedWidgetProps, GroupInvitedWidgetSkeleton, GroupMembersButton, GroupMembersButtonProps, GroupMembersWidget, GroupMembersWidgetProps, GroupMembersWidgetSkeleton, GroupProps, GroupRequestsWidget, GroupRequestsWidgetProps, GroupRequestsWidgetSkeleton, Groups, GroupSettingsIconButton, GroupSettingsIconButtonProps, GroupSkeleton, GroupsProps, GroupsSkeleton, GroupSubscribeButton, GroupSubscribeButtonProps, AccordionLessons, AccordionLessonsProps, AccordionLessonsSkeleton, AddUsersButton, AddUsersButtonProps, CourseUsersTable, CourseUsersTableProps, CourseUsersTableSkeleton, EmptyStatus, EmptyStatusProps, HiddenPlaceholder, Incubator, IncubatorDetail, IncubatorDetailProps, IncubatorListWidget, IncubatorListWidgetProps, IncubatorProps, IncubatorSubscribeButton, IncubatorSubscribeButtonProps, IncubatorSuggestionWidget, IncubatorSuggestionWidgetProps, InfiniteScroll, ScrollContainer, InlineComposerWidget, InlineComposerWidgetProps, InlineComposerWidgetSkeleton, InviteUserEventButton, LessonAppbar, LessonAppbarProps, LessonDrawer, LessonDrawerProps, LessonEditForm, LessonEditFormProps, LessonObject, LessonObjectProps, InviteUserEventButtonProps, LanguageSwitcher, LEGAL_POLICIES, CourseCompletedDialog, CourseCompletedDialogProps, Lightbox, LightboxProps, Link, LINKEDIN_SHARE, LocationAutocomplete, LocationAutocompleteProps, LogoSelfCommunity, DefaultCoverSelfCommunity, LoyaltyProgramWidget, LoyaltyProgramWidgetProps, LoyaltyProgramWidgetSkeleton, MAX_PRELOAD_OFFSET_VIEWPORT, MEDIA_EMBED_SC_LINK_TYPE, MEDIA_EMBED_SC_SHARED_EVENT, MEDIA_EMBED_SC_SHARED_OBJECT, MEDIA_TYPE_DOCUMENT, MEDIA_TYPE_EMBED, MEDIA_TYPE_EVENT, MEDIA_TYPE_IMAGE, MEDIA_TYPE_LINK, MEDIA_TYPE_SHARE, MEDIA_TYPE_URL, MEDIA_TYPE_VIDEO, SCCourseFormStepType, MediaChunkUploader, MediaChunkUploaderProps, MessageUploaderUtils, MetadataField, MetadataFieldProps, MIN_PRELOAD_OFFSET_VIEWPORT, MyEventsWidget, MyEventsWidgetProps, MyEventsWidgetSkeleton, NavigationMenuContent, NavigationMenuDrawer, NavigationMenuDrawerProps, NavigationMenuHeader, NavigationMenuIconButton, NavigationMenuIconButtonProps, NavigationSettingsIconButton, NavigationSettingsIconButtonProps, NavigationSettingsItem, NavigationToolbar, NavigationToolbarMobile, NavigationToolbarMobileProps, NavigationToolbarMobileSkeleton, NavigationToolbarProps, NavigationToolbarSkeleton, Notification, NotificationProps, NotificationSkeleton, OnBoardingWidget, OnBoardingWidgetProps, OnBoardingWidgetSkeleton, PasswordTextField, PhoneTextField, PlatformWidget, PlatformWidgetActionType, PlatformWidgetProps, PlatformWidgetSkeleton, PollSuggestionWidget, PollSuggestionWidgetProps, PrivateMessageComponent, PrivateMessageComponentProps, PrivateMessageComponentSkeleton, PrivateMessageEditor, PrivateMessageEditorProps, PrivateMessageEditorSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSettingsIconButtonProps, PrivateMessageSnippetItem, PrivateMessageSnippetItemProps, PrivateMessageSnippetItemSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsProps, PrivateMessageSnippetsSkeleton, PrivateMessageThread, PrivateMessageThreadItem, PrivateMessageThreadItemProps, PrivateMessageThreadItemSkeleton, PrivateMessageThreadProps, PrivateMessageThreadSkeleton, ProgressBar, ProgressBarProps, RelatedEventsWidget, RelatedEventsWidgetProps, RelatedEventsWidgetSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, RelatedFeedObjectWidgetProps, ReplyComment, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCEventMembersEventType, SCEventTemplateType, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCGroupMembersEventType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, SearchAutocomplete, SearchAutocompleteProps, SearchDialog, SearchDialogProps, Share, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, StickyBox, StickyBoxComponent, StickyBoxProps, SuggestedEventsWidget, TagAutocomplete, TagAutocompleteProps, SuggestedEventsWidgetProps, SuggestedEventsWidgetSkeleton, TagChip, TagChipProps, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, UrlTextField, User, UserActionIconButton, UserActionIconButtonProps, UserAvatar, UserAvatarProps, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetProps, UserConnectionsRequestsSentWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetProps, UserConnectionsRequestsWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetProps, UserConnectionsWidgetSkeleton, UserCounters, UserCountersProps, UserDeletedSnackBar, UserDeletedSnackBarProps, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton, UserFollowedUsersWidget, UserFollowedUsersWidgetProps, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetProps, UserFollowersWidgetSkeleton, UserInfo, UserInfoDialog, UserInfoDialogProps, UserInfoProps, UserInfoSkeleton, UsernameTextField, UserProfileBlocked, UserProfileBlockedProps, UserProfileEdit, UserProfileEditProps, UserProfileEditSectionAccount, UserProfileEditSectionAccountProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UserProfileEditSkeleton, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserProps, UserSkeleton, UserSocialAssociation, UserSocialAssociationProps, UserSubscribedGroupsWidget, UserSubscribedGroupsWidgetProps, UserSubscribedGroupsWidgetSkeleton, UserSuggestionWidget, UserSuggestionWidgetProps, UserSuggestionWidgetSkeleton, UserLiveStreamWidget, UserLiveStreamWidgetProps, UserLiveStreamWidgetSkeleton, useStickyBox, UseStickyBoxProps, LiveStream, LiveStreamProps, LiveStreamSkeletonProps, LiveStreamSkeleton, LiveStreamInfoDetails, LiveStreamInfoDetailsProps, UpScalingTierBadge, UpScalingTierProps, CreateLiveStreamDialog, CreateLiveStreamDialogProps, CreateLiveStreamButton, CreateLiveStreamButtonProps, LiveStreamForm, LiveStreamFormProps, LiveStreamRoom, LiveStreamRoomProps, LiveStreamVideoConference, LiveStreamVideoConferenceProps, VirtualScrollerItemProps, SCCourseTemplateType, SCLessonActionsType, SCLessonModeType, Widget, WidgetProps, X_SHARE, PROVIDER_ICONS_CONTAINED, PROVIDER_ICONS_OUTLINED };
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommentsFeedObjectSkeleton = exports.CommentsFeedObject = exports.CommentObjectSkeleton = exports.CommentObjectReply = exports.CommentObject = exports.ChangePicture = exports.ChangeGroupPicture = exports.ChangeGroupCover = exports.ChangeCover = exports.CentralProgress = exports.CategoryTrendingUsersWidget = exports.CategoryTrendingPeopleWidgetSkeleton = exports.CategoryTrendingFeedWidgetSkeleton = exports.CategoryTrendingFeedWidget = exports.CategorySkeleton = exports.CategoryHeaderSkeleton = exports.CategoryHeader = exports.CategoryFollowersButton = exports.CategoryFollowButton = exports.CategoryAutocomplete = exports.Category = exports.CategoriesSuggestionWidgetSkeleton = exports.CategoriesSuggestionWidget = exports.CategoriesSkeleton = exports.CategoriesPopularWidgetSkeleton = exports.CategoriesPopularWidget = exports.Categories = exports.Calendar = exports.getCurrentSectionAndLessonIndex = exports.encodePassphrase = exports.decodePassphrase = exports.randomString = exports.generateRoomId = exports.bytesToSize = exports.BroadcastMessagesSkeleton = exports.BroadcastMessages = exports.BottomNavigation = exports.BaseLightbox = exports.BaseItem = exports.BaseDialog = exports.AvatarGroupSkeleton = exports.AccountVerify = exports.AccountReset = exports.AccountRecover = exports.AccountDeleteButton = exports.AccountDelete = exports.AccountDataPortabilityButton = exports.AccountDataPortability = exports.AccountChangeMailValidation = exports.AcceptRequestUserEventButton = void 0;
|
|
4
|
-
exports.EventInfoDetails = exports.EventHeaderSkeleton = exports.EventHeader = exports.EventActionsMenu = exports.Event = exports.EditCourseSkeleton = exports.EditCourse = exports.EmailTextField = exports.EditorSkeleton = exports.Editor = exports.EditGroupButton = exports.EditEventButton = exports.DefaultDrawerSkeleton = exports.DefaultHeaderContent = exports.DefaultDrawerContent = exports.DEFAULT_WIDGETS_NUMBER = exports.DEFAULT_PRELOAD_OFFSET_VIEWPORT = exports.DEFAULT_PAGINATION_QUERY_PARAM_NAME = exports.DEFAULT_PAGINATION_OFFSET = exports.DEFAULT_PAGINATION_LIMIT = exports.DEFAULT_FIELDS = exports.CustomAdvSkeleton = exports.CustomAdv = exports.EventFormDialog = exports.EventForm = exports.CreateGroupButton = exports.CreateEventWidgetSkeleton = exports.CreateEventWidget = exports.CreateEventButton = exports.StudentSkeleton = exports.TeacherSkeleton = exports.CourseDashboard = exports.CourseContentMenu = exports.CoursesSkeleton = exports.CreateCourseButton = exports.Courses = exports.CourseJoinButton = exports.CourseSkeleton = exports.Course = exports.
|
|
4
|
+
exports.EventInfoDetails = exports.EventHeaderSkeleton = exports.EventHeader = exports.EventActionsMenu = exports.Event = exports.EditCourseSkeleton = exports.EditCourse = exports.EmailTextField = exports.EditorSkeleton = exports.Editor = exports.EditGroupButton = exports.EditEventButton = exports.DefaultDrawerSkeleton = exports.DefaultHeaderContent = exports.DefaultDrawerContent = exports.DEFAULT_WIDGETS_NUMBER = exports.DEFAULT_PRELOAD_OFFSET_VIEWPORT = exports.DEFAULT_PAGINATION_QUERY_PARAM_NAME = exports.DEFAULT_PAGINATION_OFFSET = exports.DEFAULT_PAGINATION_LIMIT = exports.DEFAULT_FIELDS = exports.CustomAdvSkeleton = exports.CustomAdv = exports.EventFormDialog = exports.EventForm = exports.CreateGroupButton = exports.CreateEventWidgetSkeleton = exports.CreateEventWidget = exports.CreateEventButton = exports.StudentSkeleton = exports.TeacherSkeleton = exports.CourseDashboard = exports.CourseContentMenu = exports.CoursesSkeleton = exports.CreateCourseButton = exports.Courses = exports.CourseJoinButton = exports.CourseSkeleton = exports.Course = exports.SCCourseEditTabType = exports.ContributionUtils = exports.ConsentSolutionSkeleton = exports.ConsentSolutionButton = exports.ConsentSolution = exports.ConnectionUserButton = exports.ConfirmDialog = exports.ComposerIconButton = exports.Composer = exports.CommentsObjectSkeleton = exports.CommentsObject = void 0;
|
|
5
5
|
exports.AccordionLessons = exports.GroupSubscribeButton = exports.GroupsSkeleton = exports.GroupSkeleton = exports.GroupSettingsIconButton = exports.Groups = exports.GroupRequestsWidgetSkeleton = exports.GroupRequestsWidget = exports.GroupMembersWidgetSkeleton = exports.GroupMembersWidget = exports.GroupMembersButton = exports.GroupInvitedWidgetSkeleton = exports.GroupInvitedWidget = exports.GroupInviteButton = exports.GroupInfoWidgetSkeleton = exports.GroupInfoWidget = exports.GroupHeaderSkeleton = exports.GroupHeader = exports.GroupForm = exports.GroupActionsMenu = exports.Group = exports.getUnseenNotificationCounter = exports.getUnseenNotification = exports.getRelativeTime = exports.GenericSkeleton = exports.FriendshipUserButton = exports.FooterSkeleton = exports.Footer = exports.FollowUserButton = exports.File = exports.FeedUpdatesWidgetSkeleton = exports.FeedUpdatesWidget = exports.FeedSkeleton = exports.FeedObjectSkeleton = exports.FeedObjectMediaPreview = exports.FeedObject = exports.Feed = exports.FACEBOOK_SHARE = exports.EventsSkeleton = exports.EventSkeleton = exports.Events = exports.EventParticipantsButton = exports.EventMembersWidgetSkeleton = exports.EventMembersWidget = exports.EventMediaWidgetSkeleton = exports.EventMediaWidget = exports.EventLocationWidgetSkeleton = exports.EventLocationWidget = exports.EventInviteButton = exports.EventInfoWidget = void 0;
|
|
6
6
|
exports.MyEventsWidgetSkeleton = exports.MyEventsWidget = exports.MIN_PRELOAD_OFFSET_VIEWPORT = exports.MetadataField = exports.MessageUploaderUtils = exports.MediaChunkUploader = exports.SCCourseFormStepType = exports.MEDIA_TYPE_VIDEO = exports.MEDIA_TYPE_URL = exports.MEDIA_TYPE_SHARE = exports.MEDIA_TYPE_LINK = exports.MEDIA_TYPE_IMAGE = exports.MEDIA_TYPE_EVENT = exports.MEDIA_TYPE_EMBED = exports.MEDIA_TYPE_DOCUMENT = exports.MEDIA_EMBED_SC_SHARED_OBJECT = exports.MEDIA_EMBED_SC_SHARED_EVENT = exports.MEDIA_EMBED_SC_LINK_TYPE = exports.MAX_PRELOAD_OFFSET_VIEWPORT = exports.LoyaltyProgramWidgetSkeleton = exports.LoyaltyProgramWidget = exports.DefaultCoverSelfCommunity = exports.LogoSelfCommunity = exports.LocationAutocomplete = exports.LINKEDIN_SHARE = exports.Link = exports.Lightbox = exports.CourseCompletedDialog = exports.LEGAL_POLICIES = exports.LanguageSwitcher = exports.LessonObject = exports.LessonEditForm = exports.LessonDrawer = exports.LessonAppbar = exports.InviteUserEventButton = exports.InlineComposerWidgetSkeleton = exports.InlineComposerWidget = exports.ScrollContainer = exports.InfiniteScroll = exports.IncubatorSuggestionWidget = exports.IncubatorSubscribeButton = exports.IncubatorListWidget = exports.IncubatorDetail = exports.Incubator = exports.HiddenPlaceholder = exports.EmptyStatus = exports.CourseUsersTableSkeleton = exports.CourseUsersTable = exports.AddUsersButton = exports.AccordionLessonsSkeleton = void 0;
|
|
7
7
|
exports.SnippetNotifications = exports.Share = exports.SearchDialog = exports.SearchAutocomplete = exports.SCUserSocialAssociations = exports.SCUserProfileSettings = exports.SCUserProfileFields = exports.SCNotificationObjectTemplateType = exports.SCFeedObjectTemplateType = exports.SCFeedObjectActivitiesType = exports.SCEventTemplateType = exports.SCCommentsOrderBy = exports.SCBroadcastMessageTemplateType = exports.ReplyComment = exports.RelatedFeedObjectsWidgetSkeleton = exports.RelatedFeedObjectsWidget = exports.RelatedEventsWidgetSkeleton = exports.RelatedEventsWidget = exports.ProgressBar = exports.PrivateMessageThreadSkeleton = exports.PrivateMessageThreadItemSkeleton = exports.PrivateMessageThreadItem = exports.PrivateMessageThread = exports.PrivateMessageSnippetsSkeleton = exports.PrivateMessageSnippets = exports.PrivateMessageSnippetItemSkeleton = exports.PrivateMessageSnippetItem = exports.PrivateMessageSettingsIconButton = exports.PrivateMessageEditorSkeleton = exports.PrivateMessageEditor = exports.PrivateMessageComponentSkeleton = exports.PrivateMessageComponent = exports.PollSuggestionWidget = exports.PlatformWidgetSkeleton = exports.PlatformWidget = exports.PhoneTextField = exports.PasswordTextField = exports.OnBoardingWidgetSkeleton = exports.OnBoardingWidget = exports.NotificationSkeleton = exports.Notification = exports.NavigationToolbarSkeleton = exports.NavigationToolbarMobileSkeleton = exports.NavigationToolbarMobile = exports.NavigationToolbar = exports.NavigationSettingsIconButton = exports.NavigationMenuIconButton = exports.NavigationMenuHeader = exports.NavigationMenuDrawer = exports.NavigationMenuContent = void 0;
|
|
@@ -466,7 +466,7 @@ Object.defineProperty(exports, "SCUserSocialAssociations", { enumerable: true, g
|
|
|
466
466
|
Object.defineProperty(exports, "SCCourseTemplateType", { enumerable: true, get: function () { return types_1.SCCourseTemplateType; } });
|
|
467
467
|
Object.defineProperty(exports, "SCLessonActionsType", { enumerable: true, get: function () { return types_1.SCLessonActionsType; } });
|
|
468
468
|
Object.defineProperty(exports, "SCLessonModeType", { enumerable: true, get: function () { return types_1.SCLessonModeType; } });
|
|
469
|
-
Object.defineProperty(exports, "
|
|
469
|
+
Object.defineProperty(exports, "SCCourseEditTabType", { enumerable: true, get: function () { return types_1.SCCourseEditTabType; } });
|
|
470
470
|
/**
|
|
471
471
|
* Constants
|
|
472
472
|
*/
|
|
@@ -11,8 +11,7 @@ export declare enum SCLessonModeType {
|
|
|
11
11
|
VIEW = "view",
|
|
12
12
|
EDIT = "edit"
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
15
|
-
export declare enum SCCourseEditTabEnum {
|
|
14
|
+
export declare enum SCCourseEditTabType {
|
|
16
15
|
LESSONS = "lessons",
|
|
17
16
|
CUSTOMIZE = "customize",
|
|
18
17
|
USERS = "users",
|
package/lib/cjs/types/course.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SCCourseEditTabType = exports.SCLessonModeType = exports.SCLessonActionsType = exports.SCCourseTemplateType = void 0;
|
|
4
4
|
var SCCourseTemplateType;
|
|
5
5
|
(function (SCCourseTemplateType) {
|
|
6
6
|
SCCourseTemplateType["SNIPPET"] = "snippet";
|
|
@@ -17,11 +17,11 @@ var SCLessonModeType;
|
|
|
17
17
|
SCLessonModeType["VIEW"] = "view";
|
|
18
18
|
SCLessonModeType["EDIT"] = "edit";
|
|
19
19
|
})(SCLessonModeType = exports.SCLessonModeType || (exports.SCLessonModeType = {}));
|
|
20
|
-
var
|
|
21
|
-
(function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})(
|
|
20
|
+
var SCCourseEditTabType;
|
|
21
|
+
(function (SCCourseEditTabType) {
|
|
22
|
+
SCCourseEditTabType["LESSONS"] = "lessons";
|
|
23
|
+
SCCourseEditTabType["CUSTOMIZE"] = "customize";
|
|
24
|
+
SCCourseEditTabType["USERS"] = "users";
|
|
25
|
+
SCCourseEditTabType["REQUESTS"] = "requests";
|
|
26
|
+
SCCourseEditTabType["OPTIONS"] = "options";
|
|
27
|
+
})(SCCourseEditTabType = exports.SCCourseEditTabType || (exports.SCCourseEditTabType = {}));
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -8,7 +8,5 @@ import { VirtualScrollerItemProps } from './virtualScroller';
|
|
|
8
8
|
import { SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations } from './user';
|
|
9
9
|
import { PlatformWidgetActionType } from './platformWidget';
|
|
10
10
|
import { SCEventTemplateType } from './event';
|
|
11
|
-
import { SCCourseTemplateType, SCLessonActionsType, SCLessonModeType,
|
|
12
|
-
|
|
13
|
-
export type { SCCourseEditTabType };
|
|
14
|
-
export { SCFeedWidgetType, SCMediaObjectType, SCMediaChunkType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, VirtualScrollerItemProps, PlatformWidgetActionType, SCEventTemplateType, SCCourseTemplateType, SCLessonActionsType, SCLessonModeType, SCCourseEditTabEnum };
|
|
11
|
+
import { SCCourseTemplateType, SCLessonActionsType, SCLessonModeType, SCCourseEditTabType } from './course';
|
|
12
|
+
export { SCFeedWidgetType, SCMediaObjectType, SCMediaChunkType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, VirtualScrollerItemProps, PlatformWidgetActionType, SCEventTemplateType, SCCourseTemplateType, SCLessonActionsType, SCLessonModeType, SCCourseEditTabType };
|
package/lib/cjs/types/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SCCourseEditTabType = exports.SCLessonModeType = exports.SCLessonActionsType = exports.SCCourseTemplateType = exports.SCEventTemplateType = exports.SCUserSocialAssociations = exports.SCUserProfileSettings = exports.SCUserProfileFields = exports.SCBroadcastMessageTemplateType = exports.SCNotificationObjectTemplateType = exports.SCFeedObjectTemplateType = exports.SCFeedObjectActivitiesType = exports.SCCommentsOrderBy = void 0;
|
|
4
4
|
const comments_1 = require("./comments");
|
|
5
5
|
Object.defineProperty(exports, "SCCommentsOrderBy", { enumerable: true, get: function () { return comments_1.SCCommentsOrderBy; } });
|
|
6
6
|
const feedObject_1 = require("./feedObject");
|
|
@@ -20,4 +20,4 @@ const course_1 = require("./course");
|
|
|
20
20
|
Object.defineProperty(exports, "SCCourseTemplateType", { enumerable: true, get: function () { return course_1.SCCourseTemplateType; } });
|
|
21
21
|
Object.defineProperty(exports, "SCLessonActionsType", { enumerable: true, get: function () { return course_1.SCLessonActionsType; } });
|
|
22
22
|
Object.defineProperty(exports, "SCLessonModeType", { enumerable: true, get: function () { return course_1.SCLessonModeType; } });
|
|
23
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "SCCourseEditTabType", { enumerable: true, get: function () { return course_1.SCCourseEditTabType; } });
|
|
@@ -4,13 +4,13 @@ import { FormattedMessage } from 'react-intl';
|
|
|
4
4
|
import { PREFIX } from '../constants';
|
|
5
5
|
import CourseParticipantsButton from '../../CourseParticipantsButton';
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { InfoPositionType } from '../types';
|
|
8
8
|
const classes = {
|
|
9
9
|
info: `${PREFIX}-info`
|
|
10
10
|
};
|
|
11
11
|
function InfoCourseDashboard(props) {
|
|
12
12
|
// PROPS
|
|
13
13
|
const { title, course, position } = props;
|
|
14
|
-
return (_jsxs(Stack, Object.assign({ className: classes.info }, { children: [_jsx(Typography, Object.assign({ variant: "h4" }, { children: _jsx(FormattedMessage, { id: title, defaultMessage: title }) })), position ===
|
|
14
|
+
return (_jsxs(Stack, Object.assign({ className: classes.info }, { children: [_jsx(Typography, Object.assign({ variant: "h4" }, { children: _jsx(FormattedMessage, { id: title, defaultMessage: title }) })), position === InfoPositionType.FIRST && _jsx(CourseParticipantsButton, { course: course }), position === InfoPositionType.SECOND && _jsxs(Typography, Object.assign({ variant: "h5" }, { children: [course.avg_completion_rate, "%"] }))] })));
|
|
15
15
|
}
|
|
16
16
|
export default memo(InfoCourseDashboard);
|
|
@@ -4,7 +4,7 @@ import { Box, Stack, styled, Tab, Typography, useThemeProps } from '@mui/materia
|
|
|
4
4
|
import { PREFIX } from './constants';
|
|
5
5
|
import HeaderCourseDashboard from './Header';
|
|
6
6
|
import { memo, useCallback, useState } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { InfoPositionType, TabContentType } from './types';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import InfoCourseDashboard from './Teacher/Info';
|
|
@@ -24,11 +24,11 @@ const classes = {
|
|
|
24
24
|
const TAB_DATA = [
|
|
25
25
|
{
|
|
26
26
|
label: 'ui.course.dashboard.teacher.tab.students',
|
|
27
|
-
value:
|
|
27
|
+
value: TabContentType.STUDENTS
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
label: 'ui.course.dashboard.teacher.tab.comments',
|
|
31
|
-
value:
|
|
31
|
+
value: TabContentType.COMMENTS
|
|
32
32
|
}
|
|
33
33
|
];
|
|
34
34
|
const Root = styled(Box, {
|
|
@@ -44,7 +44,7 @@ function Teacher(inProps) {
|
|
|
44
44
|
});
|
|
45
45
|
const { courseId, course, className } = props, rest = __rest(props, ["courseId", "course", "className"]);
|
|
46
46
|
// STATES
|
|
47
|
-
const [tabValue, setTabValue] = useState(
|
|
47
|
+
const [tabValue, setTabValue] = useState(TabContentType.STUDENTS);
|
|
48
48
|
// HOOKS
|
|
49
49
|
const { scCourse } = useSCFetchCourse({ id: courseId, course, params: { view: CourseInfoViewType.DASHBOARD } });
|
|
50
50
|
// HANDLERS
|
|
@@ -54,6 +54,6 @@ function Teacher(inProps) {
|
|
|
54
54
|
if (!scCourse) {
|
|
55
55
|
return _jsx(TeacherSkeleton, {});
|
|
56
56
|
}
|
|
57
|
-
return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(HeaderCourseDashboard, { course: scCourse, hasAction: true }), _jsxs(Stack, Object.assign({ className: classes.infoWrapper }, { children: [_jsx(InfoCourseDashboard, { title: "ui.course.dashboard.teacher.info.students", course: scCourse, position:
|
|
57
|
+
return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(HeaderCourseDashboard, { course: scCourse, hasAction: true }), _jsxs(Stack, Object.assign({ className: classes.infoWrapper }, { children: [_jsx(InfoCourseDashboard, { title: "ui.course.dashboard.teacher.info.students", course: scCourse, position: InfoPositionType.FIRST }), _jsx(InfoCourseDashboard, { title: "ui.course.dashboard.teacher.info.completion", course: scCourse, position: InfoPositionType.SECOND })] })), _jsxs(TabContext, Object.assign({ value: tabValue }, { children: [_jsx(TabList, Object.assign({ className: classes.tabList, onChange: handleTabChange, textColor: "primary", indicatorColor: "primary", variant: "standard", centered: true }, { children: TAB_DATA.map((data, i) => (_jsx(Tab, { label: _jsx(Typography, Object.assign({ variant: "h6" }, { children: _jsx(FormattedMessage, { id: data.label, defaultMessage: data.label }) })), value: data.value, className: classes.tab }, i))) })), _jsx(TabPanel, Object.assign({ className: classes.tabPanel, value: TabContentType.STUDENTS }, { children: _jsx(Students, { course: scCourse }) })), _jsx(TabPanel, Object.assign({ className: classes.tabPanel, value: TabContentType.COMMENTS }, { children: _jsx(Comments, { course: scCourse }) }))] }))] })));
|
|
58
58
|
}
|
|
59
59
|
export default memo(Teacher);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
COMMENTS = "2"
|
|
1
|
+
export declare enum TabContentType {
|
|
2
|
+
STUDENTS = "students",
|
|
3
|
+
COMMENTS = "comments"
|
|
5
4
|
}
|
|
6
|
-
export declare
|
|
7
|
-
export declare enum InfoPositionEnum {
|
|
5
|
+
export declare enum InfoPositionType {
|
|
8
6
|
FIRST = "first",
|
|
9
7
|
SECOND = "second"
|
|
10
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(
|
|
6
|
-
export var
|
|
7
|
-
(function (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(
|
|
1
|
+
export var TabContentType;
|
|
2
|
+
(function (TabContentType) {
|
|
3
|
+
TabContentType["STUDENTS"] = "students";
|
|
4
|
+
TabContentType["COMMENTS"] = "comments";
|
|
5
|
+
})(TabContentType || (TabContentType = {}));
|
|
6
|
+
export var InfoPositionType;
|
|
7
|
+
(function (InfoPositionType) {
|
|
8
|
+
InfoPositionType["FIRST"] = "first";
|
|
9
|
+
InfoPositionType["SECOND"] = "second";
|
|
10
|
+
})(InfoPositionType || (InfoPositionType = {}));
|
|
@@ -4,8 +4,9 @@ import { SCCourseEditTabType } from '../../types/course';
|
|
|
4
4
|
export interface EditCourseProps {
|
|
5
5
|
courseId?: number;
|
|
6
6
|
course?: SCCourseType;
|
|
7
|
-
tab
|
|
8
|
-
onTabChange
|
|
7
|
+
tab?: SCCourseEditTabType;
|
|
8
|
+
onTabChange?: (tab: SCCourseEditTabType) => void;
|
|
9
|
+
onTabSelect?: (tab: SCCourseEditTabType) => void;
|
|
9
10
|
className?: HTMLAttributes<HTMLDivElement>['className'];
|
|
10
11
|
[p: string]: any;
|
|
11
12
|
}
|
|
@@ -6,7 +6,6 @@ import { useCallback, useState } from 'react';
|
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { TabContext, TabList, TabPanel } from '@mui/lab';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
9
|
-
import { TabContentEnum } from './types';
|
|
10
9
|
import Lessons from './Lessons';
|
|
11
10
|
import Customize from './Customize';
|
|
12
11
|
import Users from './Users';
|
|
@@ -14,6 +13,7 @@ import Options from './Options';
|
|
|
14
13
|
import { SCRoutes, useSCFetchCourse, useSCRouting } from '@selfcommunity/react-core';
|
|
15
14
|
import { CourseInfoViewType } from '@selfcommunity/api-services';
|
|
16
15
|
import Requests from './Requests';
|
|
16
|
+
import { SCCourseEditTabType } from '../../types/course';
|
|
17
17
|
import EditCourseSkeleton from './Skeleton';
|
|
18
18
|
const classes = {
|
|
19
19
|
root: `${PREFIX}-root`,
|
|
@@ -25,45 +25,45 @@ const classes = {
|
|
|
25
25
|
const TAB_DATA = [
|
|
26
26
|
{
|
|
27
27
|
label: 'ui.editCourse.tab.lessons',
|
|
28
|
-
value:
|
|
28
|
+
value: SCCourseEditTabType.LESSONS
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
label: 'ui.editCourse.tab.customize',
|
|
32
|
-
value:
|
|
32
|
+
value: SCCourseEditTabType.CUSTOMIZE
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
label: 'ui.editCourse.tab.users',
|
|
36
|
-
value:
|
|
36
|
+
value: SCCourseEditTabType.USERS
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
label: 'ui.editCourse.tab.requests',
|
|
40
|
-
value:
|
|
40
|
+
value: SCCourseEditTabType.REQUESTS
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
label: 'ui.editCourse.tab.options',
|
|
44
|
-
value:
|
|
44
|
+
value: SCCourseEditTabType.OPTIONS
|
|
45
45
|
}
|
|
46
46
|
];
|
|
47
47
|
function getPanelData(course, setSCCourse) {
|
|
48
48
|
return [
|
|
49
49
|
{
|
|
50
|
-
value:
|
|
50
|
+
value: SCCourseEditTabType.LESSONS,
|
|
51
51
|
children: _jsx(Lessons, { course: course, setSCCourse: setSCCourse })
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
value:
|
|
54
|
+
value: SCCourseEditTabType.CUSTOMIZE,
|
|
55
55
|
children: _jsx(Customize, { course: course, setSCCourse: setSCCourse })
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
value:
|
|
58
|
+
value: SCCourseEditTabType.USERS,
|
|
59
59
|
children: _jsx(Users, { course: course })
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
value:
|
|
62
|
+
value: SCCourseEditTabType.REQUESTS,
|
|
63
63
|
children: _jsx(Requests, { course: course })
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
value:
|
|
66
|
+
value: SCCourseEditTabType.OPTIONS,
|
|
67
67
|
children: _jsx(Options, { course: course, setSCCourse: setSCCourse })
|
|
68
68
|
}
|
|
69
69
|
];
|
|
@@ -79,9 +79,9 @@ export default function EditCourse(inProps) {
|
|
|
79
79
|
props: inProps,
|
|
80
80
|
name: PREFIX
|
|
81
81
|
});
|
|
82
|
-
const { courseId, course, tab, onTabChange, className } = props, rest = __rest(props, ["courseId", "course", "tab", "onTabChange", "className"]);
|
|
82
|
+
const { courseId, course, tab = SCCourseEditTabType.LESSONS, onTabChange, onTabSelect, className } = props, rest = __rest(props, ["courseId", "course", "tab", "onTabChange", "onTabSelect", "className"]);
|
|
83
83
|
// STATES
|
|
84
|
-
const [tabValue, setTabValue] = useState(
|
|
84
|
+
const [tabValue, setTabValue] = useState(tab);
|
|
85
85
|
// CONTEXTS
|
|
86
86
|
const scRoutingContext = useSCRouting();
|
|
87
87
|
// HOOKS
|
|
@@ -90,9 +90,14 @@ export default function EditCourse(inProps) {
|
|
|
90
90
|
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
|
91
91
|
// HANDLERS
|
|
92
92
|
const handleTabChange = useCallback((_evt, newTabValue) => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
if (onTabSelect) {
|
|
94
|
+
onTabSelect(newTabValue);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
setTabValue(newTabValue);
|
|
98
|
+
onTabChange === null || onTabChange === void 0 ? void 0 : onTabChange(newTabValue);
|
|
99
|
+
}
|
|
100
|
+
}, [setTabValue, onTabChange, onTabSelect]);
|
|
96
101
|
if (!scCourse) {
|
|
97
102
|
return _jsx(EditCourseSkeleton, { tab: tab });
|
|
98
103
|
}
|
|
@@ -9,7 +9,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
9
9
|
import { useSnackbar } from 'notistack';
|
|
10
10
|
import { SCCourseLessonTypologyType } from '@selfcommunity/types';
|
|
11
11
|
import { http } from '@selfcommunity/api-services';
|
|
12
|
-
import {
|
|
12
|
+
import { ActionLessonType } from '../types';
|
|
13
13
|
import PubSub from 'pubsub-js';
|
|
14
14
|
import { SCGroupEventType, SCTopicType } from '../../../constants/PubSub';
|
|
15
15
|
const classes = {
|
|
@@ -45,7 +45,7 @@ function FieldName(props) {
|
|
|
45
45
|
}
|
|
46
46
|
})
|
|
47
47
|
.then((response) => {
|
|
48
|
-
handleManageRow(response.data, isNewRow ?
|
|
48
|
+
handleManageRow(response.data, isNewRow ? ActionLessonType.ADD : ActionLessonType.RENAME);
|
|
49
49
|
setName(null);
|
|
50
50
|
setLoading(false);
|
|
51
51
|
handleDisableEditMode();
|
|
@@ -67,7 +67,7 @@ function FieldName(props) {
|
|
|
67
67
|
}, [isNewRow, name, endpoint, setLoading, handleDisableEditMode, handleManageRow]);
|
|
68
68
|
const handleClose = useCallback(() => {
|
|
69
69
|
if (isNewRow) {
|
|
70
|
-
handleManageRow(row,
|
|
70
|
+
handleManageRow(row, ActionLessonType.DELETE);
|
|
71
71
|
PubSub.publish(`${SCTopicType.COURSE}.${SCGroupEventType.UPDATE}`, false);
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
@@ -12,7 +12,7 @@ import { Logger } from '@selfcommunity/utils';
|
|
|
12
12
|
import { useSnackbar } from 'notistack';
|
|
13
13
|
import { Link, SCRoutes, useSCRouting } from '@selfcommunity/react-core';
|
|
14
14
|
import { SCOPE_SC_UI } from '../../../constants/Errors';
|
|
15
|
-
import {
|
|
15
|
+
import { ActionLessonType } from '../types';
|
|
16
16
|
import { useDisabled } from '../hooks';
|
|
17
17
|
const classes = {
|
|
18
18
|
cellWidth: `${PREFIX}-cell-width`,
|
|
@@ -45,7 +45,7 @@ function LessonRow(props) {
|
|
|
45
45
|
const handleDeleteLesson = useCallback(() => {
|
|
46
46
|
CourseService.deleteCourseLesson(course.id, section.id, lesson.id)
|
|
47
47
|
.then(() => {
|
|
48
|
-
handleManageLesson(lesson,
|
|
48
|
+
handleManageLesson(lesson, ActionLessonType.DELETE);
|
|
49
49
|
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.editCourse.tab.lessons.table.snackbar.delete", defaultMessage: "ui.editCourse.tab.lessons.table.snackbar.delete" }), {
|
|
50
50
|
variant: 'success',
|
|
51
51
|
autoHideDuration: 3000
|
|
@@ -15,7 +15,7 @@ import { useSnackbar } from 'notistack';
|
|
|
15
15
|
import LessonReleaseMenu from '../../LessonReleaseMenu';
|
|
16
16
|
import { SCCourseLessonTypologyType } from '@selfcommunity/types';
|
|
17
17
|
import { CourseService, Endpoints } from '@selfcommunity/api-services';
|
|
18
|
-
import {
|
|
18
|
+
import { ActionLessonType } from '../types';
|
|
19
19
|
import { useDisabled } from '../hooks';
|
|
20
20
|
const classes = {
|
|
21
21
|
tableBodyIconWrapper: `${PREFIX}-table-body-icon-wrapper`,
|
|
@@ -68,7 +68,7 @@ function SectionRow(props) {
|
|
|
68
68
|
lessons_order: tempLessons.map((tempLesson) => tempLesson.id)
|
|
69
69
|
};
|
|
70
70
|
CourseService.patchCourseSection(course.id, section.id, data)
|
|
71
|
-
.then(() => handleManageSection(tempSection,
|
|
71
|
+
.then(() => handleManageSection(tempSection, ActionLessonType.UPDATE))
|
|
72
72
|
.catch((error) => {
|
|
73
73
|
Logger.error(SCOPE_SC_UI, error);
|
|
74
74
|
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error.action", defaultMessage: "ui.common.error.action" }), {
|
|
@@ -86,7 +86,7 @@ function SectionRow(props) {
|
|
|
86
86
|
CourseService.deleteCourseSection(course.id, section.id)
|
|
87
87
|
.then(() => {
|
|
88
88
|
const tempSection = Object.assign(Object.assign({}, section), { num_lessons: section.lessons.length });
|
|
89
|
-
handleManageSection(tempSection,
|
|
89
|
+
handleManageSection(tempSection, ActionLessonType.DELETE);
|
|
90
90
|
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.editCourse.tab.lessons.table.snackbar.delete", defaultMessage: "ui.editCourse.tab.lessons.table.snackbar.delete" }), {
|
|
91
91
|
variant: 'success',
|
|
92
92
|
autoHideDuration: 3000
|
|
@@ -102,24 +102,24 @@ function SectionRow(props) {
|
|
|
102
102
|
}, [course, section, handleManageSection]);
|
|
103
103
|
const handleManageLesson = useCallback((lesson, type) => {
|
|
104
104
|
switch (type) {
|
|
105
|
-
case
|
|
105
|
+
case ActionLessonType.ADD: {
|
|
106
106
|
const tempSection = Object.assign(Object.assign({}, section), { lessons: section.lessons ? [...section.lessons, lesson] : [lesson] });
|
|
107
|
-
handleManageSection(tempSection,
|
|
107
|
+
handleManageSection(tempSection, ActionLessonType.ADD_UPDATE);
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
|
-
case
|
|
110
|
+
case ActionLessonType.RENAME: {
|
|
111
111
|
const tempSection = Object.assign(Object.assign({}, section), { lessons: section.lessons.map((prevLesson) => {
|
|
112
112
|
if (prevLesson.id === lesson.id) {
|
|
113
113
|
return Object.assign(Object.assign({}, prevLesson), { name: lesson.name });
|
|
114
114
|
}
|
|
115
115
|
return prevLesson;
|
|
116
116
|
}) });
|
|
117
|
-
handleManageSection(tempSection,
|
|
117
|
+
handleManageSection(tempSection, ActionLessonType.RENAME_UPDATE);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
|
-
case
|
|
120
|
+
case ActionLessonType.DELETE: {
|
|
121
121
|
const tempSection = Object.assign(Object.assign({}, section), { lessons: section.lessons.filter((prevLesson) => prevLesson.id !== lesson.id) });
|
|
122
|
-
handleManageSection(tempSection,
|
|
122
|
+
handleManageSection(tempSection, ActionLessonType.DELETE_UPDATE);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}, [section, handleManageSection]);
|
|
@@ -12,7 +12,7 @@ import Status from './Status';
|
|
|
12
12
|
import EmptyStatus from '../../shared/EmptyStatus';
|
|
13
13
|
import AddButton from './Lessons/AddButton';
|
|
14
14
|
import SectionRow from './Lessons/SectionRow';
|
|
15
|
-
import {
|
|
15
|
+
import { ActionLessonType } from './types';
|
|
16
16
|
import { useDisabled } from './hooks';
|
|
17
17
|
const classes = {
|
|
18
18
|
lessonTitle: `${PREFIX}-lesson-title`,
|
|
@@ -96,10 +96,10 @@ function Lessons(props) {
|
|
|
96
96
|
}, [setSections]);
|
|
97
97
|
const handleManageSection = useCallback((section, type) => {
|
|
98
98
|
switch (type) {
|
|
99
|
-
case
|
|
99
|
+
case ActionLessonType.ADD:
|
|
100
100
|
setSCCourse(Object.assign(Object.assign({}, course), { num_sections: course.num_sections + 1, sections: [...course.sections, section] }));
|
|
101
101
|
break;
|
|
102
|
-
case
|
|
102
|
+
case ActionLessonType.RENAME:
|
|
103
103
|
setSCCourse(Object.assign(Object.assign({}, course), { sections: course.sections.map((prevSection) => {
|
|
104
104
|
if (prevSection.id === section.id) {
|
|
105
105
|
return Object.assign(Object.assign({}, prevSection), { name: section.name });
|
|
@@ -107,10 +107,10 @@ function Lessons(props) {
|
|
|
107
107
|
return prevSection;
|
|
108
108
|
}) }));
|
|
109
109
|
break;
|
|
110
|
-
case
|
|
110
|
+
case ActionLessonType.DELETE:
|
|
111
111
|
setSCCourse(Object.assign(Object.assign({}, course), { num_sections: course.num_sections - 1, num_lessons: course.num_lessons - section.num_lessons, sections: course.sections.filter((prevSection) => prevSection.id !== section.id) }));
|
|
112
112
|
break;
|
|
113
|
-
case
|
|
113
|
+
case ActionLessonType.UPDATE:
|
|
114
114
|
setSCCourse(Object.assign(Object.assign({}, course), { sections: course.sections.map((prevSection) => {
|
|
115
115
|
if (prevSection.id === section.id) {
|
|
116
116
|
return Object.assign(Object.assign({}, prevSection), { lessons: section.lessons });
|
|
@@ -118,12 +118,12 @@ function Lessons(props) {
|
|
|
118
118
|
return prevSection;
|
|
119
119
|
}) }));
|
|
120
120
|
break;
|
|
121
|
-
case type.endsWith(
|
|
121
|
+
case type.endsWith(ActionLessonType.UPDATE) && type: {
|
|
122
122
|
let numLessons = course.num_lessons;
|
|
123
|
-
if (type ===
|
|
123
|
+
if (type === ActionLessonType.ADD_UPDATE) {
|
|
124
124
|
numLessons = course.num_lessons + 1;
|
|
125
125
|
}
|
|
126
|
-
else if (type ===
|
|
126
|
+
else if (type === ActionLessonType.DELETE_UPDATE) {
|
|
127
127
|
numLessons = course.num_lessons - 1;
|
|
128
128
|
}
|
|
129
129
|
setSCCourse(Object.assign(Object.assign({}, course), { num_lessons: numLessons, sections: course.sections.map((prevSection) => {
|
|
@@ -5,7 +5,7 @@ import LessonsSkeleton from './Lessons/Skeleton';
|
|
|
5
5
|
import UsersSkeleton from './Users/Skeleton';
|
|
6
6
|
import CourseFormSkeleton from '../CourseForm/Skeleton';
|
|
7
7
|
import OptionsSkeleton from './Options/Skeleton';
|
|
8
|
-
import {
|
|
8
|
+
import { SCCourseEditTabType } from '../../types';
|
|
9
9
|
import { memo } from 'react';
|
|
10
10
|
const classes = {
|
|
11
11
|
root: `${PREFIX}-skeleton-root`,
|
|
@@ -20,6 +20,6 @@ const Root = styled(Box, {
|
|
|
20
20
|
function EditCourseSkeleton(props) {
|
|
21
21
|
// PROPS
|
|
22
22
|
const { tab } = props;
|
|
23
|
-
return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsxs(Stack, Object.assign({ className: classes.header }, { children: [_jsx(Skeleton, { animation: "wave", variant: "rectangular", width: "14px", height: "14px" }), _jsx(Skeleton, { animation: "wave", variant: "text", width: "125px", height: "21px" })] })), _jsx(Stack, Object.assign({ className: classes.tabList }, { children: Array.from(new Array(5)).map((_, i) => (_jsx(Skeleton, { animation: "wave", variant: "text", width: "80px", height: "21px" }, i))) })), tab ===
|
|
23
|
+
return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsxs(Stack, Object.assign({ className: classes.header }, { children: [_jsx(Skeleton, { animation: "wave", variant: "rectangular", width: "14px", height: "14px" }), _jsx(Skeleton, { animation: "wave", variant: "text", width: "125px", height: "21px" })] })), _jsx(Stack, Object.assign({ className: classes.tabList }, { children: Array.from(new Array(5)).map((_, i) => (_jsx(Skeleton, { animation: "wave", variant: "text", width: "80px", height: "21px" }, i))) })), tab === SCCourseEditTabType.LESSONS && _jsx(LessonsSkeleton, {}), tab === SCCourseEditTabType.CUSTOMIZE && _jsx(CourseFormSkeleton, {}), tab === SCCourseEditTabType.USERS && _jsx(UsersSkeleton, {}), tab === SCCourseEditTabType.REQUESTS && _jsx(UsersSkeleton, {}), tab === SCCourseEditTabType.OPTIONS && _jsx(OptionsSkeleton, {})] })));
|
|
24
24
|
}
|
|
25
25
|
export default memo(EditCourseSkeleton);
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare enum TabContentEnum {
|
|
3
|
-
LESSONS = "1",
|
|
4
|
-
CUSTOMIZE = "2",
|
|
5
|
-
USERS = "3",
|
|
6
|
-
REQUESTS = "4",
|
|
7
|
-
OPTIONS = "5"
|
|
8
|
-
}
|
|
9
|
-
export declare type ActionLessonType = 'add' | 'rename' | 'delete' | 'update' | 'add_update' | 'rename_update' | 'delete_update';
|
|
10
|
-
export declare enum ActionLessonEnum {
|
|
1
|
+
export declare enum ActionLessonType {
|
|
11
2
|
ADD = "add",
|
|
12
3
|
RENAME = "rename",
|
|
13
4
|
DELETE = "delete",
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
(
|
|
11
|
-
ActionLessonEnum["ADD"] = "add";
|
|
12
|
-
ActionLessonEnum["RENAME"] = "rename";
|
|
13
|
-
ActionLessonEnum["DELETE"] = "delete";
|
|
14
|
-
ActionLessonEnum["UPDATE"] = "update";
|
|
15
|
-
ActionLessonEnum["ADD_UPDATE"] = "add_update";
|
|
16
|
-
ActionLessonEnum["RENAME_UPDATE"] = "rename_update";
|
|
17
|
-
ActionLessonEnum["DELETE_UPDATE"] = "delete_update";
|
|
18
|
-
})(ActionLessonEnum || (ActionLessonEnum = {}));
|
|
1
|
+
export var ActionLessonType;
|
|
2
|
+
(function (ActionLessonType) {
|
|
3
|
+
ActionLessonType["ADD"] = "add";
|
|
4
|
+
ActionLessonType["RENAME"] = "rename";
|
|
5
|
+
ActionLessonType["DELETE"] = "delete";
|
|
6
|
+
ActionLessonType["UPDATE"] = "update";
|
|
7
|
+
ActionLessonType["ADD_UPDATE"] = "add_update";
|
|
8
|
+
ActionLessonType["RENAME_UPDATE"] = "rename_update";
|
|
9
|
+
ActionLessonType["DELETE_UPDATE"] = "delete_update";
|
|
10
|
+
})(ActionLessonType || (ActionLessonType = {}));
|