File tree 3 files changed +9
-2
lines changed
components/content/PrismDiffCode
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';
3
3
import { BaseProps , Styles } from '../../../tasty/index' ;
4
4
import { PrismCode } from '../PrismCode/PrismCode' ;
5
5
6
- export interface PrismDiffCodeProps {
6
+ export interface CubePrismDiffCodeProps {
7
7
style ?: BaseProps [ 'style' ] ;
8
8
styles ?: Styles ;
9
9
/** Original code string */
@@ -30,7 +30,7 @@ export function PrismDiffCode({
30
30
original,
31
31
modified,
32
32
...props
33
- } : PrismDiffCodeProps ) {
33
+ } : CubePrismDiffCodeProps ) {
34
34
// Generate the diff string
35
35
const diff = diffLines ( original , modified , { newlineIsToken : true } ) ;
36
36
const diffString = diff
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ export { Root } from './components/Root';
32
32
export type { CubeRootProps } from './components/Root' ;
33
33
export { PrismCode } from './components/content/PrismCode/PrismCode' ;
34
34
export type { CubePrismCodeProps } from './components/content/PrismCode/PrismCode' ;
35
+ export { PrismDiffCode } from './components/content/PrismDiffCode/PrismDiffCode' ;
36
+ export type { CubePrismDiffCodeProps } from './components/content/PrismDiffCode/PrismDiffCode' ;
35
37
export { Prefix } from './components/layout/Prefix' ;
36
38
export type { CubePrefixProps } from './components/layout/Prefix' ;
37
39
export { Suffix } from './components/layout/Suffix' ;
You can’t perform that action at this time.
0 commit comments