Composant MalioInputRichText aligné sur le thème Malio : - TipTap v3.22.5 + StarterKit + Placeholder + tiptap-markdown 0.9.0 - Toolbar : gras, italique, barré, H2/H3, listes, citation, code, lien, undo/redo - États error / success / hint, props disabled / readonly / editable - Sortie configurable markdown (défaut) ou HTML via outputFormat - Couleurs m-primary / m-danger / m-success / m-muted, icônes mdi:* - Tests (12), playground page, story Histoire, MAJ CHANGELOG + COMPONENTS Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
898 B
TypeScript
37 lines
898 B
TypeScript
import { defineConfig } from 'histoire'
|
|
import { HstVue } from '@histoire/plugin-vue'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import tailwindcss from 'tailwindcss'
|
|
import autoprefixer from 'autoprefixer'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
setupFile: './histoire.setup.ts',
|
|
vite: {
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './'),
|
|
'tiptap-markdown': path.resolve(__dirname, 'node_modules/tiptap-markdown/dist/tiptap-markdown.es.js'),
|
|
},
|
|
},
|
|
css: {
|
|
postcss: {
|
|
plugins: [tailwindcss(), autoprefixer()],
|
|
},
|
|
},
|
|
ssr: {
|
|
noExternal: ['tiptap-markdown', /^@tiptap\//],
|
|
},
|
|
optimizeDeps: {
|
|
include: [
|
|
'tiptap-markdown',
|
|
'@tiptap/vue-3',
|
|
'@tiptap/starter-kit',
|
|
'@tiptap/extension-placeholder',
|
|
],
|
|
},
|
|
},
|
|
plugins: [HstVue()],
|
|
})
|