@stll/folio-nuxt
Advanced tools
+1
-1
@@ -7,3 +7,3 @@ { | ||
| }, | ||
| "version": "0.2.0", | ||
| "version": "0.3.0", | ||
| "builder": { | ||
@@ -10,0 +10,0 @@ "@nuxt/module-builder": "1.0.2", |
+24
-0
| import { defineNuxtModule, createResolver, addComponent, addImports } from '@nuxt/kit'; | ||
| const COMPOSABLES_SUBPATH = "@stll/folio-vue/composables"; | ||
| const DIALOGS_SUBPATH = "@stll/folio-vue/dialogs"; | ||
| const STYLES_SUBPATH = "@stll/folio-vue/editor.css"; | ||
@@ -19,2 +20,17 @@ const VUE_COMPOSABLES = [ | ||
| ]; | ||
| const VUE_DIALOG_COMPONENTS = [ | ||
| "FindReplaceDialog", | ||
| "FootnotePropertiesDialog", | ||
| "HyperlinkDialog", | ||
| "ImagePositionDialog", | ||
| "ImagePropertiesDialog", | ||
| "InsertImageDialog", | ||
| "InsertSymbolDialog", | ||
| "InsertTableDialog", | ||
| "PageSetupDialog", | ||
| "PasteSpecialDialog", | ||
| "SplitCellDialog", | ||
| "TablePropertiesDialog", | ||
| "WatermarkDialog" | ||
| ]; | ||
| const module$1 = defineNuxtModule({ | ||
@@ -44,2 +60,10 @@ meta: { | ||
| }); | ||
| for (const name of VUE_DIALOG_COMPONENTS) { | ||
| addComponent({ | ||
| name: `${options.prefix}${name}`, | ||
| export: name, | ||
| filePath: DIALOGS_SUBPATH, | ||
| mode: "client" | ||
| }); | ||
| } | ||
| addImports(VUE_COMPOSABLES.map((name) => ({ name, from: COMPOSABLES_SUBPATH }))); | ||
@@ -46,0 +70,0 @@ } |
+1
-1
| { | ||
| "name": "@stll/folio-nuxt", | ||
| "version": "0.2.0", | ||
| "version": "0.3.0", | ||
| "description": "Nuxt 3 & 4 module for folio: auto-imports an SSR-safe <DocxEditor> component built on @stll/folio-vue and ProseMirror.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
5015
13.64%89
36.92%