@micromag/viewer 0.4.17 → 0.4.20
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 +26 -22
- package/package.json +10 -10
package/es/index.js
CHANGED
|
@@ -221,6 +221,27 @@ function checkDraggable(el) {
|
|
|
221
221
|
return false;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
var stopDragEventsPropagation = {
|
|
225
|
+
onTouchMove: function onTouchMove(e) {
|
|
226
|
+
return e.stopPropagation();
|
|
227
|
+
},
|
|
228
|
+
onTouchStart: function onTouchStart(e) {
|
|
229
|
+
return e.stopPropagation();
|
|
230
|
+
},
|
|
231
|
+
onTouchEnd: function onTouchEnd(e) {
|
|
232
|
+
return e.stopPropagation();
|
|
233
|
+
},
|
|
234
|
+
onPointerMove: function onPointerMove(e) {
|
|
235
|
+
return e.stopPropagation();
|
|
236
|
+
},
|
|
237
|
+
onPointerUp: function onPointerUp(e) {
|
|
238
|
+
return e.stopPropagation();
|
|
239
|
+
},
|
|
240
|
+
onPointerDown: function onPointerDown(e) {
|
|
241
|
+
return e.stopPropagation();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
224
245
|
var styles$i = {"container":"micromag-viewer-buttons-button-container","icon":"micromag-viewer-buttons-button-icon","label":"micromag-viewer-buttons-button-label","asLink":"micromag-viewer-buttons-button-asLink","withIcon":"micromag-viewer-buttons-button-withIcon","right":"micromag-viewer-buttons-button-right","icon-right":"micromag-viewer-buttons-button-icon-right","withIconColumns":"micromag-viewer-buttons-button-withIconColumns","linkDisabled":"micromag-viewer-buttons-button-linkDisabled"};
|
|
225
246
|
|
|
226
247
|
var _excluded$a = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "withoutTheme", "asLink", "ariaLabel", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
@@ -1814,26 +1835,6 @@ function HandTap(_ref) {
|
|
|
1814
1835
|
|
|
1815
1836
|
var styles$2 = {"inner":"micromag-viewer-partials-seek-bar-inner","progressBarContainer":"micromag-viewer-partials-seek-bar-progressBarContainer","progressBar":"micromag-viewer-partials-seek-bar-progressBar","progress":"micromag-viewer-partials-seek-bar-progress","track":"micromag-viewer-partials-seek-bar-track","playHead":"micromag-viewer-partials-seek-bar-playHead","withSeekHead":"micromag-viewer-partials-seek-bar-withSeekHead","scrubbedTime":"micromag-viewer-partials-seek-bar-scrubbedTime","showTimestamp":"micromag-viewer-partials-seek-bar-showTimestamp"};
|
|
1816
1837
|
|
|
1817
|
-
var stopDragEventsPropagation = {
|
|
1818
|
-
onTouchMove: function onTouchMove(e) {
|
|
1819
|
-
return e.stopPropagation();
|
|
1820
|
-
},
|
|
1821
|
-
onTouchStart: function onTouchStart(e) {
|
|
1822
|
-
return e.stopPropagation();
|
|
1823
|
-
},
|
|
1824
|
-
onTouchEnd: function onTouchEnd(e) {
|
|
1825
|
-
return e.stopPropagation();
|
|
1826
|
-
},
|
|
1827
|
-
onPointerMove: function onPointerMove(e) {
|
|
1828
|
-
return e.stopPropagation();
|
|
1829
|
-
},
|
|
1830
|
-
onPointerUp: function onPointerUp(e) {
|
|
1831
|
-
return e.stopPropagation();
|
|
1832
|
-
},
|
|
1833
|
-
onPointerDown: function onPointerDown(e) {
|
|
1834
|
-
return e.stopPropagation();
|
|
1835
|
-
}
|
|
1836
|
-
};
|
|
1837
1838
|
function getFormattedTimestamp() {
|
|
1838
1839
|
var secondsWithMs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1839
1840
|
if (secondsWithMs === null || secondsWithMs <= 0) {
|
|
@@ -2113,12 +2114,14 @@ function PlaybackControls(_ref) {
|
|
|
2113
2114
|
});
|
|
2114
2115
|
}, [controlsTheme, setCustomControlsTheme, defaultColor, defaultProgressColor]);
|
|
2115
2116
|
var onPlay = useCallback(function () {
|
|
2117
|
+
console.log('onPlay');
|
|
2116
2118
|
setPlaying(true);
|
|
2117
2119
|
if (!controlsVisible && controls) {
|
|
2118
2120
|
showControls();
|
|
2119
2121
|
}
|
|
2120
2122
|
}, [setPlaying, controlsVisible, showControls]);
|
|
2121
2123
|
var onPause = useCallback(function () {
|
|
2124
|
+
console.log('onPause');
|
|
2122
2125
|
setPlaying(false);
|
|
2123
2126
|
if (!controlsVisible && controls) {
|
|
2124
2127
|
showControls();
|
|
@@ -2787,6 +2790,7 @@ function Viewer(_ref) {
|
|
|
2787
2790
|
_ref11$args = _slicedToArray(_ref11.args, 1),
|
|
2788
2791
|
bindState = _ref11$args[0];
|
|
2789
2792
|
setPointerDownTime(null);
|
|
2793
|
+
console.log('bindState', bindState);
|
|
2790
2794
|
var _ref12 = bindState || {},
|
|
2791
2795
|
_ref12$playing = _ref12.playing,
|
|
2792
2796
|
currentPlaying = _ref12$playing === void 0 ? false : _ref12$playing,
|
|
@@ -3285,11 +3289,11 @@ function Viewer(_ref) {
|
|
|
3285
3289
|
"value": "Go to next screen"
|
|
3286
3290
|
}]
|
|
3287
3291
|
})
|
|
3288
|
-
}) : null, !withoutPlaybackControls ? /*#__PURE__*/React.createElement("div", {
|
|
3292
|
+
}) : null, !withoutPlaybackControls ? /*#__PURE__*/React.createElement("div", Object.assign({
|
|
3289
3293
|
className: styles$7.playbackControls,
|
|
3290
3294
|
id: "controls",
|
|
3291
3295
|
ref: playbackControlsContainerRef
|
|
3292
|
-
}, /*#__PURE__*/React.createElement(PlaybackControls, {
|
|
3296
|
+
}, stopDragEventsPropagation), /*#__PURE__*/React.createElement(PlaybackControls, {
|
|
3293
3297
|
className: styles$7.controls,
|
|
3294
3298
|
withoutShadow: withoutMenuShadow
|
|
3295
3299
|
})) : null, withNavigationHint !== false && !withNeighborScreens && !navigationDisabled && screenIndex === 0 && !hasInteracted ? /*#__PURE__*/React.createElement(NavigationHint, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/runtime": "^7.28.6",
|
|
64
64
|
"@folklore/routes": "^0.2.36",
|
|
65
|
-
"@micromag/core": "^0.4.
|
|
66
|
-
"@micromag/element-badge": "^0.4.
|
|
67
|
-
"@micromag/element-scroll": "^0.4.
|
|
68
|
-
"@micromag/element-share-options": "^0.4.
|
|
69
|
-
"@micromag/element-webview": "^0.4.
|
|
70
|
-
"@micromag/elements": "^0.4.
|
|
71
|
-
"@micromag/intl": "^0.4.
|
|
72
|
-
"@micromag/screens": "^0.4.
|
|
65
|
+
"@micromag/core": "^0.4.20",
|
|
66
|
+
"@micromag/element-badge": "^0.4.20",
|
|
67
|
+
"@micromag/element-scroll": "^0.4.20",
|
|
68
|
+
"@micromag/element-share-options": "^0.4.20",
|
|
69
|
+
"@micromag/element-webview": "^0.4.20",
|
|
70
|
+
"@micromag/elements": "^0.4.20",
|
|
71
|
+
"@micromag/intl": "^0.4.20",
|
|
72
|
+
"@micromag/screens": "^0.4.20",
|
|
73
73
|
"@react-spring/core": "^10.0.3",
|
|
74
74
|
"@react-spring/web": "^10.0.3",
|
|
75
75
|
"@use-gesture/react": "^10.3.0",
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"access": "public",
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cc2002a3386b66c7562f0975e5ecf5d54f178845",
|
|
92
92
|
"types": "es/index.d.ts"
|
|
93
93
|
}
|