@khanacademy/wonder-blocks-timing
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,2 +0,2 @@ | ||
import { createElement, Component } from 'react'; | ||
import { Component, createElement } from 'react'; | ||
@@ -566,3 +566,3 @@ function _classCallCheck(instance, Constructor) { | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_actionScheduler", new ActionScheduler()); | ||
_defineProperty(_assertThisInitialized(_this), "_actionScheduler", new ActionScheduler()); | ||
@@ -597,6 +597,6 @@ return _this; | ||
*/ | ||
function withActionScheduler(Component$$1) { | ||
function withActionScheduler(Component) { | ||
return function (props) { | ||
return createElement(ActionSchedulerProvider, null, function (schedule) { | ||
return createElement(Component$$1, _extends({}, props, { | ||
return createElement(Component, _extends({}, props, { | ||
schedule: schedule | ||
@@ -603,0 +603,0 @@ })); |
@@ -582,2 +582,4 @@ module.exports = | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -587,4 +589,2 @@ | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function action_scheduler_provider_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -623,3 +623,3 @@ | ||
action_scheduler_provider_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_actionScheduler", new action_scheduler_ActionScheduler()); | ||
action_scheduler_provider_defineProperty(_assertThisInitialized(_this), "_actionScheduler", new action_scheduler_ActionScheduler()); | ||
@@ -673,3 +673,3 @@ return _this; | ||
// CONCATENATED MODULE: ./packages/wonder-blocks-timing/index.js | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "withActionScheduler", function() { return with_action_scheduler; }); | ||
/* concated harmony reexport withActionScheduler */__webpack_require__.d(__webpack_exports__, "withActionScheduler", function() { return with_action_scheduler; }); | ||
@@ -676,0 +676,0 @@ |
@@ -75,3 +75,3 @@ // This file is auto-generated by gen-snapshot-tests.js | ||
<View> | ||
<View id={id} /> | ||
<View id={id}></View> | ||
</View> | ||
@@ -148,3 +148,3 @@ </View> | ||
<View> | ||
<View id={id} /> | ||
<View id={id}></View> | ||
</View> | ||
@@ -151,0 +151,0 @@ </View> |
{ | ||
"name": "@khanacademy/wonder-blocks-timing", | ||
"private": false, | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"design": "v1", | ||
@@ -20,6 +20,7 @@ "publishConfig": { | ||
"devDependencies": { | ||
"wb-dev-build-settings": "^0.0.2" | ||
"wb-dev-build-settings": "^0.0.3" | ||
}, | ||
"author": "", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "be0b1f6e2cd428289f5c3e54e6a2370de2019d27" | ||
} |
@@ -53,3 +53,3 @@ /* eslint-disable no-unused-vars */ | ||
* | ||
* $FlowExpectError | ||
* $ExpectError | ||
*/ | ||
@@ -79,5 +79,5 @@ const HOCComponent2: React.AbstractComponent<Props2> = withActionScheduler( | ||
* | ||
* $FlowExpectError | ||
* $ExpectError | ||
*/ | ||
InnerComponent3, | ||
); |
120046
24