@local-civics/hub-ui 0.1.250 → 0.1.252
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/index.d.ts +47 -8
- package/dist/index.js +77 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1355,15 +1355,14 @@ type ProfileHeroCardProps = {
|
|
|
1355
1355
|
impactStatement?: string;
|
|
1356
1356
|
placeName?: string;
|
|
1357
1357
|
communityName?: string;
|
|
1358
|
-
level?: number;
|
|
1359
|
-
xp?: number;
|
|
1360
|
-
nextXP?: number;
|
|
1361
1358
|
onEdit?: () => void;
|
|
1362
1359
|
};
|
|
1363
1360
|
/**
|
|
1364
|
-
* The student dashboard's profile summary: avatar/name/meta (formerly `ProfileWidget`)
|
|
1365
|
-
* place/community (formerly `AboutWidget`)
|
|
1366
|
-
*
|
|
1361
|
+
* The student dashboard's profile summary: avatar/name/meta (formerly `ProfileWidget`) and bio and
|
|
1362
|
+
* place/community (formerly `AboutWidget`) consolidated into a single card, matching Mockup I's
|
|
1363
|
+
* layout and color treatment. The level/XP gamification section (formerly `ImpactWidget`) that used
|
|
1364
|
+
* to also live here was removed at Colin's direction as vestigial - not part of the PRD, never
|
|
1365
|
+
* validated as something students found meaningful.
|
|
1367
1366
|
* @param props
|
|
1368
1367
|
* @constructor
|
|
1369
1368
|
*/
|
|
@@ -1390,6 +1389,45 @@ type BadgesCardProps = {
|
|
|
1390
1389
|
*/
|
|
1391
1390
|
declare const BadgesCard: (props: BadgesCardProps) => JSX.Element;
|
|
1392
1391
|
|
|
1392
|
+
/**
|
|
1393
|
+
* A single comment as My Profile's CommentsCard needs it - the same shape hub's useMyComments()
|
|
1394
|
+
* hook already produces (Comments.tsx, Badge.tsx, Lesson.tsx all resolve badgeName/lessonName
|
|
1395
|
+
* client-side the same way, since study's own comment records only carry raw badgeId/lessonId).
|
|
1396
|
+
*/
|
|
1397
|
+
type CommentItem = {
|
|
1398
|
+
commentId: string;
|
|
1399
|
+
commentText: string;
|
|
1400
|
+
requireValidation: boolean;
|
|
1401
|
+
resolvedAt?: string;
|
|
1402
|
+
authorName?: string;
|
|
1403
|
+
createdAt: string;
|
|
1404
|
+
badgeId?: string;
|
|
1405
|
+
badgeName?: string;
|
|
1406
|
+
lessonId?: string;
|
|
1407
|
+
lessonName?: string;
|
|
1408
|
+
};
|
|
1409
|
+
/**
|
|
1410
|
+
* CommentsCardProps
|
|
1411
|
+
*/
|
|
1412
|
+
type CommentsCardProps = {
|
|
1413
|
+
comments: CommentItem[];
|
|
1414
|
+
isLoading?: boolean;
|
|
1415
|
+
onViewAll?: () => void;
|
|
1416
|
+
onBadgeClick?: (badgeId: string) => void;
|
|
1417
|
+
onLessonClick?: (lessonId: string) => void;
|
|
1418
|
+
};
|
|
1419
|
+
/**
|
|
1420
|
+
* My Profile's "Comments" summary card - a presentational sibling to PathwaysCard/BadgesCard.
|
|
1421
|
+
* Gives a student a passive, at-a-glance view of what's been said about their own badges/lessons
|
|
1422
|
+
* without having to visit the standalone /comments page first: 3 status-dimension stats (Total /
|
|
1423
|
+
* Needs Attention / Resolved), then the most recent comments themselves, each with a hyperlink
|
|
1424
|
+
* straight to the badge/lesson it concerns. "View All" is the same destination the sidebar's own
|
|
1425
|
+
* Comments tab already points at - this card is a summary of that page, not a replacement for it.
|
|
1426
|
+
* @param props
|
|
1427
|
+
* @constructor
|
|
1428
|
+
*/
|
|
1429
|
+
declare const CommentsCard: (props: CommentsCardProps) => JSX.Element;
|
|
1430
|
+
|
|
1393
1431
|
/**
|
|
1394
1432
|
* DashboardShellProps
|
|
1395
1433
|
*/
|
|
@@ -1597,7 +1635,7 @@ declare const FileLocker: (props: FileLockerProps) => JSX.Element;
|
|
|
1597
1635
|
*/
|
|
1598
1636
|
type CommentsItem = {
|
|
1599
1637
|
commentId: string;
|
|
1600
|
-
|
|
1638
|
+
commenterName?: string;
|
|
1601
1639
|
badgeId?: string;
|
|
1602
1640
|
badgeName?: string;
|
|
1603
1641
|
lessonId?: string;
|
|
@@ -1605,6 +1643,7 @@ type CommentsItem = {
|
|
|
1605
1643
|
commentText: string;
|
|
1606
1644
|
requireValidation: boolean;
|
|
1607
1645
|
resolvedAt?: string;
|
|
1646
|
+
needsSubmission?: boolean;
|
|
1608
1647
|
createdAt: string;
|
|
1609
1648
|
};
|
|
1610
1649
|
/**
|
|
@@ -1722,4 +1761,4 @@ type HomeLayoutProps = {
|
|
|
1722
1761
|
*/
|
|
1723
1762
|
declare const HomeLayout: (props: HomeLayoutProps) => JSX.Element;
|
|
1724
1763
|
|
|
1725
|
-
export { AboutWidget, AboutWidgetProps, AchievementWidget, AchievementWidgetProps, ActivityCard, ActivityCardProps, ActivityItem, ActivityItemProps, ActivityList, ActivityListProps, ActivityReflection, ActivityReflectionProps, AuthLayout, AuthLayoutProps, Badge, BadgeActivityMenu, BadgeActivityMenuProps, BadgeDetail, BadgeDetailProps, BadgeFilterOption, BadgeProps, BadgeSection, BadgeSectionProps, BadgeSuccessDialog, BadgeSuccessDialogProps, BadgesCard, BadgesCardProps, BadgesList, BadgesListProps, Board, BoardProps, Button, ButtonBorder, ButtonColor, ButtonFilter, ButtonJustify, ButtonProps, ButtonSize, ButtonSpacing, ButtonTheme, Card, CardProps, Comments, CommentsItem, CommentsProps, CtaListProps, DashboardShell, DashboardShellProps, DashboardSidebar, DashboardSidebarIdentity, DashboardSidebarLinks, DashboardSidebarProps, DashboardSidebarTabName, DashboardTopBar, DashboardTopBarBreadcrumbSegment, DashboardTopBarProps, DateSelection, DateSelectionProps, DaySelectionOptionProps, EventItem, EventItemProps, EventList, EventListProps, FileList, FileListItem, FileListProps, FileLocker, FileLockerBadge, FileLockerPathway, FileLockerProps, Footer, FooterProps, Home, HomeLayout, HomeLayoutProps, Icon, IconName, IconProps, ImpactWidget, ImpactWidgetProps, LearningForm, LearningFormProps, Loader, LoaderProps, LogServiceButton, LogServiceButtonProps, Logo, Modal, ModalProps, NavBar, NavBarProps, NavLink, NavLinkName, NavLinkProps, NotFound, NotFoundProps, Onboarding, OnboardingProps, Overlay, OverlayProps, Pathway, PathwayButton, PathwayButtonProps, PathwayDetail, PathwayDetailProps, PathwayFilter, PathwayFilterOption, PathwayFilterProps, PathwayItem, PathwayProgress, PathwayProgressHeight, PathwayProgressProps, PathwayProps, PathwaySection, PathwaySectionProps, PathwayTranscript, PathwayWidget, PathwayWidgetProps, PathwaysCard, PathwaysCardProps, PathwaysList, PathwaysListProps, Pill, PillAccent, PillProps, ProfileHeroCard, ProfileHeroCardProps, ProfileWidget, Progress, ProgressProps, ResidentWidgetProps, Search, SearchButton, SearchButtonProps, SearchProps, SearchResult, SearchResultProps, SettingsCard, SettingsCardProps, SortableHeader, SortableHeaderProps, StatTile, StatTileAccent, StatTileProps, StatTileRow, StatTileRowProps, Stopwatch, StopwatchProps, SubmissionItem, SubmissionQueueNav, SubmissionQueueNavProps, SubmissionReviewHeader, SubmissionReviewHeaderProps, Tab, TabProps, TagFilter, TagFilterProps, TaskItem, TaskItemProps, TaskList, TaskListProps, Widget, WidgetBody, WidgetBodyProps, WidgetHeader, WidgetHeaderLink, WidgetHeaderLinkProps, WidgetHeaderProps, WidgetProps, WidgetTitle, WidgetTitleProps };
|
|
1764
|
+
export { AboutWidget, AboutWidgetProps, AchievementWidget, AchievementWidgetProps, ActivityCard, ActivityCardProps, ActivityItem, ActivityItemProps, ActivityList, ActivityListProps, ActivityReflection, ActivityReflectionProps, AuthLayout, AuthLayoutProps, Badge, BadgeActivityMenu, BadgeActivityMenuProps, BadgeDetail, BadgeDetailProps, BadgeFilterOption, BadgeProps, BadgeSection, BadgeSectionProps, BadgeSuccessDialog, BadgeSuccessDialogProps, BadgesCard, BadgesCardProps, BadgesList, BadgesListProps, Board, BoardProps, Button, ButtonBorder, ButtonColor, ButtonFilter, ButtonJustify, ButtonProps, ButtonSize, ButtonSpacing, ButtonTheme, Card, CardProps, CommentItem, Comments, CommentsCard, CommentsCardProps, CommentsItem, CommentsProps, CtaListProps, DashboardShell, DashboardShellProps, DashboardSidebar, DashboardSidebarIdentity, DashboardSidebarLinks, DashboardSidebarProps, DashboardSidebarTabName, DashboardTopBar, DashboardTopBarBreadcrumbSegment, DashboardTopBarProps, DateSelection, DateSelectionProps, DaySelectionOptionProps, EventItem, EventItemProps, EventList, EventListProps, FileList, FileListItem, FileListProps, FileLocker, FileLockerBadge, FileLockerPathway, FileLockerProps, Footer, FooterProps, Home, HomeLayout, HomeLayoutProps, Icon, IconName, IconProps, ImpactWidget, ImpactWidgetProps, LearningForm, LearningFormProps, Loader, LoaderProps, LogServiceButton, LogServiceButtonProps, Logo, Modal, ModalProps, NavBar, NavBarProps, NavLink, NavLinkName, NavLinkProps, NotFound, NotFoundProps, Onboarding, OnboardingProps, Overlay, OverlayProps, Pathway, PathwayButton, PathwayButtonProps, PathwayDetail, PathwayDetailProps, PathwayFilter, PathwayFilterOption, PathwayFilterProps, PathwayItem, PathwayProgress, PathwayProgressHeight, PathwayProgressProps, PathwayProps, PathwaySection, PathwaySectionProps, PathwayTranscript, PathwayWidget, PathwayWidgetProps, PathwaysCard, PathwaysCardProps, PathwaysList, PathwaysListProps, Pill, PillAccent, PillProps, ProfileHeroCard, ProfileHeroCardProps, ProfileWidget, Progress, ProgressProps, ResidentWidgetProps, Search, SearchButton, SearchButtonProps, SearchProps, SearchResult, SearchResultProps, SettingsCard, SettingsCardProps, SortableHeader, SortableHeaderProps, StatTile, StatTileAccent, StatTileProps, StatTileRow, StatTileRowProps, Stopwatch, StopwatchProps, SubmissionItem, SubmissionQueueNav, SubmissionQueueNavProps, SubmissionReviewHeader, SubmissionReviewHeaderProps, Tab, TabProps, TagFilter, TagFilterProps, TaskItem, TaskItemProps, TaskList, TaskListProps, Widget, WidgetBody, WidgetBodyProps, WidgetHeader, WidgetHeaderLink, WidgetHeaderLinkProps, WidgetHeaderProps, WidgetProps, WidgetTitle, WidgetTitleProps };
|