@fougere/nuxt 0.17.4-alpha.0 → 0.18.0-alpha.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.
@@ -1,6 +1,6 @@
1
- import { type Choice, type FormEntity, type FormField, type FormErrors, type FormFieldName, type FormRow, type FormValues, type FormOptions } from '@fougere/app/client';
1
+ import { type Choice, type SchemaView, type FormField, type FormErrors, type FormFieldName, type FormRow, type FormValues, type FormOptions } from '@fougere/app/client';
2
2
  export type { FormOptions };
3
- export declare function useFormFor<E extends FormEntity>(entity: E, options?: FormOptions): {
3
+ export declare function useFormFor<E extends SchemaView>(entity: E, options?: FormOptions): {
4
4
  fields: FormField<FormFieldName<E>>[];
5
5
  /**
6
6
  * The same fields, keyed by name — a form that lays its inputs out by hand binds one at a time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fougere/nuxt",
3
- "version": "0.17.4-alpha.0",
3
+ "version": "0.18.0-alpha.0",
4
4
  "description": "The Nuxt module: Fougere's client primitives and server surface.",
5
5
  "keywords": [
6
6
  "fougere",
@@ -32,12 +32,12 @@
32
32
  "template"
33
33
  ],
34
34
  "dependencies": {
35
- "@fougere/app": "0.17.4-alpha.0",
36
- "@fougere/core": "0.17.4-alpha.0",
37
- "@fougere/defaults": "0.17.4-alpha.0",
35
+ "@fougere/app": "0.18.0-alpha.0",
36
+ "@fougere/core": "0.18.0-alpha.0",
37
+ "@fougere/defaults": "0.18.0-alpha.0",
38
38
  "@nuxt/kit": "^4.5.1",
39
39
  "jiti": "^2.6.1",
40
- "@fougere/compiler": "0.17.4-alpha.0"
40
+ "@fougere/compiler": "0.18.0-alpha.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@nuxt/schema": "^4.5.1",
@@ -3,11 +3,11 @@ import { reactive, computed, onMounted } from 'vue';
3
3
  import { useRequestFetch } from '#imports';
4
4
  import { lowerFirst, validationErrorsOf } from '@fougere/core/contract';
5
5
  import { useCommand } from './useFougereData.js';
6
- import { Choices, facadeOf, formFieldsOf, payloadOf, errorsByField, type Choice, type Fetcher, type FormEntity, type FormField, type FormErrors, type FormFieldName, type FormRow, type FormValues, type FormOptions } from '@fougere/app/client';
6
+ import { Choices, facadeOf, formFieldsOf, payloadOf, errorsByField, type Choice, type Fetcher, type SchemaView, type FormField, type FormErrors, type FormFieldName, type FormRow, type FormValues, type FormOptions } from '@fougere/app/client';
7
7
 
8
8
  export type { FormOptions };
9
9
 
10
- export function useFormFor<E extends FormEntity>(entity: E, options: FormOptions = {}) {
10
+ export function useFormFor<E extends SchemaView>(entity: E, options: FormOptions = {}) {
11
11
  const entityKey = lowerFirst(entity.name);
12
12
  const fields = formFieldsOf(entity, entityKey);
13
13