@micromag/core 0.3.181 → 0.3.186
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 -3
- package/es/components.js +878 -1017
- package/es/hooks.js +3 -3
- package/es/utils.js +2 -2
- package/lib/components.js +877 -1019
- package/lib/hooks.js +3 -3
- package/lib/utils.js +2 -2
- package/package.json +2 -2
- package/scss/_placeholders.scss +0 -30
package/es/hooks.js
CHANGED
|
@@ -292,7 +292,8 @@ function useDragProgress() {
|
|
|
292
292
|
}
|
|
293
293
|
}, [setDragState, disabled, onTap, computeProgress, setDragState, onProgress]);
|
|
294
294
|
var bind = useDrag(onDragContent, {
|
|
295
|
-
filterTaps: true
|
|
295
|
+
filterTaps: true,
|
|
296
|
+
preventDefault: true
|
|
296
297
|
});
|
|
297
298
|
var springedProgress = useSpringValue(progress, dragging || disabled, springParams);
|
|
298
299
|
useEffect(function () {
|
|
@@ -1470,8 +1471,7 @@ function useMediaLoad(element) {
|
|
|
1470
1471
|
var firstShouldLoadRef = useRef(shouldLoad);
|
|
1471
1472
|
var hasLoadedRef = useRef(preload !== 'none' && preload !== 'metadata' && shouldLoad);
|
|
1472
1473
|
useEffect(function () {
|
|
1473
|
-
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
1474
|
-
|
|
1474
|
+
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
1475
1475
|
var preloadHasChanged = firstPreloadRef.current !== preload;
|
|
1476
1476
|
var shouldLoadHasChanged = firstShouldLoadRef.current !== shouldLoad;
|
|
1477
1477
|
|
package/es/utils.js
CHANGED
|
@@ -23,8 +23,8 @@ var convertStyleToString = function convertStyleToString(style) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
26
|
-
// @
|
|
27
|
-
// we might want to add that to the npm deps and just use it
|
|
26
|
+
// @note vendoring this: https://github.com/feross/clipboard-copy/blob/master/index.js
|
|
27
|
+
// we might want to add that to the npm deps and just use it
|
|
28
28
|
function makeError() {
|
|
29
29
|
return new DOMException('The request is not allowed', 'NotAllowedError');
|
|
30
30
|
}
|