Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@weprovide/react-link-renderer

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weprovide/react-link-renderer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

9

dist/index.d.ts

@@ -7,11 +7,12 @@ import React from "react";

}
interface LinkRendererProps {
export interface LinkRendererProps {
children: React.PropsWithChildren<React.ReactNode | React.ReactElement>;
url: string;
href: string;
target?: string;
rel?: string;
title?: string;
extraOptions?: object;
}
declare const LinkRendererProvider: ({ linkRenderer, children }: LinkRendererProviderProps) => JSX.Element;
declare const LinkRendererProvider: ({ linkRenderer: LinkRendererType, children }: LinkRendererProviderProps) => JSX.Element;
declare const Link: (props: LinkRendererProps) => JSX.Element;
export { Link, LinkRendererProvider };
export { Link as LinkRenderer, LinkRendererProvider };

@@ -1,4 +0,2 @@

import React from 'react';
/*! *****************************************************************************
import React from'react';/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

@@ -27,17 +25,3 @@

return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
var LinkRendererContext = React.createContext({});
};var LinkRendererContext = React.createContext({});
var LinkRendererProvider = function (_a) {

@@ -51,8 +35,3 @@ var LinkRendererType = _a.linkRenderer, children = _a.children;

var LinkComponent = linkRenderer !== null && linkRenderer !== void 0 ? linkRenderer : DefaultLinkRenderer;
var onClick = props.onClick, rest = __rest(props, ["onClick"]);
return (React.createElement("div", { onClick: onClick },
React.createElement(LinkComponent, __assign({}, rest))));
};
export { Link as LinkRenderer, LinkRendererProvider };
//# sourceMappingURL=index.es.js.map
return (React.createElement(LinkComponent, __assign({}, props)));
};export{Link as LinkRenderer,LinkRendererProvider};//# sourceMappingURL=index.es.js.map

@@ -1,12 +0,2 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
/*! *****************************************************************************
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var React=require('react');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var React__default=/*#__PURE__*/_interopDefaultLegacy(React);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

@@ -35,17 +25,3 @@

return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
var LinkRendererContext = React__default['default'].createContext({});
};var LinkRendererContext = React__default['default'].createContext({});
var LinkRendererProvider = function (_a) {

@@ -59,9 +35,3 @@ var LinkRendererType = _a.linkRenderer, children = _a.children;

var LinkComponent = linkRenderer !== null && linkRenderer !== void 0 ? linkRenderer : DefaultLinkRenderer;
var onClick = props.onClick, rest = __rest(props, ["onClick"]);
return (React__default['default'].createElement("div", { onClick: onClick },
React__default['default'].createElement(LinkComponent, __assign({}, rest))));
};
exports.LinkRenderer = Link;
exports.LinkRendererProvider = LinkRendererProvider;
//# sourceMappingURL=index.js.map
return (React__default['default'].createElement(LinkComponent, __assign({}, props)));
};exports.LinkRenderer=Link;exports.LinkRendererProvider=LinkRendererProvider;//# sourceMappingURL=index.js.map

@@ -13,3 +13,2 @@ import React from "react";

title?: string;
onClick?: React.MouseEventHandler;
extraOptions?: object;

@@ -16,0 +15,0 @@ }

{
"name": "@weprovide/react-link-renderer",
"version": "1.0.3",
"version": "1.0.4",
"author": "We Provide",

@@ -5,0 +5,0 @@ "contributors": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc