@react-email/column 0.0.9 → 0.0.11-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,6 +2,6 @@ import * as React from 'react';
2
2
 
3
3
  type RootProps = React.ComponentPropsWithoutRef<"td">;
4
4
  type ColumnProps = RootProps;
5
- declare const Column: React.FC<Readonly<ColumnProps>>;
5
+ declare const Column: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">> & React.RefAttributes<HTMLTableDataCellElement>>;
6
6
 
7
7
  export { Column, ColumnProps };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,6 @@ import * as React from 'react';
2
2
 
3
3
  type RootProps = React.ComponentPropsWithoutRef<"td">;
4
4
  type ColumnProps = RootProps;
5
- declare const Column: React.FC<Readonly<ColumnProps>>;
5
+ declare const Column: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">> & React.RefAttributes<HTMLTableDataCellElement>>;
6
6
 
7
7
  export { Column, ColumnProps };
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
8
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
12
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -44,6 +46,14 @@ var __copyProps = (to, from, except, desc) => {
44
46
  }
45
47
  return to;
46
48
  };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
47
57
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
58
 
49
59
  // src/index.ts
@@ -54,17 +64,15 @@ __export(src_exports, {
54
64
  module.exports = __toCommonJS(src_exports);
55
65
 
56
66
  // src/column.tsx
67
+ var React = __toESM(require("react"));
57
68
  var import_jsx_runtime = require("react/jsx-runtime");
58
- var Column = (_a) => {
59
- var _b = _a, {
60
- children,
61
- style
62
- } = _b, props = __objRest(_b, [
63
- "children",
64
- "style"
65
- ]);
66
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", style, children }));
67
- };
69
+ var Column = React.forwardRef(
70
+ (_a, ref) => {
71
+ var _b = _a, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", ref, style, children }));
73
+ }
74
+ );
75
+ Column.displayName = "Column";
68
76
  // Annotate the CommonJS export names for ESM import in node:
69
77
  0 && (module.exports = {
70
78
  Column
package/dist/index.mjs CHANGED
@@ -31,17 +31,15 @@ var __objRest = (source, exclude) => {
31
31
  };
32
32
 
33
33
  // src/column.tsx
34
+ import * as React from "react";
34
35
  import { jsx } from "react/jsx-runtime";
35
- var Column = (_a) => {
36
- var _b = _a, {
37
- children,
38
- style
39
- } = _b, props = __objRest(_b, [
40
- "children",
41
- "style"
42
- ]);
43
- return /* @__PURE__ */ jsx("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", style, children }));
44
- };
36
+ var Column = React.forwardRef(
37
+ (_a, ref) => {
38
+ var _b = _a, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
39
+ return /* @__PURE__ */ jsx("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", ref, style, children }));
40
+ }
41
+ );
42
+ Column.displayName = "Column";
45
43
  export {
46
44
  Column
47
45
  };
package/license.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Bu Kinoshita and Zeno Rocha
1
+ Copyright 2024 Plus Five Five, Inc
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/column",
3
- "version": "0.0.9",
3
+ "version": "0.0.11-canary.0",
4
4
  "description": "Display a column that separates content areas vertically in your email",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "license": "MIT",
25
25
  "repository": {
26
26
  "type": "git",
27
- "url": "https://github.com/resendlabs/react-email.git",
27
+ "url": "https://github.com/resend/react-email.git",
28
28
  "directory": "packages/column"
29
29
  },
30
30
  "keywords": [
@@ -35,14 +35,14 @@
35
35
  "node": ">=18.0.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "react": "18.2.0"
38
+ "react": "^18.0 || ^19.0 || ^19.0.0-rc"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/preset-react": "7.22.5",
41
+ "@babel/preset-react": "7.23.3",
42
42
  "typescript": "5.1.6",
43
+ "@react-email/render": "0.0.17-canary.0",
43
44
  "tsconfig": "0.0.0",
44
- "eslint-config-custom": "0.0.0",
45
- "@react-email/render": "0.0.10"
45
+ "eslint-config-custom": "0.0.0"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
package/readme.md CHANGED
@@ -6,7 +6,7 @@
6
6
  <div align="center">
7
7
  <a href="https://react.email">Website</a>
8
8
  <span> · </span>
9
- <a href="https://github.com/resendlabs/react-email">GitHub</a>
9
+ <a href="https://github.com/resend/react-email">GitHub</a>
10
10
  <span> · </span>
11
11
  <a href="https://react.email/discord">Discord</a>
12
12
  </div>