@mapomodule/uikit 2.0.0-beta.3 → 2.0.0-beta.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9B;;AAED,wBA+I0C"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9B;;AAED,wBAyJ0C"}
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapomodule/uikit",
3
3
  "configKey": "mapoUikit",
4
- "version": "2.0.0-beta.3",
4
+ "version": "2.0.0-beta.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -18,6 +18,11 @@ const module$1 = defineNuxtModule({
18
18
  },
19
19
  async setup(options, nuxt) {
20
20
  const resolver = createResolver(import.meta.url);
21
+ nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
22
+ nuxt.options.imports.transform ??= {};
23
+ (nuxt.options.imports.transform.include ??= []).push(
24
+ /@mapomodule[\\/]uikit[\\/]/
25
+ );
21
26
  addTypeTemplate({
22
27
  filename: "types/mapo-uikit-page-meta.d.ts",
23
28
  getContents: () => readFileSync(
@@ -1,6 +1,5 @@
1
1
  <script setup>
2
2
  import { version } from "../../../package.json";
3
- definePageMeta({ layout: "mapo-default" });
4
3
  </script>
5
4
 
6
5
  <template>
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/pages/index.vue"],"names":[],"mappings":"AAmEA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/pages/index.vue"],"names":[],"mappings":"AA+DA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,3 @@
1
- <script setup>
2
- definePageMeta({ layout: "mapo-empty" });
3
- </script>
4
-
5
1
  <template>
6
2
  <MapoLogin />
7
3
  </template>
@@ -1 +1 @@
1
- {"version":3,"file":"login.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/pages/login.vue"],"names":[],"mappings":"AAgCA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"login.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/pages/login.vue"],"names":[],"mappings":"AA0BA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/uikit",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Mapo UI components: Sidebar, Topbar, Login, SnackBar, ConfirmDialog, List, Detail, Media",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -46,10 +46,10 @@
46
46
  "lint": "eslint src"
47
47
  },
48
48
  "dependencies": {
49
- "@mapomodule/form": "2.0.0-beta.3",
50
- "@mapomodule/store": "2.0.0-beta.3",
49
+ "@mapomodule/form": "2.0.0-beta.4",
50
+ "@mapomodule/store": "2.0.0-beta.4",
51
51
  "@mapomodule/utils": "2.0.0-beta.1",
52
- "@mapomodule/core": "2.0.0-beta.3",
52
+ "@mapomodule/core": "2.0.0-beta.4",
53
53
  "tailwindcss": "^4.0.0"
54
54
  },
55
55
  "peerDependencies": {
package/src/module.ts CHANGED
@@ -55,6 +55,16 @@ export default defineNuxtModule<MapoUikitOptions>({
55
55
  async setup(options, nuxt) {
56
56
  const resolver = createResolver(import.meta.url);
57
57
 
58
+ // In consuming apps this runtime lives inside node_modules, where Nuxt
59
+ // skips auto-import injection by default (workspace apps are unaffected:
60
+ // pnpm symlinks resolve outside node_modules). Opt back in and transpile
61
+ // the runtime for the SSR build.
62
+ nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
63
+ nuxt.options.imports.transform ??= {};
64
+ (nuxt.options.imports.transform.include ??= []).push(
65
+ /@mapomodule[\\/]uikit[\\/]/,
66
+ );
67
+
58
68
  addTypeTemplate({
59
69
  filename: "types/mapo-uikit-page-meta.d.ts",
60
70
  getContents: () =>
@@ -1,7 +1,5 @@
1
1
  <script setup lang="ts">
2
2
  import { version } from "../../../package.json";
3
-
4
- definePageMeta({ layout: "mapo-default" });
5
3
  </script>
6
4
 
7
5
  <template>
@@ -1,7 +1,3 @@
1
- <script setup lang="ts">
2
- definePageMeta({ layout: "mapo-empty" });
3
- </script>
4
-
5
1
  <template>
6
2
  <MapoLogin />
7
3
  </template>