impact-ui 5.0.4-chatbot.1 → 5.0.5

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