@lskjs/link
Advanced tools
Comparing version 1.1.10 to 1.1.13
@@ -30,3 +30,3 @@ "use strict"; | ||
var _LinkContext = _interopRequireDefault(require("./LinkContext")); | ||
var _Link = _interopRequireDefault(require("./Link.context")); | ||
@@ -51,3 +51,3 @@ var getUapp = function getUapp() { | ||
props = (0, _objectWithoutProperties2["default"])(_ref, ["componentClass", "to", "href", "qs", "target", "children", "onClick"]); | ||
var ctx = (0, _react.useContext)(_LinkContext["default"]); | ||
var ctx = (0, _react.useContext)(_Link["default"]); | ||
var url = (0, _composeUrl["default"])({ | ||
@@ -104,3 +104,3 @@ url: to || href, | ||
exports["default"] = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9MaW5rLmpzeCJdLCJuYW1lcyI6WyJnZXRVYXBwIiwid2luZG93IiwiYXBwIiwidWFwcCIsIkxpbmsiLCJjb21wb25lbnRDbGFzcyIsIkNvbXBvbmVudCIsInRvIiwiaHJlZiIsInFzIiwidGFyZ2V0IiwiY2hpbGRyZW4iLCJvbkNsaWNrIiwicHJvcHMiLCJjdHgiLCJMaW5rQ29udGV4dCIsInVybCIsImhhbmRsZUNsaWNrIiwiZSIsImRlZmF1bHRQcmV2ZW50ZWQiLCJwcmV2ZW50RGVmYXVsdCIsInJlZGlyZWN0IiwiX19ERVZfXyIsImNvbnNvbGUiLCJkZWJ1ZyIsImVycm9yIiwibG9jYXRpb24iLCJwcm9wVHlwZXMiLCJQcm9wVHlwZXMiLCJzdHJpbmciLCJub2RlIiwiZnVuYyIsIm9iamVjdE9mIiwiT2JqZWN0IiwiZGVmYXVsdFByb3BzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFFQSxJQUFNQSxPQUFPLEdBQUcsU0FBVkEsT0FBVSxHQUFNO0FB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Y2hpbGRyZW59XG4gICAgPC9Db21wb25lbnQ+XG4gICk7XG59O1xuXG5MaW5rLnByb3BUeXBlcyA9IHtcbiAgaHJlZjogUHJvcFR5cGVzLnN0cmluZyxcbiAgY2hpbGRyZW46IFByb3BUeXBlcy5ub2RlLFxuICBvbkNsaWNrOiBQcm9wVHlwZXMuZnVuYyxcbiAgdGFyZ2V0OiBQcm9wVHlwZXMuc3RyaW5nLFxuICB0bzogUHJvcFR5cGVzLnN0cmluZyxcbiAgcXM6IFByb3BUeXBlcy5vYmplY3RPZihPYmplY3QpLFxufTtcblxuTGluay5kZWZhdWx0UHJvcHMgPSB7XG4gIGNoaWxkcmVuOiBudWxsLFxuICBvbkNsaWNrOiBudWxsLFxuICB0YXJnZXQ6IG51bGwsXG4gIGhyZWY6IG51bGwsXG4gIHRvOiBudWxsLFxuICBxczoge30sXG59O1xuXG5leHBvcnQgZGVmYXVsdCBMaW5rO1xuIl19 | ||
//# sourceMappingURL=Link.js.map |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _LinkContext = _interopRequireDefault(require("./LinkContext")); | ||
var _Link = _interopRequireDefault(require("./Link.context")); | ||
@@ -20,3 +20,3 @@ var LinkProvider = function LinkProvider(_ref) { | ||
onClick = _ref.onClick; | ||
return _react["default"].createElement(_LinkContext["default"].Provider, { | ||
return _react["default"].createElement(_Link["default"].Provider, { | ||
value: { | ||
@@ -34,3 +34,3 @@ onClick: onClick | ||
exports["default"] = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9MaW5rUHJvdmlkZXIuanN4Il0sIm5hbWVzIjpbIkxpbmtQcm92aWRlciIsImNoaWxkcmVuIiwib25DbGljayIsInByb3BUeXBlcyIsIlByb3BUeXBlcyIsImZ1bmMiLCJpc1JlcXVpcmVkIiwib25lT2ZUeXBlIiwiYXJyYXlPZiIsIm5vZGUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs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ELENBQXpCO2VBS2VOLFkiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCBMaW5rQ29udGV4dCBmcm9tICcuL0xpbmsuY29udGV4dCc7XG5cbmNvbnN0IExpbmtQcm92aWRlciA9ICh7IGNoaWxkcmVuLCBvbkNsaWNrIH0pID0+IChcbiAgPExpbmtDb250ZXh0LlByb3ZpZGVyIHZhbHVlPXt7IG9uQ2xpY2sgfX0+XG4gICAgPD57Y2hpbGRyZW59PC8+XG4gIDwvTGlua0NvbnRleHQuUHJvdmlkZXI+XG4pO1xuXG5MaW5rUHJvdmlkZXIucHJvcFR5cGVzID0ge1xuICBvbkNsaWNrOiBQcm9wVHlwZXMuZnVuYy5pc1JlcXVpcmVkLFxuICBjaGlsZHJlbjogUHJvcFR5cGVzLm9uZU9mVHlwZShbUHJvcFR5cGVzLmFycmF5T2YoUHJvcFR5cGVzLm5vZGUpLCBQcm9wVHlwZXMubm9kZV0pLmlzUmVxdWlyZWQsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBMaW5rUHJvdmlkZXI7XG4iXX0= | ||
//# sourceMappingURL=LinkProvider.js.map |
{ | ||
"name": "@lskjs/link", | ||
"version": "1.1.10", | ||
"version": "1.1.13", | ||
"description": "LSK ux subrepo: link", | ||
@@ -5,0 +5,0 @@ "author": "Igor Suvorov <hi@isuvorov.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36330
14
279