@seliseblocks/mailcraft 0.2.9 → 0.2.10

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.
@@ -98,6 +98,13 @@ export const STYLE = `
98
98
  #mc ::selection { background: var(--ed-select); }
99
99
  #mc a { color: var(--ed-accent); }
100
100
  #mc a:hover { color: var(--ed-accent); opacity: 0.72; }
101
+ /* Content links are the document's, not the chrome's: inside the sheet the
102
+ accent rule above painted every anchor in the HOST's brand color, which is
103
+ why the theme's own Link color setting never did anything visible. The
104
+ variable is set per render on the sheet root (render/canvas.js); anchors
105
+ with their own inline color keep it, exactly as in the sent mail. */
106
+ #mc [data-mc-sheet] a { color: var(--mc-link, var(--ed-accent)); }
107
+ #mc [data-mc-sheet] a:hover { color: var(--mc-link, var(--ed-accent)); opacity: 1; }
101
108
  @keyframes mcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
102
109
  @keyframes mcFade { from { opacity: 0; } to { opacity: 1; } }
103
110
  @keyframes mcPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
package/types/index.d.ts CHANGED
@@ -272,8 +272,15 @@ export class MailCraftEditor extends HTMLElement {
272
272
  /** Merged over `storageProvider.limits` per key, this side winning. */
273
273
  storageLimits: StorageLimits | null;
274
274
 
275
- /** Send-ready email HTML — valid input to the importer, so saving the export is saving the work. */
276
- exportHtml(): string;
275
+ /**
276
+ * Send-ready email HTML — valid input to the importer, so saving the export
277
+ * is saving the work. `{ markers: false }` omits the fidelity-marker
278
+ * attributes (`data-mc*`, the inert `mc-keep` class) for hosts that want
279
+ * pristine HTML, at the price of a lossy reload for the few blocks whose
280
+ * rendered shape cannot be read back (countdown, video, section box, code,
281
+ * raw CSS, flex/grid rows).
282
+ */
283
+ exportHtml(options?: { markers?: boolean }): string;
277
284
 
278
285
  /** Parses email HTML back onto the canvas. Returns the number of rows produced. */
279
286
  importHtml(html: string): number;
@@ -365,7 +372,7 @@ export interface EditorHandle {
365
372
  element: MailCraftEditor;
366
373
  /** Removes the editor and detaches the listeners this call attached. */
367
374
  destroy(): void;
368
- exportHtml(): string;
375
+ exportHtml(options?: { markers?: boolean }): string;
369
376
  importHtml(html: string): number;
370
377
  loadTemplate(tpl: Template): void;
371
378
  undo(): void;