@micromag/core 0.3.763 → 0.3.769
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/components.js +2 -2
- package/es/index.js +16 -8
- package/lib/components.js +4500 -0
- package/lib/contexts.js +1802 -0
- package/lib/hooks.js +2474 -0
- package/lib/index.js +2436 -0
- package/lib/utils.js +1255 -0
- package/package.json +10 -5
package/es/components.js
CHANGED
|
@@ -17,7 +17,7 @@ import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals,
|
|
|
17
17
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
18
18
|
import get from 'lodash/get';
|
|
19
19
|
import queryString from 'query-string';
|
|
20
|
-
import
|
|
20
|
+
import { createPortal } from 'react-dom';
|
|
21
21
|
import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
|
|
22
22
|
import { faAngleUp } from '@fortawesome/free-solid-svg-icons/faAngleUp';
|
|
23
23
|
import dayjs from 'dayjs';
|
|
@@ -1802,7 +1802,7 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
}, [finalId, data]);
|
|
1805
|
-
return container !== null ? /*#__PURE__*/
|
|
1805
|
+
return container !== null ? /*#__PURE__*/createPortal(children, container) : null;
|
|
1806
1806
|
};
|
|
1807
1807
|
ElementPortal.propTypes = propTypes$t;
|
|
1808
1808
|
ElementPortal.defaultProps = defaultProps$t;
|
package/es/index.js
CHANGED
|
@@ -2349,12 +2349,16 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
}, {
|
|
2351
2351
|
key: "trackEvent",
|
|
2352
|
-
value: function trackEvent(
|
|
2353
|
-
var
|
|
2352
|
+
value: function trackEvent() {
|
|
2353
|
+
var category = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2354
|
+
var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
2355
|
+
var label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
2356
|
+
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
2357
|
+
var _ref4 = opts || {},
|
|
2354
2358
|
_ref4$value = _ref4.value,
|
|
2355
2359
|
value = _ref4$value === void 0 ? null : _ref4$value,
|
|
2356
|
-
|
|
2357
|
-
var data = _objectSpread(_objectSpread({},
|
|
2360
|
+
otherOpts = _objectWithoutProperties(_ref4, _excluded);
|
|
2361
|
+
var data = _objectSpread(_objectSpread({}, otherOpts || null), {}, {
|
|
2358
2362
|
event: 'eventInteraction',
|
|
2359
2363
|
eventCategory: category,
|
|
2360
2364
|
eventAction: action,
|
|
@@ -2365,13 +2369,17 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
|
|
|
2365
2369
|
}
|
|
2366
2370
|
}, {
|
|
2367
2371
|
key: "trackMedia",
|
|
2368
|
-
value: function trackMedia(
|
|
2369
|
-
var
|
|
2372
|
+
value: function trackMedia() {
|
|
2373
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2374
|
+
var media = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
2375
|
+
var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
2376
|
+
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
2377
|
+
var _ref5 = opts || {},
|
|
2370
2378
|
_ref5$value = _ref5.value,
|
|
2371
2379
|
value = _ref5$value === void 0 ? null : _ref5$value,
|
|
2372
2380
|
_ref5$currentTime = _ref5.currentTime,
|
|
2373
2381
|
optsCurrentTime = _ref5$currentTime === void 0 ? null : _ref5$currentTime,
|
|
2374
|
-
|
|
2382
|
+
otherOpts = _objectWithoutProperties(_ref5, _excluded2);
|
|
2375
2383
|
var _ref6 = media || {},
|
|
2376
2384
|
_ref6$id = _ref6.id,
|
|
2377
2385
|
mediaId = _ref6$id === void 0 ? null : _ref6$id,
|
|
@@ -2388,7 +2396,7 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
|
|
|
2388
2396
|
var _ref7 = metadata || {},
|
|
2389
2397
|
_ref7$duration = _ref7.duration,
|
|
2390
2398
|
duration = _ref7$duration === void 0 ? rootDuration : _ref7$duration;
|
|
2391
|
-
var data = _objectSpread(_objectSpread({},
|
|
2399
|
+
var data = _objectSpread(_objectSpread({}, otherOpts || null), {}, {
|
|
2392
2400
|
event: 'eventInteraction',
|
|
2393
2401
|
eventCategory: type,
|
|
2394
2402
|
eventAction: action,
|