@micromag/editor 0.3.17 → 0.3.18
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/assets/css/styles.css +1 -1
- package/es/index.js +14 -14
- package/lib/index.js +14 -14
- package/package.json +7 -7
package/assets/css/styles.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.micromag-editor-forms-screen-container{position:relative;padding:.5rem}.micromag-editor-forms-screen-container .micromag-editor-forms-screen-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}
|
|
4
4
|
.micromag-editor-menus-breadcrumb-container li{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.micromag-editor-menus-breadcrumb-container li:before{float:none}.micromag-editor-menus-breadcrumb-container li:last-child{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}
|
|
5
5
|
.micromag-editor-modals-delete-screen-container .micromag-editor-modals-delete-screen-description{margin-bottom:10px}.micromag-editor-modals-delete-screen-container .micromag-editor-modals-delete-screen-actions{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}
|
|
6
|
-
.micromag-editor-preview-container .micromag-editor-preview-noStory,.micromag-editor-preview-container .micromag-editor-preview-story{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-editor-preview-container{position:relative}.micromag-editor-preview-container>.micromag-editor-preview-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.micromag-editor-preview-container .micromag-editor-preview-top{display:none;padding:20px 0}.micromag-editor-preview-container .micromag-editor-preview-bottom{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;padding:0;overflow:hidden}.micromag-editor-preview-container .micromag-editor-preview-bottom>.micromag-editor-preview-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;margin:0 auto;overflow:hidden}.micromag-editor-preview-container .micromag-editor-preview-preview{width:100%;-webkit-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%}.micromag-editor-preview-container .micromag-editor-preview-preview,.micromag-editor-preview-container .micromag-editor-preview-viewerContainer{position:relative;height:100%}.micromag-editor-preview-screen-medium .micromag-editor-preview-top{display:-webkit-flex;display:-ms-flexbox;display:flex
|
|
6
|
+
.micromag-editor-preview-container .micromag-editor-preview-noStory,.micromag-editor-preview-container .micromag-editor-preview-story{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-editor-preview-container{position:relative}.micromag-editor-preview-container>.micromag-editor-preview-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.micromag-editor-preview-container .micromag-editor-preview-top{display:none;padding:20px 0}.micromag-editor-preview-container .micromag-editor-preview-bottom{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;padding:0;overflow:hidden}.micromag-editor-preview-container .micromag-editor-preview-bottom>.micromag-editor-preview-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;margin:0 auto;overflow:hidden}.micromag-editor-preview-container .micromag-editor-preview-preview{width:100%;-webkit-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%}.micromag-editor-preview-container .micromag-editor-preview-preview,.micromag-editor-preview-container .micromag-editor-preview-viewerContainer{position:relative;height:100%}.micromag-editor-preview-container .micromag-editor-preview-devices{position:absolute;right:10px;bottom:10px}.micromag-editor-preview-screen-medium .micromag-editor-preview-top{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%}.micromag-editor-preview-screen-medium .micromag-editor-preview-bottom{padding:50px 20px}
|
|
7
7
|
.micromag-editor-menus-devices-container{display:inline-block;position:relative}.micromag-editor-menus-devices-container .micromag-editor-menus-devices-button{display:block;width:40px;height:30px;padding:5px}
|
|
8
8
|
.micromag-editor-buttons-device-container .micromag-editor-buttons-device-icon{display:block;width:100%;height:auto;max-height:100%}
|
|
9
9
|
.micromag-editor-partials-screen-states-button{width:50px;min-height:75px}.micromag-editor-partials-screen-states-button.btn-outline-secondary{border-color:#6c6c6c;color:#6c6c6c}.micromag-editor-partials-screen-states-button.btn-outline-secondary:hover{border-color:#e9e9e9;background:rgba(0,0,0,0);color:#e9e9e9}.micromag-editor-partials-screen-states-addButton{border-style:dashed}.micromag-editor-partials-screen-states-title{font-size:.75em}
|
package/es/index.js
CHANGED
|
@@ -997,7 +997,7 @@ var useThemeValue = function useThemeValue(value) {
|
|
|
997
997
|
return valueWithTheme;
|
|
998
998
|
};
|
|
999
999
|
|
|
1000
|
-
var styles$d = {"container":"micromag-editor-preview-container","noStory":"micromag-editor-preview-noStory","story":"micromag-editor-preview-story","inner":"micromag-editor-preview-inner","top":"micromag-editor-preview-top","bottom":"micromag-editor-preview-bottom","preview":"micromag-editor-preview-preview","viewerContainer":"micromag-editor-preview-viewerContainer","screen-medium":"micromag-editor-preview-screen-medium"};
|
|
1000
|
+
var styles$d = {"container":"micromag-editor-preview-container","noStory":"micromag-editor-preview-noStory","story":"micromag-editor-preview-story","inner":"micromag-editor-preview-inner","top":"micromag-editor-preview-top","bottom":"micromag-editor-preview-bottom","preview":"micromag-editor-preview-preview","viewerContainer":"micromag-editor-preview-viewerContainer","devices":"micromag-editor-preview-devices","screen-medium":"micromag-editor-preview-screen-medium"};
|
|
1001
1001
|
|
|
1002
1002
|
var styles$c = {"container":"micromag-editor-menus-devices-container","button":"micromag-editor-menus-devices-button"};
|
|
1003
1003
|
|
|
@@ -1458,7 +1458,7 @@ var defaultProps$b = {
|
|
|
1458
1458
|
className: null,
|
|
1459
1459
|
onScreenChange: null,
|
|
1460
1460
|
onChange: null,
|
|
1461
|
-
withoutDevicesSizes:
|
|
1461
|
+
withoutDevicesSizes: false
|
|
1462
1462
|
};
|
|
1463
1463
|
|
|
1464
1464
|
var EditorPreview = function EditorPreview(_ref) {
|
|
@@ -1574,17 +1574,7 @@ var EditorPreview = function EditorPreview(_ref) {
|
|
|
1574
1574
|
}), (_ref9 = {}, _defineProperty(_ref9, className, className), _defineProperty(_ref9, styles$d.withoutDevicesSizes, withoutDevicesSizes), _ref9)])
|
|
1575
1575
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1576
1576
|
className: styles$d.inner
|
|
1577
|
-
},
|
|
1578
|
-
className: styles$d.top
|
|
1579
|
-
}, /*#__PURE__*/React.createElement(DevicesMenu, {
|
|
1580
|
-
items: devices.map(function (it) {
|
|
1581
|
-
return _objectSpread(_objectSpread({}, it), {}, {
|
|
1582
|
-
active: it.id === deviceId
|
|
1583
|
-
});
|
|
1584
|
-
}),
|
|
1585
|
-
onClickItem: onClickDeviceItem,
|
|
1586
|
-
className: styles$d.devices
|
|
1587
|
-
})) : null, currentScreenStates !== null && currentScreen !== null ? /*#__PURE__*/React.createElement("div", {
|
|
1577
|
+
}, currentScreenStates !== null && currentScreen !== null ? /*#__PURE__*/React.createElement("div", {
|
|
1588
1578
|
className: classNames([styles$d.top, 'px-1'])
|
|
1589
1579
|
}, /*#__PURE__*/React.createElement(ScreenStates, {
|
|
1590
1580
|
screen: currentScreen,
|
|
@@ -1611,7 +1601,17 @@ var EditorPreview = function EditorPreview(_ref) {
|
|
|
1611
1601
|
interactions: null,
|
|
1612
1602
|
renderContext: "edit",
|
|
1613
1603
|
onScreenChange: onScreenChange
|
|
1614
|
-
})))))
|
|
1604
|
+
}))))), !withoutDevicesSizes ? /*#__PURE__*/React.createElement("div", {
|
|
1605
|
+
className: styles$d.deviceMenu
|
|
1606
|
+
}, /*#__PURE__*/React.createElement(DevicesMenu, {
|
|
1607
|
+
items: devices.map(function (it) {
|
|
1608
|
+
return _objectSpread(_objectSpread({}, it), {}, {
|
|
1609
|
+
active: it.id === deviceId
|
|
1610
|
+
});
|
|
1611
|
+
}),
|
|
1612
|
+
onClickItem: onClickDeviceItem,
|
|
1613
|
+
className: styles$d.devices
|
|
1614
|
+
})) : null));
|
|
1615
1615
|
};
|
|
1616
1616
|
|
|
1617
1617
|
EditorPreview.propTypes = propTypes$b;
|
package/lib/index.js
CHANGED
|
@@ -1017,7 +1017,7 @@ var useThemeValue = function useThemeValue(value) {
|
|
|
1017
1017
|
return valueWithTheme;
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
1020
|
-
var styles$d = {"container":"micromag-editor-preview-container","noStory":"micromag-editor-preview-noStory","story":"micromag-editor-preview-story","inner":"micromag-editor-preview-inner","top":"micromag-editor-preview-top","bottom":"micromag-editor-preview-bottom","preview":"micromag-editor-preview-preview","viewerContainer":"micromag-editor-preview-viewerContainer","screen-medium":"micromag-editor-preview-screen-medium"};
|
|
1020
|
+
var styles$d = {"container":"micromag-editor-preview-container","noStory":"micromag-editor-preview-noStory","story":"micromag-editor-preview-story","inner":"micromag-editor-preview-inner","top":"micromag-editor-preview-top","bottom":"micromag-editor-preview-bottom","preview":"micromag-editor-preview-preview","viewerContainer":"micromag-editor-preview-viewerContainer","devices":"micromag-editor-preview-devices","screen-medium":"micromag-editor-preview-screen-medium"};
|
|
1021
1021
|
|
|
1022
1022
|
var styles$c = {"container":"micromag-editor-menus-devices-container","button":"micromag-editor-menus-devices-button"};
|
|
1023
1023
|
|
|
@@ -1478,7 +1478,7 @@ var defaultProps$b = {
|
|
|
1478
1478
|
className: null,
|
|
1479
1479
|
onScreenChange: null,
|
|
1480
1480
|
onChange: null,
|
|
1481
|
-
withoutDevicesSizes:
|
|
1481
|
+
withoutDevicesSizes: false
|
|
1482
1482
|
};
|
|
1483
1483
|
|
|
1484
1484
|
var EditorPreview = function EditorPreview(_ref) {
|
|
@@ -1594,17 +1594,7 @@ var EditorPreview = function EditorPreview(_ref) {
|
|
|
1594
1594
|
}), (_ref9 = {}, _defineProperty__default["default"](_ref9, className, className), _defineProperty__default["default"](_ref9, styles$d.withoutDevicesSizes, withoutDevicesSizes), _ref9)])
|
|
1595
1595
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1596
1596
|
className: styles$d.inner
|
|
1597
|
-
},
|
|
1598
|
-
className: styles$d.top
|
|
1599
|
-
}, /*#__PURE__*/React__default["default"].createElement(DevicesMenu, {
|
|
1600
|
-
items: devices.map(function (it) {
|
|
1601
|
-
return _objectSpread__default["default"](_objectSpread__default["default"]({}, it), {}, {
|
|
1602
|
-
active: it.id === deviceId
|
|
1603
|
-
});
|
|
1604
|
-
}),
|
|
1605
|
-
onClickItem: onClickDeviceItem,
|
|
1606
|
-
className: styles$d.devices
|
|
1607
|
-
})) : null, currentScreenStates !== null && currentScreen !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1597
|
+
}, currentScreenStates !== null && currentScreen !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1608
1598
|
className: classNames__default["default"]([styles$d.top, 'px-1'])
|
|
1609
1599
|
}, /*#__PURE__*/React__default["default"].createElement(ScreenStates, {
|
|
1610
1600
|
screen: currentScreen,
|
|
@@ -1631,7 +1621,17 @@ var EditorPreview = function EditorPreview(_ref) {
|
|
|
1631
1621
|
interactions: null,
|
|
1632
1622
|
renderContext: "edit",
|
|
1633
1623
|
onScreenChange: onScreenChange
|
|
1634
|
-
})))))
|
|
1624
|
+
}))))), !withoutDevicesSizes ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1625
|
+
className: styles$d.deviceMenu
|
|
1626
|
+
}, /*#__PURE__*/React__default["default"].createElement(DevicesMenu, {
|
|
1627
|
+
items: devices.map(function (it) {
|
|
1628
|
+
return _objectSpread__default["default"](_objectSpread__default["default"]({}, it), {}, {
|
|
1629
|
+
active: it.id === deviceId
|
|
1630
|
+
});
|
|
1631
|
+
}),
|
|
1632
|
+
onClickItem: onClickDeviceItem,
|
|
1633
|
+
className: styles$d.devices
|
|
1634
|
+
})) : null));
|
|
1635
1635
|
};
|
|
1636
1636
|
|
|
1637
1637
|
EditorPreview.propTypes = propTypes$b;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
64
64
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
65
|
-
"@micromag/core": "^0.3.
|
|
66
|
-
"@micromag/elements": "^0.3.
|
|
67
|
-
"@micromag/fields": "^0.3.
|
|
68
|
-
"@micromag/screens": "^0.3.
|
|
69
|
-
"@micromag/viewer": "^0.3.
|
|
65
|
+
"@micromag/core": "^0.3.18",
|
|
66
|
+
"@micromag/elements": "^0.3.18",
|
|
67
|
+
"@micromag/fields": "^0.3.18",
|
|
68
|
+
"@micromag/screens": "^0.3.18",
|
|
69
|
+
"@micromag/viewer": "^0.3.18",
|
|
70
70
|
"classnames": "^2.2.6",
|
|
71
71
|
"lodash": "^4.17.21",
|
|
72
72
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "24f426ccd37e27c953634cd1dd3c204264549acc"
|
|
85
85
|
}
|