@iblai/web-containers 2.3.0 → 2.5.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.
Files changed (79) hide show
  1. package/dist/cjs/components/chat/ai-message-bubble.js +2 -1
  2. package/dist/cjs/components/chat/ai-message-bubble.js.map +1 -1
  3. package/dist/cjs/components/chat/chat-host-context.js.map +1 -1
  4. package/dist/cjs/components/chat/client-ui-tools/definitions.js +187 -0
  5. package/dist/cjs/components/chat/client-ui-tools/definitions.js.map +1 -0
  6. package/dist/cjs/components/chat/client-ui-tools/panel-list.js +91 -0
  7. package/dist/cjs/components/chat/client-ui-tools/panel-list.js.map +1 -0
  8. package/dist/cjs/components/chat/client-ui-tools/panels.js +242 -0
  9. package/dist/cjs/components/chat/client-ui-tools/panels.js.map +1 -0
  10. package/dist/cjs/components/chat/client-ui-tools/runner.js +285 -0
  11. package/dist/cjs/components/chat/client-ui-tools/runner.js.map +1 -0
  12. package/dist/cjs/components/chat/client-ui-tools/store.js +119 -0
  13. package/dist/cjs/components/chat/client-ui-tools/store.js.map +1 -0
  14. package/dist/cjs/components/chat/client-ui-tools/use-client-ui-tools.js +29 -0
  15. package/dist/cjs/components/chat/client-ui-tools/use-client-ui-tools.js.map +1 -0
  16. package/dist/cjs/components/chat/index.js +39 -2
  17. package/dist/cjs/components/chat/index.js.map +1 -1
  18. package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js +5 -1
  19. package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js.map +1 -1
  20. package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +8 -0
  21. package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
  22. package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +5 -1
  23. package/dist/cjs/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
  24. package/dist/cjs/components/ui/chart.js +2 -0
  25. package/dist/cjs/components/ui/chart.js.map +1 -1
  26. package/dist/cjs/hooks/use-extension-client-tools.js +98 -0
  27. package/dist/cjs/hooks/use-extension-client-tools.js.map +1 -0
  28. package/dist/cjs/i18n/messages/en.json.js +22 -0
  29. package/dist/cjs/i18n/messages/en.json.js.map +1 -1
  30. package/dist/cjs/i18n/messages/es.json.js +22 -0
  31. package/dist/cjs/i18n/messages/es.json.js.map +1 -1
  32. package/dist/cjs/i18n/messages/fr.json.js +22 -0
  33. package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
  34. package/dist/cjs/i18n/messages/zh.json.js +22 -0
  35. package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
  36. package/dist/cjs/next/index.js +16 -0
  37. package/dist/cjs/next/index.js.map +1 -1
  38. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
  39. package/dist/esm/components/chat/ai-message-bubble.js +2 -1
  40. package/dist/esm/components/chat/ai-message-bubble.js.map +1 -1
  41. package/dist/esm/components/chat/chat-host-context.js.map +1 -1
  42. package/dist/esm/components/chat/client-ui-tools/definitions.js +183 -0
  43. package/dist/esm/components/chat/client-ui-tools/definitions.js.map +1 -0
  44. package/dist/esm/components/chat/client-ui-tools/panel-list.js +89 -0
  45. package/dist/esm/components/chat/client-ui-tools/panel-list.js.map +1 -0
  46. package/dist/esm/components/chat/client-ui-tools/panels.js +240 -0
  47. package/dist/esm/components/chat/client-ui-tools/panels.js.map +1 -0
  48. package/dist/esm/components/chat/client-ui-tools/runner.js +278 -0
  49. package/dist/esm/components/chat/client-ui-tools/runner.js.map +1 -0
  50. package/dist/esm/components/chat/client-ui-tools/store.js +113 -0
  51. package/dist/esm/components/chat/client-ui-tools/store.js.map +1 -0
  52. package/dist/esm/components/chat/client-ui-tools/use-client-ui-tools.js +27 -0
  53. package/dist/esm/components/chat/client-ui-tools/use-client-ui-tools.js.map +1 -0
  54. package/dist/esm/components/chat/index.js +39 -2
  55. package/dist/esm/components/chat/index.js.map +1 -1
  56. package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js +5 -1
  57. package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/capabilities-sub-tab.js.map +1 -1
  58. package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +8 -0
  59. package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
  60. package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +5 -1
  61. package/dist/esm/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
  62. package/dist/esm/components/ui/chart.js +2 -1
  63. package/dist/esm/components/ui/chart.js.map +1 -1
  64. package/dist/esm/hooks/use-extension-client-tools.js +96 -0
  65. package/dist/esm/hooks/use-extension-client-tools.js.map +1 -0
  66. package/dist/esm/i18n/messages/en.json.js +22 -1
  67. package/dist/esm/i18n/messages/en.json.js.map +1 -1
  68. package/dist/esm/i18n/messages/es.json.js +22 -1
  69. package/dist/esm/i18n/messages/es.json.js.map +1 -1
  70. package/dist/esm/i18n/messages/fr.json.js +22 -1
  71. package/dist/esm/i18n/messages/fr.json.js.map +1 -1
  72. package/dist/esm/i18n/messages/zh.json.js +22 -1
  73. package/dist/esm/i18n/messages/zh.json.js.map +1 -1
  74. package/dist/esm/next/index.js +6 -0
  75. package/dist/esm/next/index.js.map +1 -1
  76. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
  77. package/dist/next/index.d.ts +176 -4
  78. package/dist/package.json +6 -2
  79. package/package.json +7 -3
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { ComponentType, ReactNode, PointerEvent, MouseEvent, DragEvent, KeyboardEvent } from 'react';
4
- import { Tenant, ChatMode, Message } from '@iblai/web-utils';
4
+ import { Tenant, ChatMode, Message, ClientToolDefinition, ClientToolCall } from '@iblai/web-utils';
5
5
  import { UserApp, Assertion, PathwayEnrollmentPlus, PathwayCompletionResponse, ProgramCompletionResponse, MentorSettings, PromptVisibilityEnum, MentorFacet } from '@iblai/iblai-api';
6
6
  import { TranslateFunction } from '@web-containers/i18n';
7
7
  import { TranslateFunction as TranslateFunction$1, Locale, Messages } from '@iblai/i18n';
@@ -1475,6 +1475,10 @@ interface SettingsTabLabels {
1475
1475
  label: string;
1476
1476
  tooltip: string;
1477
1477
  };
1478
+ clientTools: {
1479
+ label: string;
1480
+ tooltip: string;
1481
+ };
1478
1482
  /** `chat_history_max_messages`; placeholder is the server default. */
1479
1483
  chatHistoryMessages: ContextLimitLabels;
1480
1484
  /** `chat_history_max_tokens`. */
@@ -4679,6 +4683,16 @@ type ChatProps = {
4679
4683
  tenantKey: string;
4680
4684
  userIsStudent: boolean;
4681
4685
  isPublicRoute?: boolean;
4686
+ /**
4687
+ * Origin serving `/v1/chat/tool-results`. Without it the chat offers the
4688
+ * agent no client tools, because their results would have nowhere to go.
4689
+ */
4690
+ toolResultBaseUrl?: string;
4691
+ /**
4692
+ * The agent's `enable_client_tools`. The backend refuses a turn carrying
4693
+ * tools with it off, so nothing is offered until the host says it is on.
4694
+ */
4695
+ clientToolsEnabled?: boolean;
4682
4696
  /**
4683
4697
  * Embedded (iframe widget) presentation. Orthogonal to `mode` (an embedded
4684
4698
  * chat can also be advanced). Defaults to the `?embed=true` query param.
@@ -4716,7 +4730,7 @@ type ChatProps = {
4716
4730
  * (navigation, paywall, Chrome-extension Browse, Tauri-only composer pills)
4717
4731
  * is injected through `config` / `slots`.
4718
4732
  */
4719
- declare function Chat({ mode, isPreviewMode, hasBorder, isInCanvasView, config, redirectToAuthSpa, redirectToAuthSpaJoinTenant, username, userTenants, visitingTenant, axdToken, mentorId, tenantKey, userIsStudent, isPublicRoute, embed, labels, slots, projectId, showConversationStarters, showExploreMentors, slashSkillsEnabled, slashSkills, slashSkillsLoading, }: ChatProps): react_jsx_runtime.JSX.Element;
4733
+ declare function Chat({ mode, isPreviewMode, hasBorder, isInCanvasView, config, redirectToAuthSpa, redirectToAuthSpaJoinTenant, username, userTenants, visitingTenant, axdToken, mentorId, tenantKey, userIsStudent, isPublicRoute, toolResultBaseUrl, clientToolsEnabled, embed, labels, slots, projectId, showConversationStarters, showExploreMentors, slashSkillsEnabled, slashSkills, slashSkillsLoading, }: ChatProps): react_jsx_runtime.JSX.Element;
4720
4734
 
4721
4735
  type ChatDownloadDialogProps = {
4722
4736
  open: boolean;
@@ -4858,6 +4872,164 @@ declare function useCodePermissionSessions(): Set<string>;
4858
4872
  */
4859
4873
  declare function resetCodePermissionsForTests(): void;
4860
4874
 
4875
+ /**
4876
+ * Tools the agent calls to put rich UI in the chat: a chart instead of a table
4877
+ * of numbers in prose, a form instead of asking for six fields one at a time.
4878
+ *
4879
+ * They are client tools like any other — declared on the turn, called by the
4880
+ * agent, run here — but what "running" means is rendering. Most answer as soon
4881
+ * as the panel is on screen; `ui_form` answers when the person submits it,
4882
+ * which is what the contract's long wait is for.
4883
+ *
4884
+ * Names are prefixed `ui_` so they cannot collide with the agent's own tools
4885
+ * or the backend's built-ins (`execute`, `glob`, `read_file`, …).
4886
+ */
4887
+ declare const CHART_KINDS: readonly ["bar", "stacked-bar", "line", "area", "pie", "donut", "scatter", "radar", "combo", "treemap", "radial", "funnel"];
4888
+ type ChartKind = (typeof CHART_KINDS)[number];
4889
+ declare const FIELD_KINDS: readonly ["text", "textarea", "number", "email", "select", "checkbox", "radio", "date"];
4890
+ type FieldKind = (typeof FIELD_KINDS)[number];
4891
+ declare const UI_TOOL_NAMES: {
4892
+ readonly chart: "ui_chart";
4893
+ readonly diagram: "ui_diagram";
4894
+ readonly table: "ui_table";
4895
+ readonly form: "ui_form";
4896
+ readonly metrics: "ui_metrics";
4897
+ };
4898
+ type UiToolName = (typeof UI_TOOL_NAMES)[keyof typeof UI_TOOL_NAMES];
4899
+ declare const UI_TOOL_DEFINITIONS: ClientToolDefinition[];
4900
+ declare const isUiToolName: (name: string) => name is UiToolName;
4901
+
4902
+ /**
4903
+ * Panels the agent has put in the chat, in arrival order.
4904
+ *
4905
+ * A module store rather than Redux: chat components remount constantly, and a
4906
+ * panel arriving between teardown and re-subscribe would be lost — the same
4907
+ * reasoning as the permission-card store next door.
4908
+ */
4909
+ /** Where a panel sits among its turn's others. */
4910
+ interface PanelLayout {
4911
+ columns?: number;
4912
+ span?: number;
4913
+ }
4914
+ interface PanelBase {
4915
+ id: string;
4916
+ layout?: PanelLayout;
4917
+ /** The turn that produced it, so ending the turn can clear its panels. */
4918
+ generationId?: string;
4919
+ }
4920
+ interface ChartPanel extends PanelBase {
4921
+ kind: 'chart';
4922
+ chartKind: ChartKind;
4923
+ title?: string;
4924
+ xTitle?: string;
4925
+ yTitle?: string;
4926
+ labels: string[];
4927
+ series: {
4928
+ name: string;
4929
+ data: number[];
4930
+ }[];
4931
+ }
4932
+ interface DiagramPanel extends PanelBase {
4933
+ kind: 'diagram';
4934
+ title?: string;
4935
+ /** Mermaid source, without fences. */
4936
+ source: string;
4937
+ }
4938
+ interface TablePanel extends PanelBase {
4939
+ kind: 'table';
4940
+ title?: string;
4941
+ columns: string[];
4942
+ rows: string[][];
4943
+ }
4944
+ interface MetricsPanel extends PanelBase {
4945
+ kind: 'metrics';
4946
+ title?: string;
4947
+ items: {
4948
+ label: string;
4949
+ value: string;
4950
+ hint?: string;
4951
+ }[];
4952
+ }
4953
+ interface FormField {
4954
+ name: string;
4955
+ label: string;
4956
+ kind: FieldKind;
4957
+ placeholder?: string;
4958
+ required?: boolean;
4959
+ options?: string[];
4960
+ }
4961
+ interface FormPanel extends PanelBase {
4962
+ kind: 'form';
4963
+ title?: string;
4964
+ description?: string;
4965
+ submitLabel?: string;
4966
+ fields: FormField[];
4967
+ /** Settled once; further presses do nothing. */
4968
+ settle: (values: Record<string, string> | null) => void;
4969
+ settled?: boolean;
4970
+ }
4971
+ type ClientUiPanel = ChartPanel | DiagramPanel | TablePanel | MetricsPanel | FormPanel;
4972
+ /**
4973
+ * Drop every panel of a turn. A form still waiting is settled with `null`
4974
+ * first: the agent is no longer listening, and leaving the promise open would
4975
+ * strand the runner.
4976
+ */
4977
+ declare function dropUiPanels(generationId?: string): void;
4978
+ declare function clearUiPanelsForTests(): void;
4979
+ declare function useClientUiPanels(): ClientUiPanel[];
4980
+
4981
+ declare function runUiTool(call: ClientToolCall): Promise<unknown>;
4982
+
4983
+ declare function ClientUiPanelView({ panel }: {
4984
+ panel: ClientUiPanel;
4985
+ }): react_jsx_runtime.JSX.Element;
4986
+
4987
+ /** The tool calls a message kept, as the chat stores them. */
4988
+ interface PanelToolCall {
4989
+ id: string;
4990
+ name: string;
4991
+ input?: Record<string, unknown>;
4992
+ }
4993
+ /**
4994
+ * The panels one turn put in the chat, under that turn's message.
4995
+ *
4996
+ * Matched on the tool call rather than the turn: a finished turn's messages
4997
+ * are replaced by the server's own, with its ids, so a panel keyed only on
4998
+ * the generation id is orphaned the moment that lands — the chart appears,
4999
+ * then vanishes. The call id travels with the message's `toolCalls`, which
5000
+ * survives the swap, and the generation id stays as the fallback for the
5001
+ * window before the server's copy arrives.
5002
+ *
5003
+ * A panel the live store no longer holds — anything drawn before a reload —
5004
+ * is rebuilt from the call's own arguments, so a transcript keeps its charts.
5005
+ */
5006
+ declare function ClientUiPanels({ generationId, toolCalls, }: {
5007
+ generationId: string;
5008
+ toolCalls?: PanelToolCall[];
5009
+ }): react_jsx_runtime.JSX.Element | null;
5010
+
5011
+ /**
5012
+ * The agent's rich-UI tools, combined with whatever else this surface can run.
5013
+ *
5014
+ * UI tools work anywhere the chat renders — browser, desktop, embed — so they
5015
+ * need no extension. The extension's browser tools are merged in when present,
5016
+ * and a call is routed by name.
5017
+ *
5018
+ * Nothing is offered unless the agent permits client tools. The backend
5019
+ * refuses a turn that carries them with the flag off, so offering them to an
5020
+ * agent that has not enabled them would break every message rather than
5021
+ * degrade quietly.
5022
+ */
5023
+ declare function useClientUiTools(extension: {
5024
+ clientTools: ClientToolDefinition[];
5025
+ runClientTool: (call: ClientToolCall) => Promise<unknown>;
5026
+ },
5027
+ /** The agent's `enable_client_tools`, read by the host. */
5028
+ allowed: boolean): {
5029
+ clientTools: ClientToolDefinition[];
5030
+ runClientTool: (call: ClientToolCall) => Promise<unknown>;
5031
+ };
5032
+
4861
5033
  type PermissionMode = 'manual' | 'auto';
4862
5034
  declare const PERMISSION_MODES: readonly PermissionMode[];
4863
5035
  declare const PERMISSION_MODE_ICONS: Record<PermissionMode, LucideIcon>;
@@ -5554,5 +5726,5 @@ declare const CATALOGS: Record<Locale, Messages>;
5554
5726
  */
5555
5727
  declare function getCatalog(locale: Locale): Messages;
5556
5728
 
5557
- 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 };
5558
- 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 };
5729
+ 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, ClientUiPanelView, ClientUiPanels, 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, UI_TOOL_DEFINITIONS, UI_TOOL_NAMES, UserProfileDropdown, UserProfileModal, WebContainersI18nProvider, WorkflowCanvas, WorkflowEditor, WorkflowPreviewChat, WorkflowsList, addPermissionRequest, buildExcelExport, buildTextExport, chatExportFilename, clearImagePreviews, clearUiPanelsForTests, createApprovalModeStore, dropPermissionRequest, dropUiPanels, formatDateString, getCatalog, getProviderName, imagePreviewsReducer, initializeLocalStorageWithObject, isUiToolName, resetCodePermissionsForTests, resolveAgentPickerLabels, resolveAgentSearchLabels, resolveLLMTabLabels, resolveSettingsTabLabels, runUiTool, selectImagePreviews, setChatMarkdownTelemetry, setImagePreview, useAccessibility, useAgentSearch, useAgentSearchWithPagination, useAgentSettings, useAgentStar, useClientUiPanels, useClientUiTools, useCodePermissionRequests, useCodePermissionSessions, useComposerToolPill, useDraggablePosition, useGetChatDetails, usePlatformSidebarFooterActions, usePlatformSidebarNavCallback, useSidebar, useT, useTimeTracker, useToggleTools, useWebContainersI18n, useWebContainersLocale };
5730
+ 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, ClientUiPanel, 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, FormField, 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, UiToolName, 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -199,7 +199,8 @@
199
199
  "react-redux": "9.2.0",
200
200
  "react-remove-scroll": "^2.7.2",
201
201
  "react-remove-scroll-bar": "^2.3.8",
202
- "sonner": "^2.0.0"
202
+ "sonner": "^2.0.0",
203
+ "mermaid": "^12"
203
204
  },
204
205
  "peerDependenciesMeta": {
205
206
  "@livekit/components-react": {
@@ -213,6 +214,9 @@
213
214
  },
214
215
  "sonner": {
215
216
  "optional": true
217
+ },
218
+ "mermaid": {
219
+ "optional": true
216
220
  }
217
221
  },
218
222
  "packageManager": "pnpm@10.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -183,9 +183,10 @@
183
183
  "react-remove-scroll": "^2.7.2",
184
184
  "react-remove-scroll-bar": "^2.3.8",
185
185
  "sonner": "^2.0.0",
186
+ "mermaid": "^12",
186
187
  "@iblai/agent-ai": "2.15.3",
187
- "@iblai/web-utils": "3.1.0",
188
- "@iblai/data-layer": "2.3.0"
188
+ "@iblai/data-layer": "2.3.0",
189
+ "@iblai/web-utils": "3.2.0"
189
190
  },
190
191
  "peerDependenciesMeta": {
191
192
  "@livekit/components-react": {
@@ -199,6 +200,9 @@
199
200
  },
200
201
  "sonner": {
201
202
  "optional": true
203
+ },
204
+ "mermaid": {
205
+ "optional": true
202
206
  }
203
207
  },
204
208
  "publishConfig": {