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

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,9 +1,21 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.7",
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>",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/arikchakma/maily.to.git",
17
+ "directory": "packages/core"
18
+ },
7
19
  "files": [
8
20
  "dist/**"
9
21
  ],
@@ -29,34 +41,13 @@
29
41
  "./style.css": "./dist/index.css"
30
42
  },
31
43
  "publishConfig": {
32
- "access": "public",
33
- "exports": {
34
- ".": {
35
- "import": "./dist/index.js",
36
- "require": "./dist/index.cjs"
37
- },
38
- "./package.json": "./package.json",
39
- "./style.css": "./dist/index.css"
40
- }
41
- },
42
- "scripts": {
43
- "build": "pnpm run clean && pnpm run build:style && pnpm run build:lib",
44
- "build:lib": "vp pack",
45
- "build:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css",
46
- "clean": "rm -rf dist",
47
- "dev": "pnpm --filter @maily-to/core --parallel \"/^dev:.*/\"",
48
- "dev:lib": "vp pack --watch",
49
- "dev:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css --watch",
50
- "release": "bumpp"
44
+ "access": "public"
51
45
  },
52
46
  "dependencies": {
53
47
  "@base-ui/react": "1.0.0",
54
48
  "@floating-ui/react": "^0.27.19",
55
49
  "@floating-ui/utils": "^0.2.11",
56
- "@maily-to/migration": "workspace:*",
57
- "@maily-to/shared": "workspace:*",
58
- "@maily-to/ui": "workspace:*",
59
- "@tiptap/core": "catalog:",
50
+ "@tiptap/core": "^3.22.3",
60
51
  "@tiptap/extension-blockquote": "^3.22.3",
61
52
  "@tiptap/extension-bold": "^3.22.3",
62
53
  "@tiptap/extension-bubble-menu": "^3.22.3",
@@ -84,8 +75,8 @@
84
75
  "@tiptap/extension-underline": "^3.22.3",
85
76
  "@tiptap/extension-unique-id": "^3.22.3",
86
77
  "@tiptap/extensions": "^3.22.3",
87
- "@tiptap/pm": "catalog:",
88
- "@tiptap/react": "catalog:",
78
+ "@tiptap/pm": "^3.22.3",
79
+ "@tiptap/react": "^3.22.3",
89
80
  "@tiptap/suggestion": "^3.22.3",
90
81
  "@tiptap/y-tiptap": "^3.0.3",
91
82
  "@vitejs/plugin-react": "^6.0.1",
@@ -98,29 +89,42 @@
98
89
  "tailwind-merge": "^3.5.0",
99
90
  "y-protocols": "^1.0.7",
100
91
  "yjs": "^13.6.30",
101
- "zustand": "^5.0.12"
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"
102
96
  },
103
97
  "devDependencies": {
104
- "@maily-to/extension-ai-actions": "workspace:*",
105
- "@maily-to/extension-drag-handle": "workspace:*",
106
- "@maily-to/extension-inline-suggestion": "workspace:*",
107
- "@maily-to/extension-variable": "workspace:*",
108
- "@maily-to/tsconfig": "workspace:*",
109
- "@rolldown/plugin-babel": "catalog:",
98
+ "@rolldown/plugin-babel": "^0.2.2",
110
99
  "@tailwindcss/cli": "^4.2.2",
111
100
  "@tailwindcss/typography": "^0.5.19",
112
- "@types/react": "catalog:",
101
+ "@types/react": "^19.2.14",
113
102
  "babel-plugin-react-compiler": "19.1.0-rc.3",
114
- "bumpp": "catalog:",
103
+ "bumpp": "^11.0.1",
115
104
  "tailwindcss": "^4.2.2",
116
- "typescript": "catalog:",
117
- "vite-plus": "catalog:"
105
+ "typescript": "^6.0.2",
106
+ "vite-plus": "latest",
107
+ "@maily-to/extension-drag-handle": "0.0.1",
108
+ "@maily-to/extension-ai-actions": "0.0.1",
109
+ "@maily-to/extension-variable": "0.0.1",
110
+ "@maily-to/tsconfig": "0.0.0",
111
+ "@maily-to/extension-inline-suggestion": "0.0.1"
118
112
  },
119
113
  "peerDependencies": {
120
- "react": "catalog:"
114
+ "react": "^19.2.5"
121
115
  },
122
116
  "inlinedDependencies": {
123
117
  "@floating-ui/core": "1.7.5",
124
118
  "@floating-ui/dom": "1.7.6"
119
+ },
120
+ "scripts": {
121
+ "build": "pnpm run clean && pnpm run build:style && pnpm run build:lib",
122
+ "build:lib": "vp pack",
123
+ "build:style": "tailwindcss -i ./src/styles/index.css -o ./dist/index.css",
124
+ "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"
125
129
  }
126
- }
130
+ }
package/readme.md CHANGED
@@ -170,10 +170,11 @@ Import pre-built blocks from `@maily-to/core/blocks`:
170
170
  Define a command with an `id` and a `commands` array to create nested menus. Typing `/headers.` will show the subcommands.
171
171
 
172
172
  ```tsx
173
+ import { SlashCommandExtension } from '@maily-to/core/extensions';
174
+
173
175
  <Editor.Root
174
- blocks={[
175
- {
176
- title: 'Formatting',
176
+ extensions={[
177
+ SlashCommandExtension.configure({
177
178
  commands: [
178
179
  {
179
180
  title: 'Headers',
@@ -194,9 +195,11 @@ Define a command with an `id` and a `commands` array to create nested menus. Typ
194
195
  ],
195
196
  },
196
197
  ],
197
- },
198
+ }),
198
199
  ]}
199
- />
200
+ >
201
+ ...
202
+ </Editor.Root>;
200
203
  ```
201
204
 
202
205
  > Currently supports one level of depth for subcommands.