@iblai/web-containers 1.83.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/chat/calls/live-kit-voice-chat.js +3 -0
- package/dist/cjs/components/chat/calls/live-kit-voice-chat.js.map +1 -1
- package/dist/cjs/components/claw-sandbox/agent-skills.js +1 -2
- package/dist/cjs/components/claw-sandbox/agent-skills.js.map +1 -1
- package/dist/cjs/components/claw-sandbox/sandbox-config.js +6 -6
- package/dist/cjs/components/claw-sandbox/sandbox-config.js.map +1 -1
- package/dist/cjs/components/claw-sandbox/virtual-machine-network-section.js +1 -1
- package/dist/cjs/components/hooks/use-screen-sharing.js +12 -11
- package/dist/cjs/components/hooks/use-screen-sharing.js.map +1 -1
- package/dist/cjs/components/modals/create-agent-wizard/create-agent-wizard-tab-step.js +1 -1
- package/dist/cjs/components/modals/create-agent-wizard/create-agent-wizard-tab-step.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/agent-capabilities-section.js +29 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/agent-capabilities-section.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/capability-error.js +43 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/capability-error.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/capability-switch-card.js +25 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/capability-switch-card.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/capability-switch-row.js +32 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/capability-switch-row.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/model-change-error.js +90 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/model-change-error.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/registry.js +100 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/registry.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/use-capability-flags.js +184 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capabilities/use-capability-flags.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/capability-gate.js +8 -2
- package/dist/cjs/components/modals/edit-mentor-modal/capability-gate.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/surface-capability-gate.js +39 -0
- package/dist/cjs/components/modals/edit-mentor-modal/surface-capability-gate.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/datasets-tab/labels.js +6 -6
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/datasets-tab.js +3 -2
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/datasets-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/grader-tab/index.js +30 -10
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/grader-tab/index.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/grader-tab/labels.js +6 -4
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/grader-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/grader-tab/use-grader.js +45 -65
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/grader-tab/use-grader.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/human-support-tab/labels.js +1 -13
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/human-support-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/human-support-tab.js +23 -16
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/human-support-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/llm-tab/labels.js +2 -2
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/llm-tab.js +13 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/llm-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +11 -7
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js +19 -2
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js +24 -9
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js +202 -137
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-tool-switch.js +126 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-tool-switch.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js +19 -10
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/privacy-tab.js +5 -7
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/privacy-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/screenshare-tab/labels.js +9 -3
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/screenshare-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/screenshare-tab.js +52 -9
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/screenshare-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-section-title.js +15 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-section-title.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js +39 -22
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capability-matrix-row.js +13 -9
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capability-matrix-row.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +8 -56
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +15 -83
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab.js +6 -6
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +2 -2
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/skills-tab/index.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/skills-tab/labels.js +4 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/skills-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/spend-caps-tab/index.js +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/spend-caps-tab/index.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab/use-toggle-tools.js +47 -11
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab/use-toggle-tools.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab/call-config-section.js +11 -5
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab/call-config-section.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab/labels.js +67 -43
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab/labels.js.map +1 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab/use-surface-switches.js +101 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab/use-surface-switches.js.map +1 -0
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab.js +131 -88
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/voice-tab.js.map +1 -1
- package/dist/cjs/components/modals/user-profile-modal.js +3 -1
- package/dist/cjs/components/modals/user-profile-modal.js.map +1 -1
- package/dist/cjs/components/platform-sidebar/account-sheet.js +2 -2
- package/dist/cjs/components/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/cjs/components/profile/account.js +30 -5
- package/dist/cjs/components/profile/account.js.map +1 -1
- package/dist/cjs/components/profile/admin/tabs/onboarding/onboarding-tab.js +18 -8
- package/dist/cjs/components/profile/admin/tabs/onboarding/onboarding-tab.js.map +1 -1
- package/dist/cjs/components/profile/admin.js +3 -6
- package/dist/cjs/components/profile/admin.js.map +1 -1
- package/dist/cjs/components/profile/invite-user-content.js +6 -2
- package/dist/cjs/components/profile/invite-user-content.js.map +1 -1
- package/dist/cjs/components/profile/virtual-machine-admin/index.js +1 -1
- package/dist/cjs/components/spend-caps/labels.js +2 -0
- package/dist/cjs/components/spend-caps/labels.js.map +1 -1
- package/dist/cjs/components/workflows/node-config-panel.js +3 -1
- package/dist/cjs/components/workflows/node-config-panel.js.map +1 -1
- package/dist/cjs/i18n/messages/en.json.js +253 -192
- package/dist/cjs/i18n/messages/en.json.js.map +1 -1
- package/dist/cjs/i18n/messages/es.json.js +183 -122
- package/dist/cjs/i18n/messages/es.json.js.map +1 -1
- package/dist/cjs/i18n/messages/fr.json.js +181 -120
- package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
- package/dist/cjs/i18n/messages/zh.json.js +180 -119
- package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
- package/dist/cjs/next/index.js +2 -8
- package/dist/cjs/next/index.js.map +1 -1
- package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/_virtual/index2.js +2 -2
- package/dist/esm/_virtual/index3.js +2 -2
- package/dist/esm/components/chat/calls/live-kit-voice-chat.js +3 -0
- package/dist/esm/components/chat/calls/live-kit-voice-chat.js.map +1 -1
- package/dist/esm/components/claw-sandbox/agent-skills.js +1 -2
- package/dist/esm/components/claw-sandbox/agent-skills.js.map +1 -1
- package/dist/esm/components/claw-sandbox/sandbox-config.js +6 -6
- package/dist/esm/components/claw-sandbox/sandbox-config.js.map +1 -1
- package/dist/esm/components/claw-sandbox/virtual-machine-network-section.js +1 -1
- package/dist/esm/components/hooks/use-screen-sharing.js +12 -11
- package/dist/esm/components/hooks/use-screen-sharing.js.map +1 -1
- package/dist/esm/components/modals/create-agent-wizard/create-agent-wizard-tab-step.js +1 -1
- package/dist/esm/components/modals/create-agent-wizard/create-agent-wizard-tab-step.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/agent-capabilities-section.js +27 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/agent-capabilities-section.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/capability-error.js +41 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/capability-error.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/capability-switch-card.js +23 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/capability-switch-card.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/capability-switch-row.js +30 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/capability-switch-row.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/model-change-error.js +86 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/model-change-error.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/registry.js +95 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/registry.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/use-capability-flags.js +182 -0
- package/dist/esm/components/modals/edit-mentor-modal/capabilities/use-capability-flags.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/capability-gate.js +9 -3
- package/dist/esm/components/modals/edit-mentor-modal/capability-gate.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/surface-capability-gate.js +37 -0
- package/dist/esm/components/modals/edit-mentor-modal/surface-capability-gate.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/datasets-tab/labels.js +6 -6
- package/dist/esm/components/modals/edit-mentor-modal/tabs/datasets-tab.js +3 -2
- package/dist/esm/components/modals/edit-mentor-modal/tabs/datasets-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/grader-tab/index.js +30 -10
- package/dist/esm/components/modals/edit-mentor-modal/tabs/grader-tab/index.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/grader-tab/labels.js +6 -4
- package/dist/esm/components/modals/edit-mentor-modal/tabs/grader-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/grader-tab/use-grader.js +47 -66
- package/dist/esm/components/modals/edit-mentor-modal/tabs/grader-tab/use-grader.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/human-support-tab/labels.js +1 -13
- package/dist/esm/components/modals/edit-mentor-modal/tabs/human-support-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/human-support-tab.js +23 -16
- package/dist/esm/components/modals/edit-mentor-modal/tabs/human-support-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/llm-tab/labels.js +2 -2
- package/dist/esm/components/modals/edit-mentor-modal/tabs/llm-tab.js +14 -2
- package/dist/esm/components/modals/edit-mentor-modal/tabs/llm-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +11 -7
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js +20 -3
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js +24 -9
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js +201 -139
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-tool-switch.js +124 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-tool-switch.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js +19 -10
- package/dist/esm/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/privacy-tab.js +5 -7
- package/dist/esm/components/modals/edit-mentor-modal/tabs/privacy-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/screenshare-tab/labels.js +9 -3
- package/dist/esm/components/modals/edit-mentor-modal/tabs/screenshare-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/screenshare-tab.js +52 -9
- package/dist/esm/components/modals/edit-mentor-modal/tabs/screenshare-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-section-title.js +13 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-section-title.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js +39 -22
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capability-matrix-row.js +13 -9
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capability-matrix-row.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +8 -56
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +16 -84
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab.js +6 -6
- package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +2 -2
- package/dist/esm/components/modals/edit-mentor-modal/tabs/skills-tab/index.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/skills-tab/labels.js +4 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/skills-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/spend-caps-tab/index.js +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/spend-caps-tab/index.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab/use-toggle-tools.js +48 -12
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab/use-toggle-tools.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab/call-config-section.js +11 -5
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab/call-config-section.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab/labels.js +67 -43
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab/labels.js.map +1 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab/use-surface-switches.js +99 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab/use-surface-switches.js.map +1 -0
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab.js +131 -88
- package/dist/esm/components/modals/edit-mentor-modal/tabs/voice-tab.js.map +1 -1
- package/dist/esm/components/modals/user-profile-modal.js +3 -1
- package/dist/esm/components/modals/user-profile-modal.js.map +1 -1
- package/dist/esm/components/platform-sidebar/account-sheet.js +2 -2
- package/dist/esm/components/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/esm/components/profile/account.js +30 -5
- package/dist/esm/components/profile/account.js.map +1 -1
- package/dist/esm/components/profile/admin/tabs/onboarding/onboarding-tab.js +19 -9
- package/dist/esm/components/profile/admin/tabs/onboarding/onboarding-tab.js.map +1 -1
- package/dist/esm/components/profile/admin.js +3 -6
- package/dist/esm/components/profile/admin.js.map +1 -1
- package/dist/esm/components/profile/invite-user-content.js +6 -2
- package/dist/esm/components/profile/invite-user-content.js.map +1 -1
- package/dist/esm/components/profile/virtual-machine-admin/index.js +1 -1
- package/dist/esm/components/spend-caps/labels.js +2 -0
- package/dist/esm/components/spend-caps/labels.js.map +1 -1
- package/dist/esm/components/workflows/node-config-panel.js +3 -1
- package/dist/esm/components/workflows/node-config-panel.js.map +1 -1
- package/dist/esm/i18n/messages/en.json.js +253 -192
- package/dist/esm/i18n/messages/en.json.js.map +1 -1
- package/dist/esm/i18n/messages/es.json.js +183 -122
- package/dist/esm/i18n/messages/es.json.js.map +1 -1
- package/dist/esm/i18n/messages/fr.json.js +181 -120
- package/dist/esm/i18n/messages/fr.json.js.map +1 -1
- package/dist/esm/i18n/messages/zh.json.js +180 -119
- package/dist/esm/i18n/messages/zh.json.js.map +1 -1
- package/dist/esm/next/index.js +0 -3
- package/dist/esm/next/index.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/next/index.d.ts +94 -103
- package/dist/package.json +1 -1
- package/package.json +4 -4
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab/labels.js +0 -46
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab/labels.js.map +0 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab/use-tools.js +0 -62
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab/use-tools.js.map +0 -1
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab.js +0 -38
- package/dist/cjs/components/modals/edit-mentor-modal/tabs/tools-tab.js.map +0 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab/labels.js +0 -42
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab/labels.js.map +0 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab/use-tools.js +0 -60
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab/use-tools.js.map +0 -1
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab.js +0 -36
- package/dist/esm/components/modals/edit-mentor-modal/tabs/tools-tab.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _iblai_data_layer from '@iblai/data-layer';
|
|
2
2
|
import { ChatPrivacyEffective, StorageService, NotificationTemplate, TranscriptRetrievedDocument, TranscriptToolCall, TranscriptTurnExtendedContext, TranscriptFile, DateFilter, LlmUsageGranularity, LlmUsageTrace, LlmUsageObservation, AuditLogsResponse, PlatformAuditLogEntry, PlatformAuditActionCode, PlatformAuditLogsResponse, MentorMemoryCategory, CourseOutlineResponse as CourseOutlineResponse$1, CourseEligibilityResponse, EnrolledCourse, CourseEdxData as CourseEdxData$1, ExamInfo, EffectiveAgentSkill, PaywallPrice, Project, AgentSettingsFieldPermissions, PrivacyFlagRail, PrivacyFlagAction, PrivacyFlagSource } from '@iblai/data-layer';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { Dispatch, SetStateAction, PointerEvent, MouseEvent, DragEvent, KeyboardEvent,
|
|
4
|
+
import React__default, { Dispatch, SetStateAction, PointerEvent, MouseEvent, DragEvent, KeyboardEvent, ReactNode, ElementType, AnchorHTMLAttributes, ReactElement, RefObject } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as _iblai_web_utils from '@iblai/web-utils';
|
|
7
7
|
import { Tenant, ToolCallInfo, RedirectToAuthSpaOptions, StripePlanChangeResult, Message, CreateAgentFieldValues, CreateAgentFieldVisibility } from '@iblai/web-utils';
|
|
@@ -884,6 +884,15 @@ interface InviteUserContentProps {
|
|
|
884
884
|
className?: string;
|
|
885
885
|
/** Called after an invitation goes out, on any tab. */
|
|
886
886
|
onInviteSuccess?: () => void;
|
|
887
|
+
/**
|
|
888
|
+
* Page variant only: draws the title and description in the host's own
|
|
889
|
+
* header style, in place of the built-in heading block. When it returns
|
|
890
|
+
* nothing, the body starts at the top of the block with no gap above it.
|
|
891
|
+
*/
|
|
892
|
+
renderHeader?: (header: {
|
|
893
|
+
title: string;
|
|
894
|
+
description: string;
|
|
895
|
+
}) => ReactNode;
|
|
887
896
|
}
|
|
888
897
|
/**
|
|
889
898
|
* The single source of the Invite User experience — header, tabs
|
|
@@ -897,7 +906,7 @@ interface InviteUserContentProps {
|
|
|
897
906
|
* The component owns all of its own state and data-fetching, so it is fully
|
|
898
907
|
* self-contained.
|
|
899
908
|
*/
|
|
900
|
-
declare function InviteUserContent({ tenant, enableCatalogInvite, hasManageUsersPermission, variant, className, onInviteSuccess, }: InviteUserContentProps): react_jsx_runtime.JSX.Element;
|
|
909
|
+
declare function InviteUserContent({ tenant, enableCatalogInvite, hasManageUsersPermission, variant, className, onInviteSuccess, renderHeader, }: InviteUserContentProps): react_jsx_runtime.JSX.Element;
|
|
901
910
|
|
|
902
911
|
declare function InvitedUsersDialog({ tenant, onClose }: {
|
|
903
912
|
tenant: string;
|
|
@@ -1077,12 +1086,12 @@ interface Props$3 {
|
|
|
1077
1086
|
/** Auth SPA base URL for the copyable applicant link (Applications tab). */
|
|
1078
1087
|
authSpaUrl?: string;
|
|
1079
1088
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1089
|
+
* @deprecated Unused. Onboarding is its own tab of the organization settings
|
|
1090
|
+
* (`Account`), which takes this prop instead.
|
|
1082
1091
|
*/
|
|
1083
1092
|
onboardingBasePath?: string;
|
|
1084
1093
|
}
|
|
1085
|
-
declare const Admin: ({ tenant, onInviteClick, hasUserTabPermission, hasGroupsTabPermission, hasRolesTabPermission, hasPoliciesTabPermission, hasTeamsTabPermission, hasAlertsTabPermission, hasInviteUserPermission, hasCreateTeamPermission, onLoadGroupPermissions, rbacPermissions, enableRbac, showGradebookTab, currentSpa, authSpaUrl,
|
|
1094
|
+
declare const Admin: ({ tenant, onInviteClick, hasUserTabPermission, hasGroupsTabPermission, hasRolesTabPermission, hasPoliciesTabPermission, hasTeamsTabPermission, hasAlertsTabPermission, hasInviteUserPermission, hasCreateTeamPermission, onLoadGroupPermissions, rbacPermissions, enableRbac, showGradebookTab, currentSpa, authSpaUrl, }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
1086
1095
|
|
|
1087
1096
|
interface SecretsTabProps {
|
|
1088
1097
|
tenantKey: string;
|
|
@@ -1190,7 +1199,7 @@ interface VirtualMachineAdminTabProps {
|
|
|
1190
1199
|
}
|
|
1191
1200
|
/**
|
|
1192
1201
|
* Tenant-settings **Network Policies** tab: the reusable `host:port` network
|
|
1193
|
-
* policies an agent's Virtual Machine
|
|
1202
|
+
* policies an agent's Ephemeral Virtual Machine is bound to under the `custom`
|
|
1194
1203
|
* egress profile. Hidden behind a single permission notice when the list
|
|
1195
1204
|
* call answers 403.
|
|
1196
1205
|
*/
|
package/dist/next/index.d.ts
CHANGED
|
@@ -347,8 +347,10 @@ interface UserProfileModalProps {
|
|
|
347
347
|
onboardingBasePath?: string;
|
|
348
348
|
/** Help-center address the API page links to; no link without it. */
|
|
349
349
|
helpUrl?: string;
|
|
350
|
+
/** Adds the Courses and Programs invite tabs to the Invites tab. */
|
|
351
|
+
enableCatalogInvite?: boolean;
|
|
350
352
|
}
|
|
351
|
-
declare function Account({ tenant, tenants, username, onInviteClick, email, mainPlatformKey, userActiveApp, showPlatformName, isAdmin, targetTab, currentPlan: _currentPlan, currentSPA, authURL, onTenantUpdate, currentPlatformBaseDomain, enableRbac, showBenchmarks, rbacPermissions, onLoadGroupPermissions, onTabChange, defaultSupportPhone, enableSupportPhone, showGradebookTab, onboardingBasePath, helpUrl, }: UserProfileModalProps): react_jsx_runtime.JSX.Element;
|
|
353
|
+
declare function Account({ tenant, tenants, username, onInviteClick, email, mainPlatformKey, userActiveApp, showPlatformName, isAdmin, targetTab, currentPlan: _currentPlan, currentSPA, authURL, onTenantUpdate, currentPlatformBaseDomain, enableRbac, showBenchmarks, rbacPermissions, onLoadGroupPermissions, onTabChange, defaultSupportPhone, enableSupportPhone, showGradebookTab, onboardingBasePath, helpUrl, enableCatalogInvite, }: UserProfileModalProps): react_jsx_runtime.JSX.Element;
|
|
352
354
|
|
|
353
355
|
declare function OrganizationTab({ platformKey, setOrganizationLogoFromOutside, tenant, onTenantUpdate, defaultSupportPhone, enableSupportPhone, }: {
|
|
354
356
|
platformKey: string;
|
|
@@ -638,9 +640,10 @@ declare function PlatformSidebarFooter({ collapsed, config, }: {
|
|
|
638
640
|
|
|
639
641
|
/**
|
|
640
642
|
* Tab ids of the `Account` rail; the sheet opens on one of them.
|
|
641
|
-
* `integrations` is the retired name `Account` still maps to Secrets
|
|
643
|
+
* `integrations` is the retired name `Account` still maps to Secrets,
|
|
644
|
+
* `invites` opens the Invites tab and `onboarding` opens the Onboarding tab.
|
|
642
645
|
*/
|
|
643
|
-
type PlatformAccountTab = 'organization' | 'management' | 'integrations' | 'secrets' | 'api' | 'monetization' | 'datasets' | 'memory' | 'virtualMachine' | 'advanced' | 'billing';
|
|
646
|
+
type PlatformAccountTab = 'organization' | 'management' | 'invites' | 'onboarding' | 'integrations' | 'secrets' | 'api' | 'monetization' | 'datasets' | 'memory' | 'virtualMachine' | 'advanced' | 'billing';
|
|
644
647
|
type PlatformAccountSheetProps = {
|
|
645
648
|
/** Tab to open on; `null` closes the sheet. */
|
|
646
649
|
tab: PlatformAccountTab | null;
|
|
@@ -673,13 +676,15 @@ type PlatformAccountSheetProps = {
|
|
|
673
676
|
enableSupportPhone?: boolean;
|
|
674
677
|
/** Where the API page's Help link goes; without it there is no link. */
|
|
675
678
|
helpUrl?: string;
|
|
679
|
+
/** Adds the Courses and Programs invite tabs to the Invites tab. */
|
|
680
|
+
enableCatalogInvite?: boolean;
|
|
676
681
|
};
|
|
677
682
|
/**
|
|
678
683
|
* The organization `Account` component — tab rail included — in its own
|
|
679
684
|
* dialog. Each sidebar footer shortcut opens it on a different `tab`;
|
|
680
685
|
* from there the user can move to any other Account tab they may see.
|
|
681
686
|
*/
|
|
682
|
-
declare function PlatformAccountSheet({ tab, onClose, tenantKey, username, email, onInviteClick, mainPlatformKey, authUrl, currentSpa, platformBaseDomain, showGradebookTab, onboardingBasePath, rbacPermissions, enableRbac, tenants, isAdmin, onTenantUpdate, showBenchmarks, userActiveApp, onTabChange, onLoadGroupPermissions, defaultSupportPhone, enableSupportPhone, helpUrl, }: PlatformAccountSheetProps): react_jsx_runtime.JSX.Element;
|
|
687
|
+
declare function PlatformAccountSheet({ tab, onClose, tenantKey, username, email, onInviteClick, mainPlatformKey, authUrl, currentSpa, platformBaseDomain, showGradebookTab, onboardingBasePath, rbacPermissions, enableRbac, tenants, isAdmin, onTenantUpdate, showBenchmarks, userActiveApp, onTabChange, onLoadGroupPermissions, defaultSupportPhone, enableSupportPhone, helpUrl, enableCatalogInvite, }: PlatformAccountSheetProps): react_jsx_runtime.JSX.Element;
|
|
683
688
|
|
|
684
689
|
/**
|
|
685
690
|
* Cross-SPA sidebar shell.
|
|
@@ -1339,6 +1344,8 @@ interface SettingsTabLabels {
|
|
|
1339
1344
|
/** Sub-heading under the title */
|
|
1340
1345
|
description: string;
|
|
1341
1346
|
};
|
|
1347
|
+
/** Explanation box above the sub-tabs. */
|
|
1348
|
+
infoBox?: string;
|
|
1342
1349
|
/** Labels for the nested sub-tabs. */
|
|
1343
1350
|
subTabs: {
|
|
1344
1351
|
basic: string;
|
|
@@ -1350,22 +1357,18 @@ interface SettingsTabLabels {
|
|
|
1350
1357
|
sections: {
|
|
1351
1358
|
chatExperience: string;
|
|
1352
1359
|
advanced: string;
|
|
1353
|
-
/** Title of the
|
|
1354
|
-
perSurface: string;
|
|
1355
|
-
/** Title of the banner introducing the single-field settings. */
|
|
1360
|
+
/** Title of the Global Capabilities section. */
|
|
1356
1361
|
globalSettings: string;
|
|
1357
1362
|
contextLimits: string;
|
|
1358
1363
|
};
|
|
1359
|
-
/** Column headings
|
|
1364
|
+
/** Column headings over a row that has a switch per surface. */
|
|
1360
1365
|
surfaces: {
|
|
1361
1366
|
inAppChat: string;
|
|
1362
1367
|
embedWidget: string;
|
|
1363
1368
|
};
|
|
1364
1369
|
/** Explanatory copy that is not a heading. */
|
|
1365
1370
|
notes: {
|
|
1366
|
-
/** Subtitle
|
|
1367
|
-
perSurface: string;
|
|
1368
|
-
/** Subtitle inside the Global Capabilities banner. */
|
|
1371
|
+
/** Subtitle under the Global Capabilities title. */
|
|
1369
1372
|
globalSettings: string;
|
|
1370
1373
|
/** Body of the info tooltip on the In-app chat column label. */
|
|
1371
1374
|
inAppChat: string;
|
|
@@ -1429,24 +1432,10 @@ interface SettingsTabLabels {
|
|
|
1429
1432
|
label: string;
|
|
1430
1433
|
tooltip: string;
|
|
1431
1434
|
};
|
|
1432
|
-
|
|
1433
|
-
label: string;
|
|
1434
|
-
tooltip: string;
|
|
1435
|
-
};
|
|
1436
|
-
showVoiceCall: {
|
|
1437
|
-
label: string;
|
|
1438
|
-
tooltip: string;
|
|
1439
|
-
};
|
|
1440
|
-
/** Embed-widget columns of the matrix — the row carries the tooltip. */
|
|
1435
|
+
/** Embed-widget column of the matrix — the row carries the tooltip. */
|
|
1441
1436
|
embedShowAttachment: {
|
|
1442
1437
|
label: string;
|
|
1443
1438
|
};
|
|
1444
|
-
embedShowVoiceRecord: {
|
|
1445
|
-
label: string;
|
|
1446
|
-
};
|
|
1447
|
-
embedShowVoiceCall: {
|
|
1448
|
-
label: string;
|
|
1449
|
-
};
|
|
1450
1439
|
allowCopies: {
|
|
1451
1440
|
label: string;
|
|
1452
1441
|
tooltip: string;
|
|
@@ -1455,10 +1444,6 @@ interface SettingsTabLabels {
|
|
|
1455
1444
|
label: string;
|
|
1456
1445
|
tooltip: string;
|
|
1457
1446
|
};
|
|
1458
|
-
enhancedDocRetrieval: {
|
|
1459
|
-
label: string;
|
|
1460
|
-
tooltip: string;
|
|
1461
|
-
};
|
|
1462
1447
|
showLastConversation: {
|
|
1463
1448
|
label: string;
|
|
1464
1449
|
tooltip: string;
|
|
@@ -1467,10 +1452,6 @@ interface SettingsTabLabels {
|
|
|
1467
1452
|
label: string;
|
|
1468
1453
|
tooltip: string;
|
|
1469
1454
|
};
|
|
1470
|
-
smartDocRetrieval: {
|
|
1471
|
-
label: string;
|
|
1472
|
-
tooltip: string;
|
|
1473
|
-
};
|
|
1474
1455
|
/** `chat_history_max_messages`; placeholder is the server default. */
|
|
1475
1456
|
chatHistoryMessages: ContextLimitLabels;
|
|
1476
1457
|
/** `chat_history_max_tokens`. */
|
|
@@ -1494,8 +1475,6 @@ interface SettingsTabLabels {
|
|
|
1494
1475
|
toasts: {
|
|
1495
1476
|
saveSuccess: string;
|
|
1496
1477
|
saveError: string;
|
|
1497
|
-
/** Shown when the mentor saved but syncing the voice-call config failed. */
|
|
1498
|
-
voiceCallError: string;
|
|
1499
1478
|
};
|
|
1500
1479
|
deleteModal: {
|
|
1501
1480
|
title: string;
|
|
@@ -1962,35 +1941,14 @@ interface LocalModelRowProps {
|
|
|
1962
1941
|
*/
|
|
1963
1942
|
declare function LocalModelRow({ name, size, logo, providerLabel, status, progress, disabled, disabledReason, errorMessage, onActivate, labels: labelsProp, }: LocalModelRowProps): react_jsx_runtime.JSX.Element;
|
|
1964
1943
|
|
|
1965
|
-
interface ToolsTabLabels {
|
|
1966
|
-
header: {
|
|
1967
|
-
title: string;
|
|
1968
|
-
description: string;
|
|
1969
|
-
};
|
|
1970
|
-
infoBox: string;
|
|
1971
|
-
/** aria-label for the info icon next to each tool name. */
|
|
1972
|
-
moreInfoAbout: (name: string) => string;
|
|
1973
|
-
/** aria-label for each tool's switch, announcing its current state. */
|
|
1974
|
-
switchAriaLabel: (name: string, isEnabled: boolean) => string;
|
|
1975
|
-
toasts: {
|
|
1976
|
-
toggleSuccess: string;
|
|
1977
|
-
toggleError: string;
|
|
1978
|
-
};
|
|
1979
|
-
}
|
|
1980
|
-
declare const AGENT_TOOLS_TAB_LABELS: ToolsTabLabels;
|
|
1981
|
-
|
|
1982
|
-
interface AgentToolsTabProps {
|
|
1983
|
-
labels?: DeepPartial<ToolsTabLabels>;
|
|
1984
|
-
}
|
|
1985
|
-
declare function AgentToolsTab({ labels: labelsOverride }: AgentToolsTabProps): react_jsx_runtime.JSX.Element;
|
|
1986
|
-
|
|
1987
1944
|
type Props$2 = {
|
|
1988
|
-
|
|
1945
|
+
/** @deprecated Ignored: each toggle reads the agent's tools inside its own write. */
|
|
1946
|
+
tools?: string[];
|
|
1989
1947
|
activeMentorId: string;
|
|
1990
1948
|
tenantKey: string;
|
|
1991
1949
|
username: string;
|
|
1992
1950
|
};
|
|
1993
|
-
declare function useToggleTools({ activeMentorId, tenantKey, username
|
|
1951
|
+
declare function useToggleTools({ activeMentorId, tenantKey, username }: Props$2): {
|
|
1994
1952
|
toggleTools: (toolSlug: string, callback?: () => void, labels?: {
|
|
1995
1953
|
success: string;
|
|
1996
1954
|
error: string;
|
|
@@ -2150,8 +2108,14 @@ declare function AgentAnalyticsTab({ tabs, excludeTabs, onNavigate }: AgentAnaly
|
|
|
2150
2108
|
|
|
2151
2109
|
interface McpTabProps {
|
|
2152
2110
|
onSelect?: (server: MCPServer) => void;
|
|
2111
|
+
/**
|
|
2112
|
+
* Show the agent's MCP on/off switch above the connectors. On by default, and
|
|
2113
|
+
* off when picking a connector (`onSelect`). Pass false where the agent is
|
|
2114
|
+
* still being set up: turning its first connector on turns MCP on there.
|
|
2115
|
+
*/
|
|
2116
|
+
showCapabilitySwitch?: boolean;
|
|
2153
2117
|
}
|
|
2154
|
-
declare function McpTab({ onSelect }?: McpTabProps): react_jsx_runtime.JSX.Element;
|
|
2118
|
+
declare function McpTab({ onSelect, showCapabilitySwitch }?: McpTabProps): react_jsx_runtime.JSX.Element;
|
|
2155
2119
|
|
|
2156
2120
|
interface SafetyTabLabels {
|
|
2157
2121
|
header: {
|
|
@@ -2224,6 +2188,8 @@ interface PrivacyTabLabels {
|
|
|
2224
2188
|
title: string;
|
|
2225
2189
|
description: string;
|
|
2226
2190
|
};
|
|
2191
|
+
/** Explanation box at the top of the tab. */
|
|
2192
|
+
infoBox?: string;
|
|
2227
2193
|
/** The PII and PHI cards: title, disclosure name, off hint and one-line summary. */
|
|
2228
2194
|
categories: Record<'pii' | 'phi', {
|
|
2229
2195
|
title: string;
|
|
@@ -2231,7 +2197,10 @@ interface PrivacyTabLabels {
|
|
|
2231
2197
|
offHint: string;
|
|
2232
2198
|
summary: {
|
|
2233
2199
|
off: string;
|
|
2234
|
-
/**
|
|
2200
|
+
/**
|
|
2201
|
+
* No entity types picked: the kind falls back to its own default set.
|
|
2202
|
+
* `action` is the action's key (`redact`, `mask`, `block`, `allow`).
|
|
2203
|
+
*/
|
|
2235
2204
|
all: (action: string) => string;
|
|
2236
2205
|
selected: (action: string, count: number) => string;
|
|
2237
2206
|
};
|
|
@@ -2401,7 +2370,25 @@ interface VoiceTabLabels {
|
|
|
2401
2370
|
title: string;
|
|
2402
2371
|
description: string;
|
|
2403
2372
|
};
|
|
2404
|
-
/**
|
|
2373
|
+
/** Intro box at the top of the tab. */
|
|
2374
|
+
infoBox: string;
|
|
2375
|
+
/**
|
|
2376
|
+
* The two places a switch applies to. The names and sentences are the
|
|
2377
|
+
* column headers of Settings > Capabilities, so both screens read the same.
|
|
2378
|
+
*/
|
|
2379
|
+
surfaces: {
|
|
2380
|
+
inAppChat: {
|
|
2381
|
+
label: string;
|
|
2382
|
+
tooltip: string;
|
|
2383
|
+
};
|
|
2384
|
+
embedWidget: {
|
|
2385
|
+
label: string;
|
|
2386
|
+
tooltip: string;
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
/** Accessible name of one surface's switch, e.g. "Voice Calls, In-App Chat". */
|
|
2390
|
+
switchName: (name: string, surface: string) => string;
|
|
2391
|
+
/** The Voice Calls block: `show_voice_call` and `embed_show_voice_call`. */
|
|
2405
2392
|
capability: {
|
|
2406
2393
|
title: string;
|
|
2407
2394
|
description: string;
|
|
@@ -2417,7 +2404,6 @@ interface VoiceTabLabels {
|
|
|
2417
2404
|
settings: string;
|
|
2418
2405
|
};
|
|
2419
2406
|
mentorVoice: {
|
|
2420
|
-
title: string;
|
|
2421
2407
|
description: string;
|
|
2422
2408
|
providerLabel: string;
|
|
2423
2409
|
providerTooltip: string;
|
|
@@ -2489,15 +2475,11 @@ interface VoiceTabLabels {
|
|
|
2489
2475
|
* the microphone), which is the main thing admins confuse on this tab.
|
|
2490
2476
|
*/
|
|
2491
2477
|
transcription: {
|
|
2492
|
-
/**
|
|
2493
|
-
* Copy for the inline "Dictation" toggle row (`show_voice_record`) at the
|
|
2494
|
-
* top of the Settings sub-tab: a label, the info-icon tooltip, and the
|
|
2495
|
-
* helper line under the row.
|
|
2496
|
-
*/
|
|
2478
|
+
/** The Dictation block: `show_voice_record` and `embed_show_voice_record`. */
|
|
2497
2479
|
toggle: {
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2480
|
+
title: string;
|
|
2481
|
+
description: string;
|
|
2482
|
+
offHint: string;
|
|
2501
2483
|
};
|
|
2502
2484
|
/**
|
|
2503
2485
|
* `transcription_language` — an ISO 639-1 code sent to the
|
|
@@ -2523,7 +2505,6 @@ interface VoiceTabLabels {
|
|
|
2523
2505
|
savingButton: string;
|
|
2524
2506
|
};
|
|
2525
2507
|
callConfig: {
|
|
2526
|
-
title: string;
|
|
2527
2508
|
description: string;
|
|
2528
2509
|
info: string;
|
|
2529
2510
|
fields: {
|
|
@@ -2576,6 +2557,9 @@ interface VoiceTabLabels {
|
|
|
2576
2557
|
callConfigError: string;
|
|
2577
2558
|
transcriptionSaved: string;
|
|
2578
2559
|
transcriptionError: string;
|
|
2560
|
+
/** One surface's switch saved, e.g. "Voice Calls turned on for In-App Chat". */
|
|
2561
|
+
turnedOn: (name: string, surface: string) => string;
|
|
2562
|
+
turnedOff: (name: string, surface: string) => string;
|
|
2579
2563
|
};
|
|
2580
2564
|
}
|
|
2581
2565
|
declare const AGENT_VOICE_TAB_LABELS: VoiceTabLabels;
|
|
@@ -2635,6 +2619,10 @@ interface ScreenShareTabLabels {
|
|
|
2635
2619
|
saved: string;
|
|
2636
2620
|
error: string;
|
|
2637
2621
|
};
|
|
2622
|
+
errors: {
|
|
2623
|
+
/** Calls could not stop sharing video, so the switch stays on. */
|
|
2624
|
+
turnOff: string;
|
|
2625
|
+
};
|
|
2638
2626
|
}
|
|
2639
2627
|
declare const AGENT_SCREENSHARE_TAB_LABELS: ScreenShareTabLabels;
|
|
2640
2628
|
|
|
@@ -2658,11 +2646,10 @@ interface AgentScreenShareTabProps {
|
|
|
2658
2646
|
* (`screensharing_system_prompt`, `screensharing_proactive_prompt`) that
|
|
2659
2647
|
* live on the mentor's CallConfiguration.
|
|
2660
2648
|
*
|
|
2661
|
-
* Visibility in the host's edit-mentor modal is the host's call
|
|
2662
|
-
*
|
|
2663
|
-
*
|
|
2664
|
-
*
|
|
2665
|
-
* (toggle lives on the Settings tab).
|
|
2649
|
+
* Visibility in the host's edit-mentor modal is the host's call. The header
|
|
2650
|
+
* switch reads and saves the agent's `capability_screen_share` flag, which is
|
|
2651
|
+
* what puts the screen-share button in the chat; on a platform that predates
|
|
2652
|
+
* the flag it reads and writes `call_configuration.enable_video`.
|
|
2666
2653
|
*/
|
|
2667
2654
|
declare function AgentScreenShareTab({ labels: labelsOverride, renderPromptContent, tenantKey: tenantKeyProp, mentorId: mentorIdProp, username: usernameProp, }: AgentScreenShareTabProps): react_jsx_runtime.JSX.Element;
|
|
2668
2655
|
|
|
@@ -2671,6 +2658,9 @@ interface SkillsTabLabels {
|
|
|
2671
2658
|
title: string;
|
|
2672
2659
|
description: string;
|
|
2673
2660
|
};
|
|
2661
|
+
infoBox: string;
|
|
2662
|
+
/** When added skills and edits take effect, under the info box text. */
|
|
2663
|
+
infoBoxNote: string;
|
|
2674
2664
|
/** Shown instead of the skills UI when the agent is not a Base Agent. */
|
|
2675
2665
|
notBaseAgent: string;
|
|
2676
2666
|
loading: string;
|
|
@@ -2709,6 +2699,8 @@ interface GraderTabLabels {
|
|
|
2709
2699
|
title: string;
|
|
2710
2700
|
description: string;
|
|
2711
2701
|
offHint: string;
|
|
2702
|
+
/** Why the switch stays off while the rubric has no criterion. */
|
|
2703
|
+
needsCriterion: string;
|
|
2712
2704
|
};
|
|
2713
2705
|
subTabs: {
|
|
2714
2706
|
setup: string;
|
|
@@ -2863,6 +2855,10 @@ interface GraderTabLabels {
|
|
|
2863
2855
|
toasts: {
|
|
2864
2856
|
toggleOn: string;
|
|
2865
2857
|
toggleOff: string;
|
|
2858
|
+
/**
|
|
2859
|
+
* Not shown: a failed toggle is explained under the switch. Kept for
|
|
2860
|
+
* hosts that pass the full contract.
|
|
2861
|
+
*/
|
|
2866
2862
|
toggleError: string;
|
|
2867
2863
|
configSaved: string;
|
|
2868
2864
|
configError: string;
|
|
@@ -2874,13 +2870,6 @@ interface GraderTabLabels {
|
|
|
2874
2870
|
}
|
|
2875
2871
|
declare const AGENT_GRADER_TAB_LABELS: GraderTabLabels;
|
|
2876
2872
|
|
|
2877
|
-
/**
|
|
2878
|
-
* Grading activation is owned entirely by the Grading tool's attachment to
|
|
2879
|
-
* the agent. The backend matches on `Tool.name` — `slug` defaults to a UUID
|
|
2880
|
-
* and is not stable across environments, so detection MUST use the name.
|
|
2881
|
-
*/
|
|
2882
|
-
declare const GRADING_TOOL_NAME = "Grading";
|
|
2883
|
-
|
|
2884
2873
|
interface AgentGraderTabProps {
|
|
2885
2874
|
labels?: DeepPartial<GraderTabLabels>;
|
|
2886
2875
|
/**
|
|
@@ -2895,14 +2884,18 @@ interface AgentGraderTabProps {
|
|
|
2895
2884
|
}
|
|
2896
2885
|
/**
|
|
2897
2886
|
* Standalone top-level tab for the agent's grading setup: the in-tab toggle
|
|
2898
|
-
*
|
|
2899
|
-
*
|
|
2900
|
-
*
|
|
2901
|
-
*
|
|
2887
|
+
* saves the agent's `capability_grading` flag (the sole activation switch on
|
|
2888
|
+
* the backend), and the content below splits into sub-tabs — Grading Setup
|
|
2889
|
+
* (configuration form), Rubric (criteria table with modal-based
|
|
2890
|
+
* add/edit/delete) and Results.
|
|
2902
2891
|
*
|
|
2903
|
-
*
|
|
2904
|
-
*
|
|
2905
|
-
* the
|
|
2892
|
+
* While the flag is on with no config or an empty rubric the platform refuses
|
|
2893
|
+
* every chat turn with the agent, so the sub-tabs stay usable while Grading is
|
|
2894
|
+
* off, the switch turns on only once the rubric has a criterion, and the tab
|
|
2895
|
+
* warns whenever the flag is on but either of the other two is missing.
|
|
2896
|
+
*
|
|
2897
|
+
* The Lesson Completion switch sits between the toggle and the gated content
|
|
2898
|
+
* because it works on its own, with Grading on or off.
|
|
2906
2899
|
*/
|
|
2907
2900
|
declare function AgentGraderTab({ labels: labelsOverride, tenantKey: tenantKeyProp, mentorId: mentorIdProp, username: usernameProp, enableRBAC: enableRBACProp, rbacPermissions: rbacPermissionsProp, }: AgentGraderTabProps): react_jsx_runtime.JSX.Element;
|
|
2908
2901
|
|
|
@@ -3132,14 +3125,6 @@ interface HumanSupportTabLabels {
|
|
|
3132
3125
|
/** Conversational explanation shown in the info box at the top of the tab. */
|
|
3133
3126
|
infoBox: string;
|
|
3134
3127
|
};
|
|
3135
|
-
toggle: {
|
|
3136
|
-
/** Accessible label for the enable/disable switch. */
|
|
3137
|
-
enable: string;
|
|
3138
|
-
/** Name of the switch on a phone, where it sits on its own row. */
|
|
3139
|
-
availableToUsers: string;
|
|
3140
|
-
updated: string;
|
|
3141
|
-
error: string;
|
|
3142
|
-
};
|
|
3143
3128
|
filters: {
|
|
3144
3129
|
searchUser: string;
|
|
3145
3130
|
allUsers: string;
|
|
@@ -3356,8 +3341,14 @@ interface AgentDatasetsTabProps extends AddResourceModalConfig {
|
|
|
3356
3341
|
* call `onPageChange(1)` on a search change.
|
|
3357
3342
|
*/
|
|
3358
3343
|
onSearchChange?: (search: string) => void;
|
|
3344
|
+
/**
|
|
3345
|
+
* Show the agent's Enhanced Document Retrieval switch above the list. On by
|
|
3346
|
+
* default, and off when picking a dataset (`onSelect`). Pass false where the
|
|
3347
|
+
* agent is still being set up.
|
|
3348
|
+
*/
|
|
3349
|
+
showCapabilitySwitch?: boolean;
|
|
3359
3350
|
}
|
|
3360
|
-
declare function AgentDatasetsTab({ labels: labelsOverride, onSelect, selectedDatasetId, AddResourceModal, PaginationComponent, page, search, onPageChange, onSearchChange, disabledResourceTypes, maxUploadSizeMb, dropboxExtensions, }: AgentDatasetsTabProps): react_jsx_runtime.JSX.Element;
|
|
3351
|
+
declare function AgentDatasetsTab({ labels: labelsOverride, onSelect, selectedDatasetId, AddResourceModal, PaginationComponent, page, search, onPageChange, onSearchChange, disabledResourceTypes, maxUploadSizeMb, dropboxExtensions, showCapabilitySwitch, }: AgentDatasetsTabProps): react_jsx_runtime.JSX.Element;
|
|
3361
3352
|
|
|
3362
3353
|
interface LtiTabLabels {
|
|
3363
3354
|
header: {
|
|
@@ -5537,5 +5528,5 @@ declare const CATALOGS: Record<Locale, Messages>;
|
|
|
5537
5528
|
*/
|
|
5538
5529
|
declare function getCatalog(locale: Locale): Messages;
|
|
5539
5530
|
|
|
5540
|
-
export { AGENT_ACCESS_TAB_LABELS, AGENT_ANALYTICS_TAB_LABELS, AGENT_API_TAB_LABELS, AGENT_DATASETS_TAB_LABELS, AGENT_DISCLAIMERS_TAB_LABELS, AGENT_EMBED_TAB_LABELS, AGENT_EVALUATION_TAB_LABELS, AGENT_GRADER_TAB_LABELS, AGENT_HISTORY_TAB_LABELS, AGENT_HUMAN_SUPPORT_TAB_LABELS, AGENT_LLM_TAB_LABELS, AGENT_LTI_TAB_LABELS, AGENT_MEMORY_TAB_LABELS, AGENT_PICKER_LABELS, AGENT_PRIVACY_TAB_LABELS, AGENT_PROMPTS_TAB_LABELS, AGENT_SAFETY_TAB_LABELS, AGENT_SCREENSHARE_TAB_LABELS, AGENT_SEARCH_LABELS, AGENT_SETTINGS_TAB_LABELS, AGENT_SKILLS_TAB_LABELS, AGENT_TASKS_TAB_LABELS,
|
|
5541
|
-
export type { AccessTabLabels, AccessibilityContextType, AccessibilityFabProps, AccessibilitySettings, AccessibilityToolbarProps, AcpToolCall, AgentAccessTabProps, AgentAnalyticsTabProps, AgentApiTabProps, AgentCardProps, AgentDatasetsTabProps, AgentDisclaimersTabProps, AgentEmbedTabProps, AgentEmptyStateProps, AgentEvaluationTabProps, AgentGraderTabProps, AgentHistoryTabProps, AgentHumanSupportTabProps, AgentLLMTabProps, AgentLtiTabProps, AgentMemoryTabProps, AgentPickerLabels, AgentPrivacyTabProps, AgentPromptsTabProps, AgentSafetyTabProps, AgentScreenShareTabProps, AgentSearchFiltersLabels, AgentSearchFiltersProps, AgentSearchFiltersState, AgentSearchInputProps, AgentSearchLabels, AgentSearchProps, AgentSearchResult, AgentSearchSection, AgentSettingsContextValue, AgentSettingsTabProps, AgentSkillsTabProps, AgentSpendCapsTabProps, AgentTasksTabProps,
|
|
5531
|
+
export { AGENT_ACCESS_TAB_LABELS, AGENT_ANALYTICS_TAB_LABELS, AGENT_API_TAB_LABELS, AGENT_DATASETS_TAB_LABELS, AGENT_DISCLAIMERS_TAB_LABELS, AGENT_EMBED_TAB_LABELS, AGENT_EVALUATION_TAB_LABELS, AGENT_GRADER_TAB_LABELS, AGENT_HISTORY_TAB_LABELS, AGENT_HUMAN_SUPPORT_TAB_LABELS, AGENT_LLM_TAB_LABELS, AGENT_LTI_TAB_LABELS, AGENT_MEMORY_TAB_LABELS, AGENT_PICKER_LABELS, AGENT_PRIVACY_TAB_LABELS, AGENT_PROMPTS_TAB_LABELS, AGENT_SAFETY_TAB_LABELS, AGENT_SCREENSHARE_TAB_LABELS, AGENT_SEARCH_LABELS, AGENT_SETTINGS_TAB_LABELS, AGENT_SKILLS_TAB_LABELS, AGENT_TASKS_TAB_LABELS, AGENT_VOICE_TAB_LABELS, AccessibilityFab, AccessibilityProvider, AccessibilityToolbar, Account, AgentAccessTab, AgentAnalyticsTab, AgentApiTab, AgentCard, AgentDatasetsTab, AgentDisclaimersTab, AgentEmbedTab, AgentEmptyState, AgentEvaluationTab, AgentGraderTab, AgentHistoryTab, AgentHumanSupportTab, AgentLLMTab, AgentLtiTab, AgentMemoryTab, AgentPrivacyTab, AgentPromptsTab, AgentSafetyTab, AgentScreenShareTab, AgentSearch, AgentSearchFilters, AgentSearchInput, AgentSettingsProvider, AgentSettingsTab, AgentSkillsTab, AgentSpendCapsTab, AgentTasksTab, AgentVoiceTab, AppSidebar, ApprovalsModeButton, CATALOGS, Chat, ChatDownloadDialog, Markdown as ChatMarkdown, ClientErrorPage, ConversationStarters, CopyButton, CopyMentorModal, CourseBox, CourseContentLayout, CourseContentTabPage, CreateAgentWizardTabStep, CreatePathwayModal, CredentialDetailModal, CredentialMiniBox, DEFAULT_ANALYTICS_HUB_TABS, DRAGGABLE_SNAP_TRANSITION, DeleteMentorModal, EMPTY_PROGRAM_SETTINGS_FORM, EdxIframe, ErrorPage, FloatingAccessibilityButton, GreetingMethod, LLMProviderModal, LocalModelRow, MEMORY_SUB_TABS, McpTab, MediaBox, MentorSelectionGrid, NavBar, NodeConfigPanel, OrganizationTab, PERMISSION_MODES, PERMISSION_MODE_ICONS, PLATFORM_SIDEBAR_FLYOUT_ITEM_COLOR, PLATFORM_SIDEBAR_FLYOUT_TITLE_COLOR, PLATFORM_SIDEBAR_NAV_ACTIVE_BG_OPEN, PLATFORM_SIDEBAR_NAV_MUTED, PRIVACY_AUDIT_LOG_DEFAULT_PAGE_SIZE, PathwayDetailModal, PlatformAccountSheet, PlatformSidebar, PlatformSidebarCollapsedLabelFlyout, PlatformSidebarCollapsedNavFlyout, PlatformSidebarFooter, PlatformSidebarNavDivider, PlatformSidebarNavSection, PlatformSidebarSubNavItem, PrivacyAuditLog, PrivacyAuditLogModal, PrivacyFlagDetail, ProfileInfoCards, ProfileTabs, ProgramDetailModal, ProjectsSidebarDropdown, SPEND_CAPS_SUB_TABS, SidebarInset, SidebarProvider, SidebarTrigger, SpendCapUsage, SsoLogin, StarButton, UserProfileDropdown, UserProfileModal, WebContainersI18nProvider, WorkflowCanvas, WorkflowEditor, WorkflowPreviewChat, WorkflowsList, addPermissionRequest, buildExcelExport, buildTextExport, chatExportFilename, clearImagePreviews, createApprovalModeStore, dropPermissionRequest, formatDateString, getCatalog, getProviderName, imagePreviewsReducer, initializeLocalStorageWithObject, resetCodePermissionsForTests, resolveAgentPickerLabels, resolveAgentSearchLabels, resolveLLMTabLabels, resolveSettingsTabLabels, selectImagePreviews, setChatMarkdownTelemetry, setImagePreview, useAccessibility, useAgentSearch, useAgentSearchWithPagination, useAgentSettings, useAgentStar, useCodePermissionRequests, useCodePermissionSessions, useComposerToolPill, useDraggablePosition, useGetChatDetails, usePlatformSidebarFooterActions, usePlatformSidebarNavCallback, useSidebar, useT, useTimeTracker, useToggleTools, useWebContainersI18n, useWebContainersLocale };
|
|
5532
|
+
export type { AccessTabLabels, AccessibilityContextType, AccessibilityFabProps, AccessibilitySettings, AccessibilityToolbarProps, AcpToolCall, AgentAccessTabProps, AgentAnalyticsTabProps, AgentApiTabProps, AgentCardProps, AgentDatasetsTabProps, AgentDisclaimersTabProps, AgentEmbedTabProps, AgentEmptyStateProps, AgentEvaluationTabProps, AgentGraderTabProps, AgentHistoryTabProps, AgentHumanSupportTabProps, AgentLLMTabProps, AgentLtiTabProps, AgentMemoryTabProps, AgentPickerLabels, AgentPrivacyTabProps, AgentPromptsTabProps, AgentSafetyTabProps, AgentScreenShareTabProps, AgentSearchFiltersLabels, AgentSearchFiltersProps, AgentSearchFiltersState, AgentSearchInputProps, AgentSearchLabels, AgentSearchProps, AgentSearchResult, AgentSearchSection, AgentSettingsContextValue, AgentSettingsTabProps, AgentSkillsTabProps, AgentSpendCapsTabProps, AgentTasksTabProps, AgentVoiceTabProps, AnalyticsHubTab, AnalyticsTabLabels, ApiKey, ApiTabLabels, ApprovalModeStore, ApprovalsModeButtonLabels, ApprovalsModeButtonProps, ChatBrowseBridge, ChatConfig, ChatDownloadDialogProps, ChatEventBus, ChatExportFormat, ChatExportLabels, ChatExportScope, ChatFeatures, ChatLabels, ChatMarkdownComponent, ChatMarkdownTelemetry, ChatProps, ChatSaveFile, ChatSlots, CopyMentorTenant, CourseBoxCourse, CourseBoxProps, CourseContentLayoutProps, CourseContentTab, CourseContentTabPageProps, CreateAgentWizardTabStepProps, CreatePathwayFormData, CreatePathwayModalCourse, CreatePathwayModalProps, CreatePathwayModalResource, CreatedByFilter, CredentialDetailAssertion, CredentialDetailModalProps, CredentialMiniBoxProps, Dataset, DatasetsTabLabels, DeepPartial, DisclaimersTabLabels, DraggableAnchor, DraggableCorner, DraggablePosition, DraggableSide, EdxIframeProps, EmbedTabLabels, EmbedUrlConfig, EvaluationTabLabels, GraderTabLabels, HistoryTabLabels, HumanSupportTabLabels, LLMModelSelection, LLMProvider, LLMProviderModalProps, Provider as LLMProviderType, LLMTabLabels, LocalModelRowLabels, LocalModelRowProps, LocalRowStatus, LtiTabLabels, McpTabProps, MediaBoxProps, MemoryTabLabels, MentorSelectionGridProps, NodeConfigPanelProps, PathwayDetailCourse, PathwayDetailModalProps, PermissionMode, PermissionRequest, PlatformAccountSheetProps, PlatformAccountTab, PlatformSidebarCustomSectionConfig, PlatformSidebarDividerSectionConfig, PlatformSidebarFooterActionId, PlatformSidebarFooterConfig, PlatformSidebarMenu, PlatformSidebarMenuItem, PlatformSidebarMenuSectionConfig, PlatformSidebarNavIcon, PlatformSidebarPrimaryAction, PlatformSidebarProps, PlatformSidebarSectionConfig, PlatformSidebarSectionContext, PrivacyAuditLogModalProps, PrivacyAuditLogProps, PrivacyFlagDetailProps, PrivacyTabLabels, ProfileInfoCardsProps, ProfileInfoSummary, ProfileTabItem, ProfileTabsProps, ProfileTopContent, ProgramDetailCourse, ProgramDetailModalProps, ProgramDetailProgram, ProgramSettingsFormData, ProjectsConfig, ProjectsSidebarDropdownProps, PromptsEditFormValues, PromptsSelectedPrompt, PromptsTabLabels, ReactFlowJsonObject, SafetyEditFormValues, SafetySelectedPrompt, SafetyTabLabels, ScreenShareTabLabels, SettingsTabLabels, SkillsTabLabels, SpendCapUsageProps, SsoProvider, StarButtonProps, SupportTicketsFilter, TaskDisplayStatus, TaskListItem, TaskLog, TasksTabLabels, UploadedFile, UseAgentSearchConfig, UseAgentSearchResult, UseAgentSearchWithPaginationConfig, UseAgentSearchWithPaginationResult, UseAgentStarConfig, UseAgentStarResult, UseDraggablePositionOptions, UseTimeTrackerConfig, UseTimeTrackerReturn, UserMetadata, UserProfileDropdownProps, VisibilityOption, VoiceTabLabels, WebContainersI18nProviderProps, WebContainersI18nValue, WorkflowCanvasProps, WorkflowEditorProps, WorkflowPreviewChatProps, WorkflowsListProps };
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/web-containers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "ibl web containers",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -180,9 +180,9 @@
|
|
|
180
180
|
"react-remove-scroll": "^2.7.2",
|
|
181
181
|
"react-remove-scroll-bar": "^2.3.8",
|
|
182
182
|
"sonner": "^2.0.0",
|
|
183
|
-
"@iblai/data-layer": "
|
|
184
|
-
"@iblai/
|
|
185
|
-
"@iblai/
|
|
183
|
+
"@iblai/data-layer": "2.0.0",
|
|
184
|
+
"@iblai/agent-ai": "2.15.2",
|
|
185
|
+
"@iblai/web-utils": "3.0.0"
|
|
186
186
|
},
|
|
187
187
|
"peerDependenciesMeta": {
|
|
188
188
|
"@livekit/components-react": {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var labelsUtils = require('../labels-utils.js');
|
|
4
|
-
|
|
5
|
-
const AGENT_TOOLS_TAB_LABELS = {
|
|
6
|
-
header: {
|
|
7
|
-
title: 'Tools',
|
|
8
|
-
description: 'Configure tools and integrations for your agent.',
|
|
9
|
-
},
|
|
10
|
-
infoBox: 'Give your agent hands. Tools let it do things beyond chatting — look something up, call an API, trigger an action — so it can actually get work done for people.',
|
|
11
|
-
moreInfoAbout: (name) => `More info about ${name}`,
|
|
12
|
-
switchAriaLabel: (name, isEnabled) => `${name} ${isEnabled ? 'enabled' : 'disabled'}`,
|
|
13
|
-
toasts: {
|
|
14
|
-
toggleSuccess: 'Agent updated successfully',
|
|
15
|
-
toggleError: 'Failed to update tool',
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
function buildToolsTabLabels(t) {
|
|
19
|
-
return {
|
|
20
|
-
header: {
|
|
21
|
-
title: t('toolsTabLabels.header.title'),
|
|
22
|
-
description: t('toolsTabLabels.header.description'),
|
|
23
|
-
},
|
|
24
|
-
infoBox: t('toolsTabLabels.infoBox'),
|
|
25
|
-
moreInfoAbout: (name) => t('toolsTabLabels.moreInfoAbout', { name }),
|
|
26
|
-
switchAriaLabel: (name, isEnabled) => t('toolsTabLabels.switchAriaLabel', {
|
|
27
|
-
name,
|
|
28
|
-
state: isEnabled ? t('toolsTabLabels.enabled') : t('toolsTabLabels.disabled'),
|
|
29
|
-
}),
|
|
30
|
-
toasts: {
|
|
31
|
-
toggleSuccess: t('toolsTabLabels.toasts.toggleSuccess'),
|
|
32
|
-
toggleError: t('toolsTabLabels.toasts.toggleError'),
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function resolveToolsTabLabels(override, t) {
|
|
37
|
-
const base = t ? buildToolsTabLabels(t) : AGENT_TOOLS_TAB_LABELS;
|
|
38
|
-
if (!override)
|
|
39
|
-
return base;
|
|
40
|
-
return labelsUtils.deepMerge(base, override);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.AGENT_TOOLS_TAB_LABELS = AGENT_TOOLS_TAB_LABELS;
|
|
44
|
-
exports.buildToolsTabLabels = buildToolsTabLabels;
|
|
45
|
-
exports.resolveToolsTabLabels = resolveToolsTabLabels;
|
|
46
|
-
//# sourceMappingURL=labels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labels.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/tools-tab/labels.ts"],"sourcesContent":[null],"names":["deepMerge"],"mappings":";;;;AAqBO,MAAM,sBAAsB,GAAmB;AACpD,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,WAAW,EAAE,kDAAkD;AAChE,KAAA;AACD,IAAA,OAAO,EACL,kKAAkK;IACpK,aAAa,EAAE,CAAC,IAAY,KAAK,CAAA,gBAAA,EAAmB,IAAI,CAAA,CAAE;IAC1D,eAAe,EAAE,CAAC,IAAY,EAAE,SAAkB,KAChD,CAAA,EAAG,IAAI,IAAI,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA,CAAE;AACjD,IAAA,MAAM,EAAE;AACN,QAAA,aAAa,EAAE,4BAA4B;AAC3C,QAAA,WAAW,EAAE,uBAAuB;AACrC,KAAA;;AAGG,SAAU,mBAAmB,CAAC,CAAoB,EAAA;IACtD,OAAO;AACL,QAAA,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;AACvC,YAAA,WAAW,EAAE,CAAC,CAAC,mCAAmC,CAAC;AACpD,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,CAAC,wBAAwB,CAAC;AACpC,QAAA,aAAa,EAAE,CAAC,IAAY,KAAK,CAAC,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,CAAC;QAC5E,eAAe,EAAE,CAAC,IAAY,EAAE,SAAkB,KAChD,CAAC,CAAC,gCAAgC,EAAE;YAClC,IAAI;AACJ,YAAA,KAAK,EAAE,SAAS,GAAG,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,yBAAyB,CAAC;SAC9E,CAAC;AACJ,QAAA,MAAM,EAAE;AACN,YAAA,aAAa,EAAE,CAAC,CAAC,qCAAqC,CAAC;AACvD,YAAA,WAAW,EAAE,CAAC,CAAC,mCAAmC,CAAC;AACpD,SAAA;KACF;AACH;AAEM,SAAU,qBAAqB,CACnC,QAAsC,EACtC,CAAqB,EAAA;AAErB,IAAA,MAAM,IAAI,GAAG,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,sBAAsB;AAChE,IAAA,IAAI,CAAC,QAAQ;AAAE,QAAA,OAAO,IAAI;AAC1B,IAAA,OAAOA,qBAAS,CAAC,IAAI,EAAE,QAAQ,CAAmB;AACpD;;;;;;"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var sonner = require('sonner');
|
|
4
|
-
var dataLayer = require('@iblai/data-layer');
|
|
5
|
-
var agentSettingsContext = require('../../agent-settings-context.js');
|
|
6
|
-
|
|
7
|
-
function useTools({ labels }) {
|
|
8
|
-
var _a, _b;
|
|
9
|
-
const { tenantKey, mentorId, username } = agentSettingsContext.useAgentSettings();
|
|
10
|
-
const { data: tools, isLoading: isToolsLoading } = dataLayer.useGetToolsQuery({
|
|
11
|
-
mentor: mentorId,
|
|
12
|
-
org: tenantKey,
|
|
13
|
-
// @ts-expect-error userId is not in the typed args but the API accepts it
|
|
14
|
-
userId: username !== null && username !== void 0 ? username : '',
|
|
15
|
-
}, {
|
|
16
|
-
skip: !username,
|
|
17
|
-
});
|
|
18
|
-
const { data: mentorSettings, isLoading: isMentorSettingsLoading } = dataLayer.useGetMentorSettingsQuery({
|
|
19
|
-
mentor: mentorId,
|
|
20
|
-
org: tenantKey,
|
|
21
|
-
// @ts-expect-error userId is not in the typed args but the API accepts it
|
|
22
|
-
userId: username !== null && username !== void 0 ? username : '',
|
|
23
|
-
}, { skip: !username || !mentorId || !tenantKey });
|
|
24
|
-
const [editMentor, { isLoading: isToggleLoading }] = dataLayer.useEditMentorMutation();
|
|
25
|
-
const mentorTools = (_b = (_a = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.mentor_tools) === null || _a === void 0 ? void 0 : _a.map((t) => t.slug)) !== null && _b !== void 0 ? _b : [];
|
|
26
|
-
const isDisabled = isMentorSettingsLoading || isToggleLoading || isToolsLoading;
|
|
27
|
-
async function toggleTool(toolSlug, callback) {
|
|
28
|
-
var _a, _b;
|
|
29
|
-
const newMentorTools = mentorTools.includes(toolSlug)
|
|
30
|
-
? mentorTools.filter((tool) => tool !== toolSlug)
|
|
31
|
-
: [...mentorTools, toolSlug];
|
|
32
|
-
try {
|
|
33
|
-
await editMentor({
|
|
34
|
-
mentor: mentorId,
|
|
35
|
-
org: tenantKey,
|
|
36
|
-
formData: {
|
|
37
|
-
tool_slugs: newMentorTools,
|
|
38
|
-
can_use_tools: newMentorTools.length > 0,
|
|
39
|
-
},
|
|
40
|
-
// @ts-expect-error userId is not in the typed args but the API accepts it
|
|
41
|
-
userId: username !== null && username !== void 0 ? username : '',
|
|
42
|
-
}).unwrap();
|
|
43
|
-
sonner.toast.success(labels.toasts.toggleSuccess);
|
|
44
|
-
callback === null || callback === void 0 ? void 0 : callback();
|
|
45
|
-
}
|
|
46
|
-
catch (error) {
|
|
47
|
-
const errorMessage = ((_a = error === null || error === void 0 ? void 0 : error.data) === null || _a === void 0 ? void 0 : _a.error) || ((_b = error === null || error === void 0 ? void 0 : error.error) === null || _b === void 0 ? void 0 : _b.error) || labels.toasts.toggleError;
|
|
48
|
-
sonner.toast.error(errorMessage);
|
|
49
|
-
console.error('Failed to toggle tool:', error);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
tools,
|
|
54
|
-
mentorSettings,
|
|
55
|
-
mentorTools,
|
|
56
|
-
toggleTool,
|
|
57
|
-
isDisabled,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
exports.useTools = useTools;
|
|
62
|
-
//# sourceMappingURL=use-tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-tools.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/tools-tab/use-tools.ts"],"sourcesContent":[null],"names":["useAgentSettings","useGetToolsQuery","useGetMentorSettingsQuery","useEditMentorMutation","toast"],"mappings":";;;;;;AAoBM,SAAU,QAAQ,CAAC,EAAE,MAAM,EAAmB,EAAA;;IAClD,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAGA,qCAAgB,EAAE;IAE5D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,GAAGC,0BAAgB,CACjE;AACE,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,GAAG,EAAE,SAAS;;AAEd,QAAA,MAAM,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,MAAA,GAAR,QAAQ,GAAI,EAAE;KACvB,EACD;QACE,IAAI,EAAE,CAAC,QAAQ;AAChB,KAAA,CACF;IAED,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,uBAAuB,EAAE,GAAGC,mCAAyB,CAC5F;AACE,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,GAAG,EAAE,SAAS;;AAEd,QAAA,MAAM,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,MAAA,GAAR,QAAQ,GAAI,EAAE;AACvB,KAAA,EACD,EAAE,IAAI,EAAE,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,CAAC,SAAS,EAAE,CAC/C;AAED,IAAA,MAAM,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,GAAGC,+BAAqB,EAAE;IAE5E,MAAM,WAAW,GACf,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,YAAY,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,GAAG,CAAC,CAAC,CAAmB,KAAK,CAAC,CAAC,IAAI,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,EAAE;AAE1E,IAAA,MAAM,UAAU,GAAG,uBAAuB,IAAI,eAAe,IAAI,cAAc;AAE/E,IAAA,eAAe,UAAU,CAAC,QAAgB,EAAE,QAAqB,EAAA;;AAC/D,QAAA,MAAM,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC,QAAQ;AAClD,cAAE,WAAW,CAAC,MAAM,CAAC,CAAC,IAAY,KAAK,IAAI,KAAK,QAAQ;AACxD,cAAE,CAAC,GAAG,WAAW,EAAE,QAAQ,CAAC;AAE9B,QAAA,IAAI;AACF,YAAA,MAAM,UAAU,CAAC;AACf,gBAAA,MAAM,EAAE,QAAQ;AAChB,gBAAA,GAAG,EAAE,SAAS;AACd,gBAAA,QAAQ,EAAE;AACR,oBAAA,UAAU,EAAE,cAAc;AAC1B,oBAAA,aAAa,EAAE,cAAc,CAAC,MAAM,GAAG,CAAC;AACzC,iBAAA;;AAED,gBAAA,MAAM,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAR,QAAQ,GAAI,EAAE;aACvB,CAAC,CAAC,MAAM,EAAE;YACXC,YAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;AAC1C,YAAA,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,EAAI;QACd;QAAE,OAAO,KAAU,EAAE;AACnB,YAAA,MAAM,YAAY,GAAG,CAAA,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,MAAA,GAAA,MAAA,GAAL,KAAK,CAAE,IAAI,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,KAAK,MAAI,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,MAAA,GAAA,MAAA,GAAL,KAAK,CAAE,KAAK,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,KAAK,CAAA,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW;AAC3F,YAAAA,YAAK,CAAC,KAAK,CAAC,YAAY,CAAC;AACzB,YAAA,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC;QAChD;IACF;IAEA,OAAO;QACL,KAAK;QACL,cAAc;QACd,WAAW;QACX,UAAU;QACV,UAAU;KACX;AACH;;;;"}
|