impact-ui 5.0.4-alpha.2 → 5.0.4-chatbot.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/_virtual/ArrowBack.js +4 -0
  2. package/dist/_virtual/AttachFileOutlined.js +4 -0
  3. package/dist/_virtual/ContentCopyOutlined.js +4 -0
  4. package/dist/_virtual/Menu.js +4 -0
  5. package/dist/_virtual/NorthRounded.js +4 -0
  6. package/dist/_virtual/RefreshOutlined.js +4 -0
  7. package/dist/_virtual/StopRounded.js +4 -0
  8. package/dist/_virtual/ThumbDownOutlined.js +4 -0
  9. package/dist/_virtual/ThumbUpOutlined.js +4 -0
  10. package/dist/_virtual/VolumeUpOutlined.js +4 -0
  11. package/dist/_virtual/index10.js +3 -3
  12. package/dist/_virtual/index11.js +3 -3
  13. package/dist/_virtual/index12.js +3 -3
  14. package/dist/_virtual/index5.js +1 -1
  15. package/dist/_virtual/index6.js +3 -3
  16. package/dist/_virtual/index7.js +3 -3
  17. package/dist/_virtual/index8.js +3 -3
  18. package/dist/_virtual/index9.js +3 -3
  19. package/dist/components/Button/index.js +1 -1
  20. package/dist/components/Chatbot/Chatbot.types.d.ts +191 -18
  21. package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
  22. package/dist/components/Chatbot/chatBotFooter.d.ts +1 -1
  23. package/dist/components/Chatbot/chatBotFooter.d.ts.map +1 -1
  24. package/dist/components/Chatbot/chatBotFooter.js +21 -4
  25. package/dist/components/Chatbot/chatbotComposer.d.ts +4 -0
  26. package/dist/components/Chatbot/chatbotComposer.d.ts.map +1 -0
  27. package/dist/components/Chatbot/chatbotComposer.js +226 -0
  28. package/dist/components/Chatbot/chatbotGreetingHeader.d.ts +4 -0
  29. package/dist/components/Chatbot/chatbotGreetingHeader.d.ts.map +1 -0
  30. package/dist/components/Chatbot/chatbotGreetingHeader.js +213 -0
  31. package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
  32. package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
  33. package/dist/components/Chatbot/conversationScreen.js +5 -3
  34. package/dist/components/Chatbot/index.d.ts +2 -2
  35. package/dist/components/Chatbot/index.d.ts.map +1 -1
  36. package/dist/components/Chatbot/index.js +100 -50
  37. package/dist/components/Chatbot/irisConversationThread.d.ts +24 -0
  38. package/dist/components/Chatbot/irisConversationThread.d.ts.map +1 -0
  39. package/dist/components/Chatbot/irisConversationThread.js +470 -0
  40. package/dist/components/Chatbot/irisGreetingBackdrop.d.ts +5 -0
  41. package/dist/components/Chatbot/irisGreetingBackdrop.d.ts.map +1 -0
  42. package/dist/components/Chatbot/irisGreetingBackdrop.js +62 -0
  43. package/dist/components/Chatbot/irisMenuListItem.d.ts +11 -0
  44. package/dist/components/Chatbot/irisMenuListItem.d.ts.map +1 -0
  45. package/dist/components/Chatbot/irisMenuListItem.js +126 -0
  46. package/dist/components/Chatbot/irisMenuScreen.d.ts +4 -0
  47. package/dist/components/Chatbot/irisMenuScreen.d.ts.map +1 -0
  48. package/dist/components/Chatbot/irisMenuScreen.js +311 -0
  49. package/dist/components/Chatbot/irisThinking.d.ts +7 -0
  50. package/dist/components/Chatbot/irisThinking.d.ts.map +1 -0
  51. package/dist/components/Chatbot/irisThinking.js +219 -0
  52. package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
  53. package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
  54. package/dist/components/Chatbot/newChatComponent.js +387 -70
  55. package/dist/components/Menu/IconMenuItem.js +1 -1
  56. package/dist/components/Menu/NestedMenuItem.js +1 -1
  57. package/dist/components/Menu/index.js +1 -1
  58. package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
  59. package/dist/components/TableV36/Table.types.d.ts +8 -7
  60. package/dist/components/TableV36/Table.types.d.ts.map +1 -1
  61. package/dist/components/TableV36/index.d.ts.map +1 -1
  62. package/dist/components/TableV36/index.js +39 -110
  63. package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
  64. package/dist/components/TableV36/tableFunctions.js +15 -14
  65. package/dist/components/TableV36/tableUtils.d.ts +0 -14
  66. package/dist/components/TableV36/tableUtils.d.ts.map +1 -1
  67. package/dist/components/TableV36/tableUtils.js +0 -32
  68. package/dist/components/index.d.ts +1 -1
  69. package/dist/components/index.d.ts.map +1 -1
  70. package/dist/locales/de-DE.json.d.ts +51 -0
  71. package/dist/locales/de-DE.json.js +51 -0
  72. package/dist/locales/en-US.json.d.ts +51 -0
  73. package/dist/locales/en-US.json.js +51 -0
  74. package/dist/locales/es-ES.json.d.ts +51 -0
  75. package/dist/locales/es-ES.json.js +51 -0
  76. package/dist/mcp-component-registry.json +257 -188
  77. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +280 -48
  78. package/dist/node_modules/@mui/icons-material/ArrowBack.js +17 -0
  79. package/dist/node_modules/@mui/icons-material/AttachFileOutlined.js +17 -0
  80. package/dist/node_modules/@mui/icons-material/ContentCopyOutlined.js +17 -0
  81. package/dist/node_modules/@mui/icons-material/Menu.js +17 -0
  82. package/dist/node_modules/@mui/icons-material/NorthRounded.js +17 -0
  83. package/dist/node_modules/@mui/icons-material/RefreshOutlined.js +17 -0
  84. package/dist/node_modules/@mui/icons-material/StopRounded.js +17 -0
  85. package/dist/node_modules/@mui/icons-material/ThumbDownOutlined.js +17 -0
  86. package/dist/node_modules/@mui/icons-material/ThumbUpOutlined.js +17 -0
  87. package/dist/node_modules/@mui/icons-material/VolumeUpOutlined.js +17 -0
  88. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  89. package/dist/node_modules/@mui/system/createStyled.js +6 -6
  90. package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
  91. package/dist/stories/chatBotApiMock.d.ts +476 -0
  92. package/dist/stories/chatBotApiMock.d.ts.map +1 -0
  93. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "generatedAt": "2026-11-09T10:41:51.508Z",
3
+ "generatedAt": "2026-11-12T09:32:21.432Z",
4
4
  "components": {
5
5
  "Menu": {
6
6
  "title": "Components/Menu",
@@ -1638,331 +1638,405 @@
1638
1638
  "ChatBot": {
1639
1639
  "title": "Components/ChatBot",
1640
1640
  "category": "Components",
1641
- "description": "## ChatBot / Iris\n\nAPI-driven conversational assistant shell used across Impact apps.\n\n### Typical consumer flow\n1. Parent controls \\",
1641
+ "description": "# ChatBot / Iris\n\nHost-driven chat shell for classic SmartBot conversations and the Iris new-chat experience. Stories use \\",
1642
1642
  "examples": [],
1643
1643
  "props": {
1644
1644
  "id": {
1645
- "description": "Stable DOM id for automation / aria references.",
1645
+ "description": "Stable DOM id for automation and aria references (`BaseComponentProps`).",
1646
1646
  "type": "string",
1647
1647
  "required": true
1648
1648
  },
1649
1649
  "className": {
1650
- "description": "Optional className on the component root (via BaseComponentProps).",
1650
+ "description": "Extra CSS class on the root chatbot container.",
1651
1651
  "type": "string",
1652
1652
  "required": true
1653
1653
  },
1654
1654
  "style": {
1655
- "description": "Inline style object (BaseComponentProps).",
1655
+ "description": "Inline styles on the root chatbot container.",
1656
1656
  "type": "CSSProperties",
1657
1657
  "required": true
1658
1658
  },
1659
- "control": {
1660
- "description": "",
1661
- "type": "unknown",
1662
- "required": true
1663
- },
1664
1659
  "table": {
1665
1660
  "description": "",
1666
1661
  "type": "string",
1667
1662
  "required": true
1668
1663
  },
1669
1664
  "userName": {
1670
- "description": "Display name used in greeting / new-chat screen.",
1665
+ "description": "Display name used in Iris / greeting copy (e.g. “Good Morning, {userName}”).",
1671
1666
  "type": "string",
1672
- "defaultValue": "undefined",
1673
- "required": false
1667
+ "required": true
1674
1668
  },
1675
1669
  "isChatBotOpen": {
1676
- "description": "Controls whether the chatbot modal is visible.",
1670
+ "description": "**Required.** Controls whether the chatbot panel is visible.",
1677
1671
  "type": "boolean",
1678
- "required": true
1672
+ "defaultValue": "—",
1673
+ "required": false
1679
1674
  },
1680
1675
  "setIsChatBotOpen": {
1681
- "description": "Setter for open state. Called with `false` on close.",
1676
+ "description": "**Required.** Setter for open state (host-controlled).",
1682
1677
  "type": "(open: boolean) => void",
1683
- "defaultValue": "required",
1684
- "required": false
1678
+ "required": true
1685
1679
  },
1686
1680
  "onClose": {
1687
- "description": "Optional callback after chatbot closes.",
1681
+ "description": "Called when the user closes the chatbot (X / close control).",
1688
1682
  "type": "() => void",
1689
- "defaultValue": "undefined",
1683
+ "required": true
1684
+ },
1685
+ "isFullWidth": {
1686
+ "description": "When true, docks near full viewport width (minus margins).",
1687
+ "type": "boolean",
1688
+ "defaultValue": "false",
1690
1689
  "required": false
1691
1690
  },
1692
- "conversation": {
1693
- "description": "Conversation payload from the API.\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>conversations</strong>: Record&lt;id, ConversationThread&gt;</li>\n <ul class=\"storybook-order-child-list\">\n <li><strong>messages</strong>: ChatMessage[]</li>\n <li><strong>id / name / timestamp</strong>: optional metadata</li>\n </ul>\n </ul>\n</code>",
1694
- "type": "ConversationPayload",
1695
- "defaultValue": "{",
1691
+ "defaultCollapsed": {
1692
+ "description": "Start in collapsed floating mode (410×490). Drag header to move; edge handles resize.",
1693
+ "type": "boolean",
1694
+ "defaultValue": "false",
1696
1695
  "required": false
1697
1696
  },
1698
- "solution": {
1699
- "description": "Optional solution context passed through by host apps.",
1700
- "type": "unknown",
1697
+ "onMinimiseChatBot": {
1698
+ "description": "Called when the user minimises / collapses the panel.",
1699
+ "type": "() => void",
1701
1700
  "required": true
1702
1701
  },
1703
- "formComponent": {
1704
- "description": "React node rendered for form-type bot messages / demos.",
1705
- "type": "ReactNode",
1702
+ "onChatBotResize": {
1703
+ "description": "Called with the new width when the panel is resized.",
1704
+ "type": "(width: number) => void",
1706
1705
  "required": true
1707
1706
  },
1708
- "tableComponent": {
1709
- "description": "React node rendered for table-type bot messages.",
1710
- "type": "ReactNode",
1707
+ "footerText": {
1708
+ "description": "Footer disclaimer. Defaults to `chatBot.footerText` (classic) or `chatBot.irisFooterText` (Iris / newChatScreen).",
1709
+ "type": "string",
1711
1710
  "required": true
1712
1711
  },
1713
- "preDefinedQuestions": {
1714
- "description": "Bookmark panel — predefined questions.\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>question</strong>: string</li>\n </ul>\n</code>",
1715
- "type": "BookmarkQuestion[]",
1716
- "defaultValue": "undefined",
1717
- "required": false
1718
- },
1719
- "addedByYouQuestions": {
1720
- "description": "Bookmark panel — user-saved questions (`{ question }[]`).",
1721
- "type": "BookmarkQuestion[]",
1722
- "defaultValue": "undefined",
1723
- "required": false
1724
- },
1725
- "onSendIconClick": {
1726
- "description": "Fired when user sends a message. `(message, activeList?, uniqueId?) => void`. Host should call the chat API and update `conversation`.",
1727
- "type": "(message: ChatMessage, activeList?: string, uniqueId?: string | number) => void",
1712
+ "onFooterLinkClick": {
1713
+ "description": "Called when the footer “learn more” (or host link) is clicked.",
1714
+ "type": "() => void",
1728
1715
  "required": true
1729
1716
  },
1730
- "assistantChats": {
1731
- "description": "Optional assistant-side chat buffer (host-managed).",
1732
- "type": "ChatMessage[]",
1733
- "defaultValue": [],
1717
+ "landingScreen": {
1718
+ "description": "Show the ChatBot landing intro instead of conversation / Iris greeting.",
1719
+ "type": "boolean",
1720
+ "defaultValue": "false",
1734
1721
  "required": false
1735
1722
  },
1736
- "isAssistantThinking": {
1737
- "description": "Shows the assistant typing/thinking loader in conversation view.",
1723
+ "newChatScreen": {
1724
+ "description": "Iris mode: greeting + suggested prompts + composer when conversation is empty; Iris thread UI once messages exist.",
1738
1725
  "type": "boolean",
1739
1726
  "defaultValue": "false",
1740
1727
  "required": false
1741
1728
  },
1742
- "moduleList": {
1743
- "description": "Modules shown in module menu.\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>id / key / name / label</strong></li>\n <li><strong>description</strong>, <strong>icon</strong>, <strong>isActive</strong></li>\n <li><strong>isInitialClickPresent</strong>, <strong>tabName</strong>, <strong>initialClick</strong></li>\n </ul>\n</code>",
1744
- "type": "ModuleItem[]",
1745
- "defaultValue": [],
1729
+ "isCustomScreen": {
1730
+ "description": "Render `customScreenJsx` instead of the built-in conversation / Iris screens.",
1731
+ "type": "boolean",
1732
+ "defaultValue": "false",
1746
1733
  "required": false
1747
1734
  },
1748
- "onModuleClick": {
1749
- "description": "`(moduleId?, moduleName?, activeList?) => void` — select a module.",
1750
- "type": "(moduleId?: string | number, moduleName?: string, activeList?: string) => void",
1751
- "required": true
1752
- },
1753
- "tabList": {
1754
- "description": "Custom left-rail tabs (replaces default bookmark/history/page/notification when provided).\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>key / name / label / icon</strong></li>\n <li><strong>isActive / initialClick / onClick</strong></li>\n </ul>\n</code>",
1755
- "type": "TabItem[]",
1735
+ "customScreenJsx": {
1736
+ "description": "Host JSX for custom screen mode.",
1737
+ "type": "ReactNode",
1756
1738
  "required": true
1757
1739
  },
1758
- "handleSavedChat": {
1759
- "description": "Callback when saved/bookmark chat action is triggered from module menu.",
1760
- "type": "() => void",
1740
+ "conversation": {
1741
+ "description": "`ConversationPayload`: `{ conversations?: Record<string, { messages?: ChatMessage[] }> }`. See component docs for `ChatMessage` keys.",
1742
+ "type": "ConversationPayload",
1761
1743
  "required": true
1762
1744
  },
1763
- "threadList": {
1764
- "description": "Thread labels shown in module menu.",
1765
- "type": "string[]",
1745
+ "inputText": {
1746
+ "description": "Initial composer input value.",
1747
+ "type": "string",
1766
1748
  "required": true
1767
1749
  },
1768
- "activeThread": {
1769
- "description": "Currently selected thread name.",
1770
- "type": "string | null",
1771
- "defaultValue": "null",
1750
+ "isAssistantThinking": {
1751
+ "description": "Shows the in-progress assistant thinking indicator.",
1752
+ "type": "boolean",
1753
+ "defaultValue": "false",
1772
1754
  "required": false
1773
1755
  },
1774
- "isCustomScreen": {
1775
- "description": "When true, renders `customScreenJsx` instead of chat/new-chat body.",
1756
+ "thinking": {
1757
+ "description": "Host-driven Iris thinking UI (`IrisThinkingState`: phase, statusLabel, title, steps, citations, toggle callbacks).",
1758
+ "type": "IrisThinkingState",
1759
+ "required": true
1760
+ },
1761
+ "isStopIcon": {
1762
+ "description": "Swap send for stop while a response is streaming / thinking.",
1776
1763
  "type": "boolean",
1777
1764
  "defaultValue": "false",
1778
1765
  "required": false
1779
1766
  },
1780
- "customScreenJsx": {
1781
- "description": "Custom body content when `isCustomScreen` is true.",
1767
+ "formComponent": {
1768
+ "description": "Default form body node for messages with `bodyType:",
1782
1769
  "type": "ReactNode",
1783
1770
  "required": true
1784
1771
  },
1785
- "onLikeClick": {
1786
- "description": "`(chat, idx) => void` — like a bot message.",
1787
- "type": "(chat: ChatMessage, idx: number) => void",
1772
+ "tableComponent": {
1773
+ "description": "Default table body node for messages with `bodyType:",
1774
+ "type": "ReactNode",
1788
1775
  "required": true
1789
1776
  },
1790
- "onDislikeClick": {
1791
- "description": "`(chat, idx) => void` — dislike a bot message.",
1792
- "type": "(chat: ChatMessage, idx: number) => void",
1777
+ "customInputComponent": {
1778
+ "description": "Replace the default composer input with custom JSX.",
1779
+ "type": "ReactNode",
1793
1780
  "required": true
1794
1781
  },
1795
- "handleNewChatClick": {
1796
- "description": "Called when New Chat is clicked. May return `{ isInitialClickPresent, tabName }` to activate a tab.",
1797
- "type": "(item?: TabItem) => { isInitialClickPresent?: boolean; tabName?: string } | void",
1782
+ "defaultAssistantActions": {
1783
+ "description": "Default Iris assistant action keys when a message has neither `actions` nor matching `enable*` flags. Keys: `",
1784
+ "type": "IrisAssistantActionKey[]",
1798
1785
  "required": true
1799
1786
  },
1800
- "inputText": {
1801
- "description": "Controlled seed value for the chat input.",
1802
- "type": "string",
1787
+ "showSuggestionBanner": {
1788
+ "description": "Show the suggestion banner above the classic composer.",
1789
+ "type": "boolean",
1790
+ "defaultValue": "false",
1791
+ "required": false
1792
+ },
1793
+ "suggestionBanner": {
1794
+ "description": "`{ freeTextHeading?, freeTextContent? }`. Defaults to `chatBot.suggestionBanner.*` i18n keys.",
1795
+ "type": "SuggestionBanner",
1803
1796
  "required": true
1804
1797
  },
1805
- "handleRefresh": {
1806
- "description": "Refresh / regenerate action from the input toolbar.",
1798
+ "onCloseSuggestionBanner": {
1799
+ "description": "Called when the user dismisses the suggestion banner.",
1807
1800
  "type": "() => void",
1808
1801
  "required": true
1809
1802
  },
1810
- "handleMicClick": {
1811
- "description": "Microphone / voice input action.",
1812
- "type": "() => void",
1803
+ "moduleList": {
1804
+ "description": "Classic left-rail modules. Each item: `{ id?, key?, name?, label?, description?, icon?, isActive?, initialClick?, onClick?, ... }`.",
1805
+ "type": "ModuleItem[]",
1813
1806
  "required": true
1814
1807
  },
1815
- "hideMenuArrow": {
1816
- "description": "Hides the module-menu expand arrow.",
1808
+ "isModuleListLoading": {
1809
+ "description": "Loading state for the module list.",
1817
1810
  "type": "boolean",
1818
1811
  "defaultValue": "false",
1819
1812
  "required": false
1820
1813
  },
1821
- "newChatScreen": {
1822
- "description": "Force the new-chat greeting screen on open.",
1823
- "type": "boolean",
1824
- "defaultValue": "false",
1825
- "required": false
1814
+ "onModuleClick": {
1815
+ "description": "`(moduleId?, moduleName?, activeList?) => void` when a module is selected.",
1816
+ "type": "(moduleId?: string | number, moduleName?: string, activeList?: string) => void",
1817
+ "required": true
1826
1818
  },
1827
- "isModuleListLoading": {
1828
- "description": "Loading state for modules list.",
1819
+ "tabList": {
1820
+ "description": "Optional host tab workspaces instead of default left-rail items. Built-in keys: `newchat`, `bookmark`, `history`, `page`, `notification`.",
1821
+ "type": "TabItem[]",
1822
+ "required": true
1823
+ },
1824
+ "hideMenuArrow": {
1825
+ "description": "Hide the module menu expand arrow.",
1829
1826
  "type": "boolean",
1830
1827
  "defaultValue": "false",
1831
1828
  "required": false
1832
1829
  },
1833
- "suggestionBanner": {
1834
- "description": "Suggestion banner copy.\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>freeTextHeading</strong></li>\n <li><strong>freeTextContent</strong></li>\n </ul>\n</code>",
1835
- "type": "SuggestionBanner",
1830
+ "utilityList": {
1831
+ "description": "Extra utility icons in the left rail: `{ key: string; icon?; onClick? }[]`.",
1832
+ "type": "UtilityItem[]",
1836
1833
  "required": true
1837
1834
  },
1838
- "isStopIcon": {
1839
- "description": "Swap send for stop while a response is generating.",
1840
- "type": "boolean",
1841
- "defaultValue": "false",
1835
+ "threadList": {
1836
+ "description": "Thread tab labels shown in the classic header.",
1837
+ "type": "string[]",
1838
+ "required": true
1839
+ },
1840
+ "activeThread": {
1841
+ "description": "Currently selected thread name, or `null`.",
1842
+ "type": "string | null",
1843
+ "defaultValue": "null",
1842
1844
  "required": false
1843
1845
  },
1844
- "onStopIconClick": {
1845
- "description": "`(activeList?) => void` — cancel in-flight generation.",
1846
- "type": "(activeList?: string) => void",
1846
+ "handleThreadClick": {
1847
+ "description": "`(thread, idx) => void` when a thread tab is clicked.",
1848
+ "type": "(thread: string, idx: number) => void",
1847
1849
  "required": true
1848
1850
  },
1849
- "landingScreen": {
1850
- "description": "Show the landing/empty Iris intro screen instead of chat UI.",
1851
- "type": "boolean",
1852
- "defaultValue": "false",
1853
- "required": false
1851
+ "handleCloseThread": {
1852
+ "description": "`(e, idx) => void` when a thread close control is clicked.",
1853
+ "type": "(e: MouseEvent, idx: number) => void",
1854
+ "required": true
1854
1855
  },
1855
- "footerText": {
1856
- "description": "Footer disclaimer under the chat body.",
1857
- "type": "string",
1856
+ "handleNewChatClick": {
1857
+ "description": "New-chat handler. May return `{ isInitialClickPresent?, tabName? }` to restore tab state.",
1858
+ "type": "(item?: TabItem) => { isInitialClickPresent?: boolean; tabName?: string } | void",
1858
1859
  "required": true
1859
1860
  },
1860
- "onCloseSuggestionBanner": {
1861
- "description": "Dismiss suggestion banner.",
1861
+ "preDefinedQuestions": {
1862
+ "description": "Bookmark panel — predefined questions: `{ question: string }[]`.",
1863
+ "type": "BookmarkQuestion[]",
1864
+ "required": true
1865
+ },
1866
+ "addedByYouQuestions": {
1867
+ "description": "Bookmark panel — user-added questions: `{ question: string }[]`.",
1868
+ "type": "BookmarkQuestion[]",
1869
+ "required": true
1870
+ },
1871
+ "handleSavedChat": {
1872
+ "description": "Called when the user opens / manages saved chats from the module menu.",
1862
1873
  "type": "() => void",
1863
1874
  "required": true
1864
1875
  },
1865
- "showSuggestionBanner": {
1866
- "description": "Toggle suggestion banner visibility.",
1876
+ "handleSaveChat": {
1877
+ "description": "Called when the user saves the current chat.",
1878
+ "type": "() => void",
1879
+ "required": true
1880
+ },
1881
+ "showHistoryPanel": {
1882
+ "description": "Whether the history side panel can open from the left rail.",
1867
1883
  "type": "boolean",
1868
1884
  "defaultValue": "true",
1869
1885
  "required": false
1870
1886
  },
1871
- "utilityList": {
1872
- "description": "Bottom utility icons in the left rail.\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>key</strong>: string (required)</li>\n <li><strong>icon</strong>: ReactNode | CDN URL string</li>\n <li><strong>onClick</strong>: () =&gt; void</li>\n </ul>\n</code>",
1873
- "type": "UtilityItem[]",
1874
- "defaultValue": [],
1887
+ "historyPanelData": {
1888
+ "description": "`HistoryPanelGroup[]` or `{ pinned?, groups? }`. Item keys: `conversation_id`, `name`, `module_name`, `pinned`.",
1889
+ "type": "HistoryPanelInput",
1890
+ "required": true
1891
+ },
1892
+ "activeConversationId": {
1893
+ "description": "Highlights the active conversation in the history list.",
1894
+ "type": "string | number",
1895
+ "required": true
1896
+ },
1897
+ "isConversationLoading": {
1898
+ "description": "Loading state while a history conversation is fetched.",
1899
+ "type": "boolean",
1900
+ "defaultValue": "false",
1875
1901
  "required": false
1876
1902
  },
1877
- "customInputComponent": {
1878
- "description": "Replace the default ChatInput with a custom node.",
1879
- "type": "ReactNode",
1903
+ "historyOpenGroups": {
1904
+ "description": "Controlled map of history group name → open boolean.",
1905
+ "type": "Record<string, boolean>",
1880
1906
  "required": true
1881
1907
  },
1882
1908
  "onHistoryPanelClick": {
1883
- "description": "`(item?, open?) => void` when history panel opens/closes.",
1909
+ "description": "`(item?, open?) => void` when history is opened / closed from the rail.",
1884
1910
  "type": "(item?: TabItem, open?: boolean) => void",
1885
1911
  "required": true
1886
1912
  },
1887
- "historyPanelData": {
1888
- "description": "History panel payload from API.\n<code>\n <ul class=\"storybook-order-list\">\n <li>Array of groups: <strong>group_name</strong>, <strong>conversation_list</strong></li>\n <li>Or object: <strong>pinned</strong>, <strong>groups</strong></li>\n <li>Conversation item keys: <strong>conversation_id</strong>, <strong>name</strong>, <strong>module_name</strong>, <strong>pinned</strong></li>\n </ul>\n</code>",
1889
- "type": "HistoryPanelInput",
1890
- "defaultValue": [],
1891
- "required": false
1892
- },
1893
1913
  "onHistorySearchChange": {
1894
- "description": "`(value: string) => void` — search history. Call your search API here.",
1914
+ "description": "`(value: string) => void` as the user types in history search.",
1895
1915
  "type": "(value: string) => void",
1896
1916
  "required": true
1897
1917
  },
1898
1918
  "onHistorySelectConversation": {
1899
- "description": "`(item) => void` — load conversation by id. Call GET conversation API and set `conversation`.",
1919
+ "description": "`(item: HistoryConversationItem) => void` when a history row is selected.",
1900
1920
  "type": "(item: HistoryConversationItem) => void",
1901
1921
  "required": true
1902
1922
  },
1903
1923
  "onHistoryToggleGroup": {
1904
- "description": "`(name, open) => void` — expand/collapse a history group.",
1924
+ "description": "`(name, open) => void` when a history group accordion toggles.",
1905
1925
  "type": "(name: string, open: boolean) => void",
1906
1926
  "required": true
1907
1927
  },
1908
- "historyOpenGroups": {
1909
- "description": "Controlled map of open history groups `{ [groupName]: boolean }`.",
1910
- "type": "Record<string, boolean>",
1911
- "required": true
1912
- },
1913
1928
  "onHistoryMenuAction": {
1914
- "description": "`(action, item) => void` — share | rename | pin | unpin | delete. Call the matching history API.",
1929
+ "description": "Overflow actions: `",
1915
1930
  "type": "(action: string, item: HistoryConversationItem) => void",
1916
1931
  "required": true
1917
1932
  },
1918
- "showHistoryPanel": {
1919
- "description": "Include the mandatory History tab in the left rail.",
1920
- "type": "boolean",
1921
- "defaultValue": "true",
1922
- "required": false
1933
+ "suggestedPrompts": {
1934
+ "description": "Iris greeting chips: `{ id: string; label: string }[]`.",
1935
+ "type": "SuggestedPrompt[]",
1936
+ "required": true
1923
1937
  },
1924
- "isFullWidth": {
1925
- "description": "Stretch chatbot to almost full viewport width.",
1926
- "type": "boolean",
1927
- "defaultValue": "false",
1928
- "required": false
1938
+ "onSuggestedPromptClick": {
1939
+ "description": "`(prompt: SuggestedPrompt) => void` when a suggested chip is clicked.",
1940
+ "type": "(prompt: SuggestedPrompt) => void",
1941
+ "required": true
1929
1942
  },
1930
- "activeConversationId": {
1931
- "description": "Highlights the active conversation in history.",
1932
- "type": "string | number",
1943
+ "modelOptions": {
1944
+ "description": "Composer model select options: `{ label, value }[]`.",
1945
+ "type": "ChatModelOption[]",
1933
1946
  "required": true
1934
1947
  },
1935
- "handleCloseThread": {
1936
- "description": "`(e, idx) => void` — close a thread chip.",
1937
- "type": "(e: MouseEvent, idx: number) => void",
1948
+ "selectedModel": {
1949
+ "description": "Controlled selected model value.",
1950
+ "type": "string",
1938
1951
  "required": true
1939
1952
  },
1940
- "handleThreadClick": {
1941
- "description": "`(thread, idx) => void` — select a thread.",
1942
- "type": "(thread: string, idx: number) => void",
1953
+ "onModelChange": {
1954
+ "description": "`(value: string) => void` when the model select changes.",
1955
+ "type": "(value: string) => void",
1943
1956
  "required": true
1944
1957
  },
1945
- "onMinimiseChatBot": {
1946
- "description": "Minimize chatbot to a collapsed state (host-managed).",
1958
+ "artifacts": {
1959
+ "description": "Iris Menu → Artifacts list: `{ id: string | number; name: string }[]`.",
1960
+ "type": "IrisArtifactItem[]",
1961
+ "required": true
1962
+ },
1963
+ "onSelectArtifact": {
1964
+ "description": "`(item: IrisArtifactItem) => void` when an artifact row is selected.",
1965
+ "type": "(item: IrisArtifactItem) => void",
1966
+ "required": true
1967
+ },
1968
+ "onIrisMenuFilterSelect": {
1969
+ "description": "`(section, option) => void`. Section: `",
1970
+ "type": "(section: IrisMenuSection, option: IrisMenuFilterOption) => void",
1971
+ "required": true
1972
+ },
1973
+ "onArtifactMenuAction": {
1974
+ "description": "`(action, item) => void`. Action keys: `",
1975
+ "type": "(action: IrisMenuItemAction, item: IrisArtifactItem) => void",
1976
+ "required": true
1977
+ },
1978
+ "onMenuClick": {
1979
+ "description": "Called when the Iris hamburger / menu control is clicked.",
1947
1980
  "type": "() => void",
1948
1981
  "required": true
1949
1982
  },
1950
- "onChatBotResize": {
1951
- "description": "`(width: number) => void` while the user drags the resizer.",
1952
- "type": "(width: number) => void",
1983
+ "onAddClick": {
1984
+ "description": "Iris composer “Add” (+) control.",
1985
+ "type": "() => void",
1953
1986
  "required": true
1954
1987
  },
1955
- "handleSaveChat": {
1956
- "description": "Persist / save current chat from the input toolbar.",
1988
+ "onAttachClick": {
1989
+ "description": "Iris composer attach-file control.",
1990
+ "type": "() => void",
1991
+ "required": true
1992
+ },
1993
+ "onSendIconClick": {
1994
+ "description": "`(message, activeList?, uniqueId?) => void` when the user sends. Host appends the user message and drives the assistant reply via `conversation` / `thinking`.",
1995
+ "type": "(message: ChatMessage, activeList?: string, uniqueId?: string | number) => void",
1996
+ "required": true
1997
+ },
1998
+ "onStopIconClick": {
1999
+ "description": "`(activeList?) => void` when the user stops an in-flight response.",
2000
+ "type": "(activeList?: string) => void",
2001
+ "required": true
2002
+ },
2003
+ "onLikeClick": {
2004
+ "description": "`(chat, idx) => void` when like is pressed on an assistant message.",
2005
+ "type": "(chat: ChatMessage, idx: number) => void",
2006
+ "required": true
2007
+ },
2008
+ "onDislikeClick": {
2009
+ "description": "`(chat, idx) => void` when dislike is pressed.",
2010
+ "type": "(chat: ChatMessage, idx: number) => void",
2011
+ "required": true
2012
+ },
2013
+ "onRegenerateClick": {
2014
+ "description": "`(chat, idx) => void` for Iris regenerate action.",
2015
+ "type": "(chat: ChatMessage, idx: number) => void",
2016
+ "required": true
2017
+ },
2018
+ "onSpeakClick": {
2019
+ "description": "`(chat, idx) => void` for Iris read-aloud action.",
2020
+ "type": "(chat: ChatMessage, idx: number) => void",
2021
+ "required": true
2022
+ },
2023
+ "onRevertClick": {
2024
+ "description": "`(chat, idx) => void` for Iris “Revert Response”.",
2025
+ "type": "(chat: ChatMessage, idx: number) => void",
2026
+ "required": true
2027
+ },
2028
+ "handleRefresh": {
2029
+ "description": "Refresh / regenerate from the classic composer toolbar.",
2030
+ "type": "() => void",
2031
+ "required": true
2032
+ },
2033
+ "handleMicClick": {
2034
+ "description": "Microphone control on the composer.",
1957
2035
  "type": "() => void",
1958
2036
  "required": true
1959
2037
  }
1960
2038
  },
1961
- "storyArgs": {
1962
- "MultiLanguage": {
1963
- "newChatScreen": true
1964
- }
1965
- },
2039
+ "storyArgs": {},
1966
2040
  "storyFile": "src/stories/ChatBot.stories.tsx"
1967
2041
  },
1968
2042
  "Checkbox": {
@@ -5405,7 +5479,7 @@
5405
5479
  "rowBuffer": 8,
5406
5480
  "animateRows": false,
5407
5481
  "enableValueCache": false,
5408
- "domLayout": "autoHeight"
5482
+ "domLayout": "normal"
5409
5483
  },
5410
5484
  "HeavyCellRenderer": {
5411
5485
  "rowCount": 10000,
@@ -5512,11 +5586,6 @@
5512
5586
  "defaultValue": [],
5513
5587
  "required": false
5514
5588
  },
5515
- "height": {
5516
- "description": "Grid area height in px. Omit for ~500px total (minus table header + card container vertical padding).",
5517
- "type": "number | string",
5518
- "required": true
5519
- },
5520
5589
  "rowHeight": {
5521
5590
  "description": "You can choose different height of the Row of the Table.",
5522
5591
  "type": "string",