Skip to content

Commit

Permalink
♻️ refactor: remove LevaPanel and use independent package
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Jan 15, 2024
1 parent 3d8d767 commit 3ea3ba7
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 562 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ pnpm install @ant-design/pro-editor
```js
const nextConfig = {
transpilePackages: ['@ant-design/pro-editor', 'leva'],
transpilePackages: ['@ant-design/pro-editor'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ pnpm install @ant-design/pro-editor
```js
const nextConfig = {
transpilePackages: ['@ant-design/pro-editor', 'leva'],
transpilePackages: ['@ant-design/pro-editor'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/intro.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Since Next.js is a CSR/SSR isomorphic React framework, and ProEditor only provid
/** @type {import('next').NextConfig} */
const nextConfig = {
// Convert pure esm modules to node-compatible modules
transpilePackages: ['@ant-design/pro-editor', 'leva'], // leva is a ProEditor dependency module
transpilePackages: ['@ant-design/pro-editor'], // leva is a ProEditor dependency module
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/intro.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ProEditor 将会提供编辑场景需要的各类原子化能力,包括但不
/** @type {import('next').NextConfig} */
const nextConfig = {
// 将纯 esm 模块转为 node 兼容模块
transpilePackages: ['@ant-design/pro-editor', 'leva'], // leva 为 ProEditor 依赖模块
transpilePackages: ['@ant-design/pro-editor'], // leva 为 ProEditor 依赖模块
};
```

Expand Down
3 changes: 2 additions & 1 deletion docs/pro-editor/demos/buttonAsset/_Panel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { RedoOutlined, UndoOutlined } from '@ant-design/icons';
import { LevaPanel, useProBuilderStore } from '@ant-design/pro-editor';
import { LevaPanel } from '@ant-design/leva-panel';
import { useProBuilderStore } from '@ant-design/pro-editor';
import { Button, Divider } from 'antd';
import isEqual from 'fast-deep-equal';
import { FC, memo } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"fast-deep-equal": "^3.1.3",
"highlight.js": "~10.5.0",
"immer": "^9.0.21",
"leva": "^0.9.35",
"lodash.flatten": "^4.4.0",
"lodash.get": "^4.4.2",
"lodash.isempty": "^4.4.0",
Expand Down Expand Up @@ -122,6 +121,7 @@
"zustand-utils": "^1.3.1"
},
"devDependencies": {
"@ant-design/leva-panel": "^1.0.0",
"@emotion/jest": "^11.11.0",
"@lobehub/i18n-cli": "^1.15.3",
"@testing-library/jest-dom": "^6.1.5",
Expand Down
81 changes: 0 additions & 81 deletions src/LevaPanel/Schema.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/LevaPanel/demos/button.tsx

This file was deleted.

80 changes: 0 additions & 80 deletions src/LevaPanel/demos/schema.ts

This file was deleted.

113 changes: 0 additions & 113 deletions src/LevaPanel/index.en-US.md

This file was deleted.

Loading

0 comments on commit 3ea3ba7

Please sign in to comment.