@code-hike/mini-editor
Advanced tools
Comparing version 0.3.0--canary.67.059c384.0 to 0.3.0--canary.67.0da7533.0
@@ -234,3 +234,3 @@ 'use strict'; | ||
var useLayoutEffect = typeof window !== "undefined" | ||
var useLayoutEffect$1 = typeof window !== "undefined" | ||
? React__default['default'].useLayoutEffect | ||
@@ -244,3 +244,3 @@ : React__default['default'].useEffect; | ||
var fullDeps = __spread(deps, [windowWidth]); | ||
useLayoutEffect(function () { | ||
useLayoutEffect$1(function () { | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
@@ -596,2 +596,5 @@ if (ref.current) { | ||
var useLayoutEffect = typeof window !== "undefined" | ||
? React__default['default'].useLayoutEffect | ||
: React__default['default'].useEffect; | ||
function useSnapshots(ref, prev, next) { | ||
@@ -602,3 +605,3 @@ var _a = __read(React__default['default'].useState({ | ||
}), 2), _b = _a[0], prevSnapshot = _b.prevSnapshot, nextSnapshot = _b.nextSnapshot, setState = _a[1]; | ||
React__default['default'].useLayoutEffect(function () { | ||
useLayoutEffect(function () { | ||
if (prevSnapshot || nextSnapshot) { | ||
@@ -611,3 +614,3 @@ setState({ | ||
}, [prev, next]); | ||
React__default['default'].useLayoutEffect(function () { | ||
useLayoutEffect(function () { | ||
if (!prevSnapshot) { | ||
@@ -891,2 +894,6 @@ setState(function (s) { return (__assign(__assign({}, s), { prevSnapshot: __assign(__assign({}, getPanelSnapshot(ref.current, prev)), getTabsSnapshot(ref.current, prev)) })); }); | ||
var _a = getStepFiles(prev, next, false), prevNorthFile = _a.prevNorthFile, prevSouthFile = _a.prevSouthFile, nextNorthFile = _a.nextNorthFile, nextSouthFile = _a.nextSouthFile; | ||
// getStepFiles return the intermediate files, we need to patch the ending state (2to1south) | ||
if (!inputSouthPanel && nextSouthFile) { | ||
nextNorthFile = nextSouthFile; | ||
} | ||
return { | ||
@@ -893,0 +900,0 @@ northPanel: { |
@@ -226,3 +226,3 @@ import React from 'react'; | ||
var useLayoutEffect = typeof window !== "undefined" | ||
var useLayoutEffect$1 = typeof window !== "undefined" | ||
? React.useLayoutEffect | ||
@@ -236,3 +236,3 @@ : React.useEffect; | ||
var fullDeps = __spread(deps, [windowWidth]); | ||
useLayoutEffect(function () { | ||
useLayoutEffect$1(function () { | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
@@ -588,2 +588,5 @@ if (ref.current) { | ||
var useLayoutEffect = typeof window !== "undefined" | ||
? React.useLayoutEffect | ||
: React.useEffect; | ||
function useSnapshots(ref, prev, next) { | ||
@@ -594,3 +597,3 @@ var _a = __read(React.useState({ | ||
}), 2), _b = _a[0], prevSnapshot = _b.prevSnapshot, nextSnapshot = _b.nextSnapshot, setState = _a[1]; | ||
React.useLayoutEffect(function () { | ||
useLayoutEffect(function () { | ||
if (prevSnapshot || nextSnapshot) { | ||
@@ -603,3 +606,3 @@ setState({ | ||
}, [prev, next]); | ||
React.useLayoutEffect(function () { | ||
useLayoutEffect(function () { | ||
if (!prevSnapshot) { | ||
@@ -883,2 +886,6 @@ setState(function (s) { return (__assign(__assign({}, s), { prevSnapshot: __assign(__assign({}, getPanelSnapshot(ref.current, prev)), getTabsSnapshot(ref.current, prev)) })); }); | ||
var _a = getStepFiles(prev, next, false), prevNorthFile = _a.prevNorthFile, prevSouthFile = _a.prevSouthFile, nextNorthFile = _a.nextNorthFile, nextSouthFile = _a.nextSouthFile; | ||
// getStepFiles return the intermediate files, we need to patch the ending state (2to1south) | ||
if (!inputSouthPanel && nextSouthFile) { | ||
nextNorthFile = nextSouthFile; | ||
} | ||
return { | ||
@@ -885,0 +892,0 @@ northPanel: { |
{ | ||
"name": "@code-hike/mini-editor", | ||
"version": "0.3.0--canary.67.059c384.0", | ||
"version": "0.3.0--canary.67.0da7533.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -15,3 +15,3 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@code-hike/script": "0.3.0--canary.67.059c384.0", | ||
"@code-hike/script": "0.3.0--canary.67.0da7533.0", | ||
"@types/react": "^16.9.38", | ||
@@ -21,7 +21,7 @@ "react": "^16.13.1" | ||
"dependencies": { | ||
"@code-hike/classer": "0.3.0--canary.67.059c384.0", | ||
"@code-hike/code-diff": "0.3.0--canary.67.059c384.0", | ||
"@code-hike/mini-frame": "0.3.0--canary.67.059c384.0", | ||
"@code-hike/mini-terminal": "0.3.0--canary.67.059c384.0", | ||
"@code-hike/smooth-lines": "0.3.0--canary.67.059c384.0", | ||
"@code-hike/classer": "0.3.0--canary.67.0da7533.0", | ||
"@code-hike/code-diff": "0.3.0--canary.67.0da7533.0", | ||
"@code-hike/mini-frame": "0.3.0--canary.67.0da7533.0", | ||
"@code-hike/mini-terminal": "0.3.0--canary.67.0da7533.0", | ||
"@code-hike/smooth-lines": "0.3.0--canary.67.0da7533.0", | ||
"use-spring": "^0.2.3" | ||
@@ -43,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "059c384f92c68a766571eb1f87ef2f2aace5e2cf" | ||
"gitHead": "0da753337f195b9d0b9dae0b04d2ec3356f0cc61" | ||
} |
127114
21
2631
+ Added@code-hike/classer@0.3.0--canary.67.0da7533.0(transitive)
+ Added@code-hike/code-diff@0.3.0--canary.67.0da7533.0(transitive)
+ Added@code-hike/mini-frame@0.3.0--canary.67.0da7533.0(transitive)
+ Added@code-hike/mini-terminal@0.3.0--canary.67.0da7533.0(transitive)
+ Added@code-hike/smooth-lines@0.3.0--canary.67.0da7533.0(transitive)
- Removed@code-hike/classer@0.3.0--canary.67.059c384.0(transitive)
- Removed@code-hike/code-diff@0.3.0--canary.67.059c384.0(transitive)
- Removed@code-hike/mini-frame@0.3.0--canary.67.059c384.0(transitive)
- Removed@code-hike/mini-terminal@0.3.0--canary.67.059c384.0(transitive)
- Removed@code-hike/smooth-lines@0.3.0--canary.67.059c384.0(transitive)