
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
rev-email-builder
Advanced tools
This template should help get you started developing with Vue 3 in Vite.
This template should help get you started developing with Vue 3 in Vite.
This plugin allows you to integrate Stripo's email design capabilities into your Vue application. Plugin Docs
VSCode + Volar (and disable Vetur).
.vue Imports in TSTypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
bun install
bun dev
bun run build
import { StripoEmailBuilder } from "rev-email-builder";
<StripoEmailBuilder
pluginId="PLUGIN_KEY"
secretKey="SECRET_KEY"
:metadata="{
emailId: '',
userId: '',
username: '',
avatarUrl: '',
email: ''
}"
:config="" // If you want a custom config, please see the https://plugin.stripo.email/editor-configuration/initialization-settings or scroll below, look for the config type
css='' // Add your created CSS here
html='' // Add your created HTML here
@get-template-data="(data) => console.log(data)"
@event="(event) => console.log(event)"
@dataChanged="() => console.log('data change')"
/>
or
import StripoEmailBuilder from "rev-email-builder";
app.use(StripoEmailBuilder);
defineEmits<{
(e: "templateLoaded"): void;
(e: "notificationError", message: string, id: string, params: unknown): void;
(e: "notificationSuccess", message: string, id: string, params: unknown): void;
(e: "notificationInfo", message: string, id: string, params: unknown): void;
(e: "notificationWarn", message: string, id: string, params: unknown): void;
(e: "notificationLoader", message: string, id: string, params: unknown): void;
(e: "notificationHide", id: string): void;
(e: "event", type: string, params: unknown): void;
(e: "dataChanged"): void;
(
e: "userListChange",
userList: { name: string; avatar: string; color: string; isCurrentUser: boolean }[]
): void;
(e: "saveError", error: Error): void;
(e: "save"): void;
(
e: "getTemplateData",
data: {
html: string;
css: string;
width: number;
height: number;
utmParams: UtmParameter;
syncModulesIds: number[];
}
): void;
(e: "saveStarted"): void;
(e: "saveCompleted", error?: Error): void;
(e: "versionHistoryVisibilityChanged", value: boolean): void;
(e: "historyStateChanged", value: HistoryState): void;
(
e: "updateDisplayConditionsForViewOptions",
value: { id: string; name: string; visibility?: boolean }[]
): void;
(e: "viewOptionsReset", entity: unknown, entityId: string): void;
(e: "settingsPanelBlockSorting", names: string[] | Record<string, unknown>[]): void;
(e: "preheaderChanged", preHeader: string): void;
(e: "rtlSet", value: boolean): void;
(e: "titleChanged"): void;
(e: "codeEditorVisibilityChanged", value: boolean): void;
(
e: "disabledBlockClicked",
localizedTitle: string,
type:
| "BLOCK_IMAGE"
| "BLOCK_TEXT"
| "BLOCK_BUTTON"
| "BLOCK_SPACER"
| "BLOCK_VIDEO"
| "BLOCK_SOCIAL"
| "BLOCK_BANNER"
| "BLOCK_TIMER"
| "BLOCK_MENU"
| "BLOCK_MENU_ITEM"
| "BLOCK_HTML"
| "BLOCK_AMP_CAROUSEL"
| "BLOCK_AMP_ACCORDION"
| "BLOCK_AMP_FORM"
): void;
(e: "settingsPanelPositionChanged", value: "left" | "right"): void;
(e: "versionHistoryReadAccessChanged", enable: boolean): void;
(e: "editorVisualModeChanged", visualMode: "mobile" | "desktop"): void;
}>();
<template
#controls="{
isLoadedTemplate,
showHistory,
loadingSave,
undoButtonId,
enableUndo,
redoButtonId,
mobileViewButtonId,
desktopViewButtonId,
clickSave,
clickGetTemplateData,
clickUndo,
clickRedo,
clickHistoryMobileView,
clickHistoryDesktopView,
clickCodeEditor,
clickHistory
}
">
</template>
clickHistoryMobileView()
clickHistoryDesktopView()
clickUndo()
clickRedo()
clickViewHistory()
isLoadedTemplate.value
showHistory.value
showEditor.value,
loadingSave.value
import { actionsApi, emailMetaDataApi, codeEditorApi, versionHistoryApi, uiApi, viewOptionsApi, devToolsApi } from "rev-email-builder"
actionsApi().setName("");
emailMetaDataApi().setTitle("")
codeEditorApi().getCodeEditorState()
versionHistoryApi().closeVersionHistory();
codeEditorApi().openCodeEditor();
uiApi().setSettingsPanelVisible(true);
viewOptionsApi().setViewOptions(options)
devToolsApi().dump()
type config = {
containerId?: string;
brandColorPalette?: StripoInitBrandColorPalette[];
metadata: StripoInitMetadata;
locale?: string;
onTokenRefreshRequest: (callback: (token: string) => void) => void;
name?: string;
utm?: UtmParameter;
forceRecreate?: boolean;
ignoreClickOutsideSelectors?: string[]
panelPosition?: string;
notifications?: {
info?: (message: string, id: string, params: unknown) => void;
error?: (message: string, id: string, params: unknown) => void;
success?: (message: string, id: string, params: unknown) => void;
warn?: (message: string, id: string, params: unknown) => void;
loader?: (message: string, id: string, params: unknown) => void;
hide?: (id: string) => void;
};
textEditorAllowedPasteContent?: StripoInitTextEditorAllowedPasteContent;
bankImagesDefaultSearchString?: string;
codeEditor?: StripoInitCodeEditor;
codeEditorButtonSelector?: string;
mergeTags?: StripoInitMergeTag[];
socialNetworks?: StripoInitSocialNetwork[];
specialLinks?: StripoInitSpecialLink[];
viewOptions?: StripoInitViewOption;
editorFonts?: StripoInitEditorFonts;
conditionsEnabled?: boolean;
undoButtonSelector?: string;
redoButtonSelector?: string;
mobileViewButtonSelector?: string;
desktopViewButtonSelector?: string;
versionHistoryButtonSelector?: string;
localePatch?: StripoInitLocalPatch;
defaultMenuItems?: StripoInitDefaultMenuItem[];
syncModulesEnabled?: boolean;
disableAdaptDesign?: boolean;
moveBlockAvailability?: boolean;
enableNativeSpellChecker?: boolean;
enableTextEmojis?: boolean;
enableXSSSecurity?: boolean;
allowedScriptSourceDomains?: string[];
supportOutlookButtonsByDefault?: boolean;
youtubeApiKey?: string;
modulesDisabled?: boolean;
selectBlockAfterDropFromSettingsPanel?: boolean;
modulesExcludedCategories?: number[];
messageSettingsEnabled?: boolean;
previewIframeAttributes?: Record<string, unknown>;
customViewStyles?: string;
hideDeleteImageAction?: boolean;
baseBlocks?: StripoInitBaseBlocks;
shouldBeSavedToLibrary?: () => boolean;
shouldHideImagePath?: (url: string) => boolean;
onUpdateDisplayConditionsForViewOptions?: (displayConditions: { id: string, name: string, visibility?: boolean }[]) => void;
onViewOptionsReset?: (entity: unknown, entityId: string) => void;
onSettingsPanelBlockSorting?: (names: string[] | Record<string, unknown>[]) => void;
onPreheaderChanged?: (preHeader: string) => void;
onRtlSet?: (value: boolean) => void;
onTemplateLoaded?: () => void;
onTitleChanged?: () => void;
onCodeEditorVisibilityChanged?: (isOpen: boolean) => void;
onDisabledBlockClicked?: (
localizedTitle: string,
type: 'BLOCK_IMAGE' | 'BLOCK_TEXT' | 'BLOCK_BUTTON' | "BLOCK_SPACER" | 'BLOCK_VIDEO' | 'BLOCK_SOCIAL' | 'BLOCK_BANNER' | 'BLOCK_TIMER' | "BLOCK_MENU" | "BLOCK_MENU_ITEM" | "BLOCK_HTML" | "BLOCK_AMP_CAROUSEL" | "BLOCK_AMP_ACCORDION" | "BLOCK_AMP_FORM"
) => void;
onSettingsPanelPositionChanged?: (position: "right" | "left") => void;
onVersionHistoryVisibilityChanged?: (isOpen: boolean) => void;
onVersionHistoryReadAccessChanged?: (enable: boolean) => void;
onSaveStarted?: () => void;
onSaveCompleted?: (error: Error | undefined) => void;
onEditorVisualModeChanged?: (visualMode: 'mobile' | 'desktop') => void;
onUserListChange?: (userList: { name: string; avatar: string; color: string; isCurrentUser: boolean }[]) => void;
onEvent?: (
type: "editor_view_mode_changed" | "modules_panel_opened" | "module_dropped" | "module_saved" | "module_updated" | "module_deleted" | "module_removed" | "structure_dropped" | "structure_deleted" | "structure_copied" | "block_added" | "block_dropped" | "block_copied" | "block_deleted" | "block_moved",
params: unknown
) => void;
onDataChanged?: () => void;
}
type StripoInitBrandColorPalette = {
name?: string;
value: string;
}
type StripoInitMetadata = {
emailId: string;
userId?: string;
username?: string;
avatarUrl?: string;
email?: string;
}
interface UtmParameter {
utmSource: string;
utmMedium: string,
utmCampaign: string,
utmContent: string,
utmTerm: string,
customUtms: Record<string, string>[]
}
type StripoInitTextEditorAllowedPasteContent = {
tags: string[];
attributes: string[];
}
type StripoInitCodeEditor = {
isOpen: boolean;
isDefaultCSSOpen: boolean;
isCustomCSSOpen: boolean;
containerHeight: number;
defaultCSSPanelWidth: number;
customCSSPanelWidth: number;
}
type StripoInitMergeTag = {
category: string;
entries: {
label: string;
value: string;
hint?: string;
hidden?: boolean;
}[];
}
type StripoInitSocialNetwork = {
name: string;
href: string;
}
type StripoInitSpecialLink = {
category: string;
entries: {
label: string;
value: string;
hidden?: boolean;
}[]
}
type StripoInitViewOption = {
showHiddenElements: boolean;
mimeType: 'both' | 'html' | 'ampHtml'
mergeTags: 'raw' | 'label' | 'value';
displayConditions: {
id: string;
name: string;
visibility: boolean;
}[]
}
type StripoInitEditorFonts = {
showDefaultStandardFonts: boolean;
showDefaultNotStandardFonts: boolean;
customFonts: {
name: string;
fontFamily: string;
url: string;
}[];
favouriteFonts?: {
label: string;
name: string;
fontFamily: string;
url: string;
}[];
}
type StripoInitLocalPatch = {
[key: string]: {
"settingsPanel.accordion.structures": string;
"settingsPanel.block.timer": string;
}
}
type StripoInitDefaultMenuItem = {
name: string;
href: string;
}
type StripoInitBaseBlocks = {
ampAccordionEnabled?: boolean;
ampCarouselEnabled?: boolean;
ampFormControlsEnabled?: boolean;
bannerEnabled?: boolean;
buttonEnabled?: boolean;
htmlEnabled?: boolean;
imageEnabled?: boolean;
menuEnabled?: boolean;
socialNetEnabled?: boolean;
spacerEnabled?: boolean;
textEnabled?: boolean;
timerEnabled?: boolean;
videoEnabled?: boolean;
}
FAQs
This template should help get you started developing with Vue 3 in Vite.
The npm package rev-email-builder receives a total of 22 weekly downloads. As such, rev-email-builder popularity was classified as not popular.
We found that rev-email-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.