@lobehub/editor 4.21.0 โ†’ 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -15
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -70,7 +70,7 @@ A modern, extensible rich text editor built on Meta's Lexical framework with dua
70
70
  - ๐ŸŽจ **Customizable UI** - Antd-styled components with flexible theming
71
71
  - ๐Ÿ”— **File & Media Support** - Native support for images, files, tables, and more
72
72
  - ๐ŸŽฏ **TypeScript Native** - Built with TypeScript for excellent developer experience
73
- - ๐Ÿ“ฑ **Modern Build System** - Optimized with Vite, Dumi docs, and comprehensive testing
73
+ - ๐Ÿ“ฑ **Modern Build System** - Optimized with Vite, lobedocs, and comprehensive testing
74
74
 
75
75
  ## ๐Ÿ“ฆ Installation
76
76
 
@@ -419,21 +419,22 @@ $ pnpm install
419
419
  $ pnpm run dev
420
420
  ```
421
421
 
422
- This will start the Dumi documentation server with live playground at `http://localhost:8000`.
422
+ This starts the lobedocs development server with the live component playground. The local URL is
423
+ printed in the terminal.
423
424
 
424
425
  ### Available Scripts
425
426
 
426
- | Script | Description |
427
- | -------------------- | --------------------------------------------- |
428
- | `pnpm dev` | Start Dumi development server with playground |
429
- | `pnpm build` | Build library and generate type definitions |
430
- | `pnpm test` | Run tests with Vitest |
431
- | `pnpm test:coverage` | Run tests with coverage report |
432
- | `pnpm lint` | Lint and fix code with ESLint |
433
- | `pnpm type-check` | Type check with TypeScript |
434
- | `pnpm ci` | Run all CI checks (lint, type-check, test) |
435
- | `pnpm docs:build` | Build documentation for production |
436
- | `pnpm release` | Publish new version with semantic-release |
427
+ | Script | Description |
428
+ | -------------------- | -------------------------------------------- |
429
+ | `pnpm dev` | Start lobedocs with the component playground |
430
+ | `pnpm build` | Build library and generate type definitions |
431
+ | `pnpm test` | Run tests with Vitest |
432
+ | `pnpm test:coverage` | Run tests with coverage report |
433
+ | `pnpm lint` | Lint and fix code with ESLint |
434
+ | `pnpm type-check` | Type check with TypeScript |
435
+ | `pnpm ci` | Run all CI checks (lint, type-check, test) |
436
+ | `pnpm docs:build` | Build documentation for production |
437
+ | `pnpm release` | Publish new version with semantic-release |
437
438
 
438
439
  ### Debug Environment Variables
439
440
 
@@ -587,9 +588,9 @@ lobe-editor/
587
588
  โ”‚ โ””โ”€โ”€ index.ts # Public API exports
588
589
  โ”‚
589
590
  โ”œโ”€โ”€ docs/ # ๐Ÿ“š Documentation source
591
+ โ”œโ”€โ”€ docs.config.ts # lobedocs site configuration
590
592
  โ”œโ”€โ”€ tests/ # ๐Ÿงช Test files
591
- โ”œโ”€โ”€ vitest.config.ts # Test configuration
592
- โ””โ”€โ”€ .dumi/ # Dumi doc build cache
593
+ โ””โ”€โ”€ vitest.config.ts # Test configuration
593
594
  ```
594
595
 
595
596
  The architecture follows a **dual-layer design**:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/editor",
3
- "version": "4.21.0",
3
+ "version": "4.22.0",
4
4
  "description": "A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -61,11 +61,11 @@
61
61
  "build:clean": "tsx ./scripts/clean.ts",
62
62
  "build:watch": "tsdown --watch",
63
63
  "ci": "npm run lint:circular && npm run lint && npm run type-check",
64
- "clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
65
- "dev": "dumi dev",
66
- "docs:build": "dumi build",
67
- "docs:build-analyze": "ANALYZE=1 dumi build",
68
- "docs:dev": "dumi dev",
64
+ "clean": "rm -r es lib dist coverage .react-router .eslintcache node_modules/.cache",
65
+ "dev": "lobedocs dev",
66
+ "docs:build": "lobedocs build",
67
+ "docs:build-analyze": "ANALYZE=1 lobedocs build",
68
+ "docs:dev": "lobedocs dev",
69
69
  "postinstall": "node ./scripts/postinstall-lexical-patch.cjs",
70
70
  "lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
71
71
  "lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
@@ -76,7 +76,7 @@
76
76
  "prepare": "husky && npm run setup",
77
77
  "prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
78
78
  "release": "semantic-release",
79
- "setup": "dumi setup",
79
+ "setup": "lobedocs typegen",
80
80
  "start": "npm run docs:dev",
81
81
  "test": "vitest",
82
82
  "test:coverage": "vitest run --coverage --passWithNoTests",