eddyter 1.3.75 → 1.3.76
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/LICENSE +24 -24
- package/README.md +478 -478
- package/dist/EddyterIcon.svg +24 -24
- package/dist/api/config/endpoints.d.ts +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-B9hn44Wo.js → babel-CCPWkrf4.js} +1302 -726
- package/dist/components/EddyterLogo/EddyterLogo.d.ts +2 -1
- package/dist/components/HtmlCodeEditor.d.ts +9 -0
- package/dist/components/Placeholder/styles.d.ts +2 -0
- package/dist/components/Toast/EditorToast.d.ts +2 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/config/env.d.ts +8 -0
- package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
- package/dist/generateDocxThumbnail-BbSs-3CJ.js +5876 -0
- package/dist/generatePdfThumbnail-U8R2yu3J.js +53 -0
- package/dist/generateXlsxThumbnail-BUwuqsXR.js +21707 -0
- package/dist/hooks/useFeedbackEligibility.d.ts +2 -2
- package/dist/hooks/usePdfPreview.d.ts +6 -0
- package/dist/{html-CxCicOef.js → html-CmniStvG.js} +589 -350
- package/dist/html2canvas.esm-C2wu93Kq.js +4867 -0
- package/dist/{html2pdf.bundle.min-BxzIoi3T.js → html2pdf.bundle.min-Css6bHHm.js} +5223 -3407
- package/dist/{index-Cuv9ugJL.js → index-CCVZobcV.js} +3 -3
- package/dist/index-CVEa0GRe.js +131 -0
- package/dist/{index-CtPRZTab.js → index-DTkM3xiE.js} +12 -9
- package/dist/{index-DxEP36zG.js → index-DjD3NbU0.js} +14177 -13383
- package/dist/index.js +1 -1
- package/dist/lib/toast.d.ts +39 -0
- package/dist/{markdown-BUjgWFLu.js → markdown-B0mEGGfQ.js} +1015 -578
- package/dist/nodes/EmbedNode.d.ts +7 -2
- package/dist/nodes/FileNode.d.ts +3 -0
- package/dist/{postcss-CGIcwj_g.js → postcss-B0bxXf7u.js} +1065 -615
- package/dist/{standalone-C0qguT38.js → standalone-DmuJV5rn.js} +596 -350
- package/dist/store/tableFullWidthStore.d.ts +6 -0
- package/dist/types.d.ts +2 -0
- package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
- package/dist/utils/editorStyleConverter.d.ts +3 -1
- package/dist/utils/generateDocxThumbnail.d.ts +5 -0
- package/dist/utils/generatePdfThumbnail.d.ts +1 -0
- package/dist/utils/generateXlsxThumbnail.d.ts +5 -0
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/htmlFormat.d.ts +5 -0
- package/dist/utils/index.d.ts +4 -4
- package/package.json +147 -150
- package/dist/html2pdf.bundle-CVq-OpZt.js +0 -32961
- package/dist/index-eRyVFO7x.js +0 -83
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { LexicalEditor } from '../../node_modules/lexical';
|
|
1
|
+
import { NodeKey, LexicalEditor } from '../../node_modules/lexical';
|
|
2
2
|
/**
|
|
3
3
|
* ==========================================
|
|
4
4
|
* Main Export Hooks & Functions
|
|
5
5
|
* ==========================================
|
|
6
6
|
*/
|
|
7
7
|
export declare function useExportWithStriping(): () => string;
|
|
8
|
+
/** Collect table node keys in document order (for export and initial content fullWidth). */
|
|
9
|
+
export declare function getTableKeysInDocumentOrder(editor: LexicalEditor): NodeKey[];
|
|
8
10
|
export declare function exportEditorWithInlineStyle(editor: LexicalEditor): string;
|
|
9
11
|
/**
|
|
10
12
|
* Processes initial HTML content for loading into the editor.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generatePdfThumbnail(pdfUrl: string): Promise<string>;
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const AI_ACTION_COMMAND: import('../../node_modules/lexical').LexicalCommand<{
|
|
2
2
|
type: string;
|
|
3
3
|
}>;
|
|
4
|
+
/** Dispatched to request immediate HTML export (e.g. after table full-width toggle) so preview updates without waiting for debounce. */
|
|
5
|
+
export declare const REQUEST_IMMEDIATE_EXPORT_COMMAND: import('../../node_modules/lexical').LexicalCommand<void>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { IMenuButtonStyle } from '../types';
|
|
3
|
-
export declare const getMenuButtonStyle: ({ open, isMdViewport, }: IMenuButtonStyle) =>
|
|
4
|
-
export declare const getActiveBtnStyle: (isActive: boolean) =>
|
|
5
|
-
export declare const getColorPickerPaperStyle: () =>
|
|
3
|
+
export declare const getMenuButtonStyle: ({ open, isMdViewport, }: IMenuButtonStyle) => React.CSSProperties;
|
|
4
|
+
export declare const getActiveBtnStyle: (isActive: boolean) => React.CSSProperties;
|
|
5
|
+
export declare const getColorPickerPaperStyle: () => React.CSSProperties;
|
package/package.json
CHANGED
|
@@ -1,150 +1,147 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"check": "pnpm prettier:check && pnpm lint"
|
|
149
|
-
}
|
|
150
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "eddyter",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.3.76",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"packageManager": "pnpm@9.0.0",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"rich-text-editor",
|
|
9
|
+
"text-editor",
|
|
10
|
+
"wysiwyg",
|
|
11
|
+
"editor",
|
|
12
|
+
"ai-editor",
|
|
13
|
+
"ai-writing",
|
|
14
|
+
"ai-assistant",
|
|
15
|
+
"content-editor",
|
|
16
|
+
"document-editor",
|
|
17
|
+
"web-editor",
|
|
18
|
+
"react-editor",
|
|
19
|
+
"javascript-editor",
|
|
20
|
+
"frontend-component",
|
|
21
|
+
"ui-component",
|
|
22
|
+
"saas-editor",
|
|
23
|
+
"api-key",
|
|
24
|
+
"authenticated-editor",
|
|
25
|
+
"pluggable-editor",
|
|
26
|
+
"configurable-editor",
|
|
27
|
+
"eddyter"
|
|
28
|
+
],
|
|
29
|
+
"main": "dist/index.js",
|
|
30
|
+
"module": "dist/index.js",
|
|
31
|
+
"types": "dist/index.d.ts",
|
|
32
|
+
"style": "dist/assets/style.css",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"import": "./dist/index.js",
|
|
39
|
+
"types": "./dist/index.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./style.css": "./dist/assets/style.css"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
45
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"dev": "vite",
|
|
49
|
+
"build": "tsc && vite build --mode production",
|
|
50
|
+
"preview": "vite preview",
|
|
51
|
+
"prettier:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
52
|
+
"prettier:format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
53
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
54
|
+
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
55
|
+
"format": "pnpm prettier:format && pnpm lint:fix",
|
|
56
|
+
"check": "pnpm prettier:check && pnpm lint",
|
|
57
|
+
"prepare": "husky",
|
|
58
|
+
"prepublishOnly": "pnpm build"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@lexical/clipboard": "^0.24.0",
|
|
62
|
+
"@lexical/code": "^0.24.0",
|
|
63
|
+
"@lexical/dragon": "^0.24.0",
|
|
64
|
+
"@lexical/history": "^0.24.0",
|
|
65
|
+
"@lexical/html": "^0.24.0",
|
|
66
|
+
"@lexical/link": "^0.24.0",
|
|
67
|
+
"@lexical/list": "^0.24.0",
|
|
68
|
+
"@lexical/markdown": "0.24.0",
|
|
69
|
+
"@lexical/react": "^0.24.0",
|
|
70
|
+
"@lexical/rich-text": "^0.24.0",
|
|
71
|
+
"@lexical/selection": "^0.24.0",
|
|
72
|
+
"@lexical/table": "^0.24.0",
|
|
73
|
+
"@lexical/text": "^0.24.0",
|
|
74
|
+
"@lexical/utils": "^0.24.0",
|
|
75
|
+
"@radix-ui/react-avatar": "^1.1.3",
|
|
76
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
77
|
+
"@radix-ui/react-dialog": "^1.1.6",
|
|
78
|
+
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
79
|
+
"@radix-ui/react-label": "^2.1.2",
|
|
80
|
+
"@radix-ui/react-popover": "^1.1.13",
|
|
81
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
82
|
+
"@radix-ui/react-separator": "^1.1.2",
|
|
83
|
+
"@radix-ui/react-slot": "^1.2.2",
|
|
84
|
+
"@radix-ui/react-tabs": "^1.1.3",
|
|
85
|
+
"@radix-ui/react-tooltip": "^1.1.8",
|
|
86
|
+
"@types/react-signature-canvas": "^1.0.7",
|
|
87
|
+
"axios": "^1.8.1",
|
|
88
|
+
"class-variance-authority": "^0.7.1",
|
|
89
|
+
"clsx": "^2.1.1",
|
|
90
|
+
"docx-preview": "^0.3.0",
|
|
91
|
+
"html2canvas": "^1.4.1",
|
|
92
|
+
"emoji-picker-react": "^4.12.0",
|
|
93
|
+
"html2pdf.js": "^0.14.0",
|
|
94
|
+
"lexical": "^0.24.0",
|
|
95
|
+
"lexical-ai-plugin": "0.0.2-alpha",
|
|
96
|
+
"lodash-es": "^4.17.21",
|
|
97
|
+
"pdfjs-dist": "^3.11.174",
|
|
98
|
+
"xlsx": "^0.18.5",
|
|
99
|
+
"lucide-react": "^0.344.0",
|
|
100
|
+
"marked": "^17.0.1",
|
|
101
|
+
"prettier": "^3.5.1",
|
|
102
|
+
"react-colorful": "^5.6.1",
|
|
103
|
+
"react-router-dom": "^7.2.0",
|
|
104
|
+
"react-signature-canvas": "^1.1.0-alpha.1",
|
|
105
|
+
"sass": "^1.57.1",
|
|
106
|
+
"tailwind-merge": "^3.0.2",
|
|
107
|
+
"tailwindcss": "3",
|
|
108
|
+
"tailwindcss-animate": "^1.0.7"
|
|
109
|
+
},
|
|
110
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
111
|
+
"devDependencies": {
|
|
112
|
+
"@types/he": "^1.2.3",
|
|
113
|
+
"@types/lodash-es": "^4.17.12",
|
|
114
|
+
"@types/node": "^22.13.10",
|
|
115
|
+
"@types/react": "^18.0.26",
|
|
116
|
+
"@types/react-dom": "^18.0.9",
|
|
117
|
+
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
118
|
+
"@typescript-eslint/parser": "5.62.0",
|
|
119
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
120
|
+
"autoprefixer": "^10.4.18",
|
|
121
|
+
"cross-env": "^7.0.3",
|
|
122
|
+
"eslint": "8.56.0",
|
|
123
|
+
"eslint-config-prettier": "^10.1.1",
|
|
124
|
+
"eslint-import-resolver-typescript": "^3.8.5",
|
|
125
|
+
"eslint-plugin-import": "^2.31.0",
|
|
126
|
+
"eslint-plugin-react": "^7.37.4",
|
|
127
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
128
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
129
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
130
|
+
"husky": "^9.1.7",
|
|
131
|
+
"lint-staged": "^15.4.3",
|
|
132
|
+
"postcss": "^8.4.35",
|
|
133
|
+
"postcss-prefix-selector": "^2.1.1",
|
|
134
|
+
"react": "^18.2.0",
|
|
135
|
+
"react-dom": "^18.2.0",
|
|
136
|
+
"typescript": "^5.3.3",
|
|
137
|
+
"vite": "^5.4.21",
|
|
138
|
+
"vite-plugin-dts": "^4.5.3",
|
|
139
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
140
|
+
},
|
|
141
|
+
"lint-staged": {
|
|
142
|
+
"*.{js,jsx,ts,tsx}": [
|
|
143
|
+
"prettier --write",
|
|
144
|
+
"eslint --fix"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
}
|