sag_components 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,12 +13,13 @@ var _OneColumnContainer = require("../OneColumnContainer.style");
13
13
  var _InfoIcon = require("./InfoIcon");
14
14
  var _core = require("@dnd-kit/core");
15
15
  var _classnames = _interopRequireDefault(require("classnames"));
16
- var _excluded = ["children", "itemClass", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
16
+ var _excluded = ["children", "nodeRef", "itemClass", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
17
17
  /**
18
18
  * Primary UI component for user interaction
19
19
  */
20
20
  var OneColumnContainer = function OneColumnContainer(_ref) {
21
21
  var children = _ref.children,
22
+ nodeRef = _ref.nodeRef,
22
23
  itemClass = _ref.itemClass,
23
24
  overStyle = _ref.overStyle,
24
25
  draggingStyle = _ref.draggingStyle,
@@ -43,10 +44,10 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
43
44
  };
44
45
  return /*#__PURE__*/_react.default.createElement(_OneColumnContainer.StyledContainer, {
45
46
  className: (0, _classnames.default)(itemClass, overStyle, draggingStyle, droppedStyle),
46
- ref: setNodeRef,
47
+ innerRef: nodeRef,
47
48
  width: width,
48
49
  height: height
49
- }, console.log("oneColOver ", over), children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
50
+ }, children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
50
51
  clicked: clicked,
51
52
  width: width,
52
53
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -22,10 +22,8 @@ export const OneColumnContainer = ({ children,nodeRef,itemClass,overStyle,draggi
22
22
  overStyle,
23
23
  draggingStyle,
24
24
  droppedStyle
25
- )} width={width} height={height}>
26
- <div ref={nodeRef}>
25
+ )} innerRef={nodeRef} width={width} height={height}>
27
26
  {children}
28
- </div>
29
27
  <InfoTextContainer clicked={clicked} width={width} height={height}>
30
28
  <InfoTextLabel>{infoText}</InfoTextLabel>
31
29
  </InfoTextContainer>