@maily-to/core 2.0.0-beta.6 → 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 +4426 -12591
  12. package/dist/index.d.cts +1 -107
  13. package/dist/index.d.mts +711 -73
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +8397 -11474
  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 +96 -73
  27. package/readme.md +177 -133
  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,8 +1,15 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "version": "2.0.0-beta.6",
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
+ "keywords": [
7
+ "email",
8
+ "email-editor",
9
+ "maily.to",
10
+ "react",
11
+ "tiptap"
12
+ ],
6
13
  "author": "Arik Chakma <arikchangma@gmail.com>",
7
14
  "repository": {
8
15
  "type": "git",
@@ -10,106 +17,122 @@
10
17
  "directory": "packages/core"
11
18
  },
12
19
  "files": [
13
- "dist/**"
20
+ "dist/**",
21
+ "src/styles/index.css"
14
22
  ],
15
23
  "type": "module",
16
- "sideEffects": false,
24
+ "sideEffects": [
25
+ "**/*.css"
26
+ ],
17
27
  "main": "./dist/index.cjs",
18
28
  "module": "./dist/index.mjs",
19
- "types": "./dist/index.d.cts",
29
+ "types": "./dist/index.d.mts",
30
+ "imports": {
31
+ "#test-utils": "./tests/utils.tsx"
32
+ },
20
33
  "exports": {
21
34
  ".": {
22
- "import": "./dist/index.js",
35
+ "import": "./dist/index.mjs",
23
36
  "require": "./dist/index.cjs"
24
37
  },
38
+ "./blocks": {
39
+ "import": "./dist/blocks/index.mjs",
40
+ "require": "./dist/blocks/index.cjs"
41
+ },
42
+ "./extensions": {
43
+ "import": "./dist/extensions/index.mjs",
44
+ "require": "./dist/extensions/index.cjs"
45
+ },
25
46
  "./package.json": "./package.json",
26
- "./style.css": "./dist/index.css"
47
+ "./style.css": "./src/styles/index.css"
27
48
  },
28
49
  "publishConfig": {
29
50
  "access": "public"
30
51
  },
31
52
  "dependencies": {
32
- "@base-ui/react": "1.0.0",
33
- "@floating-ui/react": "^0.27.19",
34
- "@floating-ui/utils": "^0.2.11",
35
- "@tiptap/core": "^3.22.3",
36
- "@tiptap/extension-blockquote": "^3.22.3",
37
- "@tiptap/extension-bold": "^3.22.3",
38
- "@tiptap/extension-bubble-menu": "^3.22.3",
39
- "@tiptap/extension-code": "^3.22.3",
40
- "@tiptap/extension-code-block-lowlight": "^3.22.3",
41
- "@tiptap/extension-collaboration": "^3.22.3",
42
- "@tiptap/extension-document": "^3.22.3",
43
- "@tiptap/extension-file-handler": "^3.22.3",
44
- "@tiptap/extension-hard-break": "^3.22.3",
45
- "@tiptap/extension-heading": "^3.22.3",
46
- "@tiptap/extension-highlight": "^3.22.3",
47
- "@tiptap/extension-horizontal-rule": "^3.22.3",
48
- "@tiptap/extension-image": "^3.22.3",
49
- "@tiptap/extension-italic": "^3.22.3",
50
- "@tiptap/extension-link": "^3.22.3",
51
- "@tiptap/extension-list": "^3.22.3",
52
- "@tiptap/extension-node-range": "^3.22.3",
53
- "@tiptap/extension-paragraph": "^3.22.3",
54
- "@tiptap/extension-strike": "^3.22.3",
55
- "@tiptap/extension-table": "^3.22.3",
56
- "@tiptap/extension-text": "^3.22.3",
57
- "@tiptap/extension-text-align": "^3.22.3",
58
- "@tiptap/extension-text-style": "^3.22.3",
59
- "@tiptap/extension-typography": "^3.22.3",
60
- "@tiptap/extension-underline": "^3.22.3",
61
- "@tiptap/extension-unique-id": "^3.22.3",
62
- "@tiptap/extensions": "^3.22.3",
63
- "@tiptap/pm": "^3.22.3",
64
- "@tiptap/react": "^3.22.3",
65
- "@tiptap/suggestion": "^3.22.3",
66
- "@tiptap/y-tiptap": "^3.0.3",
67
- "@vitejs/plugin-react": "^6.0.1",
68
- "class-variance-authority": "^0.7.1",
69
- "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",
70
85
  "highlight.js": "^11.11.1",
71
86
  "lowlight": "^3.3.0",
72
- "lucide-react": "^1.8.0",
73
- "stylecast": "^0.0.6",
74
- "tailwind-merge": "^3.5.0",
75
- "y-protocols": "^1.0.7",
76
- "yjs": "^13.6.30",
77
- "zustand": "^5.0.12",
78
- "@maily-to/shared": "2.0.0-beta.6",
79
- "@maily-to/ui": "2.0.0-beta.6",
80
- "@maily-to/migration": "2.0.0-beta.6"
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"
81
91
  },
82
92
  "devDependencies": {
83
- "@rolldown/plugin-babel": "^0.2.2",
84
- "@tailwindcss/cli": "^4.2.2",
85
- "@tailwindcss/typography": "^0.5.19",
86
- "@types/react": "^19.2.14",
87
- "babel-plugin-react-compiler": "19.1.0-rc.3",
88
- "bumpp": "^11.0.1",
89
- "tailwindcss": "^4.2.2",
90
- "typescript": "^6.0.2",
91
- "vite-plus": "latest",
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",
92
110
  "@maily-to/extension-ai-actions": "0.0.1",
93
- "@maily-to/extension-drag-handle": "0.0.1",
94
111
  "@maily-to/extension-inline-suggestion": "0.0.1",
95
112
  "@maily-to/extension-variable": "0.0.1",
113
+ "@maily-to/render": "2.0.0-beta.8",
96
114
  "@maily-to/tsconfig": "0.0.0"
97
115
  },
98
116
  "peerDependencies": {
99
- "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"
100
122
  },
101
- "inlinedDependencies": {
102
- "@floating-ui/core": "1.7.5",
103
- "@floating-ui/dom": "1.7.6"
123
+ "peerDependenciesMeta": {
124
+ "yjs": {
125
+ "optional": true
126
+ }
104
127
  },
105
128
  "scripts": {
106
- "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",
107
131
  "build:lib": "vp pack",
108
- "build:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css",
109
132
  "clean": "rm -rf dist",
110
- "dev": "pnpm --filter @maily-to/core --parallel \"/^dev:.*/\"",
111
- "dev:lib": "vp pack --watch",
112
- "dev:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css --watch",
113
- "release": "bumpp"
133
+ "dev": "vp pack --watch --no-clean",
134
+ "release": "bumpp",
135
+ "test": "vp test run",
136
+ "test:watch": "vp test"
114
137
  }
115
138
  }