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
23
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.0.0-beta.18 to 1.0.0-beta.19

23

components/CodeViewer/CodeViewer.d.ts

@@ -24,3 +24,6 @@ /**

*/
highlightPadding?: string;
highlightPadding?: {
x: number;
y: number;
};
};

@@ -37,2 +40,7 @@ declare type CodeViewerWithLanguage = CodeViewerBaseProps & {

export declare type CodeViewerProps<E extends React.ElementType = 'pre'> = PolymorphicComponentProps<E, CodeViewerOwnProps>;
export declare const DEFAULT_HIGHLIGHT_PADDING: {
x: number;
y: number;
};
export declare const CODE_LINE_HEIGHT = 21;
export declare const CodeViewer: <E extends React.ElementType = 'pre'>(props: CodeViewerProps<E>) => React.ReactElement | null;

@@ -46,6 +54,11 @@ export declare const useHighlight: ({ value, language, showLineNumbers, style: propStyle, }: {

pad: number;
lines: number;
gutterWidth: number;
renderHighlight: () => JSX.Element;
};
export declare const CodeContainer: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<import("../../../../../dist/libs/core").ITypographyProps & import("../../../../../dist/libs/core").ISizeProps & import("../../../../../dist/libs/core").IMarginProps & import("../../../../../dist/libs/core").IPaddingProps & import("../../../../../dist/libs/core").IShadowProps & import("../../../../../dist/libs/core").IColorProps & import("../../../../../dist/libs/core").IBorderProps & import("../../../../../dist/libs/core").IRingProps & import("../../../../../dist/libs/core").IInteractivityProps & import("../../../../../dist/libs/core").IFlexProps & import("../../../../../dist/libs/core").IPositionProps & import("../../../../../dist/libs/core").ILayoutProps & {
export declare const HighlightCodeFallback: ({ lines, highlightPadding, }: {
lines?: number;
highlightPadding?: CodeViewerOwnProps['highlightPadding'];
}) => JSX.Element;
export declare const CodeContainer: React.NamedExoticComponent<import("../../../../../dist/libs/core").ITypographyProps & import("../../../../../dist/libs/core").ISizeProps & import("../../../../../dist/libs/core").IMarginProps & import("../../../../../dist/libs/core").IPaddingProps & import("../../../../../dist/libs/core").IShadowProps & import("../../../../../dist/libs/core").IColorProps & import("../../../../../dist/libs/core").IBorderProps & import("../../../../../dist/libs/core").IRingProps & import("../../../../../dist/libs/core").IInteractivityProps & import("../../../../../dist/libs/core").IFlexProps & import("../../../../../dist/libs/core").IPositionProps & import("../../../../../dist/libs/core").ILayoutProps & {
as?: React.ElementType<any>;

@@ -55,6 +68,10 @@ className?: string;

} & Pick<any, string | number | symbol> & {
renderHighlight: () => JSX.Element;
maxHeight?: number;
innerProps?: CodeViewerOwnProps['innerProps'];
}, string | number | symbol> & React.RefAttributes<HTMLDivElement>>>;
lines?: number;
copyValue?: string;
highlightPadding?: CodeViewerOwnProps['highlightPadding'];
}>;
export declare const CornerCopyButton: (props: CopyButtonProps) => JSX.Element;
export {};

8

package.json
{
"name": "@stoplight/mosaic-code-viewer",
"version": "1.0.0-beta.18",
"sideEffects": false,
"version": "1.0.0-beta.19",
"sideEffects": true,
"peerDependencies": {

@@ -12,3 +12,3 @@ "react": ">= 16.8"

"dependencies": {
"@stoplight/mosaic": "1.0.0-beta.18",
"@stoplight/mosaic": "1.0.0-beta.19",
"clsx": "^1.1.1",

@@ -19,3 +19,3 @@ "@fortawesome/fontawesome-svg-core": "^1.2.32",

"zustand": "^3.2.0",
"reakit": "^1.3.1",
"reakit": "^1.3.2",
"ts-keycode-enum": "^1.0.6",

@@ -22,0 +22,0 @@ "copy-to-clipboard": "^3.3.1",

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