@maily-to/core 0.3.1 → 0.3.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
6
6
  "private": false,
7
7
  "main": "./dist/index.cjs",
@@ -145,6 +145,7 @@
145
145
  "@radix-ui/react-popover": "^1.1.6",
146
146
  "@radix-ui/react-slot": "^1.1.2",
147
147
  "@radix-ui/react-tooltip": "^1.1.8",
148
+ "@tailwindcss/postcss": "^4.1.8",
148
149
  "@tiptap/core": "^2.11.5",
149
150
  "@tiptap/extension-code-block-lowlight": "^2.11.5",
150
151
  "@tiptap/extension-color": "^2.11.5",
@@ -172,18 +173,20 @@
172
173
  "lowlight": "^3.3.0",
173
174
  "lucide-react": "^0.483.0",
174
175
  "react-colorful": "^5.6.1",
175
- "tailwindcss": "^3.4.14",
176
+ "tailwindcss": "^4.1.8",
176
177
  "tippy.js": "^6.3.7",
177
178
  "uuid": "^11.1.0",
178
179
  "y-prosemirror": "^1.3.0"
179
180
  },
180
181
  "devDependencies": {
182
+ "@tailwindcss/typography": "^0.5.16",
181
183
  "@types/react": "^18.3.18",
182
184
  "postcss": "^8.5.3",
183
185
  "postcss-replace": "^2.0.1",
184
- "tailwind-merge": "^2.5.4",
186
+ "tailwind-merge": "^3.3.0",
187
+ "tailwind-scrollbar": "^4.0.2",
188
+ "tw-animate-css": "^1.3.6",
185
189
  "typescript": "^5.8.2",
186
- "tailwind-config": "0.0.0",
187
190
  "tsconfig": "0.0.0"
188
191
  },
189
192
  "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.to/core</h1>
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
- suggestions: getVariableSuggestions('@'),
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
- suggestions: getVariableSuggestions('@'),
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-relative mly-inline-block',
234
+ className: 'mly:relative mly:inline-block',
228
235
  as: 'div',
229
236
  });
230
237
  },
231
238
  }).configure({
232
- suggestions: getVariableSuggestions(variableTriggerCharacter),
239
+ suggestion: getVariableSuggestions(variableTriggerCharacter),
233
240
  }),
234
241
  ]}
235
242
  />