npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anteros-email

v1.0.0

Published

<p align="center">

Downloads

5

Readme

Easy email

Introduction

Easy email is developed based on the MJML and has very good compatibility. At the same time, it can generate code through drag-and-drop editing.

Features:

  • Drag and drop editor
  • Can be converted into MJML, or generated through MJML
  • Defined custom block
  • Dynamic rendering
  • Easily customize UI when you need
  • Theme configuration

| Video Overview | | :-----------------------------------------------------------------------------------------------------------------: | | | | Watch video overview:https://www.bilibili.com/video/BV1YQ4y167bb |

Live Demo

Check out the live demo here: http://anteros-email-m-ryan.vercel.app

Getting started

$ npm install --save anteros-email-core anteros-email-editor anteros-email-extensions react-final-form

or

$ yarn add anteros-email-core anteros-email-editor anteros-email-extensions react-final-form
import React from 'react';
import { BlockManager, BasicType } from 'anteros-email-core';
import { EmailEditor, EmailEditorProvider } from 'anteros-email-editor';
import { SimpleLayout } from 'anteros-email-extensions';

import 'anteros-email-editor/lib/style.css';
import 'anteros-email-extensions/lib/style.css';
import '@arco-themes/react-anteros-email-theme/css/arco.css'; // theme, If you need to change the theme, you can make a duplicate in https://arco.design/themes/design/1799/setting/base/Color

const initialValues = {
  subject: 'Welcome to anteros-email',
  subTitle: 'Nice to meet you!',
  content: BlockManager.getBlockByType(BasicType.PAGE)!.create({}),
};

function App() {
  return (
    <EmailEditorProvider
      data={initialValues}
      height={'calc(100vh - 72px)'}
      autoComplete
      dashed={false}
    >
      {({ values }) => {
        return (
          <SimpleLayout>
            <EmailEditor />
          </SimpleLayout>
        );
      }}
    </EmailEditorProvider>
  );
}

export default App;

Examples

Please see https://github.com/m-Ryan/anteros-email-demo

Configuration

| property | Type | Description | | ------------------ | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | height | string / number | Set the height of the container | | data | interface IEmailTemplate { content: IPage; subject: string; subTitle: string; } | Source data | | children | ( props: FormState,helper: FormApi<IEmailTemplate, Partial>) => React.ReactNode | ReactNode | | onSubmit | Config<IEmailTemplate, Partial>['onSubmit']; | Called when the commit is triggered manually | | fontList | { value: string; label: string; }[]; | Default font list. | | interactiveStyle | { hoverColor?: string; selectedColor?: string;} | Interactive prompt color | | onUploadImage | (data: Blob) => Promise; | Triggered when an image is pasted or uploaded | | onAddCollection | (payload: CollectedBlock) => void; | Add to collection list | | onRemoveCollection | (payload: { id: string; }) => void; | Remove from collection list | | dashed | boolean | Show dashed | | autoComplete | boolean | Automatically complete missing blocks. For example, Text => Section, will generate Text=>Column=>Section | | mergeTags | Object | A merge tag is a bit of specific code that allows you to insert dynamic data into emails. Like {{user.name}}, and used for preview | | previewInjectData | Object | Dynamic data for preview, it will overwrite mergeTags. | | onBeforePreview | (html: string, mergeTags: PropsProviderProps['mergeTags']) => string | Promise You can replace mergeTags when previewing. |

Hotkeys

| hotkey | Description | | ----------------- | ------------------------------------------------------------------------------------------------- | | mod+z | undo | | mod+y | redo | | delete/backspace | delete block | | tab / shift + tab | fast select block, if block is focusing,tab select next block & shift + tab select prev block |

Packages

How does it work?

Development

$ git clone [email protected]:arco-design/anteros-email.git
$ cd anteros-email
$ yarn install-all
$ yarn dev

License

The MIT License