New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@code-hike/smooth-code

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-hike/smooth-code - npm Package Compare versions

Comparing version 0.3.0--canary.77.4c6fb89.0 to 0.3.0--canary.77.5617b6a.0

7

dist/code-spring.d.ts

@@ -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,2 +0,1 @@

/// <reference types="react" />
import { Dimensions } from "./use-dimensions";

@@ -3,0 +2,0 @@ import { CodeStep } from "./step-parser";

@@ -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.4c6fb89.0",
"version": "0.3.0--canary.77.5617b6a.0",
"main": "dist/index.cjs.js",

@@ -18,13 +18,13 @@ "typings": "dist/index.d.ts",

"devDependencies": {
"@code-hike/script": "0.3.0--canary.77.4c6fb89.0",
"@code-hike/script": "0.3.0--canary.77.5617b6a.0",
"@types/diff": "^4.0.2",
"@types/jest": "^24.0.15",
"@types/react": "^16.9.38",
"@types/react": "^17.0.2",
"jest": "^26.5.3",
"react": "^16.13.1",
"react": "^17.0.2",
"ts-jest": "^26.4.1"
},
"dependencies": {
"@code-hike/highlighter": "0.3.0--canary.77.4c6fb89.0",
"@code-hike/utils": "0.3.0--canary.77.4c6fb89.0",
"@code-hike/highlighter": "0.3.0--canary.77.5617b6a.0",
"@code-hike/utils": "0.3.0--canary.77.5617b6a.0",
"diff": "^4.0.2",

@@ -34,3 +34,3 @@ "use-spring": "^0.2.3"

"peerDependencies": {
"react": ">=16.8"
"react": "^16.8.3 || ^17 || ^18"
},

@@ -51,3 +51,3 @@ "keywords": [

},
"gitHead": "4c6fb899b4232bc8ea91185414690c202187a79d"
"gitHead": "5617b6a0c697c7518c81daad7ab2161c2189cb81"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc