@brainfish-ai/components 0.23.15 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/chunks/{header-nav.CCJ9OYeY.js → header-nav.BxK3FN1j.js} +2 -2
- package/dist/esm/chunks/{header-nav.CCJ9OYeY.js.map → header-nav.BxK3FN1j.js.map} +1 -1
- package/dist/esm/chunks/{layout.DxPhNLks.js → layout.qbMLkE1I.js} +32 -5
- package/dist/esm/chunks/layout.qbMLkE1I.js.map +1 -0
- package/dist/esm/chunks/{review-list.Bn2wFxYA.js → review-list.Gro9EAA8.js} +4 -1
- package/dist/esm/chunks/review-list.Gro9EAA8.js.map +1 -0
- package/dist/esm/components/convos.js +3 -0
- package/dist/esm/components/convos.js.map +1 -1
- package/dist/esm/global.css +1 -1
- package/dist/esm/index.js +6 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/full-layout.js +2 -2
- package/dist/esm/layouts/header-nav.js +1 -1
- package/dist/esm/logos/microsoft-logo.js +67 -0
- package/dist/esm/logos/microsoft-logo.js.map +1 -0
- package/dist/esm/logos/microsoft-teams-logo.js +113 -0
- package/dist/esm/logos/microsoft-teams-logo.js.map +1 -0
- package/dist/esm/logos/slack-logo.js +40 -0
- package/dist/esm/logos/slack-logo.js.map +1 -0
- package/dist/esm/scenes/knowledge-review.js +56 -3
- package/dist/esm/scenes/knowledge-review.js.map +1 -1
- package/dist/index.d.ts +33 -1
- package/dist/knowledge-review.d.ts +4 -1
- package/dist/logos/microsoft-logo.d.ts +2 -0
- package/dist/logos/microsoft-teams-logo.d.ts +2 -0
- package/dist/logos/slack-logo.d.ts +2 -0
- package/dist/microsoft-logo.d.ts +15 -0
- package/dist/microsoft-teams-logo.d.ts +15 -0
- package/dist/slack-logo.d.ts +15 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/esm/chunks/layout.DxPhNLks.js.map +0 -1
- package/dist/esm/chunks/review-list.Bn2wFxYA.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1643,6 +1643,26 @@ export declare type MessageRole = 'user' | 'assistant';
|
|
|
1643
1643
|
|
|
1644
1644
|
export declare type MessageStatus = 'pending' | 'streaming' | 'completed' | 'error';
|
|
1645
1645
|
|
|
1646
|
+
export declare const MicrosoftLogo: ({ size, variant, className, ...props }: MicrosoftLogoProps) => default_2.JSX.Element;
|
|
1647
|
+
|
|
1648
|
+
export declare interface MicrosoftLogoProps extends default_2.SVGAttributes<SVGSVGElement>, VariantProps<typeof microsoftLogoVariants> {
|
|
1649
|
+
size?: number;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
declare const microsoftLogoVariants: (props?: ({
|
|
1653
|
+
variant?: "default" | "mono" | null | undefined;
|
|
1654
|
+
} & ClassProp) | undefined) => string;
|
|
1655
|
+
|
|
1656
|
+
export declare const MicrosoftTeamsLogo: ({ size, variant, className, ...props }: MicrosoftTeamsLogoProps) => default_2.JSX.Element;
|
|
1657
|
+
|
|
1658
|
+
export declare interface MicrosoftTeamsLogoProps extends default_2.SVGAttributes<SVGSVGElement>, VariantProps<typeof microsoftTeamsLogoVariants> {
|
|
1659
|
+
size?: number;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
declare const microsoftTeamsLogoVariants: (props?: ({
|
|
1663
|
+
variant?: "default" | null | undefined;
|
|
1664
|
+
} & ClassProp) | undefined) => string;
|
|
1665
|
+
|
|
1646
1666
|
declare type NextBestAction = {
|
|
1647
1667
|
id?: string;
|
|
1648
1668
|
label: string;
|
|
@@ -1757,12 +1777,13 @@ export declare type ReviewsProviderProps = {
|
|
|
1757
1777
|
defaultSelectedItem?: ReviewListItemProps | null;
|
|
1758
1778
|
onApproveAllSuggestions: () => void;
|
|
1759
1779
|
onRejectAllSuggestions: () => void;
|
|
1780
|
+
onAcceptAndPublish?: () => void;
|
|
1760
1781
|
onOpenArticleLink?: () => void;
|
|
1761
1782
|
onSourceLinkClick?: () => void;
|
|
1762
1783
|
breadcrumb?: string;
|
|
1763
1784
|
};
|
|
1764
1785
|
|
|
1765
|
-
export declare function ReviewsSelectionProvider({ children, defaultSelectedItem, onApproveAllSuggestions, onRejectAllSuggestions, onOpenArticleLink, onSourceLinkClick, breadcrumb, }: ReviewsProviderProps): default_2.JSX.Element;
|
|
1786
|
+
export declare function ReviewsSelectionProvider({ children, defaultSelectedItem, onApproveAllSuggestions, onRejectAllSuggestions, onAcceptAndPublish, onOpenArticleLink, onSourceLinkClick, breadcrumb, }: ReviewsProviderProps): default_2.JSX.Element;
|
|
1766
1787
|
|
|
1767
1788
|
declare type ReviewsSelectionValue = {
|
|
1768
1789
|
selectedItem: ReviewListItemProps | null;
|
|
@@ -1773,6 +1794,7 @@ declare type ReviewsSelectionValue = {
|
|
|
1773
1794
|
setLoadingDiff: (loading: boolean) => void;
|
|
1774
1795
|
onApproveAllSuggestions: () => void;
|
|
1775
1796
|
onRejectAllSuggestions: () => void;
|
|
1797
|
+
onAcceptAndPublish?: () => void;
|
|
1776
1798
|
onOpenArticleLink?: () => void;
|
|
1777
1799
|
onSourceLinkClick?: () => void;
|
|
1778
1800
|
breadcrumb?: string;
|
|
@@ -1965,6 +1987,16 @@ export declare interface SimpleSelectProps {
|
|
|
1965
1987
|
appendToBody?: boolean;
|
|
1966
1988
|
}
|
|
1967
1989
|
|
|
1990
|
+
export declare const SlackLogo: ({ size, variant, className, ...props }: SlackLogoProps) => default_2.JSX.Element;
|
|
1991
|
+
|
|
1992
|
+
export declare interface SlackLogoProps extends default_2.SVGAttributes<SVGSVGElement>, VariantProps<typeof slackLogoVariants> {
|
|
1993
|
+
size?: number;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
declare const slackLogoVariants: (props?: ({
|
|
1997
|
+
variant?: "default" | "mono" | null | undefined;
|
|
1998
|
+
} & ClassProp) | undefined) => string;
|
|
1999
|
+
|
|
1968
2000
|
export declare function Spinner({ className, ...props }: default_2.ComponentProps<"svg">): default_2.JSX.Element;
|
|
1969
2001
|
|
|
1970
2002
|
export declare type Suggestion = {
|
|
@@ -49,6 +49,7 @@ export declare type KnowledgeReviewSceneProps = {
|
|
|
49
49
|
className?: string;
|
|
50
50
|
onApproveAllSuggestions: () => void;
|
|
51
51
|
onRejectAllSuggestions: () => void;
|
|
52
|
+
onAcceptAndPublish?: () => void;
|
|
52
53
|
onOpenArticleLink?: () => void;
|
|
53
54
|
onSourceLinkClick?: () => void;
|
|
54
55
|
breadcrumb?: string;
|
|
@@ -89,12 +90,13 @@ declare type ReviewsProviderProps = {
|
|
|
89
90
|
defaultSelectedItem?: ReviewListItemProps | null;
|
|
90
91
|
onApproveAllSuggestions: () => void;
|
|
91
92
|
onRejectAllSuggestions: () => void;
|
|
93
|
+
onAcceptAndPublish?: () => void;
|
|
92
94
|
onOpenArticleLink?: () => void;
|
|
93
95
|
onSourceLinkClick?: () => void;
|
|
94
96
|
breadcrumb?: string;
|
|
95
97
|
};
|
|
96
98
|
|
|
97
|
-
export declare function ReviewsSelectionProvider({ children, defaultSelectedItem, onApproveAllSuggestions, onRejectAllSuggestions, onOpenArticleLink, onSourceLinkClick, breadcrumb, }: ReviewsProviderProps): default_2.JSX.Element;
|
|
99
|
+
export declare function ReviewsSelectionProvider({ children, defaultSelectedItem, onApproveAllSuggestions, onRejectAllSuggestions, onAcceptAndPublish, onOpenArticleLink, onSourceLinkClick, breadcrumb, }: ReviewsProviderProps): default_2.JSX.Element;
|
|
98
100
|
|
|
99
101
|
declare type ReviewsSelectionValue = {
|
|
100
102
|
selectedItem: ReviewListItemProps | null;
|
|
@@ -105,6 +107,7 @@ declare type ReviewsSelectionValue = {
|
|
|
105
107
|
setLoadingDiff: (loading: boolean) => void;
|
|
106
108
|
onApproveAllSuggestions: () => void;
|
|
107
109
|
onRejectAllSuggestions: () => void;
|
|
110
|
+
onAcceptAndPublish?: () => void;
|
|
108
111
|
onOpenArticleLink?: () => void;
|
|
109
112
|
onSourceLinkClick?: () => void;
|
|
110
113
|
breadcrumb?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare const MicrosoftLogo: ({ size, variant, className, ...props }: MicrosoftLogoProps) => default_2.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export declare interface MicrosoftLogoProps extends default_2.SVGAttributes<SVGSVGElement>, VariantProps<typeof microsoftLogoVariants> {
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const microsoftLogoVariants: (props?: ({
|
|
12
|
+
variant?: "default" | "mono" | null | undefined;
|
|
13
|
+
} & ClassProp) | undefined) => string;
|
|
14
|
+
|
|
15
|
+
export { }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare const MicrosoftTeamsLogo: ({ size, variant, className, ...props }: MicrosoftTeamsLogoProps) => default_2.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export declare interface MicrosoftTeamsLogoProps extends default_2.SVGAttributes<SVGSVGElement>, VariantProps<typeof microsoftTeamsLogoVariants> {
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const microsoftTeamsLogoVariants: (props?: ({
|
|
12
|
+
variant?: "default" | null | undefined;
|
|
13
|
+
} & ClassProp) | undefined) => string;
|
|
14
|
+
|
|
15
|
+
export { }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare const SlackLogo: ({ size, variant, className, ...props }: SlackLogoProps) => default_2.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export declare interface SlackLogoProps extends default_2.SVGAttributes<SVGSVGElement>, VariantProps<typeof slackLogoVariants> {
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const slackLogoVariants: (props?: ({
|
|
12
|
+
variant?: "default" | "mono" | null | undefined;
|
|
13
|
+
} & ClassProp) | undefined) => string;
|
|
14
|
+
|
|
15
|
+
export { }
|