@react-email/section 0.0.4 → 0.0.7-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.js CHANGED
@@ -46,7 +46,7 @@ var Section = React.forwardRef(
46
46
  };
47
47
  const arrayChildren = React.Children.toArray(children);
48
48
  const hasTdElement = (child) => {
49
- return React.isValidElement(child) && child.type === "td";
49
+ return React.isValidElement(child) && (child.type === "td" || child.type.displayName === "Column");
50
50
  };
51
51
  const finalChildren = arrayChildren.map((child, index) => {
52
52
  return hasTdElement(child) ? child : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children: child }, index);
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var Section = React.forwardRef(
14
14
  };
15
15
  const arrayChildren = React.Children.toArray(children);
16
16
  const hasTdElement = (child) => {
17
- return React.isValidElement(child) && child.type === "td";
17
+ return React.isValidElement(child) && (child.type === "td" || child.type.displayName === "Column");
18
18
  };
19
19
  const finalChildren = arrayChildren.map((child, index) => {
20
20
  return hasTdElement(child) ? child : /* @__PURE__ */ jsx("td", { children: child }, index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/section",
3
- "version": "0.0.4",
3
+ "version": "0.0.7-canary.0",
4
4
  "description": "Display a section that can be formatted using columns",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "https://github.com/zenorocha/react-email.git",
25
+ "url": "https://github.com/resendlabs/react-email.git",
26
26
  "directory": "packages/section"
27
27
  },
28
28
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "email"
31
31
  ],
32
32
  "engines": {
33
- "node": ">=18.0.0"
33
+ "node": ">=16.0.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "react": "18.2.0"
@@ -52,4 +52,4 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  }
55
- }
55
+ }
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/zenorocha/react-email">GitHub</a>
9
+ <a href="https://github.com/resendlabs/react-email">GitHub</a>
10
10
  <span> · </span>
11
11
  <a href="https://react.email/discord">Discord</a>
12
12
  </div>