@micromag/viewer 0.3.247 → 0.3.249
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 +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1266,7 +1266,7 @@ var ViewerMenuShare = function ViewerMenuShare(_ref) {
|
|
|
1266
1266
|
setFinalShareUrl = _useState4[1];
|
|
1267
1267
|
|
|
1268
1268
|
useEffect(function () {
|
|
1269
|
-
setFinalShareUrl(shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex) : shareUrl);
|
|
1269
|
+
setFinalShareUrl(shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex + 1) : shareUrl);
|
|
1270
1270
|
}, [shareCurrentScreen, currentScreenIndex, setFinalShareUrl]);
|
|
1271
1271
|
return /*#__PURE__*/React.createElement("div", {
|
|
1272
1272
|
className: classNames([styles$7.container, _defineProperty({}, className, className !== null)]),
|
package/lib/index.js
CHANGED
|
@@ -1286,7 +1286,7 @@ var ViewerMenuShare = function ViewerMenuShare(_ref) {
|
|
|
1286
1286
|
setFinalShareUrl = _useState4[1];
|
|
1287
1287
|
|
|
1288
1288
|
React.useEffect(function () {
|
|
1289
|
-
setFinalShareUrl(shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex) : shareUrl);
|
|
1289
|
+
setFinalShareUrl(shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex + 1) : shareUrl);
|
|
1290
1290
|
}, [shareCurrentScreen, currentScreenIndex, setFinalShareUrl]);
|
|
1291
1291
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1292
1292
|
className: classNames__default["default"]([styles$7.container, _defineProperty__default["default"]({}, className, className !== null)]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.249",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "80bd66dd353debd617ec938e6f0205732164bf66"
|
|
89
89
|
}
|