@mapomodule/form 2.0.0-beta.2 → 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.
- package/dist/module.d.ts.map +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -0
- package/package.json +2 -2
- package/src/module.ts +10 -0
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;AAED,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;AAED,wBA4MyC"}
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,6 +11,11 @@ const module$1 = defineNuxtModule({
|
|
|
11
11
|
},
|
|
12
12
|
async setup(options, nuxt) {
|
|
13
13
|
const resolver = createResolver(import.meta.url);
|
|
14
|
+
nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
|
|
15
|
+
nuxt.options.imports.transform ??= {};
|
|
16
|
+
(nuxt.options.imports.transform.include ??= []).push(
|
|
17
|
+
/@mapomodule[\\/]form[\\/]/
|
|
18
|
+
);
|
|
14
19
|
nuxt.options.runtimeConfig.public.mapoForm = {
|
|
15
20
|
groups: { expanded: options.groups?.expanded ?? true },
|
|
16
21
|
debounce: options.debounce ?? 300,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapomodule/form",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4",
|
|
4
4
|
"description": "Mapo declarative typed form engine and field components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@internationalized/date": "^3.7.0",
|
|
51
|
-
"@mapomodule/store": "2.0.0-beta.
|
|
51
|
+
"@mapomodule/store": "2.0.0-beta.4",
|
|
52
52
|
"@mapomodule/utils": "2.0.0-beta.1",
|
|
53
53
|
"@tiptap/extension-link": "^2.11.5",
|
|
54
54
|
"@tiptap/extension-underline": "^2.11.5",
|
package/src/module.ts
CHANGED
|
@@ -30,6 +30,16 @@ export default defineNuxtModule<MapoFormOptions>({
|
|
|
30
30
|
async setup(options, nuxt) {
|
|
31
31
|
const resolver = createResolver(import.meta.url);
|
|
32
32
|
|
|
33
|
+
// In consuming apps this runtime lives inside node_modules, where Nuxt
|
|
34
|
+
// skips auto-import injection by default (workspace apps are unaffected:
|
|
35
|
+
// pnpm symlinks resolve outside node_modules). Opt back in and transpile
|
|
36
|
+
// the runtime for the SSR build.
|
|
37
|
+
nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
|
|
38
|
+
nuxt.options.imports.transform ??= {};
|
|
39
|
+
(nuxt.options.imports.transform.include ??= []).push(
|
|
40
|
+
/@mapomodule[\\/]form[\\/]/,
|
|
41
|
+
);
|
|
42
|
+
|
|
33
43
|
// Only serializable values can go into runtimeConfig.public.
|
|
34
44
|
// `mapping` and `accessor` contain functions → not SSR-serializable.
|
|
35
45
|
// To extend mapping/accessor, use an app plugin that accesses $mapoFormRegistry:
|