@emailmaker/emailmaker 1.1.71 → 1.1.72
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/{emailmaker-core.614726aa.js → emailmaker-core.bd3c8144.js} +6 -6
- package/emailmaker-esm.js +127 -127
- package/{emailmaker-po.614726aa.js → emailmaker-po.bd3c8144.js} +1 -1
- package/emailmaker.d.ts +62 -0
- package/emailmaker.js +3 -3
- package/iframe/js/amp.D4LpeCG3.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.B-wCbIo7.js +1 -1
- package/npm-publish.manifest.json +8 -8
- package/package.json +1 -1
- package/static/core/{53fb6a84.js → 34b3c6f9.js} +7 -7
- package/static/core/{d2975cfe.js → 5da8610f.js} +1289 -1284
- package/static/core/{95c1e180.js → 84e7cbac.js} +3 -3
- package/static/core/8815169a.js +3189 -0
- package/static/core/{654b7a89.js → 893bd50e.js} +10053 -9908
- package/static/core/{e700a71a2.js → 98529d8d2.js} +4 -4
- package/static/core/{3cf11ac9.js → ab6da7f5.js} +7 -7
- package/static/core/{3137210f.js → ce8ca64c.js} +3 -3
- package/static/core/{4d14fed2.js → dd625043.js} +6 -6
- package/static/core/{67830da5.js → dda6d713.js} +4 -4
- package/static/core/{13d868f1.js → e84eccff.js} +555 -552
- package/static/core/{4a3fcabb2.js → ec8d567d2.js} +5 -5
- package/static/core/{18d7246c.js → fab6e3c1.js} +1478 -1458
- package/two_step_headless_plugin.html +1 -1
- package/static/core/319cf5c8.js +0 -3150
- /package/iframe/{iframe-eblock.614726aa.html → iframe-eblock.bd3c8144.html} +0 -0
- /package/iframe/{iframe.614726aa.html → iframe.bd3c8144.html} +0 -0
package/emailmaker.d.ts
CHANGED
|
@@ -834,6 +834,63 @@ export declare namespace ExportedApi {
|
|
|
834
834
|
syntax: string[];
|
|
835
835
|
items: MergeTag[];
|
|
836
836
|
}
|
|
837
|
+
/** Font face rendering style, as in CSS `font-style`. */
|
|
838
|
+
export type ProjectStyleFontStyle = 'normal' | 'italic' | 'oblique';
|
|
839
|
+
/**
|
|
840
|
+
* Brand color offered in the editor color pickers.
|
|
841
|
+
* Order follows the array; `id` is optional and only used to match the record back to your data.
|
|
842
|
+
*/
|
|
843
|
+
export type ProjectStyleColor = {
|
|
844
|
+
/** Human-readable name shown in project styles, e.g. "Primary brand". */
|
|
845
|
+
name: string;
|
|
846
|
+
/** `#rrggbb`; a value without `#` is accepted and normalized. */
|
|
847
|
+
hex: string;
|
|
848
|
+
id?: string;
|
|
849
|
+
};
|
|
850
|
+
/**
|
|
851
|
+
* Custom font of the project: appears in the font picker and is applied on the canvas.
|
|
852
|
+
* The source kind is derived from **`source_url`** — a `.css` address or Google Fonts is attached
|
|
853
|
+
* as a stylesheet `<link>`, anything else as a font file in `@font-face`.
|
|
854
|
+
*/
|
|
855
|
+
export type ProjectStyleFont = {
|
|
856
|
+
/** CSS font family name, e.g. "Inter". */
|
|
857
|
+
family: string;
|
|
858
|
+
/** Absolute `https:` address of the font file or of the stylesheet. */
|
|
859
|
+
source_url: string;
|
|
860
|
+
/** Label in the font picker; defaults to **`family`**. */
|
|
861
|
+
name?: string;
|
|
862
|
+
/** CSS `font-weight`; defaults to `400`. */
|
|
863
|
+
weight?: string;
|
|
864
|
+
/** Defaults to `normal`. */
|
|
865
|
+
style?: ProjectStyleFontStyle;
|
|
866
|
+
id?: string;
|
|
867
|
+
};
|
|
868
|
+
/**
|
|
869
|
+
* Social network link of the project: prefills the "Social" element instead of the placeholder.
|
|
870
|
+
* Icon comes either from the built-in catalog (**`icon_key`**) or from **`icon_url`**; an icon
|
|
871
|
+
* given by URL must be a raster image — email clients do not render SVG.
|
|
872
|
+
*/
|
|
873
|
+
export type ProjectStyleSocial = {
|
|
874
|
+
/** Absolute `https:` link; a value without a scheme is normalized to `https://`. */
|
|
875
|
+
url: string;
|
|
876
|
+
/** Human-readable name, e.g. "Main community". */
|
|
877
|
+
name?: string;
|
|
878
|
+
/** Platform key of the built-in icon catalog: `vk`, `telegram`, `youtube`, … */
|
|
879
|
+
icon_key?: string;
|
|
880
|
+
/** Absolute `https:` address of a raster icon; wins over **`icon_key`**. */
|
|
881
|
+
icon_url?: string;
|
|
882
|
+
id?: string;
|
|
883
|
+
};
|
|
884
|
+
/**
|
|
885
|
+
* Brand assets of the project supplied by the host: palette, custom fonts and social links.
|
|
886
|
+
* Read-only for the editor. Records that fail validation are skipped with a console warning;
|
|
887
|
+
* lists are capped at 32 colors, 20 fonts and 20 socials.
|
|
888
|
+
*/
|
|
889
|
+
export type ProjectStyles = {
|
|
890
|
+
colors?: ProjectStyleColor[];
|
|
891
|
+
fonts?: ProjectStyleFont[];
|
|
892
|
+
socials?: ProjectStyleSocial[];
|
|
893
|
+
};
|
|
837
894
|
type LimitName = 'AiImgCount' | 'AiChatCount' | 'AiGeneratorCount' |
|
|
838
895
|
/** @deprecated For plugin hosts: use per-type `LinkCheckCount` / `ImageCheckCount` / `SpamCheckCount` instead. */
|
|
839
896
|
'OptimizationCount' | 'LinkCheckCount' | 'ImageCheckCount' | 'SpamCheckCount';
|
|
@@ -1131,6 +1188,11 @@ export declare namespace ExportedApi {
|
|
|
1131
1188
|
mergeTags?: MergeTagsInfo;
|
|
1132
1189
|
/** Toolbar / sidebar button that opens merge-tag picker (independent from **`mergeTags`** data presence). */
|
|
1133
1190
|
mergeTagsShow?: boolean;
|
|
1191
|
+
/**
|
|
1192
|
+
* Brand palette, custom fonts and social links of the project. In the plugin this is the only
|
|
1193
|
+
* source of project styles — the SaaS endpoint is not reachable with a host token.
|
|
1194
|
+
*/
|
|
1195
|
+
projectStyles?: ProjectStyles;
|
|
1134
1196
|
/** Preset addresses for “send test email” quick-pick (UI convenience). */
|
|
1135
1197
|
testEmails?: string[];
|
|
1136
1198
|
/** Sidebar UI switch for alternate/simple configuration layout (persisted runtime key **`configSwither`**). */
|
package/emailmaker.js
CHANGED
|
@@ -689,7 +689,7 @@ var __amdEnv = window.__emailmaker__ || (window.__emailmaker__ = {});
|
|
|
689
689
|
|
|
690
690
|
|
|
691
691
|
// Configure AMD loader
|
|
692
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"emailmaker-core.
|
|
692
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"emailmaker-core.bd3c8144.js","po":"emailmaker-po.bd3c8144.js"} });
|
|
693
693
|
|
|
694
694
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
695
695
|
if (!__emailmaker__.publicPath) {
|
|
@@ -1037,7 +1037,7 @@ if (!ns.assetUrl) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
if (!ns.version) {
|
|
1040
|
-
ns.version = "1.1.
|
|
1040
|
+
ns.version = "1.1.72";
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
var modules = ns.modules = Object.create(null);
|
|
@@ -2785,7 +2785,7 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
2785
2785
|
const r = S.get(e);
|
|
2786
2786
|
t.some((n) => n !== void 0 && n === r) && S.delete(e);
|
|
2787
2787
|
}
|
|
2788
|
-
var rn = "1.1.
|
|
2788
|
+
var rn = "1.1.72";
|
|
2789
2789
|
async function nn(e) {
|
|
2790
2790
|
await _e(typeof __emailmaker__ < "u" ? __emailmaker__ : void 0);
|
|
2791
2791
|
}
|