@khanacademy/wonder-blocks-link
Advanced tools
Comparing version 3.0.3 to 3.0.4
// @flow | ||
import React from "react"; | ||
import * as React from "react"; | ||
import {StyleSheet} from "aphrodite"; | ||
@@ -22,4 +22,4 @@ import {Link} from "react-router-dom"; | ||
const StyledAnchor = addStyle("a"); | ||
const StyledLink = addStyle(Link); | ||
const StyledAnchor = addStyle<"a">("a"); | ||
const StyledLink = addStyle<typeof Link>(Link); | ||
@@ -26,0 +26,0 @@ export default class LinkCore extends React.Component<Props> { |
@@ -1,2 +0,2 @@ | ||
import React__default, { createElement, Component } from 'react'; | ||
import { createElement, Component } from 'react'; | ||
import { StyleSheet } from 'aphrodite'; | ||
@@ -208,5 +208,5 @@ import { Link } from 'react-router-dom'; | ||
return router && !skipClientNav ? React__default.createElement(StyledLink, _extends({}, commonProps, { | ||
return router && !skipClientNav ? createElement(StyledLink, _extends({}, commonProps, { | ||
to: href | ||
}), children) : React__default.createElement(StyledAnchor, _extends({}, commonProps, { | ||
}), children) : createElement(StyledAnchor, _extends({}, commonProps, { | ||
href: href | ||
@@ -218,3 +218,3 @@ }), children); | ||
return LinkCore; | ||
}(React__default.Component); | ||
}(Component); | ||
@@ -221,0 +221,0 @@ _defineProperty(LinkCore, "contextTypes", { |
@@ -133,3 +133,2 @@ module.exports = | ||
var external_react_ = __webpack_require__(1); | ||
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); | ||
@@ -231,5 +230,5 @@ // EXTERNAL MODULE: external "prop-types" | ||
return router && !skipClientNav ? external_react_default.a.createElement(StyledLink, _extends({}, commonProps, { | ||
return router && !skipClientNav ? external_react_["createElement"](StyledLink, _extends({}, commonProps, { | ||
to: href | ||
}), children) : external_react_default.a.createElement(StyledAnchor, _extends({}, commonProps, { | ||
}), children) : external_react_["createElement"](StyledAnchor, _extends({}, commonProps, { | ||
href: href | ||
@@ -241,3 +240,3 @@ }), children); | ||
return LinkCore; | ||
}(external_react_default.a.Component); | ||
}(external_react_["Component"]); | ||
@@ -244,0 +243,0 @@ _defineProperty(link_core_LinkCore, "contextTypes", { |
{ | ||
"name": "@khanacademy/wonder-blocks-link", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"design": "v1", | ||
@@ -18,4 +18,4 @@ "publishConfig": { | ||
"dependencies": { | ||
"@khanacademy/wonder-blocks-color": "^1.0.13", | ||
"@khanacademy/wonder-blocks-core": "^1.2.6" | ||
"@khanacademy/wonder-blocks-color": "^1.0.14", | ||
"@khanacademy/wonder-blocks-core": "^1.2.7" | ||
}, | ||
@@ -22,0 +22,0 @@ "peerDependencies": { |
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
65750
1085