fresh-web-editor 0.0.0-stage → 0.1.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.
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "fresh-editor-vue-example",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "predev": "npm --prefix ../.. run build",
7
+ "dev": "vite"
8
+ },
9
+ "dependencies": {
10
+ "fresh-web-editor": "file:../..",
11
+ "vue": "^3.3.0"
12
+ },
13
+ "devDependencies": {
14
+ "@vitejs/plugin-vue": "^5.0.0",
15
+ "vite": "^5.0.0"
16
+ }
17
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'vite';
2
+ import vue from '@vitejs/plugin-vue';
3
+
4
+ export default defineConfig({
5
+ plugins: [vue()],
6
+ resolve: { preserveSymlinks: true },
7
+ });
package/index.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ export interface EditorOptions {
2
+ value?: string;
3
+ draftKey?: string;
4
+ label?: string;
5
+ onChange?: (html: string) => void;
6
+ }
7
+ export declare function mountEditor(
8
+ container: HTMLElement,
9
+ options?: EditorOptions,
10
+ ): {
11
+ getHTML(): string;
12
+ setHTML(html: string): void;
13
+ destroy(): void;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,56 @@
1
- {
2
- "name": "fresh-web-editor",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "fresh-web-editor",
3
+ "version": "0.1.4",
4
+ "type": "module",
5
+ "files": [
6
+ "core.js",
7
+ "dist",
8
+ "adapters",
9
+ "examples",
10
+ "index.d.ts"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./index.d.ts",
15
+ "default": "./core.js"
16
+ },
17
+ "./react": {
18
+ "types": "./adapters/react.d.ts",
19
+ "default": "./adapters/react.js"
20
+ },
21
+ "./vue": {
22
+ "types": "./adapters/vue.d.ts",
23
+ "default": "./adapters/vue.js"
24
+ }
25
+ },
26
+ "scripts": {
27
+ "build": "node scripts/build.mjs",
28
+ "prepare": "npm run build"
29
+ },
30
+ "peerDependencies": {
31
+ "react": ">=18 <20",
32
+ "vue": "^3.3.0"
33
+ },
34
+ "peerDependenciesMeta": {
35
+ "react": {
36
+ "optional": true
37
+ },
38
+ "vue": {
39
+ "optional": true
40
+ }
41
+ },
42
+ "description": "한국어 문서 편집기와 React·Vue 컴포넌트",
43
+ "keywords": [
44
+ "rich-text-editor",
45
+ "wysiwyg",
46
+ "html-editor",
47
+ "document-editor",
48
+ "react",
49
+ "vue3",
50
+ "vanilla-js",
51
+ "contenteditable",
52
+ "korean",
53
+ "웹에디터",
54
+ "문서편집기"
55
+ ]
56
+ }