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.
- package/dist/_virtual/ArrowBack.js +4 -0
- package/dist/_virtual/AttachFileOutlined.js +4 -0
- package/dist/_virtual/ContentCopyOutlined.js +4 -0
- package/dist/_virtual/Menu.js +4 -0
- package/dist/_virtual/NorthRounded.js +4 -0
- package/dist/_virtual/RefreshOutlined.js +4 -0
- package/dist/_virtual/StopRounded.js +4 -0
- package/dist/_virtual/ThumbDownOutlined.js +4 -0
- package/dist/_virtual/ThumbUpOutlined.js +4 -0
- package/dist/_virtual/VolumeUpOutlined.js +4 -0
- package/dist/_virtual/index10.js +3 -3
- package/dist/_virtual/index11.js +3 -3
- package/dist/_virtual/index12.js +3 -3
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +3 -3
- package/dist/_virtual/index7.js +3 -3
- package/dist/_virtual/index8.js +3 -3
- package/dist/_virtual/index9.js +3 -3
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Chatbot/Chatbot.types.d.ts +191 -18
- 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 +21 -4
- package/dist/components/Chatbot/chatbotComposer.d.ts +4 -0
- package/dist/components/Chatbot/chatbotComposer.d.ts.map +1 -0
- package/dist/components/Chatbot/chatbotComposer.js +226 -0
- package/dist/components/Chatbot/chatbotGreetingHeader.d.ts +4 -0
- package/dist/components/Chatbot/chatbotGreetingHeader.d.ts.map +1 -0
- package/dist/components/Chatbot/chatbotGreetingHeader.js +213 -0
- 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 +5 -3
- 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 +100 -50
- package/dist/components/Chatbot/irisConversationThread.d.ts +24 -0
- package/dist/components/Chatbot/irisConversationThread.d.ts.map +1 -0
- package/dist/components/Chatbot/irisConversationThread.js +470 -0
- package/dist/components/Chatbot/irisGreetingBackdrop.d.ts +5 -0
- package/dist/components/Chatbot/irisGreetingBackdrop.d.ts.map +1 -0
- package/dist/components/Chatbot/irisGreetingBackdrop.js +62 -0
- package/dist/components/Chatbot/irisMenuListItem.d.ts +11 -0
- package/dist/components/Chatbot/irisMenuListItem.d.ts.map +1 -0
- package/dist/components/Chatbot/irisMenuListItem.js +126 -0
- package/dist/components/Chatbot/irisMenuScreen.d.ts +4 -0
- package/dist/components/Chatbot/irisMenuScreen.d.ts.map +1 -0
- package/dist/components/Chatbot/irisMenuScreen.js +311 -0
- package/dist/components/Chatbot/irisThinking.d.ts +7 -0
- package/dist/components/Chatbot/irisThinking.d.ts.map +1 -0
- package/dist/components/Chatbot/irisThinking.js +219 -0
- 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 +387 -70
- 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/TableV36/Table.types.d.ts +8 -7
- package/dist/components/TableV36/Table.types.d.ts.map +1 -1
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +39 -110
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableV36/tableFunctions.js +15 -14
- package/dist/components/TableV36/tableUtils.d.ts +0 -14
- package/dist/components/TableV36/tableUtils.d.ts.map +1 -1
- package/dist/components/TableV36/tableUtils.js +0 -32
- 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 +51 -0
- package/dist/locales/de-DE.json.js +51 -0
- package/dist/locales/en-US.json.d.ts +51 -0
- package/dist/locales/en-US.json.js +51 -0
- package/dist/locales/es-ES.json.d.ts +51 -0
- package/dist/locales/es-ES.json.js +51 -0
- package/dist/mcp-component-registry.json +257 -188
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +280 -48
- package/dist/node_modules/@mui/icons-material/ArrowBack.js +17 -0
- package/dist/node_modules/@mui/icons-material/AttachFileOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/ContentCopyOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/Menu.js +17 -0
- package/dist/node_modules/@mui/icons-material/NorthRounded.js +17 -0
- package/dist/node_modules/@mui/icons-material/RefreshOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/StopRounded.js +17 -0
- package/dist/node_modules/@mui/icons-material/ThumbDownOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/ThumbUpOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/VolumeUpOutlined.js +17 -0
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/@mui/system/createStyled.js +6 -6
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/stories/chatBotApiMock.d.ts +476 -0
- package/dist/stories/chatBotApiMock.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generatedAt": "2026-11-
|
|
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": "
|
|
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
|
|
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": "
|
|
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
|
|
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
|
|
1665
|
+
"description": "Display name used in Iris / greeting copy (e.g. “Good Morning, {userName}”).",
|
|
1671
1666
|
"type": "string",
|
|
1672
|
-
"
|
|
1673
|
-
"required": false
|
|
1667
|
+
"required": true
|
|
1674
1668
|
},
|
|
1675
1669
|
"isChatBotOpen": {
|
|
1676
|
-
"description": "Controls whether the chatbot
|
|
1670
|
+
"description": "**Required.** Controls whether the chatbot panel is visible.",
|
|
1677
1671
|
"type": "boolean",
|
|
1678
|
-
"
|
|
1672
|
+
"defaultValue": "—",
|
|
1673
|
+
"required": false
|
|
1679
1674
|
},
|
|
1680
1675
|
"setIsChatBotOpen": {
|
|
1681
|
-
"description": "Setter for open state
|
|
1676
|
+
"description": "**Required.** Setter for open state (host-controlled).",
|
|
1682
1677
|
"type": "(open: boolean) => void",
|
|
1683
|
-
"
|
|
1684
|
-
"required": false
|
|
1678
|
+
"required": true
|
|
1685
1679
|
},
|
|
1686
1680
|
"onClose": {
|
|
1687
|
-
"description": "
|
|
1681
|
+
"description": "Called when the user closes the chatbot (X / close control).",
|
|
1688
1682
|
"type": "() => void",
|
|
1689
|
-
"
|
|
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
|
-
"
|
|
1693
|
-
"description": "
|
|
1694
|
-
"type": "
|
|
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
|
-
"
|
|
1699
|
-
"description": "
|
|
1700
|
-
"type": "
|
|
1697
|
+
"onMinimiseChatBot": {
|
|
1698
|
+
"description": "Called when the user minimises / collapses the panel.",
|
|
1699
|
+
"type": "() => void",
|
|
1701
1700
|
"required": true
|
|
1702
1701
|
},
|
|
1703
|
-
"
|
|
1704
|
-
"description": "
|
|
1705
|
-
"type": "
|
|
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
|
-
"
|
|
1709
|
-
"description": "
|
|
1710
|
-
"type": "
|
|
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
|
-
"
|
|
1714
|
-
"description": "
|
|
1715
|
-
"type": "
|
|
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
|
-
"
|
|
1731
|
-
"description": "
|
|
1732
|
-
"type": "
|
|
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
|
-
"
|
|
1737
|
-
"description": "
|
|
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
|
-
"
|
|
1743
|
-
"description": "
|
|
1744
|
-
"type": "
|
|
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
|
-
"
|
|
1749
|
-
"description": "
|
|
1750
|
-
"type": "
|
|
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
|
-
"
|
|
1759
|
-
"description": "
|
|
1760
|
-
"type": "
|
|
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
|
-
"
|
|
1764
|
-
"description": "
|
|
1765
|
-
"type": "string
|
|
1745
|
+
"inputText": {
|
|
1746
|
+
"description": "Initial composer input value.",
|
|
1747
|
+
"type": "string",
|
|
1766
1748
|
"required": true
|
|
1767
1749
|
},
|
|
1768
|
-
"
|
|
1769
|
-
"description": "
|
|
1770
|
-
"type": "
|
|
1771
|
-
"defaultValue": "
|
|
1750
|
+
"isAssistantThinking": {
|
|
1751
|
+
"description": "Shows the in-progress assistant thinking indicator.",
|
|
1752
|
+
"type": "boolean",
|
|
1753
|
+
"defaultValue": "false",
|
|
1772
1754
|
"required": false
|
|
1773
1755
|
},
|
|
1774
|
-
"
|
|
1775
|
-
"description": "
|
|
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
|
-
"
|
|
1781
|
-
"description": "
|
|
1767
|
+
"formComponent": {
|
|
1768
|
+
"description": "Default form body node for messages with `bodyType:",
|
|
1782
1769
|
"type": "ReactNode",
|
|
1783
1770
|
"required": true
|
|
1784
1771
|
},
|
|
1785
|
-
"
|
|
1786
|
-
"description": "
|
|
1787
|
-
"type": "
|
|
1772
|
+
"tableComponent": {
|
|
1773
|
+
"description": "Default table body node for messages with `bodyType:",
|
|
1774
|
+
"type": "ReactNode",
|
|
1788
1775
|
"required": true
|
|
1789
1776
|
},
|
|
1790
|
-
"
|
|
1791
|
-
"description": "
|
|
1792
|
-
"type": "
|
|
1777
|
+
"customInputComponent": {
|
|
1778
|
+
"description": "Replace the default composer input with custom JSX.",
|
|
1779
|
+
"type": "ReactNode",
|
|
1793
1780
|
"required": true
|
|
1794
1781
|
},
|
|
1795
|
-
"
|
|
1796
|
-
"description": "
|
|
1797
|
-
"type": "
|
|
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
|
-
"
|
|
1801
|
-
"description": "
|
|
1802
|
-
"type": "
|
|
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
|
-
"
|
|
1806
|
-
"description": "
|
|
1798
|
+
"onCloseSuggestionBanner": {
|
|
1799
|
+
"description": "Called when the user dismisses the suggestion banner.",
|
|
1807
1800
|
"type": "() => void",
|
|
1808
1801
|
"required": true
|
|
1809
1802
|
},
|
|
1810
|
-
"
|
|
1811
|
-
"description": "
|
|
1812
|
-
"type": "
|
|
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
|
-
"
|
|
1816
|
-
"description": "
|
|
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
|
-
"
|
|
1822
|
-
"description": "
|
|
1823
|
-
"type": "
|
|
1824
|
-
"
|
|
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
|
-
"
|
|
1828
|
-
"description": "
|
|
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
|
-
"
|
|
1834
|
-
"description": "
|
|
1835
|
-
"type": "
|
|
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
|
-
"
|
|
1839
|
-
"description": "
|
|
1840
|
-
"type": "
|
|
1841
|
-
"
|
|
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
|
-
"
|
|
1845
|
-
"description": "`(
|
|
1846
|
-
"type": "(
|
|
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
|
-
"
|
|
1850
|
-
"description": "
|
|
1851
|
-
"type": "
|
|
1852
|
-
"
|
|
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
|
-
"
|
|
1856
|
-
"description": "
|
|
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
|
-
"
|
|
1861
|
-
"description": "
|
|
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
|
-
"
|
|
1866
|
-
"description": "
|
|
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
|
-
"
|
|
1872
|
-
"description": "
|
|
1873
|
-
"type": "
|
|
1874
|
-
"
|
|
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
|
-
"
|
|
1878
|
-
"description": "
|
|
1879
|
-
"type": "
|
|
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
|
|
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`
|
|
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`
|
|
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`
|
|
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": "
|
|
1929
|
+
"description": "Overflow actions: `",
|
|
1915
1930
|
"type": "(action: string, item: HistoryConversationItem) => void",
|
|
1916
1931
|
"required": true
|
|
1917
1932
|
},
|
|
1918
|
-
"
|
|
1919
|
-
"description": "
|
|
1920
|
-
"type": "
|
|
1921
|
-
"
|
|
1922
|
-
"required": false
|
|
1933
|
+
"suggestedPrompts": {
|
|
1934
|
+
"description": "Iris greeting chips: `{ id: string; label: string }[]`.",
|
|
1935
|
+
"type": "SuggestedPrompt[]",
|
|
1936
|
+
"required": true
|
|
1923
1937
|
},
|
|
1924
|
-
"
|
|
1925
|
-
"description": "
|
|
1926
|
-
"type": "
|
|
1927
|
-
"
|
|
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
|
-
"
|
|
1931
|
-
"description": "
|
|
1932
|
-
"type": "
|
|
1943
|
+
"modelOptions": {
|
|
1944
|
+
"description": "Composer model select options: `{ label, value }[]`.",
|
|
1945
|
+
"type": "ChatModelOption[]",
|
|
1933
1946
|
"required": true
|
|
1934
1947
|
},
|
|
1935
|
-
"
|
|
1936
|
-
"description": "
|
|
1937
|
-
"type": "
|
|
1948
|
+
"selectedModel": {
|
|
1949
|
+
"description": "Controlled selected model value.",
|
|
1950
|
+
"type": "string",
|
|
1938
1951
|
"required": true
|
|
1939
1952
|
},
|
|
1940
|
-
"
|
|
1941
|
-
"description": "`(
|
|
1942
|
-
"type": "(
|
|
1953
|
+
"onModelChange": {
|
|
1954
|
+
"description": "`(value: string) => void` when the model select changes.",
|
|
1955
|
+
"type": "(value: string) => void",
|
|
1943
1956
|
"required": true
|
|
1944
1957
|
},
|
|
1945
|
-
"
|
|
1946
|
-
"description": "
|
|
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
|
-
"
|
|
1951
|
-
"description": "
|
|
1952
|
-
"type": "(
|
|
1983
|
+
"onAddClick": {
|
|
1984
|
+
"description": "Iris composer “Add” (+) control.",
|
|
1985
|
+
"type": "() => void",
|
|
1953
1986
|
"required": true
|
|
1954
1987
|
},
|
|
1955
|
-
"
|
|
1956
|
-
"description": "
|
|
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": "
|
|
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",
|