@daisychainapp/maily-to-core 0.2.12 → 0.3.5
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/dist/blocks/index.cjs +21 -21
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.mjs +21 -21
- package/dist/blocks/index.mjs.map +1 -1
- package/dist/extensions/index.cjs +3331 -372
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +18 -6
- package/dist/extensions/index.d.ts +18 -6
- package/dist/extensions/index.mjs +3336 -377
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +3554 -552
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2422 -2293
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +3544 -542
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -4
- package/readme.md +12 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daisychainapp/maily-to-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.5",
|
|
5
5
|
"description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
"@radix-ui/react-popover": "^1.1.6",
|
|
151
151
|
"@radix-ui/react-slot": "^1.1.2",
|
|
152
152
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
153
|
+
"@tailwindcss/postcss": "^4.1.8",
|
|
153
154
|
"@tiptap/core": "^2.11.5",
|
|
154
155
|
"@tiptap/extension-code-block-lowlight": "^2.11.5",
|
|
155
156
|
"@tiptap/extension-color": "^2.11.5",
|
|
@@ -177,18 +178,20 @@
|
|
|
177
178
|
"lowlight": "^3.3.0",
|
|
178
179
|
"lucide-react": "^0.483.0",
|
|
179
180
|
"react-colorful": "^5.6.1",
|
|
180
|
-
"
|
|
181
|
-
"tailwindcss": "^3.4.14",
|
|
181
|
+
"tailwindcss": "^4.1.8",
|
|
182
182
|
"tippy.js": "^6.3.7",
|
|
183
183
|
"uuid": "^11.1.0",
|
|
184
184
|
"y-prosemirror": "^1.3.0"
|
|
185
185
|
},
|
|
186
186
|
"devDependencies": {
|
|
187
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
187
188
|
"@types/react": "^18.3.18",
|
|
188
189
|
"postcss": "^8.5.3",
|
|
189
190
|
"postcss-replace": "^2.0.1",
|
|
190
|
-
"tailwind-
|
|
191
|
+
"tailwind-merge": "^3.3.0",
|
|
192
|
+
"tailwind-scrollbar": "^4.0.2",
|
|
191
193
|
"tsconfig": "workspace:*",
|
|
194
|
+
"tw-animate-css": "^1.3.6",
|
|
192
195
|
"typescript": "^5.8.2"
|
|
193
196
|
},
|
|
194
197
|
"peerDependencies": {
|
package/readme.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h1 align="center"><img height="150" src="https://maily.to/brand/icon.svg" /><br> @maily
|
|
1
|
+
<h1 align="center"><img height="150" src="https://maily.to/brand/icon.svg" /><br> @maily-to/core</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://github.com/arikchakma/maily.to/blob/main/license">
|
|
@@ -156,7 +156,7 @@ You can pass variables to the editor in two ways:
|
|
|
156
156
|
<Editor
|
|
157
157
|
extensions={[
|
|
158
158
|
VariableExtension.configure({
|
|
159
|
-
|
|
159
|
+
suggestion: getVariableSuggestions('@'),
|
|
160
160
|
variables: [{
|
|
161
161
|
name: 'currentTime',
|
|
162
162
|
required: false,
|
|
@@ -177,7 +177,7 @@ You can pass variables to the editor in two ways:
|
|
|
177
177
|
<Editor
|
|
178
178
|
extensions={[
|
|
179
179
|
VariableExtension.configure({
|
|
180
|
-
|
|
180
|
+
suggestion: getVariableSuggestions('@'),
|
|
181
181
|
variables: ({ query, from, editor }) => {
|
|
182
182
|
// magic goes here
|
|
183
183
|
// query: the text after the trigger character
|
|
@@ -194,6 +194,13 @@ You can pass variables to the editor in two ways:
|
|
|
194
194
|
return [
|
|
195
195
|
{ name: 'currentDate' },
|
|
196
196
|
{ name: 'currentTime', required: false },
|
|
197
|
+
{
|
|
198
|
+
name: 'first_name',
|
|
199
|
+
required: false,
|
|
200
|
+
// if you want to hide the default value
|
|
201
|
+
// input in the popover
|
|
202
|
+
hideDefaultValue: true,
|
|
203
|
+
},
|
|
197
204
|
];
|
|
198
205
|
},
|
|
199
206
|
}),
|
|
@@ -224,12 +231,12 @@ import { MailyKit, VariableExtension, getVariableSuggestions } from '@maily-to/c
|
|
|
224
231
|
// now you can replace the default
|
|
225
232
|
// VariableView with your custom view
|
|
226
233
|
return ReactNodeViewRenderer(VariableView, {
|
|
227
|
-
className: 'mly
|
|
234
|
+
className: 'mly:relative mly:inline-block',
|
|
228
235
|
as: 'div',
|
|
229
236
|
});
|
|
230
237
|
},
|
|
231
238
|
}).configure({
|
|
232
|
-
|
|
239
|
+
suggestion: getVariableSuggestions(variableTriggerCharacter),
|
|
233
240
|
}),
|
|
234
241
|
]}
|
|
235
242
|
/>
|