@react-email/html
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -6,4 +6,4 @@ import * as React from 'react'; | ||
} | ||
declare const Html: React.FC<Readonly<HtmlProps>>; | ||
declare const Html: React.ForwardRefExoticComponent<Readonly<HtmlProps> & React.RefAttributes<HTMLHtmlElement>>; | ||
export { Html, HtmlProps }; |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -18,2 +20,6 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -29,8 +35,7 @@ | ||
// src/html.tsx | ||
var React = __toESM(require("react")); | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
var Html = ({ | ||
children, | ||
lang = "en", | ||
...props | ||
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("html", { lang, ...props, children }); | ||
var Html = React.forwardRef( | ||
({ children, lang = "en", ...props }, forwardedRef) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("html", { ref: forwardedRef, lang, ...props, children }) | ||
); | ||
Html.displayName = "Html"; | ||
@@ -37,0 +42,0 @@ // Annotate the CommonJS export names for ESM import in node: |
{ | ||
"name": "@react-email/html", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A React html component to wrap emails", | ||
@@ -18,2 +18,3 @@ "sideEffects": false, | ||
"clean": "rm -rf dist", | ||
"test": "jest", | ||
"format:check": "prettier --ignore-path ./../../.prettierignore --check \"**/*.{ts,tsx,md}\"", | ||
@@ -24,3 +25,3 @@ "format": "prettier --ignore-path ./../../.prettierignore --write \"**/*.{ts,tsx,md}\"" | ||
"type": "git", | ||
"url": "https://github.com/zenorocha/react-email.git", | ||
"url": "https://github.com/resendlabs/react-email.git", | ||
"directory": "packages/html" | ||
@@ -33,10 +34,15 @@ }, | ||
"engines": { | ||
"node": ">=18.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "7.18.6", | ||
"@react-email/render": "*", | ||
"@types/react": "18.0.20", | ||
"@types/react-dom": "18.0.6", | ||
"babel-jest": "28.1.3", | ||
"eslint": "8.23.1", | ||
"eslint-config-custom": "*", | ||
"react": "18.2.0", | ||
"jest": "28.1.3", | ||
"ts-jest": "28.0.8", | ||
"tsconfig": "*", | ||
@@ -49,2 +55,2 @@ "tsup": "6.2.3", | ||
} | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
7655
57
13
1
12
0
0
0
7