@code-hike/smooth-code
Advanced tools
Comparing version 0.3.0--canary.116.d35381d.0 to 0.3.0--canary.124.5b2426a.0
@@ -5,3 +5,3 @@ import React from "react"; | ||
declare type SpringConfig = Parameters<typeof useSpring>[1]; | ||
declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>; | ||
declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>; | ||
export declare function CodeSpring({ step, config, ...htmlProps }: { | ||
@@ -8,0 +8,0 @@ step: CodeStep; |
@@ -5,3 +5,3 @@ import React from "react"; | ||
import { CodeAnnotation } from "./partial-step-parser"; | ||
declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>; | ||
declare type HTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>; | ||
export declare type CodeTweenProps = { | ||
@@ -8,0 +8,0 @@ tween: FullTween<CodeStep>; |
@@ -1135,3 +1135,5 @@ 'use strict'; | ||
var htmlProps = _a.htmlProps, style = _a.style, children = _a.children; | ||
return (React__default['default'].createElement("pre", __assign({}, htmlProps, { style: __assign(__assign({ margin: 0, padding: 0 }, style), htmlProps === null || htmlProps === void 0 ? void 0 : htmlProps.style), children: children }))); | ||
return (React__default['default'].createElement("div", __assign({}, htmlProps, { style: __assign(__assign({ margin: 0, padding: 0, | ||
// using this instead of <pre> because https://github.com/code-hike/codehike/issues/120 | ||
whiteSpace: "pre" }, style), htmlProps === null || htmlProps === void 0 ? void 0 : htmlProps.style), children: children }))); | ||
} | ||
@@ -1138,0 +1140,0 @@ |
@@ -1127,3 +1127,5 @@ import React from 'react'; | ||
var htmlProps = _a.htmlProps, style = _a.style, children = _a.children; | ||
return (React.createElement("pre", __assign({}, htmlProps, { style: __assign(__assign({ margin: 0, padding: 0 }, style), htmlProps === null || htmlProps === void 0 ? void 0 : htmlProps.style), children: children }))); | ||
return (React.createElement("div", __assign({}, htmlProps, { style: __assign(__assign({ margin: 0, padding: 0, | ||
// using this instead of <pre> because https://github.com/code-hike/codehike/issues/120 | ||
whiteSpace: "pre" }, style), htmlProps === null || htmlProps === void 0 ? void 0 : htmlProps.style), children: children }))); | ||
} | ||
@@ -1130,0 +1132,0 @@ |
{ | ||
"name": "@code-hike/smooth-code", | ||
"version": "0.3.0--canary.116.d35381d.0", | ||
"version": "0.3.0--canary.124.5b2426a.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -18,3 +18,3 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@code-hike/script": "0.3.0--canary.116.d35381d.0", | ||
"@code-hike/script": "0.3.0--canary.124.5b2426a.0", | ||
"@types/diff": "^4.0.2", | ||
@@ -28,4 +28,4 @@ "@types/jest": "^24.0.15", | ||
"dependencies": { | ||
"@code-hike/highlighter": "0.3.0--canary.116.d35381d.0", | ||
"@code-hike/utils": "0.3.0--canary.116.d35381d.0", | ||
"@code-hike/highlighter": "0.3.0--canary.124.5b2426a.0", | ||
"@code-hike/utils": "0.3.0--canary.124.5b2426a.0", | ||
"diff": "^4.0.2", | ||
@@ -51,3 +51,3 @@ "use-spring": "^0.2.3" | ||
}, | ||
"gitHead": "d35381d40383ea6bcf71c794b8ebe1fdaaf01720" | ||
"gitHead": "5b2426a56d00e948be868c77f7bcb60b3b77ca8e" | ||
} |
116954
2571
+ Added@code-hike/highlighter@0.3.0--canary.124.5b2426a.0(transitive)
+ Added@code-hike/utils@0.3.0--canary.124.5b2426a.0(transitive)
- Removed@code-hike/highlighter@0.3.0--canary.116.d35381d.0(transitive)
- Removed@code-hike/utils@0.3.0--canary.116.d35381d.0(transitive)