@templatical/renderer 0.52.0 → 0.52.1
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/README.md +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ const mjml = await renderToMjml(content, {
|
|
|
56
56
|
|
|
57
57
|
### With custom blocks
|
|
58
58
|
|
|
59
|
-
Editor consumers use `editor.toMjml()`. Headless callers pass the registered definitions as `customBlocks`. Install the optional `liquidjs` peer (`^10.30.
|
|
59
|
+
Editor consumers use `editor.toMjml()`. Headless callers pass the registered definitions as `customBlocks`. Install the optional `liquidjs` peer (`^10.30.1`) in the server project:
|
|
60
60
|
|
|
61
61
|
```ts
|
|
62
62
|
import { renderToMjml } from '@templatical/renderer';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HEADING_LEVEL_FONT_SIZE, RICH_TEXT_SPACING, TITLE_FONT_WEIGHT, TITLE_LINE_HEIGHT, applyLayout, assertNoSlotInContent, assertNoWrapperInContent, createCustomBlockLiquid, fillEmptyParagraphs, findOpenTagEnd, getTagAttrValue, isBlankRichText, isButton, isCustomBlock, isDivider, isHtml, isImage, isMenu, isParagraph, isSection, isSocialIcons, isSpacer, isTable, isTitle, isVideo, isWrapper, resolveBackgroundImage, resolveContentDirection, resolveFontStack, resolveHero, socialIconAssetDir, toBorderCss, toBorderDeclarations, toBorderRadiusCss } from "@templatical/types";
|
|
2
2
|
// src/render-context.ts
|
|
3
|
-
const DEFAULT_SOCIAL_ICONS_BASE_URL = `https://cdn.jsdelivr.net/npm/@templatical/renderer@0.52.
|
|
3
|
+
const DEFAULT_SOCIAL_ICONS_BASE_URL = `https://cdn.jsdelivr.net/npm/@templatical/renderer@0.52.1/assets/social`;
|
|
4
4
|
/**
|
|
5
5
|
* Immutable context passed through the block rendering chain.
|
|
6
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@templatical/renderer",
|
|
3
3
|
"description": "Render Templatical email templates to MJML",
|
|
4
|
-
"version": "0.52.
|
|
4
|
+
"version": "0.52.1",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@templatical/types": "0.52.
|
|
7
|
+
"@templatical/types": "0.52.1"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@jsquash/oxipng": "^2.3.0",
|
|
11
11
|
"@resvg/resvg-js": "^2.6.2",
|
|
12
|
-
"liquidjs": "^10.30.
|
|
12
|
+
"liquidjs": "^10.30.1",
|
|
13
13
|
"mjml": "^5.4.1",
|
|
14
14
|
"typescript": "^6.0.3",
|
|
15
15
|
"vitest": "^5.0.5"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"module": "./dist/index.js",
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"liquidjs": "^10.30.
|
|
39
|
+
"liquidjs": "^10.30.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"liquidjs": {
|