@bigbinary/neeto-editor 0.3.35 → 0.3.38
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/.babelrc +3 -12
- package/build/index.js +42 -32
- package/package.json +3 -5
- package/webpack.dev.config.js +2 -9
- package/webpack.example.config.js +0 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.38",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"description": "Neeto Editor is the library that drives the rich text experience in all Neeto products built at BigBinary",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@tiptap/extension-mention": "^2.0.0-beta.80",
|
|
28
28
|
"@tiptap/extension-placeholder": "^2.0.0-beta.18",
|
|
29
29
|
"@tiptap/extension-text-style": "^2.0.0-beta.17",
|
|
30
|
-
"@tiptap/extension-typography": "^2.0.0-beta.
|
|
30
|
+
"@tiptap/extension-typography": "^2.0.0-beta.20",
|
|
31
31
|
"@tiptap/extension-underline": "^2.0.0-beta.21",
|
|
32
32
|
"@tiptap/react": "^2.0.0-beta.37",
|
|
33
33
|
"@tiptap/starter-kit": "^2.0.0-beta.57",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"@babel/plugin-transform-runtime": "^7.16.5",
|
|
61
61
|
"@babel/preset-env": "^7.13.15",
|
|
62
62
|
"@babel/preset-react": "^7.13.13",
|
|
63
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
64
63
|
"autoprefixer": "^9",
|
|
65
64
|
"babel-loader": "^8.2.2",
|
|
66
65
|
"css-loader": "^4.3.0",
|
|
@@ -76,7 +75,6 @@
|
|
|
76
75
|
"postcss-preset-env": "^6.7.0",
|
|
77
76
|
"react": "17.0.2",
|
|
78
77
|
"react-dom": "17.0.2",
|
|
79
|
-
"react-refresh": "^0.11.0",
|
|
80
78
|
"react-scripts": "4.0.3",
|
|
81
79
|
"sass": "^1.26.11",
|
|
82
80
|
"sass-loader": "^10.0.2",
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
},
|
|
93
91
|
"scripts": {
|
|
94
92
|
"start": "NODE_ENV=development webpack-dev-server --open --mode development --config webpack.dev.config.js",
|
|
95
|
-
"build": "NODE_ENV=production webpack --config webpack.
|
|
93
|
+
"build": "NODE_ENV=production webpack --config webpack.dev.config.js",
|
|
96
94
|
"webpack-build": "NODE_ENV=production webpack --mode production"
|
|
97
95
|
},
|
|
98
96
|
"eslintConfig": {
|
package/webpack.dev.config.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
const webpack = require("webpack");
|
|
2
1
|
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
|
3
|
-
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
|
4
2
|
const path = require("path");
|
|
5
|
-
require("
|
|
3
|
+
const webpack = require("webpack");
|
|
6
4
|
|
|
7
5
|
module.exports = {
|
|
8
6
|
entry: "./example/index.js",
|
|
9
|
-
devtool: "cheap-
|
|
7
|
+
devtool: "eval-cheap-source-map",
|
|
10
8
|
module: {
|
|
11
9
|
rules: [
|
|
12
10
|
{
|
|
@@ -14,9 +12,6 @@ module.exports = {
|
|
|
14
12
|
exclude: /node_modules/,
|
|
15
13
|
use: {
|
|
16
14
|
loader: "babel-loader",
|
|
17
|
-
options: {
|
|
18
|
-
plugins: ["react-refresh/babel"],
|
|
19
|
-
},
|
|
20
15
|
},
|
|
21
16
|
},
|
|
22
17
|
{
|
|
@@ -55,7 +50,6 @@ module.exports = {
|
|
|
55
50
|
},
|
|
56
51
|
devServer: {
|
|
57
52
|
historyApiFallback: true,
|
|
58
|
-
hot: true,
|
|
59
53
|
},
|
|
60
54
|
plugins: [
|
|
61
55
|
new webpack.DefinePlugin({
|
|
@@ -65,7 +59,6 @@ module.exports = {
|
|
|
65
59
|
template: "./public/index.html",
|
|
66
60
|
filename: "./index.html",
|
|
67
61
|
}),
|
|
68
|
-
new ReactRefreshWebpackPlugin({ overlay: false }),
|
|
69
62
|
],
|
|
70
63
|
resolve: {
|
|
71
64
|
extensions: [".json", ".js", ".jsx"],
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
const webpack = require("webpack");
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
entry: "./example/index.js",
|
|
7
|
-
devtool: "source-map",
|
|
8
|
-
module: {
|
|
9
|
-
rules: [
|
|
10
|
-
{
|
|
11
|
-
test: /\.(js|jsx)$/,
|
|
12
|
-
exclude: /node_modules/,
|
|
13
|
-
use: {
|
|
14
|
-
loader: "babel-loader",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
test: /\.html$/,
|
|
19
|
-
use: [
|
|
20
|
-
{
|
|
21
|
-
loader: "html-loader",
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
test: /\.(png|jpe?g|gif|svg)$/i,
|
|
27
|
-
use: [
|
|
28
|
-
{
|
|
29
|
-
loader: "file-loader",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
test: /\.(sass|css|scss)$/,
|
|
35
|
-
use: [
|
|
36
|
-
// Creates `style` nodes from JS strings
|
|
37
|
-
"style-loader",
|
|
38
|
-
// Translates CSS into CommonJS
|
|
39
|
-
"css-loader",
|
|
40
|
-
"postcss-loader",
|
|
41
|
-
// Compiles Sass to CSS
|
|
42
|
-
"sass-loader",
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
output: {
|
|
48
|
-
path: __dirname + "/build",
|
|
49
|
-
publicPath: "/",
|
|
50
|
-
},
|
|
51
|
-
devServer: {
|
|
52
|
-
historyApiFallback: true,
|
|
53
|
-
},
|
|
54
|
-
plugins: [
|
|
55
|
-
new HtmlWebPackPlugin({
|
|
56
|
-
template: "./public/index.html",
|
|
57
|
-
filename: "./index.html",
|
|
58
|
-
}),
|
|
59
|
-
new webpack.DefinePlugin({
|
|
60
|
-
"process.env": JSON.stringify(process.env),
|
|
61
|
-
}),
|
|
62
|
-
],
|
|
63
|
-
resolve: {
|
|
64
|
-
extensions: [".json", ".js", ".jsx"],
|
|
65
|
-
alias: {
|
|
66
|
-
apis: path.resolve(__dirname, "/lib/apis"),
|
|
67
|
-
components: path.resolve(__dirname, "/lib/components"),
|
|
68
|
-
hooks: path.resolve(__dirname, "/lib/hooks"),
|
|
69
|
-
constants: path.resolve(__dirname, "/lib/constants"),
|
|
70
|
-
utils: path.resolve(__dirname, "/lib/utils"),
|
|
71
|
-
neetoicons: "@bigbinary/neeto-icons",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
};
|