Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/mosaic-code-viewer

Package Overview
Dependencies
Maintainers
24
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/mosaic-code-viewer - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

4

components/CodeViewer/CodeViewer.d.ts

@@ -11,2 +11,3 @@ /**

showLineNumbers?: boolean;
showMaxLines?: number;
title?: string;

@@ -46,6 +47,7 @@ noCopyButton?: boolean;

export declare const CodeViewer: <E extends React.ElementType = 'pre'>(props: CodeViewerProps<E>) => React.ReactElement | null;
export declare const useHighlight: ({ value, language, showLineNumbers, style: propStyle, }: {
export declare const useHighlight: ({ value, language, showLineNumbers, showMaxLines, style: propStyle, }: {
value: string;
language?: CodeViewerLanguage | string;
showLineNumbers?: boolean;
showMaxLines?: number;
style?: React.CSSProperties;

@@ -52,0 +54,0 @@ }) => {

{
"name": "@stoplight/mosaic-code-viewer",
"version": "1.3.0",
"version": "1.4.0",
"sideEffects": true,

@@ -11,3 +11,3 @@ "license": "Apache-2.0",

"tslib": "^2.1.0",
"@stoplight/mosaic": "1.3.0",
"@stoplight/mosaic": "1.4.0",
"clsx": "^1.1.1",

@@ -14,0 +14,0 @@ "@fortawesome/fontawesome-svg-core": "^1.2.35",

Sorry, the diff of this file is too big to display

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