@code-hike/mini-editor
Advanced tools
Comparing version 0.3.0--canary.77.122e7ce.0 to 0.3.0--canary.77.1351c85.0
import { CodeConfig, CodeStep } from "@code-hike/smooth-code"; | ||
import React from "react"; | ||
declare type CodeFile = CodeStep & { | ||
export declare type CodeFile = CodeStep & { | ||
name: string; | ||
@@ -5,0 +5,0 @@ }; |
@@ -1,8 +0,9 @@ | ||
/// <reference types="react" /> | ||
import React from "react"; | ||
import { useSpring } from "use-spring"; | ||
import { CodeConfig } from "@code-hike/smooth-code"; | ||
import { EditorFrameProps } from "./editor-frame"; | ||
import { EditorStep } from "./editor-shift"; | ||
export { EditorSpring, EditorProps }; | ||
import { EditorStep, CodeFile } from "./editor-shift"; | ||
export { EditorSpring, EditorProps, EditorStep, CodeFile }; | ||
declare type SpringConfig = Parameters<typeof useSpring>[1]; | ||
declare type DivProps = React.PropsWithoutRef<JSX.IntrinsicElements["div"]>; | ||
declare type EditorProps = EditorStep & { | ||
@@ -12,3 +13,3 @@ frameProps?: Partial<EditorFrameProps>; | ||
springConfig?: SpringConfig; | ||
}; | ||
} & DivProps; | ||
declare function EditorSpring({ northPanel, southPanel, files, terminal, springConfig, ...props }: EditorProps): JSX.Element; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from "react"; | ||
import { EditorFrameProps } from "./editor-frame"; | ||
@@ -13,2 +13,3 @@ import { EditorStep } from "./editor-shift"; | ||
} & Omit<EditorFrameProps, "northPanel" | "southPanel">; | ||
declare type DivProps = React.PropsWithoutRef<JSX.IntrinsicElements["div"]>; | ||
declare type EditorTweenProps = { | ||
@@ -21,4 +22,4 @@ prev?: EditorStep; | ||
frameProps?: Partial<EditorFrameProps>; | ||
}; | ||
declare function EditorTween({ prev, next, t, backward, codeConfig, frameProps, }: EditorTweenProps): JSX.Element; | ||
} & DivProps; | ||
declare function EditorTween({ prev, next, t, backward, codeConfig, frameProps, ...divProps }: EditorTweenProps): JSX.Element; | ||
declare function EditorTransition({ prev, next, t, backward, codeConfig, ...rest }: EditorTransitionProps): JSX.Element; |
import "./index.scss"; | ||
import { MiniEditorTween, MiniEditorTweenProps } from "./mini-editor-tween"; | ||
import { MiniEditorHike, MiniEditorHikeProps, EditorStep } from "./mini-editor-hike"; | ||
import { MiniEditor, MiniEditorProps } from "./mini-editor-spring"; | ||
import { mdxToStep, mdxToSteps } from "./mdx"; | ||
import { EditorTween } from "./editor-tween"; | ||
import { EditorSpring, EditorProps } from "./editor-spring"; | ||
export { EditorTween, EditorSpring, EditorProps, mdxToStep, mdxToSteps, MiniEditorTween, MiniEditorTweenProps, MiniEditor, MiniEditorProps, MiniEditorHike, MiniEditorHikeProps, EditorStep, }; | ||
import { EditorSpring, EditorProps, EditorStep, CodeFile } from "./editor-spring"; | ||
export { EditorTween, EditorSpring, EditorProps, EditorStep, CodeFile, }; |
{ | ||
"name": "@code-hike/mini-editor", | ||
"version": "0.3.0--canary.77.122e7ce.0", | ||
"version": "0.3.0--canary.77.1351c85.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -15,3 +15,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/react": "^16.9.38", | ||
@@ -21,6 +21,6 @@ "react": "^16.13.1" | ||
"dependencies": { | ||
"@code-hike/classer": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/mini-frame": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/mini-terminal": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/smooth-code": "0.3.0--canary.77.122e7ce.0", | ||
"@code-hike/classer": "0.3.0--canary.77.1351c85.0", | ||
"@code-hike/mini-frame": "0.3.0--canary.77.1351c85.0", | ||
"@code-hike/mini-terminal": "0.3.0--canary.77.1351c85.0", | ||
"@code-hike/smooth-code": "0.3.0--canary.77.1351c85.0", | ||
"use-spring": "^0.2.3" | ||
@@ -45,3 +45,3 @@ }, | ||
}, | ||
"gitHead": "122e7ce5b287bfc6f5361892909a656c0ac39920" | ||
"gitHead": "1351c85b88dcf72dc8828976689fd84ca17ef0df" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
89269
17
1765
+ Added@code-hike/classer@0.3.0--canary.77.1351c85.0(transitive)
+ Added@code-hike/highlighter@0.3.0--canary.77.1351c85.0(transitive)
+ Added@code-hike/mini-frame@0.3.0--canary.77.1351c85.0(transitive)
+ Added@code-hike/mini-terminal@0.3.0--canary.77.1351c85.0(transitive)
+ Added@code-hike/smooth-code@0.3.0--canary.77.1351c85.0(transitive)
+ Added@code-hike/utils@0.3.0--canary.77.1351c85.0(transitive)
- Removed@code-hike/classer@0.3.0--canary.77.122e7ce.0(transitive)
- Removed@code-hike/highlighter@0.3.0--canary.77.122e7ce.0(transitive)
- Removed@code-hike/mini-frame@0.3.0--canary.77.122e7ce.0(transitive)
- Removed@code-hike/mini-terminal@0.3.0--canary.77.122e7ce.0(transitive)
- Removed@code-hike/smooth-code@0.3.0--canary.77.122e7ce.0(transitive)
- Removed@code-hike/utils@0.3.0--canary.77.122e7ce.0(transitive)