@topol.io/editor 1.0.0-alpha.11 → 1.0.0-alpha.12

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 CHANGED
@@ -161,8 +161,8 @@ the editor at that origin, or build a loader with an explicit iframe URL.
161
161
  - `api.SAVED_BLOCKS` → `api.SAVED_SECTIONS`; `api.SYNCED_ROWS` is removed. Legacy SAVE/LOAD/PREVIEW and singular autosave endpoints are removed.
162
162
  - Language mutations and `defaultTemplateSettings.langs` use `code`, not `key`.
163
163
  - `topBarOptions` → `hideTopbarControls` (a list of controls to hide).
164
- - `authorize.userId` → `authorize.entityId`, which must be a non-negative integer or match `[A-Za-z0-9_-]+`. `userId` still works as a deprecated alias.
165
- - `hideControlPanel` / `showControlPanelExpand` / `toggleControlPanel()` → `hideSelectionPanel` / `hideSelectionPanelExpand` (inverted) / `toggleSelectionPanel()`. The old names still work as deprecated aliases.
164
+ - `authorize.userId` → `authorize.entityId`, which must be a non-negative integer or match `[A-Za-z0-9_-]+`. `userId` is no longer read.
165
+ - `hideControlPanel` / `showControlPanelExpand` / `toggleControlPanel()` → `hideSelectionPanel` / `hideSelectionPanelExpand` (inverted) / `toggleSelectionPanel()`. The old names are removed.
166
166
 
167
167
  The `TopolPlugin` alias and the default export are removed; import the named `EmailEditor`.
168
168
  `LandingPageEditor` retains its loader. Every instance method returns a Promise;
@@ -68,7 +68,7 @@ const w = "https://v4.email-assets.topol.io/loader/build.js", u = {
68
68
  class h extends Error {
69
69
  }
70
70
  let c, R = Promise.resolve();
71
- function z(e) {
71
+ function D(e) {
72
72
  if ((e == null ? void 0 : e.loaderUrl) !== void 0) {
73
73
  if (!e.loaderUrl.trim())
74
74
  throw new Error("[@topol.io/editor] loaderUrl must not be empty.");
@@ -79,7 +79,7 @@ function z(e) {
79
79
  throw new Error(`[@topol.io/editor] Unsupported stage "${t}". Use a supported stage or loaderUrl.`);
80
80
  return n;
81
81
  }
82
- function D(e, t) {
82
+ function j(e, t) {
83
83
  const o = R.then(async () => {
84
84
  try {
85
85
  return await L(e);
@@ -118,12 +118,12 @@ const O = {
118
118
  throw new Error("[@topol.io/editor] EmailEditor.init requires a browser. Call it after mounting.");
119
119
  if (!((g = e == null ? void 0 : e.config) != null && g.authorize))
120
120
  throw new Error("[@topol.io/editor] Editor v4 requires { config: { authorize, ... }, onSave, ... }. See docs/MIGRATION-editor-v4.md.");
121
- const o = e.config.authorize.entityId ?? e.config.authorize.userId;
121
+ const o = e.config.authorize.entityId;
122
122
  if (typeof o == "string" ? !/^[A-Za-z0-9_-]+$/.test(o) : typeof o != "number" || !Number.isInteger(o) || o < 0)
123
123
  throw new Error("[@topol.io/editor] authorize.entityId must be a URL-safe string or a non-negative integer.");
124
124
  if ((v = e.config.cloud) != null && v.enabled && typeof e.getNonce != "function")
125
125
  throw new Error("[@topol.io/editor] cloud.enabled requires nonce authentication: pass a top-level getNonce callback returning Promise<string>.");
126
- const n = z(t), i = (t == null ? void 0 : t.loaderUrl) === void 0 && n !== u.production ? u.production : void 0, r = await D(n, i), { onClose: d, onError: a, ...s } = e, l = r(s);
126
+ const n = D(t), i = (t == null ? void 0 : t.loaderUrl) === void 0 && n !== u.production ? u.production : void 0, r = await j(n, i), { onClose: d, onError: a, ...s } = e, l = r(s);
127
127
  let P;
128
128
  return Object.assign(l, {
129
129
  destroy: () => P ?? (P = Promise.resolve().then(() => l.close()))
@@ -137,7 +137,7 @@ let E;
137
137
  function y(e) {
138
138
  return typeof document < "u" ? new URL(e, document.baseURI).href : e;
139
139
  }
140
- function j(e) {
140
+ function z(e) {
141
141
  if (e !== void 0 && !e.trim())
142
142
  throw new Error("[@topol.io/editor] loaderUrl must not be empty.");
143
143
  const t = e ?? b;
@@ -157,7 +157,7 @@ const x = {
157
157
  */
158
158
  init: async (e, t) => {
159
159
  var a;
160
- const o = j(t == null ? void 0 : t.loaderUrl);
160
+ const o = z(t == null ? void 0 : t.loaderUrl);
161
161
  if (await I(o, m), !m())
162
162
  throw new Error("[@topol.io/editor] The Landing Page Editor loader loaded but window.LandingPageEditor is not defined.");
163
163
  E = y(o);
@@ -1 +1 @@
1
- (function(s,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(s=typeof globalThis<"u"?globalThis:s||self,u(s.TopolPlugin={}))})(this,function(s){"use strict";function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _=function(t,o,n){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");typeof o=="function"&&(n=o,o={}),o=o||{},n=n||function(){},r.type=o.type||"text/javascript",r.charset=o.charset||"utf8",r.async="async"in o?!!o.async:!0,r.src=t,o.attrs&&S(r,o.attrs),o.text&&(r.text=""+o.text);var d="onload"in r?v:A;d(r,n),r.onload||v(r,n),i.appendChild(r)};function S(e,t){for(var o in t)e.setAttribute(o,t[o])}function v(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function A(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const N=u(_),h=new Map;function U(e,t){if(t())return Promise.resolve();const o=h.get(e);if(o)return o;const n=new Promise((i,r)=>{const d=typeof document<"u"?R(e):null;if(d){const a=()=>{f(),i()},c=()=>{f(),d.remove(),r(new Error(`Failed to load script: ${e}`))},f=()=>{d.removeEventListener("load",a),d.removeEventListener("error",c)};d.addEventListener("load",a),d.addEventListener("error",c);return}N(e,a=>{var c;a!==null?((c=R(e))==null||c.remove(),r(a)):i()})}).finally(()=>{h.delete(e)});return h.set(e,n),n}function R(e){const t=document.getElementsByTagName("script");for(let o=0;o<t.length;o++)if(t[o].src===new URL(e,document.baseURI).href)return t[o];return null}const m="https://v4.email-assets.topol.io/loader/build.js",w={production:m,dev:m,staging:m},j="https://d10h8ga60f7b91.cloudfront.net/preview-app-{stage}/loader/build.js";class E extends Error{}let l,L=Promise.resolve();function C(e){if((e==null?void 0:e.loaderUrl)!==void 0){if(!e.loaderUrl.trim())throw new Error("[@topol.io/editor] loaderUrl must not be empty.");return e.loaderUrl}const t=(e==null?void 0:e.stage)??"production",n=typeof t=="number"||/^\d+$/.test(t)?j.replace("{stage}",String(t)):w[t];if(!n)throw new Error(`[@topol.io/editor] Unsupported stage "${t}". Use a supported stage or loaderUrl.`);return n}function z(e,t){const o=L.then(async()=>{try{return await b(e)}catch(n){if(n instanceof E||t===void 0)throw n;const i=await b(t);return l==null||l.urls.add(new URL(e,document.baseURI).href),i}});return L=o.catch(()=>{}),o}async function b(e){const t=new URL(e,document.baseURI).href;if(l){if(l.urls.has(t))return l.factory;throw new E("[@topol.io/editor] Editor v4 supports one loader URL per page. Reload the page to switch environments.")}const o=t===new URL(w.production,document.baseURI).href&&typeof window.TopolEmailEditor=="function";if(!o&&(typeof window.TopolEmailEditor=="function"||Array.from(document.scripts).some(i=>i.src===t)))throw new E("[@topol.io/editor] Cannot initialize from a host-provided loader with unknown lifecycle. Remove the script, reload the page, and let EmailEditor.init load the requested URL.");if(await U(e,()=>o),typeof window.TopolEmailEditor!="function"){for(const i of Array.from(document.scripts))i.src===t&&i.remove();throw new Error("[@topol.io/editor] The loader did not define window.TopolEmailEditor. Use an editor v4 loader.")}const n=window.TopolEmailEditor;return l={urls:new Set([t]),factory:n},n}const D={async init(e,t){var P,I;if(typeof window>"u"||typeof document>"u")throw new Error("[@topol.io/editor] EmailEditor.init requires a browser. Call it after mounting.");if(!((P=e==null?void 0:e.config)!=null&&P.authorize))throw new Error("[@topol.io/editor] Editor v4 requires { config: { authorize, ... }, onSave, ... }. See docs/MIGRATION-editor-v4.md.");const o=e.config.authorize.entityId??e.config.authorize.userId;if(typeof o=="string"?!/^[A-Za-z0-9_-]+$/.test(o):typeof o!="number"||!Number.isInteger(o)||o<0)throw new Error("[@topol.io/editor] authorize.entityId must be a URL-safe string or a non-negative integer.");if((I=e.config.cloud)!=null&&I.enabled&&typeof e.getNonce!="function")throw new Error("[@topol.io/editor] cloud.enabled requires nonce authentication: pass a top-level getNonce callback returning Promise<string>.");const n=C(t),i=(t==null?void 0:t.loaderUrl)===void 0&&n!==w.production?w.production:void 0,r=await z(n,i),{onClose:d,onError:a,...c}=e,f=r(c);let x;return Object.assign(f,{destroy:()=>x??(x=Promise.resolve().then(()=>f.close()))})}},T="https://v1.page-assets.topol.io/loader/build.js";function g(){return typeof window<"u"&&typeof window.LandingPageEditor=="function"}let y;function p(e){return typeof document<"u"?new URL(e,document.baseURI).href:e}function O(e){if(e!==void 0&&!e.trim())throw new Error("[@topol.io/editor] loaderUrl must not be empty.");const t=e??T;if(!g())return y=void 0,t;if((y??p(T))!==p(t))throw new Error("[@topol.io/editor] The Landing Page Editor supports one loader URL per page. Reload the page to switch environments.");return t}const M={init:async(e,t)=>{var a;const o=O(t==null?void 0:t.loaderUrl);if(await U(o,g),!g())throw new Error("[@topol.io/editor] The Landing Page Editor loader loaded but window.LandingPageEditor is not defined.");y=p(o);const{onClose:n,...i}=e,r=window.LandingPageEditor(i),d=((a=r.destroy)==null?void 0:a.bind(r))??(()=>r.close());return r.destroy=()=>d(),r}};s.EmailEditor=D,s.LandingPageEditor=M,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
1
+ (function(s,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(s=typeof globalThis<"u"?globalThis:s||self,u(s.TopolPlugin={}))})(this,function(s){"use strict";function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _=function(t,o,n){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");typeof o=="function"&&(n=o,o={}),o=o||{},n=n||function(){},r.type=o.type||"text/javascript",r.charset=o.charset||"utf8",r.async="async"in o?!!o.async:!0,r.src=t,o.attrs&&S(r,o.attrs),o.text&&(r.text=""+o.text);var d="onload"in r?v:A;d(r,n),r.onload||v(r,n),i.appendChild(r)};function S(e,t){for(var o in t)e.setAttribute(o,t[o])}function v(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function A(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const N=u(_),m=new Map;function U(e,t){if(t())return Promise.resolve();const o=m.get(e);if(o)return o;const n=new Promise((i,r)=>{const d=typeof document<"u"?R(e):null;if(d){const a=()=>{f(),i()},c=()=>{f(),d.remove(),r(new Error(`Failed to load script: ${e}`))},f=()=>{d.removeEventListener("load",a),d.removeEventListener("error",c)};d.addEventListener("load",a),d.addEventListener("error",c);return}N(e,a=>{var c;a!==null?((c=R(e))==null||c.remove(),r(a)):i()})}).finally(()=>{m.delete(e)});return m.set(e,n),n}function R(e){const t=document.getElementsByTagName("script");for(let o=0;o<t.length;o++)if(t[o].src===new URL(e,document.baseURI).href)return t[o];return null}const h="https://v4.email-assets.topol.io/loader/build.js",w={production:h,dev:h,staging:h},j="https://d10h8ga60f7b91.cloudfront.net/preview-app-{stage}/loader/build.js";class E extends Error{}let l,L=Promise.resolve();function C(e){if((e==null?void 0:e.loaderUrl)!==void 0){if(!e.loaderUrl.trim())throw new Error("[@topol.io/editor] loaderUrl must not be empty.");return e.loaderUrl}const t=(e==null?void 0:e.stage)??"production",n=typeof t=="number"||/^\d+$/.test(t)?j.replace("{stage}",String(t)):w[t];if(!n)throw new Error(`[@topol.io/editor] Unsupported stage "${t}". Use a supported stage or loaderUrl.`);return n}function D(e,t){const o=L.then(async()=>{try{return await b(e)}catch(n){if(n instanceof E||t===void 0)throw n;const i=await b(t);return l==null||l.urls.add(new URL(e,document.baseURI).href),i}});return L=o.catch(()=>{}),o}async function b(e){const t=new URL(e,document.baseURI).href;if(l){if(l.urls.has(t))return l.factory;throw new E("[@topol.io/editor] Editor v4 supports one loader URL per page. Reload the page to switch environments.")}const o=t===new URL(w.production,document.baseURI).href&&typeof window.TopolEmailEditor=="function";if(!o&&(typeof window.TopolEmailEditor=="function"||Array.from(document.scripts).some(i=>i.src===t)))throw new E("[@topol.io/editor] Cannot initialize from a host-provided loader with unknown lifecycle. Remove the script, reload the page, and let EmailEditor.init load the requested URL.");if(await U(e,()=>o),typeof window.TopolEmailEditor!="function"){for(const i of Array.from(document.scripts))i.src===t&&i.remove();throw new Error("[@topol.io/editor] The loader did not define window.TopolEmailEditor. Use an editor v4 loader.")}const n=window.TopolEmailEditor;return l={urls:new Set([t]),factory:n},n}const O={async init(e,t){var P,I;if(typeof window>"u"||typeof document>"u")throw new Error("[@topol.io/editor] EmailEditor.init requires a browser. Call it after mounting.");if(!((P=e==null?void 0:e.config)!=null&&P.authorize))throw new Error("[@topol.io/editor] Editor v4 requires { config: { authorize, ... }, onSave, ... }. See docs/MIGRATION-editor-v4.md.");const o=e.config.authorize.entityId;if(typeof o=="string"?!/^[A-Za-z0-9_-]+$/.test(o):typeof o!="number"||!Number.isInteger(o)||o<0)throw new Error("[@topol.io/editor] authorize.entityId must be a URL-safe string or a non-negative integer.");if((I=e.config.cloud)!=null&&I.enabled&&typeof e.getNonce!="function")throw new Error("[@topol.io/editor] cloud.enabled requires nonce authentication: pass a top-level getNonce callback returning Promise<string>.");const n=C(t),i=(t==null?void 0:t.loaderUrl)===void 0&&n!==w.production?w.production:void 0,r=await D(n,i),{onClose:d,onError:a,...c}=e,f=r(c);let x;return Object.assign(f,{destroy:()=>x??(x=Promise.resolve().then(()=>f.close()))})}},T="https://v1.page-assets.topol.io/loader/build.js";function y(){return typeof window<"u"&&typeof window.LandingPageEditor=="function"}let g;function p(e){return typeof document<"u"?new URL(e,document.baseURI).href:e}function z(e){if(e!==void 0&&!e.trim())throw new Error("[@topol.io/editor] loaderUrl must not be empty.");const t=e??T;if(!y())return g=void 0,t;if((g??p(T))!==p(t))throw new Error("[@topol.io/editor] The Landing Page Editor supports one loader URL per page. Reload the page to switch environments.");return t}const M={init:async(e,t)=>{var a;const o=z(t==null?void 0:t.loaderUrl);if(await U(o,y),!y())throw new Error("[@topol.io/editor] The Landing Page Editor loader loaded but window.LandingPageEditor is not defined.");g=p(o);const{onClose:n,...i}=e,r=window.LandingPageEditor(i),d=((a=r.destroy)==null?void 0:a.bind(r))??(()=>r.close());return r.destroy=()=>d(),r}};s.EmailEditor=O,s.LandingPageEditor=M,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -11,7 +11,6 @@ export declare const ApiSchema: z.ZodObject<{
11
11
  PREMADE_TEMPLATES: z.ZodOptional<z.ZodString>;
12
12
  PREMADE_TEMPLATE_CATEGORIES: z.ZodOptional<z.ZodString>;
13
13
  PREMADE_TEMPLATE_KEYWORDS: z.ZodOptional<z.ZodString>;
14
- PREMADE_TEMPLATES_KEYWORDS: z.ZodOptional<z.ZodString>;
15
14
  }, z.core.$strip>;
16
15
  export declare const LockedApiSchema: z.ZodObject<{
17
16
  AUTHORIZE: z.ZodString;
@@ -178,9 +178,6 @@ export declare const HostCallbacksSchema: z.ZodObject<{
178
178
  onUnsavedChangesChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
179
179
  hasUnsavedChanges: z.ZodBoolean;
180
180
  }, z.core.$strip>], null>, z.ZodVoid>>;
181
- onEdittedWithoutSaveChanged: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
182
- value: z.ZodBoolean;
183
- }, z.core.$strip>], null>, z.ZodVoid>>;
184
181
  onOpenCustomBlockDialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
185
182
  block: z.ZodUnknown;
186
183
  }, z.core.$strip>], null>, z.ZodVoid>>;
@@ -4234,7 +4234,6 @@ export declare const TemplateSettingsSchema: z.ZodObject<{
4234
4234
  }, z.core.$strip>;
4235
4235
  export declare const TopolTemplateSettingsSchema: z.ZodObject<{
4236
4236
  templateColor: z.ZodCatch<z.ZodOptional<z.ZodString>>;
4237
- "template-color": z.ZodCatch<z.ZodOptional<z.ZodString>>;
4238
4237
  body: z.ZodCatch<z.ZodOptional<z.ZodObject<{
4239
4238
  color: z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
4240
4239
  "font-style": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
@@ -14,6 +14,4 @@ export default interface IAPI {
14
14
  PREMADE_TEMPLATES?: string;
15
15
  PREMADE_TEMPLATE_CATEGORIES?: string;
16
16
  PREMADE_TEMPLATE_KEYWORDS?: string;
17
- /** @deprecated Use `PREMADE_TEMPLATE_KEYWORDS`. */
18
- PREMADE_TEMPLATES_KEYWORDS?: string;
19
17
  }
@@ -17,7 +17,5 @@ export default interface IAPIBlockProperties {
17
17
  disabled?: boolean;
18
18
  /** Merge tags offered for the items of this block. */
19
19
  dynamicMergeTags?: IAPIBlockMergeTag[];
20
- /** @deprecated Use `dynamicMergeTags`. */
21
- dynamicMergetags?: IAPIBlockMergeTag[];
22
20
  }
23
21
  export {};
@@ -1,18 +1,6 @@
1
- type EntityId = string | number;
2
- /**
3
- * `entityId` names the account the editor works for. The deprecated `userId` is the same value
4
- * under its old name; when both are set and differ, `entityId` wins.
5
- */
1
+ /** `entityId` names the account the editor works for. */
6
2
  export type IAuthorize = {
7
3
  apiKey: string;
8
- } & ({
9
4
  /** URL-safe [A-Za-z0-9_-]+ string or a non-negative integer. */
10
- entityId: EntityId;
11
- /** @deprecated Use `entityId`. Accepted until the next major. */
12
- userId?: EntityId;
13
- } | {
14
- entityId?: undefined;
15
- /** @deprecated Use `entityId`. Accepted until the next major. */
16
- userId: EntityId;
17
- });
18
- export {};
5
+ entityId: string | number;
6
+ };
@@ -50,18 +50,10 @@ export default interface IEmailCallbacks extends INonceAuthCallbacks, ICloudCall
50
50
  onUnsavedChangesChange?(payload: {
51
51
  hasUnsavedChanges: boolean;
52
52
  }): void;
53
- /** @deprecated Use `onUnsavedChangesChange`. Fires alongside it; the editor logs a deprecation warning when it is passed. */
54
- onEdittedWithoutSaveChanged?(payload: {
55
- value: boolean;
56
- }): void;
57
53
  /** Called when hidden elements are shown or hidden: by the top-bar switch, `toggleHiddenElementsVisibility()` or the reveal on device switch. */
58
54
  onHiddenElementsVisibilityChange?(payload: {
59
55
  visible: boolean;
60
56
  }): void;
61
- /** @deprecated Use `onHiddenElementsVisibilityChange`. Fires only on the reveal on device switch, always with `value: false`; the editor logs a deprecation warning when it is passed. */
62
- onBlocksAndStructuresVisibilityChange?(payload: {
63
- value: boolean;
64
- }): void;
65
57
  onOpenCustomBlockDialog?(payload: {
66
58
  block: unknown;
67
59
  }): void;
@@ -73,10 +65,6 @@ export default interface IEmailCallbacks extends INonceAuthCallbacks, ICloudCall
73
65
  onTestingEmailsChange?(payload: {
74
66
  emails: string[];
75
67
  }): void;
76
- /** @deprecated Use `onTestingEmailsChange`. Fires right after it; the editor logs a deprecation warning when it is passed. */
77
- updateTestingEmailAddresses?(payload: {
78
- emails: string[];
79
- }): void;
80
68
  onEditorError?(payload: IEmailErrorPayload): void;
81
69
  onLanguageCreated?(payload: ILanguageChangePayload): void;
82
70
  onLanguageDeleted?(payload: ILanguageChangePayload): void;
@@ -67,8 +67,6 @@ export default interface IEmailConfig {
67
67
  emailBackgroundColor?: string;
68
68
  /** Background color of sections. */
69
69
  sectionBackgroundColor?: string;
70
- /** @deprecated Use `sectionBackgroundColor`. */
71
- blockBackgroundColor?: string;
72
70
  buttonsBackgroundColor?: string;
73
71
  hyperlinkColor?: string;
74
72
  h1?: {
@@ -97,12 +95,6 @@ export default interface IEmailConfig {
97
95
  sectionPadding?: string;
98
96
  lineHeight?: number;
99
97
  stackColumns?: boolean;
100
- /** @deprecated Use `sectionPadding`. */
101
- "structure-margin"?: string;
102
- /** @deprecated Use `lineHeight`. */
103
- "line-height"?: number;
104
- /** @deprecated Use `stackColumns`. */
105
- "stack-columns"?: boolean;
106
98
  langs?: DefaultTemplateLangsSchema;
107
99
  };
108
100
  disableAiAssistant?: boolean;
@@ -129,8 +121,6 @@ export default interface IEmailConfig {
129
121
  googlePromotionalAnnotation?: boolean;
130
122
  helpdesk?: IHelpdesk;
131
123
  hideSettingsTab?: boolean;
132
- /** @deprecated Use `hideSelectionPanel`; it wins when both are set. */
133
- hideControlPanel?: boolean;
134
124
  hideSelectionPanel?: boolean;
135
125
  hideSelectionPanelExpand?: boolean;
136
126
  htmlDesktopFirst?: boolean;
@@ -165,11 +155,6 @@ export default interface IEmailConfig {
165
155
  label: string;
166
156
  value: string;
167
157
  }[];
168
- /** @deprecated Use `productMergeTags`. */
169
- productMergetagTags?: {
170
- label: string;
171
- value: string;
172
- }[];
173
158
  permissions?: {
174
159
  canLockBlocks?: boolean;
175
160
  canLockSections?: boolean;
@@ -193,8 +178,6 @@ export default interface IEmailConfig {
193
178
  renameTemplate?: boolean;
194
179
  role?: "manager" | "editor" | "reader";
195
180
  savedSections?: ISavedSection[] | boolean | null;
196
- /** @deprecated Use `hideSelectionPanelExpand` (inverted); it wins when both are set. */
197
- showControlPanelExpand?: boolean;
198
181
  showUnsavedDialogBeforeExit?: boolean;
199
182
  smartMergeTags?: {
200
183
  enabled: boolean;
@@ -36,8 +36,6 @@ export default interface IEmailEditorInstance {
36
36
  changeEmailToMobile: () => Promise<void>;
37
37
  changeEmailToDesktop: () => Promise<void>;
38
38
  toggleHiddenElementsVisibility: () => Promise<void>;
39
- /** @deprecated Use `toggleHiddenElementsVisibility`. */
40
- toggleBlocksAndStructuresVisibility: () => Promise<void>;
41
39
  updateCustomBlockContent: (content: string) => Promise<void>;
42
40
  refreshComments: (key: string) => Promise<void>;
43
41
  refreshSyncedSections: () => Promise<void>;
@@ -62,7 +60,5 @@ export default interface IEmailEditorInstance {
62
60
  /** Returns the template's language mutations (also fires onGetMutations). */
63
61
  getMutations: () => Promise<ILanguageMutation[]>;
64
62
  toggleSelectionPanel: () => Promise<void>;
65
- /** @deprecated Use `toggleSelectionPanel`. */
66
- toggleControlPanel: () => Promise<void>;
67
63
  updateTemplate: (json: unknown, options?: IUpdateTemplateOptions) => Promise<void>;
68
64
  }
@@ -122,13 +122,6 @@ export interface ILandingPageCallbacks extends INonceAuthCallbacks {
122
122
  onUnsavedChangesChange?(payload: {
123
123
  hasUnsavedChanges: boolean;
124
124
  }): void;
125
- /**
126
- * @deprecated Use `onUnsavedChangesChange`. Fires alongside it with `{ value }`; the editor logs a
127
- * deprecation warning when it is passed.
128
- */
129
- onEdittedWithoutSaveChanged?(payload: {
130
- value: boolean;
131
- }): void;
132
125
  /**
133
126
  * Called when a custom block dialog should be opened. `block` is the custom block data.
134
127
  */
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "author": "Topol.io",
13
13
  "homepage": "https://topol.io",
14
14
  "license": "Apache-2.0",
15
- "version": "1.0.0-alpha.11",
15
+ "version": "1.0.0-alpha.12",
16
16
  "files": [
17
17
  "dist"
18
18
  ],