@brainfish-ai/components 0.23.5 → 0.23.8

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.
@@ -81,6 +81,7 @@ declare type AccountDropdownTeam = {
81
81
 
82
82
  declare interface ArticleNavItem extends Omit<SidebarNavItem, 'Icon' | 'items'> {
83
83
  status?: 'discovery' | 'unpublished' | 'draft';
84
+ hasChildren?: boolean;
84
85
  items?: ArticleNavItem[];
85
86
  }
86
87
 
@@ -192,6 +193,7 @@ declare interface SidebarContextProps {
192
193
  ItemLinkComponent: ItemLinkComponent;
193
194
  activeArticleId?: string;
194
195
  onSelectArticle?: (id: string) => void;
196
+ onExpandArticle?: (id: string) => void;
195
197
  onSearchArticles?: (value: string) => void;
196
198
  onAddArticle?: (parentId: string | null) => Promise<ArticleNavItem>;
197
199
  onMoreActions?: (articleId: string) => void;
package/dist/index.d.ts CHANGED
@@ -346,6 +346,7 @@ declare type AppendNewAnswer = {
346
346
 
347
347
  export declare interface ArticleNavItem extends Omit<SidebarNavItem, 'Icon' | 'items'> {
348
348
  status?: 'discovery' | 'unpublished' | 'draft';
349
+ hasChildren?: boolean;
349
350
  items?: ArticleNavItem[];
350
351
  }
351
352
 
@@ -1702,6 +1703,7 @@ declare interface SidebarContextProps {
1702
1703
  ItemLinkComponent: ItemLinkComponent;
1703
1704
  activeArticleId?: string;
1704
1705
  onSelectArticle?: (id: string) => void;
1706
+ onExpandArticle?: (id: string) => void;
1705
1707
  onSearchArticles?: (value: string) => void;
1706
1708
  onAddArticle?: (parentId: string | null) => Promise<ArticleNavItem>;
1707
1709
  onMoreActions?: (articleId: string) => void;
package/dist/sidebar.d.ts CHANGED
@@ -3,6 +3,7 @@ import * as React_2 from 'react';
3
3
 
4
4
  export declare interface ArticleNavItem extends Omit<SidebarNavItem, 'Icon' | 'items'> {
5
5
  status?: 'discovery' | 'unpublished' | 'draft';
6
+ hasChildren?: boolean;
6
7
  items?: ArticleNavItem[];
7
8
  }
8
9
 
@@ -18,6 +19,7 @@ declare interface SidebarContextProps {
18
19
  ItemLinkComponent: ItemLinkComponent;
19
20
  activeArticleId?: string;
20
21
  onSelectArticle?: (id: string) => void;
22
+ onExpandArticle?: (id: string) => void;
21
23
  onSearchArticles?: (value: string) => void;
22
24
  onAddArticle?: (parentId: string | null) => Promise<ArticleNavItem>;
23
25
  onMoreActions?: (articleId: string) => void;