@hyper-elements/react 0.0.0-stage → 0.3.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/package.json CHANGED
@@ -1,6 +1,143 @@
1
1
  {
2
2
  "name": "@hyper-elements/react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.3.0",
4
+ "description": "React components for transactional emails, landing pages, invoices and PDFs: email-safe HTML, responsive web HTML, and print-ready PDF HTML from one component tree.",
5
+ "license": "MIT",
6
+ "author": "Unlayer",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/hyper-elements/hyper-elements.git",
10
+ "directory": "packages/react"
11
+ },
12
+ "homepage": "https://github.com/hyper-elements/hyper-elements",
13
+ "keywords": [
14
+ "email",
15
+ "react-email",
16
+ "email-components",
17
+ "html-email",
18
+ "email-templates",
19
+ "react-components",
20
+ "email-builder",
21
+ "server-components",
22
+ "ssr",
23
+ "unlayer",
24
+ "transactional-email",
25
+ "invoice",
26
+ "pdf",
27
+ "landing-page",
28
+ "nextjs"
29
+ ],
30
+ "sideEffects": false,
31
+ "peerDependencies": {
32
+ "@react-pdf/renderer": "^4.9.0",
33
+ "@resvg/resvg-js": "^2.6.2",
34
+ "react": ">=18",
35
+ "react-dom": ">=18",
36
+ "satori": "^0.33.5"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "@react-pdf/renderer": {
40
+ "optional": true
41
+ },
42
+ "@resvg/resvg-js": {
43
+ "optional": true
44
+ },
45
+ "satori": {
46
+ "optional": true
47
+ }
48
+ },
49
+ "type": "module",
50
+ "main": "./dist/primitives.cjs",
51
+ "module": "./dist/primitives.js",
52
+ "exports": {
53
+ ".": {
54
+ "types": "./dist/primitives.d.ts",
55
+ "import": "./dist/primitives.js",
56
+ "require": "./dist/primitives.cjs"
57
+ },
58
+ "./builder": {
59
+ "types": "./dist/builder.d.ts",
60
+ "import": "./dist/builder.js",
61
+ "require": "./dist/builder.cjs"
62
+ },
63
+ "./pdf": {
64
+ "types": "./dist/pdf.d.ts",
65
+ "import": "./dist/pdf.js",
66
+ "require": "./dist/pdf.cjs"
67
+ },
68
+ "./image": {
69
+ "types": "./dist/image.d.ts",
70
+ "import": "./dist/image.js",
71
+ "require": "./dist/image.cjs"
72
+ },
73
+ "./package.json": "./package.json"
74
+ },
75
+ "typesVersions": {
76
+ "*": {
77
+ "builder": [
78
+ "./dist/builder.d.ts"
79
+ ],
80
+ "pdf": [
81
+ "./dist/pdf.d.ts"
82
+ ],
83
+ "image": [
84
+ "./dist/image.d.ts"
85
+ ]
86
+ }
87
+ },
88
+ "types": "./dist/primitives.d.ts",
89
+ "files": [
90
+ "dist/primitives.*",
91
+ "dist/builder.*",
92
+ "dist/pdf.*",
93
+ "dist/image.*",
94
+ "README.md",
95
+ "GUIDE.md",
96
+ "REFERENCE.md",
97
+ "LICENSE"
98
+ ],
99
+ "publishConfig": {
100
+ "access": "public"
101
+ },
102
+ "devDependencies": {
103
+ "@react-pdf/renderer": "4.9.0",
104
+ "@resvg/resvg-js": "2.6.2",
105
+ "@storybook/addon-docs": "^9.1.1",
106
+ "@storybook/addon-onboarding": "^9.1.1",
107
+ "@storybook/react-vite": "^9.1.1",
108
+ "@storybook/test-runner": "0.23.0",
109
+ "@types/node": "^24.9.1",
110
+ "@types/react": "^18.3.3",
111
+ "@types/react-dom": "^18.3.0",
112
+ "@vitejs/plugin-react": "^4.2.0",
113
+ "@vitest/coverage-v8": "^3.2.4",
114
+ "concurrently": "9.2.1",
115
+ "http-server": "14.1.1",
116
+ "jsdom": "^24.1.3",
117
+ "pdfjs-dist": "6.5.438",
118
+ "playwright": "1.60.0",
119
+ "react-dom19": "npm:react-dom@19.1.0",
120
+ "react19": "npm:react@19.1.0",
121
+ "satori": "0.33.5",
122
+ "storybook": "^9.1.1",
123
+ "tsup": "^8.0.1",
124
+ "vitest": "^3.2.4",
125
+ "wait-on": "9.0.10",
126
+ "@unlayer-internal/elements-core": "0.0.0"
127
+ },
128
+ "scripts": {
129
+ "build": "tsup",
130
+ "typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
131
+ "storybook": "storybook dev -p 6006",
132
+ "build-storybook": "storybook build",
133
+ "test": "vitest",
134
+ "test:coverage": "vitest --coverage",
135
+ "test:browser": "vitest run --config vitest.browser.config.ts",
136
+ "test:browser-runtime": "node scripts/browser-runtime-probe.mjs",
137
+ "test:csp": "node --disallow-code-generation-from-strings scripts/csp-probe.mjs",
138
+ "test:e2e": "node scripts/browser-e2e.mjs",
139
+ "test:visual": "node scripts/storybook-visual.mjs",
140
+ "test-storybook": "test-storybook",
141
+ "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm build-storybook --quiet && http-server storybook-static --port 6006 --silent\" \"wait-on tcp:127.0.0.1:6006 && pnpm test-storybook\""
142
+ }
6
143
  }