@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.
- package/dist/components/Column.d.ts +1 -0
- package/dist/components/Text.d.ts +7 -0
- package/dist/components/utils/MiniDomParser.d.ts +23 -0
- package/dist/components/utils/injectLinkStyles.d.ts +1 -0
- package/dist/index.cjs.js +277 -173
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +277 -173
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Body.js +0 -57
- package/dist/components/BodyDev.js +0 -57
- package/dist/components/Button.js +0 -327
- package/dist/components/Column.js +0 -127
- package/dist/components/Container.js +0 -179
- package/dist/components/Divider.js +0 -41
- package/dist/components/Font.js +0 -44
- package/dist/components/Head.js +0 -134
- package/dist/components/HeadDev.js +0 -311
- package/dist/components/Heading.js +0 -46
- package/dist/components/Html.js +0 -20
- package/dist/components/Icon.js +0 -276
- package/dist/components/Image.js +0 -119
- package/dist/components/MsoConditional.js +0 -19
- package/dist/components/Row.js +0 -157
- package/dist/components/Section.js +0 -65
- package/dist/components/Spacer.js +0 -40
- package/dist/components/Text.js +0 -42
- package/dist/index.js +0 -17
- package/dist/types/IInnerLink.js +0 -1
- package/dist/types/ResolvedFont.js +0 -1
- package/dist/types/index.js +0 -1
- package/dist/utils/isEqual.js +0 -1439
- package/dist/utils/memoUtils.js +0 -55
|
@@ -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;
|