editcrafter 1.0.3 → 1.0.7

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/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export declare type CrafterPreviewProps = {
9
9
  className?: string;
10
10
  };
11
11
 
12
+ export declare function EditCrafter({ initialValue, onContentChange, wrapperClassName, contentClassName, imageUploaderConfig, placeholder, }: EditCrafterProps): JSX.Element;
13
+
12
14
  export declare type EditCrafterProps = {
13
15
  initialValue?: string;
14
16
  onContentChange?: (value: string) => void;
@@ -58,8 +60,6 @@ export declare type ImageUploaderType = {
58
60
  defaultUploadHandler?: undefined;
59
61
  };
60
62
 
61
- export declare function SimpleEditor({ initialValue, onContentChange, wrapperClassName, contentClassName, imageUploaderConfig, placeholder, }: EditCrafterProps): JSX.Element;
62
-
63
63
  export { }
64
64
 
65
65
 
@@ -98,17 +98,6 @@ declare module "@tiptap/core" {
98
98
  }
99
99
 
100
100
 
101
- declare module "@tiptap/core" {
102
- interface Commands<ReturnType> {
103
- nodeBackground: {
104
- setNodeBackgroundColor: (backgroundColor: string) => ReturnType;
105
- unsetNodeBackgroundColor: () => ReturnType;
106
- toggleNodeBackgroundColor: (backgroundColor: string) => ReturnType;
107
- };
108
- }
109
- }
110
-
111
-
112
101
  declare module "@tiptap/core" {
113
102
  interface Commands<ReturnType> {
114
103
  nodeAlignment: {
@@ -125,6 +114,17 @@ declare module "@tiptap/core" {
125
114
  }
126
115
 
127
116
 
117
+ declare module "@tiptap/core" {
118
+ interface Commands<ReturnType> {
119
+ nodeBackground: {
120
+ setNodeBackgroundColor: (backgroundColor: string) => ReturnType;
121
+ unsetNodeBackgroundColor: () => ReturnType;
122
+ toggleNodeBackgroundColor: (backgroundColor: string) => ReturnType;
123
+ };
124
+ }
125
+ }
126
+
127
+
128
128
  declare module "@tiptap/react" {
129
129
  interface Commands<ReturnType> {
130
130
  imageUpload: {
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "editcrafter",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/editcrafter.umd.js",
6
6
  "module": "./dist/editcrafter.es.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "!dist/vite.svg"
10
11
  ],
11
12
  "exports": {
12
13
  ".": {
@@ -19,8 +20,46 @@
19
20
  "dev": "vite",
20
21
  "build": "tsc -b && vite build",
21
22
  "lint": "eslint .",
23
+ "prepare": "pnpm build",
22
24
  "preview": "vite preview"
23
25
  },
26
+ "keywords": [
27
+ "react",
28
+ "editor",
29
+ "rich-text",
30
+ "wysiwyg",
31
+ "tiptap",
32
+ "text-editor",
33
+ "markdown",
34
+ "react-editor",
35
+ "typescript",
36
+ "code-block",
37
+ "image-upload",
38
+ "file-handler",
39
+ "react-ui",
40
+ "custom-editor",
41
+ "drag-and-drop",
42
+ "placeholder",
43
+ "tailwindcss",
44
+ "text-styling",
45
+ "collaborative",
46
+ "markdown-editor",
47
+ "react-components"
48
+ ],
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/Md-Anamul-Haque/editcrafter.git"
52
+ },
53
+ "author": "md-anamul-haque",
54
+ "license": "ISC",
55
+ "bugs": {
56
+ "url": "https://github.com/Md-Anamul-Haque/editcrafter/issues"
57
+ },
58
+ "homepage": "https://github.com/Md-Anamul-Haque/editcrafter#readme",
59
+ "peerDependencies": {
60
+ "react": "^18.0.0 || ^19.0.0",
61
+ "react-dom": "^18.0.0 || ^19.0.0"
62
+ },
24
63
  "dependencies": {
25
64
  "@floating-ui/react": "^0.27.17",
26
65
  "@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -42,11 +81,8 @@
42
81
  "@tiptap/pm": "^3.19.0",
43
82
  "@tiptap/react": "^3.19.0",
44
83
  "@tiptap/starter-kit": "^3.19.0",
45
- "editcrafter": "^1.0.1",
46
84
  "html-react-parser": "^5.2.17",
47
85
  "lodash.throttle": "^4.1.1",
48
- "react": "^19.2.0",
49
- "react-dom": "^19.2.0",
50
86
  "react-hotkeys-hook": "^5.2.4"
51
87
  },
52
88
  "devDependencies": {
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>