@ant-design/pro-editor

中文文档
1.3.0发布于 2024/09/09MITTypeScriptESM + CJS近 30 天下载 6739

🌟 Lightweight Editor UI Framework

原始使用文档
文档目录11 节
  1. 📦 Installation
  2. Compile with Next.js
  3. 🔨 Usage
  4. ✨ Features
  5. Empowering Features of ProEditor
  6. Framework Architecture
  7. 👀 Showcase
  8. 🖥 Browser compatibility
  9. ⌨️ Local Development
  10. 🤝 Contributing
  11. 🛣️ Ecosystem

ProEditor

The Ultimate Editor UI Framework and Components



English · 简体中文 · Changelog . Report Bug · Request Feature

Table of contents

TOC

📦 Installation

[!IMPORTANT]
This package is ESM only.

To install @ant-design/pro-editor, run the following command:

$ pnpm install @ant-design/pro-editor

Compile with Next.js

[!NOTE]
By work correct with Next.js SSR, add transpilePackages: ['@ant-design/pro-editor'] to next.config.js. For example:

const nextConfig = {
  transpilePackages: ['@ant-design/pro-editor', 'leva', 'zustand'],
};

🔨 Usage

import { SmileOutlined } from '@ant-design/icons';
import { ActionIcon } from '@ant-design/pro-editor';

export default () => (
  <ActionIcon
    title={'Function button description'}
    icon={<SmileOutlined />}
    onClick={() => {
      alert('Trigger action');
    }}
  />
);

✨ Features

[!NOTE]

Front-end component libraries have revolutionized development, boosting efficiency by orders of magnitude and elevating user experience. Yet, as mature as libraries like Ant Design (antd) and ProComponents are, one might wonder if there's any room left for innovation.


Empowering Features of ProEditor

[!NOTE]

We envision ProEditor as the foundational library for editing components, akin to antd, enabling developers to easily create complex interactive components with an inherently superior user experience. This is the rationale behind the ProEditor.

Our Principles for ProEditor:

  • 🖐️ Intuitive Editing: Supports natural user interactions like multi-selection, deselection, and keyboard shortcuts, ensuring a smooth editing experience.
  • ✨ Refined by Default: Enhances Ant Design components to deliver a superior user experience with more polish and refinement.
  • 🔧 Open Flexibility: Provides atomic-level capabilities, offering a wide range of components, hooks, and utility functions for extensive customization and flexibility.

UI Framework and Frontend Component Solutions in the Editor Field:

[!TIP]

ProEditor concentrates on expanding the limits of the feasible and augmenting the array of tools available to developers for the construction of sophisticated, interactive, and user-centric web applications. For instance:

  • 📦 DraggablePanel: Allows for resizable and movable panels, enhancing the interactivity of the user interface.
  • 📝 ColumnList: Offers a user-friendly sortable list that is manageable through column definitions, simplifying complex list interactions.
  • 🎨 FreeCanvas: Provides a zoomable canvas similar to applications like Sketch or Figma, giving users a vast space for creative design.
  • 🔍 IconPicker: An icon selection tool that is compatible with iconfont, making it easier to integrate a wide range of icons into the design.
  • 👥 Online Collaboration: Incorporates multi-user capabilities using technologies like yjs and zustand store, enabling real-time collaborative editing and interaction.

Framework Architecture

ProEditor is structured to facilitate these principles effectively.


👀 Showcase

Let's showcase some of ProEditor's signature components:

DraggablePanelColumnList
For resizable and movable panelsA user-friendly sortable list based on column definitions
FreeCanvasIconPicker
A limitless zoomable canvas akin to Sketch or FigmaAn icon selection tool compatible with iconfont
Online Collaboration
Multi-user capabilities wrapped in yjs and zustand store.

🖥 Browser compatibility

[!NOTE]

edgeEdgechromesafarielectron_48x48
Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

⌨️ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/ant-design/pro-editor.git
$ cd pro-editor
$ pnpm install
$ pnpm dev

🤝 Contributing

[!IMPORTANT]

Join our collaborative ecosystem. Your contributions are the heartbeat of our project. Here's how you can be an integral part of our vibrant community:

  • Integrate and Innovate: Incorporate Ant Design Pro, umi, and ProEditor into your projects. Your real-world usage and feedback are invaluable to us.
  • Voice Your Insights: Encounter a glitch? Have a query? Your perspectives matter. Share them by submitting issues and help us enhance the user experience.
  • Shape the Future: Have code enhancements or feature ideas? We invite you to propose pull requests and contribute directly to the evolution of our codebase.

Every contribution, big or small, is celebrated. Join us in our mission to refine and elevate the world of open-source enterprise UI components. 😃





🛣️ Ecosystem

  • ProComponents - Designed for Enterprise-Level Application, Use Ant Design like a Pro!.
  • ProEditor - The Ultimate Editor UI Framework and Components.
  • ProFlow - A Flow Editor Framework base on React-Flow.
  • ProChat - Components Library for Quickly Building LLM Chat Interfaces.


📝 License

Copyright © 2023 - present AFX & Ant Digital.
This project is MIT licensed.

版本与发布记录

@ant-design/pro-editor 共发布 115 个版本,首次发布于 2023/05/11;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.3.0latest2024/09/092 年前
1.2.12024/05/082 年前
1.2.0-beta.12024/04/242 年前
1.2.02024/04/192 年前
1.1.22024/04/122 年前
1.1.12024/03/292 年前

其他发布通道:rc → 0.33.0-rc.1,alpha → 0.29.0-alpha.1,beta → 1.0.0-beta.1。

关于 @ant-design/pro-editor 的常见问题

@ant-design/pro-editor 是什么?

🌟 Lightweight Editor UI Framework

如何安装 @ant-design/pro-editor?

在项目目录运行 npm install @ant-design/pro-editor,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:antd(>=5)、react(>=18)、react-dom(>=18)、antd-style(>=3)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ant-design/pro-editor 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@ant-design/pro-editor 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@ant-design/pro-editor 可以商用吗?

@ant-design/pro-editor 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ant-design/pro-editor 的下载量有多少?

根据 npm 官方下载统计,@ant-design/pro-editor 在 2026/10/06 – 2026/11/04 这 30 天内被下载 6,739 次,日均约 225 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ant-design/pro-editor 还在维护吗?

最新版本 1.3.0 发布于 2024/09/09(2 年前);至今共发布 115 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/05/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。