@stoplight/mosaic-code-viewer
Advanced tools
Comparing version 1.0.0-beta.18 to 1.0.0-beta.19
@@ -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 {}; |
{ | ||
"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
270718
7081
+ Added@stoplight/mosaic@1.0.0-beta.19(transitive)
- Removed@stoplight/mosaic@1.0.0-beta.18(transitive)
Updatedreakit@^1.3.2