Skip to content

Commit

Permalink
🔀 fix: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours committed Oct 9, 2023
2 parents 80e7722 + 434fb04 commit 70f491f
Show file tree
Hide file tree
Showing 129 changed files with 14,746 additions and 16,458 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CI_GITHUB_TOKEN }}

- name: Install pnpm
uses: pnpm/action-setup@v2
Expand All @@ -36,6 +38,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CI_GITHUB_TOKEN }}

- name: Install pnpm
uses: pnpm/action-setup@v2
Expand Down
313 changes: 313 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,318 @@
# Changelog

### [Version 0.20.5](https://github.com/ant-design/pro-editor/compare/v0.20.4...v0.20.5)

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

#### 🐛 修复

- 修复 FieldTitle 样式错误.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- 修复 FieldTitle 样式错误, closes [#92](https://github.com/ant-design/pro-editor/issues/92) ([789172e](https://github.com/ant-design/pro-editor/commit/789172e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version&nbsp;0.20.4](https://github.com/ant-design/pro-editor/compare/v0.20.3...v0.20.4)

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

#### 🐛 修复

- SortableTree return type.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- SortableTree return type ([baa94e8](https://github.com/ant-design/pro-editor/commit/baa94e8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version&nbsp;0.20.3](https://github.com/ant-design/pro-editor/compare/v0.20.2...v0.20.3)

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

#### 🐛 修复

- Return type fc, upgrade ts error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- Return type fc ([c5bf837](https://github.com/ant-design/pro-editor/commit/c5bf837))
- Upgrade ts error ([2cbfca6](https://github.com/ant-design/pro-editor/commit/2cbfca6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version&nbsp;0.20.2](https://github.com/ant-design/pro-editor/compare/v0.20.1...v0.20.2)

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

#### 🐛 修复

- 修复 crypto.randomUUID 在 http 中无法使用的问题.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- 修复 crypto.randomUUID 在 http 中无法使用的问题 ([a2ec772](https://github.com/ant-design/pro-editor/commit/a2ec772))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version&nbsp;0.20.1](https://github.com/ant-design/pro-editor/compare/v0.20.0...v0.20.1)

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

#### 🐛 修复

- Lock version.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- Lock version ([b503ce6](https://github.com/ant-design/pro-editor/commit/b503ce6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version&nbsp;0.20.0](https://github.com/ant-design/pro-editor/compare/v0.19.1...v0.20.0)

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

#### ✨ 新特性

- Add keyManager list, 默认渲染 string list.

#### 🐛 修复

- Columnlist blur not change.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- Add keyManager list ([1337802](https://github.com/ant-design/pro-editor/commit/1337802))
- 默认渲染 string list ([1f87b03](https://github.com/ant-design/pro-editor/commit/1f87b03))

#### What's fixed

- Columnlist blur not change ([353134f](https://github.com/ant-design/pro-editor/commit/353134f))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version&nbsp;0.19.1](https://github.com/ant-design/pro-editor/compare/v0.19.0...v0.19.1)

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

#### 🐛 修复

- ColumnList id lost, 修复文档样式显示异常.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- ColumnList id lost ([955e838](https://github.com/ant-design/pro-editor/commit/955e838))
- 修复文档样式显示异常 ([bfa84fc](https://github.com/ant-design/pro-editor/commit/bfa84fc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version&nbsp;0.19.0](https://github.com/ant-design/pro-editor/compare/v0.18.1...v0.19.0)

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

#### ✨ 新特性

- Support renderEmpty and add sotrablelist custom create demo.

#### 🐛 修复

- 默认不提供 creatorButtonProps.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- Support renderEmpty and add sotrablelist custom create demo ([d0629c6](https://github.com/ant-design/pro-editor/commit/d0629c6))

#### What's fixed

- 默认不提供 creatorButtonProps ([bfc2f6d](https://github.com/ant-design/pro-editor/commit/bfc2f6d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version&nbsp;0.18.1](https://github.com/ant-design/pro-editor/compare/v0.18.0...v0.18.1)

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

#### 🐛 修复

- Sortablelist controlled value.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- Sortablelist controlled value ([16182c1](https://github.com/ant-design/pro-editor/commit/16182c1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version&nbsp;0.18.0](https://github.com/ant-design/pro-editor/compare/v0.17.0...v0.18.0)

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

#### ✨ 新特性

- Delete tipGuide key & add some demo.

#### 🐛 修复

- Defautl getId, 修复 ProBuilder 引用错误.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- Delete tipGuide key & add some demo ([1c2f206](https://github.com/ant-design/pro-editor/commit/1c2f206))

#### What's fixed

- Defautl getId ([f1f5d61](https://github.com/ant-design/pro-editor/commit/f1f5d61))
- 修复 ProBuilder 引用错误 ([c440447](https://github.com/ant-design/pro-editor/commit/c440447))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version&nbsp;0.17.0](https://github.com/ant-design/pro-editor/compare/v0.16.0...v0.17.0)

<sup>Released on **2023-08-31**</sup>

#### ✨ 新特性

- Add rc-utils, TipGuide add controlled api, update snapshot.

#### 🐛 修复

- Merge main.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- Add rc-utils ([d89f716](https://github.com/ant-design/pro-editor/commit/d89f716))
- TipGuide add controlled api ([a5df92a](https://github.com/ant-design/pro-editor/commit/a5df92a))
- Update snapshot ([1a06859](https://github.com/ant-design/pro-editor/commit/1a06859))

#### What's fixed

- Merge main ([808ff09](https://github.com/ant-design/pro-editor/commit/808ff09))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version&nbsp;0.16.0](https://github.com/ant-design/pro-editor/compare/v0.15.0...v0.16.0)

<sup>Released on **2023-08-31**</sup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div align="center">

🌟 An Editor UI Framework
🌟 An Editor UI Framework and Components

[Changelog](./CHANGELOG.md) · [Report Bug][issues-url] · [Request Feature][issues-url]

Expand Down
2 changes: 2 additions & 0 deletions docs/guide/demos/editor-store/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './selectors';
export { createEditorStore } from './store';
7 changes: 7 additions & 0 deletions docs/guide/demos/editor-store/initalState.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CRUDState, initialCRUDState } from './slices/crud';

export type EditorStoreState = CRUDState;

export const initialState: EditorStoreState = {
...initialCRUDState,
};
1 change: 1 addition & 0 deletions docs/guide/demos/editor-store/selectors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './slices/crud/selectors';
21 changes: 21 additions & 0 deletions docs/guide/demos/editor-store/slices/crud/action.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { StateCreator } from 'zustand';
import { EditorStore } from '../../store';

export interface CrudSlice {
increment: () => void;
updateText: (text: string) => void;
}

export const createCrudSlice: StateCreator<
EditorStore,
[['zustand/devtools', never]],
[],
CrudSlice
> = (set) => ({
increment: () =>
set((state) => ({
...state,
count: state.count + 1,
})),
updateText: (text) => set((state) => ({ ...state, text })),
});
2 changes: 2 additions & 0 deletions docs/guide/demos/editor-store/slices/crud/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './action';
export * from './initalState';
9 changes: 9 additions & 0 deletions docs/guide/demos/editor-store/slices/crud/initalState.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export interface CRUDState {
count: number;
text: string;
}

export const initialCRUDState = {
count: 0,
text: '',
};
5 changes: 5 additions & 0 deletions docs/guide/demos/editor-store/slices/crud/selectors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { EditorStore } from '../../store';

export const isDesignTest = (s: EditorStore) => s.text === 'design';

export const editorSelectors = { isDesignTest };
Loading

0 comments on commit 70f491f

Please sign in to comment.