syntaxic-react-editor 1.0.3 → 1.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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -23,8 +23,12 @@ npm install syntaxic-react-editor
23
23
  ## Usage
24
24
 
25
25
  ```jsx
26
- import { WordEditor } from "syntaxic-react-editor";
27
- import "syntaxic-react-editor/style.css";
26
+ import WordEditor from "syntaxic-react-editor";
27
+
28
+ // CSS is imported automatically by the component.
29
+ // If your bundler doesn't support automatic CSS imports from node_modules,
30
+ // you can still import it manually:
31
+ // import "syntaxic-react-editor/style.css";
28
32
 
29
33
  function App() {
30
34
  return <WordEditor />;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "syntaxic-react-editor",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A powerful and customizable Microsoft Word-like editor for React.",
5
5
  "author": "Syntaxic Labs",
6
6
  "license": "MIT",
7
+ "style": "./dist/index.css",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "git+https://github.com/Syntaxic-Labs/React-Editor.git"
@@ -28,7 +29,8 @@
28
29
  "require": "./dist/index.umd.cjs",
29
30
  "types": "./dist/src/index.d.ts"
30
31
  },
31
- "./style.css": "./dist/index.css"
32
+ "./style.css": "./dist/index.css",
33
+ "./dist/index.css": "./dist/index.css"
32
34
  },
33
35
  "scripts": {
34
36
  "dev": "vite",