@abduljebar/text-editor 1.1.3 → 1.2.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.
@@ -24,6 +24,7 @@ interface EditorActions {
24
24
  includeStyles: boolean;
25
25
  includeMeta: boolean;
26
26
  }) => string;
27
+ initializeContent: (content: string) => void;
27
28
  }
28
29
  export declare const useEditorStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<EditorState & EditorActions>, "setState" | "persist"> & {
29
30
  setState(partial: (EditorState & EditorActions) | Partial<EditorState & EditorActions> | ((state: EditorState & EditorActions) => (EditorState & EditorActions) | Partial<EditorState & EditorActions>), replace?: false | undefined): unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"editor.store.d.ts","sourceRoot":"","sources":["../../src/store/editor.store.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEnF,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,UAAU,aAAa;IACrB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,mBAAmB,EAAE,MAAM,IAAI,CAAC;IA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EAAE,MAAM,CAAA;KAAE,CAAC;IACtF,YAAY,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,aAAa,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,OAAO,CAAA;KAAE,KAAK,MAAM,CAAC;IACrF,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAgBD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;EA0M1B,CAAC"}
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@abduljebar/text-editor",
3
- "version": "1.1.3",
4
- "description": "A professional React text editor with export, save, and validation features",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "style": "./dist/index.css",
10
- "files": [
11
- "dist",
12
- "README.md"
13
- ],
14
- "exports": {
15
- ".": {
16
- "import": "./dist/index.js",
17
- "types": "./dist/index.d.ts",
18
- "require": "./dist/index.js"
19
- },
20
- "./dist/index.css": "./dist/index.css"
21
- },
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "vite build",
25
- "build:lib": "vite build --config vite.lib.config.ts",
26
- "build:types": "tsc -p tsconfig.build.json",
27
- "lint": "eslint .",
28
- "preview": "vite preview",
29
- "prepublishOnly": "npm run build:lib && npm run build:types",
30
- "type-check": "tsc --noEmit"
31
- },
32
- "keywords": [
33
- "react",
34
- "text-editor",
35
- "rich-text",
36
- "wysiwyg",
37
- "editor",
38
- "contenteditable"
39
- ],
40
- "author": "Abdul Jebar",
41
- "license": "MIT",
42
- "repository": {
43
- "type": "git",
44
- "url": "https://github.com/abduljebar49/text-editor"
45
- },
46
- "homepage": "https://github.com/abduljebar49/text-editor#readme",
47
- "bugs": {
48
- "url": "https://github.com/abduljebar49/text-editor/issues"
49
- },
50
- "peerDependencies": {
51
- "react": "^18.0.0 || ^19.0.0",
52
- "react-dom": "^18.0.0 || ^19.0.0"
53
- },
54
- "devDependencies": {
55
- "@eslint/js": "^9.36.0",
56
- "@tailwindcss/cli": "^4.1.14",
57
- "@tailwindcss/postcss": "^4.1.14",
58
- "@types/node": "^24.6.0",
59
- "@types/react": "^19.1.16",
60
- "@types/react-dom": "^19.1.9",
61
- "@vitejs/plugin-react": "^5.0.4",
62
- "autoprefixer": "^10.4.21",
63
- "eslint": "^9.36.0",
64
- "eslint-plugin-react-hooks": "^5.2.0",
65
- "eslint-plugin-react-refresh": "^0.4.22",
66
- "globals": "^16.4.0",
67
- "postcss": "^8.5.6",
68
- "tailwindcss": "^4.1.14",
69
- "typescript": "~5.9.3",
70
- "typescript-eslint": "^8.45.0",
71
- "vite": "^7.1.7",
72
- "vite-plugin-dts": "^4.5.4"
73
- },
74
- "dependencies": {
75
- "@tailwindcss/vite": "^4.1.14",
76
- "lucide-react": "^0.544.0",
77
- "react": "^18.0.0 || ^19.0.0",
78
- "react-dom": "^18.0.0 || ^19.0.0",
79
- "zustand": "^5.0.8"
80
- }
81
- }
1
+ {
2
+ "name": "@abduljebar/text-editor",
3
+ "version": "1.2.1",
4
+ "description": "A professional React text editor with export, save, and validation features",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "style": "./dist/index.css",
10
+ "files": [
11
+ "dist",
12
+ "README.md"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "require": "./dist/index.js"
19
+ },
20
+ "./dist/index.css": "./dist/index.css"
21
+ },
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "vite build",
25
+ "build:lib": "vite build --config vite.lib.config.ts",
26
+ "build:types": "tsc -p tsconfig.build.json",
27
+ "lint": "eslint .",
28
+ "preview": "vite preview",
29
+ "prepublishOnly": "npm run build:lib && npm run build:types",
30
+ "type-check": "tsc --noEmit"
31
+ },
32
+ "keywords": [
33
+ "react",
34
+ "text-editor",
35
+ "rich-text",
36
+ "wysiwyg",
37
+ "editor",
38
+ "contenteditable"
39
+ ],
40
+ "author": "Abdul Jebar",
41
+ "license": "MIT",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "https://github.com/abduljebar49/text-editor"
45
+ },
46
+ "homepage": "https://github.com/abduljebar49/text-editor#readme",
47
+ "bugs": {
48
+ "url": "https://github.com/abduljebar49/text-editor/issues"
49
+ },
50
+ "peerDependencies": {
51
+ "react": "^18.0.0 || ^19.0.0",
52
+ "react-dom": "^18.0.0 || ^19.0.0"
53
+ },
54
+ "devDependencies": {
55
+ "@eslint/js": "^9.36.0",
56
+ "@tailwindcss/cli": "^4.1.14",
57
+ "@tailwindcss/postcss": "^4.1.14",
58
+ "@types/node": "^24.6.0",
59
+ "@types/react": "^19.1.16",
60
+ "@types/react-dom": "^19.1.9",
61
+ "@vitejs/plugin-react": "^5.0.4",
62
+ "autoprefixer": "^10.4.21",
63
+ "eslint": "^9.36.0",
64
+ "eslint-plugin-react-hooks": "^5.2.0",
65
+ "eslint-plugin-react-refresh": "^0.4.22",
66
+ "globals": "^16.4.0",
67
+ "postcss": "^8.5.6",
68
+ "tailwindcss": "^4.1.14",
69
+ "typescript": "~5.9.3",
70
+ "typescript-eslint": "^8.45.0",
71
+ "vite": "^7.1.7",
72
+ "vite-plugin-dts": "^4.5.4"
73
+ },
74
+ "dependencies": {
75
+ "@tailwindcss/vite": "^4.1.14",
76
+ "lucide-react": "^0.544.0",
77
+ "react": "^18.0.0 || ^19.0.0",
78
+ "react-dom": "^18.0.0 || ^19.0.0",
79
+ "zustand": "^5.0.8"
80
+ }
81
+ }