@micromag/core 0.3.628 → 0.3.637
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/contexts.js +9 -4
- package/package.json +2 -2
package/es/contexts.js
CHANGED
|
@@ -1182,15 +1182,18 @@ var useTracking = function useTracking() {
|
|
|
1182
1182
|
var propTypes$2 = {
|
|
1183
1183
|
children: PropTypes.node.isRequired,
|
|
1184
1184
|
variables: PropTypes$1.trackingVariables,
|
|
1185
|
-
disabled: PropTypes.bool
|
|
1185
|
+
disabled: PropTypes.bool,
|
|
1186
|
+
paused: PropTypes.bool
|
|
1186
1187
|
};
|
|
1187
1188
|
var defaultProps$2 = {
|
|
1188
1189
|
variables: null,
|
|
1189
|
-
disabled: false
|
|
1190
|
+
disabled: false,
|
|
1191
|
+
paused: false
|
|
1190
1192
|
};
|
|
1191
1193
|
var TrackingProvider = function TrackingProvider(_ref) {
|
|
1192
1194
|
var variables = _ref.variables,
|
|
1193
1195
|
disabled = _ref.disabled,
|
|
1196
|
+
paused = _ref.paused,
|
|
1194
1197
|
children = _ref.children;
|
|
1195
1198
|
var contextTracking = useTracking() || null;
|
|
1196
1199
|
var refTracking = useRef(null);
|
|
@@ -1198,14 +1201,16 @@ var TrackingProvider = function TrackingProvider(_ref) {
|
|
|
1198
1201
|
if (refTracking.current === null) {
|
|
1199
1202
|
refTracking.current = new Tracking({
|
|
1200
1203
|
variables: _objectSpread(_objectSpread({}, contextTracking !== null ? contextTracking.getVariables() : null), variables),
|
|
1201
|
-
disabled: disabled
|
|
1204
|
+
disabled: disabled,
|
|
1205
|
+
paused: paused
|
|
1202
1206
|
});
|
|
1203
1207
|
} else {
|
|
1204
1208
|
refTracking.current.setVariables(_objectSpread(_objectSpread({}, refTracking.current.getVariables()), variables));
|
|
1205
1209
|
refTracking.current.setDisabled(disabled);
|
|
1210
|
+
refTracking.current.setPaused(paused);
|
|
1206
1211
|
}
|
|
1207
1212
|
return refTracking.current;
|
|
1208
|
-
}, [contextTracking, variables, disabled]);
|
|
1213
|
+
}, [contextTracking, variables, disabled, paused]);
|
|
1209
1214
|
return /*#__PURE__*/React.createElement(TrackingContainer, {
|
|
1210
1215
|
tracking: tracking
|
|
1211
1216
|
}, children);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.637",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"access": "public",
|
|
145
145
|
"registry": "https://registry.npmjs.org/"
|
|
146
146
|
},
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "8f06c2a525d71dc47183af7786284632a04332e1"
|
|
148
148
|
}
|