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.
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +2 -4
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Chatbot/Chatbot.types.d.ts +18 -191
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/chatBotFooter.d.ts +1 -1
- package/dist/components/Chatbot/chatBotFooter.d.ts.map +1 -1
- package/dist/components/Chatbot/chatBotFooter.js +4 -21
- package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
- package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/conversationScreen.js +3 -5
- package/dist/components/Chatbot/index.d.ts +2 -2
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +50 -100
- package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +70 -387
- package/dist/components/DatePicker/DatePicker.types.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.d.ts +2 -0
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +32 -2
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +5 -1
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.js +2 -0
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.js +2 -0
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Menu/IconMenuItem.js +1 -1
- package/dist/components/Menu/NestedMenuItem.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Select/Select.types.d.ts +7 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +44 -26
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +107 -115
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/locales/de-DE.json.d.ts +0 -51
- package/dist/locales/de-DE.json.js +0 -51
- package/dist/locales/en-US.json.d.ts +0 -51
- package/dist/locales/en-US.json.js +0 -51
- package/dist/locales/es-ES.json.d.ts +0 -51
- package/dist/locales/es-ES.json.js +0 -51
- package/dist/mcp-component-registry.json +182 -256
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +10 -30
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/package.json +2 -2
- package/dist/_virtual/ArrowBack.js +0 -4
- package/dist/_virtual/AttachFileOutlined.js +0 -4
- package/dist/_virtual/ContentCopyOutlined.js +0 -4
- package/dist/_virtual/Menu.js +0 -4
- package/dist/_virtual/NorthRounded.js +0 -4
- package/dist/_virtual/RefreshOutlined.js +0 -4
- package/dist/_virtual/StopRounded.js +0 -4
- package/dist/_virtual/ThumbDownOutlined.js +0 -4
- package/dist/_virtual/ThumbUpOutlined.js +0 -4
- package/dist/_virtual/VolumeUpOutlined.js +0 -4
- package/dist/components/Chatbot/chatbotComposer.d.ts +0 -4
- package/dist/components/Chatbot/chatbotComposer.d.ts.map +0 -1
- package/dist/components/Chatbot/chatbotComposer.js +0 -226
- package/dist/components/Chatbot/chatbotGreetingHeader.d.ts +0 -4
- package/dist/components/Chatbot/chatbotGreetingHeader.d.ts.map +0 -1
- package/dist/components/Chatbot/chatbotGreetingHeader.js +0 -213
- package/dist/components/Chatbot/irisConversationThread.d.ts +0 -24
- package/dist/components/Chatbot/irisConversationThread.d.ts.map +0 -1
- package/dist/components/Chatbot/irisConversationThread.js +0 -470
- package/dist/components/Chatbot/irisGreetingBackdrop.d.ts +0 -5
- package/dist/components/Chatbot/irisGreetingBackdrop.d.ts.map +0 -1
- package/dist/components/Chatbot/irisGreetingBackdrop.js +0 -62
- package/dist/components/Chatbot/irisMenuListItem.d.ts +0 -11
- package/dist/components/Chatbot/irisMenuListItem.d.ts.map +0 -1
- package/dist/components/Chatbot/irisMenuListItem.js +0 -126
- package/dist/components/Chatbot/irisMenuScreen.d.ts +0 -4
- package/dist/components/Chatbot/irisMenuScreen.d.ts.map +0 -1
- package/dist/components/Chatbot/irisMenuScreen.js +0 -311
- package/dist/components/Chatbot/irisThinking.d.ts +0 -7
- package/dist/components/Chatbot/irisThinking.d.ts.map +0 -1
- package/dist/components/Chatbot/irisThinking.js +0 -219
- package/dist/node_modules/@mui/icons-material/ArrowBack.js +0 -17
- package/dist/node_modules/@mui/icons-material/AttachFileOutlined.js +0 -17
- package/dist/node_modules/@mui/icons-material/ContentCopyOutlined.js +0 -17
- package/dist/node_modules/@mui/icons-material/Menu.js +0 -17
- package/dist/node_modules/@mui/icons-material/NorthRounded.js +0 -17
- package/dist/node_modules/@mui/icons-material/RefreshOutlined.js +0 -17
- package/dist/node_modules/@mui/icons-material/StopRounded.js +0 -17
- package/dist/node_modules/@mui/icons-material/ThumbDownOutlined.js +0 -17
- package/dist/node_modules/@mui/icons-material/ThumbUpOutlined.js +0 -17
- package/dist/node_modules/@mui/icons-material/VolumeUpOutlined.js +0 -17
- package/dist/stories/chatBotApiMock.d.ts +0 -476
- package/dist/stories/chatBotApiMock.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generatedAt": "2026-11-
|
|
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": "
|
|
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
|
|
1645
|
+
"description": "Stable DOM id for automation / aria references.",
|
|
1646
1646
|
"type": "string",
|
|
1647
1647
|
"required": true
|
|
1648
1648
|
},
|
|
1649
1649
|
"className": {
|
|
1650
|
-
"description": "
|
|
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
|
|
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
|
|
1670
|
+
"description": "Display name used in greeting / new-chat screen.",
|
|
1666
1671
|
"type": "string",
|
|
1667
|
-
"
|
|
1672
|
+
"defaultValue": "undefined",
|
|
1673
|
+
"required": false
|
|
1668
1674
|
},
|
|
1669
1675
|
"isChatBotOpen": {
|
|
1670
|
-
"description": "
|
|
1676
|
+
"description": "Controls whether the chatbot modal is visible.",
|
|
1671
1677
|
"type": "boolean",
|
|
1672
|
-
"
|
|
1673
|
-
"required": false
|
|
1678
|
+
"required": true
|
|
1674
1679
|
},
|
|
1675
1680
|
"setIsChatBotOpen": {
|
|
1676
|
-
"description": "
|
|
1681
|
+
"description": "Setter for open state. Called with `false` on close.",
|
|
1677
1682
|
"type": "(open: boolean) => void",
|
|
1678
|
-
"
|
|
1683
|
+
"defaultValue": "required",
|
|
1684
|
+
"required": false
|
|
1679
1685
|
},
|
|
1680
1686
|
"onClose": {
|
|
1681
|
-
"description": "
|
|
1687
|
+
"description": "Optional callback after chatbot closes.",
|
|
1682
1688
|
"type": "() => void",
|
|
1683
|
-
"
|
|
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
|
-
"
|
|
1692
|
-
"description": "
|
|
1693
|
-
"type": "
|
|
1694
|
-
"defaultValue": "
|
|
1692
|
+
"conversation": {
|
|
1693
|
+
"description": "Conversation payload from the API.\n<code>\n <ul class=\"storybook-order-list\">\n <li><strong>conversations</strong>: Record<id, ConversationThread></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
|
-
"
|
|
1698
|
-
"description": "
|
|
1699
|
-
"type": "
|
|
1698
|
+
"solution": {
|
|
1699
|
+
"description": "Optional solution context passed through by host apps.",
|
|
1700
|
+
"type": "unknown",
|
|
1700
1701
|
"required": true
|
|
1701
1702
|
},
|
|
1702
|
-
"
|
|
1703
|
-
"description": "
|
|
1704
|
-
"type": "
|
|
1703
|
+
"formComponent": {
|
|
1704
|
+
"description": "React node rendered for form-type bot messages / demos.",
|
|
1705
|
+
"type": "ReactNode",
|
|
1705
1706
|
"required": true
|
|
1706
1707
|
},
|
|
1707
|
-
"
|
|
1708
|
-
"description": "
|
|
1709
|
-
"type": "
|
|
1708
|
+
"tableComponent": {
|
|
1709
|
+
"description": "React node rendered for table-type bot messages.",
|
|
1710
|
+
"type": "ReactNode",
|
|
1710
1711
|
"required": true
|
|
1711
1712
|
},
|
|
1712
|
-
"
|
|
1713
|
-
"description": "
|
|
1714
|
-
"type": "
|
|
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
|
-
"
|
|
1718
|
-
"description": "
|
|
1719
|
-
"type": "
|
|
1720
|
-
"defaultValue":
|
|
1730
|
+
"assistantChats": {
|
|
1731
|
+
"description": "Optional assistant-side chat buffer (host-managed).",
|
|
1732
|
+
"type": "ChatMessage[]",
|
|
1733
|
+
"defaultValue": [],
|
|
1721
1734
|
"required": false
|
|
1722
1735
|
},
|
|
1723
|
-
"
|
|
1724
|
-
"description": "
|
|
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
|
-
"
|
|
1730
|
-
"description": "
|
|
1731
|
-
"type": "
|
|
1732
|
-
"defaultValue":
|
|
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
|
-
"
|
|
1736
|
-
"description": "
|
|
1737
|
-
"type": "
|
|
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
|
-
"
|
|
1741
|
-
"description": "
|
|
1742
|
-
"type": "
|
|
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
|
-
"
|
|
1746
|
-
"description": "
|
|
1747
|
-
"type": "
|
|
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
|
-
"
|
|
1751
|
-
"description": "
|
|
1752
|
-
"type": "
|
|
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
|
-
"
|
|
1762
|
-
"description": "
|
|
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
|
-
"
|
|
1768
|
-
"description": "
|
|
1780
|
+
"customScreenJsx": {
|
|
1781
|
+
"description": "Custom body content when `isCustomScreen` is true.",
|
|
1769
1782
|
"type": "ReactNode",
|
|
1770
1783
|
"required": true
|
|
1771
1784
|
},
|
|
1772
|
-
"
|
|
1773
|
-
"description": "
|
|
1774
|
-
"type": "
|
|
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
|
-
"
|
|
1778
|
-
"description": "
|
|
1779
|
-
"type": "
|
|
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
|
-
"
|
|
1783
|
-
"description": "
|
|
1784
|
-
"type": "
|
|
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
|
-
"
|
|
1788
|
-
"description": "
|
|
1789
|
-
"type": "
|
|
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
|
-
"
|
|
1799
|
-
"description": "
|
|
1805
|
+
"handleRefresh": {
|
|
1806
|
+
"description": "Refresh / regenerate action from the input toolbar.",
|
|
1800
1807
|
"type": "() => void",
|
|
1801
1808
|
"required": true
|
|
1802
1809
|
},
|
|
1803
|
-
"
|
|
1804
|
-
"description": "
|
|
1805
|
-
"type": "
|
|
1810
|
+
"handleMicClick": {
|
|
1811
|
+
"description": "Microphone / voice input action.",
|
|
1812
|
+
"type": "() => void",
|
|
1806
1813
|
"required": true
|
|
1807
1814
|
},
|
|
1808
|
-
"
|
|
1809
|
-
"description": "
|
|
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
|
-
"
|
|
1815
|
-
"description": "
|
|
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
|
-
"
|
|
1831
|
-
"description": "
|
|
1832
|
-
"type": "
|
|
1833
|
-
"
|
|
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
|
-
"
|
|
1847
|
-
"description": "
|
|
1848
|
-
"type": "
|
|
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
|
-
"
|
|
1857
|
-
"description": "
|
|
1858
|
-
"type": "
|
|
1859
|
-
"
|
|
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
|
-
"
|
|
1862
|
-
"description": "
|
|
1863
|
-
"type": "
|
|
1844
|
+
"onStopIconClick": {
|
|
1845
|
+
"description": "`(activeList?) => void` — cancel in-flight generation.",
|
|
1846
|
+
"type": "(activeList?: string) => void",
|
|
1864
1847
|
"required": true
|
|
1865
1848
|
},
|
|
1866
|
-
"
|
|
1867
|
-
"description": "
|
|
1868
|
-
"type": "
|
|
1869
|
-
"
|
|
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
|
-
"
|
|
1872
|
-
"description": "
|
|
1873
|
-
"type": "
|
|
1855
|
+
"footerText": {
|
|
1856
|
+
"description": "Footer disclaimer under the chat body.",
|
|
1857
|
+
"type": "string",
|
|
1874
1858
|
"required": true
|
|
1875
1859
|
},
|
|
1876
|
-
"
|
|
1877
|
-
"description": "
|
|
1860
|
+
"onCloseSuggestionBanner": {
|
|
1861
|
+
"description": "Dismiss suggestion banner.",
|
|
1878
1862
|
"type": "() => void",
|
|
1879
1863
|
"required": true
|
|
1880
1864
|
},
|
|
1881
|
-
"
|
|
1882
|
-
"description": "
|
|
1865
|
+
"showSuggestionBanner": {
|
|
1866
|
+
"description": "Toggle suggestion banner visibility.",
|
|
1883
1867
|
"type": "boolean",
|
|
1884
1868
|
"defaultValue": "true",
|
|
1885
1869
|
"required": false
|
|
1886
1870
|
},
|
|
1887
|
-
"
|
|
1888
|
-
"description": "
|
|
1889
|
-
"type": "
|
|
1890
|
-
"
|
|
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>: () => void</li>\n </ul>\n</code>",
|
|
1873
|
+
"type": "UtilityItem[]",
|
|
1874
|
+
"defaultValue": [],
|
|
1901
1875
|
"required": false
|
|
1902
1876
|
},
|
|
1903
|
-
"
|
|
1904
|
-
"description": "
|
|
1905
|
-
"type": "
|
|
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
|
|
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`
|
|
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
|
|
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`
|
|
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
|
-
"
|
|
1929
|
-
"description": "
|
|
1930
|
-
"type": "
|
|
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
|
-
"
|
|
1959
|
-
"description": "
|
|
1960
|
-
"type": "
|
|
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
|
-
"
|
|
1964
|
-
"description": "
|
|
1965
|
-
"type": "
|
|
1966
|
-
"
|
|
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
|
-
"
|
|
1969
|
-
"description": "
|
|
1970
|
-
"type": "
|
|
1971
|
-
"
|
|
1924
|
+
"isFullWidth": {
|
|
1925
|
+
"description": "Stretch chatbot to almost full viewport width.",
|
|
1926
|
+
"type": "boolean",
|
|
1927
|
+
"defaultValue": "false",
|
|
1928
|
+
"required": false
|
|
1972
1929
|
},
|
|
1973
|
-
"
|
|
1974
|
-
"description": "
|
|
1975
|
-
"type": "
|
|
1930
|
+
"activeConversationId": {
|
|
1931
|
+
"description": "Highlights the active conversation in history.",
|
|
1932
|
+
"type": "string | number",
|
|
1976
1933
|
"required": true
|
|
1977
1934
|
},
|
|
1978
|
-
"
|
|
1979
|
-
"description": "
|
|
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
|
-
"
|
|
1984
|
-
"description": "
|
|
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
|
-
"
|
|
1989
|
-
"description": "
|
|
1945
|
+
"onMinimiseChatBot": {
|
|
1946
|
+
"description": "Minimize chatbot to a collapsed state (host-managed).",
|
|
1990
1947
|
"type": "() => void",
|
|
1991
1948
|
"required": true
|
|
1992
1949
|
},
|
|
1993
|
-
"
|
|
1994
|
-
"description": "`(
|
|
1995
|
-
"type": "(
|
|
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
|
-
"
|
|
2034
|
-
"description": "
|
|
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": {
|