@octanejs/inertia 0.0.22 → 0.0.23

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/useForm.ts +22 -22
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  ]
8
8
  }
9
9
  },
10
- "version": "0.0.22",
10
+ "version": "0.0.23",
11
11
  "license": "MIT",
12
12
  "type": "module",
13
13
  "sideEffects": false,
@@ -56,8 +56,8 @@
56
56
  "react": "19.2.7",
57
57
  "react-dom": "19.2.7",
58
58
  "vitest": "^4.1.10",
59
- "octane": "0.3.0",
60
- "@octanejs/testing-library": "0.1.52"
59
+ "@octanejs/testing-library": "0.1.52",
60
+ "octane": "0.3.1"
61
61
  },
62
62
  "scripts": {
63
63
  "test": "vitest run --root ../.. --project inertia"
package/src/useForm.ts CHANGED
@@ -1,23 +1,23 @@
1
1
  import {
2
- CancelToken,
3
- ErrorValue,
4
- FormDataErrors,
5
- FormDataKeys,
6
- FormDataType,
7
- FormDataValues,
8
- Method,
9
- OptimisticCallback,
10
- Progress,
11
- RequestPayload,
2
+ type CancelToken,
3
+ type ErrorValue,
4
+ type FormDataErrors,
5
+ type FormDataKeys,
6
+ type FormDataType,
7
+ type FormDataValues,
8
+ type Method,
9
+ type OptimisticCallback,
10
+ type Progress,
11
+ type RequestPayload,
12
12
  router,
13
- UrlMethodPair,
14
- UseFormArguments,
15
- UseFormSubmitArguments,
16
- UseFormSubmitOptions,
17
- UseFormTransformCallback,
13
+ type UrlMethodPair,
14
+ type UseFormArguments,
15
+ type UseFormSubmitArguments,
16
+ type UseFormSubmitOptions,
17
+ type UseFormTransformCallback,
18
18
  UseFormUtils,
19
- UseFormWithPrecognitionArguments,
20
- VisitOptions,
19
+ type UseFormWithPrecognitionArguments,
20
+ type VisitOptions,
21
21
  } from '@inertiajs/core';
22
22
  import { cloneDeep } from 'es-toolkit';
23
23
  import type {
@@ -28,10 +28,10 @@ import type {
28
28
  } from 'laravel-precognition';
29
29
  import { useCallback, useMemo, useRef } from 'octane';
30
30
  import useFormState, {
31
- SetDataAction,
32
- SetDataByKeyValuePair,
33
- SetDataByMethod,
34
- SetDataByObject,
31
+ type SetDataAction,
32
+ type SetDataByKeyValuePair,
33
+ type SetDataByMethod,
34
+ type SetDataByObject,
35
35
  } from './useFormState';
36
36
  import useRemember from './useRemember';
37
37
 
@@ -42,7 +42,7 @@ const slots = Object.fromEntries(
42
42
  ) as Record<string, symbol>;
43
43
 
44
44
  // Re-export types that were moved to useFormState
45
- export { SetDataAction, SetDataByKeyValuePair, SetDataByMethod, SetDataByObject };
45
+ export type { SetDataAction, SetDataByKeyValuePair, SetDataByMethod, SetDataByObject };
46
46
 
47
47
  type PrecognitionValidationConfig<TKeys> = ValidationConfig & {
48
48
  only?: TKeys[] | Iterable<TKeys> | ArrayLike<TKeys>;