@maily-to/core 0.3.7 → 2.0.0-beta.10

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 (40) hide show
  1. package/LICENSE +21 -0
  2. package/dist/blocks/index.cjs +29 -305
  3. package/dist/blocks/index.d.cts +1 -59
  4. package/dist/blocks/index.d.mts +46 -0
  5. package/dist/blocks/index.d.mts.map +1 -0
  6. package/dist/blocks/index.mjs +2 -273
  7. package/dist/extensions/index.cjs +354 -9100
  8. package/dist/extensions/index.d.cts +1 -448
  9. package/dist/extensions/index.d.mts +282 -0
  10. package/dist/extensions/index.d.mts.map +1 -0
  11. package/dist/extensions/index.mjs +322 -9052
  12. package/dist/index.cjs +10225 -12221
  13. package/dist/index.d.cts +1 -63
  14. package/dist/index.d.mts +743 -0
  15. package/dist/index.d.mts.map +1 -0
  16. package/dist/index.mjs +10103 -12273
  17. package/dist/slash-command-BrwA1bHs.d.mts +38 -0
  18. package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
  19. package/dist/theme-D1CI7_8s.d.mts +70 -0
  20. package/dist/theme-D1CI7_8s.d.mts.map +1 -0
  21. package/dist/typography-BdOKvXfQ.mjs +911 -0
  22. package/dist/typography-D-VnwOSw.cjs +970 -0
  23. package/dist/typography-DW7VApAR.cjs +1072 -0
  24. package/dist/use-maily-editor-Atvy2kSO.cjs +3993 -0
  25. package/dist/use-maily-editor-CByaDhmT.cjs +4955 -0
  26. package/dist/use-maily-editor-idL0RNsG.mjs +4504 -0
  27. package/package.json +115 -180
  28. package/readme.md +356 -195
  29. package/src/styles/index.css +2537 -0
  30. package/dist/blocks/index.cjs.map +0 -1
  31. package/dist/blocks/index.d.ts +0 -59
  32. package/dist/blocks/index.mjs.map +0 -1
  33. package/dist/extensions/index.cjs.map +0 -1
  34. package/dist/extensions/index.d.ts +0 -448
  35. package/dist/extensions/index.mjs.map +0 -1
  36. package/dist/index.cjs.map +0 -1
  37. package/dist/index.css +0 -2487
  38. package/dist/index.css.map +0 -1
  39. package/dist/index.d.ts +0 -63
  40. package/dist/index.mjs.map +0 -1
package/package.json CHANGED
@@ -1,203 +1,138 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "type": "module",
4
- "version": "0.3.7",
5
- "description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
3
+ "version": "2.0.0-beta.10",
6
4
  "private": false,
7
- "main": "./dist/index.cjs",
8
- "module": "./dist/index.mjs",
9
- "types": "./dist/index.d.ts",
5
+ "description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
6
+ "keywords": [
7
+ "email",
8
+ "email-editor",
9
+ "maily.to",
10
+ "react",
11
+ "tiptap"
12
+ ],
13
+ "author": "Arik Chakma <arikchangma@gmail.com>",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/arikchakma/maily.to.git",
17
+ "directory": "packages/core"
18
+ },
10
19
  "files": [
11
- "dist/**"
20
+ "dist/**",
21
+ "src/styles/index.css"
12
22
  ],
23
+ "type": "module",
24
+ "sideEffects": [
25
+ "**/*.css"
26
+ ],
27
+ "main": "./dist/index.cjs",
28
+ "module": "./dist/index.mjs",
29
+ "types": "./dist/index.d.mts",
30
+ "imports": {
31
+ "#test-utils": "./tests/utils.tsx"
32
+ },
13
33
  "exports": {
14
- "./package.json": "./package.json",
15
34
  ".": {
16
- "node": {
17
- "import": {
18
- "types": "./dist/index.d.ts",
19
- "default": "./dist/index.mjs"
20
- },
21
- "require": {
22
- "types": "./dist/index.d.ts",
23
- "default": "./dist/index.cjs"
24
- }
25
- },
26
- "browser": {
27
- "import": {
28
- "types": "./dist/index.d.ts",
29
- "default": "./dist/index.mjs"
30
- },
31
- "require": {
32
- "types": "./dist/index.d.ts",
33
- "default": "./dist/index.cjs"
34
- }
35
- },
36
- "default": {
37
- "import": {
38
- "types": "./dist/index.d.ts",
39
- "default": "./dist/index.mjs"
40
- },
41
- "require": {
42
- "types": "./dist/index.d.ts",
43
- "default": "./dist/index.cjs"
44
- }
45
- }
35
+ "import": "./dist/index.mjs",
36
+ "require": "./dist/index.cjs"
46
37
  },
47
38
  "./blocks": {
48
- "node": {
49
- "import": {
50
- "types": "./dist/blocks/index.d.ts",
51
- "default": "./dist/blocks/index.mjs"
52
- },
53
- "require": {
54
- "types": "./dist/blocks/index.d.ts",
55
- "default": "./dist/blocks/index.cjs"
56
- }
57
- },
58
- "browser": {
59
- "import": {
60
- "types": "./dist/blocks/index.d.ts",
61
- "default": "./dist/blocks/index.mjs"
62
- },
63
- "require": {
64
- "types": "./dist/blocks/index.d.ts",
65
- "default": "./dist/blocks/index.cjs"
66
- }
67
- },
68
- "default": {
69
- "import": {
70
- "types": "./dist/blocks/index.d.ts",
71
- "default": "./dist/blocks/index.mjs"
72
- },
73
- "require": {
74
- "types": "./dist/blocks/index.d.ts",
75
- "default": "./dist/blocks/index.cjs"
76
- }
77
- }
39
+ "import": "./dist/blocks/index.mjs",
40
+ "require": "./dist/blocks/index.cjs"
78
41
  },
79
42
  "./extensions": {
80
- "node": {
81
- "import": {
82
- "types": "./dist/extensions/index.d.ts",
83
- "default": "./dist/extensions/index.mjs"
84
- },
85
- "require": {
86
- "types": "./dist/extensions/index.d.ts",
87
- "default": "./dist/extensions/index.cjs"
88
- }
89
- },
90
- "browser": {
91
- "import": {
92
- "types": "./dist/extensions/index.d.ts",
93
- "default": "./dist/extensions/index.mjs"
94
- },
95
- "require": {
96
- "types": "./dist/extensions/index.d.ts",
97
- "default": "./dist/extensions/index.cjs"
98
- }
99
- },
100
- "default": {
101
- "import": {
102
- "types": "./dist/extensions/index.d.ts",
103
- "default": "./dist/extensions/index.mjs"
104
- },
105
- "require": {
106
- "types": "./dist/extensions/index.d.ts",
107
- "default": "./dist/extensions/index.cjs"
108
- }
109
- }
43
+ "import": "./dist/extensions/index.mjs",
44
+ "require": "./dist/extensions/index.cjs"
110
45
  },
111
- "./style.css": "./dist/index.css"
112
- },
113
- "typesVersions": {
114
- "*": {
115
- "*": [
116
- "dist/index.d.ts"
117
- ],
118
- "blocks": [
119
- "dist/blocks/index.d.ts"
120
- ],
121
- "extensions": [
122
- "dist/extensions/index.d.ts"
123
- ]
124
- }
125
- },
126
- "scripts": {
127
- "dev": "tsup --watch",
128
- "clean": "rm -rf dist",
129
- "build": "tsup"
130
- },
131
- "repository": {
132
- "type": "git",
133
- "url": "git+https://github.com/arikchakma/maily.to.git",
134
- "directory": "packages/core"
46
+ "./package.json": "./package.json",
47
+ "./style.css": "./src/styles/index.css"
135
48
  },
136
- "author": "Arik Chakma <arikchangma@gmail.com>",
137
- "keywords": [
138
- "tiptap",
139
- "wysiwyg",
140
- "maily.to",
141
- "editor",
142
- "react",
143
- "email"
144
- ],
145
- "engines": {
146
- "node": ">=18.0.0"
49
+ "publishConfig": {
50
+ "access": "public"
147
51
  },
148
52
  "dependencies": {
149
- "@radix-ui/react-dropdown-menu": "^2.1.6",
150
- "@radix-ui/react-popover": "^1.1.6",
151
- "@radix-ui/react-slot": "^1.1.2",
152
- "@radix-ui/react-tooltip": "^1.1.8",
153
- "@tailwindcss/postcss": "^4.1.8",
154
- "@tiptap/core": "^2.11.5",
155
- "@tiptap/extension-code-block-lowlight": "^2.11.5",
156
- "@tiptap/extension-color": "^2.11.5",
157
- "@tiptap/extension-document": "^2.11.5",
158
- "@tiptap/extension-dropcursor": "^2.11.5",
159
- "@tiptap/extension-focus": "^2.11.5",
160
- "@tiptap/extension-heading": "^2.11.5",
161
- "@tiptap/extension-horizontal-rule": "^2.11.5",
162
- "@tiptap/extension-image": "^2.11.5",
163
- "@tiptap/extension-link": "^2.11.5",
164
- "@tiptap/extension-list-item": "^2.11.5",
165
- "@tiptap/extension-mention": "^2.11.5",
166
- "@tiptap/extension-paragraph": "^2.11.5",
167
- "@tiptap/extension-placeholder": "^2.11.5",
168
- "@tiptap/extension-text-align": "^2.11.5",
169
- "@tiptap/extension-text-style": "^2.11.5",
170
- "@tiptap/extension-underline": "^2.11.5",
171
- "@tiptap/pm": "^2.11.5",
172
- "@tiptap/react": "^2.11.5",
173
- "@tiptap/starter-kit": "^2.11.5",
174
- "@tiptap/suggestion": "^2.11.5",
175
- "clsx": "^2.1.1",
176
- "fast-deep-equal": "^3.1.3",
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",
177
85
  "highlight.js": "^11.11.1",
178
86
  "lowlight": "^3.3.0",
179
- "lucide-react": "^0.483.0",
180
- "react-colorful": "^5.6.1",
181
- "tailwindcss": "^4.1.8",
182
- "tippy.js": "^6.3.7",
183
- "uuid": "^11.1.0",
184
- "y-prosemirror": "^1.3.0"
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.10"
185
91
  },
186
92
  "devDependencies": {
187
- "@tailwindcss/typography": "^0.5.16",
188
- "@types/react": "^18.3.18",
189
- "postcss": "^8.5.3",
190
- "postcss-replace": "^2.0.1",
191
- "tailwind-merge": "^3.3.0",
192
- "tailwind-scrollbar": "^4.0.2",
193
- "tsconfig": "workspace:*",
194
- "tw-animate-css": "^1.3.6",
195
- "typescript": "^5.8.2"
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",
110
+ "@maily-to/extension-inline-suggestion": "0.0.1",
111
+ "@maily-to/extension-ai-actions": "0.0.1",
112
+ "@maily-to/extension-variable": "0.0.1",
113
+ "@maily-to/render": "2.0.0-beta.10",
114
+ "@maily-to/tsconfig": "0.0.0"
196
115
  },
197
116
  "peerDependencies": {
198
- "react": "^18 || ^19"
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"
199
122
  },
200
- "publishConfig": {
201
- "access": "public"
123
+ "peerDependenciesMeta": {
124
+ "yjs": {
125
+ "optional": true
126
+ }
127
+ },
128
+ "scripts": {
129
+ "bench": "vp test bench --run",
130
+ "build": "vp run clean && vp run build:lib",
131
+ "build:lib": "vp pack",
132
+ "clean": "rm -rf dist",
133
+ "dev": "vp pack --watch --no-clean",
134
+ "release": "bumpp",
135
+ "test": "vp test run",
136
+ "test:watch": "vp test"
202
137
  }
203
- }
138
+ }