@formisch/qwik 0.9.4 → 0.9.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 +4 -4
- package/dist/index.qwik.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
import { JSXOutput, NoSerialize, PropsOf, QRL, ReadonlySignal } from "@qwik.dev/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _qwik_dev_core_internal1 from "@qwik.dev/core/internal";
|
|
4
4
|
|
|
5
5
|
//#region ../../packages/core/dist/index.qwik.d.ts
|
|
6
6
|
|
|
@@ -989,7 +989,7 @@ interface FieldProps<TSchema extends Schema = Schema, TFieldPath extends Require
|
|
|
989
989
|
*
|
|
990
990
|
* @returns The UI of the field to be rendered.
|
|
991
991
|
*/
|
|
992
|
-
declare const Field: <TSchema extends Schema, TFieldPath extends RequiredPath>(props:
|
|
992
|
+
declare const Field: <TSchema extends Schema, TFieldPath extends RequiredPath>(props: _qwik_dev_core_internal1.PublicProps<FieldProps<TSchema, TFieldPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
|
|
993
993
|
//#endregion
|
|
994
994
|
//#region src/components/FieldArray/FieldArray.d.ts
|
|
995
995
|
/**
|
|
@@ -1017,7 +1017,7 @@ interface FieldArrayProps<TSchema extends Schema = Schema, TFieldArrayPath exten
|
|
|
1017
1017
|
*
|
|
1018
1018
|
* @returns The UI of the field array to be rendered.
|
|
1019
1019
|
*/
|
|
1020
|
-
declare const FieldArray: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(props:
|
|
1020
|
+
declare const FieldArray: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(props: _qwik_dev_core_internal1.PublicProps<FieldArrayProps<TSchema, TFieldArrayPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
|
|
1021
1021
|
//#endregion
|
|
1022
1022
|
//#region src/components/Form/Form.d.ts
|
|
1023
1023
|
/**
|
|
@@ -1039,7 +1039,7 @@ type FormProps<TSchema extends Schema = Schema> = Omit<PropsOf<'form'>, 'onSubmi
|
|
|
1039
1039
|
*
|
|
1040
1040
|
* @returns The a native form element.
|
|
1041
1041
|
*/
|
|
1042
|
-
declare const Form: <TSchema extends Schema>(props:
|
|
1042
|
+
declare const Form: <TSchema extends Schema>(props: _qwik_dev_core_internal1.PublicProps<FormProps<TSchema>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
|
|
1043
1043
|
//#endregion
|
|
1044
1044
|
//#region src/hooks/useField/useField.d.ts
|
|
1045
1045
|
/**
|
package/dist/index.qwik.js
CHANGED
|
@@ -40,10 +40,10 @@ function batch(fn) {
|
|
|
40
40
|
*/
|
|
41
41
|
function initializeFieldStore(internalFieldStore, schema, initialInput, path, nullish = false) {
|
|
42
42
|
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`);
|
|
43
|
-
else if (schema.type === "lazy") initializeFieldStore(internalFieldStore, schema.getter(void 0), initialInput, path);
|
|
43
|
+
else if (schema.type === "lazy") initializeFieldStore(internalFieldStore, schema.getter(void 0), initialInput, path, nullish);
|
|
44
44
|
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);
|
|
45
45
|
else if (schema.type === "non_nullable" || schema.type === "non_nullish" || schema.type === "non_optional") initializeFieldStore(internalFieldStore, schema.wrapped, initialInput, path);
|
|
46
|
-
else if (schema.type === "intersect" || schema.type === "union" || schema.type === "variant") for (const schemaOption of schema.options) initializeFieldStore(internalFieldStore, schemaOption, initialInput, path);
|
|
46
|
+
else if (schema.type === "intersect" || schema.type === "union" || schema.type === "variant") for (const schemaOption of schema.options) initializeFieldStore(internalFieldStore, schemaOption, initialInput, path, nullish);
|
|
47
47
|
else {
|
|
48
48
|
internalFieldStore.schema = schema;
|
|
49
49
|
internalFieldStore.name = JSON.stringify(path);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/qwik",
|
|
3
3
|
"description": "The modular and type-safe form library for Qwik",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fabian Hiller",
|
|
7
7
|
"homepage": "https://formisch.dev",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"vite": "7.0.4",
|
|
49
49
|
"vite-tsconfig-paths": "^5.1.4",
|
|
50
50
|
"@formisch/eslint-config": "0.1.0",
|
|
51
|
-
"@formisch/core": "0.6.
|
|
51
|
+
"@formisch/core": "0.6.3",
|
|
52
52
|
"@formisch/methods": "0.7.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|