@gostudent/shared-ui-library-mcp 1.25.1-DT-16975.7 → 1.26.0

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "libraryVersion": "1.25.1",
2
+ "libraryVersion": "1.26.0",
3
3
  "components": [
4
4
  {
5
5
  "name": "Avatar",
@@ -1460,98 +1460,6 @@
1460
1460
  }
1461
1461
  ]
1462
1462
  },
1463
- {
1464
- "name": "LessonCard",
1465
- "description": "A domain-level card that displays a lesson session with all associated metadata.\n\nSupports states driven by the `lessonState`, `type`, `modality`, and `feedbackState` props:\n\n| `lessonState` | `type` | `modality` | `feedbackState` | Description |\n|----------------|-----------------|--------------|-----------------|-------------|\n| `upcoming` | `individual` | `online` | — | Metadata row (time) + actions in a wrapping flex row, \"Workspace\" link + \"Start GoClass\" button, `StudentDetails` always visible below |\n| `upcoming` | `group` | `online` | — | Metadata row (time, student count) + actions in a wrapping flex row, optional kebab menu, always-visible `StudentDetails` (desktop) / \"N students\" disclosure (mobile) below |\n| `upcoming` | `individual` | `offline` | — | Offline modality tag, metadata row includes room/lesson center, single \"Document lesson\" button |\n| `upcoming` | `group` | `offline` | — | Offline modality tag, metadata row includes room/lesson center, \"N students\" disclosure below |\n| `completed` | `individual` | `online` | `pending` | `StudentDetails` (24px, pending badge) inline, no dropdown, \"Document lesson\" button |\n| `completed` | `group` | `online` | `pending` | Disclosure toggle revealing `StudentDetails` (24px, done/pending badges), \"Document lesson\" button |\n| `completed` | `group` | `online` | `submitted` | \"Review feedback\" button, always-visible `StudentDetails` (desktop) / \"N students\" disclosure (mobile) |\n| `completed` | `individual` | `online` | `submitted` | \"Review feedback\" button, `StudentDetails` inline at both breakpoints |\n\nOnline lessons also show a \"Workspace\" link (secondary/link-styled) alongside \"Start GoClass\" /\n\"Document lesson\", for every lesson state.\n\n### Usage\n\n```tsx\nimport { LessonCard } from '@gostudent/shared-ui-library';\n\n<LessonCard\n title=\"English lesson\"\n modality=\"online\"\n type=\"individual\"\n subjects={['English']}\n time=\"17:00 - 18:00\"\n lessonState=\"upcoming\"\n students={[{ name: 'Alice Smith', grade: '8', subject: 'English' }]}\n isStartLessonDisabled\n/>\n```",
1466
- "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/compositions-lessoncard",
1467
- "props": [
1468
- {
1469
- "name": "title",
1470
- "description": "Lesson title shown as the card heading.",
1471
- "options": [
1472
- "online",
1473
- "offline"
1474
- ]
1475
- },
1476
- {
1477
- "name": "type",
1478
- "description": "Lesson type — affects student list layout and metadata count item.",
1479
- "options": [
1480
- "individual",
1481
- "group"
1482
- ]
1483
- },
1484
- {
1485
- "name": "subjects",
1486
- "description": "Array of subject labels rendered as Tag pills.",
1487
- "options": []
1488
- },
1489
- {
1490
- "name": "time",
1491
- "description": "Formatted time range, e.g. \"17:00 - 18:00\".",
1492
- "options": [
1493
- "upcoming",
1494
- "in-progress",
1495
- "completed"
1496
- ]
1497
- },
1498
- {
1499
- "name": "feedbackState",
1500
- "description": "Feedback phase for completed lessons.",
1501
- "options": [
1502
- "pending",
1503
- "submitted"
1504
- ]
1505
- },
1506
- {
1507
- "name": "pendingFeedbackCount",
1508
- "description": "Number shown in the Disclosure trigger for pending feedback.",
1509
- "options": []
1510
- },
1511
- {
1512
- "name": "isStartLessonDisabled",
1513
- "description": "Disables the \"Start lesson\" button in upcoming state.",
1514
- "options": []
1515
- },
1516
- {
1517
- "name": "hasKebab",
1518
- "description": "Show or hide the kebab menu. When enabled, passes menu items to the card.",
1519
- "options": []
1520
- },
1521
- {
1522
- "name": "students",
1523
- "description": "Array of student objects (name, optional avatarSrc, optional feedbackStatus).",
1524
- "options": []
1525
- },
1526
- {
1527
- "name": "menuItems",
1528
- "description": "Kebab menu items. When provided, the kebab button is shown regardless of lesson state.",
1529
- "options": []
1530
- },
1531
- {
1532
- "name": "onStartLesson",
1533
- "description": "Called when \"Start GoClass\" is clicked.",
1534
- "options": []
1535
- }
1536
- ],
1537
- "examples": [
1538
- {
1539
- "name": "UpcomingIndividual",
1540
- "jsx": "<LessonCard title=\"Individual lesson\" modality=\"online\" type=\"individual\" subjects={['English']} time=\"17:00 - 18:00\" lessonState=\"upcoming\" isStartLessonDisabled={true} students={[{ name: 'Marcus Johnson', grade: '8', subject: 'Mathematics' }]} hasKebab={true} />",
1541
- "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-lessoncard--upcoming-individual"
1542
- },
1543
- {
1544
- "name": "UpcomingGroup",
1545
- "jsx": "<LessonCard title=\"Group lesson\" modality=\"online\" type=\"group\" subjects={['English', 'Biology', 'Math']} time=\"17:00 - 18:00\" lessonState=\"upcoming\" isStartLessonDisabled={true} students={STUDENTS_GROUP} hasKebab={true} />",
1546
- "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-lessoncard--upcoming-group"
1547
- },
1548
- {
1549
- "name": "UpcomingGroupWithDisabledStudent",
1550
- "jsx": "<LessonCard title=\"Group lesson\" modality=\"online\" type=\"group\" subjects={['English', 'Biology', 'Math']} time=\"17:00 - 18:00\" lessonState=\"upcoming\" isStartLessonDisabled={true} students={[ ...STUDENTS_GROUP.slice(0, -1), { ...STUDENTS_GROUP[STUDENTS_GROUP.length - 1], disabled: true }, ]} hasKebab={true} />",
1551
- "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-lessoncard--upcoming-group-with-disabled-student"
1552
- }
1553
- ]
1554
- },
1555
1463
  {
1556
1464
  "name": "LessonStatusTag",
1557
1465
  "description": "",
@@ -1748,6 +1656,98 @@
1748
1656
  "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-topnavigation--desktop-s-k"
1749
1657
  }
1750
1658
  ]
1659
+ },
1660
+ {
1661
+ "name": "TutorLessonCard",
1662
+ "description": "A domain-level card that displays a lesson session with all associated metadata.\n\nSupports states driven by the `lessonState`, `type`, `modality`, and `feedbackState` props:\n\n| `lessonState` | `type` | `modality` | `feedbackState` | Description |\n|----------------|-----------------|--------------|-----------------|-------------|\n| `upcoming` | `individual` | `online` | — | Metadata row (time) + actions in a wrapping flex row, \"Workspace\" link + \"Start GoClass\" button, `StudentDetails` always visible below |\n| `upcoming` | `group` | `online` | — | Metadata row (time, student count) + actions in a wrapping flex row, optional kebab menu, always-visible `StudentDetails` (desktop) / \"N students\" disclosure (mobile) below |\n| `upcoming` | `individual` | `offline` | — | Offline modality tag, metadata row includes room/lesson center, single \"Document lesson\" button |\n| `upcoming` | `group` | `offline` | — | Offline modality tag, metadata row includes room/lesson center, \"N students\" disclosure below |\n| `completed` | `individual` | `online` | `pending` | `StudentDetails` (24px, pending badge) inline, no dropdown, \"Document lesson\" button |\n| `completed` | `group` | `online` | `pending` | Disclosure toggle revealing `StudentDetails` (24px, done/pending badges), \"Document lesson\" button |\n| `completed` | `group` | `online` | `submitted` | \"Review feedback\" button, always-visible `StudentDetails` (desktop) / \"N students\" disclosure (mobile) |\n| `completed` | `individual` | `online` | `submitted` | \"Review feedback\" button, `StudentDetails` inline at both breakpoints |\n\nOnline lessons also show a \"Workspace\" link (secondary/link-styled) alongside \"Start GoClass\" /\n\"Document lesson\", for every lesson state.\n\n### Usage\n\n```tsx\nimport { TutorLessonCard } from '@gostudent/shared-ui-library';\n\n<TutorLessonCard\n title=\"English lesson\"\n modality=\"online\"\n type=\"individual\"\n subjects={['English']}\n time=\"17:00 - 18:00\"\n lessonState=\"upcoming\"\n students={[{ name: 'Alice Smith', grade: '8', subject: 'English' }]}\n isStartLessonDisabled\n/>\n```",
1663
+ "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/compositions-tutorlessoncard",
1664
+ "props": [
1665
+ {
1666
+ "name": "title",
1667
+ "description": "Lesson title shown as the card heading.",
1668
+ "options": [
1669
+ "online",
1670
+ "offline"
1671
+ ]
1672
+ },
1673
+ {
1674
+ "name": "type",
1675
+ "description": "Lesson type — affects student list layout and metadata count item.",
1676
+ "options": [
1677
+ "individual",
1678
+ "group"
1679
+ ]
1680
+ },
1681
+ {
1682
+ "name": "subjects",
1683
+ "description": "Array of subject labels rendered as Tag pills.",
1684
+ "options": []
1685
+ },
1686
+ {
1687
+ "name": "time",
1688
+ "description": "Formatted time range, e.g. \"17:00 - 18:00\".",
1689
+ "options": [
1690
+ "upcoming",
1691
+ "in-progress",
1692
+ "completed"
1693
+ ]
1694
+ },
1695
+ {
1696
+ "name": "feedbackState",
1697
+ "description": "Feedback phase for completed lessons.",
1698
+ "options": [
1699
+ "pending",
1700
+ "submitted"
1701
+ ]
1702
+ },
1703
+ {
1704
+ "name": "pendingFeedbackCount",
1705
+ "description": "Number shown in the Disclosure trigger for pending feedback.",
1706
+ "options": []
1707
+ },
1708
+ {
1709
+ "name": "isStartLessonDisabled",
1710
+ "description": "Disables the \"Start lesson\" button in upcoming state.",
1711
+ "options": []
1712
+ },
1713
+ {
1714
+ "name": "hasKebab",
1715
+ "description": "Show or hide the kebab menu. When enabled, passes menu items to the card.",
1716
+ "options": []
1717
+ },
1718
+ {
1719
+ "name": "students",
1720
+ "description": "Array of student objects (name, optional avatarSrc, optional feedbackStatus).",
1721
+ "options": []
1722
+ },
1723
+ {
1724
+ "name": "menuItems",
1725
+ "description": "Kebab menu items. When provided, the kebab button is shown regardless of lesson state.",
1726
+ "options": []
1727
+ },
1728
+ {
1729
+ "name": "onStartLesson",
1730
+ "description": "Called when \"Start GoClass\" is clicked.",
1731
+ "options": []
1732
+ }
1733
+ ],
1734
+ "examples": [
1735
+ {
1736
+ "name": "UpcomingIndividual",
1737
+ "jsx": "<TutorLessonCard title=\"Individual lesson\" modality=\"online\" type=\"individual\" subjects={['English']} time=\"17:00 - 18:00\" lessonState=\"upcoming\" isStartLessonDisabled={true} students={[{ name: 'Marcus Johnson', grade: '8', subject: 'Mathematics' }]} hasKebab={true} />",
1738
+ "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-tutorlessoncard--upcoming-individual"
1739
+ },
1740
+ {
1741
+ "name": "UpcomingGroup",
1742
+ "jsx": "<TutorLessonCard title=\"Group lesson\" modality=\"online\" type=\"group\" subjects={['English', 'Biology', 'Math']} time=\"17:00 - 18:00\" lessonState=\"upcoming\" isStartLessonDisabled={true} students={STUDENTS_GROUP} hasKebab={true} />",
1743
+ "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-tutorlessoncard--upcoming-group"
1744
+ },
1745
+ {
1746
+ "name": "UpcomingGroupWithDisabledStudent",
1747
+ "jsx": "<TutorLessonCard title=\"Group lesson\" modality=\"online\" type=\"group\" subjects={['English', 'Biology', 'Math']} time=\"17:00 - 18:00\" lessonState=\"upcoming\" isStartLessonDisabled={true} students={[ ...STUDENTS_GROUP.slice(0, -1), { ...STUDENTS_GROUP[STUDENTS_GROUP.length - 1], disabled: true }, ]} hasKebab={true} />",
1748
+ "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/compositions-tutorlessoncard--upcoming-group-with-disabled-student"
1749
+ }
1750
+ ]
1751
1751
  }
1752
1752
  ],
1753
1753
  "icons": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gostudent/shared-ui-library-mcp",
3
- "version": "1.25.1-DT-16975.7",
3
+ "version": "1.26.0",
4
4
  "description": "MCP server for @gostudent/shared-ui-library — exposes components, icons, and tokens to Claude",
5
5
  "type": "module",
6
6
  "bin": {