File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
components/content/PrismDiffCode Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cube-dev/ui-kit ' : patch
3+ ---
4+
5+ Fix PrismDiffCode export.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { diffLines } from 'diff';
33import { BaseProps , Styles } from '../../../tasty/index' ;
44import { PrismCode } from '../PrismCode/PrismCode' ;
55
6- export interface PrismDiffCodeProps {
6+ export interface CubePrismDiffCodeProps {
77 style ?: BaseProps [ 'style' ] ;
88 styles ?: Styles ;
99 /** Original code string */
@@ -30,7 +30,7 @@ export function PrismDiffCode({
3030 original,
3131 modified,
3232 ...props
33- } : PrismDiffCodeProps ) {
33+ } : CubePrismDiffCodeProps ) {
3434 // Generate the diff string
3535 const diff = diffLines ( original , modified , { newlineIsToken : true } ) ;
3636 const diffString = diff
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ export { Root } from './components/Root';
3232export type { CubeRootProps } from './components/Root' ;
3333export { PrismCode } from './components/content/PrismCode/PrismCode' ;
3434export type { CubePrismCodeProps } from './components/content/PrismCode/PrismCode' ;
35+ export { PrismDiffCode } from './components/content/PrismDiffCode/PrismDiffCode' ;
36+ export type { CubePrismDiffCodeProps } from './components/content/PrismDiffCode/PrismDiffCode' ;
3537export { Prefix } from './components/layout/Prefix' ;
3638export type { CubePrefixProps } from './components/layout/Prefix' ;
3739export { Suffix } from './components/layout/Suffix' ;
You can’t perform that action at this time.
0 commit comments