New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stianlarsen/react-code-preview

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stianlarsen/react-code-preview - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

dist/css/codePreview.css

2

dist/hooks/useHighlightCode.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc