
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@dearj/types
Advanced tools
The @dearj/types package provides comprehensive TypeScript type definitions for the DearJ Drag & Drop Email Editor Suite. These types ensure type safety and enhance developer experience when working with DearJ components in TypeScript projects.
Install as a development dependency using npm or yarn:
npm install --save-dev @dearj/types
or
yarn add -D @dearj/types
type Template = {
counters: Record<string, number>;
body: Body;
schemaVersion?: number;
};
type Body = {
id: string;
rows: Row[];
headers?: [];
footers?: [];
values?: Values;
};
type Row = {
id: string;
cells: number[];
columns: Column[];
values: Values;
};
type Column = {
id: string;
contents: Content[];
values: Values;
};
type Content = {
id: string;
type: string;
values: Values;
};
type EditorConfig = {
authorization: string;
version: string | number;
};
type ToolBuilderConfig = {
id: string;
name: string;
icon: ElementType;
builderOptionsPage: ToolOptionsBuilderConfig;
toolInsertObject: ReactNode | ((...args) => ReactNode) | Row;
// ...additional properties
};
type ToolOptionsBuilderConfig = {
builderGroups: BuilderGroup[];
};
type BuilderGroup = {
icon: ElementType;
groupTitle: string;
builderGroupProperties: BuilderGroupProperties[];
};
type IFrameMessage = {
type: string;
data: {
origin: string;
[key: string]: any;
};
timestamp: number;
securityToken: string;
};
import { EditorConfig, Template, EmailEditor } from "dearj";
const config: EditorConfig = {
authorization: "your_token_here",
version: "1.2.0",
};
const initialTemplate: Template = {
counters: { section: 1 },
body: {
id: "main-body",
rows: [
// ...row definitions
],
},
};
const editor = new EmailEditor(config, initialTemplate);
DearJ is available under the BSD-3-CLAUSE License.
FAQs
Types for Dear J content editor.
The npm package @dearj/types receives a total of 3 weekly downloads. As such, @dearj/types popularity was classified as not popular.
We found that @dearj/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.