@functionalcms/svelte-components 4.10.40 → 4.10.41

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.
@@ -6,7 +6,7 @@ export interface Field {
6
6
  isRequired: boolean;
7
7
  }
8
8
  export declare function serialize(schema: any): Promise<Field[]>;
9
- export declare function createForm(schema: any): Promise<import("sveltekit-superforms").SuperValidated<{}, any, {}>>;
9
+ export declare function createForm(schema: any): Promise<import("sveltekit-superforms").SuperValidated<Record<string, unknown>, any, Record<string, unknown>>>;
10
10
  export declare function mapEntiresToOptions(field: Field): {
11
11
  label: string;
12
12
  value: string;
@@ -17,7 +17,7 @@ export async function serialize(schema) {
17
17
  return fields;
18
18
  }
19
19
  export async function createForm(schema) {
20
- const form = await superValidate(yup(schema));
20
+ const form = await superValidate(schema);
21
21
  return form;
22
22
  }
23
23
  export function mapEntiresToOptions(field) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.10.40",
3
+ "version": "4.10.41",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [
@@ -46,7 +46,7 @@
46
46
  "@eslint/compat": "^1.2.9",
47
47
  "@eslint/js": "^9.26.0",
48
48
  "@functionalcms/services": "^0.12.0",
49
- "@sveltejs/adapter-auto": "^4.0.0",
49
+ "@sveltejs/adapter-auto": "^6.0.1",
50
50
  "@sveltejs/package": "^2.3.11",
51
51
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
52
52
  "autoprefixer": "^10.4.21",