lexical-medium-editor 1.2.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 +32 -0
  2. package/package.json +47 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # An Open Source Medium clone built with Lexical.
2
+ Please refer to the [guide](https://medium-editor-lmr5y.ondigitalocean.app/) for more details.
3
+
4
+ ## Installation
5
+
6
+ ### 1. Install Peer Dependencies
7
+
8
+ Before installing the main package, you need to ensure that all its peer dependencies are present in your project. This package assumes you are working within a React environment, so `react` and `react-dom` should ideally already be part of your project setup.
9
+
10
+ The primary peer dependencies you need to install are:
11
+
12
+ * `@lexical/react`: ">=0.39.0"
13
+ * `@tabler/icons-react`: ">=3.31.0"
14
+ * `lexical`: ">=0.39.0"
15
+ * `react-aria-components`: ">=1.8.0"
16
+
17
+ You can install them using npm. Adjust the versions if needed to match your project's requirements, ensuring they meet the minimum versions specified above.
18
+
19
+ **Using npm:**
20
+ ```bash
21
+ npm install @lexical/react @tabler/icons-react lexical react-aria-components
22
+ ```
23
+
24
+ ### 2. Install Package
25
+
26
+ Once the peer dependencies are installed, you can proceed to install the main package.
27
+
28
+ To install the `lexical-medium-editor` package, run the following command:
29
+
30
+ ```bash
31
+ npm install lexical-medium-editor
32
+ ```
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "lexical-medium-editor",
3
+ "private": false,
4
+ "version": "1.2.0",
5
+ "type": "module",
6
+ "module": "./dist-lib/index.es.js",
7
+ "main": "./dist-lib/index.es.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist-lib/index.es.js"
11
+ },
12
+ "./config": {
13
+ "import": "./dist-lib/editorConfig.es.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist-lib"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "build:app": "vite build --mode app",
22
+ "build:lib": "vite build --mode lib",
23
+ "lint": "eslint .",
24
+ "preview": "vite preview --outDir dist-app"
25
+ },
26
+ "peerDependencies": {
27
+ "@lexical/react": ">=0.39.0",
28
+ "@tabler/icons-react": ">=3.31.0",
29
+ "lexical": ">=0.39.0",
30
+ "react": ">=18.0.0",
31
+ "react-aria-components": ">=1.8.0",
32
+ "react-dom": ">=18.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@eslint/js": "^9.21.0",
36
+ "@types/react": "^19.1.2",
37
+ "@types/react-dom": "^19.1.2",
38
+ "@vitejs/plugin-react": "^4.4.1",
39
+ "eslint": "^9.25.1",
40
+ "eslint-plugin-react": "^7.37.5",
41
+ "eslint-plugin-react-hooks": "^5.2.0",
42
+ "eslint-plugin-react-refresh": "^0.4.20",
43
+ "globals": "^15.15.0",
44
+ "vite": "^6.3.2",
45
+ "vite-plugin-libcss": "^1.1.1"
46
+ }
47
+ }