@pagenflow/email 1.4.5 → 1.4.7

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.
@@ -16,6 +16,7 @@ export type ColumnConfig = {
16
16
  backgroundImage?: BackgroundImageType;
17
17
  width?: string;
18
18
  height?: string;
19
+ maxWidth?: string;
19
20
  gap?: string;
20
21
  };
21
22
  export type ColumnProps = {
@@ -36,6 +36,13 @@ export interface TextConfig {
36
36
  whiteSpace?: string;
37
37
  /** Word break behavior (e.g., 'break-all', 'break-word', 'keep-all', 'normal'). */
38
38
  wordBreak?: string;
39
+ /**
40
+ * Constrains the text block width in modern clients via CSS, and in
41
+ * Outlook Classic (Word rendering engine) via a <center> + table `width`
42
+ * HTML attribute pattern — identical to the Column maxWidth approach.
43
+ * The outer table always stays at 100% so no retro layout is disturbed;
44
+ * only the inner constrained table is capped.
45
+ */
39
46
  maxWidth?: string;
40
47
  listStyle?: string;
41
48
  }
@@ -0,0 +1,23 @@
1
+ interface StyleMap {
2
+ [property: string]: string;
3
+ }
4
+ export interface DomNode {
5
+ tagName: string;
6
+ attributes: Record<string, string>;
7
+ style: StyleMap;
8
+ children: DomNode[];
9
+ parent: DomNode | null;
10
+ rawHtml: string;
11
+ }
12
+ export default class MiniDomParser {
13
+ private html;
14
+ root: DomNode;
15
+ constructor(html: string);
16
+ private makeNode;
17
+ parseStyle(styleStr: string): StyleMap;
18
+ private parseAttributes;
19
+ private parse;
20
+ private collectByTag;
21
+ querySelectorAllByTag(tag: string): DomNode[];
22
+ }
23
+ export {};
@@ -0,0 +1 @@
1
+ export default function injectLinkStyles(html: string, fallback?: Record<string, string>): string;