@innoviatech/lexical-text-editor 0.0.3 → 0.0.4
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.
- package/package.json +17 -24
- package/rollup.config.js +21 -29
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innoviatech/lexical-text-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Reusable rich text editor component",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"rollup": "rollup -c --bundleConfigAsCjs"
|
|
10
|
-
},
|
|
11
8
|
"license": "MIT",
|
|
12
9
|
"publishConfig": {
|
|
13
10
|
"access": "public"
|
|
14
11
|
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"rollup": "rollup -c --bundleConfigAsCjs"
|
|
14
|
+
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": ">=18",
|
|
17
17
|
"react-dom": ">=18",
|
|
@@ -30,35 +30,28 @@
|
|
|
30
30
|
"react-icons": "^5.5.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@radix-ui/react-dialog": "^1.1.5",
|
|
34
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
35
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
36
|
-
"class-variance-authority": "^0.7.0",
|
|
37
|
-
"clsx": "^2.1.1",
|
|
38
33
|
"lucide-react": "^0.546.0",
|
|
39
|
-
"react-color": "^2.19.3"
|
|
40
|
-
"react-icons": "^5.5.0",
|
|
41
|
-
"tailwind-merge": "^2.3.0"
|
|
34
|
+
"react-color": "^2.19.3"
|
|
42
35
|
},
|
|
43
36
|
"devDependencies": {
|
|
44
|
-
"@lexical/code": "^0.36.2",
|
|
45
|
-
"@lexical/link": "^0.36.2",
|
|
46
|
-
"@lexical/list": "^0.36.2",
|
|
47
|
-
"@lexical/react": "^0.36.2",
|
|
48
|
-
"@lexical/rich-text": "^0.36.2",
|
|
49
37
|
"@rollup/plugin-commonjs": "^28.0.8",
|
|
50
38
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
51
39
|
"@rollup/plugin-terser": "^0.4.4",
|
|
52
40
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"@types/react-dom": "^19.2.2",
|
|
56
|
-
"lexical": "^0.36.2",
|
|
57
|
-
"react": "^19.2.0",
|
|
41
|
+
"typescript": "^5.9.3",
|
|
42
|
+
"tslib": "^2.8.1",
|
|
58
43
|
"rollup-plugin-dts": "^6.2.3",
|
|
59
44
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
60
45
|
"rollup-plugin-postcss": "^4.0.2",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
46
|
+
"@types/react": "^19.2.2",
|
|
47
|
+
"@types/react-dom": "^19.2.2",
|
|
48
|
+
"@types/react-color": "^3.0.13",
|
|
49
|
+
"lexical": "^0.36.2",
|
|
50
|
+
"@lexical/code": "^0.36.2",
|
|
51
|
+
"@lexical/link": "^0.36.2",
|
|
52
|
+
"@lexical/list": "^0.36.2",
|
|
53
|
+
"@lexical/react": "^0.36.2",
|
|
54
|
+
"@lexical/rich-text": "^0.36.2",
|
|
55
|
+
"react": "^19.2.0"
|
|
63
56
|
}
|
|
64
57
|
}
|
package/rollup.config.js
CHANGED
|
@@ -1,48 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const resolve = require('@rollup/plugin-node-resolve').default;
|
|
2
|
+
const typescript = require('@rollup/plugin-typescript');
|
|
3
|
+
const commonjs = require('@rollup/plugin-commonjs');
|
|
4
|
+
const peerDepsExternal = require('rollup-plugin-peer-deps-external');
|
|
5
|
+
const terser = require('@rollup/plugin-terser');
|
|
6
|
+
const dts = require('rollup-plugin-dts').default;
|
|
7
|
+
const postcss = require('rollup-plugin-postcss');
|
|
8
8
|
const packageJson = require('./package.json');
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
module.exports = [
|
|
11
11
|
{
|
|
12
12
|
input: 'src/index.ts',
|
|
13
13
|
output: [
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
format: 'cjs',
|
|
17
|
-
sourcemap: true,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
file: packageJson.module,
|
|
21
|
-
format: 'esm',
|
|
22
|
-
sourcemap: true,
|
|
23
|
-
},
|
|
14
|
+
{ file: packageJson.main, format: 'cjs', sourcemap: true },
|
|
15
|
+
{ file: packageJson.module, format: 'esm', sourcemap: true }
|
|
24
16
|
],
|
|
25
17
|
plugins: [
|
|
26
18
|
peerDepsExternal(),
|
|
27
19
|
resolve(),
|
|
28
20
|
commonjs(),
|
|
29
21
|
typescript({ tsconfig: './tsconfig.json' }),
|
|
30
|
-
terser(),
|
|
31
22
|
postcss({ extract: true }),
|
|
23
|
+
terser()
|
|
32
24
|
],
|
|
33
25
|
external: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
"react", "react-dom",
|
|
27
|
+
"lexical", "@lexical/react", "@lexical/rich-text",
|
|
28
|
+
"@lexical/list", "@lexical/link", "@lexical/code",
|
|
29
|
+
"clsx", "tailwind-merge", "class-variance-authority",
|
|
30
|
+
"@radix-ui/react-popover", "@radix-ui/react-tooltip", "@radix-ui/react-dialog",
|
|
31
|
+
"react-icons", "react-color"
|
|
40
32
|
]
|
|
41
33
|
},
|
|
42
34
|
{
|
|
43
35
|
input: 'src/index.ts',
|
|
44
36
|
output: [{ file: packageJson.types }],
|
|
45
|
-
plugins: [dts
|
|
46
|
-
external: [/\.css
|
|
47
|
-
}
|
|
48
|
-
]
|
|
37
|
+
plugins: [dts()],
|
|
38
|
+
external: [/\.css$/]
|
|
39
|
+
}
|
|
40
|
+
];
|