@micromag/editor 0.3.611 → 0.3.613
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.
- package/es/index.js +16 -7
- package/package.json +7 -7
package/es/index.js
CHANGED
|
@@ -1925,7 +1925,7 @@ var sortableTreeKeyboardCoordinates = function sortableTreeKeyboardCoordinates(c
|
|
|
1925
1925
|
|
|
1926
1926
|
var styles$8 = {"wrapper":"micromag-editor-sortable-sortable-tree-item-actions-wrapper","inner":"micromag-editor-sortable-sortable-tree-item-actions-inner","button":"micromag-editor-sortable-sortable-tree-item-actions-button","handle":"micromag-editor-sortable-sortable-tree-item-actions-handle","icon":"micromag-editor-sortable-sortable-tree-item-actions-icon","text":"micromag-editor-sortable-sortable-tree-item-actions-text","count":"micromag-editor-sortable-sortable-tree-item-actions-count","collapsedCount":"micromag-editor-sortable-sortable-tree-item-actions-collapsedCount","disableInteraction":"micromag-editor-sortable-sortable-tree-item-actions-disableInteraction","disableSelection":"micromag-editor-sortable-sortable-tree-item-actions-disableSelection","clone":"micromag-editor-sortable-sortable-tree-item-actions-clone","collapse":"micromag-editor-sortable-sortable-tree-item-actions-collapse","collapsed":"micromag-editor-sortable-sortable-tree-item-actions-collapsed","children":"micromag-editor-sortable-sortable-tree-item-actions-children","withChildren":"micromag-editor-sortable-sortable-tree-item-actions-withChildren","ghost":"micromag-editor-sortable-sortable-tree-item-actions-ghost","indicator":"micromag-editor-sortable-sortable-tree-item-actions-indicator"};
|
|
1927
1927
|
|
|
1928
|
-
var _excluded$4 = ["childCount", "clone", "depth", "disableSelection", "disableInteraction", "ghost", "handleProps", "indentationWidth", "indicator", "collapsed", "onCollapse", "onRemove", "onClick", "style", "value", "wrapperRef", "showId", "showCount", "showCollapsedCount", "children"];
|
|
1928
|
+
var _excluded$4 = ["childCount", "clone", "depth", "disableSelection", "disableInteraction", "ghost", "handleProps", "indentationWidth", "indicator", "collapsed", "onCollapse", "onRemove", "onClick", "style", "value", "wrapperRef", "showId", "showCount", "showCollapsedCount", "children", "containerRef"];
|
|
1929
1929
|
var propTypes$a = {
|
|
1930
1930
|
childCount: PropTypes.number,
|
|
1931
1931
|
clone: PropTypes.bool,
|
|
@@ -1952,7 +1952,9 @@ var propTypes$a = {
|
|
|
1952
1952
|
showId: PropTypes.bool,
|
|
1953
1953
|
showCount: PropTypes.bool,
|
|
1954
1954
|
showCollapsedCount: PropTypes.bool,
|
|
1955
|
-
children: PropTypes.node
|
|
1955
|
+
children: PropTypes.node,
|
|
1956
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
1957
|
+
containerRef: PropTypes.any
|
|
1956
1958
|
};
|
|
1957
1959
|
var defaultProps$a = {
|
|
1958
1960
|
childCount: null,
|
|
@@ -1972,9 +1974,10 @@ var defaultProps$a = {
|
|
|
1972
1974
|
showId: false,
|
|
1973
1975
|
showCount: false,
|
|
1974
1976
|
showCollapsedCount: false,
|
|
1975
|
-
children: null
|
|
1977
|
+
children: null,
|
|
1978
|
+
containerRef: null
|
|
1976
1979
|
};
|
|
1977
|
-
var SortableTreeItemActions =
|
|
1980
|
+
var SortableTreeItemActions = function SortableTreeItemActions(_ref) {
|
|
1978
1981
|
var childCount = _ref.childCount,
|
|
1979
1982
|
clone = _ref.clone,
|
|
1980
1983
|
depth = _ref.depth,
|
|
@@ -1995,6 +1998,7 @@ var SortableTreeItemActions = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1995
1998
|
var showCount = _ref.showCount,
|
|
1996
1999
|
showCollapsedCount = _ref.showCollapsedCount,
|
|
1997
2000
|
children = _ref.children,
|
|
2001
|
+
containerRef = _ref.containerRef,
|
|
1998
2002
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1999
2003
|
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
2000
2004
|
className: classNames([styles$8.wrapper, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$8.clone, clone), styles$8.ghost, ghost), styles$8.indicator, indicator), styles$8.disableSelection, disableSelection), styles$8.disableInteraction, disableInteraction), styles$8.withChildren, onCollapse !== null)]),
|
|
@@ -2005,7 +2009,7 @@ var SortableTreeItemActions = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2005
2009
|
}
|
|
2006
2010
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
2007
2011
|
className: styles$8.inner,
|
|
2008
|
-
ref:
|
|
2012
|
+
ref: containerRef,
|
|
2009
2013
|
style: style
|
|
2010
2014
|
}, /*#__PURE__*/React.createElement("button", Object.assign({
|
|
2011
2015
|
className: classNames([styles$8.button, styles$8.handle]),
|
|
@@ -2031,9 +2035,14 @@ var SortableTreeItemActions = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2031
2035
|
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
2032
2036
|
className: styles$8.children
|
|
2033
2037
|
}, children)));
|
|
2034
|
-
}
|
|
2038
|
+
};
|
|
2035
2039
|
SortableTreeItemActions.propTypes = propTypes$a;
|
|
2036
2040
|
SortableTreeItemActions.defaultProps = defaultProps$a;
|
|
2041
|
+
var SortableTreeItemActions$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
2042
|
+
return /*#__PURE__*/React.createElement(SortableTreeItemActions, Object.assign({}, props, {
|
|
2043
|
+
containerRef: ref
|
|
2044
|
+
}));
|
|
2045
|
+
});
|
|
2037
2046
|
|
|
2038
2047
|
var styles$7 = {"container":"micromag-editor-sortable-sortable-tree-item-container","parent":"micromag-editor-sortable-sortable-tree-item-parent","child":"micromag-editor-sortable-sortable-tree-item-child"};
|
|
2039
2048
|
|
|
@@ -2137,7 +2146,7 @@ var SortableTreeItem = function SortableTreeItem(_ref2) {
|
|
|
2137
2146
|
}, [onPointerUp]);
|
|
2138
2147
|
return /*#__PURE__*/React.createElement("div", {
|
|
2139
2148
|
className: classNames([styles$7.container])
|
|
2140
|
-
}, /*#__PURE__*/React.createElement(SortableTreeItemActions, Object.assign({
|
|
2149
|
+
}, /*#__PURE__*/React.createElement(SortableTreeItemActions$1, Object.assign({
|
|
2141
2150
|
ref: setDraggableNodeRef,
|
|
2142
2151
|
wrapperRef: setDroppableNodeRef,
|
|
2143
2152
|
style: actionsStyle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.613",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
72
72
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
73
73
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
74
|
-
"@micromag/core": "^0.3.
|
|
75
|
-
"@micromag/elements": "^0.3.
|
|
76
|
-
"@micromag/fields": "^0.3.
|
|
77
|
-
"@micromag/screens": "^0.3.
|
|
78
|
-
"@micromag/viewer": "^0.3.
|
|
74
|
+
"@micromag/core": "^0.3.612",
|
|
75
|
+
"@micromag/elements": "^0.3.612",
|
|
76
|
+
"@micromag/fields": "^0.3.613",
|
|
77
|
+
"@micromag/screens": "^0.3.612",
|
|
78
|
+
"@micromag/viewer": "^0.3.612",
|
|
79
79
|
"@panneau/uppy": "^3.0.162",
|
|
80
80
|
"classnames": "^2.2.6",
|
|
81
81
|
"lodash": "^4.17.21",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"access": "public",
|
|
92
92
|
"registry": "https://registry.npmjs.org/"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "972400930941a79fb4389f9d24caa3d89de45001"
|
|
95
95
|
}
|