@code-hike/smooth-code
Advanced tools
Comparing version 0.3.0--canary.77.122e7ce.0 to 0.3.0--canary.77.1351c85.0
@@ -1,6 +0,7 @@ | ||
/// <reference types="react" /> | ||
import React from "react"; | ||
import { useSpring } from "use-spring"; | ||
import { CodeConfig, CodeStep } from "./code-tween"; | ||
declare type SpringConfig = Parameters<typeof useSpring>[1]; | ||
export declare function CodeSpring({ step, config, }: { | ||
declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>; | ||
export declare function CodeSpring({ step, config, ...htmlProps }: { | ||
step: CodeStep; | ||
@@ -10,3 +11,3 @@ config: CodeConfig & { | ||
}; | ||
}): JSX.Element; | ||
} & HTMLProps): JSX.Element; | ||
export {}; |
import React from "react"; | ||
import { IRawTheme } from "vscode-textmate"; | ||
import { FocusString } from "./focus-parser"; | ||
import { FullTween, Code } from "@code-hike/utils"; | ||
import { FullTween, Code, FocusString } from "@code-hike/utils"; | ||
import { CodeAnnotation } from "./partial-step-parser"; | ||
@@ -11,3 +10,3 @@ declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>; | ||
config: CodeConfig; | ||
}; | ||
} & HTMLProps; | ||
export declare type CodeStep = { | ||
@@ -25,5 +24,4 @@ code: Code; | ||
theme: IRawTheme; | ||
htmlProps?: HTMLProps; | ||
}; | ||
export declare function CodeTween({ tween, progress, config, }: CodeTweenProps): JSX.Element; | ||
export declare function CodeTween({ tween, progress, config, ...preProps }: CodeTweenProps): JSX.Element; | ||
export {}; |
import React from "react"; | ||
import { IRawTheme } from "vscode-textmate"; | ||
import { FocusString } from "./focus-parser"; | ||
import { Tween } from "@code-hike/utils"; | ||
import { Tween, FocusString } from "@code-hike/utils"; | ||
import { CodeAnnotation } from "./step-parser"; | ||
@@ -6,0 +5,0 @@ declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>; |
@@ -7,3 +7,2 @@ import { HeavyCode, CodeProps } from "./heavy-code"; | ||
import { CodeSpring } from "./code-spring"; | ||
import { mapFocusToLineNumbers } from "./focus-parser"; | ||
export { CodeTween, CodeSpring, CodeAnnotation, CodeStep, CodeConfig, mapFocusToLineNumbers, HeavyCode, Code, CodeProps, highlightCode, highlightTween, }; | ||
export { CodeTween, CodeSpring, CodeAnnotation, CodeStep, CodeConfig, HeavyCode, Code, CodeProps, highlightCode, highlightTween, }; |
import React from "react"; | ||
import { IRawTheme } from "vscode-textmate"; | ||
import { FocusString } from "./focus-parser"; | ||
import { Tween, FullTween } from "@code-hike/utils"; | ||
import { Tween, FullTween, FocusString } from "@code-hike/utils"; | ||
import { CodeAnnotation } from "./partial-step-parser"; | ||
@@ -6,0 +5,0 @@ import { HighlightedLine } from "./partial-step-parser"; |
@@ -1,3 +0,2 @@ | ||
import { Tween, FullTween } from "@code-hike/utils"; | ||
import { FocusString } from "./focus-parser"; | ||
import { Tween, FocusString, FullTween } from "@code-hike/utils"; | ||
import { EditorTheme } from "./themes"; | ||
@@ -12,2 +11,3 @@ import React from "react"; | ||
data: any; | ||
theme: EditorTheme; | ||
}) => React.ReactElement; | ||
@@ -51,2 +51,3 @@ data?: any; | ||
data: any; | ||
theme: EditorTheme; | ||
Component: (props: { | ||
@@ -56,2 +57,3 @@ style: React.CSSProperties; | ||
data: any; | ||
theme: EditorTheme; | ||
}) => React.ReactElement; | ||
@@ -65,2 +67,3 @@ }; | ||
data: any; | ||
theme: EditorTheme; | ||
Component: (props: { | ||
@@ -70,2 +73,3 @@ style?: React.CSSProperties; | ||
data: any; | ||
theme: EditorTheme; | ||
}) => React.ReactElement; | ||
@@ -72,0 +76,0 @@ }; |
@@ -1,3 +0,2 @@ | ||
import { FullTween } from "@code-hike/utils"; | ||
import { FocusString, ColumnExtremes } from "./focus-parser"; | ||
import { FullTween, FocusString, ColumnExtremes } from "@code-hike/utils"; | ||
import { MergedCode, FocusedCode, MergedLine, LineGroup, AnnotatedLine, MultiLineAnnotation, InlineAnnotation } from "./step-parser"; | ||
@@ -4,0 +3,0 @@ import React from "react"; |
@@ -1,3 +0,2 @@ | ||
import { Tween, FullTween } from "@code-hike/utils"; | ||
import { FocusString } from "./focus-parser"; | ||
import { Tween, FocusString, FullTween } from "@code-hike/utils"; | ||
import { EditorTheme } from "./themes"; | ||
@@ -12,2 +11,3 @@ import React from "react"; | ||
data: any; | ||
theme: EditorTheme; | ||
}) => React.ReactElement; | ||
@@ -52,2 +52,3 @@ data?: any; | ||
data: any; | ||
theme: EditorTheme; | ||
Component: (props: { | ||
@@ -57,2 +58,3 @@ style: React.CSSProperties; | ||
data: any; | ||
theme: EditorTheme; | ||
}) => React.ReactElement; | ||
@@ -66,2 +68,3 @@ }; | ||
data: any; | ||
theme: EditorTheme; | ||
Component: (props: { | ||
@@ -71,2 +74,3 @@ style?: React.CSSProperties; | ||
data: any; | ||
theme: EditorTheme; | ||
}) => React.ReactElement; | ||
@@ -73,0 +77,0 @@ }; |
import React from "react"; | ||
import { FocusString } from "./focus-parser"; | ||
import { Tween } from "@code-hike/utils"; | ||
import { FocusString, Tween } from "@code-hike/utils"; | ||
declare type Dimensions = { | ||
@@ -5,0 +4,0 @@ containerWidth: number; |
{ | ||
"name": "@code-hike/smooth-code", | ||
"version": "0.3.0--canary.77.122e7ce.0", | ||
"version": "0.3.0--canary.77.1351c85.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -18,3 +18,3 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@code-hike/script": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/script": "0.3.0--canary.77.1351c85.0", | ||
"@types/diff": "^4.0.2", | ||
@@ -28,4 +28,4 @@ "@types/jest": "^24.0.15", | ||
"dependencies": { | ||
"@code-hike/highlighter": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/utils": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/highlighter": "0.3.0--canary.77.1351c85.0", | ||
"@code-hike/utils": "0.3.0--canary.77.1351c85.0", | ||
"diff": "^4.0.2", | ||
@@ -51,3 +51,3 @@ "use-spring": "^0.2.3" | ||
}, | ||
"gitHead": "122e7ce5b287bfc6f5361892909a656c0ac39920" | ||
"gitHead": "1351c85b88dcf72dc8828976689fd84ca17ef0df" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
174944
24
3632
+ Added@code-hike/highlighter@0.3.0--canary.77.1351c85.0(transitive)
+ Added@code-hike/utils@0.3.0--canary.77.1351c85.0(transitive)
- Removed@code-hike/highlighter@0.3.0--canary.77.122e7ce.0(transitive)
- Removed@code-hike/utils@0.3.0--canary.77.122e7ce.0(transitive)