@ilokesto/form 2.0.2 → 2.0.4

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 CHANGED
@@ -70,7 +70,7 @@ DOM을 import하지 않습니다. 어댑터 소유자가 해제될 때 구독도
70
70
  <details>
71
71
  <summary>개발</summary>
72
72
 
73
- Node 24.22.1과 pnpm 10.17.1을 사용하고 저장소 루트에서 실행하세요.
73
+ Node 24.22.1과 `package.json`에 고정된 pnpm 버전을 사용하고 저장소 루트에서 실행하세요.
74
74
 
75
75
  ```sh
76
76
  pnpm install --frozen-lockfile
@@ -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
@@ -70,7 +70,7 @@ of framework and DOM imports. Dispose adapter subscriptions when their owner unm
70
70
  <details>
71
71
  <summary>Development</summary>
72
72
 
73
- Use Node 24.22.1 and pnpm 10.17.1. Run these commands from this repository root:
73
+ Use Node 24.22.1 and the pnpm version pinned in `package.json`. Run these commands from this repository root:
74
74
 
75
75
  ```sh
76
76
  pnpm install --frozen-lockfile
@@ -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