@maily-to/core 2.0.0-beta.7 → 2.0.0-beta.8

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.
Files changed (48) hide show
  1. package/dist/blocks/index.cjs +8 -1
  2. package/dist/blocks/index.d.cts +1 -38
  3. package/dist/blocks/index.d.mts +14 -6
  4. package/dist/blocks/index.d.mts.map +1 -1
  5. package/dist/blocks/index.mjs +2 -2
  6. package/dist/extensions/index.cjs +252 -303
  7. package/dist/extensions/index.d.cts +1 -379
  8. package/dist/extensions/index.d.mts +127 -224
  9. package/dist/extensions/index.d.mts.map +1 -1
  10. package/dist/extensions/index.mjs +238 -271
  11. package/dist/index.cjs +4423 -12618
  12. package/dist/index.d.cts +1 -165
  13. package/dist/index.d.mts +701 -121
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +8460 -11567
  16. package/dist/{slash-command-BmWRVPbv.d.mts → slash-command-BrwA1bHs.d.mts} +10 -11
  17. package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
  18. package/dist/theme-D1CI7_8s.d.mts +70 -0
  19. package/dist/theme-D1CI7_8s.d.mts.map +1 -0
  20. package/dist/typography-BdOKvXfQ.mjs +911 -0
  21. package/dist/typography-D-VnwOSw.cjs +970 -0
  22. package/dist/typography-DW7VApAR.cjs +1072 -0
  23. package/dist/use-maily-editor-BP6Mt8Nn.cjs +3991 -0
  24. package/dist/use-maily-editor-DFuhg38t.cjs +4939 -0
  25. package/dist/use-maily-editor-xVILP7H8.mjs +4488 -0
  26. package/package.json +82 -74
  27. package/readme.md +169 -128
  28. package/src/styles/index.css +2537 -0
  29. package/dist/blocks/index.d.cts.map +0 -1
  30. package/dist/chunk-CfYAbeIz.mjs +0 -13
  31. package/dist/extensions/index.d.cts.map +0 -1
  32. package/dist/extensions/index.mjs.map +0 -1
  33. package/dist/index.css +0 -2312
  34. package/dist/index.d.cts.map +0 -1
  35. package/dist/index.mjs.map +0 -1
  36. package/dist/slash-command-BmWRVPbv.d.mts.map +0 -1
  37. package/dist/slash-command-CK0-1FwR.d.cts +0 -39
  38. package/dist/slash-command-CK0-1FwR.d.cts.map +0 -1
  39. package/dist/spacer-DBtsr3hu.cjs +0 -5768
  40. package/dist/spacer-DzZWX-wB.mjs +0 -5456
  41. package/dist/spacer-DzZWX-wB.mjs.map +0 -1
  42. package/dist/typography-CWL13acR.cjs +0 -400
  43. package/dist/typography-DhrUe809.mjs +0 -282
  44. package/dist/typography-DhrUe809.mjs.map +0 -1
  45. package/dist/variable-C9S9ZoHv.d.cts +0 -108
  46. package/dist/variable-C9S9ZoHv.d.cts.map +0 -1
  47. package/dist/variable-DVwGrg2a.d.mts +0 -108
  48. package/dist/variable-DVwGrg2a.d.mts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.8",
4
4
  "private": false,
5
5
  "description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
6
6
  "keywords": [
@@ -17,13 +17,19 @@
17
17
  "directory": "packages/core"
18
18
  },
19
19
  "files": [
20
- "dist/**"
20
+ "dist/**",
21
+ "src/styles/index.css"
21
22
  ],
22
23
  "type": "module",
23
- "sideEffects": false,
24
+ "sideEffects": [
25
+ "**/*.css"
26
+ ],
24
27
  "main": "./dist/index.cjs",
25
28
  "module": "./dist/index.mjs",
26
- "types": "./dist/index.d.cts",
29
+ "types": "./dist/index.d.mts",
30
+ "imports": {
31
+ "#test-utils": "./tests/utils.tsx"
32
+ },
27
33
  "exports": {
28
34
  ".": {
29
35
  "import": "./dist/index.mjs",
@@ -38,93 +44,95 @@
38
44
  "require": "./dist/extensions/index.cjs"
39
45
  },
40
46
  "./package.json": "./package.json",
41
- "./style.css": "./dist/index.css"
47
+ "./style.css": "./src/styles/index.css"
42
48
  },
43
49
  "publishConfig": {
44
50
  "access": "public"
45
51
  },
46
52
  "dependencies": {
47
- "@base-ui/react": "1.0.0",
48
- "@floating-ui/react": "^0.27.19",
49
- "@floating-ui/utils": "^0.2.11",
50
- "@tiptap/core": "^3.22.3",
51
- "@tiptap/extension-blockquote": "^3.22.3",
52
- "@tiptap/extension-bold": "^3.22.3",
53
- "@tiptap/extension-bubble-menu": "^3.22.3",
54
- "@tiptap/extension-code": "^3.22.3",
55
- "@tiptap/extension-code-block-lowlight": "^3.22.3",
56
- "@tiptap/extension-collaboration": "^3.22.3",
57
- "@tiptap/extension-document": "^3.22.3",
58
- "@tiptap/extension-file-handler": "^3.22.3",
59
- "@tiptap/extension-hard-break": "^3.22.3",
60
- "@tiptap/extension-heading": "^3.22.3",
61
- "@tiptap/extension-highlight": "^3.22.3",
62
- "@tiptap/extension-horizontal-rule": "^3.22.3",
63
- "@tiptap/extension-image": "^3.22.3",
64
- "@tiptap/extension-italic": "^3.22.3",
65
- "@tiptap/extension-link": "^3.22.3",
66
- "@tiptap/extension-list": "^3.22.3",
67
- "@tiptap/extension-node-range": "^3.22.3",
68
- "@tiptap/extension-paragraph": "^3.22.3",
69
- "@tiptap/extension-strike": "^3.22.3",
70
- "@tiptap/extension-table": "^3.22.3",
71
- "@tiptap/extension-text": "^3.22.3",
72
- "@tiptap/extension-text-align": "^3.22.3",
73
- "@tiptap/extension-text-style": "^3.22.3",
74
- "@tiptap/extension-typography": "^3.22.3",
75
- "@tiptap/extension-underline": "^3.22.3",
76
- "@tiptap/extension-unique-id": "^3.22.3",
77
- "@tiptap/extensions": "^3.22.3",
78
- "@tiptap/pm": "^3.22.3",
79
- "@tiptap/react": "^3.22.3",
80
- "@tiptap/suggestion": "^3.22.3",
81
- "@tiptap/y-tiptap": "^3.0.3",
82
- "@vitejs/plugin-react": "^6.0.1",
83
- "class-variance-authority": "^0.7.1",
84
- "clsx": "^2.1.1",
53
+ "@base-ui/react": "1.6.0",
54
+ "@base-ui/utils": "0.3.1",
55
+ "@floating-ui/react": "^0.27.20",
56
+ "@floating-ui/utils": "^0.2.12",
57
+ "@tiptap/extension-blockquote": "^3.29.2",
58
+ "@tiptap/extension-bold": "^3.29.2",
59
+ "@tiptap/extension-code": "^3.29.2",
60
+ "@tiptap/extension-code-block-lowlight": "^3.29.2",
61
+ "@tiptap/extension-document": "^3.29.2",
62
+ "@tiptap/extension-drag-handle": "^3.29.2",
63
+ "@tiptap/extension-drag-handle-react": "^3.29.2",
64
+ "@tiptap/extension-file-handler": "^3.29.2",
65
+ "@tiptap/extension-hard-break": "^3.29.2",
66
+ "@tiptap/extension-heading": "^3.29.2",
67
+ "@tiptap/extension-highlight": "^3.29.2",
68
+ "@tiptap/extension-horizontal-rule": "^3.29.2",
69
+ "@tiptap/extension-image": "^3.29.2",
70
+ "@tiptap/extension-italic": "^3.29.2",
71
+ "@tiptap/extension-link": "^3.29.2",
72
+ "@tiptap/extension-list": "^3.29.2",
73
+ "@tiptap/extension-paragraph": "^3.29.2",
74
+ "@tiptap/extension-strike": "^3.29.2",
75
+ "@tiptap/extension-table": "^3.29.2",
76
+ "@tiptap/extension-text": "^3.29.2",
77
+ "@tiptap/extension-text-style": "^3.29.2",
78
+ "@tiptap/extension-typography": "^3.29.2",
79
+ "@tiptap/extension-underline": "^3.29.2",
80
+ "@tiptap/extension-unique-id": "^3.29.2",
81
+ "@tiptap/extensions": "^3.29.2",
82
+ "@tiptap/suggestion": "^3.29.2",
83
+ "@vitejs/plugin-react": "^6.1.1",
84
+ "cromia": "^0.0.1",
85
85
  "highlight.js": "^11.11.1",
86
86
  "lowlight": "^3.3.0",
87
- "lucide-react": "^1.8.0",
88
- "stylecast": "^0.0.6",
89
- "tailwind-merge": "^3.5.0",
90
- "y-protocols": "^1.0.7",
91
- "yjs": "^13.6.30",
92
- "zustand": "^5.0.12",
93
- "@maily-to/migration": "2.0.0-beta.7",
94
- "@maily-to/shared": "2.0.0-beta.7",
95
- "@maily-to/ui": "2.0.0-beta.7"
87
+ "lucide-react": "^1.28.0",
88
+ "unit-field": "^0.0.3",
89
+ "zustand": "^5.0.14",
90
+ "@maily-to/shared": "2.0.0-beta.8"
96
91
  },
97
92
  "devDependencies": {
98
- "@rolldown/plugin-babel": "^0.2.2",
99
- "@tailwindcss/cli": "^4.2.2",
100
- "@tailwindcss/typography": "^0.5.19",
101
- "@types/react": "^19.2.14",
102
- "babel-plugin-react-compiler": "19.1.0-rc.3",
103
- "bumpp": "^11.0.1",
104
- "tailwindcss": "^4.2.2",
105
- "typescript": "^6.0.2",
106
- "vite-plus": "latest",
107
- "@maily-to/extension-drag-handle": "0.0.1",
93
+ "@react-email/components": "^1.0.12",
94
+ "@react-email/render": "^2.1.0",
95
+ "@testing-library/react": "^16.3.3",
96
+ "@tiptap/core": "^3.29.2",
97
+ "@tiptap/extension-collaboration": "^3.30.5",
98
+ "@tiptap/pm": "^3.29.2",
99
+ "@tiptap/react": "^3.29.2",
100
+ "@tiptap/y-tiptap": "^3.0.10",
101
+ "@types/react": "^19.2.18",
102
+ "@vitest/browser-playwright": "4.1.11",
103
+ "bumpp": "^12.1.1",
104
+ "oxc-transform-react": "0.145.0",
105
+ "playwright": "^1.62.1",
106
+ "react-dom": "^19.2.8",
107
+ "typescript": "^7.0.2",
108
+ "vite-plus": "0.3.0",
109
+ "yjs": "^13.6.33",
108
110
  "@maily-to/extension-ai-actions": "0.0.1",
111
+ "@maily-to/extension-inline-suggestion": "0.0.1",
109
112
  "@maily-to/extension-variable": "0.0.1",
110
- "@maily-to/tsconfig": "0.0.0",
111
- "@maily-to/extension-inline-suggestion": "0.0.1"
113
+ "@maily-to/render": "2.0.0-beta.8",
114
+ "@maily-to/tsconfig": "0.0.0"
112
115
  },
113
116
  "peerDependencies": {
114
- "react": "^19.2.5"
117
+ "@tiptap/core": "^3.29.2",
118
+ "@tiptap/pm": "^3.29.2",
119
+ "@tiptap/react": "^3.29.2",
120
+ "react": "^19.2.8",
121
+ "yjs": "^13.6.0"
115
122
  },
116
- "inlinedDependencies": {
117
- "@floating-ui/core": "1.7.5",
118
- "@floating-ui/dom": "1.7.6"
123
+ "peerDependenciesMeta": {
124
+ "yjs": {
125
+ "optional": true
126
+ }
119
127
  },
120
128
  "scripts": {
121
- "build": "pnpm run clean && pnpm run build:style && pnpm run build:lib",
129
+ "bench": "vp test bench --run",
130
+ "build": "vp run clean && vp run build:lib",
122
131
  "build:lib": "vp pack",
123
- "build:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css",
124
132
  "clean": "rm -rf dist",
125
- "dev": "pnpm --filter @maily-to/core --parallel \"/^dev:.*/\"",
126
- "dev:lib": "vp pack --watch",
127
- "dev:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css --watch",
128
- "release": "bumpp"
133
+ "dev": "vp pack --watch --no-clean",
134
+ "release": "bumpp",
135
+ "test": "vp test run",
136
+ "test:watch": "vp test"
129
137
  }
130
138
  }