@stianlarsen/react-code-preview
Advanced tools
Comparing version 1.1.7 to 1.1.8
import { Themes, UseHighlightCode } from "../types/types"; | ||
export declare function useHighlightCode(codeString: string, lightTheme?: Themes, darkTheme?: Themes): UseHighlightCode; | ||
export declare const useHighlightCode: (codeString: string, lightTheme?: Themes, darkTheme?: Themes) => UseHighlightCode; |
import "./css/codePreview.css"; | ||
import { CodeAndPreviewProps, CodePreviewProps, PreviewOnlyCodeProps, TabsType, Themes, UseHighlightCode } from "./types/types"; | ||
export declare const CodePreview: (props: CodePreviewProps) => import("react/jsx-runtime").JSX.Element; | ||
export { CodeAndPreviewProps, CodePreviewProps, PreviewOnlyCodeProps, TabsType, Themes, UseHighlightCode, }; | ||
import { CodePreviewProps } from "./types/types"; | ||
declare const CodePreview: React.FC<CodePreviewProps>; | ||
export * from "./types/types"; | ||
export { CodePreview }; |
@@ -1,1 +0,1 @@ | ||
export declare function cn(...classNames: (string | undefined)[]): string; | ||
export declare const cn: (...classNames: (string | undefined)[]) => string; |
{ | ||
"name": "@stianlarsen/react-code-preview", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "A React component that provides tabbed navigation for viewing a live component preview and its source code separately.", | ||
"main": "dist/index.js", | ||
"main": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"!src", | ||
"dist" | ||
"dist", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"type": "module", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc && rollup -c", | ||
"build": "rm -rf dist && rollup -c", | ||
"dev": "tsc --watch", | ||
"prepare": "rm -rf dist && npm run build" | ||
}, | ||
"repository": "https://github.com/Stianlars1/react-code-preview.git", | ||
"repository": { | ||
"url": "git+https://github.com/Stianlars1/react-code-preview.git" | ||
}, | ||
"homepage": "https://react-code-preview.dev", | ||
@@ -35,4 +39,3 @@ "keywords": [ | ||
"react": "^18", | ||
"react-dom": "^18", | ||
"shiki": "^1.8.0" | ||
"react-dom": "^18" | ||
}, | ||
@@ -43,2 +46,3 @@ "devDependencies": { | ||
"@rollup/plugin-node-resolve": "^15.0.0", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@rollup/plugin-typescript": "^10.0.0", | ||
@@ -48,3 +52,5 @@ "@types/react": "^18", | ||
"rollup": "^3.0.0", | ||
"rollup-plugin-copy": "^3.5.0", | ||
"rollup-plugin-postcss": "^4.0.2", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"shx": "^0.3.4", | ||
@@ -56,4 +62,5 @@ "typescript": "^5.6.3" | ||
"@stianlarsen/react-ui-kit": "^1.1.15", | ||
"shiki": "^1.22.0", | ||
"tslib": "^2.8.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6
Yes
52730
13
19
350
1
+ Addedshiki@^1.22.0