@stll/folio-nuxt 0.1.0 → 0.3.0

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.1.0",
7
+ "version": "0.3.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, addComponent, addImports } from '@nuxt/kit';
2
2
 
3
3
  const COMPOSABLES_SUBPATH = "@stll/folio-vue/composables";
4
+ const DIALOGS_SUBPATH = "@stll/folio-vue/dialogs";
4
5
  const STYLES_SUBPATH = "@stll/folio-vue/editor.css";
5
6
  const VUE_COMPOSABLES = [
6
7
  "useClipboard",
@@ -16,6 +17,21 @@ const VUE_COMPOSABLES = [
16
17
  "useWheelZoom",
17
18
  "useZoom"
18
19
  ];
20
+ const VUE_DIALOG_COMPONENTS = [
21
+ "FindReplaceDialog",
22
+ "FootnotePropertiesDialog",
23
+ "HyperlinkDialog",
24
+ "ImagePositionDialog",
25
+ "ImagePropertiesDialog",
26
+ "InsertImageDialog",
27
+ "InsertSymbolDialog",
28
+ "InsertTableDialog",
29
+ "PageSetupDialog",
30
+ "PasteSpecialDialog",
31
+ "SplitCellDialog",
32
+ "TablePropertiesDialog",
33
+ "WatermarkDialog"
34
+ ];
19
35
  const module$1 = defineNuxtModule({
20
36
  meta: {
21
37
  name: "@stll/folio-nuxt",
@@ -40,6 +56,14 @@ const module$1 = defineNuxtModule({
40
56
  filePath: resolver.resolve("./runtime/components/DocxEditor"),
41
57
  mode: "client"
42
58
  });
59
+ for (const name of VUE_DIALOG_COMPONENTS) {
60
+ addComponent({
61
+ name: `${options.prefix}${name}`,
62
+ export: name,
63
+ filePath: DIALOGS_SUBPATH,
64
+ mode: "client"
65
+ });
66
+ }
43
67
  addImports(VUE_COMPOSABLES.map((name) => ({ name, from: COMPOSABLES_SUBPATH })));
44
68
  }
45
69
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/folio-nuxt",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Nuxt 3 & 4 module for folio: auto-imports an SSR-safe <DocxEditor> component built on @stll/folio-vue and ProseMirror.",
5
5
  "keywords": [
6
6
  "docx",