@ilokesto/form 2.0.2 → 2.0.3
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/README.ko.md +2 -0
- package/README.md +2 -0
- package/dist/{FormInput-DuT7QFe-.d.ts → FormInput-BpDWf4hF.d.ts} +3 -0
- package/dist/chunk-M7Y4OJPP.js +2166 -0
- package/dist/chunk-M7Y4OJPP.js.map +1 -0
- package/dist/{chunk-JK644RR7.js → chunk-WO5TIXCR.js} +3 -3
- package/dist/chunk-WO5TIXCR.js.map +1 -0
- package/dist/index.d.ts +194 -23
- package/dist/index.js +1 -1
- package/dist/react/index.d.ts +104 -2
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +1 -1
- package/dist/solid/index.d.ts +103 -2
- package/dist/solid/index.js +2 -2
- package/dist/solid/index.js.map +1 -1
- package/dist/svelte/index.d.ts +75 -2
- package/dist/svelte/index.js +2 -2
- package/dist/svelte/index.js.map +1 -1
- package/dist/vue/index.d.ts +103 -2
- package/dist/vue/index.js +2 -2
- package/dist/vue/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-4F4SAGQ5.js +0 -1465
- package/dist/chunk-4F4SAGQ5.js.map +0 -1
- package/dist/chunk-JK644RR7.js.map +0 -1
package/README.ko.md
CHANGED
|
@@ -80,6 +80,8 @@ pnpm test
|
|
|
80
80
|
|
|
81
81
|
`typecheck`는 라이브러리 코드를 검사합니다. `test`는 한 번 빌드한 뒤 `test:unit`, `test:tooling`, `test:pack`, 다섯 예제의 빌드·타입 검사를 실행합니다. 런타임 테스트는 `tests/unit`, fixture·setup은 `tests/fixtures`, Node 도구 테스트는 `tests/tooling`에 있습니다. `test:pack`을 단독 실행할 때는 먼저 `pnpm build`를 실행하세요.
|
|
82
82
|
|
|
83
|
+
공개 런타임 API 문서는 [JSDOC.md](./JSDOC.md)의 영문 계약을 따릅니다. `pnpm lint:jsdoc`의 의미 기반 검사는 `test:tooling`에도 포함됩니다. 소비자에게 제공하는 선언 문서 변경에는 patch Changeset을 추가하세요.
|
|
84
|
+
|
|
83
85
|
빌드 결과는 `dist/`에 생성됩니다. `test:pack`은 레지스트리 Store를 사용하는 격리된
|
|
84
86
|
소비자를 검사하고 예제 명령은 다섯 private 예제를 모두 확인합니다.
|
|
85
87
|
PR은 Verify CI를 실행합니다. main 병합은 Changesets 릴리스 PR을 생성·갱신하며,
|
package/README.md
CHANGED
|
@@ -80,6 +80,8 @@ pnpm test
|
|
|
80
80
|
|
|
81
81
|
`typecheck` checks library code. `test` builds once and runs `test:unit` and `test:tooling`, `test:pack`, and all five example build/type checks. Runtime tests live in `tests/unit`, fixtures/setup in `tests/fixtures`, and Node tooling tests in `tests/tooling`. Run `pnpm build` before standalone `pnpm test:pack`.
|
|
82
82
|
|
|
83
|
+
Follow [JSDOC.md](./JSDOC.md) when documenting exported runtime APIs. Run `pnpm lint:jsdoc` for the semantic documentation check, also included in `test:tooling`. Consumer-facing declaration docs require a patch Changeset.
|
|
84
|
+
|
|
83
85
|
Build output goes to `dist/`. `test:pack` checks an isolated consumer using registry
|
|
84
86
|
Store; the example commands check all five private examples.
|
|
85
87
|
|
|
@@ -23,6 +23,7 @@ type RegisterOptions = FieldHookOptions & {
|
|
|
23
23
|
type DomValue = string | number | readonly string[];
|
|
24
24
|
|
|
25
25
|
type SubmitEventLike = {
|
|
26
|
+
/** Optional callback used to cancel native form submission. */
|
|
26
27
|
preventDefault?: () => void;
|
|
27
28
|
};
|
|
28
29
|
type SubmitValidHandler<TValues, TResult> = (values: TValues) => TResult | Promise<TResult>;
|
|
@@ -30,7 +31,9 @@ type SubmitInvalidHandler = (fields: Readonly<Record<PathKey, FieldState>>) => v
|
|
|
30
31
|
type SubmitHandler<TEvent extends SubmitEventLike, TResult> = (event?: TEvent) => Promise<TResult | undefined>;
|
|
31
32
|
|
|
32
33
|
type ReactiveFormOptions<TValues, TSource> = CreateFormOptions<TValues> & {
|
|
34
|
+
/** Replacement values; defined reference changes reset the form. */
|
|
33
35
|
readonly values?: TSource;
|
|
36
|
+
/** State preservation policy for external-value resets. */
|
|
34
37
|
readonly resetOptions?: ResetOptions;
|
|
35
38
|
};
|
|
36
39
|
|