@templatical/editor 0.36.0 → 0.37.0
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/bundle-stats.json +4 -4
- package/dist/cdn/chunks/{src-DZ0C9mH7.js → src-Ozknnj-v.js} +2 -2
- package/dist/cdn/chunks/{src-DZ0C9mH7.js.map → src-Ozknnj-v.js.map} +1 -1
- package/dist/cdn/editor.js +5 -3
- package/dist/cdn/editor.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/templatical-editor.js +4 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1051,6 +1051,19 @@ export declare interface TemplaticalEditorConfig {
|
|
|
1051
1051
|
*/
|
|
1052
1052
|
htmlBlockPreview?: HtmlBlockPreviewConfig;
|
|
1053
1053
|
fonts?: FontsConfig;
|
|
1054
|
+
/**
|
|
1055
|
+
* Base URL for the social-icon PNGs the renderer references in exported MJML
|
|
1056
|
+
* (the `<mj-image>` src for each Social block icon). Forwarded to
|
|
1057
|
+
* `@templatical/renderer`’s `socialIconsBaseUrl`; when omitted the renderer
|
|
1058
|
+
* uses its version-pinned jsDelivr default. Set it to self-host the icons
|
|
1059
|
+
* from your own origin. Trailing slash optional.
|
|
1060
|
+
*
|
|
1061
|
+
* Applies to the local `toMjml()` / `toHtml()` (via `compileMjml`) path only.
|
|
1062
|
+
* A `render.toMjml` provider wins over the bundled renderer and never sees
|
|
1063
|
+
* this — pass the URL to your own `renderToMjml` there. The editing canvas is
|
|
1064
|
+
* unaffected either way (it draws icons as inline SVG).
|
|
1065
|
+
*/
|
|
1066
|
+
socialIconsBaseUrl?: string;
|
|
1054
1067
|
/**
|
|
1055
1068
|
* Editor-wide color-picker palette. `presets` appear as a clickable grid in
|
|
1056
1069
|
* every color picker popover (block toolbars, template settings, rich-text
|
|
@@ -616,7 +616,8 @@ async function rr(e) {
|
|
|
616
616
|
...r ? {
|
|
617
617
|
customFonts: r.customFonts,
|
|
618
618
|
defaultFallbackFont: r.defaultFallback
|
|
619
|
-
} : {}
|
|
619
|
+
} : {},
|
|
620
|
+
...e.socialIconsBaseUrl ? { socialIconsBaseUrl: e.socialIconsBaseUrl } : {}
|
|
620
621
|
});
|
|
621
622
|
}
|
|
622
623
|
//#endregion
|
|
@@ -5357,7 +5358,8 @@ async function Id(e, t) {
|
|
|
5357
5358
|
getContent: () => c.getContent(),
|
|
5358
5359
|
renderCustomBlock: (e) => c.renderCustomBlock(e),
|
|
5359
5360
|
getCustomBlockStylesheet: (e) => c.getCustomBlockStylesheet(e),
|
|
5360
|
-
getFonts: () => wd(i)
|
|
5361
|
+
getFonts: () => wd(i),
|
|
5362
|
+
socialIconsBaseUrl: e.socialIconsBaseUrl
|
|
5361
5363
|
})
|
|
5362
5364
|
});
|
|
5363
5365
|
return c;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@templatical/editor",
|
|
3
3
|
"description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.37.0",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@lucide/vue": "^1.43.0",
|
|
8
|
-
"@templatical/core": "0.
|
|
9
|
-
"@templatical/media-library": "0.
|
|
10
|
-
"@templatical/quality": "0.
|
|
11
|
-
"@templatical/types": "0.
|
|
8
|
+
"@templatical/core": "0.37.0",
|
|
9
|
+
"@templatical/media-library": "0.37.0",
|
|
10
|
+
"@templatical/quality": "0.37.0",
|
|
11
|
+
"@templatical/types": "0.37.0",
|
|
12
12
|
"@tiptap/core": "^3.31.3",
|
|
13
13
|
"@tiptap/extension-color": "^3.31.3",
|
|
14
14
|
"@tiptap/extension-font-family": "^3.31.3",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"license": "FSL-1.1-MIT",
|
|
65
65
|
"module": "./dist/templatical-editor.js",
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@templatical/quality": "0.
|
|
68
|
-
"@templatical/renderer": "0.
|
|
67
|
+
"@templatical/quality": "0.37.0",
|
|
68
|
+
"@templatical/renderer": "0.37.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"@templatical/renderer": {
|