1.2.0 • Published 5 days ago

@ant-design/pro-editor v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

The Ultimate Editor UI Framework and Components

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

npm.io

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.

npm.io

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.

1.2.0-beta.1

5 days ago

1.2.0

9 days ago

1.1.2

16 days ago

1.1.1

1 month ago

1.1.0

1 month ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago

1.0.0-beta.1

2 months ago

0.41.0

2 months ago

1.0.0-beta.0

2 months ago

0.40.0

3 months ago

0.39.0

3 months ago

0.29.0-alpha.1

3 months ago

0.38.1

3 months ago

0.37.0

4 months ago

0.38.0

4 months ago

0.36.0

4 months ago

0.35.1

4 months ago

0.34.2

4 months ago

0.34.1

4 months ago

0.34.0

4 months ago

0.35.0

4 months ago

0.32.0

4 months ago

0.33.0-rc.1

4 months ago

0.32.0-rc.3

4 months ago

0.33.1

4 months ago

0.33.0

4 months ago

0.32.0-rc.2

4 months ago

0.32.0-rc.1

4 months ago

0.31.1

4 months ago

0.31.0

5 months ago

0.31.0-rc.1

5 months ago

0.31.0-rc.2

5 months ago

0.30.0

5 months ago

0.30.0-rc.2

5 months ago

0.29.0

5 months ago

0.27.0

5 months ago

0.29.2

5 months ago

0.29.1

5 months ago

0.28.0

5 months ago

0.26.0

5 months ago

0.28.0-alpha.1

5 months ago

0.25.0

6 months ago

0.24.0

6 months ago

0.23.0

6 months ago

0.22.0

6 months ago

0.20.1

8 months ago

0.19.0

8 months ago

0.19.1

8 months ago

0.11.0

9 months ago

0.13.0

8 months ago

0.15.0

8 months ago

0.17.0

8 months ago

0.9.0

9 months ago

0.7.2

10 months ago

0.7.1

10 months ago

0.21.0

7 months ago

0.19.0-alpha.1

8 months ago

0.18.1

8 months ago

0.12.0

9 months ago

0.12.1

8 months ago

0.14.0

8 months ago

0.14.1

8 months ago

0.16.0

8 months ago

0.18.0

8 months ago

0.10.0

9 months ago

0.20.5

7 months ago

0.21.0-alpha.1

8 months ago

0.20.4

8 months ago

0.20.3

8 months ago

0.20.2

8 months ago

0.8.1

10 months ago

0.8.0

10 months ago

0.4.0-alpha.4

11 months ago

0.4.0-alpha.3

11 months ago

0.4.0-alpha.2

11 months ago

0.4.0-alpha.1

11 months ago

0.4.2-alpha.2

11 months ago

0.4.2-alpha.1

11 months ago

0.4.0-alpha.8

11 months ago

0.2.2-alpha.1

11 months ago

0.4.0-alpha.7

11 months ago

0.4.0-alpha.6

11 months ago

0.4.0-alpha.5

11 months ago

0.5.0-alpha.3

11 months ago

0.3.0-alpha.6

11 months ago

0.5.0-alpha.2

11 months ago

0.3.0-alpha.7

11 months ago

0.5.0-alpha.1

11 months ago

0.3.0-alpha.8

11 months ago

0.3.0

11 months ago

0.2.1

11 months ago

0.5.0-alpha.7

11 months ago

0.5.0-alpha.6

11 months ago

0.3.0-alpha.3

11 months ago

0.5.0-alpha.5

11 months ago

0.3.0-alpha.4

11 months ago

0.5.0-alpha.4

11 months ago

0.3.0-alpha.5

11 months ago

0.5.0

10 months ago

0.4.1

11 months ago

0.2.3

11 months ago

0.4.0

11 months ago

0.2.2

11 months ago

0.7.0

10 months ago

0.6.0

10 months ago

0.5.0-alpha.8

11 months ago

0.4.2

11 months ago

0.3.0-alpha.1

11 months ago

0.2.0

11 months ago

0.1.1

12 months ago

0.1.0

12 months ago