@react-email/tailwind 0.0.13 → 0.0.14-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.
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../src/tailwind.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,MAAM,IAAI,sBAAsB,EAAE,MAAM,aAAa,CAAC;AASpE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AA8GD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6E5C,CAAC"}
1
+ {"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../src/tailwind.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,IAAI,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAUpE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AA8GD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6E5C,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ /**
3
+ * This was originally written due to react making sync `react-dom/server` APIs
4
+ * legacy and making it almost impossible for this component to be used on NextJS 14
5
+ * but this also makes the Tailwind component faster due to the fact that it runs through
6
+ * the elements and directly converts props into attributes and element names into
7
+ * tag names.
8
+ *
9
+ * This also renders the components by calling them directly and then using their returned value
10
+ * to compute the rest of the HTML markup tree.
11
+ */
12
+ export declare const quickSafeRenderToString: (element: React.ReactNode) => string;
13
+ //# sourceMappingURL=quick-safe-render-to-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-safe-render-to-string.d.ts","sourceRoot":"","sources":["../../src/utils/quick-safe-render-to-string.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,SAAS,KAAG,MAmClE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=quick-safe-render-to-string.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-safe-render-to-string.spec.d.ts","sourceRoot":"","sources":["../../src/utils/quick-safe-render-to-string.spec.tsx"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/tailwind",
3
- "version": "0.0.13",
3
+ "version": "0.0.14-canary.0",
4
4
  "description": "A React component to wrap emails with Tailwind CSS",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -36,8 +36,7 @@
36
36
  "node": ">=18.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "react": "18.2.0",
40
- "react-dom": "18.2.0"
39
+ "react": "18.2.0"
41
40
  },
42
41
  "peerDependencies": {
43
42
  "react": "18.2.0"
@@ -52,6 +51,7 @@
52
51
  "postcss": "8.4.31",
53
52
  "postcss-css-variables": "0.19.0",
54
53
  "process": "^0.11.10",
54
+ "react-dom": "18.2.0",
55
55
  "tailwindcss": "3.3.2",
56
56
  "tsup": "7.2.0",
57
57
  "typescript": "5.1.6",
@@ -59,17 +59,18 @@
59
59
  "vite-plugin-dts": "3.6.3",
60
60
  "vite-plugin-node-polyfills": "0.17.0",
61
61
  "@react-email/button": "^0.0.13",
62
- "@react-email/hr": "0.0.7",
63
- "@react-email/head": "0.0.7",
64
62
  "@react-email/html": "0.0.7",
63
+ "@react-email/head": "0.0.7",
65
64
  "eslint-config-custom": "0.0.0",
66
- "tsconfig": "0.0.0"
65
+ "tsconfig": "0.0.0",
66
+ "@react-email/hr": "0.0.7"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsc && vite build",
73
+ "dev": "vite build --watch",
73
74
  "clean": "rm -rf dist",
74
75
  "lint": "eslint .",
75
76
  "test:watch": "vitest --config ../../vitest.config.ts",