@volverjs/form-vue 1.0.0-beta.34 → 1.0.0-beta.36

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023-present 8 Wave S.r.l. and contributors
3
+ Copyright (c) 2022-present 8 wave S.r.l. and contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/types.d.ts CHANGED
@@ -82,8 +82,8 @@ export type SimpleFormTemplateItem<Schema extends FormSchema, Type> = Record<str
82
82
  vvContent?: string;
83
83
  vvDefaultValue?: any;
84
84
  };
85
- export type FormTemplateItem<Schema extends FormSchema, Type> = SimpleFormTemplateItem<Schema, Type> | ((data?: InjectedFormData<Schema, Type>, scope?: Record<string, unknown>) => SimpleFormTemplateItem<Schema, Type>);
86
- export type FormTemplate<Schema extends FormSchema, Type> = FormTemplateItem<Schema, Type>[] | ((data?: InjectedFormData<Schema, Type>, scope?: Record<string, unknown>) => FormTemplateItem<Schema, Type>[]);
85
+ export type FormTemplateItem<Schema extends FormSchema, Type = undefined> = SimpleFormTemplateItem<Schema, Type> | ((data?: InjectedFormData<Schema, Type>, scope?: Record<string, unknown>) => SimpleFormTemplateItem<Schema, Type>);
86
+ export type FormTemplate<Schema extends FormSchema, Type = undefined> = FormTemplateItem<Schema, Type>[] | ((data?: InjectedFormData<Schema, Type>, scope?: Record<string, unknown>) => FormTemplateItem<Schema, Type>[]);
87
87
  export type RenderFunctionOutput = VNode<RendererNode, RendererElement, {
88
88
  [key: string]: any;
89
89
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@volverjs/form-vue",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.34",
4
+ "version": "1.0.0-beta.36",
5
5
  "description": "Vue 3 Forms with @volverjs/ui-vue",
6
6
  "author": "8 Wave S.r.l.",
7
7
  "license": "MIT",
@@ -50,30 +50,35 @@
50
50
  "node": ">= 16.x"
51
51
  },
52
52
  "peerDependencies": {
53
- "@volverjs/ui-vue": "^0.*",
54
- "@vueuse/core": "^12.*",
55
- "ts-dot-prop": "^2.*",
56
- "vue": "^3.*",
57
- "zod": "^3.*"
53
+ "@volverjs/ui-vue": "^0.0.9",
54
+ "@vueuse/core": "^13.0.0",
55
+ "ts-dot-prop": "^2.1.4",
56
+ "vue": "^3.5.13",
57
+ "zod": "^3.24.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@antfu/eslint-config": "^4.4.0",
60
+ "@antfu/eslint-config": "^4.11.0",
61
61
  "@nabla/vite-plugin-eslint": "^2.0.5",
62
- "@playwright/experimental-ct-vue": "1.50.1",
62
+ "@playwright/experimental-ct-vue": "^1.51.1",
63
63
  "@testing-library/vue": "^8.1.0",
64
- "@vitejs/plugin-vue": "^5.2.1",
65
- "@volverjs/style": "0.1.17",
64
+ "@vitejs/plugin-vue": "^5.2.3",
65
+ "@volverjs/style": "^0.1.17",
66
+ "@volverjs/ui-vue": "^0.0.9",
66
67
  "@vue/compiler-sfc": "^3.5.13",
67
68
  "@vue/runtime-core": "^3.5.13",
68
69
  "@vue/test-utils": "^2.4.6",
70
+ "@vueuse/core": "^13.0.0",
69
71
  "copy": "^0.3.2",
70
- "eslint": "^9.21.0",
71
- "happy-dom": "^17.1.8",
72
- "typescript": "5.8.2",
73
- "vite": "^6.2.0",
72
+ "eslint": "^9.23.0",
73
+ "happy-dom": "^17.4.4",
74
+ "ts-dot-prop": "^2.1.4",
75
+ "typescript": "^5.8.2",
76
+ "vite": "^6.2.3",
74
77
  "vite-plugin-dts": "^4.5.3",
75
78
  "vite-plugin-externalize-deps": "^0.9.0",
76
- "vitest": "3.0.7"
79
+ "vitest": "^3.0.9",
80
+ "vue": "^3.5.13",
81
+ "zod": "^3.24.2"
77
82
  },
78
83
  "scripts": {
79
84
  "lint": "eslint .",
package/src/types.ts CHANGED
@@ -178,14 +178,14 @@ export type SimpleFormTemplateItem<Schema extends FormSchema, Type> = Record<
178
178
  vvDefaultValue?: any
179
179
  }
180
180
 
181
- export type FormTemplateItem<Schema extends FormSchema, Type> =
181
+ export type FormTemplateItem<Schema extends FormSchema, Type = undefined> =
182
182
  | SimpleFormTemplateItem<Schema, Type>
183
183
  | ((
184
184
  data?: InjectedFormData<Schema, Type>,
185
185
  scope?: Record<string, unknown>,
186
186
  ) => SimpleFormTemplateItem<Schema, Type>)
187
187
 
188
- export type FormTemplate<Schema extends FormSchema, Type> =
188
+ export type FormTemplate<Schema extends FormSchema, Type = undefined> =
189
189
  | FormTemplateItem<Schema, Type>[]
190
190
  | ((
191
191
  data?: InjectedFormData<Schema, Type>,