@maily-to/core 2.0.0-beta.6 → 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,8 +1,15 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "version": "2.0.0-beta.6",
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>",
7
14
  "repository": {
8
15
  "type": "git",
@@ -19,9 +26,17 @@
19
26
  "types": "./dist/index.d.cts",
20
27
  "exports": {
21
28
  ".": {
22
- "import": "./dist/index.js",
29
+ "import": "./dist/index.mjs",
23
30
  "require": "./dist/index.cjs"
24
31
  },
32
+ "./blocks": {
33
+ "import": "./dist/blocks/index.mjs",
34
+ "require": "./dist/blocks/index.cjs"
35
+ },
36
+ "./extensions": {
37
+ "import": "./dist/extensions/index.mjs",
38
+ "require": "./dist/extensions/index.cjs"
39
+ },
25
40
  "./package.json": "./package.json",
26
41
  "./style.css": "./dist/index.css"
27
42
  },
@@ -75,9 +90,9 @@
75
90
  "y-protocols": "^1.0.7",
76
91
  "yjs": "^13.6.30",
77
92
  "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"
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"
81
96
  },
82
97
  "devDependencies": {
83
98
  "@rolldown/plugin-babel": "^0.2.2",
@@ -89,11 +104,11 @@
89
104
  "tailwindcss": "^4.2.2",
90
105
  "typescript": "^6.0.2",
91
106
  "vite-plus": "latest",
92
- "@maily-to/extension-ai-actions": "0.0.1",
93
107
  "@maily-to/extension-drag-handle": "0.0.1",
94
- "@maily-to/extension-inline-suggestion": "0.0.1",
108
+ "@maily-to/extension-ai-actions": "0.0.1",
95
109
  "@maily-to/extension-variable": "0.0.1",
96
- "@maily-to/tsconfig": "0.0.0"
110
+ "@maily-to/tsconfig": "0.0.0",
111
+ "@maily-to/extension-inline-suggestion": "0.0.1"
97
112
  },
98
113
  "peerDependencies": {
99
114
  "react": "^19.2.5"
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.