nuxt-ui-formwerk 0.1.4 → 0.1.5
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/README.md +7 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -3
- package/dist/runtime/components/Field.vue +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
[![License][license-src]][license-href]
|
|
6
6
|
[![Nuxt][nuxt-src]][nuxt-href]
|
|
7
7
|
|
|
8
|
+
> [!WARNING]
|
|
9
|
+
> **⚠️ Experimental Module**
|
|
10
|
+
>
|
|
11
|
+
> This module is currently in an experimental phase. APIs may change, and some features may not be fully stable. Use with caution in production environments and please report any issues you encounter.
|
|
12
|
+
>
|
|
13
|
+
> **Technical Note:** This module works by tapping into Nuxt UI's form component injection mechanism and intercepting bus events to coordinate between Nuxt UI's native form system and formwerk's validation engine. Changes to Nuxt UI's internal form architecture may require updates to this module.
|
|
14
|
+
|
|
8
15
|
Enhanced form components for Nuxt UI with [@formwerk/core](https://formwerk.dev/) integration. This module bridges the gap between Formwerk's powerful form validation and state management with Nuxt UI's beautiful form components.
|
|
9
16
|
|
|
10
17
|
- [✨ Release Notes](/CHANGELOG.md)
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,13 +6,14 @@ const module$1 = defineNuxtModule({
|
|
|
6
6
|
configKey: "uiElements"
|
|
7
7
|
},
|
|
8
8
|
defaults: {},
|
|
9
|
+
moduleDependencies: {
|
|
10
|
+
"@nuxt/ui": {}
|
|
11
|
+
},
|
|
9
12
|
setup(_options, _nuxt) {
|
|
10
13
|
const resolver = createResolver(import.meta.url);
|
|
11
14
|
const logger = useLogger("nuxt-ui-formwerk");
|
|
12
15
|
if (!hasNuxtModule("@nuxt/ui")) {
|
|
13
|
-
logger.error(
|
|
14
|
-
"[nuxt-ui-formwerk] @nuxt/ui is required. Please install it"
|
|
15
|
-
);
|
|
16
|
+
logger.error("[nuxt-ui-formwerk] @nuxt/ui is required. Please install it");
|
|
16
17
|
}
|
|
17
18
|
addComponentsDir({
|
|
18
19
|
path: resolver.resolve("./runtime/components"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import {} from "@nuxt/ui";
|
|
3
3
|
import { useCustomControl } from "@formwerk/core";
|
|
4
|
-
import { formBusInjectionKey } from "
|
|
4
|
+
import { formBusInjectionKey } from "#imports";
|
|
5
5
|
import { inject, watch, computed } from "vue";
|
|
6
6
|
import {
|
|
7
7
|
formwerkOptionsInjectionKey,
|
package/package.json
CHANGED