react-sortable-tree-theme-file-explorer
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.1.1"></a> | ||
## [1.1.1](https://github.com/fritz-c/react-sortable-tree-theme-file-explorer/compare/v1.1.0...v1.1.1) (2017-11-01) | ||
### Bug Fixes | ||
* make canDrag work. Fixes [#5](https://github.com/fritz-c/react-sortable-tree-theme-file-explorer/issues/5) ([f82d6c1](https://github.com/fritz-c/react-sortable-tree-theme-file-explorer/commit/f82d6c1)) | ||
<a name="1.1.0"></a> | ||
@@ -7,0 +17,0 @@ # 1.1.0 (2017-10-29) |
@@ -442,3 +442,3 @@ !function(root, factory) { | ||
_props.parentNode, _objectWithoutProperties(_props, [ "scaffoldBlockPxWidth", "toggleChildrenVisibility", "connectDragPreview", "connectDragSource", "isDragging", "canDrop", "canDrag", "node", "title", "draggedNode", "path", "treeIndex", "isSearchMatch", "isSearchFocus", "icons", "buttons", "className", "style", "didDrop", "lowerSiblingCounts", "listIndex", "swapFrom", "swapLength", "swapDepth", "isOver", "parentNode" ])), nodeTitle = title || node.title, isDraggedDescendant = draggedNode && isDescendant(draggedNode, node), isLandingPadActive = !didDrop && isDragging, scaffold = []; | ||
return lowerSiblingCounts.forEach(function(lowerSiblingCount, i) { | ||
lowerSiblingCounts.forEach(function(lowerSiblingCount, i) { | ||
if (scaffold.push(_react2.default.createElement("div", { | ||
@@ -466,3 +466,4 @@ key: "pre_" + (1 + i), | ||
} | ||
}), connectDragSource(_react2.default.createElement("div", _extends({ | ||
}); | ||
var nodeContent = _react2.default.createElement("div", _extends({ | ||
style: { | ||
@@ -486,3 +487,3 @@ height: "100%" | ||
}), _react2.default.createElement("div", { | ||
className: _nodeContentRenderer2.default.rowWrapper | ||
className: _nodeContentRenderer2.default.rowWrapper + (canDrag ? "" : " " + _nodeContentRenderer2.default.rowWrapperDragDisabled) | ||
}, connectDragPreview(_react2.default.createElement("div", { | ||
@@ -521,5 +522,6 @@ style: { | ||
}, btn); | ||
})))))))), { | ||
})))))))); | ||
return canDrag ? connectDragSource(nodeContent, { | ||
dropEffect: "copy" | ||
}); | ||
}) : nodeContent; | ||
} | ||
@@ -597,6 +599,7 @@ } ]), FileThemeNodeContentRenderer; | ||
// module | ||
exports.push([ module.i, ".rstcustom__rowWrapper {\n height: 100%;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: move; }\n .rstcustom__rowWrapper:hover {\n opacity: 0.7; }\n .rstcustom__rowWrapper:active {\n opacity: 1; }\n\n.rstcustom__row {\n height: 100%;\n white-space: nowrap;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative; }\n .rstcustom__row > * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; }\n\n/**\n * The outline of where the element will go if dropped, displayed while dragging\n */\n.rstcustom__rowLandingPad, .rstcustom__rowCancelPad {\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n outline: none; }\n .rstcustom__rowLandingPad *, .rstcustom__rowCancelPad * {\n opacity: 0 !important; }\n .rstcustom__rowLandingPad::before, .rstcustom__rowCancelPad::before {\n background-color: lightblue;\n border: 2px dotted black;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1; }\n\n/**\n * Alternate appearance of the landing pad when the dragged location is invalid\n */\n.rstcustom__rowCancelPad::before {\n background-color: #e6a8ad; }\n\n/**\n * Nodes matching the search conditions are highlighted\n */\n.rstcustom__rowSearchMatch {\n -webkit-box-shadow: inset 0 -7px 7px -3px #0080ff;\n box-shadow: inset 0 -7px 7px -3px #0080ff; }\n\n/**\n * The node that matches the search conditions and is currently focused\n */\n.rstcustom__rowSearchFocus {\n -webkit-box-shadow: inset 0 -7px 7px -3px #fc6421;\n box-shadow: inset 0 -7px 7px -3px #fc6421; }\n\n.rstcustom__rowContents, .rstcustom__rowLabel, .rstcustom__rowToolbar, .rstcustom__toolbarButton {\n display: inline-block;\n vertical-align: middle; }\n\n.rstcustom__rowContents {\n position: relative;\n height: 100%;\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between; }\n\n.rstcustom__rowLabel {\n -webkit-box-flex: 0;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n padding-right: 20px; }\n\n.rstcustom__rowToolbar {\n -webkit-box-flex: 0;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex; }\n\n.rstcustom__collapseButton,\n.rstcustom__expandButton {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: none;\n background: transparent;\n padding: 0;\n z-index: 2;\n position: absolute;\n top: 45%;\n width: 30px;\n height: 30px;\n -webkit-transform: translate3d(-50%, -50%, 0);\n transform: translate3d(-50%, -50%, 0);\n cursor: pointer; }\n .rstcustom__collapseButton::after,\n .rstcustom__expandButton::after {\n content: '';\n position: absolute;\n -webkit-transform-origin: 7px 4px;\n -ms-transform-origin: 7px 4px;\n transform-origin: 7px 4px;\n -webkit-transform: translate3d(-50%, -20%, 0);\n transform: translate3d(-50%, -20%, 0);\n border: solid transparent 10px;\n border-left-width: 7px;\n border-right-width: 7px;\n border-top-color: gray; }\n .rstcustom__collapseButton:hover::after,\n .rstcustom__expandButton:hover::after {\n border-top-color: black; }\n .rstcustom__collapseButton:focus,\n .rstcustom__expandButton:focus {\n outline: none; }\n .rstcustom__collapseButton:focus::after,\n .rstcustom__expandButton:focus::after {\n -webkit-filter: drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9);\n filter: drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9); }\n\n.rstcustom__expandButton::after {\n -webkit-transform: translate3d(-50%, -20%, 0) rotateZ(-90deg);\n transform: translate3d(-50%, -20%, 0) rotateZ(-90deg); }\n\n/**\n * Line for under a node with children\n */\n.rstcustom__lineChildren {\n height: 100%;\n display: inline-block; }\n\n/* ==========================================================================\n Scaffold\n\n Line-overlaid blocks used for showing the tree structure\n ========================================================================== */\n.rstcustom__lineBlock, .rstcustom__absoluteLineBlock {\n height: 100%;\n position: relative;\n display: inline-block;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto; }\n\n.rstcustom__absoluteLineBlock {\n position: absolute;\n top: 0; }\n\n/* Highlight line for pointing to dragged row destination\n ========================================================================== */\n/**\n * +--+--+\n * | | |\n * | | |\n * | | |\n * +--+--+\n */\n.rstcustom__highlightLineVertical {\n z-index: 3; }\n .rstcustom__highlightLineVertical::before {\n position: absolute;\n content: '';\n background-color: #36c2f6;\n width: 6px;\n margin-left: -3px;\n left: 50%;\n top: 0;\n height: 100%; }\n\n@-webkit-keyframes rstcustom__arrow-pulse {\n 0% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n opacity: 0; }\n 30% {\n -webkit-transform: translate(0, 300%);\n transform: translate(0, 300%);\n opacity: 1; }\n 70% {\n -webkit-transform: translate(0, 700%);\n transform: translate(0, 700%);\n opacity: 1; }\n 100% {\n -webkit-transform: translate(0, 1000%);\n transform: translate(0, 1000%);\n opacity: 0; } }\n\n@keyframes rstcustom__arrow-pulse {\n 0% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n opacity: 0; }\n 30% {\n -webkit-transform: translate(0, 300%);\n transform: translate(0, 300%);\n opacity: 1; }\n 70% {\n -webkit-transform: translate(0, 700%);\n transform: translate(0, 700%);\n opacity: 1; }\n 100% {\n -webkit-transform: translate(0, 1000%);\n transform: translate(0, 1000%);\n opacity: 0; } }\n .rstcustom__highlightLineVertical::after {\n content: '';\n position: absolute;\n height: 0;\n margin-left: -3px;\n left: 50%;\n top: 0;\n border-left: 3px solid transparent;\n border-right: 3px solid transparent;\n border-top: 3px solid white;\n -webkit-animation: rstcustom__arrow-pulse 1s infinite linear both;\n animation: rstcustom__arrow-pulse 1s infinite linear both; }\n\n/**\n * +-----+\n * | |\n * | +--+\n * | | |\n * +--+--+\n */\n.rstcustom__highlightTopLeftCorner::before {\n z-index: 3;\n content: '';\n position: absolute;\n border-top: solid 6px #36c2f6;\n border-left: solid 6px #36c2f6;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: calc(50% + 3px);\n top: 50%;\n margin-top: -3px;\n right: 0;\n width: calc(50% + 3px); }\n\n/**\n * +--+--+\n * | | |\n * | | |\n * | +->|\n * +-----+\n */\n.rstcustom__highlightBottomLeftCorner {\n z-index: 3; }\n .rstcustom__highlightBottomLeftCorner::before {\n content: '';\n position: absolute;\n border-bottom: solid 6px #36c2f6;\n border-left: solid 6px #36c2f6;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: calc(100% + 3px);\n top: 0;\n right: 7px;\n width: calc(50% - 4px); }\n .rstcustom__highlightBottomLeftCorner::after {\n content: '';\n position: absolute;\n height: 0;\n right: 0;\n top: 100%;\n margin-top: -7px;\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #36c2f6; }\n", "" ]), | ||
exports.push([ module.i, ".rstcustom__rowWrapper {\n height: 100%;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: move; }\n .rstcustom__rowWrapper:hover {\n opacity: 0.7; }\n .rstcustom__rowWrapper:active {\n opacity: 1; }\n\n.rstcustom__rowWrapperDragDisabled {\n cursor: default; }\n\n.rstcustom__row {\n height: 100%;\n white-space: nowrap;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative; }\n .rstcustom__row > * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; }\n\n/**\n * The outline of where the element will go if dropped, displayed while dragging\n */\n.rstcustom__rowLandingPad, .rstcustom__rowCancelPad {\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n outline: none; }\n .rstcustom__rowLandingPad *, .rstcustom__rowCancelPad * {\n opacity: 0 !important; }\n .rstcustom__rowLandingPad::before, .rstcustom__rowCancelPad::before {\n background-color: lightblue;\n border: 2px dotted black;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1; }\n\n/**\n * Alternate appearance of the landing pad when the dragged location is invalid\n */\n.rstcustom__rowCancelPad::before {\n background-color: #e6a8ad; }\n\n/**\n * Nodes matching the search conditions are highlighted\n */\n.rstcustom__rowSearchMatch {\n -webkit-box-shadow: inset 0 -7px 7px -3px #0080ff;\n box-shadow: inset 0 -7px 7px -3px #0080ff; }\n\n/**\n * The node that matches the search conditions and is currently focused\n */\n.rstcustom__rowSearchFocus {\n -webkit-box-shadow: inset 0 -7px 7px -3px #fc6421;\n box-shadow: inset 0 -7px 7px -3px #fc6421; }\n\n.rstcustom__rowContents, .rstcustom__rowLabel, .rstcustom__rowToolbar, .rstcustom__toolbarButton {\n display: inline-block;\n vertical-align: middle; }\n\n.rstcustom__rowContents {\n position: relative;\n height: 100%;\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between; }\n\n.rstcustom__rowLabel {\n -webkit-box-flex: 0;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n padding-right: 20px; }\n\n.rstcustom__rowToolbar {\n -webkit-box-flex: 0;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex; }\n\n.rstcustom__collapseButton,\n.rstcustom__expandButton {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: none;\n background: transparent;\n padding: 0;\n z-index: 2;\n position: absolute;\n top: 45%;\n width: 30px;\n height: 30px;\n -webkit-transform: translate3d(-50%, -50%, 0);\n transform: translate3d(-50%, -50%, 0);\n cursor: pointer; }\n .rstcustom__collapseButton::after,\n .rstcustom__expandButton::after {\n content: '';\n position: absolute;\n -webkit-transform-origin: 7px 4px;\n -ms-transform-origin: 7px 4px;\n transform-origin: 7px 4px;\n -webkit-transform: translate3d(-50%, -20%, 0);\n transform: translate3d(-50%, -20%, 0);\n border: solid transparent 10px;\n border-left-width: 7px;\n border-right-width: 7px;\n border-top-color: gray; }\n .rstcustom__collapseButton:hover::after,\n .rstcustom__expandButton:hover::after {\n border-top-color: black; }\n .rstcustom__collapseButton:focus,\n .rstcustom__expandButton:focus {\n outline: none; }\n .rstcustom__collapseButton:focus::after,\n .rstcustom__expandButton:focus::after {\n -webkit-filter: drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9);\n filter: drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9); }\n\n.rstcustom__expandButton::after {\n -webkit-transform: translate3d(-50%, -20%, 0) rotateZ(-90deg);\n transform: translate3d(-50%, -20%, 0) rotateZ(-90deg); }\n\n/**\n * Line for under a node with children\n */\n.rstcustom__lineChildren {\n height: 100%;\n display: inline-block; }\n\n/* ==========================================================================\n Scaffold\n\n Line-overlaid blocks used for showing the tree structure\n ========================================================================== */\n.rstcustom__lineBlock, .rstcustom__absoluteLineBlock {\n height: 100%;\n position: relative;\n display: inline-block;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto; }\n\n.rstcustom__absoluteLineBlock {\n position: absolute;\n top: 0; }\n\n/* Highlight line for pointing to dragged row destination\n ========================================================================== */\n/**\n * +--+--+\n * | | |\n * | | |\n * | | |\n * +--+--+\n */\n.rstcustom__highlightLineVertical {\n z-index: 3; }\n .rstcustom__highlightLineVertical::before {\n position: absolute;\n content: '';\n background-color: #36c2f6;\n width: 6px;\n margin-left: -3px;\n left: 50%;\n top: 0;\n height: 100%; }\n\n@-webkit-keyframes rstcustom__arrow-pulse {\n 0% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n opacity: 0; }\n 30% {\n -webkit-transform: translate(0, 300%);\n transform: translate(0, 300%);\n opacity: 1; }\n 70% {\n -webkit-transform: translate(0, 700%);\n transform: translate(0, 700%);\n opacity: 1; }\n 100% {\n -webkit-transform: translate(0, 1000%);\n transform: translate(0, 1000%);\n opacity: 0; } }\n\n@keyframes rstcustom__arrow-pulse {\n 0% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n opacity: 0; }\n 30% {\n -webkit-transform: translate(0, 300%);\n transform: translate(0, 300%);\n opacity: 1; }\n 70% {\n -webkit-transform: translate(0, 700%);\n transform: translate(0, 700%);\n opacity: 1; }\n 100% {\n -webkit-transform: translate(0, 1000%);\n transform: translate(0, 1000%);\n opacity: 0; } }\n .rstcustom__highlightLineVertical::after {\n content: '';\n position: absolute;\n height: 0;\n margin-left: -3px;\n left: 50%;\n top: 0;\n border-left: 3px solid transparent;\n border-right: 3px solid transparent;\n border-top: 3px solid white;\n -webkit-animation: rstcustom__arrow-pulse 1s infinite linear both;\n animation: rstcustom__arrow-pulse 1s infinite linear both; }\n\n/**\n * +-----+\n * | |\n * | +--+\n * | | |\n * +--+--+\n */\n.rstcustom__highlightTopLeftCorner::before {\n z-index: 3;\n content: '';\n position: absolute;\n border-top: solid 6px #36c2f6;\n border-left: solid 6px #36c2f6;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: calc(50% + 3px);\n top: 50%;\n margin-top: -3px;\n right: 0;\n width: calc(50% + 3px); }\n\n/**\n * +--+--+\n * | | |\n * | | |\n * | +->|\n * +-----+\n */\n.rstcustom__highlightBottomLeftCorner {\n z-index: 3; }\n .rstcustom__highlightBottomLeftCorner::before {\n content: '';\n position: absolute;\n border-bottom: solid 6px #36c2f6;\n border-left: solid 6px #36c2f6;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: calc(100% + 3px);\n top: 0;\n right: 7px;\n width: calc(50% - 4px); }\n .rstcustom__highlightBottomLeftCorner::after {\n content: '';\n position: absolute;\n height: 0;\n right: 0;\n top: 100%;\n margin-top: -7px;\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #36c2f6; }\n", "" ]), | ||
// exports | ||
exports.locals = { | ||
rowWrapper: "rstcustom__rowWrapper", | ||
rowWrapperDragDisabled: "rstcustom__rowWrapperDragDisabled", | ||
row: "rstcustom__row", | ||
@@ -603,0 +606,0 @@ rowLandingPad: "rstcustom__rowLandingPad", |
{ | ||
"name": "react-sortable-tree-theme-file-explorer", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "File explorer theme for react-sortable-tree", | ||
@@ -22,3 +22,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "https://github.com/fritz-c/react-sortable-tree" | ||
"url": "https://github.com/fritz-c/react-sortable-tree-theme-file-explorer" | ||
}, | ||
@@ -51,3 +51,3 @@ "homepage": "https://github.com/fritz-c/react-sortable-tree-theme-file-explorer", | ||
"react-dnd-scrollzone": "^4.0.0", | ||
"react-virtualized": "^9.10.1" | ||
"react-virtualized": "^9.12.0" | ||
}, | ||
@@ -60,3 +60,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"autoprefixer": "^7.1.5", | ||
"autoprefixer": "^7.1.6", | ||
"babel-core": "^6.26.0", | ||
@@ -69,11 +69,11 @@ "babel-jest": "^21.2.0", | ||
"babel-preset-react": "^6.11.1", | ||
"cross-env": "^5.0.5", | ||
"cross-env": "^5.1.1", | ||
"css-loader": "^0.28.7", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.1", | ||
"eslint": "^4.8.0", | ||
"eslint": "^4.10.0", | ||
"eslint-config-airbnb": "^16.0.0", | ||
"eslint-config-prettier": "^2.6.0", | ||
"eslint-config-prettier": "^2.7.0", | ||
"eslint-loader": "^1.9.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.2", | ||
@@ -96,2 +96,3 @@ "eslint-plugin-react": "^7.4.0", | ||
"react-hot-loader": "^3.0.0", | ||
"react-sortable-tree": "^1.5.0", | ||
"react-test-renderer": "^16.0.0", | ||
@@ -102,3 +103,3 @@ "rimraf": "^2.6.2", | ||
"webpack": "^3.7.1", | ||
"webpack-dev-server": "^2.9.1", | ||
"webpack-dev-server": "^2.9.3", | ||
"webpack-node-externals": "^1.6.0" | ||
@@ -105,0 +106,0 @@ }, |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
56374
4
823
0
40
42
Updatedreact-virtualized@^9.12.0