@templatical/types
Advanced tools
+33
-3
@@ -56,3 +56,4 @@ //#region src/blocks.d.ts | ||
| level: HeadingLevel; | ||
| color: string; | ||
| /** Text color. Unset = inherit the document-level `textColor`. */ | ||
| color?: string; | ||
| textAlign: "left" | "center" | "right"; | ||
@@ -144,3 +145,4 @@ fontFamily?: string; | ||
| fontFamily?: string; | ||
| color: string; | ||
| /** Base text/link color. Unset = inherit the document-level `textColor`. */ | ||
| color?: string; | ||
| linkColor?: string; | ||
@@ -170,3 +172,4 @@ textAlign: "left" | "center" | "right"; | ||
| fontFamily?: string; | ||
| color: string; | ||
| /** Text color. Unset = inherit the document-level `textColor`. */ | ||
| color?: string; | ||
| textAlign: "left" | "center" | "right"; | ||
@@ -282,2 +285,29 @@ } | ||
| backgroundColor: string; | ||
| /** | ||
| * Document-level default text color: the `<mj-text>` default in the rendered | ||
| * MJML, inherited by every text block (Title, Paragraph, Menu, Table) that | ||
| * doesn't set its own `color`. Required, defaulting to `#1a1a1a` (see | ||
| * `DEFAULT_TEMPLATE_DEFAULTS`); customize the default per-consumer via | ||
| * `templateDefaults`. A block's explicit `color` or an inline text-color | ||
| * mark overrides it. | ||
| */ | ||
| textColor: string; | ||
| /** | ||
| * Document-level link color: emitted as the global `a { color }` rule in the | ||
| * rendered MJML, so it cascades to every link — rich-text and menu alike. | ||
| * Optional: when unset, links inherit the surrounding text color | ||
| * (`color: inherit`), preserving the pre-#352 default. A per-block or | ||
| * per-item color (a Menu item's `color`, `MenuBlock.linkColor`) still | ||
| * overrides it. | ||
| */ | ||
| linkColor?: string; | ||
| /** | ||
| * Whether links are underlined document-wide: drives the global | ||
| * `a { text-decoration }` rule (`underline` when true, `none` when false). | ||
| * Required, defaulting to `true` (see `DEFAULT_TEMPLATE_DEFAULTS`) — the | ||
| * common, more accessible email default. Applies to body (rich-text) links; | ||
| * buttons and menu items carry their own inline `text-decoration` and are | ||
| * unaffected. Set `false` to render links without an underline. | ||
| */ | ||
| linkUnderline: boolean; | ||
| fontFamily: string; | ||
@@ -284,0 +314,0 @@ preheaderText?: string; |
+2
-3
@@ -129,3 +129,2 @@ //#region src/blocks.ts | ||
| level: 2, | ||
| color: "#1a1a1a", | ||
| textAlign: "left" | ||
@@ -178,3 +177,2 @@ }; | ||
| fontSize: 15, | ||
| color: "#1a1a1a", | ||
| textAlign: "center", | ||
@@ -191,3 +189,2 @@ separator: "|", | ||
| fontSize: 15, | ||
| color: "#1a1a1a", | ||
| textAlign: "left" | ||
@@ -234,2 +231,4 @@ }; | ||
| backgroundColor: "#ffffff", | ||
| textColor: "#1a1a1a", | ||
| linkUnderline: true, | ||
| fontFamily: "Arial", | ||
@@ -236,0 +235,0 @@ locale: "en" |
+2
-2
| { | ||
| "name": "@templatical/types", | ||
| "description": "Shared TypeScript types, block factory functions, and event emitter for Templatical email editor", | ||
| "version": "0.15.1", | ||
| "version": "0.16.0", | ||
| "bugs": "https://github.com/templatical/sdk/issues", | ||
@@ -9,3 +9,3 @@ "devDependencies": { | ||
| "vitest": "^4.1.10", | ||
| "@templatical/media-library": "0.15.1" | ||
| "@templatical/media-library": "0.16.0" | ||
| }, | ||
@@ -12,0 +12,0 @@ "exports": { |
Sorry, the diff of this file is too big to display
138153
2.65%1723
1.71%