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

@react-email/link

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-email/link - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9-canary.0

2

dist/index.d.ts

@@ -5,4 +5,4 @@ import * as React from 'react';

type LinkProps = RootProps;
declare const Link: React.FC<Readonly<LinkProps>>;
declare const Link: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">> & React.RefAttributes<HTMLAnchorElement>>;
export { Link, LinkProps };
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;

@@ -8,2 +9,3 @@ var __defProps = Object.defineProperties;

var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -48,2 +50,10 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable;

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -59,14 +69,10 @@

// src/link.tsx
var React = __toESM(require("react"));
var import_jsx_runtime = require("react/jsx-runtime");
var Link = (_a) => {
var _b = _a, {
target = "_blank",
style
} = _b, props = __objRest(_b, [
"target",
"style"
]);
var Link = React.forwardRef((_a, ref) => {
var _b = _a, { target = "_blank", style } = _b, props = __objRest(_b, ["target", "style"]);
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"a",
__spreadProps(__spreadValues({}, props), {
ref,
style: __spreadValues({

@@ -80,3 +86,4 @@ color: "#067df7",

);
};
});
Link.displayName = "Link";
// Annotate the CommonJS export names for ESM import in node:

@@ -83,0 +90,0 @@ 0 && (module.exports = {

{
"name": "@react-email/link",
"version": "0.0.8",
"version": "0.0.9-canary.0",
"description": "A hyperlink to web pages, email addresses, or anything else a URL can address",

@@ -38,3 +38,3 @@ "sideEffects": false,

"peerDependencies": {
"react": "^18.2.0"
"react": "^18.0 || ^19.0 || ^19.0.0-rc"
},

@@ -44,3 +44,3 @@ "devDependencies": {

"typescript": "5.1.6",
"@react-email/render": "0.0.13",
"@react-email/render": "0.0.17-canary.0",
"eslint-config-custom": "0.0.0",

@@ -47,0 +47,0 @@ "tsconfig": "0.0.0"

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