Appearance
Options configurable in Topol Options
Topol options is the config object passed to TopolEmailEditor(), enabling or disabling editor features. Callbacks are not part of it: they are passed as top-level properties next to config (see the Callbacks Reference below). The full options interface is at the bottom of this page.
Options Reference
authorizeobjectrequiredRequired API key and entity ID pair ({ apiKey, entityId }) that initializes the editor. The entity ID identifies the account the editor works for. The token only works on domains listed in its configuration. Learn more
apiIAPIMaps editor features to your own backend endpoint URLs; when omitted, the editor uses Topol's built-in endpoints. Learn more
apiAuthorizationHeaderstring | objectAuthorization header attached to requests sent to your configured API endpoints. Learn more
apiBlocksobjectDefinitions of Custom API Blocks that pull items from your own feed endpoints. Requires Plugin for Business plan or higher. Learn more
autosaveIntervalnumber default: 60Interval in seconds between autosave attempts; values below 30 are raised to 30. Learn more
betaFeaturesobject default: all offOpt-in flags for experimental content blocks (carousel, rating; the loop flag is accepted but currently not read). Options, styling and rendered HTML of beta blocks may change in future releases. Learn more
chatAIboolean default: falseEnables the conversational AI Chat panel that receives the whole template as context. Requires Plugin Expansion plan or higher, plus AI configured on the account. Learn more
chatAIOnSegmentboolean default: falseAdds an AI Chat icon to individual sections, scoping the conversation to that section. Read only when chatAI is set; requires Plugin Expansion plan or higher. Learn more
clickTrackingOptOut{ provider: "sparkpost" }Lets users exclude individual links from click tracking: adds a Disable click tracking switch to the Button block and a matching choice to the text editor's link dialog. It does not turn tracking on or off; that stays with your sending service, and every link it tracks stays tracked unless a user switches it off. provider names the service you send through, which decides how the opt-out is written into the exported HTML: sparkpost adds data-msys-clicktrack="0" to the link. Independent of emailServiceProvider, which only selects the Merge Tag and condition syntax, so it also works when that option is mailchimp. Without the option the controls are hidden.
colorsstring[]Custom palette shown in the editor's color picker; a non-empty array replaces the built-in swatches. Learn more
contentBlocksobjectPer-block flags that disable, hide, or annotate individual content blocks in the sidebar. Validated as a whole - one unrecognized block name discards the entire configuration. Learn more
currentUserIOptionsUserIdentity of the person using the editor, used for autosave and comment attribution. Learn more
customBlocksCustomBlockData[]Your own block definitions added to the editor's block sidebar. Requires Plugin for Business plan or higher. Learn more
customFileManagerboolean default: falseReplaces the built-in File Manager with a callback into your own file-picking UI. Requires Plugin for Business plan or higher. Learn more
customFontsobjectFonts offered in the editor's font dropdown, appended to the built-in list (or replacing it with override: true). Not stored in the template, so supply it on every init. Learn more
defaultTemplateSettingsobjectPreset widths, colors and typography applied to newly created templates; loading a saved template replaces them. Learn more
disableAiAssistantboolean default: falseDisables the per-block AI writing assistant, which is on by default when the account has AI configured; also hides the Translate button in the Top Bar. Learn more
disableAlertsboolean default: falseStops the editor rendering its own notifications and routes them to the onAlert callback instead. Learn more
disableShortcutsboolean | EditorShortcut[] default: falseTurns the editor's keyboard shortcuts off: true disables all of them, an array only the listed ones. Values: save (Ctrl/Cmd+S), saveAndClose (Ctrl/Cmd+Shift+S), undo (Ctrl/Cmd+Z), redo (Ctrl/Cmd+Shift+Z), preview (Ctrl/Cmd+P), developerMode (Ctrl/Cmd+~), copy (Ctrl/Cmd+C of a selected section or block) and escape (deselect and close the open rail panel). A disabled shortcut is left to the browser. Useful when your host drives saving through editor.save() and must not receive exports it did not request.
disableExtendedComparatorsboolean default: falseRemoves the four numeric comparators from the conditional-content condition picker; the list comparators stay. Read only when enableSectionVariants is on. Learn more
emailServiceProvider"mailchimp" | "sparkpost" | "jinja"Selects the syntax the conditional and dynamic content is exported in: Mailchimp, SparkPost or Jinja ({% if %} / {% for %} statements, for hosts that render templates through a Jinja-compatible engine). Dynamic product and API block modes require "sparkpost" or "jinja". Learn more
enableAutosavesboolean default: falseTurns on periodic draft saving of the template to your own API endpoints (needs the AUTOSAVES api path). Learn more
enableCommentsboolean default: falseEnables in-template commenting and conversation threads. Requires Plugin for Business plan or higher. Learn more
enableDarkModeboolean default: falseAdds a dark mode toggle to the preview screen. Learn more
enableFileManagerInGifboolean default: falseExposes the custom file manager inside the GIF block's Custom Source tab; requires customFileManager: true. Learn more
enableImageToTextRatioboolean default: falseShows the template's image-to-text ratio in the Top Bar during Preview mode. Learn more
enableMergeTagPreviewboolean default: falseReplaces merge tags with test values inside Preview mode. Learn more
enableSectionVariantsboolean default: falseUnlocks the UI for adding conditional variants to sections. Requires Plugin for Business plan or higher. Learn more
enableSubjectLineboolean default: falseExposes a subject line field in the template settings tab. Learn more
fileManagerPreferencesobjectUI preferences for the built-in File Manager: the default file view (list or tiles), the Pexels integration, and the batch upload cap. Learn more
fontSizesnumber[]Font sizes offered in the size dropdown, as unitless pixel numbers; always replaces the default list (in the callout below). Learn more
helpdeskIHelpdeskConfigures contextual help links shown in the editor's panel. Currently not covered by the guide.
hideSelectionPanelboolean default: falseStarts the editor with the property panel (the selected element's settings) collapsed. Selecting an element opens it again. Learn more
hideSelectionPanelExpandboolean default: falseRemoves the built-in handle for collapsing and reopening the property panel; a panel collapsed by hideSelectionPanel then reopens only through editor.toggleSelectionPanel(). Learn more
hideSettingsTabboolean default: falseHas no effect in the current editor layout; kept so existing configurations stay valid. Learn more
htmlMinifiedboolean default: falseOutputs minified HTML on export.
imageCompressionOptionsobjectQuality and toggle settings for the automatic resize and re-encode applied to uploaded images (defaults in the callout below). Custom file manager uploads bypass this pipeline. Learn more
imageEditorboolean default: trueSet to false to turn off the built-in Image Editor: the Edit and Create new image buttons disappear from the image settings and from the built-in File Manager. An image saved from the Image Editor is uploaded by the editor itself, so disable it when every image must stay in your own storage. Learn more
imageEditorOptionsobjectNames of Image Editor control-panel sections to hide. Learn more
imageMaxSizenumber default: 2097152 (2 MB)Maximum size in bytes of an image uploaded through the built-in File Manager, checked after resize and compression. Learn more
languagestring default: "en"Two-letter ISO 639-1 code selecting the editor interface language; regional variants such as pt-BR are rejected. Learn more
languageMergeTagstring default: "TOPOL_TEMPLATE_LANG"Name of the merge tag used for language-based section variants. Learn more
lightboolean default: falseSwitches the editor interface to the light preset instead of the default dark one. Keep it consistent with theme.preset. Learn more
logicalOperatorsInsideVariantbooleanAllows chaining several conditions on one variant with AND or OR, and unlocks the is one of / is not one of list comparators, which expand into such a chain. Defaults on for SparkPost and Jinja and off for Mailchimp. Learn more
mainMenuAlign"left" | "right" default: "left"Places the rail of panels on the left or right side of the template; the property panel takes the opposite side. Does not switch the interface to RTL, which follows the language option. Learn more
mergeTagsarrayGroups and definitions of the merge tags users can insert into a template; passing the option replaces the built-in sample group (*|FIRST_NAME|*). Learn more
mobileFirstEnabledboolean default: trueTurns on the mobile/desktop canvas switch and per-device visibility controls. An editing aid only - generated HTML is unchanged. Learn more
multilingualboolean default: falseEnables multilingual template mutations and the language switcher; also switched on automatically when defaultTemplateSettings.langs is set. Learn more
premadeSectionsarray | object | falseCollections of prepared sections users can insert in one click. When omitted, Topol's bundled examples load; false hides the tab entirely. The advanced object form takes blocks plus a required override flag. Inside blocks, a preset marker such as { preset: "footer" } places one of Topol's default groups at that position. Learn more
premadeTemplatesboolean default: falseShows the premade template picker when the editor opens on an empty template. Learn more
premadeTemplatesOptionsobjectControls two elements of the premade template picker: the search input (hideSearch) and the per-template Delete button (showDelete). Learn more
productMergeTagsarrayMerge tags offered in the product block's dynamic dropdown; label is shown to the user, value is used by the renderer. The dropdown appears only when the provider supports dynamic blocks (emailServiceProvider: "sparkpost" or "jinja"). Learn more
role"manager" | "editor" | "reader"Predefined permission role for the user; when unset, the role system is off and nothing is restricted. Requires Plugin for Business plan or higher. Learn more
permissionsobjectIndividual permission flags applied on top of the selected role; ignored unless role is also set. Learn more
savedSectionsISavedSection[] | boolean default: falseEnables the saved sections library, seeded with a local array of sections (every section needs an id; one invalid section rejects the whole array). Learn more
syncedSectionsEnabledboolean default: falseEnables sections that stay synchronized across every template using them. Requires api.SAVED_SECTIONS; synced sections must be resolved server-side before rendering final HTML. Learn more
showUnsavedDialogBeforeExitboolean default: trueControls the browser confirmation shown when leaving the editor with unsaved changes. Only the literal value false disables it. Learn more
startWithOpenElementsPanelboolean default: falseOpens the Add element panel on the first load of the editor; reapplying options later does not reopen it. If the start screen with premade templates is shown, the panel opens once the user picks a template or starts from scratch. It stays closed on touch devices and narrow screens.
smartMergeTagsobjectMakes inserted merge tags clickable and swappable, and defines the merge tag syntax (default delimiters *| and |*). The enabled key is mandatory whenever the object is passed. Learn more
teamUsersIOptionsUser[]List of colleagues who can be @mentioned in comment threads; the current user is filtered out automatically. Learn more
templateIdnumber | stringIdentifier of the open template, sent with comment and autosave API requests. Learn more
testingEmailsboolean | string[]Switches test sends to multi-recipient mode: true keeps the address list in local storage, an array (capped at five) seeds it directly. In this mode the onTestSend email argument is always an array. Learn more
textEditor"tinymce" | "tiptap" default: "tinymce"Selects which rich-text engine powers text blocks. Learn more
themeITheme default: dark presetCustom overrides for the editor interface colors, border radius and font - the editor UI, not the emails. Requires Plugin Expansion plan or higher. Learn more
tinyConfigunknownConfiguration object passed through to the TinyMCE text editor; merged only one level deep, so any key you set replaces Topol's default for that key outright. Learn more
tiptapConfigobject default: { light: true }Configuration for the Tiptap editor: a light-toolbar flag and a merge-tag-name display flag. Passing the object replaces the default wholesale, so include light explicitly. Effective only when textEditor: "tiptap". Learn more
titlestring default: "Email editor"Template name displayed in the Window Bar, which is shown only when windowBar lists at least one button. Learn more
hideTopbarControlsstring[] default: []List of Top Bar elements to hide; empty or unset shows everything, unknown values are ignored silently. Replaces the former topBarOptions allowlist, which is no longer read. Learn more
renameTemplateboolean default: falseAdds a pencil icon next to the template name that fires the onTemplateRename callback. The editor does not rename anything itself - call editor.setTemplateName() to reflect the new name. Learn more
removeTopBarboolean default: falseRemoves the editor's default Top Bar entirely; saving and closing then become the host application's responsibility. Learn more
saveAndCloseButton"dropdown" | "separate" default: "dropdown"Where Save & Close lives when both save buttons are visible: under the Save button's … menu, or as a standalone button next to Save. Learn more
windowBarstring[]Controls shown in the optional Window Bar (fullscreen, close); the bar is hidden when unset. close requires an onEditorClose callback and does not save first. Learn more
Defaults worth knowing
fontSizesdefault list:11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 24, 30, 36, 48, 64.imageCompressionOptionsdefaults:qualityJpeg: 0.95,qualityPng: 0.8,enableAutoResize: true,enableCompression: true.- When
themeis not set, the editor uses the dark preset (light: trueswitches it to light); unknown presets fall back to dark. - Plan gating is silent: on plans below the required tier, gated options (
role,permissions,enableComments,apiBlocks,customBlocks,customFileManager,enableFileManagerInGif,enableSectionVariants, self-hostedapifile endpoints,chatAI,chatAIOnSegment,theme) are ignored with only a console warning. betaFeatures.loopis accepted by the schema but currently does nothing.
Callbacks Reference
Callbacks are not part of the options object. Pass them as top-level properties next to config when creating the editor; every callback receives a single payload object (or no argument at all):
js
const editor = TopolEmailEditor({
config: {
authorize: { apiKey: "YOUR_API_KEY", entityId: "user-123" },
},
onSave({ json, html, mutations, syncedSections }) {
/* ... */
},
});
editor.render("#app");Common pitfall
A callbacks: { ... } key inside config is ignored and no callback will ever fire. Always pass callbacks as top-level properties next to config.
onSave({ json, html, mutations, syncedSections })Fires when Save is clicked or editor.save() is called, handing over the template to store. May return a Promise to keep the saving state active until it settles. Learn more
onSaveAndClose({ json, html, mutations, syncedSections })Fires when the Save and Close button in the Top Bar is clicked. May return a Promise like onSave. Learn more
onTestSend({ email, json, html })Fires when a user sends a test email from the preview screen. email is a single address unless testingEmails is set, in which case it is always an array. Learn more
onOpenFileManager()Fires when a user clicks "Choose a file" in image, video or GIF properties; answer it with editor.chooseFile(). Learn more
onImageDelete({ items })Fires after one or more files or folders are successfully deleted from the built-in File Manager. Learn more
onLoaded()Fires after editor.load() finishes rendering the template. Learn more
onSavedSectionSave({ section })Fires when a user saves a section to the saved sections library in local-array mode; never fires for synced sections. Learn more
onSavedSectionRemove({ id })Fires when a user removes a saved section in local-array mode; stops firing once api.SAVED_SECTIONS is configured. Learn more
onSavedSectionEdit({ id })Fires when a user edits an existing saved section in local-array mode; stops firing once api.SAVED_SECTIONS is configured. Learn more
onInit()Fires when the editor is fully initialized. Learn more
onUndoChange({ count })Fires whenever the undo history changes, including after an ordinary edit. count is the number of steps that can currently be undone. Learn more
onRedoChange({ count })Fires whenever the redo history changes. count is the number of steps that can currently be redone. Learn more
onPreview({ html })Fires when the user enters Preview mode, with the rendered HTML. Learn more
onPreviewClose()Fires when the user leaves the preview screen using the editor's preview toggle (not when the host exits preview programmatically). Learn more
onAlert({ notification })Receives each editor notification in place of the built-in toast; fires only while disableAlerts is true. Learn more
onEditorClose()Fires when a user closes the editor from the close button in the Window Bar (windowBar: ["close"]). Closing does not save first. Learn more
onUnsavedChangesChange({ hasUnsavedChanges })Reports whether the template currently holds unsaved changes, on every transition in both directions. Learn more
onHiddenElementsVisibilityChange({ visible })Fires whenever elements hidden by mobile-first visibility settings are shown on the canvas or removed from it, with visible set to the new state. Learn more
onOpenCustomBlockDialog({ block })Fires when a user clicks the dialog button on a custom block defined with dialog: true; answer it with editor.updateCustomBlockContent(). Learn more
onTemplateRename({ name })Fires when a user clicks the rename icon next to the template name in the Window Bar (requires renameTemplate: true and a non-empty windowBar). name is the current template name - the editor has no rename input of its own, so collect the new name in your UI and apply it with editor.setTemplateName(). Learn more
onTemplateUpdated()Fires after a programmatic editor.updateTemplate() call has successfully applied the new template JSON. Learn more
onTestingEmailsChange({ emails })Fires when a user edits the list of test email addresses in the preview screen; relevant when testingEmails is an array. Learn more
getNonce() => Promise<string>Turns on nonce authentication. The editor calls it when it loads and again before the current nonce expires, and expects a fresh nc_… nonce that your backend signed with the Secret key. A rejected Promise, a non-string result, or no answer within 15 seconds counts as a failed refresh and is reported through onEditorError. Requires Email Editor v4. Learn more
onEditorError({ source, message, detail })Fires when the editor hits an unrecoverable error, with source one of integration, init, authorize, nonceAuth, network, load, updateTemplate, save or templateLoad (a notice, the editor keeps working: the template loaded but does not fit the options, for example several languages while multilingual is off) (the NPM packages export this list as EditorErrorSource). detail carries the parsed response body (undefined for network errors with no response); for save it is { stage, langCode }. Learn more
onLanguageCreated({ code, mutations })Fires when a new language mutation is created from the UI or via editor.createLanguage(). Learn more
onLanguageDeleted({ code, mutations })Fires when a language mutation is deleted, after the confirmation modal. Learn more
onLanguageSelected({ code })Fires when the active editing language changes - including as a side effect of creating, deleting, or changing the primary mutation. Learn more
onPrimaryLanguageChanged({ code, mutations })Fires when the primary language mutation changes; creates the language first (also firing onLanguageCreated) if it does not exist. Learn more
onGetMutations({ mutations })Fires in response to editor.getMutations(), returning the current list of language mutations. Learn more
TypeScript Interface
ts
export default interface IPluginOptions {
authorize: {
apiKey: string;
entityId: string | number;
};
api?: IAPI;
apiAuthorizationHeader?: IAuthHeaderConfig | string;
apiBlocks?: Record<string, IAPIBlockProperties>;
autosaveInterval?: number;
betaFeatures?: {
carousel?: boolean;
loop?: boolean;
rating?: boolean;
};
chatAI?: boolean;
chatAIOnSegment?: boolean;
clickTrackingOptOut?: { provider: "sparkpost" };
colors?: Array<string>;
contentBlocks?: IContentBlockOptions;
currentUser?: IOptionsUser;
customBlocks?: CustomBlockData[];
customFileManager?: boolean;
customFonts?: {
override?: boolean;
fonts: Array<IFont>;
};
defaultTemplateSettings?: {
emailWidth?: number;
emailBackgroundColor?: string;
sectionBackgroundColor?: string;
buttonsBackgroundColor?: string;
hyperlinkColor?: string;
hyperlinkUnderline?: boolean;
h1?: {
[key in TopolTagAttribute]?: string;
};
h2?: {
[key in TopolTagAttribute]?: string;
};
h3?: {
[key in TopolTagAttribute]?: string;
};
p?: {
[key in TopolTagAttribute]?: string;
};
button?: {
[key in TopolTagAttribute]?: string;
};
lineHeight?: number;
sectionPadding?: string;
stackColumns?: boolean;
};
disableAiAssistant?: boolean;
disableAlerts?: boolean;
disableExtendedComparators?: boolean;
disableShortcuts?: boolean | EditorShortcut[];
emailServiceProvider?: "mailchimp" | "sparkpost" | "jinja";
enableAutosaves?: boolean;
enableComments?: boolean;
enableDarkMode?: boolean;
enableFileManagerInGif?: boolean;
enableImageToTextRatio?: boolean;
enableMergeTagPreview?: boolean;
enableSectionVariants?: boolean;
enableSubjectLine?: boolean;
fileManagerPreferences?: {
defaultTilesView?: boolean;
hidePexelsIntegration?: boolean;
maxUploadingFiles?: number;
};
fontSizes?: Array<number>;
helpdesk?: IHelpdesk;
hideSelectionPanel?: boolean;
hideSelectionPanelExpand?: boolean;
hideSettingsTab?: boolean;
htmlMinified?: boolean;
imageCompressionOptions?: {
qualityJpeg?: number;
qualityPng?: number;
enableAutoResize?: boolean;
enableCompression?: boolean;
};
imageEditor?: boolean;
imageEditorOptions?: {
hideControls?: Array<string>;
};
imageMaxSize?: number;
language?: string;
languageMergeTag?: string;
light?: boolean;
logicalOperatorsInsideVariant?: boolean;
mainMenuAlign?: "left" | "right";
mergeTags?: Array<IMergeTagGroup | IMergeTag>;
mobileFirstEnabled?: boolean;
multilingual?: boolean;
premadeSections?: IOptionsPremadeBlock;
premadeTemplates?: boolean;
premadeTemplatesOptions?: {
hideSearch?: boolean;
showDelete?: boolean;
};
productMergeTags?: Array<{
label: string;
value: string;
}>;
role?: "manager" | "editor" | "reader";
permissions?: {
canLockBlocks?: boolean;
canLockSections?: boolean;
canEditLockedSections?: boolean;
canEditLockedBlocks?: boolean;
canRemoveFiles?: boolean;
};
savedSections?: Array<ISavedSection> | boolean;
syncedSectionsEnabled?: boolean;
showUnsavedDialogBeforeExit?: boolean;
startWithOpenElementsPanel?: boolean;
smartMergeTags?: {
enabled: boolean;
patterns?: Record<string, SmartMergeTagPattern>;
syntax?: {
start: string;
end: string;
};
};
teamUsers?: IOptionsUser[];
templateId?: number | string;
testingEmails?: boolean | string[];
textEditor?: "tinymce" | "tiptap";
theme?: ITheme;
tinyConfig?: unknown;
tiptapConfig?: {
light?: boolean;
showMergeTagText?: boolean;
};
title?: string;
hideTopbarControls?: Array<string>;
renameTemplate?: boolean;
removeTopBar?: boolean;
saveAndCloseButton?: "dropdown" | "separate";
windowBar?: Array<string>;
}Callbacks are typed separately, as the properties passed next to config:
ts
interface IMutation {
code: string;
primary: boolean;
}
// The template object described in the Template Reference
// (/email-editor/template-reference/template), already parsed.
type TopolTemplate = Record<string, unknown>;
type EditorShortcut =
| "save"
| "saveAndClose"
| "undo"
| "redo"
| "preview"
| "developerMode"
| "copy"
| "escape";
export interface ITopolEmailEditorCallbacks {
onSave?(payload: {
json: TopolTemplate;
html: string;
mutations: IMutation[];
syncedSections: number[];
}): void | Promise<void>;
onSaveAndClose?(payload: {
json: TopolTemplate;
html: string;
mutations: IMutation[];
syncedSections: number[];
}): void | Promise<void>;
onTestSend?(payload: {
email: string | string[];
json: TopolTemplate;
html: string;
}): void;
onOpenFileManager?(): void;
onImageDelete?(payload: { items: IDeletedItem[] }): void;
onLoaded?(): void;
onSavedSectionSave?(payload: { section: ISavedSection }): void;
onSavedSectionRemove?(payload: { id: number }): void;
onSavedSectionEdit?(payload: { id: number }): void;
onInit?(): void;
onUndoChange?(payload: { count: number }): void;
onRedoChange?(payload: { count: number }): void;
onPreview?(payload: { html: string }): void;
onPreviewClose?(): void;
onAlert?(payload: { notification: INotification }): void;
onEditorClose?(): void;
onUnsavedChangesChange?(payload: { hasUnsavedChanges: boolean }): void;
onHiddenElementsVisibilityChange?(payload: { visible: boolean }): void;
onOpenCustomBlockDialog?(payload: { block: unknown }): void;
onTemplateRename?(payload: { name: string }): void;
onTemplateUpdated?(): void;
onTestingEmailsChange?(payload: { emails: string[] }): void;
getNonce?(): Promise<string>;
onEditorError?(payload: { source: string; message: string; detail?: unknown }): void;
onLanguageCreated?(payload: { code: string; mutations: IMutation[] }): void;
onLanguageDeleted?(payload: { code: string; mutations: IMutation[] }): void;
onLanguageSelected?(payload: { code: string }): void;
onPrimaryLanguageChanged?(payload: { code: string; mutations: IMutation[] }): void;
onGetMutations?(payload: { mutations: IMutation[] }): void;
}The onImageDelete callback receives an array of IDeletedItem entries, one per deleted file or folder:
ts
interface IDeletedItem {
name: string;
type: "file" | "folder";
path: string;
url?: string;
key: string | null;
}premadeSections accepts one of four shapes. In the advanced object form, each entry in blocks is either a custom collection or a preset marker standing in for one of Topol's default groups. The Premade blocks guide covers how markers are resolved.
ts
interface IPremadeBlock {
name?: string;
img?: string;
definition: object | object[]; // one or more mj-section definitions
}
interface IPremadeGroup {
id?: number;
name: string;
blocks: IPremadeBlock[];
}
interface IPremadePreset {
preset: "header" | "content" | "ecommerce" | "footer";
}
type IOptionsPremadeBlock =
| IPremadeGroup[] // basic structure
| { blocks: Array<IPremadeGroup | IPremadePreset>; override: boolean } // advanced structure
| {
headers?: IPremadeBlock[];
content?: IPremadeBlock[];
ecomm?: IPremadeBlock[];
footers?: IPremadeBlock[];
} // legacy keyed shape
| false; // disables premade blocks entirelySee the Callbacks guide for a description of each field.
