editcrafter 1.0.7 → 1.0.8

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/README.md CHANGED
@@ -29,13 +29,15 @@ yarn add editcrafter
29
29
  pnpm add editcrafter
30
30
  ```
31
31
 
32
+ > **Note**: EditCrafter requires React 18+ or React 19+ as a peer dependency.
33
+
32
34
  ## Quick Start
33
35
 
34
36
  ### Basic Usage
35
37
 
36
38
  ```tsx
37
39
  import { EditCrafter } from 'editcrafter';
38
- import 'editcrafter/dist/editcrafter.css';
40
+ import 'editcrafter/styles';
39
41
 
40
42
  function App() {
41
43
  const handleContentChange = (html: string) => {
@@ -59,7 +61,7 @@ Tailwind v4 changed how CSS is imported. Here's how to integrate EditCrafter:
59
61
  // app.tsx or main.tsx
60
62
  import { EditCrafter } from 'editcrafter';
61
63
  // Import the CSS file
62
- import 'editcrafter/dist/editcrafter.css';
64
+ import 'editcrafter/styles';
63
65
 
64
66
  function App() {
65
67
  return (
@@ -75,7 +77,7 @@ function App() {
75
77
  ```css
76
78
  /* app.css or global.css */
77
79
  @import "tailwindcss";
78
- @import "editcrafter/dist/editcrafter.css";
80
+ @import "editcrafter/styles";
79
81
  ```
80
82
 
81
83
  ### With Initial Content