@khanacademy/wonder-blocks-icon-button
Advanced tools
Comparing version 4.0.5 to 4.0.6
# @khanacademy/wonder-blocks-icon-button | ||
## 4.0.6 | ||
### Patch Changes | ||
- c20f48f3: Don't transpile classes when building bundles | ||
- Updated dependencies [c20f48f3] | ||
- @khanacademy/wonder-blocks-clickable@3.0.6 | ||
- @khanacademy/wonder-blocks-core@5.0.4 | ||
- @khanacademy/wonder-blocks-icon@2.0.6 | ||
## 4.0.5 | ||
@@ -4,0 +14,0 @@ |
@@ -42,16 +42,2 @@ import * as React from 'react'; | ||
function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
const _excluded$1 = ["skipClientNav", "color", "disabled", "focused", "hovered", "href", "icon", "kind", "light", "pressed", "style", "testId", "waiting"]; | ||
@@ -61,9 +47,4 @@ const StyledAnchor = addStyle("a"); | ||
const StyledLink = addStyle(Link); | ||
let IconButtonCore = function (_React$Component) { | ||
_inheritsLoose(IconButtonCore, _React$Component); | ||
function IconButtonCore() { | ||
return _React$Component.apply(this, arguments) || this; | ||
} | ||
var _proto = IconButtonCore.prototype; | ||
_proto.renderInner = function renderInner(router) { | ||
class IconButtonCore extends React.Component { | ||
renderInner(router) { | ||
const _this$props = this.props, | ||
@@ -110,8 +91,7 @@ { | ||
} | ||
}; | ||
_proto.render = function render() { | ||
} | ||
render() { | ||
return React.createElement(__RouterContext.Consumer, null, router => this.renderInner(router)); | ||
}; | ||
return IconButtonCore; | ||
}(React.Component); | ||
} | ||
} | ||
const sharedStyles = StyleSheet.create({ | ||
@@ -198,9 +178,4 @@ shared: { | ||
const _excluded = ["onClick", "href", "skipClientNav", "tabIndex", "target"]; | ||
let IconButton = function (_React$Component) { | ||
_inheritsLoose(IconButton, _React$Component); | ||
function IconButton() { | ||
return _React$Component.apply(this, arguments) || this; | ||
} | ||
var _proto = IconButton.prototype; | ||
_proto.renderClickableBehavior = function renderClickableBehavior(router) { | ||
class IconButton extends React.Component { | ||
renderClickableBehavior(router) { | ||
const _this$props = this.props, | ||
@@ -231,8 +206,7 @@ { | ||
}); | ||
}; | ||
_proto.render = function render() { | ||
} | ||
render() { | ||
return React.createElement(__RouterContext.Consumer, null, router => this.renderClickableBehavior(router)); | ||
}; | ||
return IconButton; | ||
}(React.Component); | ||
} | ||
} | ||
IconButton.defaultProps = { | ||
@@ -239,0 +213,0 @@ color: "default", |
@@ -68,16 +68,2 @@ 'use strict'; | ||
function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
const _excluded$1 = ["skipClientNav", "color", "disabled", "focused", "hovered", "href", "icon", "kind", "light", "pressed", "style", "testId", "waiting"]; | ||
@@ -87,9 +73,4 @@ const StyledAnchor = wonderBlocksCore.addStyle("a"); | ||
const StyledLink = wonderBlocksCore.addStyle(reactRouterDom.Link); | ||
let IconButtonCore = function (_React$Component) { | ||
_inheritsLoose(IconButtonCore, _React$Component); | ||
function IconButtonCore() { | ||
return _React$Component.apply(this, arguments) || this; | ||
} | ||
var _proto = IconButtonCore.prototype; | ||
_proto.renderInner = function renderInner(router) { | ||
class IconButtonCore extends React__namespace.Component { | ||
renderInner(router) { | ||
const _this$props = this.props, | ||
@@ -136,8 +117,7 @@ { | ||
} | ||
}; | ||
_proto.render = function render() { | ||
} | ||
render() { | ||
return React__namespace.createElement(reactRouter.__RouterContext.Consumer, null, router => this.renderInner(router)); | ||
}; | ||
return IconButtonCore; | ||
}(React__namespace.Component); | ||
} | ||
} | ||
const sharedStyles = aphrodite.StyleSheet.create({ | ||
@@ -224,9 +204,4 @@ shared: { | ||
const _excluded = ["onClick", "href", "skipClientNav", "tabIndex", "target"]; | ||
let IconButton = function (_React$Component) { | ||
_inheritsLoose(IconButton, _React$Component); | ||
function IconButton() { | ||
return _React$Component.apply(this, arguments) || this; | ||
} | ||
var _proto = IconButton.prototype; | ||
_proto.renderClickableBehavior = function renderClickableBehavior(router) { | ||
class IconButton extends React__namespace.Component { | ||
renderClickableBehavior(router) { | ||
const _this$props = this.props, | ||
@@ -257,8 +232,7 @@ { | ||
}); | ||
}; | ||
_proto.render = function render() { | ||
} | ||
render() { | ||
return React__namespace.createElement(reactRouter.__RouterContext.Consumer, null, router => this.renderClickableBehavior(router)); | ||
}; | ||
return IconButton; | ||
}(React__namespace.Component); | ||
} | ||
} | ||
IconButton.defaultProps = { | ||
@@ -265,0 +239,0 @@ color: "default", |
{ | ||
"name": "@khanacademy/wonder-blocks-icon-button", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"design": "v1", | ||
@@ -19,6 +19,6 @@ "publishConfig": { | ||
"@babel/runtime": "^7.18.6", | ||
"@khanacademy/wonder-blocks-clickable": "^3.0.5", | ||
"@khanacademy/wonder-blocks-clickable": "^3.0.6", | ||
"@khanacademy/wonder-blocks-color": "^2.0.1", | ||
"@khanacademy/wonder-blocks-core": "^5.0.3", | ||
"@khanacademy/wonder-blocks-icon": "^2.0.5" | ||
"@khanacademy/wonder-blocks-core": "^5.0.4", | ||
"@khanacademy/wonder-blocks-icon": "^2.0.6" | ||
}, | ||
@@ -32,4 +32,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"wb-dev-build-settings": "^0.9.4" | ||
"wb-dev-build-settings": "^0.9.5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209349
1208