@brainfish-ai/components 0.32.0 → 0.32.2

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/index.d.ts CHANGED
@@ -1786,15 +1786,15 @@ declare const microsoftTeamsLogoVariants: (props?: ({
1786
1786
  variant?: "default" | null | undefined;
1787
1787
  } & ClassProp) | undefined) => string;
1788
1788
 
1789
- declare type NextBestAction = {
1789
+ export declare type NextBestAction = {
1790
1790
  id?: string;
1791
1791
  label: string;
1792
1792
  type: NextBestActionType;
1793
1793
  icon?: string | UrlString;
1794
- value: any;
1794
+ value: NextBestActionValue[NextBestActionType];
1795
1795
  };
1796
1796
 
1797
- declare enum NextBestActionType {
1797
+ export declare enum NextBestActionType {
1798
1798
  Link = "link",
1799
1799
  Email = "email",
1800
1800
  Phone = "phone",
@@ -1808,6 +1808,20 @@ declare enum NextBestActionType {
1808
1808
  WebhookHandoff = "webhook_handoff"
1809
1809
  }
1810
1810
 
1811
+ export declare type NextBestActionValue = {
1812
+ link: UrlString;
1813
+ email: string;
1814
+ phone: string;
1815
+ callback: string;
1816
+ function: string;
1817
+ zendesk_chat: string;
1818
+ zendesk_messenger: string;
1819
+ intercom_chat: string;
1820
+ freshdesk: string;
1821
+ zendesk_sunshine_chat: string;
1822
+ webhook_handoff: string;
1823
+ };
1824
+
1811
1825
  declare type NoArticlesFound = {
1812
1826
  type: typeof AnswersActions.NO_ARTICLES_FOUND;
1813
1827
  payload: {
@@ -2533,6 +2547,8 @@ export declare interface UseRightSidebarReturn {
2533
2547
 
2534
2548
  export declare function useSidebar(): SidebarContextValue;
2535
2549
 
2550
+ export declare const validateUrlString: (value: string) => UrlString;
2551
+
2536
2552
  export declare const ZoomableImage: React_2.FC<ZoomableImageProps>;
2537
2553
 
2538
2554
  declare interface ZoomableImageProps {