@formisch/vue 0.6.4 → 0.6.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as v from "valibot";
2
- import * as vue3 from "vue";
2
+ import * as vue1 from "vue";
3
3
  import { ComponentPublicInstance, MaybeRefOrGetter, ShallowRef as Signal } from "vue";
4
4
 
5
5
  //#region ../../packages/core/dist/index.vue.d.ts
@@ -940,14 +940,14 @@ interface FieldProps<TSchema extends Schema = Schema, TFieldPath extends Require
940
940
  readonly path: ValidPath<v.InferInput<TSchema>, TFieldPath>;
941
941
  }
942
942
  declare const __VLS_export$2: <TSchema extends Schema, TFieldPath extends RequiredPath>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
943
- props: __VLS_PrettifyLocal$2<FieldProps<TSchema, TFieldPath>> & vue3.PublicProps;
943
+ props: __VLS_PrettifyLocal$2<FieldProps<TSchema, TFieldPath>> & vue1.PublicProps;
944
944
  expose: (exposed: {}) => void;
945
945
  attrs: any;
946
946
  slots: {
947
947
  default(props: FieldStore<TSchema, TFieldPath>): any;
948
948
  };
949
949
  emit: {};
950
- }>) => vue3.VNode & {
950
+ }>) => vue1.VNode & {
951
951
  __ctx?: Awaited<typeof __VLS_setup>;
952
952
  };
953
953
  declare const _default: typeof __VLS_export$2;
@@ -968,14 +968,14 @@ interface FieldArrayProps<TSchema extends Schema = Schema, TFieldArrayPath exten
968
968
  readonly path: ValidArrayPath<v.InferInput<TSchema>, TFieldArrayPath>;
969
969
  }
970
970
  declare const __VLS_export$1: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
971
- props: __VLS_PrettifyLocal$1<FieldArrayProps<TSchema, TFieldArrayPath>> & vue3.PublicProps;
971
+ props: __VLS_PrettifyLocal$1<FieldArrayProps<TSchema, TFieldArrayPath>> & vue1.PublicProps;
972
972
  expose: (exposed: {}) => void;
973
973
  attrs: any;
974
974
  slots: {
975
975
  default(props: FieldArrayStore<TSchema, TFieldArrayPath>): any;
976
976
  };
977
977
  emit: {};
978
- }>) => vue3.VNode & {
978
+ }>) => vue1.VNode & {
979
979
  __ctx?: Awaited<typeof __VLS_setup>;
980
980
  };
981
981
  declare const _default$1: typeof __VLS_export$1;
@@ -996,14 +996,14 @@ interface FormProps<TSchema extends Schema = Schema> {
996
996
  onSubmit: SubmitHandler<TSchema>;
997
997
  }
998
998
  declare const __VLS_export: <TSchema extends Schema = Schema>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
999
- props: __VLS_PrettifyLocal<FormProps<TSchema>> & vue3.PublicProps;
999
+ props: __VLS_PrettifyLocal<FormProps<TSchema>> & vue1.PublicProps;
1000
1000
  expose: (exposed: {}) => void;
1001
1001
  attrs: any;
1002
1002
  slots: {
1003
1003
  default?: (props: {}) => any;
1004
1004
  };
1005
1005
  emit: {};
1006
- }>) => vue3.VNode & {
1006
+ }>) => vue1.VNode & {
1007
1007
  __ctx?: Awaited<typeof __VLS_setup>;
1008
1008
  };
1009
1009
  declare const _default$2: typeof __VLS_export;
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ function untrack(fn) {
51
51
  function initializeFieldStore(internalFieldStore, schema, initialInput, path, nullish = false) {
52
52
  if (framework === "qwik" && schema.type === "lazy" || schema.type === "object_with_rest" || schema.type === "record" || schema.type === "tuple_with_rest" || schema.type === "promise") throw new Error(`"${schema.type}" schema is not supported`);
53
53
  else if (schema.type === "lazy") initializeFieldStore(internalFieldStore, schema.getter(void 0), initialInput, path);
54
- else if (schema.type === "exact_optional" || schema.type === "nullable" || schema.type === "nullish" || schema.type === "optional" || schema.type === "undefinedable") initializeFieldStore(internalFieldStore, schema.wrapped, initialInput ?? v.getDefault(schema), path, true);
54
+ else if (schema.type === "exact_optional" || schema.type === "nullable" || schema.type === "nullish" || schema.type === "optional" || schema.type === "undefinedable") initializeFieldStore(internalFieldStore, schema.wrapped, initialInput === void 0 ? v.getDefault(schema) : initialInput, path, true);
55
55
  else if (schema.type === "non_nullable" || schema.type === "non_nullish" || schema.type === "non_optional") initializeFieldStore(internalFieldStore, schema.wrapped, initialInput, path);
56
56
  else if (schema.type === "intersect" || schema.type === "union" || schema.type === "variant") for (const schemaOption of schema.options) initializeFieldStore(internalFieldStore, schemaOption, initialInput, path);
57
57
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formisch/vue",
3
3
  "description": "The modular and type-safe form library for Vue",
4
- "version": "0.6.4",
4
+ "version": "0.6.5",
5
5
  "license": "MIT",
6
6
  "author": "Fabian Hiller",
7
7
  "homepage": "https://formisch.dev",
@@ -43,7 +43,7 @@
43
43
  "valibot": "^1.2.0",
44
44
  "vue": "^3.5.18",
45
45
  "vue-tsc": "^3.0.4",
46
- "@formisch/core": "0.4.4",
46
+ "@formisch/core": "0.4.5",
47
47
  "@formisch/methods": "0.5.2"
48
48
  },
49
49
  "peerDependencies": {