@t3q-ui/design-system 1.62.0 → 1.63.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/chunk-DWF6AFPQ.js +409 -0
  3. package/dist/chunk-DWF6AFPQ.js.map +1 -0
  4. package/dist/{chunk-B7EVWGOO.cjs → chunk-ESAMXUUJ.cjs} +2264 -1129
  5. package/dist/chunk-ESAMXUUJ.cjs.map +1 -0
  6. package/dist/{chunk-RWXQIS6W.js → chunk-GZZXYYDY.js} +2182 -1049
  7. package/dist/chunk-GZZXYYDY.js.map +1 -0
  8. package/dist/chunk-OQOBPYZT.cjs +443 -0
  9. package/dist/chunk-OQOBPYZT.cjs.map +1 -0
  10. package/dist/{index-49sVdPlX.d.cts → index-DoIChamr.d.cts} +177 -1
  11. package/dist/{index-49sVdPlX.d.ts → index-DoIChamr.d.ts} +177 -1
  12. package/dist/index.cjs +1146 -1799
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.css +12 -0
  15. package/dist/index.css.map +1 -1
  16. package/dist/index.d.cts +54 -7
  17. package/dist/index.d.ts +54 -7
  18. package/dist/index.js +584 -1264
  19. package/dist/index.js.map +1 -1
  20. package/dist/markdown/index.cjs +412 -0
  21. package/dist/markdown/index.cjs.map +1 -0
  22. package/dist/markdown/index.d.cts +24 -0
  23. package/dist/markdown/index.d.ts +24 -0
  24. package/dist/markdown/index.js +405 -0
  25. package/dist/markdown/index.js.map +1 -0
  26. package/dist/patterns/index.cjs +586 -69
  27. package/dist/patterns/index.cjs.map +1 -1
  28. package/dist/patterns/index.d.cts +119 -2
  29. package/dist/patterns/index.d.ts +119 -2
  30. package/dist/patterns/index.js +520 -5
  31. package/dist/patterns/index.js.map +1 -1
  32. package/dist/styles.css +23 -0
  33. package/mcp/manifests/components.json +2620 -68
  34. package/package.json +19 -2
  35. package/skills/tds/examples/chat-page.tsx +313 -0
  36. package/skills/tds/reference/components.md +238 -11
  37. package/dist/chunk-B7EVWGOO.cjs.map +0 -1
  38. package/dist/chunk-RWXQIS6W.js.map +0 -1
@@ -1326,6 +1326,2291 @@
1326
1326
  ],
1327
1327
  "import": "import {\n Button,\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardThumbnail,\n CardTitle,\n} from '@t3q-ui/design-system';\nimport { Database } from 'lucide-react';"
1328
1328
  },
1329
+ "components-inputs-chatcomposer": {
1330
+ "id": "components-inputs-chatcomposer",
1331
+ "name": "ChatComposer",
1332
+ "path": "./src/stories/ChatComposer/ChatComposer.stories.tsx",
1333
+ "jsDocTags": {},
1334
+ "description": "챗 입력창. 자동으로 늘어나는 입력란 아래에 `+` 메뉴(파일 첨부·옵션)와 전송(생성 중에는 중지) 버튼을 둔 둥근 상자.\n\n언제 쓰나: AI에게 보내는 메시지 입력. 보통은 `ChatPage`·`ChatPanel` 패턴이 이것을 그리므로 직접 쓸 일이 없다 — 패턴을 쓸 수 없는 자리에만 직접 쓴다.\n언제 안 쓰나: 폼의 여러 줄 입력(→ Textarea), 검색(→ TextField), 댓글 작성처럼 제출 버튼이 따로 있는 폼(→ FormPage).\n대신/함께: Enter 로 전송, Shift+Enter 로 줄바꿈(한글 조합 중 Enter 는 전송하지 않는다). 비어 있으면 전송이 비활성이고, 올리는 중인 첨부가 있어도 비활성이다. 전송한 뒤에도 포커스는 입력란에 남는다. 파일 첨부와 켜고 끄는 옵션은 `+` 메뉴(`onAttach`·`menu`)에, 모델 선택처럼 늘 보여야 하는 것은 `elemBefore`·`elemAfter` 에 넣는다.",
1335
+ "reactDocgenTypescript": {
1336
+ "tags": {},
1337
+ "filePath": "src/components/chatComposer.tsx",
1338
+ "description": "챗 입력창. 자동으로 늘어나는 입력란 아래에 `+` 메뉴(파일 첨부·옵션)와 전송(생성 중에는 중지) 버튼을 둔 둥근 상자.\n\n언제 쓰나: AI에게 보내는 메시지 입력. 보통은 `ChatPage`·`ChatPanel` 패턴이 이것을 그리므로 직접 쓸 일이 없다 — 패턴을 쓸 수 없는 자리에만 직접 쓴다.\n언제 안 쓰나: 폼의 여러 줄 입력(→ Textarea), 검색(→ TextField), 댓글 작성처럼 제출 버튼이 따로 있는 폼(→ FormPage).\n대신/함께: Enter 로 전송, Shift+Enter 로 줄바꿈(한글 조합 중 Enter 는 전송하지 않는다). 비어 있으면 전송이 비활성이고, 올리는 중인 첨부가 있어도 비활성이다. 전송한 뒤에도 포커스는 입력란에 남는다. 파일 첨부와 켜고 끄는 옵션은 `+` 메뉴(`onAttach`·`menu`)에, 모델 선택처럼 늘 보여야 하는 것은 `elemBefore`·`elemAfter` 에 넣는다.",
1339
+ "displayName": "ChatComposer",
1340
+ "methods": [],
1341
+ "props": {
1342
+ "value": {
1343
+ "defaultValue": null,
1344
+ "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다",
1345
+ "name": "value",
1346
+ "parent": {
1347
+ "fileName": "src/components/chatComposer.tsx",
1348
+ "name": "ChatComposerProps"
1349
+ },
1350
+ "declarations": [
1351
+ {
1352
+ "fileName": "src/components/chatComposer.tsx",
1353
+ "name": "ChatComposerProps"
1354
+ }
1355
+ ],
1356
+ "required": false,
1357
+ "type": {
1358
+ "name": "string"
1359
+ }
1360
+ },
1361
+ "onValueChange": {
1362
+ "defaultValue": null,
1363
+ "description": "입력 값이 바뀔 때. 전송 뒤에는 빈 문자열로 불린다",
1364
+ "name": "onValueChange",
1365
+ "parent": {
1366
+ "fileName": "src/components/chatComposer.tsx",
1367
+ "name": "ChatComposerProps"
1368
+ },
1369
+ "declarations": [
1370
+ {
1371
+ "fileName": "src/components/chatComposer.tsx",
1372
+ "name": "ChatComposerProps"
1373
+ }
1374
+ ],
1375
+ "required": false,
1376
+ "type": {
1377
+ "name": "((value: string) => void)"
1378
+ }
1379
+ },
1380
+ "onSubmit": {
1381
+ "defaultValue": null,
1382
+ "description": "전송. 앞뒤 공백을 뗀 글자를 넘긴다. 글 없이 첨부만 있으면 빈 문자열",
1383
+ "name": "onSubmit",
1384
+ "parent": {
1385
+ "fileName": "src/components/chatComposer.tsx",
1386
+ "name": "ChatComposerProps"
1387
+ },
1388
+ "declarations": [
1389
+ {
1390
+ "fileName": "src/components/chatComposer.tsx",
1391
+ "name": "ChatComposerProps"
1392
+ }
1393
+ ],
1394
+ "required": true,
1395
+ "type": {
1396
+ "name": "(text: string) => void"
1397
+ }
1398
+ },
1399
+ "streaming": {
1400
+ "defaultValue": {
1401
+ "value": "false"
1402
+ },
1403
+ "description": "답변 생성 중. 전송 버튼이 중지 버튼으로 바뀌고 Enter 로 전송되지 않는다(입력은 계속할 수 있다)",
1404
+ "name": "streaming",
1405
+ "parent": {
1406
+ "fileName": "src/components/chatComposer.tsx",
1407
+ "name": "ChatComposerProps"
1408
+ },
1409
+ "declarations": [
1410
+ {
1411
+ "fileName": "src/components/chatComposer.tsx",
1412
+ "name": "ChatComposerProps"
1413
+ }
1414
+ ],
1415
+ "required": false,
1416
+ "type": {
1417
+ "name": "boolean"
1418
+ }
1419
+ },
1420
+ "onStop": {
1421
+ "defaultValue": null,
1422
+ "description": "중지 클릭. `streaming` 인데 주지 않으면 전송 버튼이 비활성으로 남는다",
1423
+ "name": "onStop",
1424
+ "parent": {
1425
+ "fileName": "src/components/chatComposer.tsx",
1426
+ "name": "ChatComposerProps"
1427
+ },
1428
+ "declarations": [
1429
+ {
1430
+ "fileName": "src/components/chatComposer.tsx",
1431
+ "name": "ChatComposerProps"
1432
+ }
1433
+ ],
1434
+ "required": false,
1435
+ "type": {
1436
+ "name": "(() => void)"
1437
+ }
1438
+ },
1439
+ "disabled": {
1440
+ "defaultValue": {
1441
+ "value": "false"
1442
+ },
1443
+ "description": "입력과 전송을 모두 잠근다 (예: 모델을 아직 고르지 않음). 이유는 `placeholder` 에 적는다",
1444
+ "name": "disabled",
1445
+ "parent": {
1446
+ "fileName": "src/components/chatComposer.tsx",
1447
+ "name": "ChatComposerProps"
1448
+ },
1449
+ "declarations": [
1450
+ {
1451
+ "fileName": "src/components/chatComposer.tsx",
1452
+ "name": "ChatComposerProps"
1453
+ }
1454
+ ],
1455
+ "required": false,
1456
+ "type": {
1457
+ "name": "boolean"
1458
+ }
1459
+ },
1460
+ "placeholder": {
1461
+ "defaultValue": {
1462
+ "value": "메시지를 입력하세요"
1463
+ },
1464
+ "description": "입력창 안내 문구. 기본 \"메시지를 입력하세요\"",
1465
+ "name": "placeholder",
1466
+ "parent": {
1467
+ "fileName": "src/components/chatComposer.tsx",
1468
+ "name": "ChatComposerProps"
1469
+ },
1470
+ "declarations": [
1471
+ {
1472
+ "fileName": "src/components/chatComposer.tsx",
1473
+ "name": "ChatComposerProps"
1474
+ }
1475
+ ],
1476
+ "required": false,
1477
+ "type": {
1478
+ "name": "string"
1479
+ }
1480
+ },
1481
+ "label": {
1482
+ "defaultValue": {
1483
+ "value": "메시지"
1484
+ },
1485
+ "description": "입력창의 접근성 이름. 기본 \"메시지\"",
1486
+ "name": "label",
1487
+ "parent": {
1488
+ "fileName": "src/components/chatComposer.tsx",
1489
+ "name": "ChatComposerProps"
1490
+ },
1491
+ "declarations": [
1492
+ {
1493
+ "fileName": "src/components/chatComposer.tsx",
1494
+ "name": "ChatComposerProps"
1495
+ }
1496
+ ],
1497
+ "required": false,
1498
+ "type": {
1499
+ "name": "string"
1500
+ }
1501
+ },
1502
+ "maxRows": {
1503
+ "defaultValue": {
1504
+ "value": "6"
1505
+ },
1506
+ "description": "입력창이 자라는 최대 줄 수. 넘으면 안에서 스크롤. 기본 6",
1507
+ "name": "maxRows",
1508
+ "parent": {
1509
+ "fileName": "src/components/chatComposer.tsx",
1510
+ "name": "ChatComposerProps"
1511
+ },
1512
+ "declarations": [
1513
+ {
1514
+ "fileName": "src/components/chatComposer.tsx",
1515
+ "name": "ChatComposerProps"
1516
+ }
1517
+ ],
1518
+ "required": false,
1519
+ "type": {
1520
+ "name": "number"
1521
+ }
1522
+ },
1523
+ "menu": {
1524
+ "defaultValue": null,
1525
+ "description": "`+` 메뉴에 넣을 항목(`DropdownMenuItem`). 주면 아래 줄 왼쪽에 `+` 버튼이 생기고, 누르면 메뉴가 열린다. `onAttach` 가 있으면 \"파일 첨부\" 가 맨 위에 놓인다",
1526
+ "name": "menu",
1527
+ "parent": {
1528
+ "fileName": "src/components/chatComposer.tsx",
1529
+ "name": "ChatComposerProps"
1530
+ },
1531
+ "declarations": [
1532
+ {
1533
+ "fileName": "src/components/chatComposer.tsx",
1534
+ "name": "ChatComposerProps"
1535
+ }
1536
+ ],
1537
+ "required": false,
1538
+ "type": {
1539
+ "name": "ReactNode"
1540
+ }
1541
+ },
1542
+ "elemBefore": {
1543
+ "defaultValue": null,
1544
+ "description": "아래 줄 왼쪽 자리 (모델 선택 등). `+` 버튼 오른쪽에 놓인다. 켜고 끄는 옵션은 여기보다 `menu` 에 넣는다",
1545
+ "name": "elemBefore",
1546
+ "parent": {
1547
+ "fileName": "src/components/chatComposer.tsx",
1548
+ "name": "ChatComposerProps"
1549
+ },
1550
+ "declarations": [
1551
+ {
1552
+ "fileName": "src/components/chatComposer.tsx",
1553
+ "name": "ChatComposerProps"
1554
+ }
1555
+ ],
1556
+ "required": false,
1557
+ "type": {
1558
+ "name": "ReactNode"
1559
+ }
1560
+ },
1561
+ "elemAfter": {
1562
+ "defaultValue": null,
1563
+ "description": "아래 줄 오른쪽 자리. 전송 버튼 왼쪽에 놓인다",
1564
+ "name": "elemAfter",
1565
+ "parent": {
1566
+ "fileName": "src/components/chatComposer.tsx",
1567
+ "name": "ChatComposerProps"
1568
+ },
1569
+ "declarations": [
1570
+ {
1571
+ "fileName": "src/components/chatComposer.tsx",
1572
+ "name": "ChatComposerProps"
1573
+ }
1574
+ ],
1575
+ "required": false,
1576
+ "type": {
1577
+ "name": "ReactNode"
1578
+ }
1579
+ },
1580
+ "attachments": {
1581
+ "defaultValue": null,
1582
+ "description": "붙여 둔 파일. 입력창 위에 칩으로 보인다. 올리기·실패 상태는 소비 앱이 정한다",
1583
+ "name": "attachments",
1584
+ "parent": {
1585
+ "fileName": "src/components/chatComposer.tsx",
1586
+ "name": "ChatComposerProps"
1587
+ },
1588
+ "declarations": [
1589
+ {
1590
+ "fileName": "src/components/chatComposer.tsx",
1591
+ "name": "ChatComposerProps"
1592
+ }
1593
+ ],
1594
+ "required": false,
1595
+ "type": {
1596
+ "name": "ChatAttachment[]"
1597
+ }
1598
+ },
1599
+ "onAttach": {
1600
+ "defaultValue": null,
1601
+ "description": "파일을 골랐을 때. 주면 `+` 메뉴에 \"파일 첨부\" 가 생긴다. 서버로 올리는 일은 소비 앱이 한다",
1602
+ "name": "onAttach",
1603
+ "parent": {
1604
+ "fileName": "src/components/chatComposer.tsx",
1605
+ "name": "ChatComposerProps"
1606
+ },
1607
+ "declarations": [
1608
+ {
1609
+ "fileName": "src/components/chatComposer.tsx",
1610
+ "name": "ChatComposerProps"
1611
+ }
1612
+ ],
1613
+ "required": false,
1614
+ "type": {
1615
+ "name": "((files: File[]) => void)"
1616
+ }
1617
+ },
1618
+ "onRemoveAttachment": {
1619
+ "defaultValue": null,
1620
+ "description": "칩의 지우기 클릭",
1621
+ "name": "onRemoveAttachment",
1622
+ "parent": {
1623
+ "fileName": "src/components/chatComposer.tsx",
1624
+ "name": "ChatComposerProps"
1625
+ },
1626
+ "declarations": [
1627
+ {
1628
+ "fileName": "src/components/chatComposer.tsx",
1629
+ "name": "ChatComposerProps"
1630
+ }
1631
+ ],
1632
+ "required": false,
1633
+ "type": {
1634
+ "name": "((id: string) => void)"
1635
+ }
1636
+ },
1637
+ "accept": {
1638
+ "defaultValue": null,
1639
+ "description": "고를 수 있는 파일 종류 (`<input accept>` 와 같은 형식)",
1640
+ "name": "accept",
1641
+ "parent": {
1642
+ "fileName": "src/components/chatComposer.tsx",
1643
+ "name": "ChatComposerProps"
1644
+ },
1645
+ "declarations": [
1646
+ {
1647
+ "fileName": "src/components/chatComposer.tsx",
1648
+ "name": "ChatComposerProps"
1649
+ }
1650
+ ],
1651
+ "required": false,
1652
+ "type": {
1653
+ "name": "string"
1654
+ }
1655
+ },
1656
+ "multiple": {
1657
+ "defaultValue": {
1658
+ "value": "true"
1659
+ },
1660
+ "description": "한 번에 여러 파일을 고를 수 있는가. 기본 true",
1661
+ "name": "multiple",
1662
+ "parent": {
1663
+ "fileName": "src/components/chatComposer.tsx",
1664
+ "name": "ChatComposerProps"
1665
+ },
1666
+ "declarations": [
1667
+ {
1668
+ "fileName": "src/components/chatComposer.tsx",
1669
+ "name": "ChatComposerProps"
1670
+ }
1671
+ ],
1672
+ "required": false,
1673
+ "type": {
1674
+ "name": "boolean"
1675
+ }
1676
+ },
1677
+ "className": {
1678
+ "defaultValue": null,
1679
+ "description": "바깥 상자에 덧붙일 클래스",
1680
+ "name": "className",
1681
+ "parent": {
1682
+ "fileName": "src/components/chatComposer.tsx",
1683
+ "name": "ChatComposerProps"
1684
+ },
1685
+ "declarations": [
1686
+ {
1687
+ "fileName": "src/components/chatComposer.tsx",
1688
+ "name": "ChatComposerProps"
1689
+ }
1690
+ ],
1691
+ "required": false,
1692
+ "type": {
1693
+ "name": "string"
1694
+ }
1695
+ }
1696
+ },
1697
+ "exportName": "ChatComposer"
1698
+ },
1699
+ "stories": [
1700
+ {
1701
+ "id": "components-inputs-chatcomposer--default",
1702
+ "name": "Default — Enter 전송 · Shift+Enter 줄바꿈",
1703
+ "snippet": "const Default = () => <Demo />;"
1704
+ },
1705
+ {
1706
+ "id": "components-inputs-chatcomposer--with-menu",
1707
+ "name": "WithMenu — + 메뉴(파일 첨부·옵션)",
1708
+ "snippet": "const WithMenu = () => <MenuDemo />;"
1709
+ },
1710
+ {
1711
+ "id": "components-inputs-chatcomposer--with-attachments",
1712
+ "name": "WithAttachments — 첨부 칩(준비·올리는 중·실패)",
1713
+ "snippet": "const WithAttachments = () => <AttachDemo />;"
1714
+ },
1715
+ {
1716
+ "id": "components-inputs-chatcomposer--streaming",
1717
+ "name": "Streaming — 생성 중(중지 버튼)",
1718
+ "snippet": "const Streaming = () => <Demo streaming onStop={() => {}} />;"
1719
+ },
1720
+ {
1721
+ "id": "components-inputs-chatcomposer--disabled",
1722
+ "name": "Disabled — 잠김(이유는 안내 문구로)",
1723
+ "snippet": "const Disabled = () => <Demo disabled placeholder=\"모델을 먼저 선택하세요\" />;"
1724
+ }
1725
+ ],
1726
+ "import": "import { ChatComposer, DropdownMenuItem } from '@t3q-ui/design-system';\nimport { Check } from 'lucide-react';"
1727
+ },
1728
+ "components-navigation-chathistory": {
1729
+ "id": "components-navigation-chathistory",
1730
+ "name": "ChatHistory",
1731
+ "path": "./src/stories/ChatHistory/ChatHistory.stories.tsx",
1732
+ "jsDocTags": {},
1733
+ "description": "대화 기록 목록. 새 대화 버튼 → 검색 → 날짜별 묶음 순서로 그리고, 항목마다 이름 변경·삭제 메뉴를 둔다.\n\n언제 쓰나: 챗 화면 왼쪽의 지난 대화 목록. 보통은 `ChatPage` 패턴이 `history` prop 으로 이것을 그리므로 직접 쓸 일이 없다.\n언제 안 쓰나: 앱의 메뉴(→ Sidebar), 표로 봐야 하는 목록(→ ListPage), 최근 이벤트(→ EventList).\n대신/함께: 날짜 묶음은 모든 항목에 `updatedAt` 이 있을 때만 생긴다. 이름 변경은 그 자리 입력(Enter 확정·Escape 취소), 삭제는 `onDelete` 에서 소비 앱이 AlertDialog 로 확인한다. 불러오는 중은 `loading`, 실패는 `error`(+`onRetry`), 더 있으면 `hasMore` + `onLoadMore`.",
1734
+ "reactDocgenTypescript": {
1735
+ "tags": {},
1736
+ "filePath": "src/components/chatHistory.tsx",
1737
+ "description": "대화 기록 목록. 새 대화 버튼 → 검색 → 날짜별 묶음 순서로 그리고, 항목마다 이름 변경·삭제 메뉴를 둔다.\n\n언제 쓰나: 챗 화면 왼쪽의 지난 대화 목록. 보통은 `ChatPage` 패턴이 `history` prop 으로 이것을 그리므로 직접 쓸 일이 없다.\n언제 안 쓰나: 앱의 메뉴(→ Sidebar), 표로 봐야 하는 목록(→ ListPage), 최근 이벤트(→ EventList).\n대신/함께: 날짜 묶음은 모든 항목에 `updatedAt` 이 있을 때만 생긴다. 이름 변경은 그 자리 입력(Enter 확정·Escape 취소), 삭제는 `onDelete` 에서 소비 앱이 AlertDialog 로 확인한다. 불러오는 중은 `loading`, 실패는 `error`(+`onRetry`), 더 있으면 `hasMore` + `onLoadMore`.",
1738
+ "displayName": "ChatHistory",
1739
+ "methods": [],
1740
+ "props": {
1741
+ "items": {
1742
+ "defaultValue": null,
1743
+ "description": "대화 목록. 보여 줄 순서대로(보통 최신순)",
1744
+ "name": "items",
1745
+ "parent": {
1746
+ "fileName": "src/components/chatHistory.tsx",
1747
+ "name": "ChatHistoryProps"
1748
+ },
1749
+ "declarations": [
1750
+ {
1751
+ "fileName": "src/components/chatHistory.tsx",
1752
+ "name": "ChatHistoryProps"
1753
+ }
1754
+ ],
1755
+ "required": true,
1756
+ "type": {
1757
+ "name": "ChatHistoryItem[]"
1758
+ }
1759
+ },
1760
+ "activeId": {
1761
+ "defaultValue": null,
1762
+ "description": "지금 열려 있는 대화",
1763
+ "name": "activeId",
1764
+ "parent": {
1765
+ "fileName": "src/components/chatHistory.tsx",
1766
+ "name": "ChatHistoryProps"
1767
+ },
1768
+ "declarations": [
1769
+ {
1770
+ "fileName": "src/components/chatHistory.tsx",
1771
+ "name": "ChatHistoryProps"
1772
+ }
1773
+ ],
1774
+ "required": false,
1775
+ "type": {
1776
+ "name": "string | null"
1777
+ }
1778
+ },
1779
+ "onSelect": {
1780
+ "defaultValue": null,
1781
+ "description": "대화를 골랐을 때",
1782
+ "name": "onSelect",
1783
+ "parent": {
1784
+ "fileName": "src/components/chatHistory.tsx",
1785
+ "name": "ChatHistoryProps"
1786
+ },
1787
+ "declarations": [
1788
+ {
1789
+ "fileName": "src/components/chatHistory.tsx",
1790
+ "name": "ChatHistoryProps"
1791
+ }
1792
+ ],
1793
+ "required": true,
1794
+ "type": {
1795
+ "name": "(id: string) => void"
1796
+ }
1797
+ },
1798
+ "onNew": {
1799
+ "defaultValue": null,
1800
+ "description": "새 대화 클릭. 주면 맨 위에 \"새 대화\" 버튼이 생긴다",
1801
+ "name": "onNew",
1802
+ "parent": {
1803
+ "fileName": "src/components/chatHistory.tsx",
1804
+ "name": "ChatHistoryProps"
1805
+ },
1806
+ "declarations": [
1807
+ {
1808
+ "fileName": "src/components/chatHistory.tsx",
1809
+ "name": "ChatHistoryProps"
1810
+ }
1811
+ ],
1812
+ "required": false,
1813
+ "type": {
1814
+ "name": "(() => void)"
1815
+ }
1816
+ },
1817
+ "onRename": {
1818
+ "defaultValue": null,
1819
+ "description": "이름을 바꿨을 때(그 자리 입력에서 Enter·포커스 이동으로 확정). 주면 항목 메뉴에 \"이름 변경\" 이 생긴다",
1820
+ "name": "onRename",
1821
+ "parent": {
1822
+ "fileName": "src/components/chatHistory.tsx",
1823
+ "name": "ChatHistoryProps"
1824
+ },
1825
+ "declarations": [
1826
+ {
1827
+ "fileName": "src/components/chatHistory.tsx",
1828
+ "name": "ChatHistoryProps"
1829
+ }
1830
+ ],
1831
+ "required": false,
1832
+ "type": {
1833
+ "name": "((id: string, title: string) => void)"
1834
+ }
1835
+ },
1836
+ "onDelete": {
1837
+ "defaultValue": null,
1838
+ "description": "항목 메뉴의 \"삭제\" 클릭. 확인 대화상자(AlertDialog)는 소비 앱이 여기서 연다",
1839
+ "name": "onDelete",
1840
+ "parent": {
1841
+ "fileName": "src/components/chatHistory.tsx",
1842
+ "name": "ChatHistoryProps"
1843
+ },
1844
+ "declarations": [
1845
+ {
1846
+ "fileName": "src/components/chatHistory.tsx",
1847
+ "name": "ChatHistoryProps"
1848
+ }
1849
+ ],
1850
+ "required": false,
1851
+ "type": {
1852
+ "name": "((id: string) => void)"
1853
+ }
1854
+ },
1855
+ "search": {
1856
+ "defaultValue": null,
1857
+ "description": "검색. 주면 검색 입력이 생긴다. 조회와 지연(debounce)은 소비 앱이 한다",
1858
+ "name": "search",
1859
+ "parent": {
1860
+ "fileName": "src/components/chatHistory.tsx",
1861
+ "name": "ChatHistoryProps"
1862
+ },
1863
+ "declarations": [
1864
+ {
1865
+ "fileName": "src/components/chatHistory.tsx",
1866
+ "name": "ChatHistoryProps"
1867
+ }
1868
+ ],
1869
+ "required": false,
1870
+ "type": {
1871
+ "name": "{ value: string; onChange: (value: string) => void; }"
1872
+ }
1873
+ },
1874
+ "loading": {
1875
+ "defaultValue": {
1876
+ "value": "false"
1877
+ },
1878
+ "description": "true 면 목록 자리에 Skeleton",
1879
+ "name": "loading",
1880
+ "parent": {
1881
+ "fileName": "src/components/chatHistory.tsx",
1882
+ "name": "ChatHistoryProps"
1883
+ },
1884
+ "declarations": [
1885
+ {
1886
+ "fileName": "src/components/chatHistory.tsx",
1887
+ "name": "ChatHistoryProps"
1888
+ }
1889
+ ],
1890
+ "required": false,
1891
+ "type": {
1892
+ "name": "boolean"
1893
+ }
1894
+ },
1895
+ "error": {
1896
+ "defaultValue": null,
1897
+ "description": "주면 목록 대신 오류 안내. `onRetry` 가 있으면 \"다시 시도\" 버튼",
1898
+ "name": "error",
1899
+ "parent": {
1900
+ "fileName": "src/components/chatHistory.tsx",
1901
+ "name": "ChatHistoryProps"
1902
+ },
1903
+ "declarations": [
1904
+ {
1905
+ "fileName": "src/components/chatHistory.tsx",
1906
+ "name": "ChatHistoryProps"
1907
+ }
1908
+ ],
1909
+ "required": false,
1910
+ "type": {
1911
+ "name": "ReactNode"
1912
+ }
1913
+ },
1914
+ "onRetry": {
1915
+ "defaultValue": null,
1916
+ "description": "오류 안내의 \"다시 시도\" 클릭",
1917
+ "name": "onRetry",
1918
+ "parent": {
1919
+ "fileName": "src/components/chatHistory.tsx",
1920
+ "name": "ChatHistoryProps"
1921
+ },
1922
+ "declarations": [
1923
+ {
1924
+ "fileName": "src/components/chatHistory.tsx",
1925
+ "name": "ChatHistoryProps"
1926
+ }
1927
+ ],
1928
+ "required": false,
1929
+ "type": {
1930
+ "name": "(() => void)"
1931
+ }
1932
+ },
1933
+ "hasMore": {
1934
+ "defaultValue": {
1935
+ "value": "false"
1936
+ },
1937
+ "description": "더 불러올 대화가 있는가. true 면 목록 끝에 닿을 때 `onLoadMore` 를 부른다",
1938
+ "name": "hasMore",
1939
+ "parent": {
1940
+ "fileName": "src/components/chatHistory.tsx",
1941
+ "name": "ChatHistoryProps"
1942
+ },
1943
+ "declarations": [
1944
+ {
1945
+ "fileName": "src/components/chatHistory.tsx",
1946
+ "name": "ChatHistoryProps"
1947
+ }
1948
+ ],
1949
+ "required": false,
1950
+ "type": {
1951
+ "name": "boolean"
1952
+ }
1953
+ },
1954
+ "onLoadMore": {
1955
+ "defaultValue": null,
1956
+ "description": "목록 끝에 닿았을 때",
1957
+ "name": "onLoadMore",
1958
+ "parent": {
1959
+ "fileName": "src/components/chatHistory.tsx",
1960
+ "name": "ChatHistoryProps"
1961
+ },
1962
+ "declarations": [
1963
+ {
1964
+ "fileName": "src/components/chatHistory.tsx",
1965
+ "name": "ChatHistoryProps"
1966
+ }
1967
+ ],
1968
+ "required": false,
1969
+ "type": {
1970
+ "name": "(() => void)"
1971
+ }
1972
+ },
1973
+ "now": {
1974
+ "defaultValue": null,
1975
+ "description": "날짜 묶음의 기준 시각. 기본은 처음 그릴 때의 현재 시각",
1976
+ "name": "now",
1977
+ "parent": {
1978
+ "fileName": "src/components/chatHistory.tsx",
1979
+ "name": "ChatHistoryProps"
1980
+ },
1981
+ "declarations": [
1982
+ {
1983
+ "fileName": "src/components/chatHistory.tsx",
1984
+ "name": "ChatHistoryProps"
1985
+ }
1986
+ ],
1987
+ "required": false,
1988
+ "type": {
1989
+ "name": "number | Date"
1990
+ }
1991
+ },
1992
+ "className": {
1993
+ "defaultValue": null,
1994
+ "description": "바깥 요소에 덧붙일 클래스",
1995
+ "name": "className",
1996
+ "parent": {
1997
+ "fileName": "src/components/chatHistory.tsx",
1998
+ "name": "ChatHistoryProps"
1999
+ },
2000
+ "declarations": [
2001
+ {
2002
+ "fileName": "src/components/chatHistory.tsx",
2003
+ "name": "ChatHistoryProps"
2004
+ }
2005
+ ],
2006
+ "required": false,
2007
+ "type": {
2008
+ "name": "string"
2009
+ }
2010
+ }
2011
+ },
2012
+ "exportName": "ChatHistory"
2013
+ },
2014
+ "stories": [
2015
+ {
2016
+ "id": "components-navigation-chathistory--default",
2017
+ "name": "Default — 날짜 묶음 · 검색 · 항목 메뉴",
2018
+ "snippet": "const Default = () => <Demo />;"
2019
+ },
2020
+ {
2021
+ "id": "components-navigation-chathistory--no-dates",
2022
+ "name": "NoDates — 날짜가 없으면 묶지 않는다",
2023
+ "snippet": "const NoDates = () => <Demo items={HISTORY.map(({ id, title }) => ({ id, title }))} />;"
2024
+ },
2025
+ {
2026
+ "id": "components-navigation-chathistory--loading",
2027
+ "name": "Loading — Skeleton",
2028
+ "snippet": "const Loading = () => <Demo loading />;"
2029
+ },
2030
+ {
2031
+ "id": "components-navigation-chathistory--empty",
2032
+ "name": "Empty — 기록 없음",
2033
+ "snippet": "const Empty = () => <Demo items={[]} />;"
2034
+ },
2035
+ {
2036
+ "id": "components-navigation-chathistory--with-error",
2037
+ "name": "Error — 불러오지 못함 + 다시 시도",
2038
+ "snippet": "const WithError = () => <Demo error=\"서버에 연결할 수 없습니다.\" onRetry={() => {}} />;"
2039
+ }
2040
+ ],
2041
+ "import": "import { ChatHistory } from '@t3q-ui/design-system';\nimport { HISTORY } from '../ChatPage/chatDemo';"
2042
+ },
2043
+ "components-data-display-chatmessage": {
2044
+ "id": "components-data-display-chatmessage",
2045
+ "name": "ChatMessage",
2046
+ "path": "./src/stories/ChatMessage/ChatMessage.stories.tsx",
2047
+ "jsDocTags": {},
2048
+ "description": "대화 메시지 하나. 사용자 메시지는 오른쪽 말풍선, AI 답변은 말풍선 없이 본문 폭 전체에 그리고 아래에 출처·행동 버튼·메타를 둔다.\n\n언제 쓰나: 챗 화면의 메시지 목록. 보통은 `ChatPage`·`ChatPanel` 패턴이 `messages` 배열로 이것을 그리므로 직접 쓸 일이 없다 — 패턴을 쓸 수 없는 자리(다른 화면 안에 대화 몇 줄을 보여 줄 때)에만 직접 쓴다.\n언제 안 쓰나: 알림·이벤트 목록(→ EventList), 댓글·활동 이력(→ 소비 앱), 화면 안내(→ Alert).\n대신/함께: AI 답변 본문은 `@t3q-ui/design-system/markdown` 의 `Markdown` 으로 넘긴다. 복사는 `copyText`(원문), 다시 생성·평가는 핸들러를 줄 때만 버튼이 생긴다. 생성이 실패하면 받은 본문은 두고 `error`(+`onRetry`)를 준다 — 토스트로만 알리지 않는다. 첫 글자 전에는 `pending`.",
2049
+ "reactDocgenTypescript": {
2050
+ "tags": {},
2051
+ "filePath": "src/components/chatMessage.tsx",
2052
+ "description": "대화 메시지 하나. 사용자 메시지는 오른쪽 말풍선, AI 답변은 말풍선 없이 본문 폭 전체에 그리고 아래에 출처·행동 버튼·메타를 둔다.\n\n언제 쓰나: 챗 화면의 메시지 목록. 보통은 `ChatPage`·`ChatPanel` 패턴이 `messages` 배열로 이것을 그리므로 직접 쓸 일이 없다 — 패턴을 쓸 수 없는 자리(다른 화면 안에 대화 몇 줄을 보여 줄 때)에만 직접 쓴다.\n언제 안 쓰나: 알림·이벤트 목록(→ EventList), 댓글·활동 이력(→ 소비 앱), 화면 안내(→ Alert).\n대신/함께: AI 답변 본문은 `@t3q-ui/design-system/markdown` 의 `Markdown` 으로 넘긴다. 복사는 `copyText`(원문), 다시 생성·평가는 핸들러를 줄 때만 버튼이 생긴다. 생성이 실패하면 받은 본문은 두고 `error`(+`onRetry`)를 준다 — 토스트로만 알리지 않는다. 첫 글자 전에는 `pending`.",
2053
+ "displayName": "ChatMessage",
2054
+ "methods": [],
2055
+ "props": {
2056
+ "from": {
2057
+ "defaultValue": null,
2058
+ "description": "보낸 사람. `user` = 오른쪽 말풍선, `assistant` = 말풍선 없이 본문 폭 전체. (`role` 이 아닌 것은 JSX 에서 ARIA role 과 헷갈리지 않게)",
2059
+ "name": "from",
2060
+ "parent": {
2061
+ "fileName": "src/components/chatMessage.tsx",
2062
+ "name": "ChatMessageProps"
2063
+ },
2064
+ "declarations": [
2065
+ {
2066
+ "fileName": "src/components/chatMessage.tsx",
2067
+ "name": "ChatMessageProps"
2068
+ }
2069
+ ],
2070
+ "required": true,
2071
+ "type": {
2072
+ "name": "enum",
2073
+ "raw": "\"user\" | \"assistant\"",
2074
+ "value": [
2075
+ {
2076
+ "value": "\"user\""
2077
+ },
2078
+ {
2079
+ "value": "\"assistant\""
2080
+ }
2081
+ ]
2082
+ }
2083
+ },
2084
+ "children": {
2085
+ "defaultValue": null,
2086
+ "description": "본문. AI 답변은 `<Markdown>`(`@t3q-ui/design-system/markdown`)으로 넘긴다",
2087
+ "name": "children",
2088
+ "parent": {
2089
+ "fileName": "src/components/chatMessage.tsx",
2090
+ "name": "ChatMessageProps"
2091
+ },
2092
+ "declarations": [
2093
+ {
2094
+ "fileName": "src/components/chatMessage.tsx",
2095
+ "name": "ChatMessageProps"
2096
+ }
2097
+ ],
2098
+ "required": false,
2099
+ "type": {
2100
+ "name": "ReactNode"
2101
+ }
2102
+ },
2103
+ "pending": {
2104
+ "defaultValue": {
2105
+ "value": "false"
2106
+ },
2107
+ "description": "첫 글자가 오기 전 대기 표시(스피너 + 글자). 본문 대신 그린다",
2108
+ "name": "pending",
2109
+ "parent": {
2110
+ "fileName": "src/components/chatMessage.tsx",
2111
+ "name": "ChatMessageProps"
2112
+ },
2113
+ "declarations": [
2114
+ {
2115
+ "fileName": "src/components/chatMessage.tsx",
2116
+ "name": "ChatMessageProps"
2117
+ }
2118
+ ],
2119
+ "required": false,
2120
+ "type": {
2121
+ "name": "boolean"
2122
+ }
2123
+ },
2124
+ "streaming": {
2125
+ "defaultValue": {
2126
+ "value": "false"
2127
+ },
2128
+ "description": "생성 중. 켜져 있으면 행동 버튼·출처·메타를 숨긴다(끝난 뒤에 나타난다)",
2129
+ "name": "streaming",
2130
+ "parent": {
2131
+ "fileName": "src/components/chatMessage.tsx",
2132
+ "name": "ChatMessageProps"
2133
+ },
2134
+ "declarations": [
2135
+ {
2136
+ "fileName": "src/components/chatMessage.tsx",
2137
+ "name": "ChatMessageProps"
2138
+ }
2139
+ ],
2140
+ "required": false,
2141
+ "type": {
2142
+ "name": "boolean"
2143
+ }
2144
+ },
2145
+ "error": {
2146
+ "defaultValue": null,
2147
+ "description": "오류 안내. 받은 본문은 그대로 두고 그 아래에 그린다",
2148
+ "name": "error",
2149
+ "parent": {
2150
+ "fileName": "src/components/chatMessage.tsx",
2151
+ "name": "ChatMessageProps"
2152
+ },
2153
+ "declarations": [
2154
+ {
2155
+ "fileName": "src/components/chatMessage.tsx",
2156
+ "name": "ChatMessageProps"
2157
+ }
2158
+ ],
2159
+ "required": false,
2160
+ "type": {
2161
+ "name": "ReactNode"
2162
+ }
2163
+ },
2164
+ "onRetry": {
2165
+ "defaultValue": null,
2166
+ "description": "오류 안내의 \"다시 시도\" 클릭. 주면 버튼이 붙는다",
2167
+ "name": "onRetry",
2168
+ "parent": {
2169
+ "fileName": "src/components/chatMessage.tsx",
2170
+ "name": "ChatMessageProps"
2171
+ },
2172
+ "declarations": [
2173
+ {
2174
+ "fileName": "src/components/chatMessage.tsx",
2175
+ "name": "ChatMessageProps"
2176
+ }
2177
+ ],
2178
+ "required": false,
2179
+ "type": {
2180
+ "name": "(() => void)"
2181
+ }
2182
+ },
2183
+ "attachments": {
2184
+ "defaultValue": null,
2185
+ "description": "첨부 파일 칩 (사용자 메시지 위)",
2186
+ "name": "attachments",
2187
+ "parent": {
2188
+ "fileName": "src/components/chatMessage.tsx",
2189
+ "name": "ChatMessageProps"
2190
+ },
2191
+ "declarations": [
2192
+ {
2193
+ "fileName": "src/components/chatMessage.tsx",
2194
+ "name": "ChatMessageProps"
2195
+ }
2196
+ ],
2197
+ "required": false,
2198
+ "type": {
2199
+ "name": "ChatAttachment[]"
2200
+ }
2201
+ },
2202
+ "sources": {
2203
+ "defaultValue": null,
2204
+ "description": "출처. 주면 답변 아래에 \"출처 N개\" 로 접혀 보인다",
2205
+ "name": "sources",
2206
+ "parent": {
2207
+ "fileName": "src/components/chatMessage.tsx",
2208
+ "name": "ChatMessageProps"
2209
+ },
2210
+ "declarations": [
2211
+ {
2212
+ "fileName": "src/components/chatMessage.tsx",
2213
+ "name": "ChatMessageProps"
2214
+ }
2215
+ ],
2216
+ "required": false,
2217
+ "type": {
2218
+ "name": "ChatSource[]"
2219
+ }
2220
+ },
2221
+ "meta": {
2222
+ "defaultValue": null,
2223
+ "description": "행동 버튼 줄 오른쪽의 보조 정보 (모델 이름·시각 등)",
2224
+ "name": "meta",
2225
+ "parent": {
2226
+ "fileName": "src/components/chatMessage.tsx",
2227
+ "name": "ChatMessageProps"
2228
+ },
2229
+ "declarations": [
2230
+ {
2231
+ "fileName": "src/components/chatMessage.tsx",
2232
+ "name": "ChatMessageProps"
2233
+ }
2234
+ ],
2235
+ "required": false,
2236
+ "type": {
2237
+ "name": "ReactNode"
2238
+ }
2239
+ },
2240
+ "actions": {
2241
+ "defaultValue": null,
2242
+ "description": "기본 행동(복사·다시 생성·평가) 뒤에 붙는 추가 버튼. `IconButton` 으로 넣는다",
2243
+ "name": "actions",
2244
+ "parent": {
2245
+ "fileName": "src/components/chatMessage.tsx",
2246
+ "name": "ChatMessageProps"
2247
+ },
2248
+ "declarations": [
2249
+ {
2250
+ "fileName": "src/components/chatMessage.tsx",
2251
+ "name": "ChatMessageProps"
2252
+ }
2253
+ ],
2254
+ "required": false,
2255
+ "type": {
2256
+ "name": "ReactNode"
2257
+ }
2258
+ },
2259
+ "copyText": {
2260
+ "defaultValue": null,
2261
+ "description": "복사할 원문. 주면 복사 버튼이 붙는다",
2262
+ "name": "copyText",
2263
+ "parent": {
2264
+ "fileName": "src/components/chatMessage.tsx",
2265
+ "name": "ChatMessageProps"
2266
+ },
2267
+ "declarations": [
2268
+ {
2269
+ "fileName": "src/components/chatMessage.tsx",
2270
+ "name": "ChatMessageProps"
2271
+ }
2272
+ ],
2273
+ "required": false,
2274
+ "type": {
2275
+ "name": "string"
2276
+ }
2277
+ },
2278
+ "onRegenerate": {
2279
+ "defaultValue": null,
2280
+ "description": "다시 생성 클릭. 주면 버튼이 붙는다",
2281
+ "name": "onRegenerate",
2282
+ "parent": {
2283
+ "fileName": "src/components/chatMessage.tsx",
2284
+ "name": "ChatMessageProps"
2285
+ },
2286
+ "declarations": [
2287
+ {
2288
+ "fileName": "src/components/chatMessage.tsx",
2289
+ "name": "ChatMessageProps"
2290
+ }
2291
+ ],
2292
+ "required": false,
2293
+ "type": {
2294
+ "name": "(() => void)"
2295
+ }
2296
+ },
2297
+ "onFeedback": {
2298
+ "defaultValue": null,
2299
+ "description": "평가(도움이 됐어요·안 됐어요) 클릭. 주면 두 버튼이 붙는다",
2300
+ "name": "onFeedback",
2301
+ "parent": {
2302
+ "fileName": "src/components/chatMessage.tsx",
2303
+ "name": "ChatMessageProps"
2304
+ },
2305
+ "declarations": [
2306
+ {
2307
+ "fileName": "src/components/chatMessage.tsx",
2308
+ "name": "ChatMessageProps"
2309
+ }
2310
+ ],
2311
+ "required": false,
2312
+ "type": {
2313
+ "name": "((value: \"up\" | \"down\") => void)"
2314
+ }
2315
+ },
2316
+ "feedback": {
2317
+ "defaultValue": null,
2318
+ "description": "지금 눌린 평가",
2319
+ "name": "feedback",
2320
+ "parent": {
2321
+ "fileName": "src/components/chatMessage.tsx",
2322
+ "name": "ChatMessageProps"
2323
+ },
2324
+ "declarations": [
2325
+ {
2326
+ "fileName": "src/components/chatMessage.tsx",
2327
+ "name": "ChatMessageProps"
2328
+ }
2329
+ ],
2330
+ "required": false,
2331
+ "type": {
2332
+ "name": "enum",
2333
+ "raw": "\"up\" | \"down\"",
2334
+ "value": [
2335
+ {
2336
+ "value": "\"up\""
2337
+ },
2338
+ {
2339
+ "value": "\"down\""
2340
+ }
2341
+ ]
2342
+ }
2343
+ },
2344
+ "headingLevel": {
2345
+ "defaultValue": {
2346
+ "value": "2"
2347
+ },
2348
+ "description": "보이지 않는 발신자 제목(\"내 메시지\"·\"AI 답변\")의 heading 레벨. 화면 제목이 h1 이면 2(기본), 패널 제목(h2) 아래면 3",
2349
+ "name": "headingLevel",
2350
+ "parent": {
2351
+ "fileName": "src/components/chatMessage.tsx",
2352
+ "name": "ChatMessageProps"
2353
+ },
2354
+ "declarations": [
2355
+ {
2356
+ "fileName": "src/components/chatMessage.tsx",
2357
+ "name": "ChatMessageProps"
2358
+ }
2359
+ ],
2360
+ "required": false,
2361
+ "type": {
2362
+ "name": "enum",
2363
+ "raw": "2 | 3 | 4",
2364
+ "value": [
2365
+ {
2366
+ "value": "2"
2367
+ },
2368
+ {
2369
+ "value": "3"
2370
+ },
2371
+ {
2372
+ "value": "4"
2373
+ }
2374
+ ]
2375
+ }
2376
+ },
2377
+ "className": {
2378
+ "defaultValue": null,
2379
+ "description": "바깥 요소에 덧붙일 클래스",
2380
+ "name": "className",
2381
+ "parent": {
2382
+ "fileName": "src/components/chatMessage.tsx",
2383
+ "name": "ChatMessageProps"
2384
+ },
2385
+ "declarations": [
2386
+ {
2387
+ "fileName": "src/components/chatMessage.tsx",
2388
+ "name": "ChatMessageProps"
2389
+ }
2390
+ ],
2391
+ "required": false,
2392
+ "type": {
2393
+ "name": "string"
2394
+ }
2395
+ }
2396
+ },
2397
+ "exportName": "ChatMessage"
2398
+ },
2399
+ "stories": [
2400
+ {
2401
+ "id": "components-data-display-chatmessage--conversation",
2402
+ "name": "Conversation — 사용자 말풍선 + AI 답변",
2403
+ "snippet": "const Conversation = () => (\n <>\n <ChatMessage from='user'>학습률 스케줄을 어떻게 골라야 할지 비교해서 알려 줘.</ChatMessage>\n <ChatMessage\n from='assistant'\n copyText={SHORT}\n onRegenerate={() => {}}\n onFeedback={() => {}}\n meta='gpt-oss-20b · 3분 전'\n >\n <Markdown>{SHORT}</Markdown>\n </ChatMessage>\n </>\n);"
2404
+ },
2405
+ {
2406
+ "id": "components-data-display-chatmessage--pending",
2407
+ "name": "Pending — 첫 글자 전 대기",
2408
+ "snippet": "const Pending = () => <ChatMessage from=\"assistant\" pending />;"
2409
+ },
2410
+ {
2411
+ "id": "components-data-display-chatmessage--streaming-answer",
2412
+ "name": "Streaming — 생성 중(행동 버튼 없음)",
2413
+ "snippet": "const StreamingAnswer = () => (\n <ChatMessage from='assistant' streaming copyText='x' onRegenerate={() => {}}>\n <Markdown>{ANSWER.split('## 비교')[0]}</Markdown>\n </ChatMessage>\n);"
2414
+ },
2415
+ {
2416
+ "id": "components-data-display-chatmessage--with-error",
2417
+ "name": "Error — 받은 내용 아래 오류 + 다시 시도",
2418
+ "snippet": "const WithError = () => (\n <ChatMessage\n from='assistant'\n error='응답이 중간에 끊겼습니다. 네트워크 상태를 확인해 주세요.'\n onRetry={() => {}}\n >\n <Markdown>{ANSWER.split('## 비교')[0]}</Markdown>\n </ChatMessage>\n);"
2419
+ },
2420
+ {
2421
+ "id": "components-data-display-chatmessage--with-attachments",
2422
+ "name": "Attachments — 사용자 메시지의 첨부 칩",
2423
+ "snippet": "const WithAttachments = () => (\n <ChatMessage\n from='user'\n attachments={[\n { id: 'f1', name: 'train-config.yaml' },\n { id: 'f2', name: '학습-로그-2026-11-18-아주-긴-파일-이름-예시.txt' },\n ]}\n >\n 이 설정으로 학습했을 때 문제가 될 부분이 있을까?\n </ChatMessage>\n);"
2424
+ },
2425
+ {
2426
+ "id": "components-data-display-chatmessage--with-sources",
2427
+ "name": "Sources — 출처 접힘 목록",
2428
+ "snippet": "const WithSources = () => (\n <ChatMessage\n from='assistant'\n copyText={SHORT}\n feedback='up'\n onFeedback={() => {}}\n sources={[\n {\n title: 'torch.optim — PyTorch 문서',\n href: 'https://pytorch.org/docs/stable/optim.html',\n description: '학습률 스케줄러 목록과 각 스케줄러의 인자 설명.',\n },\n { title: '학습 가이드 3장', description: '배치 크기별 권장 워밍업 스텝.' },\n ]}\n >\n <Markdown>{SHORT}</Markdown>\n </ChatMessage>\n);"
2429
+ }
2430
+ ],
2431
+ "import": "import { ChatMessage, Markdown } from '@t3q-ui/design-system';"
2432
+ },
2433
+ "patterns-chatpage": {
2434
+ "id": "patterns-chatpage",
2435
+ "name": "ChatPage",
2436
+ "path": "./src/stories/ChatPage/ChatPage.stories.tsx",
2437
+ "jsDocTags": {},
2438
+ "description": "챗 화면 패턴(전체 화면형). 얇은 헤더 → [대화 기록 | 대화 + 입력창 | 옆 패널] 을 배치하고 스크롤·빈 화면·생성 상태를 맡는다.\n\n언제 쓰나: AI와 대화하는 독립 화면(프롬프트 테스트·어시스턴트). 메시지·기록·전송·스트리밍은 소비 앱이 넘기고, 패턴은 배치와 자동 스크롤, 대기·오류 표시, 접근성 알림을 책임진다.\n언제 안 쓰나: 다른 화면 옆에 붙는 좁은 대화(→ ChatPanel), 댓글·활동 이력, 알림 목록(→ EventList).\n대신/함께: 부모가 높이를 가져야 한다 — 패턴은 그 높이를 채우고 메시지 목록만 스크롤한다(높이가 없으면 문서가 스크롤되고 입력창이 화면 아래에 붙는다). AI 답변 본문은 `@t3q-ui/design-system/markdown` 의 `Markdown` 으로 `content` 에 넘긴다. 생성 중에는 `streaming` 을 켜고 `onStop` 을 준다. 답변 실패는 항목의 `error`, 지난 대화를 불러오는 중·실패는 `loading`·`error`. 삭제 확인은 `history.onDelete` 에서 AlertDialog 로. 모델 선택은 제목 옆 `status` 에 `SelectTrigger appearance='none'` 으로, 파일 첨부와 켜고 끄는 옵션은 입력창의 `+` 메뉴(`onAttach`·`menu`)에, 파라미터 패널은 `sidePanel`.",
2439
+ "reactDocgenTypescript": {
2440
+ "tags": {},
2441
+ "filePath": "src/patterns/chatPage.tsx",
2442
+ "description": "챗 화면 패턴(전체 화면형). 얇은 헤더 → [대화 기록 | 대화 + 입력창 | 옆 패널] 을 배치하고 스크롤·빈 화면·생성 상태를 맡는다.\n\n언제 쓰나: AI와 대화하는 독립 화면(프롬프트 테스트·어시스턴트). 메시지·기록·전송·스트리밍은 소비 앱이 넘기고, 패턴은 배치와 자동 스크롤, 대기·오류 표시, 접근성 알림을 책임진다.\n언제 안 쓰나: 다른 화면 옆에 붙는 좁은 대화(→ ChatPanel), 댓글·활동 이력, 알림 목록(→ EventList).\n대신/함께: 부모가 높이를 가져야 한다 — 패턴은 그 높이를 채우고 메시지 목록만 스크롤한다(높이가 없으면 문서가 스크롤되고 입력창이 화면 아래에 붙는다). AI 답변 본문은 `@t3q-ui/design-system/markdown` 의 `Markdown` 으로 `content` 에 넘긴다. 생성 중에는 `streaming` 을 켜고 `onStop` 을 준다. 답변 실패는 항목의 `error`, 지난 대화를 불러오는 중·실패는 `loading`·`error`. 삭제 확인은 `history.onDelete` 에서 AlertDialog 로. 모델 선택은 제목 옆 `status` 에 `SelectTrigger appearance='none'` 으로, 파일 첨부와 켜고 끄는 옵션은 입력창의 `+` 메뉴(`onAttach`·`menu`)에, 파라미터 패널은 `sidePanel`.",
2443
+ "displayName": "ChatPage",
2444
+ "methods": [],
2445
+ "props": {
2446
+ "messages": {
2447
+ "defaultValue": null,
2448
+ "description": "대화 메시지. 시간순",
2449
+ "name": "messages",
2450
+ "declarations": [
2451
+ {
2452
+ "fileName": "src/patterns/chatShell.tsx",
2453
+ "name": "TypeLiteral"
2454
+ }
2455
+ ],
2456
+ "required": true,
2457
+ "type": {
2458
+ "name": "ChatMessageItem[]"
2459
+ }
2460
+ },
2461
+ "streaming": {
2462
+ "defaultValue": null,
2463
+ "description": "답변 생성 중. 마지막 답변이 생성 중인 메시지가 되고(행동 버튼 숨김), 마지막이 사용자 메시지이거나 답변 본문이 비어 있으면 대기 표시를 그린다. 전송 버튼은 중지 버튼으로 바뀐다",
2464
+ "name": "streaming",
2465
+ "declarations": [
2466
+ {
2467
+ "fileName": "src/patterns/chatShell.tsx",
2468
+ "name": "TypeLiteral"
2469
+ }
2470
+ ],
2471
+ "required": false,
2472
+ "type": {
2473
+ "name": "boolean"
2474
+ }
2475
+ },
2476
+ "onSend": {
2477
+ "defaultValue": null,
2478
+ "description": "전송. 추천 질문을 눌렀을 때도 불린다",
2479
+ "name": "onSend",
2480
+ "declarations": [
2481
+ {
2482
+ "fileName": "src/patterns/chatShell.tsx",
2483
+ "name": "TypeLiteral"
2484
+ }
2485
+ ],
2486
+ "required": true,
2487
+ "type": {
2488
+ "name": "(text: string) => void"
2489
+ }
2490
+ },
2491
+ "onStop": {
2492
+ "defaultValue": null,
2493
+ "description": "생성 중지. 주면 생성 중에 중지 버튼이 보인다",
2494
+ "name": "onStop",
2495
+ "declarations": [
2496
+ {
2497
+ "fileName": "src/patterns/chatShell.tsx",
2498
+ "name": "TypeLiteral"
2499
+ }
2500
+ ],
2501
+ "required": false,
2502
+ "type": {
2503
+ "name": "(() => void)"
2504
+ }
2505
+ },
2506
+ "onRegenerate": {
2507
+ "defaultValue": null,
2508
+ "description": "다시 생성. 주면 마지막 답변에 버튼이 붙고, 실패한 답변의 \"다시 시도\" 도 이것을 부른다",
2509
+ "name": "onRegenerate",
2510
+ "declarations": [
2511
+ {
2512
+ "fileName": "src/patterns/chatShell.tsx",
2513
+ "name": "TypeLiteral"
2514
+ }
2515
+ ],
2516
+ "required": false,
2517
+ "type": {
2518
+ "name": "((id: string) => void)"
2519
+ }
2520
+ },
2521
+ "onFeedback": {
2522
+ "defaultValue": null,
2523
+ "description": "평가. 주면 답변마다 \"도움이 됐어요·안 됐어요\" 버튼이 붙는다. 눌린 상태는 항목의 `feedback`",
2524
+ "name": "onFeedback",
2525
+ "declarations": [
2526
+ {
2527
+ "fileName": "src/patterns/chatShell.tsx",
2528
+ "name": "TypeLiteral"
2529
+ }
2530
+ ],
2531
+ "required": false,
2532
+ "type": {
2533
+ "name": "((id: string, value: \"up\" | \"down\") => void)"
2534
+ }
2535
+ },
2536
+ "welcome": {
2537
+ "defaultValue": null,
2538
+ "description": "빈 대화에서 보일 인사말·추천 질문",
2539
+ "name": "welcome",
2540
+ "declarations": [
2541
+ {
2542
+ "fileName": "src/patterns/chatShell.tsx",
2543
+ "name": "TypeLiteral"
2544
+ }
2545
+ ],
2546
+ "required": false,
2547
+ "type": {
2548
+ "name": "ChatWelcome"
2549
+ }
2550
+ },
2551
+ "note": {
2552
+ "defaultValue": null,
2553
+ "description": "입력창 아래 안내 한 줄 (예: \"AI 가 만든 답변은 틀릴 수 있습니다\")",
2554
+ "name": "note",
2555
+ "declarations": [
2556
+ {
2557
+ "fileName": "src/patterns/chatShell.tsx",
2558
+ "name": "TypeLiteral"
2559
+ }
2560
+ ],
2561
+ "required": false,
2562
+ "type": {
2563
+ "name": "ReactNode"
2564
+ }
2565
+ },
2566
+ "loading": {
2567
+ "defaultValue": null,
2568
+ "description": "true 면 메시지 자리에 로딩 표시 (지난 대화를 불러오는 중)",
2569
+ "name": "loading",
2570
+ "declarations": [
2571
+ {
2572
+ "fileName": "src/patterns/chatShell.tsx",
2573
+ "name": "TypeLiteral"
2574
+ }
2575
+ ],
2576
+ "required": false,
2577
+ "type": {
2578
+ "name": "boolean"
2579
+ }
2580
+ },
2581
+ "error": {
2582
+ "defaultValue": null,
2583
+ "description": "주면 메시지 대신 오류 상자 (지난 대화를 못 불러옴). `onRetry` 가 있으면 \"다시 시도\" 버튼",
2584
+ "name": "error",
2585
+ "declarations": [
2586
+ {
2587
+ "fileName": "src/patterns/chatShell.tsx",
2588
+ "name": "TypeLiteral"
2589
+ }
2590
+ ],
2591
+ "required": false,
2592
+ "type": {
2593
+ "name": "ReactNode"
2594
+ }
2595
+ },
2596
+ "onRetry": {
2597
+ "defaultValue": null,
2598
+ "description": "error 상태의 \"다시 시도\" 클릭",
2599
+ "name": "onRetry",
2600
+ "declarations": [
2601
+ {
2602
+ "fileName": "src/patterns/chatShell.tsx",
2603
+ "name": "TypeLiteral"
2604
+ }
2605
+ ],
2606
+ "required": false,
2607
+ "type": {
2608
+ "name": "(() => void)"
2609
+ }
2610
+ },
2611
+ "disabled": {
2612
+ "defaultValue": null,
2613
+ "description": "입력과 전송을 모두 잠근다 (예: 모델을 아직 고르지 않음). 이유는 `placeholder` 에 적는다",
2614
+ "name": "disabled",
2615
+ "parent": {
2616
+ "fileName": "src/components/chatComposer.tsx",
2617
+ "name": "ChatComposerProps"
2618
+ },
2619
+ "declarations": [
2620
+ {
2621
+ "fileName": "src/components/chatComposer.tsx",
2622
+ "name": "ChatComposerProps"
2623
+ }
2624
+ ],
2625
+ "required": false,
2626
+ "type": {
2627
+ "name": "boolean"
2628
+ }
2629
+ },
2630
+ "value": {
2631
+ "defaultValue": null,
2632
+ "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다",
2633
+ "name": "value",
2634
+ "parent": {
2635
+ "fileName": "src/components/chatComposer.tsx",
2636
+ "name": "ChatComposerProps"
2637
+ },
2638
+ "declarations": [
2639
+ {
2640
+ "fileName": "src/components/chatComposer.tsx",
2641
+ "name": "ChatComposerProps"
2642
+ }
2643
+ ],
2644
+ "required": false,
2645
+ "type": {
2646
+ "name": "string"
2647
+ }
2648
+ },
2649
+ "menu": {
2650
+ "defaultValue": null,
2651
+ "description": "`+` 메뉴에 넣을 항목(`DropdownMenuItem`). 주면 아래 줄 왼쪽에 `+` 버튼이 생기고, 누르면 메뉴가 열린다. `onAttach` 가 있으면 \"파일 첨부\" 가 맨 위에 놓인다",
2652
+ "name": "menu",
2653
+ "parent": {
2654
+ "fileName": "src/components/chatComposer.tsx",
2655
+ "name": "ChatComposerProps"
2656
+ },
2657
+ "declarations": [
2658
+ {
2659
+ "fileName": "src/components/chatComposer.tsx",
2660
+ "name": "ChatComposerProps"
2661
+ }
2662
+ ],
2663
+ "required": false,
2664
+ "type": {
2665
+ "name": "ReactNode"
2666
+ }
2667
+ },
2668
+ "multiple": {
2669
+ "defaultValue": null,
2670
+ "description": "한 번에 여러 파일을 고를 수 있는가. 기본 true",
2671
+ "name": "multiple",
2672
+ "parent": {
2673
+ "fileName": "src/components/chatComposer.tsx",
2674
+ "name": "ChatComposerProps"
2675
+ },
2676
+ "declarations": [
2677
+ {
2678
+ "fileName": "src/components/chatComposer.tsx",
2679
+ "name": "ChatComposerProps"
2680
+ }
2681
+ ],
2682
+ "required": false,
2683
+ "type": {
2684
+ "name": "boolean"
2685
+ }
2686
+ },
2687
+ "accept": {
2688
+ "defaultValue": null,
2689
+ "description": "고를 수 있는 파일 종류 (`<input accept>` 와 같은 형식)",
2690
+ "name": "accept",
2691
+ "parent": {
2692
+ "fileName": "src/components/chatComposer.tsx",
2693
+ "name": "ChatComposerProps"
2694
+ },
2695
+ "declarations": [
2696
+ {
2697
+ "fileName": "src/components/chatComposer.tsx",
2698
+ "name": "ChatComposerProps"
2699
+ }
2700
+ ],
2701
+ "required": false,
2702
+ "type": {
2703
+ "name": "string"
2704
+ }
2705
+ },
2706
+ "placeholder": {
2707
+ "defaultValue": null,
2708
+ "description": "입력창 안내 문구. 기본 \"메시지를 입력하세요\"",
2709
+ "name": "placeholder",
2710
+ "parent": {
2711
+ "fileName": "src/components/chatComposer.tsx",
2712
+ "name": "ChatComposerProps"
2713
+ },
2714
+ "declarations": [
2715
+ {
2716
+ "fileName": "src/components/chatComposer.tsx",
2717
+ "name": "ChatComposerProps"
2718
+ }
2719
+ ],
2720
+ "required": false,
2721
+ "type": {
2722
+ "name": "string"
2723
+ }
2724
+ },
2725
+ "onValueChange": {
2726
+ "defaultValue": null,
2727
+ "description": "입력 값이 바뀔 때. 전송 뒤에는 빈 문자열로 불린다",
2728
+ "name": "onValueChange",
2729
+ "parent": {
2730
+ "fileName": "src/components/chatComposer.tsx",
2731
+ "name": "ChatComposerProps"
2732
+ },
2733
+ "declarations": [
2734
+ {
2735
+ "fileName": "src/components/chatComposer.tsx",
2736
+ "name": "ChatComposerProps"
2737
+ }
2738
+ ],
2739
+ "required": false,
2740
+ "type": {
2741
+ "name": "((value: string) => void)"
2742
+ }
2743
+ },
2744
+ "maxRows": {
2745
+ "defaultValue": null,
2746
+ "description": "입력창이 자라는 최대 줄 수. 넘으면 안에서 스크롤. 기본 6",
2747
+ "name": "maxRows",
2748
+ "parent": {
2749
+ "fileName": "src/components/chatComposer.tsx",
2750
+ "name": "ChatComposerProps"
2751
+ },
2752
+ "declarations": [
2753
+ {
2754
+ "fileName": "src/components/chatComposer.tsx",
2755
+ "name": "ChatComposerProps"
2756
+ }
2757
+ ],
2758
+ "required": false,
2759
+ "type": {
2760
+ "name": "number"
2761
+ }
2762
+ },
2763
+ "elemBefore": {
2764
+ "defaultValue": null,
2765
+ "description": "아래 줄 왼쪽 자리 (모델 선택 등). `+` 버튼 오른쪽에 놓인다. 켜고 끄는 옵션은 여기보다 `menu` 에 넣는다",
2766
+ "name": "elemBefore",
2767
+ "parent": {
2768
+ "fileName": "src/components/chatComposer.tsx",
2769
+ "name": "ChatComposerProps"
2770
+ },
2771
+ "declarations": [
2772
+ {
2773
+ "fileName": "src/components/chatComposer.tsx",
2774
+ "name": "ChatComposerProps"
2775
+ }
2776
+ ],
2777
+ "required": false,
2778
+ "type": {
2779
+ "name": "ReactNode"
2780
+ }
2781
+ },
2782
+ "elemAfter": {
2783
+ "defaultValue": null,
2784
+ "description": "아래 줄 오른쪽 자리. 전송 버튼 왼쪽에 놓인다",
2785
+ "name": "elemAfter",
2786
+ "parent": {
2787
+ "fileName": "src/components/chatComposer.tsx",
2788
+ "name": "ChatComposerProps"
2789
+ },
2790
+ "declarations": [
2791
+ {
2792
+ "fileName": "src/components/chatComposer.tsx",
2793
+ "name": "ChatComposerProps"
2794
+ }
2795
+ ],
2796
+ "required": false,
2797
+ "type": {
2798
+ "name": "ReactNode"
2799
+ }
2800
+ },
2801
+ "attachments": {
2802
+ "defaultValue": null,
2803
+ "description": "붙여 둔 파일. 입력창 위에 칩으로 보인다. 올리기·실패 상태는 소비 앱이 정한다",
2804
+ "name": "attachments",
2805
+ "parent": {
2806
+ "fileName": "src/components/chatComposer.tsx",
2807
+ "name": "ChatComposerProps"
2808
+ },
2809
+ "declarations": [
2810
+ {
2811
+ "fileName": "src/components/chatComposer.tsx",
2812
+ "name": "ChatComposerProps"
2813
+ }
2814
+ ],
2815
+ "required": false,
2816
+ "type": {
2817
+ "name": "ChatAttachment[]"
2818
+ }
2819
+ },
2820
+ "onAttach": {
2821
+ "defaultValue": null,
2822
+ "description": "파일을 골랐을 때. 주면 `+` 메뉴에 \"파일 첨부\" 가 생긴다. 서버로 올리는 일은 소비 앱이 한다",
2823
+ "name": "onAttach",
2824
+ "parent": {
2825
+ "fileName": "src/components/chatComposer.tsx",
2826
+ "name": "ChatComposerProps"
2827
+ },
2828
+ "declarations": [
2829
+ {
2830
+ "fileName": "src/components/chatComposer.tsx",
2831
+ "name": "ChatComposerProps"
2832
+ }
2833
+ ],
2834
+ "required": false,
2835
+ "type": {
2836
+ "name": "((files: File[]) => void)"
2837
+ }
2838
+ },
2839
+ "onRemoveAttachment": {
2840
+ "defaultValue": null,
2841
+ "description": "칩의 지우기 클릭",
2842
+ "name": "onRemoveAttachment",
2843
+ "parent": {
2844
+ "fileName": "src/components/chatComposer.tsx",
2845
+ "name": "ChatComposerProps"
2846
+ },
2847
+ "declarations": [
2848
+ {
2849
+ "fileName": "src/components/chatComposer.tsx",
2850
+ "name": "ChatComposerProps"
2851
+ }
2852
+ ],
2853
+ "required": false,
2854
+ "type": {
2855
+ "name": "((id: string) => void)"
2856
+ }
2857
+ },
2858
+ "title": {
2859
+ "defaultValue": null,
2860
+ "description": "화면 제목 (h1)",
2861
+ "name": "title",
2862
+ "declarations": [
2863
+ {
2864
+ "fileName": "src/patterns/chatPage.tsx",
2865
+ "name": "TypeLiteral"
2866
+ }
2867
+ ],
2868
+ "required": true,
2869
+ "type": {
2870
+ "name": "string"
2871
+ }
2872
+ },
2873
+ "status": {
2874
+ "defaultValue": null,
2875
+ "description": "제목 바로 옆 자리 — 모델 선택(`SelectTrigger appearance='none'`)이나 상태 Badge",
2876
+ "name": "status",
2877
+ "declarations": [
2878
+ {
2879
+ "fileName": "src/patterns/chatPage.tsx",
2880
+ "name": "TypeLiteral"
2881
+ }
2882
+ ],
2883
+ "required": false,
2884
+ "type": {
2885
+ "name": "ReactNode"
2886
+ }
2887
+ },
2888
+ "titleRight": {
2889
+ "defaultValue": null,
2890
+ "description": "헤더 오른쪽 자리. `actions` 왼쪽에 놓인다",
2891
+ "name": "titleRight",
2892
+ "declarations": [
2893
+ {
2894
+ "fileName": "src/patterns/chatPage.tsx",
2895
+ "name": "TypeLiteral"
2896
+ }
2897
+ ],
2898
+ "required": false,
2899
+ "type": {
2900
+ "name": "ReactNode"
2901
+ }
2902
+ },
2903
+ "actions": {
2904
+ "defaultValue": null,
2905
+ "description": "헤더 오른쪽 끝의 행동 버튼. 버튼 사이 8px 로 그린다",
2906
+ "name": "actions",
2907
+ "declarations": [
2908
+ {
2909
+ "fileName": "src/patterns/chatPage.tsx",
2910
+ "name": "TypeLiteral"
2911
+ }
2912
+ ],
2913
+ "required": false,
2914
+ "type": {
2915
+ "name": "ReactNode"
2916
+ }
2917
+ },
2918
+ "history": {
2919
+ "defaultValue": null,
2920
+ "description": "왼쪽 대화 기록. 주면 기록 바(280px)와 헤더의 접기 버튼(제목·`status` 오른쪽)이 생긴다. 화면이 좁으면 Drawer 로 열린다",
2921
+ "name": "history",
2922
+ "declarations": [
2923
+ {
2924
+ "fileName": "src/patterns/chatPage.tsx",
2925
+ "name": "TypeLiteral"
2926
+ }
2927
+ ],
2928
+ "required": false,
2929
+ "type": {
2930
+ "name": "Omit<ChatHistoryProps, \"className\">"
2931
+ }
2932
+ },
2933
+ "sidePanel": {
2934
+ "defaultValue": null,
2935
+ "description": "오른쪽 패널. 열 때 객체를 주고 닫으면 undefined 로. 화면이 좁으면 Drawer 로 열린다",
2936
+ "name": "sidePanel",
2937
+ "declarations": [
2938
+ {
2939
+ "fileName": "src/patterns/chatPage.tsx",
2940
+ "name": "TypeLiteral"
2941
+ }
2942
+ ],
2943
+ "required": false,
2944
+ "type": {
2945
+ "name": "ChatPageSidePanel"
2946
+ }
2947
+ }
2948
+ },
2949
+ "exportName": "ChatPage"
2950
+ },
2951
+ "stories": [
2952
+ {
2953
+ "id": "patterns-chatpage--default",
2954
+ "name": "Default — 기록 + 대화 + 입력창",
2955
+ "snippet": "const Default = () => <Frame>\n <ChatPageDemo />\n</Frame>;"
2956
+ },
2957
+ {
2958
+ "id": "patterns-chatpage--welcome",
2959
+ "name": "Welcome — 빈 대화(인사말·추천 질문)",
2960
+ "error": {
2961
+ "name": "SyntaxError",
2962
+ "message": "Expected render to be an arrow function or function expression\n 269 | name: 'Welcome — 빈 대화(인사말·추천 질문)',\n 270 | args: { initial: [] },\n> 271 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 272 | }\n 273 |\n 274 | export const Streaming: Story = {"
2963
+ }
2964
+ },
2965
+ {
2966
+ "id": "patterns-chatpage--streaming",
2967
+ "name": "Streaming — 생성 중(중지 버튼, 행동 버튼 숨김)",
2968
+ "error": {
2969
+ "name": "SyntaxError",
2970
+ "message": "Expected render to be an arrow function or function expression\n 281 | streaming: true,\n 282 | },\n> 283 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 284 | }\n 285 |\n 286 | export const Waiting: Story = {"
2971
+ }
2972
+ },
2973
+ {
2974
+ "id": "patterns-chatpage--waiting",
2975
+ "name": "Waiting — 첫 글자 전 대기 표시",
2976
+ "error": {
2977
+ "name": "SyntaxError",
2978
+ "message": "Expected render to be an arrow function or function expression\n 287 | name: 'Waiting — 첫 글자 전 대기 표시',\n 288 | args: { messages: toItems([CONVERSATION[0]]), streaming: true },\n> 289 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 290 | }\n 291 |\n 292 | export const AnswerError: Story = {"
2979
+ }
2980
+ },
2981
+ {
2982
+ "id": "patterns-chatpage--answer-error",
2983
+ "name": "AnswerError — 답변 실패 + 다시 시도",
2984
+ "error": {
2985
+ "name": "SyntaxError",
2986
+ "message": "Expected render to be an arrow function or function expression\n 304 | ],\n 305 | },\n> 306 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 307 | }\n 308 |\n 309 | export const AttachmentsAndSources: Story = {"
2987
+ }
2988
+ },
2989
+ {
2990
+ "id": "patterns-chatpage--attachments-and-sources",
2991
+ "name": "AttachmentsAndSources — 첨부 칩과 출처",
2992
+ "error": {
2993
+ "name": "SyntaxError",
2994
+ "message": "Expected render to be an arrow function or function expression\n 332 | ]),\n 333 | },\n> 334 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 335 | }\n 336 |\n 337 | export const Loading: Story = {"
2995
+ }
2996
+ },
2997
+ {
2998
+ "id": "patterns-chatpage--loading",
2999
+ "name": "Loading — 지난 대화를 불러오는 중",
3000
+ "error": {
3001
+ "name": "SyntaxError",
3002
+ "message": "Expected render to be an arrow function or function expression\n 338 | name: 'Loading — 지난 대화를 불러오는 중',\n 339 | args: { loading: true },\n> 340 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 341 | }\n 342 |\n 343 | export const LoadError: Story = {"
3003
+ }
3004
+ },
3005
+ {
3006
+ "id": "patterns-chatpage--load-error",
3007
+ "name": "LoadError — 지난 대화를 못 불러옴",
3008
+ "error": {
3009
+ "name": "SyntaxError",
3010
+ "message": "Expected render to be an arrow function or function expression\n 344 | name: 'LoadError — 지난 대화를 못 불러옴',\n 345 | args: { error: '서버에 연결할 수 없습니다. 잠시 후 다시 시도해 주세요.', onRetry: () => {} },\n> 346 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 347 | }\n 348 |\n 349 | export const HistoryLoading: Story = {"
3011
+ }
3012
+ },
3013
+ {
3014
+ "id": "patterns-chatpage--history-loading",
3015
+ "name": "HistoryLoading — 기록 Skeleton",
3016
+ "error": {
3017
+ "name": "SyntaxError",
3018
+ "message": "Expected render to be an arrow function or function expression\n 350 | name: 'HistoryLoading — 기록 Skeleton',\n 351 | args: { history: { items: [], loading: true, onSelect: () => {}, onNew: () => {} } },\n> 352 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 353 | }\n 354 |\n 355 | export const HistoryEmpty: Story = {"
3019
+ }
3020
+ },
3021
+ {
3022
+ "id": "patterns-chatpage--history-empty",
3023
+ "name": "HistoryEmpty — 기록 없음",
3024
+ "error": {
3025
+ "name": "SyntaxError",
3026
+ "message": "Expected render to be an arrow function or function expression\n 356 | name: 'HistoryEmpty — 기록 없음',\n 357 | args: { initial: [], history: { items: [], onSelect: () => {}, onNew: () => {} } },\n> 358 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 359 | }\n 360 |\n 361 | export const HistoryError: Story = {"
3027
+ }
3028
+ },
3029
+ {
3030
+ "id": "patterns-chatpage--history-error",
3031
+ "name": "HistoryError — 기록을 못 불러옴",
3032
+ "error": {
3033
+ "name": "SyntaxError",
3034
+ "message": "Expected render to be an arrow function or function expression\n 370 | },\n 371 | },\n> 372 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 373 | }\n 374 |\n 375 | export const WithSidePanel: Story = {"
3035
+ }
3036
+ },
3037
+ {
3038
+ "id": "patterns-chatpage--with-side-panel",
3039
+ "name": "WithSidePanel — 오른쪽 패널",
3040
+ "error": {
3041
+ "name": "SyntaxError",
3042
+ "message": "Expected render to be an arrow function or function expression\n 376 | name: 'WithSidePanel — 오른쪽 패널',\n 377 | args: { panelOpen: true },\n> 378 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 379 | }\n 380 |\n 381 | export const Narrow: Story = {"
3043
+ }
3044
+ },
3045
+ {
3046
+ "id": "patterns-chatpage--narrow",
3047
+ "name": "Narrow — 좁은 폭(기록·패널이 Drawer 로)",
3048
+ "snippet": "const Narrow = () => <Frame>\n <div className='mx-auto h-full w-[800px] border-x border-sys-divider-subtler'>\n <ChatPageDemo />\n </div>\n</Frame>;"
3049
+ },
3050
+ {
3051
+ "id": "patterns-chatpage--no-history",
3052
+ "name": "NoHistory — 기록 바 없이",
3053
+ "error": {
3054
+ "name": "SyntaxError",
3055
+ "message": "Expected render to be an arrow function or function expression\n 393 | name: 'NoHistory — 기록 바 없이',\n 394 | args: { noHistory: true },\n> 395 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 396 | }\n 397 |\n 398 | export const NoParentHeight: Story = {"
3056
+ }
3057
+ },
3058
+ {
3059
+ "id": "patterns-chatpage--no-parent-height",
3060
+ "name": "NoParentHeight — 부모 높이가 없을 때(문서 스크롤, 입력창은 아래에 붙음)",
3061
+ "snippet": "const NoParentHeight = () => <ChatPageDemo\n noHistory\n initial={[\n ...CONVERSATION,\n { id: 'm3', role: 'user', text: '예시를 하나 더 보여 줘.' },\n { id: 'm4', role: 'assistant', text: ANSWER },\n ]} />;"
3062
+ },
3063
+ {
3064
+ "id": "patterns-chatpage--long-answer",
3065
+ "name": "LongAnswer — 긴 답변 스트리밍(약 2만 자, 버벅임 확인)",
3066
+ "error": {
3067
+ "name": "SyntaxError",
3068
+ "message": "Expected render to be an arrow function or function expression\n 413 | name: 'LongAnswer — 긴 답변 스트리밍(약 2만 자, 버벅임 확인)',\n 414 | args: { answer: LONG_ANSWER, initial: [] },\n> 415 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 416 | }\n 417 |\n 418 | export const HeaderCompare: Story = {"
3069
+ }
3070
+ },
3071
+ {
3072
+ "id": "patterns-chatpage--header-compare",
3073
+ "name": "HeaderCompare — 얇은 헤더 vs PageHeader compact",
3074
+ "snippet": "const HeaderCompare = () => <div className='flex flex-col'>\n <div className='px-[16px] py-[8px] text-small-regular-h text-sys-text-subtle'>위: PageHeader compact(기존 패턴의 헤더) · 아래: ChatPage 의 얇은 헤더\n </div>\n <PageHeader\n compact\n title='AI Chat'\n status={<ModelSelect />}\n actions={\n <Button variant='secondaryLink'>\n <SlidersHorizontal size={16} aria-hidden />\n 파라미터\n </Button>\n } />\n <Frame height='560px'>\n <ChatPageDemo />\n </Frame>\n</div>;"
3075
+ }
3076
+ ],
3077
+ "import": "import {\n Button,\n ChatPage,\n DropdownMenuItem,\n PageHeader,\n ParameterTable,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@t3q-ui/design-system';\nimport { Check, SlidersHorizontal } from 'lucide-react';\nimport { CONVERSATION, ANSWER } from './chatDemo';"
3078
+ },
3079
+ "patterns-chatpanel": {
3080
+ "id": "patterns-chatpanel",
3081
+ "name": "ChatPanel",
3082
+ "path": "./src/stories/ChatPanel/ChatPanel.stories.tsx",
3083
+ "jsDocTags": {},
3084
+ "description": "챗 화면 패턴(옆 패널형). 다른 화면 옆의 좁은 칸이나 Drawer 안에서 헤더(선택) → 대화 → 입력창을 배치한다.\n\n언제 쓰나: 본 화면을 보면서 AI에게 묻는 보조 대화(코드 도우미·문서 도우미). 놓인 자리의 폭과 높이를 그대로 채운다.\n언제 안 쓰나: 대화가 화면의 주 내용이고 지난 대화 기록이 필요한 화면(→ ChatPage).\n대신/함께: 부모가 높이를 가져야 한다(옆 칸은 `h-full`, Drawer 는 `DrawerContent` 안에 그대로). Drawer 안에서는 `title`·`onClose` 를 주지 않는다 — Drawer 가 제목과 닫기 버튼을 그린다. 그 밖의 props(`messages`·`streaming`·`onSend`·`onStop`·`welcome`·`note` …)는 ChatPage 와 같다. 빈 대화에서도 입력창은 아래에 있고 인사말·추천 질문이 메시지 자리 가운데에 놓인다.",
3085
+ "reactDocgenTypescript": {
3086
+ "tags": {},
3087
+ "filePath": "src/patterns/chatPanel.tsx",
3088
+ "description": "챗 화면 패턴(옆 패널형). 다른 화면 옆의 좁은 칸이나 Drawer 안에서 헤더(선택) → 대화 → 입력창을 배치한다.\n\n언제 쓰나: 본 화면을 보면서 AI에게 묻는 보조 대화(코드 도우미·문서 도우미). 놓인 자리의 폭과 높이를 그대로 채운다.\n언제 안 쓰나: 대화가 화면의 주 내용이고 지난 대화 기록이 필요한 화면(→ ChatPage).\n대신/함께: 부모가 높이를 가져야 한다(옆 칸은 `h-full`, Drawer 는 `DrawerContent` 안에 그대로). Drawer 안에서는 `title`·`onClose` 를 주지 않는다 — Drawer 가 제목과 닫기 버튼을 그린다. 그 밖의 props(`messages`·`streaming`·`onSend`·`onStop`·`welcome`·`note` …)는 ChatPage 와 같다. 빈 대화에서도 입력창은 아래에 있고 인사말·추천 질문이 메시지 자리 가운데에 놓인다.",
3089
+ "displayName": "ChatPanel",
3090
+ "methods": [],
3091
+ "props": {
3092
+ "messages": {
3093
+ "defaultValue": null,
3094
+ "description": "대화 메시지. 시간순",
3095
+ "name": "messages",
3096
+ "declarations": [
3097
+ {
3098
+ "fileName": "src/patterns/chatShell.tsx",
3099
+ "name": "TypeLiteral"
3100
+ }
3101
+ ],
3102
+ "required": true,
3103
+ "type": {
3104
+ "name": "ChatMessageItem[]"
3105
+ }
3106
+ },
3107
+ "streaming": {
3108
+ "defaultValue": null,
3109
+ "description": "답변 생성 중. 마지막 답변이 생성 중인 메시지가 되고(행동 버튼 숨김), 마지막이 사용자 메시지이거나 답변 본문이 비어 있으면 대기 표시를 그린다. 전송 버튼은 중지 버튼으로 바뀐다",
3110
+ "name": "streaming",
3111
+ "declarations": [
3112
+ {
3113
+ "fileName": "src/patterns/chatShell.tsx",
3114
+ "name": "TypeLiteral"
3115
+ }
3116
+ ],
3117
+ "required": false,
3118
+ "type": {
3119
+ "name": "boolean"
3120
+ }
3121
+ },
3122
+ "onSend": {
3123
+ "defaultValue": null,
3124
+ "description": "전송. 추천 질문을 눌렀을 때도 불린다",
3125
+ "name": "onSend",
3126
+ "declarations": [
3127
+ {
3128
+ "fileName": "src/patterns/chatShell.tsx",
3129
+ "name": "TypeLiteral"
3130
+ }
3131
+ ],
3132
+ "required": true,
3133
+ "type": {
3134
+ "name": "(text: string) => void"
3135
+ }
3136
+ },
3137
+ "onStop": {
3138
+ "defaultValue": null,
3139
+ "description": "생성 중지. 주면 생성 중에 중지 버튼이 보인다",
3140
+ "name": "onStop",
3141
+ "declarations": [
3142
+ {
3143
+ "fileName": "src/patterns/chatShell.tsx",
3144
+ "name": "TypeLiteral"
3145
+ }
3146
+ ],
3147
+ "required": false,
3148
+ "type": {
3149
+ "name": "(() => void)"
3150
+ }
3151
+ },
3152
+ "onRegenerate": {
3153
+ "defaultValue": null,
3154
+ "description": "다시 생성. 주면 마지막 답변에 버튼이 붙고, 실패한 답변의 \"다시 시도\" 도 이것을 부른다",
3155
+ "name": "onRegenerate",
3156
+ "declarations": [
3157
+ {
3158
+ "fileName": "src/patterns/chatShell.tsx",
3159
+ "name": "TypeLiteral"
3160
+ }
3161
+ ],
3162
+ "required": false,
3163
+ "type": {
3164
+ "name": "((id: string) => void)"
3165
+ }
3166
+ },
3167
+ "onFeedback": {
3168
+ "defaultValue": null,
3169
+ "description": "평가. 주면 답변마다 \"도움이 됐어요·안 됐어요\" 버튼이 붙는다. 눌린 상태는 항목의 `feedback`",
3170
+ "name": "onFeedback",
3171
+ "declarations": [
3172
+ {
3173
+ "fileName": "src/patterns/chatShell.tsx",
3174
+ "name": "TypeLiteral"
3175
+ }
3176
+ ],
3177
+ "required": false,
3178
+ "type": {
3179
+ "name": "((id: string, value: \"up\" | \"down\") => void)"
3180
+ }
3181
+ },
3182
+ "welcome": {
3183
+ "defaultValue": null,
3184
+ "description": "빈 대화에서 보일 인사말·추천 질문",
3185
+ "name": "welcome",
3186
+ "declarations": [
3187
+ {
3188
+ "fileName": "src/patterns/chatShell.tsx",
3189
+ "name": "TypeLiteral"
3190
+ }
3191
+ ],
3192
+ "required": false,
3193
+ "type": {
3194
+ "name": "ChatWelcome"
3195
+ }
3196
+ },
3197
+ "note": {
3198
+ "defaultValue": null,
3199
+ "description": "입력창 아래 안내 한 줄 (예: \"AI 가 만든 답변은 틀릴 수 있습니다\")",
3200
+ "name": "note",
3201
+ "declarations": [
3202
+ {
3203
+ "fileName": "src/patterns/chatShell.tsx",
3204
+ "name": "TypeLiteral"
3205
+ }
3206
+ ],
3207
+ "required": false,
3208
+ "type": {
3209
+ "name": "ReactNode"
3210
+ }
3211
+ },
3212
+ "loading": {
3213
+ "defaultValue": null,
3214
+ "description": "true 면 메시지 자리에 로딩 표시 (지난 대화를 불러오는 중)",
3215
+ "name": "loading",
3216
+ "declarations": [
3217
+ {
3218
+ "fileName": "src/patterns/chatShell.tsx",
3219
+ "name": "TypeLiteral"
3220
+ }
3221
+ ],
3222
+ "required": false,
3223
+ "type": {
3224
+ "name": "boolean"
3225
+ }
3226
+ },
3227
+ "error": {
3228
+ "defaultValue": null,
3229
+ "description": "주면 메시지 대신 오류 상자 (지난 대화를 못 불러옴). `onRetry` 가 있으면 \"다시 시도\" 버튼",
3230
+ "name": "error",
3231
+ "declarations": [
3232
+ {
3233
+ "fileName": "src/patterns/chatShell.tsx",
3234
+ "name": "TypeLiteral"
3235
+ }
3236
+ ],
3237
+ "required": false,
3238
+ "type": {
3239
+ "name": "ReactNode"
3240
+ }
3241
+ },
3242
+ "onRetry": {
3243
+ "defaultValue": null,
3244
+ "description": "error 상태의 \"다시 시도\" 클릭",
3245
+ "name": "onRetry",
3246
+ "declarations": [
3247
+ {
3248
+ "fileName": "src/patterns/chatShell.tsx",
3249
+ "name": "TypeLiteral"
3250
+ }
3251
+ ],
3252
+ "required": false,
3253
+ "type": {
3254
+ "name": "(() => void)"
3255
+ }
3256
+ },
3257
+ "disabled": {
3258
+ "defaultValue": null,
3259
+ "description": "입력과 전송을 모두 잠근다 (예: 모델을 아직 고르지 않음). 이유는 `placeholder` 에 적는다",
3260
+ "name": "disabled",
3261
+ "parent": {
3262
+ "fileName": "src/components/chatComposer.tsx",
3263
+ "name": "ChatComposerProps"
3264
+ },
3265
+ "declarations": [
3266
+ {
3267
+ "fileName": "src/components/chatComposer.tsx",
3268
+ "name": "ChatComposerProps"
3269
+ }
3270
+ ],
3271
+ "required": false,
3272
+ "type": {
3273
+ "name": "boolean"
3274
+ }
3275
+ },
3276
+ "value": {
3277
+ "defaultValue": null,
3278
+ "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다",
3279
+ "name": "value",
3280
+ "parent": {
3281
+ "fileName": "src/components/chatComposer.tsx",
3282
+ "name": "ChatComposerProps"
3283
+ },
3284
+ "declarations": [
3285
+ {
3286
+ "fileName": "src/components/chatComposer.tsx",
3287
+ "name": "ChatComposerProps"
3288
+ }
3289
+ ],
3290
+ "required": false,
3291
+ "type": {
3292
+ "name": "string"
3293
+ }
3294
+ },
3295
+ "menu": {
3296
+ "defaultValue": null,
3297
+ "description": "`+` 메뉴에 넣을 항목(`DropdownMenuItem`). 주면 아래 줄 왼쪽에 `+` 버튼이 생기고, 누르면 메뉴가 열린다. `onAttach` 가 있으면 \"파일 첨부\" 가 맨 위에 놓인다",
3298
+ "name": "menu",
3299
+ "parent": {
3300
+ "fileName": "src/components/chatComposer.tsx",
3301
+ "name": "ChatComposerProps"
3302
+ },
3303
+ "declarations": [
3304
+ {
3305
+ "fileName": "src/components/chatComposer.tsx",
3306
+ "name": "ChatComposerProps"
3307
+ }
3308
+ ],
3309
+ "required": false,
3310
+ "type": {
3311
+ "name": "ReactNode"
3312
+ }
3313
+ },
3314
+ "multiple": {
3315
+ "defaultValue": null,
3316
+ "description": "한 번에 여러 파일을 고를 수 있는가. 기본 true",
3317
+ "name": "multiple",
3318
+ "parent": {
3319
+ "fileName": "src/components/chatComposer.tsx",
3320
+ "name": "ChatComposerProps"
3321
+ },
3322
+ "declarations": [
3323
+ {
3324
+ "fileName": "src/components/chatComposer.tsx",
3325
+ "name": "ChatComposerProps"
3326
+ }
3327
+ ],
3328
+ "required": false,
3329
+ "type": {
3330
+ "name": "boolean"
3331
+ }
3332
+ },
3333
+ "accept": {
3334
+ "defaultValue": null,
3335
+ "description": "고를 수 있는 파일 종류 (`<input accept>` 와 같은 형식)",
3336
+ "name": "accept",
3337
+ "parent": {
3338
+ "fileName": "src/components/chatComposer.tsx",
3339
+ "name": "ChatComposerProps"
3340
+ },
3341
+ "declarations": [
3342
+ {
3343
+ "fileName": "src/components/chatComposer.tsx",
3344
+ "name": "ChatComposerProps"
3345
+ }
3346
+ ],
3347
+ "required": false,
3348
+ "type": {
3349
+ "name": "string"
3350
+ }
3351
+ },
3352
+ "placeholder": {
3353
+ "defaultValue": null,
3354
+ "description": "입력창 안내 문구. 기본 \"메시지를 입력하세요\"",
3355
+ "name": "placeholder",
3356
+ "parent": {
3357
+ "fileName": "src/components/chatComposer.tsx",
3358
+ "name": "ChatComposerProps"
3359
+ },
3360
+ "declarations": [
3361
+ {
3362
+ "fileName": "src/components/chatComposer.tsx",
3363
+ "name": "ChatComposerProps"
3364
+ }
3365
+ ],
3366
+ "required": false,
3367
+ "type": {
3368
+ "name": "string"
3369
+ }
3370
+ },
3371
+ "onValueChange": {
3372
+ "defaultValue": null,
3373
+ "description": "입력 값이 바뀔 때. 전송 뒤에는 빈 문자열로 불린다",
3374
+ "name": "onValueChange",
3375
+ "parent": {
3376
+ "fileName": "src/components/chatComposer.tsx",
3377
+ "name": "ChatComposerProps"
3378
+ },
3379
+ "declarations": [
3380
+ {
3381
+ "fileName": "src/components/chatComposer.tsx",
3382
+ "name": "ChatComposerProps"
3383
+ }
3384
+ ],
3385
+ "required": false,
3386
+ "type": {
3387
+ "name": "((value: string) => void)"
3388
+ }
3389
+ },
3390
+ "maxRows": {
3391
+ "defaultValue": null,
3392
+ "description": "입력창이 자라는 최대 줄 수. 넘으면 안에서 스크롤. 기본 6",
3393
+ "name": "maxRows",
3394
+ "parent": {
3395
+ "fileName": "src/components/chatComposer.tsx",
3396
+ "name": "ChatComposerProps"
3397
+ },
3398
+ "declarations": [
3399
+ {
3400
+ "fileName": "src/components/chatComposer.tsx",
3401
+ "name": "ChatComposerProps"
3402
+ }
3403
+ ],
3404
+ "required": false,
3405
+ "type": {
3406
+ "name": "number"
3407
+ }
3408
+ },
3409
+ "elemBefore": {
3410
+ "defaultValue": null,
3411
+ "description": "아래 줄 왼쪽 자리 (모델 선택 등). `+` 버튼 오른쪽에 놓인다. 켜고 끄는 옵션은 여기보다 `menu` 에 넣는다",
3412
+ "name": "elemBefore",
3413
+ "parent": {
3414
+ "fileName": "src/components/chatComposer.tsx",
3415
+ "name": "ChatComposerProps"
3416
+ },
3417
+ "declarations": [
3418
+ {
3419
+ "fileName": "src/components/chatComposer.tsx",
3420
+ "name": "ChatComposerProps"
3421
+ }
3422
+ ],
3423
+ "required": false,
3424
+ "type": {
3425
+ "name": "ReactNode"
3426
+ }
3427
+ },
3428
+ "elemAfter": {
3429
+ "defaultValue": null,
3430
+ "description": "아래 줄 오른쪽 자리. 전송 버튼 왼쪽에 놓인다",
3431
+ "name": "elemAfter",
3432
+ "parent": {
3433
+ "fileName": "src/components/chatComposer.tsx",
3434
+ "name": "ChatComposerProps"
3435
+ },
3436
+ "declarations": [
3437
+ {
3438
+ "fileName": "src/components/chatComposer.tsx",
3439
+ "name": "ChatComposerProps"
3440
+ }
3441
+ ],
3442
+ "required": false,
3443
+ "type": {
3444
+ "name": "ReactNode"
3445
+ }
3446
+ },
3447
+ "attachments": {
3448
+ "defaultValue": null,
3449
+ "description": "붙여 둔 파일. 입력창 위에 칩으로 보인다. 올리기·실패 상태는 소비 앱이 정한다",
3450
+ "name": "attachments",
3451
+ "parent": {
3452
+ "fileName": "src/components/chatComposer.tsx",
3453
+ "name": "ChatComposerProps"
3454
+ },
3455
+ "declarations": [
3456
+ {
3457
+ "fileName": "src/components/chatComposer.tsx",
3458
+ "name": "ChatComposerProps"
3459
+ }
3460
+ ],
3461
+ "required": false,
3462
+ "type": {
3463
+ "name": "ChatAttachment[]"
3464
+ }
3465
+ },
3466
+ "onAttach": {
3467
+ "defaultValue": null,
3468
+ "description": "파일을 골랐을 때. 주면 `+` 메뉴에 \"파일 첨부\" 가 생긴다. 서버로 올리는 일은 소비 앱이 한다",
3469
+ "name": "onAttach",
3470
+ "parent": {
3471
+ "fileName": "src/components/chatComposer.tsx",
3472
+ "name": "ChatComposerProps"
3473
+ },
3474
+ "declarations": [
3475
+ {
3476
+ "fileName": "src/components/chatComposer.tsx",
3477
+ "name": "ChatComposerProps"
3478
+ }
3479
+ ],
3480
+ "required": false,
3481
+ "type": {
3482
+ "name": "((files: File[]) => void)"
3483
+ }
3484
+ },
3485
+ "onRemoveAttachment": {
3486
+ "defaultValue": null,
3487
+ "description": "칩의 지우기 클릭",
3488
+ "name": "onRemoveAttachment",
3489
+ "parent": {
3490
+ "fileName": "src/components/chatComposer.tsx",
3491
+ "name": "ChatComposerProps"
3492
+ },
3493
+ "declarations": [
3494
+ {
3495
+ "fileName": "src/components/chatComposer.tsx",
3496
+ "name": "ChatComposerProps"
3497
+ }
3498
+ ],
3499
+ "required": false,
3500
+ "type": {
3501
+ "name": "((id: string) => void)"
3502
+ }
3503
+ },
3504
+ "title": {
3505
+ "defaultValue": null,
3506
+ "description": "패널 제목 (h2). 주지 않으면 헤더를 그리지 않는다 — 제목과 닫기 버튼이 이미 있는 Drawer 안에서 쓸 때",
3507
+ "name": "title",
3508
+ "declarations": [
3509
+ {
3510
+ "fileName": "src/patterns/chatPanel.tsx",
3511
+ "name": "TypeLiteral"
3512
+ }
3513
+ ],
3514
+ "required": false,
3515
+ "type": {
3516
+ "name": "ReactNode"
3517
+ }
3518
+ },
3519
+ "label": {
3520
+ "defaultValue": {
3521
+ "value": "AI 대화"
3522
+ },
3523
+ "description": "제목이 없을 때 대화 영역의 접근성 이름. 기본 \"AI 대화\"",
3524
+ "name": "label",
3525
+ "declarations": [
3526
+ {
3527
+ "fileName": "src/patterns/chatPanel.tsx",
3528
+ "name": "TypeLiteral"
3529
+ }
3530
+ ],
3531
+ "required": false,
3532
+ "type": {
3533
+ "name": "string"
3534
+ }
3535
+ },
3536
+ "actions": {
3537
+ "defaultValue": null,
3538
+ "description": "헤더 오른쪽의 행동 버튼 (새 대화 등). 버튼 사이 8px 로 그린다",
3539
+ "name": "actions",
3540
+ "declarations": [
3541
+ {
3542
+ "fileName": "src/patterns/chatPanel.tsx",
3543
+ "name": "TypeLiteral"
3544
+ }
3545
+ ],
3546
+ "required": false,
3547
+ "type": {
3548
+ "name": "ReactNode"
3549
+ }
3550
+ },
3551
+ "onClose": {
3552
+ "defaultValue": null,
3553
+ "description": "닫기. 주면 헤더 오른쪽 끝에 닫기 버튼이 생긴다",
3554
+ "name": "onClose",
3555
+ "declarations": [
3556
+ {
3557
+ "fileName": "src/patterns/chatPanel.tsx",
3558
+ "name": "TypeLiteral"
3559
+ }
3560
+ ],
3561
+ "required": false,
3562
+ "type": {
3563
+ "name": "(() => void)"
3564
+ }
3565
+ },
3566
+ "className": {
3567
+ "defaultValue": null,
3568
+ "description": "바깥 요소에 덧붙일 클래스 (놓이는 자리의 테두리 등)",
3569
+ "name": "className",
3570
+ "declarations": [
3571
+ {
3572
+ "fileName": "src/patterns/chatPanel.tsx",
3573
+ "name": "TypeLiteral"
3574
+ }
3575
+ ],
3576
+ "required": false,
3577
+ "type": {
3578
+ "name": "string"
3579
+ }
3580
+ }
3581
+ },
3582
+ "exportName": "ChatPanel"
3583
+ },
3584
+ "stories": [
3585
+ {
3586
+ "id": "patterns-chatpanel--default",
3587
+ "name": "Default — 본 화면 옆 480px 칸",
3588
+ "snippet": "const Default = () => <Beside>\n <Demo onClose={() => {}} />\n</Beside>;"
3589
+ },
3590
+ {
3591
+ "id": "patterns-chatpanel--welcome",
3592
+ "name": "Welcome — 빈 대화(입력창은 아래 그대로)",
3593
+ "error": {
3594
+ "name": "SyntaxError",
3595
+ "message": "Expected render to be an arrow function or function expression\n 83 | name: 'Welcome — 빈 대화(입력창은 아래 그대로)',\n 84 | args: { initial: [] },\n> 85 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 86 | }\n 87 |\n 88 | export const Streaming: Story = {"
3596
+ }
3597
+ },
3598
+ {
3599
+ "id": "patterns-chatpanel--streaming",
3600
+ "name": "Streaming — 생성 중",
3601
+ "error": {
3602
+ "name": "SyntaxError",
3603
+ "message": "Expected render to be an arrow function or function expression\n 95 | streaming: true,\n 96 | },\n> 97 | render: Default.render,\n | ^^^^^^^^^^^^^^\n 98 | }\n 99 |\n 100 | function InDrawerDemo(args: DemoArgs) {"
3604
+ }
3605
+ },
3606
+ {
3607
+ "id": "patterns-chatpanel--in-drawer",
3608
+ "name": "InDrawer — Drawer 안(헤더 없이)",
3609
+ "snippet": "const InDrawer = () => <InDrawerDemo />;"
3610
+ }
3611
+ ],
3612
+ "import": "import { Button, ChatPanel, Drawer, DrawerContent, DrawerHeader, DrawerTitle, IconButton } from '@t3q-ui/design-system';\nimport { SquarePen } from 'lucide-react';"
3613
+ },
1329
3614
  "components-inputs-checkbox": {
1330
3615
  "id": "components-inputs-checkbox",
1331
3616
  "name": "Checkbox",
@@ -2300,10 +4585,10 @@
2300
4585
  "name": "boolean"
2301
4586
  }
2302
4587
  },
2303
- "shouldFilter": {
4588
+ "onValueChange": {
2304
4589
  "defaultValue": null,
2305
- "description": "Optionally set to `false` to turn off the automatic filtering and sorting.\nIf `false`, you must conditionally render valid items based on the search query yourself.",
2306
- "name": "shouldFilter",
4590
+ "description": "Event handler called when the selected item of the menu changes.",
4591
+ "name": "onValueChange",
2307
4592
  "declarations": [
2308
4593
  {
2309
4594
  "fileName": "node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3.27_react-dom_432f7245dc8bab9f07ec6fe8c80615a1/node_modules/cmdk/dist/index.d.ts",
@@ -2312,13 +4597,13 @@
2312
4597
  ],
2313
4598
  "required": false,
2314
4599
  "type": {
2315
- "name": "boolean"
4600
+ "name": "((value: string) => void)"
2316
4601
  }
2317
4602
  },
2318
- "onValueChange": {
4603
+ "shouldFilter": {
2319
4604
  "defaultValue": null,
2320
- "description": "Event handler called when the selected item of the menu changes.",
2321
- "name": "onValueChange",
4605
+ "description": "Optionally set to `false` to turn off the automatic filtering and sorting.\nIf `false`, you must conditionally render valid items based on the search query yourself.",
4606
+ "name": "shouldFilter",
2322
4607
  "declarations": [
2323
4608
  {
2324
4609
  "fileName": "node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3.27_react-dom_432f7245dc8bab9f07ec6fe8c80615a1/node_modules/cmdk/dist/index.d.ts",
@@ -2327,7 +4612,7 @@
2327
4612
  ],
2328
4613
  "required": false,
2329
4614
  "type": {
2330
- "name": "((value: string) => void)"
4615
+ "name": "boolean"
2331
4616
  }
2332
4617
  },
2333
4618
  "disablePointerSelection": {
@@ -2405,10 +4690,10 @@
2405
4690
  "name": "string"
2406
4691
  }
2407
4692
  },
2408
- "description": {
4693
+ "titleRight": {
2409
4694
  "defaultValue": null,
2410
- "description": "",
2411
- "name": "description",
4695
+ "description": "제목 오른쪽 자리. 정보가 있는 작은 행동만 둔다(예: `PageHeaderRefreshButton`). 상태는 `status`·`meta` 에 두고, 장식 Tag·Badge·글자는 넣지 않는다(2026-11-06).",
4696
+ "name": "titleRight",
2412
4697
  "declarations": [
2413
4698
  {
2414
4699
  "fileName": "src/components/pageHeader.tsx",
@@ -2420,10 +4705,10 @@
2420
4705
  "name": "ReactNode"
2421
4706
  }
2422
4707
  },
2423
- "titleRight": {
4708
+ "description": {
2424
4709
  "defaultValue": null,
2425
- "description": "제목 오른쪽 자리. 정보가 있는 작은 행동만 둔다(예: `PageHeaderRefreshButton`). 상태는 `status`·`meta` 에 두고, 장식 Tag·Badge·글자는 넣지 않는다(2026-11-06).",
2426
- "name": "titleRight",
4710
+ "description": "",
4711
+ "name": "description",
2427
4712
  "declarations": [
2428
4713
  {
2429
4714
  "fileName": "src/components/pageHeader.tsx",
@@ -3107,21 +5392,6 @@
3107
5392
  "name": "ReactNode"
3108
5393
  }
3109
5394
  },
3110
- "description": {
3111
- "defaultValue": null,
3112
- "description": "",
3113
- "name": "description",
3114
- "declarations": [
3115
- {
3116
- "fileName": "src/components/pageHeader.tsx",
3117
- "name": "TypeLiteral"
3118
- }
3119
- ],
3120
- "required": false,
3121
- "type": {
3122
- "name": "ReactNode"
3123
- }
3124
- },
3125
5395
  "titleRight": {
3126
5396
  "defaultValue": null,
3127
5397
  "description": "제목 오른쪽 자리. 정보가 있는 작은 행동만 둔다(예: `PageHeaderRefreshButton`). 상태는 `status`·`meta` 에 두고, 장식 Tag·Badge·글자는 넣지 않는다(2026-11-06).",
@@ -3137,10 +5407,10 @@
3137
5407
  "name": "ReactNode"
3138
5408
  }
3139
5409
  },
3140
- "breadcrumb": {
5410
+ "description": {
3141
5411
  "defaultValue": null,
3142
5412
  "description": "",
3143
- "name": "breadcrumb",
5413
+ "name": "description",
3144
5414
  "declarations": [
3145
5415
  {
3146
5416
  "fileName": "src/components/pageHeader.tsx",
@@ -3182,6 +5452,21 @@
3182
5452
  "name": "string"
3183
5453
  }
3184
5454
  },
5455
+ "breadcrumb": {
5456
+ "defaultValue": null,
5457
+ "description": "",
5458
+ "name": "breadcrumb",
5459
+ "declarations": [
5460
+ {
5461
+ "fileName": "src/components/pageHeader.tsx",
5462
+ "name": "TypeLiteral"
5463
+ }
5464
+ ],
5465
+ "required": false,
5466
+ "type": {
5467
+ "name": "ReactNode"
5468
+ }
5469
+ },
3185
5470
  "onTabChange": {
3186
5471
  "defaultValue": null,
3187
5472
  "description": "",
@@ -4611,11 +6896,11 @@
4611
6896
  "name": "EmptyBoxIllustration",
4612
6897
  "path": "./src/stories/EmptyBoxIllustration/EmptyBoxIllustration.stories.tsx",
4613
6898
  "jsDocTags": {},
4614
- "description": "빈 상태 일러스트 — 열린 상자와 구겨진 종이. dl-ui-v3 의 `empty_box.svg`(사용자 정보 화면의 빈 패널)를 토큰 색으로 옮겨 라이트·다크 테마를 따른다.\n\n언제 쓰나: EmptyState 의 기본 그림(목록·상세·대시보드의 \"없음\" 상자). 소비 앱의 빈 패널(dl-ui-v3 `CEmptyBox`)도 이것으로 대체한다.\n언제 안 쓰나: 오류 안내(→ ErrorState 의 경고 아이콘), 로딩(→ LoadingState), 표 안의 한 줄 빈 결과(ListPage 는 문장만 쓴다).\n대신/함께: 색은 `fill-primary10/20`·`fill-sys-background`·`fill-current`(종이 = `text-sys-text-subtler`, 원본의 grayscale60) 로 토큰을 따르므로 `className` 으로는 크기·여백만 바꾼다(기본 110×81). 장식이라 `aria-hidden`.",
6899
+ "description": "빈 상태 일러스트. dl-ui-v3 의 `empty_box.svg`(사용자 정보 화면의 빈 패널)를 토큰 색으로 옮겨 라이트·다크 테마를 따른다.\n\n언제 쓰나: EmptyState 의 기본 그림(목록·상세·대시보드의 \"없음\" 상자). 소비 앱의 빈 패널(dl-ui-v3 `CEmptyBox`)도 이것으로 대체한다.\n언제 안 쓰나: 오류 안내(→ ErrorState 의 경고 아이콘), 로딩(→ LoadingState), 표 안의 한 줄 빈 결과(ListPage 는 문장만 쓴다).\n대신/함께: 색은 `fill-primary10/20`·`fill-sys-background`·`fill-current`(종이 = `text-sys-text-subtler`, 원본의 grayscale60) 로 토큰을 따르므로 `className` 으로는 크기·여백만 바꾼다(기본 110×81). 장식이라 `aria-hidden`.",
4615
6900
  "reactDocgenTypescript": {
4616
6901
  "tags": {},
4617
6902
  "filePath": "src/components/emptyBoxIllustration.tsx",
4618
- "description": "빈 상태 일러스트 — 열린 상자와 구겨진 종이. dl-ui-v3 의 `empty_box.svg`(사용자 정보 화면의 빈 패널)를 토큰 색으로 옮겨 라이트·다크 테마를 따른다.\n\n언제 쓰나: EmptyState 의 기본 그림(목록·상세·대시보드의 \"없음\" 상자). 소비 앱의 빈 패널(dl-ui-v3 `CEmptyBox`)도 이것으로 대체한다.\n언제 안 쓰나: 오류 안내(→ ErrorState 의 경고 아이콘), 로딩(→ LoadingState), 표 안의 한 줄 빈 결과(ListPage 는 문장만 쓴다).\n대신/함께: 색은 `fill-primary10/20`·`fill-sys-background`·`fill-current`(종이 = `text-sys-text-subtler`, 원본의 grayscale60) 로 토큰을 따르므로 `className` 으로는 크기·여백만 바꾼다(기본 110×81). 장식이라 `aria-hidden`.",
6903
+ "description": "빈 상태 일러스트. dl-ui-v3 의 `empty_box.svg`(사용자 정보 화면의 빈 패널)를 토큰 색으로 옮겨 라이트·다크 테마를 따른다.\n\n언제 쓰나: EmptyState 의 기본 그림(목록·상세·대시보드의 \"없음\" 상자). 소비 앱의 빈 패널(dl-ui-v3 `CEmptyBox`)도 이것으로 대체한다.\n언제 안 쓰나: 오류 안내(→ ErrorState 의 경고 아이콘), 로딩(→ LoadingState), 표 안의 한 줄 빈 결과(ListPage 는 문장만 쓴다).\n대신/함께: 색은 `fill-primary10/20`·`fill-sys-background`·`fill-current`(종이 = `text-sys-text-subtler`, 원본의 grayscale60) 로 토큰을 따르므로 `className` 으로는 크기·여백만 바꾼다(기본 110×81). 장식이라 `aria-hidden`.",
4619
6904
  "displayName": "EmptyBoxIllustration",
4620
6905
  "methods": [],
4621
6906
  "props": {},
@@ -6731,6 +9016,129 @@
6731
9016
  ],
6732
9017
  "import": "import { LucideIcon } from '@t3q-ui/design-system';"
6733
9018
  },
9019
+ "components-data-display-markdown": {
9020
+ "id": "components-data-display-markdown",
9021
+ "name": "Markdown",
9022
+ "path": "./src/stories/Markdown/Markdown.stories.tsx",
9023
+ "jsDocTags": {},
9024
+ "description": "마크다운 원문을 TDS 모양으로 그린다 — 문단·제목·목록·인용·링크·표·코드 블록(언어 이름, 복사 버튼, 색). 표·취소선·체크 목록(GFM)을 지원한다.\n\n언제 쓰나: AI 답변 본문(`ChatPage`·`ChatPanel` 의 `content`, `ChatMessage` 의 자식), 모델 카드·설명처럼 마크다운으로 저장된 글.\n언제 안 쓰나: 한두 줄의 일반 글자(→ 그대로), 편집기(→ 소비 앱), 코드 한 조각만 보여 줄 때(→ 소비 앱의 코드 표시).\n대신/함께: `@t3q-ui/design-system/markdown` 에서 import 한다(기본 진입점이 아니다 — 마크다운 라이브러리가 ESM 전용이라 따로 둔다). 원문 속 HTML 은 그리지 않고 글자로 보인다. 링크는 새 탭으로 열린다. 이미지는 기본으로 불러오지 않는다(`allowImages`). 원문이 같으면 다시 해석하지 않으므로 스트리밍 중에도 지난 답변은 그대로 둔다.",
9025
+ "reactDocgenTypescript": {
9026
+ "tags": {},
9027
+ "filePath": "src/markdown/index.ts",
9028
+ "description": "마크다운 원문을 TDS 모양으로 그린다 — 문단·제목·목록·인용·링크·표·코드 블록(언어 이름, 복사 버튼, 색). 표·취소선·체크 목록(GFM)을 지원한다.\n\n언제 쓰나: AI 답변 본문(`ChatPage`·`ChatPanel` 의 `content`, `ChatMessage` 의 자식), 모델 카드·설명처럼 마크다운으로 저장된 글.\n언제 안 쓰나: 한두 줄의 일반 글자(→ 그대로), 편집기(→ 소비 앱), 코드 한 조각만 보여 줄 때(→ 소비 앱의 코드 표시).\n대신/함께: `@t3q-ui/design-system/markdown` 에서 import 한다(기본 진입점이 아니다 — 마크다운 라이브러리가 ESM 전용이라 따로 둔다). 원문 속 HTML 은 그리지 않고 글자로 보인다. 링크는 새 탭으로 열린다. 이미지는 기본으로 불러오지 않는다(`allowImages`). 원문이 같으면 다시 해석하지 않으므로 스트리밍 중에도 지난 답변은 그대로 둔다.",
9029
+ "displayName": "Markdown",
9030
+ "methods": [],
9031
+ "props": {
9032
+ "children": {
9033
+ "defaultValue": null,
9034
+ "description": "마크다운 원문",
9035
+ "name": "children",
9036
+ "parent": {
9037
+ "fileName": "src/markdown/markdown.tsx",
9038
+ "name": "MarkdownProps"
9039
+ },
9040
+ "declarations": [
9041
+ {
9042
+ "fileName": "src/markdown/markdown.tsx",
9043
+ "name": "MarkdownProps"
9044
+ }
9045
+ ],
9046
+ "required": true,
9047
+ "type": {
9048
+ "name": "string"
9049
+ }
9050
+ },
9051
+ "headingLevel": {
9052
+ "defaultValue": null,
9053
+ "description": "답변 속 제목(`#`)이 시작할 heading 레벨. 쓰인 단계만 차례로 다시 매긴다(`#`·`###` 만 있으면 3·4). 메시지 안은 3(기본), 화면 제목 바로 아래 본문이면 2",
9054
+ "name": "headingLevel",
9055
+ "parent": {
9056
+ "fileName": "src/markdown/markdown.tsx",
9057
+ "name": "MarkdownProps"
9058
+ },
9059
+ "declarations": [
9060
+ {
9061
+ "fileName": "src/markdown/markdown.tsx",
9062
+ "name": "MarkdownProps"
9063
+ }
9064
+ ],
9065
+ "required": false,
9066
+ "type": {
9067
+ "name": "enum",
9068
+ "raw": "2 | 3 | 4",
9069
+ "value": [
9070
+ {
9071
+ "value": "2"
9072
+ },
9073
+ {
9074
+ "value": "3"
9075
+ },
9076
+ {
9077
+ "value": "4"
9078
+ }
9079
+ ]
9080
+ }
9081
+ },
9082
+ "allowImages": {
9083
+ "defaultValue": null,
9084
+ "description": "이미지를 불러와 보여 준다. 기본 false — 주소만 링크로 보인다(답변 속 이미지 주소로 정보가 새는 것을 막는다). 믿을 수 있는 내용에만 켠다",
9085
+ "name": "allowImages",
9086
+ "parent": {
9087
+ "fileName": "src/markdown/markdown.tsx",
9088
+ "name": "MarkdownProps"
9089
+ },
9090
+ "declarations": [
9091
+ {
9092
+ "fileName": "src/markdown/markdown.tsx",
9093
+ "name": "MarkdownProps"
9094
+ }
9095
+ ],
9096
+ "required": false,
9097
+ "type": {
9098
+ "name": "boolean"
9099
+ }
9100
+ },
9101
+ "className": {
9102
+ "defaultValue": null,
9103
+ "description": "바깥 요소에 덧붙일 클래스",
9104
+ "name": "className",
9105
+ "parent": {
9106
+ "fileName": "src/markdown/markdown.tsx",
9107
+ "name": "MarkdownProps"
9108
+ },
9109
+ "declarations": [
9110
+ {
9111
+ "fileName": "src/markdown/markdown.tsx",
9112
+ "name": "MarkdownProps"
9113
+ }
9114
+ ],
9115
+ "required": false,
9116
+ "type": {
9117
+ "name": "string"
9118
+ }
9119
+ }
9120
+ },
9121
+ "exportName": "Markdown"
9122
+ },
9123
+ "stories": [
9124
+ {
9125
+ "id": "components-data-display-markdown--default",
9126
+ "name": "Default — 문단·제목·표·목록·코드 블록·링크",
9127
+ "snippet": "const Default = () => <Markdown>{ANSWER}</Markdown>;"
9128
+ },
9129
+ {
9130
+ "id": "components-data-display-markdown--elements",
9131
+ "name": "Elements — 지원하는 요소 전부",
9132
+ "snippet": "const Elements = () => <Markdown>{`# 가장 큰 제목\n\n 본문 문단입니다. **굵게**, *기울임*, ~~취소선~~, \\`인라인 코드\\`, [링크](https://example.com)를 쓸 수 있습니다.\n\n ## 다음 단계 제목\n\n - 순서 없는 목록\n - 안쪽 목록\n - [x] 끝낸 일\n - [ ] 남은 일\n\n > 인용문입니다. 주의할 점이나 원문을 옮길 때 씁니다.\n\n ---\n\n ### 그다음 단계 제목\n\n | 지표 | 값 |\n |---|---:|\n | 정확도 | 0.943 |\n | 손실 | 0.182 |\n\n \\`\\`\\`json\n { \"model\": \"resnet-50\", \"epochs\": 30, \"lr\": 0.001 }\n \\`\\`\\`\n\n \\`\\`\\`bash\n pip install torch && python train.py --epochs 30\n \\`\\`\\`\n\n \\`\\`\\`\n 언어를 적지 않은 코드 블록은 색 없이 보입니다.\n \\`\\`\\`\n\n ![이미지는 기본으로 불러오지 않고 링크로 보입니다](https://example.com/chart.png)\n\n <script>alert('원문 속 HTML 은 그려지지 않고 글자로 보입니다')</script>`}</Markdown>;"
9133
+ },
9134
+ {
9135
+ "id": "components-data-display-markdown--light-and-dark",
9136
+ "name": "LightAndDark — 코드 색(두 테마)",
9137
+ "snippet": "const LightAndDark = () => (\n <div className='flex flex-col gap-[16px]'>\n <div className='rounded-medium border border-sys-border-subtle bg-sys-background p-[24px]'>\n <Markdown>{ANSWER.split('### 예시 코드')[1]}</Markdown>\n </div>\n <div\n data-theme='dark'\n className='rounded-medium border border-sys-border-subtle bg-sys-background p-[24px]'\n >\n <Markdown>{ANSWER.split('### 예시 코드')[1]}</Markdown>\n </div>\n </div>\n);"
9138
+ }
9139
+ ],
9140
+ "import": "import { Markdown } from '@t3q-ui/design-system';\nimport { ANSWER } from '../ChatPage/chatDemo';"
9141
+ },
6734
9142
  "components-data-display-metaitem": {
6735
9143
  "id": "components-data-display-metaitem",
6736
9144
  "name": "MetaItem",
@@ -8155,11 +10563,11 @@
8155
10563
  "name": "ParameterTable",
8156
10564
  "path": "./src/stories/ParameterTable/ParameterTable.stories.tsx",
8157
10565
  "jsDocTags": {},
8158
- "description": "이름·값·설명 행을 표 안에서 바로 편집하는 표(행 추가·삭제·순서 변경·엑셀 붙여넣기).\n\n언제 쓰나: 환경 변수·하이퍼파라미터·태그처럼 개수가 정해지지 않은 이름-값 목록을 폼에서 입력할 때. 셀 오류는 `cellErrors`.\n언제 안 쓰나: 읽기 전용 표(→ Table·AgGridTable), 정해진 몇 개 필드(→ FormField 여러 개), 긴 글(→ Textarea).\n대신/함께: 폼에서는 섹션 하나에 두고, 빈 이름·중복 이름은 제출할 때 셀 오류로 알린다.",
10566
+ "description": "이름·값·설명 행을 표 안에서 바로 편집하는 표(행 추가·삭제·순서 변경·엑셀 붙여넣기).\n\n언제 쓰나: 환경 변수·하이퍼파라미터·태그처럼 개수가 정해지지 않은 이름-값 목록을 폼에서 입력할 때. 셀 오류는 `cellErrors`, 행마다 고칠 수 있는 칸이 다르면 `canEditCell`·`canDeleteRow`, 행 추가가 없는 값 입력 표는 `withAddRow={false}`.\n언제 안 쓰나: 읽기 전용 표(→ Table·AgGridTable), 정해진 몇 개 필드(→ FormField 여러 개), 긴 글(→ Textarea).\n대신/함께: 폼에서는 섹션 하나에 두고, 빈 이름·중복 이름은 제출할 때 셀 오류로 알린다.",
8159
10567
  "reactDocgenTypescript": {
8160
10568
  "tags": {},
8161
10569
  "filePath": "src/components/parameterTable/index.tsx",
8162
- "description": "이름·값·설명 행을 표 안에서 바로 편집하는 표(행 추가·삭제·순서 변경·엑셀 붙여넣기).\n\n언제 쓰나: 환경 변수·하이퍼파라미터·태그처럼 개수가 정해지지 않은 이름-값 목록을 폼에서 입력할 때. 셀 오류는 `cellErrors`.\n언제 안 쓰나: 읽기 전용 표(→ Table·AgGridTable), 정해진 몇 개 필드(→ FormField 여러 개), 긴 글(→ Textarea).\n대신/함께: 폼에서는 섹션 하나에 두고, 빈 이름·중복 이름은 제출할 때 셀 오류로 알린다.",
10570
+ "description": "이름·값·설명 행을 표 안에서 바로 편집하는 표(행 추가·삭제·순서 변경·엑셀 붙여넣기).\n\n언제 쓰나: 환경 변수·하이퍼파라미터·태그처럼 개수가 정해지지 않은 이름-값 목록을 폼에서 입력할 때. 셀 오류는 `cellErrors`, 행마다 고칠 수 있는 칸이 다르면 `canEditCell`·`canDeleteRow`, 행 추가가 없는 값 입력 표는 `withAddRow={false}`.\n언제 안 쓰나: 읽기 전용 표(→ Table·AgGridTable), 정해진 몇 개 필드(→ FormField 여러 개), 긴 글(→ Textarea).\n대신/함께: 폼에서는 섹션 하나에 두고, 빈 이름·중복 이름은 제출할 때 셀 오류로 알린다.",
8163
10571
  "displayName": "ParameterTable",
8164
10572
  "methods": [],
8165
10573
  "props": {
@@ -8351,6 +10759,122 @@
8351
10759
  "name": "string"
8352
10760
  }
8353
10761
  },
10762
+ "canDeleteRow": {
10763
+ "defaultValue": null,
10764
+ "description": "행별 삭제 가능 여부. 기본값은 모든 실제 행 삭제 가능. false 인 행은 삭제 버튼이 보이지 않는다.",
10765
+ "name": "canDeleteRow",
10766
+ "parent": {
10767
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10768
+ "name": "ParameterTableProps"
10769
+ },
10770
+ "declarations": [
10771
+ {
10772
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10773
+ "name": "ParameterTableProps"
10774
+ }
10775
+ ],
10776
+ "required": false,
10777
+ "type": {
10778
+ "name": "ParameterTableCanDeleteRow"
10779
+ }
10780
+ },
10781
+ "canEditCell": {
10782
+ "defaultValue": null,
10783
+ "description": "셀별 편집 가능 여부. 기본값은 모든 셀 편집 가능. false 인 셀은 읽기 전용 바탕으로 표시되고 편집·붙여넣기·지우기가 막힌다.",
10784
+ "name": "canEditCell",
10785
+ "parent": {
10786
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10787
+ "name": "ParameterTableProps"
10788
+ },
10789
+ "declarations": [
10790
+ {
10791
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10792
+ "name": "ParameterTableProps"
10793
+ }
10794
+ ],
10795
+ "required": false,
10796
+ "type": {
10797
+ "name": "ParameterTableCanEditCell"
10798
+ }
10799
+ },
10800
+ "onActiveCellChange": {
10801
+ "defaultValue": null,
10802
+ "description": "활성 셀(선택 영역의 focus)이 바뀔 때 알린다. 선택이 없으면 null. 같은 셀에서는 다시 부르지 않는다.",
10803
+ "name": "onActiveCellChange",
10804
+ "parent": {
10805
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10806
+ "name": "ParameterTableProps"
10807
+ },
10808
+ "declarations": [
10809
+ {
10810
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10811
+ "name": "ParameterTableProps"
10812
+ }
10813
+ ],
10814
+ "required": false,
10815
+ "type": {
10816
+ "name": "((cell: ParameterTableActiveCell | null) => void)"
10817
+ }
10818
+ },
10819
+ "withAddRow": {
10820
+ "defaultValue": {
10821
+ "value": "true"
10822
+ },
10823
+ "description": "맨 아래 빈 입력 행(행 추가)을 그릴지. 기본 true. false 면 빈 입력 행이 없고, 붙여넣기가 행을 늘리지 않으며,\n키보드 이동이 실제 마지막 행에서 멈춘다. 행 개수가 정해진 값 입력 표에 쓴다.",
10824
+ "name": "withAddRow",
10825
+ "parent": {
10826
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10827
+ "name": "ParameterTableProps"
10828
+ },
10829
+ "declarations": [
10830
+ {
10831
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10832
+ "name": "ParameterTableProps"
10833
+ }
10834
+ ],
10835
+ "required": false,
10836
+ "type": {
10837
+ "name": "boolean"
10838
+ }
10839
+ },
10840
+ "extraColumns": {
10841
+ "defaultValue": null,
10842
+ "description": "데이터 열 뒤·삭제 열 앞에 앱이 그리는 표시 전용 열. 칸 선택·복사·붙여넣기 대상이 아니다.",
10843
+ "name": "extraColumns",
10844
+ "parent": {
10845
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10846
+ "name": "ParameterTableProps"
10847
+ },
10848
+ "declarations": [
10849
+ {
10850
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10851
+ "name": "ParameterTableProps"
10852
+ }
10853
+ ],
10854
+ "required": false,
10855
+ "type": {
10856
+ "name": "ParameterTableExtraColumn[]"
10857
+ }
10858
+ },
10859
+ "cellHint": {
10860
+ "defaultValue": null,
10861
+ "description": "칸 안내 글. 글이 있는 칸에 마우스를 올리거나 키보드로 그 칸이 활성일 때 툴팁으로 보여 주고,\n활성 칸의 안내는 보조기술에도 읽힌다(편집 입력의 `aria-describedby`). 잠긴 칸의 이유를 알릴 때 쓴다.",
10862
+ "name": "cellHint",
10863
+ "parent": {
10864
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10865
+ "name": "ParameterTableProps"
10866
+ },
10867
+ "declarations": [
10868
+ {
10869
+ "fileName": "src/components/parameterTable/ParameterTable.tsx",
10870
+ "name": "ParameterTableProps"
10871
+ }
10872
+ ],
10873
+ "required": false,
10874
+ "type": {
10875
+ "name": "((row: ParameterTableRow, rowIdx: number, column: ParameterTableColumn, colIdx: number) => string)"
10876
+ }
10877
+ },
8354
10878
  "cellErrors": {
8355
10879
  "defaultValue": null,
8356
10880
  "description": "셀별 invalid 표시. cellErrors[rowId][colId] === true 인 셀에 빨간 강조.\ntrailing placeholder 행은 자동으로 제외된다.",
@@ -8413,9 +10937,31 @@
8413
10937
  "id": "components-table-parametertable--paste-from-excel",
8414
10938
  "name": "Paste From Excel",
8415
10939
  "snippet": "const PasteFromExcel = () => <ParameterTable caption=\"Paste from Excel / Sheets (try Cmd+V here)\" />;"
10940
+ },
10941
+ {
10942
+ "id": "components-table-parametertable--locked-cells-and-rows",
10943
+ "name": "Locked Cells And Rows",
10944
+ "snippet": "const LockedCellsAndRows = () => <ParameterTable\n caption=\"Locked cells and rows\"\n defaultValue={[\n { id: 'r1', values: { key: 'epochs', value: '100', description: '학습 epoch 수' } },\n { id: 'r2', values: { key: 'batch_size', value: '32', description: '미니배치 크기' } },\n { id: 'r3', values: { key: 'learning_rate', value: '1e-3', description: '학습률' } },\n ]}\n canEditCell={(row, _rowIdx, column) => !LOCKED_CELLS[row.id]?.includes(column.id)}\n canDeleteRow={(row) => !LOCKED_CELLS[row.id]} />;",
10945
+ "warning": "Incomplete snippet: `LOCKED_CELLS` could not be resolved statically."
10946
+ },
10947
+ {
10948
+ "id": "components-table-parametertable--without-add-row",
10949
+ "name": "Without Add Row",
10950
+ "snippet": "const WithoutAddRow = () => <ParameterTable\n caption=\"Without add row\"\n withAddRow={false}\n withHandle={false}\n canDeleteRow={() => false}\n canEditCell={(_row, _rowIdx, column) => column.id === 'value'}\n defaultValue={[\n { id: 'r1', values: { key: 'epochs', value: '100', description: '학습 epoch 수' } },\n { id: 'r2', values: { key: 'batch_size', value: '32', description: '미니배치 크기' } },\n { id: 'r3', values: { key: 'learning_rate', value: '1e-3', description: '학습률' } },\n ]} />;"
10951
+ },
10952
+ {
10953
+ "id": "components-table-parametertable--extra-column",
10954
+ "name": "Extra Column",
10955
+ "snippet": "const ExtraColumn = () => <ExtraColumnExample />;"
10956
+ },
10957
+ {
10958
+ "id": "components-table-parametertable--cell-hint",
10959
+ "name": "Cell Hint",
10960
+ "snippet": "const CellHint = () => <ParameterTable\n caption=\"Cell hint\"\n defaultValue={[\n { id: 'r1', values: { key: 'epochs', value: '100', description: '학습 epoch 수' } },\n { id: 'r2', values: { key: 'batch_size', value: '32', description: '미니배치 크기' } },\n { id: 'r3', values: { key: 'learning_rate', value: '1e-3', description: '학습률' } },\n ]}\n canEditCell={(row, _rowIdx, column) => !LOCKED_CELLS[row.id]?.includes(column.id)}\n cellHint={(row, _rowIdx, column) =>\n LOCKED_CELLS[row.id]?.includes(column.id)\n ? column.id === 'value'\n ? '값까지 고정된 항목입니다.'\n : '모형에서 고정된 항목입니다.'\n : undefined} />;",
10961
+ "warning": "Incomplete snippet: `LOCKED_CELLS` could not be resolved statically."
8416
10962
  }
8417
10963
  ],
8418
- "import": "import { ParameterTable } from '@t3q-ui/design-system';"
10964
+ "import": "import { Label, ParameterTable, RadioGroup, RadioGroupItem } from '@t3q-ui/design-system';"
8419
10965
  },
8420
10966
  "components-overlay-popover": {
8421
10967
  "id": "components-overlay-popover",
@@ -11537,7 +14083,7 @@
11537
14083
  "defaultValue": {
11538
14084
  "value": "medium"
11539
14085
  },
11540
- "description": "",
14086
+ "description": "크기. small 16 · medium 24(기본) · large 48 · xlarge 96. 글자 줄에 맞춰야 할 때는 px 숫자(예: 줄 높이 24 의 글자 옆 20)",
11541
14087
  "name": "size",
11542
14088
  "parent": {
11543
14089
  "fileName": "src/components/spinner/index.tsx",
@@ -11551,29 +14097,14 @@
11551
14097
  ],
11552
14098
  "required": false,
11553
14099
  "type": {
11554
- "name": "enum",
11555
- "raw": "\"medium\" | \"small\" | \"large\" | \"xlarge\"",
11556
- "value": [
11557
- {
11558
- "value": "\"medium\""
11559
- },
11560
- {
11561
- "value": "\"small\""
11562
- },
11563
- {
11564
- "value": "\"large\""
11565
- },
11566
- {
11567
- "value": "\"xlarge\""
11568
- }
11569
- ]
14100
+ "name": "number | \"medium\" | \"small\" | \"large\" | \"xlarge\""
11570
14101
  }
11571
14102
  },
11572
14103
  "shape": {
11573
14104
  "defaultValue": {
11574
14105
  "value": "spinner"
11575
14106
  },
11576
- "description": "",
14107
+ "description": "모양. spinner(기본, 회전) · dot(깜빡이는 점 — 크기의 절반)",
11577
14108
  "name": "shape",
11578
14109
  "parent": {
11579
14110
  "fileName": "src/components/spinner/index.tsx",
@@ -13777,6 +16308,27 @@
13777
16308
  "name": "(() => void)"
13778
16309
  }
13779
16310
  },
16311
+ "removeLabel": {
16312
+ "defaultValue": {
16313
+ "value": "삭제"
16314
+ },
16315
+ "description": "닫기 버튼의 접근성 이름. 기본 \"삭제\" — 칩이 여럿이면 대상을 넣어 구분한다(예: \"보고서.pdf 삭제\")",
16316
+ "name": "removeLabel",
16317
+ "parent": {
16318
+ "fileName": "src/components/tag.tsx",
16319
+ "name": "TagProps"
16320
+ },
16321
+ "declarations": [
16322
+ {
16323
+ "fileName": "src/components/tag.tsx",
16324
+ "name": "TagProps"
16325
+ }
16326
+ ],
16327
+ "required": false,
16328
+ "type": {
16329
+ "name": "string"
16330
+ }
16331
+ },
13780
16332
  "variant": {
13781
16333
  "defaultValue": null,
13782
16334
  "description": "",
@@ -13893,10 +16445,10 @@
13893
16445
  "name": "string"
13894
16446
  }
13895
16447
  },
13896
- "hasClearButton": {
16448
+ "isInvalid": {
13897
16449
  "defaultValue": null,
13898
- "description": "Clear 버튼 표시 여부",
13899
- "name": "hasClearButton",
16450
+ "description": "에러 상태",
16451
+ "name": "isInvalid",
13900
16452
  "declarations": [
13901
16453
  {
13902
16454
  "fileName": "src/components/textField.tsx",
@@ -13908,10 +16460,10 @@
13908
16460
  "name": "boolean"
13909
16461
  }
13910
16462
  },
13911
- "elemBeforeInput": {
16463
+ "hasClearButton": {
13912
16464
  "defaultValue": null,
13913
- "description": "입력 필드 왼쪽 아이콘/요소 슬롯",
13914
- "name": "elemBeforeInput",
16465
+ "description": "Clear 버튼 표시 여부",
16466
+ "name": "hasClearButton",
13915
16467
  "declarations": [
13916
16468
  {
13917
16469
  "fileName": "src/components/textField.tsx",
@@ -13920,13 +16472,13 @@
13920
16472
  ],
13921
16473
  "required": false,
13922
16474
  "type": {
13923
- "name": "ReactNode"
16475
+ "name": "boolean"
13924
16476
  }
13925
16477
  },
13926
- "elemAfterInput": {
16478
+ "elemBeforeInput": {
13927
16479
  "defaultValue": null,
13928
- "description": "입력 필드 오른쪽 아이콘/요소 슬롯",
13929
- "name": "elemAfterInput",
16480
+ "description": "입력 필드 왼쪽 아이콘/요소 슬롯",
16481
+ "name": "elemBeforeInput",
13930
16482
  "declarations": [
13931
16483
  {
13932
16484
  "fileName": "src/components/textField.tsx",
@@ -13938,10 +16490,10 @@
13938
16490
  "name": "ReactNode"
13939
16491
  }
13940
16492
  },
13941
- "isInvalid": {
16493
+ "elemAfterInput": {
13942
16494
  "defaultValue": null,
13943
- "description": "에러 상태",
13944
- "name": "isInvalid",
16495
+ "description": "입력 필드 오른쪽 아이콘/요소 슬롯",
16496
+ "name": "elemAfterInput",
13945
16497
  "declarations": [
13946
16498
  {
13947
16499
  "fileName": "src/components/textField.tsx",
@@ -13950,7 +16502,7 @@
13950
16502
  ],
13951
16503
  "required": false,
13952
16504
  "type": {
13953
- "name": "boolean"
16505
+ "name": "ReactNode"
13954
16506
  }
13955
16507
  },
13956
16508
  "containerClassName": {