@maily-to/core 2.0.0-beta.20 → 2.0.0-beta.21

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.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_use_maily_editor = require("../use-maily-editor-DbMPOkxh.cjs");
2
+ const require_use_maily_editor = require("../use-maily-editor-BknxsMea.cjs");
3
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
4
  let lucide_react = require("lucide-react");
5
5
  let _maily_to_shared = require("@maily-to/shared");
@@ -1,4 +1,4 @@
1
- import { $ as getThemeCss, C as DivExtension, D as setStyleDeclarations, E as BoldExtension, F as ColumnExtension, M as VISIBILITY_SUPPORTED_TYPES, N as VisibilityExtension, O as BodyExtension, P as ColumnsExtension, Q as getShellNodes, S as FooterExtension, T as ButtonExtension, W as VariableExtension, Y as getMergedNodeTheme, _ as ALLOWED_IMAGE_MIME_TYPES, a as STYLE_SUPPORTED_TYPES, b as HtmlCodeBlockExtension, c as SpacerExtension, d as SectionExtension, f as InlineSpanExtension, h as ImageState, j as ProtectVariableTrigger, k as BlockquoteExtension, l as SlashCommandExtension, m as ImageExtension, o as StyleExtension, p as InlineImageExtension, r as getNormalizedHtml, s as SpanExtension, t as DEFAULT_EXTENSIONS, u as DEFAULT_SLASH_COMMANDS, v as IMAGE_UPLOAD_STATUSES, w as ContainerExtension, x as HorizontalRuleExtension, y as ImageUploadExtension } from "../use-maily-editor-DrOZ-GOZ.mjs";
1
+ import { $ as getThemeCss, C as DivExtension, D as setStyleDeclarations, E as BoldExtension, F as ColumnExtension, M as VISIBILITY_SUPPORTED_TYPES, N as VisibilityExtension, O as BodyExtension, P as ColumnsExtension, Q as getShellNodes, S as FooterExtension, T as ButtonExtension, W as VariableExtension, Y as getMergedNodeTheme, _ as ALLOWED_IMAGE_MIME_TYPES, a as STYLE_SUPPORTED_TYPES, b as HtmlCodeBlockExtension, c as SpacerExtension, d as SectionExtension, f as InlineSpanExtension, h as ImageState, j as ProtectVariableTrigger, k as BlockquoteExtension, l as SlashCommandExtension, m as ImageExtension, o as StyleExtension, p as InlineImageExtension, r as getNormalizedHtml, s as SpanExtension, t as DEFAULT_EXTENSIONS, u as DEFAULT_SLASH_COMMANDS, v as IMAGE_UPLOAD_STATUSES, w as ContainerExtension, x as HorizontalRuleExtension, y as ImageUploadExtension } from "../use-maily-editor-BrlfN_JG.mjs";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { SquareArrowOutUpRightIcon } from "lucide-react";
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_use_maily_editor = require("./use-maily-editor-DbMPOkxh.cjs");
2
+ const require_use_maily_editor = require("./use-maily-editor-BknxsMea.cjs");
3
3
  let cromia = require("cromia");
4
4
  let react = require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { B as MAX_SPACER_HEIGHT, G as getVariableSuggestions, H as SPACER_SPACING, I as addColumn, J as Document, L as getColumnWidths, M as VISIBILITY_SUPPORTED_TYPES, Q as getShellNodes, R as removeColumn, U as SPACING_PRESETS, V as MIN_SPACER_HEIGHT, W as VariableExtension, X as getNodeStyleState, Z as getNodeTheme, at as TooltipTrigger, ct as FloatingElement, dt as FLOATING_ELEMENT_ORDER, et as Tooltip, ft as useOnSelectionUpdate, g as VisuallyHidden, gt as useValueAsRef, ht as ArrowIcon, i as mergeExtensions, it as TooltipProvider, j as ProtectVariableTrigger, lt as clearInitialNodeSelection, mt as useEditorInstance, n as useMailyEditor, nt as TooltipPopup, ot as FLOATING_ELEMENT_HEIGHT, pt as useFloatingStore, q as filterVariableSuggestions, r as getNormalizedHtml, rt as TooltipPositioner, st as FLOATING_ELEMENT_PADDING, t as DEFAULT_EXTENSIONS, tt as TooltipArrow, ut as FLOATING_ELEMENT_IDS, z as updateColumnWidth } from "./use-maily-editor-DrOZ-GOZ.mjs";
1
+ import { B as MAX_SPACER_HEIGHT, G as getVariableSuggestions, H as SPACER_SPACING, I as addColumn, J as Document, L as getColumnWidths, M as VISIBILITY_SUPPORTED_TYPES, Q as getShellNodes, R as removeColumn, U as SPACING_PRESETS, V as MIN_SPACER_HEIGHT, W as VariableExtension, X as getNodeStyleState, Z as getNodeTheme, at as TooltipTrigger, ct as FloatingElement, dt as FLOATING_ELEMENT_ORDER, et as Tooltip, ft as useOnSelectionUpdate, g as VisuallyHidden, gt as useValueAsRef, ht as ArrowIcon, i as mergeExtensions, it as TooltipProvider, j as ProtectVariableTrigger, lt as clearInitialNodeSelection, mt as useEditorInstance, n as useMailyEditor, nt as TooltipPopup, ot as FLOATING_ELEMENT_HEIGHT, pt as useFloatingStore, q as filterVariableSuggestions, r as getNormalizedHtml, rt as TooltipPositioner, st as FLOATING_ELEMENT_PADDING, t as DEFAULT_EXTENSIONS, tt as TooltipArrow, ut as FLOATING_ELEMENT_IDS, z as updateColumnWidth } from "./use-maily-editor-BrlfN_JG.mjs";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { ColorPicker as ColorPicker$1 } from "cromia";
4
4
  import { Fragment, createContext, forwardRef, use, useCallback, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
@@ -2534,7 +2534,8 @@ const InlineImageExtension = _tiptap_core.Node.create({
2534
2534
  priority: 60,
2535
2535
  getAttrs: (element) => {
2536
2536
  const parent = element.parentElement;
2537
- return parent && INLINE_PARENTS.has(parent.tagName) ? null : false;
2537
+ if (!parent) return false;
2538
+ return INLINE_PARENTS.has(parent.tagName) || parent.textContent?.trim() ? null : false;
2538
2539
  }
2539
2540
  }];
2540
2541
  },
@@ -3310,6 +3311,7 @@ const TableExtension = _tiptap_extension_table.Table.extend({ addAttributes() {
3310
3311
  };
3311
3312
  } }).configure({
3312
3313
  HTMLAttributes: { [_maily_to_shared.DATA_NODE_TYPE_KEY]: _maily_to_shared.MAILY_NODE_TYPES.TABLE },
3314
+ cellMinWidth: 0,
3313
3315
  resizable: false,
3314
3316
  View: null
3315
3317
  });
@@ -3220,7 +3220,8 @@ const InlineImageExtension = Node$1.create({
3220
3220
  priority: 60,
3221
3221
  getAttrs: (element) => {
3222
3222
  const parent = element.parentElement;
3223
- return parent && INLINE_PARENTS.has(parent.tagName) ? null : false;
3223
+ if (!parent) return false;
3224
+ return INLINE_PARENTS.has(parent.tagName) || parent.textContent?.trim() ? null : false;
3224
3225
  }
3225
3226
  }];
3226
3227
  },
@@ -4215,6 +4216,7 @@ const TableExtension = Table.extend({ addAttributes() {
4215
4216
  };
4216
4217
  } }).configure({
4217
4218
  HTMLAttributes: { [DATA_NODE_TYPE_KEY]: MAILY_NODE_TYPES.TABLE },
4219
+ cellMinWidth: 0,
4218
4220
  resizable: false,
4219
4221
  View: null
4220
4222
  });
@@ -3252,7 +3252,8 @@ const InlineImageExtension = _tiptap_core.Node.create({
3252
3252
  priority: 60,
3253
3253
  getAttrs: (element) => {
3254
3254
  const parent = element.parentElement;
3255
- return parent && INLINE_PARENTS.has(parent.tagName) ? null : false;
3255
+ if (!parent) return false;
3256
+ return INLINE_PARENTS.has(parent.tagName) || parent.textContent?.trim() ? null : false;
3256
3257
  }
3257
3258
  }];
3258
3259
  },
@@ -4247,6 +4248,7 @@ const TableExtension = _tiptap_extension_table.Table.extend({ addAttributes() {
4247
4248
  };
4248
4249
  } }).configure({
4249
4250
  HTMLAttributes: { [_maily_to_shared.DATA_NODE_TYPE_KEY]: _maily_to_shared.MAILY_NODE_TYPES.TABLE },
4251
+ cellMinWidth: 0,
4250
4252
  resizable: false,
4251
4253
  View: null
4252
4254
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "version": "2.0.0-beta.20",
3
+ "version": "2.0.0-beta.21",
4
4
  "private": false,
5
5
  "description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
6
6
  "keywords": [
@@ -87,7 +87,7 @@
87
87
  "lucide-react": "^1.28.0",
88
88
  "unit-field": "^0.0.3",
89
89
  "zustand": "^5.0.14",
90
- "@maily-to/shared": "2.0.0-beta.20"
90
+ "@maily-to/shared": "2.0.0-beta.21"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@react-email/components": "^1.0.12",
@@ -107,10 +107,10 @@
107
107
  "typescript": "^7.0.2",
108
108
  "vite-plus": "0.3.0",
109
109
  "yjs": "^13.6.33",
110
- "@maily-to/extension-variable": "0.0.1",
111
110
  "@maily-to/extension-inline-suggestion": "0.0.1",
112
- "@maily-to/render": "2.0.0-beta.20",
113
111
  "@maily-to/extension-ai-actions": "0.0.1",
112
+ "@maily-to/extension-variable": "0.0.1",
113
+ "@maily-to/render": "2.0.0-beta.21",
114
114
  "@maily-to/tsconfig": "0.0.0"
115
115
  },
116
116
  "peerDependencies": {