@inertiajs/core 2.3.6 → 2.3.8
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.esm.js +9 -3
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +9 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/types/infiniteScroll/data.d.ts +1 -0
- package/types/types.d.ts +7 -4
package/package.json
CHANGED
|
@@ -6,4 +6,5 @@ export declare const useInfiniteScrollData: (options: {
|
|
|
6
6
|
onBeforeNextRequest: () => void;
|
|
7
7
|
onCompletePreviousRequest: (loadedPage: string | number | null) => void;
|
|
8
8
|
onCompleteNextRequest: (loadedPage: string | number | null) => void;
|
|
9
|
+
onReset?: () => void;
|
|
9
10
|
}) => UseInfiniteScrollDataManager;
|
package/types/types.d.ts
CHANGED
|
@@ -460,8 +460,10 @@ export type FormComponentProps = Partial<Pick<Visit, 'headers' | 'queryStringArr
|
|
|
460
460
|
export type FormComponentMethods = {
|
|
461
461
|
clearErrors: (...fields: string[]) => void;
|
|
462
462
|
resetAndClearErrors: (...fields: string[]) => void;
|
|
463
|
-
setError
|
|
464
|
-
|
|
463
|
+
setError: {
|
|
464
|
+
(field: string, value: ErrorValue): void;
|
|
465
|
+
(errors: Record<string, ErrorValue>): void;
|
|
466
|
+
};
|
|
465
467
|
reset: (...fields: string[]) => void;
|
|
466
468
|
submit: () => void;
|
|
467
469
|
defaults: () => void;
|
|
@@ -469,9 +471,9 @@ export type FormComponentMethods = {
|
|
|
469
471
|
getFormData: () => FormData;
|
|
470
472
|
valid: (field: string) => boolean;
|
|
471
473
|
invalid: (field: string) => boolean;
|
|
472
|
-
validate(field?: string | NamedInputEvent | ValidationConfig, config?: ValidationConfig)
|
|
474
|
+
validate: (field?: string | NamedInputEvent | ValidationConfig, config?: ValidationConfig) => void;
|
|
473
475
|
touch: (...fields: string[]) => void;
|
|
474
|
-
touched(field?: string)
|
|
476
|
+
touched: (field?: string) => boolean;
|
|
475
477
|
validator: () => Validator;
|
|
476
478
|
};
|
|
477
479
|
export type FormComponentonSubmitCompleteArguments = Pick<FormComponentMethods, 'reset' | 'defaults'>;
|
|
@@ -502,6 +504,7 @@ export interface UseInfiniteScrollOptions {
|
|
|
502
504
|
onBeforeNextRequest: () => void;
|
|
503
505
|
onCompletePreviousRequest: () => void;
|
|
504
506
|
onCompleteNextRequest: () => void;
|
|
507
|
+
onDataReset?: () => void;
|
|
505
508
|
}
|
|
506
509
|
export interface UseInfiniteScrollDataManager {
|
|
507
510
|
getLastLoadedPage: () => number | string | null;
|