@mintlify/components 0.3.7 → 0.3.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.
@@ -17,7 +17,7 @@ export interface CodeBlockPropsBase {
17
17
  /**
18
18
  * The callback function when a user clicks on the copied to clipboard button
19
19
  */
20
- onCopied?: (result: CopyToClipboardResult, textToCopy?: string) => {};
20
+ onCopied?: (result: CopyToClipboardResult, textToCopy?: string) => void;
21
21
  }
22
22
  export type CodeBlockProps = CodeBlockPropsBase & Omit<ComponentPropsWithoutRef<"div">, keyof CodeBlockPropsBase>;
23
23
  export declare function CodeBlock({ filename, filenameColor, tooltipColor, copiedTooltipColor, onCopied, children, className, ...props }: CodeBlockProps): JSX.Element;
@@ -17,7 +17,7 @@ export type CodeGroupPropsBase = {
17
17
  /**
18
18
  * The callback function when a user clicks on the copied to clipboard button
19
19
  */
20
- onCopied?: (result: CopyToClipboardResult, textToCopy?: string) => {};
20
+ onCopied?: (result: CopyToClipboardResult, textToCopy?: string) => void;
21
21
  isSmallText?: boolean;
22
22
  children?: React.ReactElement<CodeBlockProps>[] | React.ReactElement<CodeBlockProps>;
23
23
  };
@@ -4,5 +4,5 @@ export declare function CopyToClipboardButton({ textToCopy, tooltipColor, copied
4
4
  textToCopy: string;
5
5
  tooltipColor?: string;
6
6
  copiedTooltipColor?: string;
7
- onCopied?: (result: CopyToClipboardResult, textToCopy?: string) => {};
7
+ onCopied?: (result: CopyToClipboardResult, textToCopy?: string) => void;
8
8
  }): JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/components",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Open-source library of UI components made with React and TailwindCSS.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",