@micromag/core 0.3.180 → 0.3.184
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 +0 -2
- package/es/components.js +877 -1016
- package/es/hooks.js +3 -3
- package/es/utils.js +2 -2
- package/lib/components.js +876 -1018
- package/lib/hooks.js +3 -3
- package/lib/utils.js +2 -2
- package/package.json +2 -2
- package/scss/_placeholders.scss +0 -30
package/lib/hooks.js
CHANGED
|
@@ -330,7 +330,8 @@ function useDragProgress() {
|
|
|
330
330
|
}
|
|
331
331
|
}, [setDragState, disabled, onTap, computeProgress, setDragState, onProgress]);
|
|
332
332
|
var bind = react$1.useDrag(onDragContent, {
|
|
333
|
-
filterTaps: true
|
|
333
|
+
filterTaps: true,
|
|
334
|
+
preventDefault: true
|
|
334
335
|
});
|
|
335
336
|
var springedProgress = useSpringValue(progress, dragging || disabled, springParams);
|
|
336
337
|
react.useEffect(function () {
|
|
@@ -1508,8 +1509,7 @@ function useMediaLoad(element) {
|
|
|
1508
1509
|
var firstShouldLoadRef = react.useRef(shouldLoad);
|
|
1509
1510
|
var hasLoadedRef = react.useRef(preload !== 'none' && preload !== 'metadata' && shouldLoad);
|
|
1510
1511
|
react.useEffect(function () {
|
|
1511
|
-
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
1512
|
-
|
|
1512
|
+
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
1513
1513
|
var preloadHasChanged = firstPreloadRef.current !== preload;
|
|
1514
1514
|
var shouldLoadHasChanged = firstShouldLoadRef.current !== shouldLoad;
|
|
1515
1515
|
|
package/lib/utils.js
CHANGED
|
@@ -42,8 +42,8 @@ var convertStyleToString = function convertStyleToString(style) {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
45
|
-
// @
|
|
46
|
-
// we might want to add that to the npm deps and just use it
|
|
45
|
+
// @note vendoring this: https://github.com/feross/clipboard-copy/blob/master/index.js
|
|
46
|
+
// we might want to add that to the npm deps and just use it
|
|
47
47
|
function makeError() {
|
|
48
48
|
return new DOMException('The request is not allowed', 'NotAllowedError');
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.184",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"publishConfig": {
|
|
134
134
|
"access": "public"
|
|
135
135
|
},
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "c3a7e9c33338debc3ee2e2f37635ca66ad7c4c30"
|
|
137
137
|
}
|
package/scss/_placeholders.scss
CHANGED
|
@@ -306,33 +306,3 @@
|
|
|
306
306
|
outline-offset: 4px;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Work in progress:
|
|
312
|
-
* - trying to set up sensible defaults for animating UI elements
|
|
313
|
-
*/
|
|
314
|
-
%transition-bump {
|
|
315
|
-
transition: transform 0.3s $ease-in-bump;
|
|
316
|
-
}
|
|
317
|
-
%transition-bounce {
|
|
318
|
-
transition: transform 0.3s $ease-in-bounce;
|
|
319
|
-
}
|
|
320
|
-
%transition-kickback {
|
|
321
|
-
transition: transform 0.5s $ease-in-kickback;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
%hover-bump {
|
|
325
|
-
@extend %transition-kickback;
|
|
326
|
-
|
|
327
|
-
&:hover {
|
|
328
|
-
transform: scale(1.1);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
%active-bump {
|
|
333
|
-
@extend %transition-bounce;
|
|
334
|
-
|
|
335
|
-
&:active {
|
|
336
|
-
transform: scale(0.95);
|
|
337
|
-
}
|
|
338
|
-
}
|