@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daisychainapp/maily-to-core",
3
3
  "type": "module",
4
- "version": "0.2.12",
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
- "tailwind-merge": "^2.5.4",
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-config": "workspace:*",
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.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
  />