Skip to content

Commit bd92474

Browse files
committed
refactor(Editor): Make Editor Optional
try to solve #70 BREAKING CHANGE: Quill is now only dev dependency
1 parent e5e0871 commit bd92474

File tree

6 files changed

+867
-1439
lines changed

6 files changed

+867
-1439
lines changed

dev/modules/formkit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { createAutoAnimatePlugin } from '@formkit/addons'
33

44
import { de, en } from '@formkit/i18n'
55
import { defaultConfig, plugin } from '@formkit/vue'
6-
import { primeInputs, primeOutputs } from 'my-library/definitions'
6+
import { primeEditorInputs, primeInputs, primeOutputs } from 'my-library/definitions'
77
import { addPrimeAsteriskPlugin } from 'my-library/plugins'
88

99
export const install: UserModule = ({ app }) => {
1010
app.use(plugin, defaultConfig({
1111
locales: { de, en },
1212
// Define the active locale
1313
locale: 'en',
14-
inputs: { ...primeInputs, ...primeOutputs },
14+
inputs: { ...primeInputs, ...primeOutputs, ...primeEditorInputs },
1515
plugins: [
1616
createAutoAnimatePlugin(
1717
{

dev/modules/primevue.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ export const install: UserModule = ({ app }) => {
2727
app.directive('tooltip', Tooltip)
2828

2929
// input components
30-
const { registerInputs } = usePrimeInputs()
30+
const { registerInputs, registerEditorInputs } = usePrimeInputs()
3131
registerInputs(app)
32+
registerEditorInputs(app)
3233

3334
// other components
3435
app.component('MegaMenu', MegaMenu)

package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,22 @@
9595
"@intlify/core": "^11.1.3",
9696
"primeicons": "^7.0.0",
9797
"primevue": "^4.3.4",
98-
"quill": "^2.0.3",
9998
"uuid": "^11.1.0",
10099
"vue-i18n": "^11.1.3"
101100
},
102101
"devDependencies": {
103-
"@antfu/eslint-config": "^4.13.0",
102+
"@antfu/eslint-config": "^4.13.2",
104103
"@formkit/core": "^1.6.9",
105104
"@primeuix/themes": "^1.1.1",
106-
"@types/node": "^22.15.18",
105+
"@types/node": "^22.15.21",
107106
"@types/uuid": "^10.0.0",
108-
"@unocss/preset-icons": "66.1.1",
109-
"@unocss/preset-uno": "66.1.1",
107+
"@unocss/preset-icons": "66.1.2",
108+
"@unocss/preset-uno": "66.1.2",
110109
"@vitejs/plugin-vue": "^5.2.4",
111-
"@vitest/coverage-v8": "^3.1.3",
112-
"@vitest/ui": "^3.1.3",
113-
"@vue/compiler-sfc": "^3.5.13",
114-
"@vue/server-renderer": "^3.5.13",
110+
"@vitest/coverage-v8": "^3.1.4",
111+
"@vitest/ui": "^3.1.4",
112+
"@vue/compiler-sfc": "^3.5.14",
113+
"@vue/server-renderer": "^3.5.14",
115114
"@vue/test-utils": "^2.4.6",
116115
"@vue/tsconfig": "^0.7.0",
117116
"@vueuse/core": "^13.2.0",
@@ -121,26 +120,26 @@
121120
"consola": "^3.4.2",
122121
"cookie": "^1.0.2",
123122
"esbuild": "^0.25.4",
124-
"eslint": "^9.26.0",
123+
"eslint": "^9.27.0",
125124
"happy-dom": "^17.4.7",
126125
"json-editor-vue": "^0.18.1",
127126
"mkdist": "^2.3.0",
128-
"quill": "^2.0.2",
129-
"sass": "^1.88.0",
127+
"quill": "^2.0.3",
128+
"sass": "^1.89.0",
130129
"tslib": "^2.8.1",
131130
"typescript": "^5.8.3",
132131
"unbuild": "^3.5.0",
133-
"unocss": "66.1.1",
132+
"unocss": "66.1.2",
134133
"unplugin-auto-import": "^19.2.0",
135134
"unplugin-vue-components": "^28.5.0",
136135
"vite": "^6.3.5",
137-
"vite-plugin-dts": "^4.5.3",
136+
"vite-plugin-dts": "^4.5.4",
138137
"vite-plugin-eslint": "^1.8.1",
139138
"vite-plugin-pages": "^0.33.0",
140-
"vite-ssg": "^26.1.1",
139+
"vite-ssg": "^27.0.1",
141140
"vitepress": "^1.6.3",
142-
"vitest": "^3.1.3",
143-
"vue": "^3.5.13",
141+
"vitest": "^3.1.4",
142+
"vue": "^3.5.14",
144143
"vue-demi": "^0.14.10",
145144
"vue-router": "^4.5.1",
146145
"vue-tsc": "^2.2.10"

0 commit comments

Comments
 (0)