@iblai/iblai-js 2.5.5 → 2.5.6

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.
@@ -192428,7 +192428,7 @@ const defaultTabs = [
192428
192428
  value: 'monetization',
192429
192429
  },*/
192430
192430
  ];
192431
- const className = 'inline-flex items-center justify-center whitespace-nowrap rounded-[5px] px-2 sm:px-2.5 pt-1 pb-0.5 sm:text-sm text-gray-500 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-blue-600 data-[state=active]:font-semibold text-sm font-medium data-[state=active]:bg-[#f5f7fb] data-[state=active]:shadow-none cursor-pointer';
192431
+ const className = 'inline-flex h-7 shrink-0 items-center justify-center whitespace-nowrap rounded-[5px] px-2 sm:px-2.5 py-0 text-sm text-gray-500 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-blue-600 data-[state=active]:font-semibold font-medium data-[state=active]:bg-[#f5f7fb] data-[state=active]:shadow-none cursor-pointer';
192432
192432
  function AnalyticsLayout({ children, currentPath, basePath, onTabChange, tabs = defaultTabs, activeTabClassName = '', beforeDataReports, excludeTabs = [], showPicker = false, tenantKey, scopedMentor, onScopedMentorChange, }) {
192433
192433
  var _a, _b;
192434
192434
  const { currentTenant } = useCurrentTenant();
@@ -192521,12 +192521,12 @@ function AnalyticsLayout({ children, currentPath, basePath, onTabChange, tabs =
192521
192521
  return;
192522
192522
  onTabChange(tabValue);
192523
192523
  };
192524
- return (jsx(AnalyticsScopeProvider, { value: scopeValue, children: jsxs("div", { className: "flex flex-col flex-1 min-h-0 h-full overflow-hidden overscroll-none bg-[#f5f7fb]", children: [jsx("div", { className: "p-6 pb-0 pt-4 xs:pt-0", children: jsx("div", { className: "flex items-center justify-between mb-4 xs:mb-2", children: jsxs("div", { className: "flex items-center justify-between w-full overflow-x-auto", children: [jsxs("div", { className: "flex items-center gap-3", children: [showPicker && (jsx("div", { className: "shrink-0", children: jsx(AnalyticsAgentPicker, { tenantKey: (_b = tenantKey !== null && tenantKey !== void 0 ? tenantKey : currentTenant === null || currentTenant === void 0 ? void 0 : currentTenant.key) !== null && _b !== void 0 ? _b : '', value: activeScopedMentor, onChange: handleScopedMentorChange }) })), jsx(Tabs, { className: "bg-[#f5f7fb]", value: activeTab, children: jsx(TabsList, { className: "bg-[#f5f7fb]", children: tabs
192524
+ return (jsx(AnalyticsScopeProvider, { value: scopeValue, children: jsxs("div", { className: "flex flex-col flex-1 min-h-0 h-full overflow-hidden overscroll-none bg-[#f5f7fb]", children: [jsx("div", { className: "p-6 pb-0 pt-4", children: jsxs("div", { className: "mb-4 flex flex-col gap-2 sm:mb-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3", children: [jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [showPicker && (jsx("div", { className: "shrink-0", children: jsx(AnalyticsAgentPicker, { tenantKey: (_b = tenantKey !== null && tenantKey !== void 0 ? tenantKey : currentTenant === null || currentTenant === void 0 ? void 0 : currentTenant.key) !== null && _b !== void 0 ? _b : '', value: activeScopedMentor, onChange: handleScopedMentorChange }) })), jsx("div", { className: "min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: jsx(Tabs, { className: "bg-[#f5f7fb]", value: activeTab, children: jsx(TabsList, { className: "w-max bg-[#f5f7fb]", children: tabs
192525
192525
  .filter((tab) => !excludeTabs.includes(tab.value) && canAccessTab(tab.value))
192526
192526
  .map((tab) => {
192527
192527
  const isActive = activeTab === tab.value;
192528
192528
  return (jsx(TabsTrigger, { value: tab.value, className: cn(className, isActive && activeTabClassName), onClick: () => handleTabClick(tab.value), children: tab.label }, tab.value));
192529
- }) }) })] }), jsxs("div", { className: "flex items-center gap-4", children: [beforeDataReports, canAccessTab('reports') && (jsx(Tabs, { className: "bg-[#f5f7fb]", value: activeTab, children: jsx(TabsList, { className: "bg-[#f5f7fb]", children: jsx(TabsTrigger, { value: "reports", className: cn(className, activeTab === 'reports' && activeTabClassName), onClick: () => handleTabClick('reports'), children: "Data Reports" }) }) }))] })] }) }) }), jsx("div", { className: "flex-1 overflow-auto overscroll-contain scrollbar-none px-6 pb-6 pt-0", children: isActiveTabAllowed ? children : null })] }) }));
192529
+ }) }) }) })] }), jsxs("div", { className: "flex w-full shrink-0 items-center justify-end gap-3 sm:w-auto", children: [beforeDataReports, canAccessTab('reports') && (jsx(Tabs, { className: "bg-[#f5f7fb]", value: activeTab, children: jsx(TabsList, { className: "bg-[#f5f7fb]", children: jsx(TabsTrigger, { value: "reports", className: cn(className, activeTab === 'reports' && activeTabClassName), onClick: () => handleTabClick('reports'), children: "Data Reports" }) }) }))] })] }) }), jsx("div", { className: "flex-1 overflow-auto overscroll-contain scrollbar-none px-6 pb-6 pt-0", children: isActiveTabAllowed ? children : null })] }) }));
192530
192530
  }
192531
192531
 
192532
192532
  const accessTimeData = [
@@ -229627,7 +229627,7 @@ function GroupsFilterDropdown({ groups, selectedGroupIds, onSelectionChange, isL
229627
229627
  ? ((_a = groups.find((g) => g.id === selectedGroupIds[0])) === null || _a === void 0 ? void 0 : _a.name) ||
229628
229628
  t('analyticsGroupsFilterDropdown.oneGroup')
229629
229629
  : t('analyticsGroupsFilterDropdown.multipleGroups', { count: selectedCount });
229630
- return (jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsx(PopoverTrigger, { asChild: true, children: jsxs(Button$1, { variant: "outline", role: "combobox", "aria-expanded": open, className: cn('min-w-[160px] justify-between text-sm font-medium h-[32px] border-gray-200 bg-white hover:bg-gray-50 -mt-5', selectedCount > 0 && 'border-blue-300 bg-blue-50 hover:bg-blue-100'), disabled: isLoading, children: [jsx("span", { className: "truncate", children: isLoading ? t('analyticsGroupsFilterDropdown.loading') : displayText }), jsxs("div", { className: "flex items-center gap-1 ml-2", children: [selectedCount > 0 && (jsx(X$1, { className: "h-3 w-3 text-gray-400 hover:text-gray-600", onClick: handleClearAll })), jsx(ChevronDown, { className: "h-4 w-4 text-gray-400" })] })] }) }), jsx(PopoverContent, { className: "w-[220px] p-0", align: "start", children: jsx("div", { className: "max-h-[300px] overflow-auto", children: groups.length === 0 ? (jsx("div", { className: "p-3 text-sm text-gray-500 text-center", children: t('analyticsGroupsFilterDropdown.noGroupsAvailable') })) : (jsx("div", { className: "p-1", children: groups.map((group) => {
229630
+ return (jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsx(PopoverTrigger, { asChild: true, children: jsxs(Button$1, { variant: "outline", role: "combobox", "aria-expanded": open, className: cn('h-9 max-w-full justify-between border-gray-200 bg-white text-sm font-medium hover:bg-gray-50 sm:min-w-[160px]', selectedCount > 0 && 'border-blue-300 bg-blue-50 hover:bg-blue-100'), disabled: isLoading, children: [jsx("span", { className: "truncate", children: isLoading ? t('analyticsGroupsFilterDropdown.loading') : displayText }), jsxs("div", { className: "flex items-center gap-1 ml-2", children: [selectedCount > 0 && (jsx(X$1, { className: "h-3 w-3 text-gray-400 hover:text-gray-600", onClick: handleClearAll })), jsx(ChevronDown, { className: "h-4 w-4 text-gray-400" })] })] }) }), jsx(PopoverContent, { className: "w-[220px] p-0", align: "start", children: jsx("div", { className: "max-h-[300px] overflow-auto", children: groups.length === 0 ? (jsx("div", { className: "p-3 text-sm text-gray-500 text-center", children: t('analyticsGroupsFilterDropdown.noGroupsAvailable') })) : (jsx("div", { className: "p-1", children: groups.map((group) => {
229631
229631
  const isSelected = selectedGroupIds.includes(group.id);
229632
229632
  return (jsxs("div", { className: cn('flex items-center gap-2 px-2 py-1.5 cursor-pointer rounded hover:bg-gray-100', isSelected && 'bg-blue-50 hover:bg-blue-100'), onClick: () => handleToggleGroup(group.id), children: [jsx(Checkbox, { checked: isSelected, className: "pointer-events-none" }), jsx("span", { className: "text-sm truncate flex-1", children: group.name }), isSelected && jsx(Check, { className: "h-4 w-4 text-blue-600" })] }, group.id));
229633
229633
  }) })) }) })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-js",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
5
5
  "type": "module",
6
6
  "engines": {
@@ -76,10 +76,10 @@
76
76
  "axios": "1.13.6",
77
77
  "dotenv": "16.6.1",
78
78
  "winston": "3.19.0",
79
- "@iblai/mcp": "1.10.4",
80
79
  "@iblai/data-layer": "1.12.106",
81
- "@iblai/web-containers": "1.18.5",
82
- "@iblai/web-utils": "2.1.16"
80
+ "@iblai/web-containers": "1.18.6",
81
+ "@iblai/mcp": "1.10.4",
82
+ "@iblai/web-utils": "2.1.17"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@iblai/iblai-api": "4.166.0-ai",