Skip to content

Commit

Permalink
🚚 feat: Rename to pro-flow-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jul 26, 2023
1 parent a708b10 commit e4abc06
Show file tree
Hide file tree
Showing 20 changed files with 80 additions and 78 deletions.
10 changes: 5 additions & 5 deletions .dumirc.ts
Expand Up @@ -8,13 +8,13 @@ const isProdSite = process.env.PREVIEW !== '1' && isProd;

export default defineConfig({
// 部署在非根目录时, base 和 publicPath 都需要配置
base: isProdSite ? '/kitchen-flow-editor/' : '/',
publicPath: isProdSite ? '/kitchen-flow-editor/' : '/',
base: isProdSite ? '/pro-flow-editor/' : '/',
publicPath: isProdSite ? '/pro-flow-editor/' : '/',
outputPath: 'docs-dist',
favicons: ['https://gw.alipayobjects.com/zos/bmw-prod/51a51720-8a30-4430-b6c9-be5712364f04.svg'],
favicons: ['https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg'],
themeConfig: {
name: 'Kitchen Flow Editor',
logo: 'https://gw.alipayobjects.com/zos/bmw-prod/af1ea898-bf02-45d1-9f30-8ca851c70a5b.svg',
name: 'Pro Flow Editor',
logo: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
socialLinks: {
github: homepage,
},
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
@@ -1,6 +1,6 @@
---
name: '报告Bug 🐛'
about: 报告 kitchen-flow-editor 的 bug
about: 报告 pro-flow-editor 的 bug
title: '🐛[BUG]'
labels: '🐛 BUG'
assignees: ''
Expand Down Expand Up @@ -35,7 +35,7 @@ assignees: ''

### © 版本信息

- kitchen-flow-editor 版本: [e.g. 1.0.0]
- pro-flow-editor 版本: [e.g. 1.0.0]
- 浏览器环境
- 开发环境 [e.g. mac OS]

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
@@ -1,6 +1,6 @@
---
name: '功能需求 ✨'
about: kitchen-flow-editor 的需求或建议
about: pro-flow-editor 的需求或建议
title: '👑 [需求]'
labels: '👑 Feature'
assignees: ''
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
@@ -1,6 +1,6 @@
---
name: '疑问或需要帮助 ❓'
about: kitchen-flow-editor 使用的疑问或需要帮助
about: pro-flow-editor 使用的疑问或需要帮助
title: '🧐[问题]'
labels: '🧐 Question'
assignees: ''
Expand Down
50 changes: 25 additions & 25 deletions CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog

### [Version 0.3.3](https://github.com/ant-design/kitchen-flow-editor/compare/v0.3.2...v0.3.3)
### [Version 0.3.3](https://github.com/ant-design/pro-flow-editor/compare/v0.3.2...v0.3.3)

<sup>Released on **2023-07-12**</sup>

Expand All @@ -15,7 +15,7 @@

#### What's fixed

- Remobe onNodeDrag, closes [#6](https://github.com/ant-design/kitchen-flow-editor/issues/6) ([1ab8a5d](https://github.com/ant-design/kitchen-flow-editor/commit/1ab8a5d))
- Remobe onNodeDrag, closes [#6](https://github.com/ant-design/pro-flow-editor/issues/6) ([1ab8a5d](https://github.com/ant-design/pro-flow-editor/commit/1ab8a5d))

</details>

Expand All @@ -25,7 +25,7 @@

</div>

### [Version&nbsp;0.3.2](https://github.com/ant-design/kitchen-flow-editor/compare/v0.3.1...v0.3.2)
### [Version&nbsp;0.3.2](https://github.com/ant-design/pro-flow-editor/compare/v0.3.1...v0.3.2)

<sup>Released on **2023-07-11**</sup>

Expand All @@ -42,7 +42,7 @@

</div>

### [Version&nbsp;0.3.1](https://github.com/ant-design/kitchen-flow-editor/compare/v0.3.0...v0.3.1)
### [Version&nbsp;0.3.1](https://github.com/ant-design/pro-flow-editor/compare/v0.3.0...v0.3.1)

<sup>Released on **2023-07-09**</sup>

Expand All @@ -57,7 +57,7 @@

#### What's fixed

- 优化 select 等浮层组件的逻辑, closes [#5](https://github.com/ant-design/kitchen-flow-editor/issues/5) ([7721d46](https://github.com/ant-design/kitchen-flow-editor/commit/7721d46))
- 优化 select 等浮层组件的逻辑, closes [#5](https://github.com/ant-design/pro-flow-editor/issues/5) ([7721d46](https://github.com/ant-design/pro-flow-editor/commit/7721d46))

</details>

Expand All @@ -67,7 +67,7 @@

</div>

## [Version&nbsp;0.3.0](https://github.com/ant-design/kitchen-flow-editor/compare/v0.2.0...v0.3.0)
## [Version&nbsp;0.3.0](https://github.com/ant-design/pro-flow-editor/compare/v0.2.0...v0.3.0)

<sup>Released on **2023-07-03**</sup>

Expand All @@ -82,7 +82,7 @@

#### What's improved

- 新增 FlowStoreEditor 组件 ([1e4ba5f](https://github.com/ant-design/kitchen-flow-editor/commit/1e4ba5f))
- 新增 FlowStoreEditor 组件 ([1e4ba5f](https://github.com/ant-design/pro-flow-editor/commit/1e4ba5f))

</details>

Expand All @@ -92,7 +92,7 @@

</div>

## [Version&nbsp;0.2.0](https://github.com/ant-design/kitchen-flow-editor/compare/v0.1.1...v0.2.0)
## [Version&nbsp;0.2.0](https://github.com/ant-design/pro-flow-editor/compare/v0.1.1...v0.2.0)

<sup>Released on **2023-06-30**</sup>

Expand All @@ -111,11 +111,11 @@

#### What's improved

- Test with pro-editor alpha ([33b3c03](https://github.com/ant-design/kitchen-flow-editor/commit/33b3c03))
- Test with pro-editor alpha ([33b3c03](https://github.com/ant-design/pro-flow-editor/commit/33b3c03))

#### Build system

- Use ProEditor ContextMenu ([4c1aa48](https://github.com/ant-design/kitchen-flow-editor/commit/4c1aa48))
- Use ProEditor ContextMenu ([4c1aa48](https://github.com/ant-design/pro-flow-editor/commit/4c1aa48))

</details>

Expand All @@ -125,7 +125,7 @@

</div>

## [Version&nbsp;0.2.0-beta.1](https://github.com/ant-design/kitchen-flow-editor/compare/v0.1.1...v0.2.0-beta.1)
## [Version&nbsp;0.2.0-beta.1](https://github.com/ant-design/pro-flow-editor/compare/v0.1.1...v0.2.0-beta.1)

<sup>Released on **2023-06-18**</sup>

Expand All @@ -144,11 +144,11 @@

#### What's improved

- Test with pro-editor alpha ([33b3c03](https://github.com/ant-design/kitchen-flow-editor/commit/33b3c03))
- Test with pro-editor alpha ([33b3c03](https://github.com/ant-design/pro-flow-editor/commit/33b3c03))

#### Build system

- Use ProEditor ContextMenu ([4c1aa48](https://github.com/ant-design/kitchen-flow-editor/commit/4c1aa48))
- Use ProEditor ContextMenu ([4c1aa48](https://github.com/ant-design/pro-flow-editor/commit/4c1aa48))

</details>

Expand All @@ -158,7 +158,7 @@

</div>

### [Version&nbsp;0.1.1](https://github.com/ant-design/kitchen-flow-editor/compare/v0.1.0...v0.1.1)
### [Version&nbsp;0.1.1](https://github.com/ant-design/pro-flow-editor/compare/v0.1.0...v0.1.1)

<sup>Released on **2023-06-14**</sup>

Expand All @@ -173,7 +173,7 @@

#### Build system

- Refactor with pro-editor's ContextMenu ([36ab1df](https://github.com/ant-design/kitchen-flow-editor/commit/36ab1df))
- Refactor with pro-editor's ContextMenu ([36ab1df](https://github.com/ant-design/pro-flow-editor/commit/36ab1df))

</details>

Expand All @@ -183,14 +183,14 @@

</div>

## [Version&nbsp;0.1.0](https://github.com/ant-design/kitchen-flow-editor/compare/v0.0.1...v0.1.0)
## [Version&nbsp;0.1.0](https://github.com/ant-design/pro-flow-editor/compare/v0.0.1...v0.1.0)

<sup>Released on **2023-06-13**</sup>

#### ✨ 新特性

- **canvas-loading**: Add loading prop and children support.
- Init kitchen-flow-editor, init kitchen-flow-editor v0.1.0.
- Init pro-flow-editor, init pro-flow-editor v0.1.0.

#### 🐛 修复

Expand All @@ -203,13 +203,13 @@

#### What's improved

- **canvas-loading**: Add loading prop and children support ([057f85f](https://github.com/ant-design/kitchen-flow-editor/commit/057f85f))
- Init kitchen-flow-editor ([9d445ef](https://github.com/ant-design/kitchen-flow-editor/commit/9d445ef))
- Init kitchen-flow-editor v0.1.0, closes [#1](https://github.com/ant-design/kitchen-flow-editor/issues/1) ([4e502bf](https://github.com/ant-design/kitchen-flow-editor/commit/4e502bf))
- **canvas-loading**: Add loading prop and children support ([057f85f](https://github.com/ant-design/pro-flow-editor/commit/057f85f))
- Init pro-flow-editor ([9d445ef](https://github.com/ant-design/pro-flow-editor/commit/9d445ef))
- Init pro-flow-editor v0.1.0, closes [#1](https://github.com/ant-design/pro-flow-editor/issues/1) ([4e502bf](https://github.com/ant-design/pro-flow-editor/commit/4e502bf))

#### What's fixed

- 修正基础节点受控折叠的 bug ([aa6535e](https://github.com/ant-design/kitchen-flow-editor/commit/aa6535e))
- 修正基础节点受控折叠的 bug ([aa6535e](https://github.com/ant-design/pro-flow-editor/commit/aa6535e))

</details>

Expand All @@ -219,13 +219,13 @@

</div>

# [0.1.0-alpha.1](https://github.com/ant-design/kitchen-flow-editor/compare/v0.0.1...v0.1.0-alpha.1) (2023-06-13)
# [0.1.0-alpha.1](https://github.com/ant-design/pro-flow-editor/compare/v0.0.1...v0.1.0-alpha.1) (2023-06-13)

### ✨ 新特性

- **canvas-loading**: Add loading prop and children support ([057f85f](https://github.com/ant-design/kitchen-flow-editor/commit/057f85f))
- Init kitchen-flow-editor ([9d445ef](https://github.com/ant-design/kitchen-flow-editor/commit/9d445ef))
- **canvas-loading**: Add loading prop and children support ([057f85f](https://github.com/ant-design/pro-flow-editor/commit/057f85f))
- Init pro-flow-editor ([9d445ef](https://github.com/ant-design/pro-flow-editor/commit/9d445ef))

### 🐛 修复

- 修正基础节点受控折叠的 bug ([aa6535e](https://github.com/ant-design/kitchen-flow-editor/commit/aa6535e))
- 修正基础节点受控折叠的 bug ([aa6535e](https://github.com/ant-design/pro-flow-editor/commit/aa6535e))
50 changes: 25 additions & 25 deletions README.md
@@ -1,7 +1,7 @@
<p align="center">
<img width="160" src="https://gw.alipayobjects.com/mdn/rms_7d1485/afts/img/A*XDYxSJXBjjwAAAAAAAAAAAAAARQnAQ">
<img width="160" src="https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg">
</p>
<h1 align="center">Kitchen Flow Editor</h1>
<h1 align="center">Pro Flow Editor</h1>

<div align="center">

Expand All @@ -16,7 +16,7 @@
<!-- gitpod url -->

[gitpod-badge]: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod
[gitpod-url]: https://gitpod.io/#https://github.com/ant-design/kitchen-flow-editor
[gitpod-url]: https://gitpod.io/#https://github.com/ant-design/pro-flow-editor

<!-- umi url -->

Expand All @@ -25,30 +25,30 @@

<!-- npm url -->

[npm-image]: http://img.shields.io/npm/v/kitchen-flow-editor.svg?style=flat-square&color=deepgreen&label=latest
[npm-url]: http://npmjs.org/package/kitchen-flow-editor
[npm-size]: https://img.shields.io/bundlephobia/minzip/kitchen-flow-editor?color=deepgreen&label=gizpped%20size&style=flat-square
[npm-size-url]: https://packagephobia.com/result?p=kitchen-flow-editor
[npm-image]: http://img.shields.io/npm/v/pro-flow-editor.svg?style=flat-square&color=deepgreen&label=latest
[npm-url]: http://npmjs.org/package/pro-flow-editor
[npm-size]: https://img.shields.io/bundlephobia/minzip/pro-flow-editor?color=deepgreen&label=gizpped%20size&style=flat-square
[npm-size-url]: https://packagephobia.com/result?p=pro-flow-editor

<!-- coverage -->

[coverage]: https://codecov.io/gh/ant-design/kitchen-flow-editor/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/ant-design/kitchen-flow-editor/branch/master
[coverage]: https://codecov.io/gh/ant-design/pro-flow-editor/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/ant-design/pro-flow-editor/branch/master

<!-- Github CI -->

[test-ci]: https://github.com/ant-design/kitchen-flow-editor/workflows/Test%20CI/badge.svg
[release-ci]: https://github.com/ant-design/kitchen-flow-editor/workflows/Release%20CI/badge.svg
[test-ci-url]: https://github.com/ant-design/kitchen-flow-editor/actions?query=workflow%3ATest%20CI
[release-ci-url]: https://github.com/ant-design/kitchen-flow-editor/actions?query=workflow%3ARelease%20CI
[download-image]: https://img.shields.io/npm/dm/kitchen-flow-editor.svg?style=flat-square
[download-url]: https://npmjs.org/package/kitchen-flow-editor
[test-ci]: https://github.com/ant-design/pro-flow-editor/workflows/Test%20CI/badge.svg
[release-ci]: https://github.com/ant-design/pro-flow-editor/workflows/Release%20CI/badge.svg
[test-ci-url]: https://github.com/ant-design/pro-flow-editor/actions?query=workflow%3ATest%20CI
[release-ci-url]: https://github.com/ant-design/pro-flow-editor/actions?query=workflow%3ARelease%20CI
[download-image]: https://img.shields.io/npm/dm/pro-flow-editor.svg?style=flat-square
[download-url]: https://npmjs.org/package/pro-flow-editor

</div>

## 简介

Kitchen Flow Editor 是一款基于 react-flow 构建的画布编辑器。具有的特性如下:
Pro Flow Editor 是一款基于 react-flow 构建的画布编辑器。具有的特性如下:

- 🎨 **自定义节点类型**:用户可以通过传入自定义 React 组件的方式创建不同类型的节点,从而满足不同的业务需求;
- 🎉 **灵活的事件处理**:支持用户对节点的拖拽、连接、删除等事件进行自定义处理,满足不同业务场景的需求;
Expand All @@ -63,7 +63,7 @@ Kitchen Flow Editor 是一款基于 react-flow 构建的画布编辑器。具有
推荐使用 `pnpm` 安装

```bash
pnpm i kitchen-flow-editor -S
pnpm i @ant-design/pro-flow-editor -S
```

### 使用
Expand Down Expand Up @@ -114,20 +114,20 @@ This project is [MIT](./LICENSE) licensed.

<!-- contributors -->

[contributors-shield]: https://img.shields.io/github/contributors/ant-design/kitchen-flow-editor.svg?style=flat
[contributors-url]: https://github.com/ant-design/kitchen-flow-editor/graphs/contributors
[contributors-shield]: https://img.shields.io/github/contributors/ant-design/pro-flow-editor.svg?style=flat
[contributors-url]: https://github.com/ant-design/pro-flow-editor/graphs/contributors

<!-- forks -->

[forks-shield]: https://img.shields.io/github/forks/ant-design/kitchen-flow-editor.svg?style=flat
[forks-url]: https://github.com/ant-design/kitchen-flow-editor/network/members
[forks-shield]: https://img.shields.io/github/forks/ant-design/pro-flow-editor.svg?style=flat
[forks-url]: https://github.com/ant-design/pro-flow-editor/network/members

<!-- stargazers -->

[stargazers-shield]: https://img.shields.io/github/stars/ant-design/kitchen-flow-editor.svg?style=flat
[stargazers-url]: https://github.com/ant-design/kitchen-flow-editor/stargazers
[stargazers-shield]: https://img.shields.io/github/stars/ant-design/pro-flow-editor.svg?style=flat
[stargazers-url]: https://github.com/ant-design/pro-flow-editor/stargazers

<!-- issues -->

[issues-shield]: https://img.shields.io/github/issues/ant-design/kitchen-flow-editor.svg?style=flat
[issues-url]: https://github.com/ant-design/kitchen-flow-editor/issues/new/choose
[issues-shield]: https://img.shields.io/github/issues/ant-design/pro-flow-editor.svg?style=flat
[issues-url]: https://github.com/ant-design/pro-flow-editor/issues/new/choose
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -6,7 +6,7 @@ hero:
- text: 快速上手
link: /guide
- text: Github
link: https://github.com/ant-design/kitchen-flow-editor
link: https://github.com/ant-design/pro-flow-editor
---

<embed src="../README.md"></embed>
2 changes: 1 addition & 1 deletion docs/useFlowEditor.md
@@ -1,7 +1,7 @@
# useFlowEditor

```ts
import { useFlowEditor } from 'kitchen-flow-editor';
import { useFlowEditor } from 'pro-flow-editor';

export default () => {
const editor = useFlowEditor();
Expand Down
12 changes: 7 additions & 5 deletions package.json
@@ -1,18 +1,20 @@
{
"name": "kitchen-flow-editor",
"name": "@ant-design/pro-flow-editor",
"version": "0.3.3",
"description": "A React based Flow Editor",
"keywords": [
"flow",
"editor"
"ant-design",
"editor",
"canvas"
],
"homepage": "https://github.com/ant-design/kitchen-flow-editor",
"homepage": "https://github.com/ant-design/pro-flow-editor",
"bugs": {
"url": "https://github.com/ant-design/kitchen-flow-editor/issues/new"
"url": "https://github.com/ant-design/pro-flow-editor/issues/new"
},
"repository": {
"type": "git",
"url": "https://github.com/ant-design/kitchen-flow-editor.git"
"url": "https://github.com/ant-design/pro-flow-editor.git"
},
"license": "MIT",
"author": "arvinxx(arvinx@foxmail.com)",
Expand Down
2 changes: 1 addition & 1 deletion src/BasicNode/demos/FieldCollapse.tsx
@@ -1,5 +1,5 @@
import { Button, Divider } from 'antd';
import { BasicNode, NodeField } from 'kitchen-flow-editor';
import { BasicNode, NodeField } from 'pro-flow-editor';
import { memo, useState } from 'react';
import { Flexbox } from 'react-layout-kit';

Expand Down
2 changes: 1 addition & 1 deletion src/BasicNode/demos/Preview.tsx
@@ -1,4 +1,4 @@
import { BasicNode, TextArea } from 'kitchen-flow-editor';
import { BasicNode, TextArea } from 'pro-flow-editor';
import { memo } from 'react';

const String = memo(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/BasicNode/demos/PreviewField.tsx
@@ -1,4 +1,4 @@
import { BasicNode, NodeField } from 'kitchen-flow-editor';
import { BasicNode, NodeField } from 'pro-flow-editor';
import { memo } from 'react';

const Demo = memo(() => {
Expand Down

0 comments on commit e4abc06

Please sign in to comment.