@cocreate/cursors 1.30.0 → 2.0.1

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/webpack.config.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const path = require("path");
2
- const MiniCssExtractPlugin = require("mini-css-extract-plugin");
3
2
  const { EsbuildPlugin } = require("esbuild-loader");
4
3
  const { FileUploader } = require("@cocreate/webpack");
5
4
 
@@ -16,12 +15,7 @@ module.exports = async (env, argv) => {
16
15
  library: ["CoCreate", "cursors"],
17
16
  clean: true
18
17
  },
19
- plugins: [
20
- new MiniCssExtractPlugin({
21
- filename: isProduction ? "[name].min.css" : "[name].css"
22
- }),
23
- new FileUploader(env, argv)
24
- ],
18
+ plugins: [new FileUploader(env, argv)],
25
19
  mode: isProduction ? "production" : "development",
26
20
  devtool: isProduction ? "source-map" : "eval-source-map",
27
21
  module: {
@@ -36,10 +30,6 @@ module.exports = async (env, argv) => {
36
30
  target: "es2017"
37
31
  }
38
32
  }
39
- },
40
- {
41
- test: /.css$/i,
42
- use: [MiniCssExtractPlugin.loader, "css-loader"]
43
33
  }
44
34
  ]
45
35
  },
@@ -47,8 +37,7 @@ module.exports = async (env, argv) => {
47
37
  minimize: isProduction,
48
38
  minimizer: [
49
39
  new EsbuildPlugin({
50
- target: "es2017",
51
- css: true
40
+ target: "es2017"
52
41
  })
53
42
  ],
54
43
  splitChunks: {
package/src/index.css DELETED
@@ -1,54 +0,0 @@
1
- cursor {
2
- position: absolute;
3
- display: inline-block;
4
- width: 2px;
5
- background-color: dodgerblue;
6
- white-space: pre-wrap
7
- /*z-index:10;*/
8
- }
9
-
10
- cursor-flag {
11
- position: absolute;
12
- background-color: inherit;
13
- top: 0px;
14
- font-size: 0px;
15
- color: white;
16
- height: 6px;
17
- width: 6px;
18
- left: -2px;
19
- pointer-events: auto;
20
- }
21
-
22
- cursor-flag:hover {
23
- height: 14px;
24
- width: unset;
25
- padding: 1px 5px 0px 5px;
26
- font-size: 12px;
27
- line-height: 1;
28
- white-space: nowrap;
29
- }
30
-
31
- selected-text {
32
- opacity: 0.4;
33
- }
34
-
35
- .mirror {
36
- pointer-events: none;
37
- }
38
-
39
- .mirror_color {
40
- color: transparent!important;
41
- }
42
-
43
- .mirror_scroll::-webkit-scrollbar {
44
- background: rgba(0, 0, 0, 0.00);
45
- width: 0px;
46
- }
47
-
48
- .mirror[mirror_id][contenteditable] {
49
- white-space: pre-wrap
50
- }
51
-
52
- selected-text * {
53
- background-color: inherit;
54
- }