lkd-web-kit 0.0.1 → 0.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/dist/{index9.cjs → index.cjs.js} +2965 -34
- package/dist/index.d.ts +358 -0
- package/dist/{index9.js → index.es.js} +2940 -32
- package/package.json +5 -101
- package/dist/components.d.ts +0 -116
- package/dist/consts.d.ts +0 -73
- package/dist/contexts.d.ts +0 -39
- package/dist/form.d.ts +0 -29
- package/dist/hocs.d.ts +0 -34
- package/dist/hooks.d.ts +0 -11
- package/dist/index.cjs +0 -10
- package/dist/index.js +0 -1
- package/dist/index2.cjs +0 -2
- package/dist/index2.js +0 -1
- package/dist/index3.cjs +0 -80
- package/dist/index3.js +0 -75
- package/dist/index4.cjs +0 -78
- package/dist/index4.js +0 -70
- package/dist/index5.cjs +0 -74
- package/dist/index5.js +0 -69
- package/dist/index6.cjs +0 -29
- package/dist/index6.js +0 -24
- package/dist/index7.cjs +0 -58
- package/dist/index7.js +0 -51
- package/dist/index8.cjs +0 -83
- package/dist/index8.js +0 -74
- package/dist/mantine.d.ts +0 -16
- package/dist/navigation-DnFkn_t2.cjs +0 -2518
- package/dist/navigation-sZaWnl2V.js +0 -2513
- package/dist/types.d.ts +0 -33
- package/dist/useFetchNextPageOnScroll-08q9N5OE.js +0 -49
- package/dist/useFetchNextPageOnScroll-Fqj7Vp-O.cjs +0 -52
- package/dist/utils.d.ts +0 -29
- package/dist/zodValidator-Bx6RMGoL.cjs +0 -13
- package/dist/zodValidator-ChEQ3cmF.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lkd-web-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A template for creating React component libraries with Vite.",
|
|
5
5
|
"author": "LKD",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,105 +8,9 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
],
|
|
14
|
-
"main": "./dist/index.cjs",
|
|
15
|
-
"module": "./dist/index.js",
|
|
11
|
+
"main": "./dist/index.cjs.js",
|
|
12
|
+
"module": "./dist/index.es.js",
|
|
16
13
|
"types": "./dist/index.d.ts",
|
|
17
|
-
"exports": {
|
|
18
|
-
"./components": {
|
|
19
|
-
"import": {
|
|
20
|
-
"types": "./dist/components/index.d.ts",
|
|
21
|
-
"default": "./dist/components/index.js"
|
|
22
|
-
},
|
|
23
|
-
"require": {
|
|
24
|
-
"types": "./dist/components/index.d.ts",
|
|
25
|
-
"default": "./dist/components/index.cjs"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"./consts": {
|
|
29
|
-
"import": {
|
|
30
|
-
"types": "./dist/consts/index.d.ts",
|
|
31
|
-
"default": "./dist/consts/index.js"
|
|
32
|
-
},
|
|
33
|
-
"require": {
|
|
34
|
-
"types": "./dist/consts/index.d.ts",
|
|
35
|
-
"default": "./dist/consts/index.cjs"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"./contexts" :{
|
|
39
|
-
"import": {
|
|
40
|
-
"types": "./dist/contexts/index.d.ts",
|
|
41
|
-
"default": "./dist/contexts/index.js"
|
|
42
|
-
},
|
|
43
|
-
"require": {
|
|
44
|
-
"types": "./dist/contexts/index.d.ts",
|
|
45
|
-
"default": "./dist/contexts/index.cjs"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"./form": {
|
|
49
|
-
"import": {
|
|
50
|
-
"types": "./dist/form/index.d.ts",
|
|
51
|
-
"default": "./dist/form/index.js"
|
|
52
|
-
},
|
|
53
|
-
"require": {
|
|
54
|
-
"types": "./dist/form/index.d.ts",
|
|
55
|
-
"default": "./dist/form/index.cjs"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"./hocs": {
|
|
59
|
-
"import": {
|
|
60
|
-
"types": "./dist/hocs/index.d.ts",
|
|
61
|
-
"default": "./dist/hocs/index.js"
|
|
62
|
-
},
|
|
63
|
-
"require": {
|
|
64
|
-
"types": "./dist/hocs/index.d.ts",
|
|
65
|
-
"default": "./dist/hocs/index.cjs"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
"./hooks": {
|
|
70
|
-
"import": {
|
|
71
|
-
"types": "./dist/hooks/index.d.ts",
|
|
72
|
-
"default": "./dist/hooks/index.js"
|
|
73
|
-
},
|
|
74
|
-
"require": {
|
|
75
|
-
"types": "./dist/hooks/index.d.ts",
|
|
76
|
-
"default": "./dist/hooks/index.cjs"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"./mantine":{
|
|
80
|
-
"import": {
|
|
81
|
-
"types": "./dist/mantine/index.d.ts",
|
|
82
|
-
"default": "./dist/mantine/index.js"
|
|
83
|
-
},
|
|
84
|
-
"require": {
|
|
85
|
-
"types": "./dist/mantine/index.d.ts",
|
|
86
|
-
"default": "./dist/mantine/index.cjs"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"./utils": {
|
|
90
|
-
"import": {
|
|
91
|
-
"types": "./dist/utils/index.d.ts",
|
|
92
|
-
"default": "./dist/utils/index.js"
|
|
93
|
-
},
|
|
94
|
-
"require": {
|
|
95
|
-
"types": "./dist/utils/index.d.ts",
|
|
96
|
-
"default": "./dist/utils/index.cjs"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"./types": {
|
|
100
|
-
"import": {
|
|
101
|
-
"types": "./dist/types/index.d.ts",
|
|
102
|
-
"default": "./dist/types/index.js"
|
|
103
|
-
},
|
|
104
|
-
"require": {
|
|
105
|
-
"types": "./dist/types/index.d.ts",
|
|
106
|
-
"default": "./dist/types/index.cjs"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
14
|
"scripts": {
|
|
111
15
|
"test": "vitest run",
|
|
112
16
|
"test:watch": "vitest",
|
|
@@ -127,7 +31,7 @@
|
|
|
127
31
|
"@vitest/coverage-v8": "^3.1.1",
|
|
128
32
|
"clsx": "^2.1.1",
|
|
129
33
|
"eslint": "^9.24.0",
|
|
130
|
-
"eslint-config-prettier": "^10.1.
|
|
34
|
+
"eslint-config-prettier": "^10.1.2",
|
|
131
35
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
132
36
|
"eslint-plugin-react": "^7.37.5",
|
|
133
37
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -135,7 +39,7 @@
|
|
|
135
39
|
"jsdom": "^26.0.0",
|
|
136
40
|
"prettier": "^3.5.3",
|
|
137
41
|
"typescript": "^5.8.3",
|
|
138
|
-
"vite": "^6.2.
|
|
42
|
+
"vite": "^6.2.6",
|
|
139
43
|
"vite-plugin-dts": "^4.5.3",
|
|
140
44
|
"vitest": "^3.1.1"
|
|
141
45
|
},
|
package/dist/components.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { CenterProps } from '@mantine/core';
|
|
2
|
-
import { ComboboxItem } from '@mantine/core';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
5
|
-
import { default as default_2 } from 'react';
|
|
6
|
-
import { ElementProps } from '@mantine/core';
|
|
7
|
-
import { InfiniteData } from '@tanstack/react-query';
|
|
8
|
-
import { InfiniteQueryHookResult } from 'react-query-kit';
|
|
9
|
-
import { InputBaseProps } from '@mantine/core';
|
|
10
|
-
import { JSX } from 'react/jsx-runtime';
|
|
11
|
-
import { LoaderProps } from '@mantine/core';
|
|
12
|
-
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
13
|
-
import { ReactNode } from 'react';
|
|
14
|
-
|
|
15
|
-
export declare interface EmptyProps extends ComponentProps<'div'> {
|
|
16
|
-
label: ReactNode;
|
|
17
|
-
action?: ReactNode;
|
|
18
|
-
icon: IconFC;
|
|
19
|
-
size?: keyof typeof pxBySize;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare const EmptyState: ({ label, action, icon, className, size, ...props }: EmptyProps) => JSX.Element;
|
|
23
|
-
|
|
24
|
-
export declare type IconFC = default_2.FC<ComponentPropsWithoutRef<"svg">>;
|
|
25
|
-
|
|
26
|
-
export declare interface IconProps extends ComponentPropsWithoutRef<"svg"> {
|
|
27
|
-
i: IconFC;
|
|
28
|
-
/**
|
|
29
|
-
* @property xs: 16px
|
|
30
|
-
* @property sm: 20px
|
|
31
|
-
* @property md: 24px
|
|
32
|
-
* @property lg: 28px
|
|
33
|
-
* @property xl: 32px
|
|
34
|
-
* @property 2xl: 40px
|
|
35
|
-
*/
|
|
36
|
-
size?: keyof typeof stylesBySize | number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export declare const InfinityLoader: ({ infinity, loaderProps, ...props }: InfinityLoaderProps) => JSX.Element;
|
|
40
|
-
|
|
41
|
-
export declare interface InfinityLoaderProps extends CenterProps {
|
|
42
|
-
infinity: InfiniteQueryHookResult<InfiniteData<{
|
|
43
|
-
data: unknown[];
|
|
44
|
-
}>, unknown>;
|
|
45
|
-
loaderProps?: LoaderProps;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export declare const NavItems: ({ items }: NavItemsProps) => JSX.Element;
|
|
49
|
-
|
|
50
|
-
export declare interface NavItemsProps {
|
|
51
|
-
items: {
|
|
52
|
-
leftSection?: ReactNode;
|
|
53
|
-
rightSection?: ReactNode;
|
|
54
|
-
onClick?: (e: MouseEvent_2<Element>) => void;
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
className?: string;
|
|
57
|
-
children?: ReactNode;
|
|
58
|
-
label: string;
|
|
59
|
-
href?: string;
|
|
60
|
-
isActive?: boolean;
|
|
61
|
-
}[];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare const pxBySize: {
|
|
65
|
-
sm: number;
|
|
66
|
-
md: number;
|
|
67
|
-
lg: number;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export declare function SelectInfinity({ value, onChange, data, searchValue, onSearchChange, renderOption, onOptionSubmit, nothingFoundMessage, infinity, placeholder, ...props }: SelectInfinityProps): JSX.Element;
|
|
71
|
-
|
|
72
|
-
export declare interface SelectInfinityProps extends InputBaseProps, ElementProps<'button', keyof InputBaseProps | 'value' | 'onChange'> {
|
|
73
|
-
value?: string | null;
|
|
74
|
-
onChange?: (value: string | null) => void;
|
|
75
|
-
data?: ComboboxItem[];
|
|
76
|
-
searchValue?: string;
|
|
77
|
-
onSearchChange?: (value: string) => void;
|
|
78
|
-
renderOption?: (args: {
|
|
79
|
-
option: ComboboxItem;
|
|
80
|
-
}) => React.ReactNode;
|
|
81
|
-
onOptionSubmit?: (value: string) => void;
|
|
82
|
-
nothingFoundMessage?: ReactNode;
|
|
83
|
-
infinity: InfiniteQueryHookResult<InfiniteData<{
|
|
84
|
-
data: unknown[];
|
|
85
|
-
}, number>, Error>;
|
|
86
|
-
placeholder?: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
declare const stylesBySize: {
|
|
90
|
-
xs: {
|
|
91
|
-
height: number;
|
|
92
|
-
width: number;
|
|
93
|
-
};
|
|
94
|
-
sm: {
|
|
95
|
-
height: number;
|
|
96
|
-
width: number;
|
|
97
|
-
};
|
|
98
|
-
md: {
|
|
99
|
-
height: number;
|
|
100
|
-
width: number;
|
|
101
|
-
};
|
|
102
|
-
lg: {
|
|
103
|
-
height: number;
|
|
104
|
-
width: number;
|
|
105
|
-
};
|
|
106
|
-
xl: {
|
|
107
|
-
height: number;
|
|
108
|
-
width: number;
|
|
109
|
-
};
|
|
110
|
-
"2xl": {
|
|
111
|
-
height: number;
|
|
112
|
-
width: number;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export { }
|
package/dist/consts.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export declare enum HttpStatus {
|
|
2
|
-
Continue = 100,
|
|
3
|
-
SwitchingProtocols = 101,
|
|
4
|
-
Processing = 102,
|
|
5
|
-
EarlyHints = 103,
|
|
6
|
-
Ok = 200,
|
|
7
|
-
Created = 201,
|
|
8
|
-
Accepted = 202,
|
|
9
|
-
NonAuthoritativeInformation = 203,
|
|
10
|
-
NoContent = 204,
|
|
11
|
-
ResetContent = 205,
|
|
12
|
-
PartialContent = 206,
|
|
13
|
-
MultiStatus = 207,
|
|
14
|
-
AlreadyReported = 208,
|
|
15
|
-
ImUsed = 226,
|
|
16
|
-
MultipleChoices = 300,
|
|
17
|
-
MovedPermanently = 301,
|
|
18
|
-
Found = 302,
|
|
19
|
-
SeeOther = 303,
|
|
20
|
-
NotModified = 304,
|
|
21
|
-
UseProxy = 305,
|
|
22
|
-
TemporaryRedirect = 307,
|
|
23
|
-
PermanentRedirect = 308,
|
|
24
|
-
BadRequest = 400,
|
|
25
|
-
Unauthorized = 401,
|
|
26
|
-
PaymentRequired = 402,
|
|
27
|
-
Forbidden = 403,
|
|
28
|
-
NotFound = 404,
|
|
29
|
-
MethodNotAllowed = 405,
|
|
30
|
-
NotAcceptable = 406,
|
|
31
|
-
ProxyAuthenticationRequired = 407,
|
|
32
|
-
RequestTimeout = 408,
|
|
33
|
-
Conflict = 409,
|
|
34
|
-
Gone = 410,
|
|
35
|
-
LengthRequired = 411,
|
|
36
|
-
PreconditionFailed = 412,
|
|
37
|
-
PayloadTooLarge = 413,
|
|
38
|
-
UriTooLong = 414,
|
|
39
|
-
UnsupportedMediaType = 415,
|
|
40
|
-
RangeNotSatisfiable = 416,
|
|
41
|
-
ExpectationFailed = 417,
|
|
42
|
-
MisdirectedRequest = 421,
|
|
43
|
-
UnprocessableEntity = 422,
|
|
44
|
-
Locked = 423,
|
|
45
|
-
FailedDependency = 424,
|
|
46
|
-
TooEarly = 425,
|
|
47
|
-
UpgradeRequired = 426,
|
|
48
|
-
PreconditionRequired = 428,
|
|
49
|
-
TooManyRequests = 429,
|
|
50
|
-
RequestHeaderFieldsTooLarge = 431,
|
|
51
|
-
UnavailableForLegalReasons = 451,
|
|
52
|
-
InternalServerError = 500,
|
|
53
|
-
NotImplemented = 501,
|
|
54
|
-
BadGateway = 502,
|
|
55
|
-
ServiceUnavailable = 503,
|
|
56
|
-
GatewayTimeout = 504,
|
|
57
|
-
HttpVersionNotSupported = 505,
|
|
58
|
-
VariantAlsoNegotiates = 506,
|
|
59
|
-
InsufficientStorage = 507,
|
|
60
|
-
LoopDetected = 508,
|
|
61
|
-
NotExtended = 510,
|
|
62
|
-
NetworkAuthenticationRequired = 511
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export declare enum Revalidate {
|
|
66
|
-
OneHour = 3600,
|
|
67
|
-
OneDay = 86400,
|
|
68
|
-
OneWeek = 604800,
|
|
69
|
-
OneMonth = 2592000,
|
|
70
|
-
OneYear = 31536000
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export { }
|
package/dist/contexts.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
declare interface NavigationHistoryHook {
|
|
5
|
-
history: string[];
|
|
6
|
-
goBack: (fallback?: string) => void;
|
|
7
|
-
currentRoute: string | null;
|
|
8
|
-
hasPreviousRoute: boolean;
|
|
9
|
-
getPreviousRoute: () => string | null;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Proveedor de historial de navegación
|
|
14
|
-
* Solo se encarga de registrar las rutas visitadas
|
|
15
|
-
*/
|
|
16
|
-
export declare function NavigationHistoryProvider({ children }: NavigationHistoryProviderProps): JSX.Element;
|
|
17
|
-
|
|
18
|
-
declare interface NavigationHistoryProviderProps {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare const PageDataProvider: ({ value, children }: PageDataProviderProps) => JSX.Element;
|
|
23
|
-
|
|
24
|
-
declare interface PageDataProviderProps {
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
value: any;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export declare const QP_BACK_URL_NAME = "backUrl";
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Hook para usar el historial de navegación
|
|
33
|
-
* @returns {NavigationHistoryHook} Objeto con el historial y la función goBack
|
|
34
|
-
*/
|
|
35
|
-
export declare function useNavigationHistory(): NavigationHistoryHook;
|
|
36
|
-
|
|
37
|
-
export declare const usePageData: <T>() => T;
|
|
38
|
-
|
|
39
|
-
export { }
|
package/dist/form.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@mantine/core';
|
|
2
|
-
import { ButtonProps } from '@mantine/core';
|
|
3
|
-
import { ElementProps } from '@mantine/core';
|
|
4
|
-
import { FieldValues } from 'react-hook-form';
|
|
5
|
-
import { JSX } from 'react/jsx-runtime';
|
|
6
|
-
import { SubmitErrorHandler } from 'react-hook-form';
|
|
7
|
-
import { SubmitHandler } from 'react-hook-form';
|
|
8
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
9
|
-
import { z } from 'zod';
|
|
10
|
-
import { ZodTypeAny } from 'zod';
|
|
11
|
-
|
|
12
|
-
export declare const Form: <T extends FieldValues>({ methods, onSubmit, onSubmitError, ...rest }: FormProps<T>) => JSX.Element;
|
|
13
|
-
|
|
14
|
-
export declare const FormButtonSubmit: (props: FormButtonSubmitProps) => JSX.Element;
|
|
15
|
-
|
|
16
|
-
export declare interface FormButtonSubmitProps extends ButtonProps, ElementProps<"button", keyof ButtonProps> {
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare interface FormProps<T extends FieldValues> extends BoxProps, ElementProps<'form', 'onSubmit'> {
|
|
20
|
-
methods: UseFormReturn<T, any, any>;
|
|
21
|
-
onSubmit?: SubmitHandler<T>;
|
|
22
|
-
onSubmitError?: SubmitErrorHandler<any>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export declare const nullableInput: <T extends ZodTypeAny>(schema: T, message?: string) => z.ZodEffects<z.ZodNullable<T>, (T["_output"] & undefined) | (T["_output"] & {}), T["_input"] | null>;
|
|
26
|
-
|
|
27
|
-
export declare const zodValidator: (schema: ZodTypeAny) => (values: any) => string | undefined;
|
|
28
|
-
|
|
29
|
-
export { }
|
package/dist/hocs.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ControllerProps } from 'react-hook-form';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { ModalProps } from '@mantine/core';
|
|
4
|
-
import { ZodTypeAny } from 'zod';
|
|
5
|
-
|
|
6
|
-
export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['render']>[0] & {
|
|
7
|
-
props: T;
|
|
8
|
-
field: {
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
description?: React.ReactNode;
|
|
12
|
-
error?: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export declare const withForm: <P extends unknown>(WrappedComponent: React.ComponentType<FormFieldProps<P>>, getControllerProps?: (props: P) => Omit<Partial<ControllerProps>, "render">) => FC<P & WithFormProps>;
|
|
17
|
-
|
|
18
|
-
export declare interface WithFormProps {
|
|
19
|
-
name?: string;
|
|
20
|
-
label?: React.ReactNode;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
description?: React.ReactNode;
|
|
23
|
-
validate?: ZodTypeAny;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export declare const withModalManager: <P extends Object>(WrappedComponent: React.ComponentType<P & ModalProps>) => FC<P & WithModalManagerProps & ModalProps>;
|
|
28
|
-
|
|
29
|
-
export declare interface WithModalManagerProps {
|
|
30
|
-
removeModal: () => void;
|
|
31
|
-
opened: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { }
|
package/dist/hooks.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InfiniteData } from '@tanstack/react-query';
|
|
2
|
-
import { InfiniteQueryHookResult } from 'react-query-kit';
|
|
3
|
-
import { RefObject } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const useFetchNextPageOnScroll: (infinity: InfiniteQueryHookResult<InfiniteData<{
|
|
6
|
-
data: unknown[];
|
|
7
|
-
}, number>, Error>, elementRef?: RefObject<HTMLElement | null>) => void;
|
|
8
|
-
|
|
9
|
-
export declare const useOnScrollProgress: (triggerPercentage: number, callback: () => void, elementRef?: RefObject<HTMLElement | null>) => void;
|
|
10
|
-
|
|
11
|
-
export { }
|
package/dist/index.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const useFetchNextPageOnScroll = require('./useFetchNextPageOnScroll-Fqj7Vp-O.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.useFetchNextPageOnScroll = useFetchNextPageOnScroll.useFetchNextPageOnScroll;
|
|
10
|
-
exports.useOnScrollProgress = useFetchNextPageOnScroll.useOnScrollProgress;
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { u as useFetchNextPageOnScroll, a as useOnScrollProgress } from './useFetchNextPageOnScroll-08q9N5OE.js';
|
package/dist/index2.cjs
DELETED
package/dist/index2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/index3.cjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => {
|
|
6
|
-
HttpStatus2[HttpStatus2["Continue"] = 100] = "Continue";
|
|
7
|
-
HttpStatus2[HttpStatus2["SwitchingProtocols"] = 101] = "SwitchingProtocols";
|
|
8
|
-
HttpStatus2[HttpStatus2["Processing"] = 102] = "Processing";
|
|
9
|
-
HttpStatus2[HttpStatus2["EarlyHints"] = 103] = "EarlyHints";
|
|
10
|
-
HttpStatus2[HttpStatus2["Ok"] = 200] = "Ok";
|
|
11
|
-
HttpStatus2[HttpStatus2["Created"] = 201] = "Created";
|
|
12
|
-
HttpStatus2[HttpStatus2["Accepted"] = 202] = "Accepted";
|
|
13
|
-
HttpStatus2[HttpStatus2["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
|
|
14
|
-
HttpStatus2[HttpStatus2["NoContent"] = 204] = "NoContent";
|
|
15
|
-
HttpStatus2[HttpStatus2["ResetContent"] = 205] = "ResetContent";
|
|
16
|
-
HttpStatus2[HttpStatus2["PartialContent"] = 206] = "PartialContent";
|
|
17
|
-
HttpStatus2[HttpStatus2["MultiStatus"] = 207] = "MultiStatus";
|
|
18
|
-
HttpStatus2[HttpStatus2["AlreadyReported"] = 208] = "AlreadyReported";
|
|
19
|
-
HttpStatus2[HttpStatus2["ImUsed"] = 226] = "ImUsed";
|
|
20
|
-
HttpStatus2[HttpStatus2["MultipleChoices"] = 300] = "MultipleChoices";
|
|
21
|
-
HttpStatus2[HttpStatus2["MovedPermanently"] = 301] = "MovedPermanently";
|
|
22
|
-
HttpStatus2[HttpStatus2["Found"] = 302] = "Found";
|
|
23
|
-
HttpStatus2[HttpStatus2["SeeOther"] = 303] = "SeeOther";
|
|
24
|
-
HttpStatus2[HttpStatus2["NotModified"] = 304] = "NotModified";
|
|
25
|
-
HttpStatus2[HttpStatus2["UseProxy"] = 305] = "UseProxy";
|
|
26
|
-
HttpStatus2[HttpStatus2["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
27
|
-
HttpStatus2[HttpStatus2["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
28
|
-
HttpStatus2[HttpStatus2["BadRequest"] = 400] = "BadRequest";
|
|
29
|
-
HttpStatus2[HttpStatus2["Unauthorized"] = 401] = "Unauthorized";
|
|
30
|
-
HttpStatus2[HttpStatus2["PaymentRequired"] = 402] = "PaymentRequired";
|
|
31
|
-
HttpStatus2[HttpStatus2["Forbidden"] = 403] = "Forbidden";
|
|
32
|
-
HttpStatus2[HttpStatus2["NotFound"] = 404] = "NotFound";
|
|
33
|
-
HttpStatus2[HttpStatus2["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
34
|
-
HttpStatus2[HttpStatus2["NotAcceptable"] = 406] = "NotAcceptable";
|
|
35
|
-
HttpStatus2[HttpStatus2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
|
|
36
|
-
HttpStatus2[HttpStatus2["RequestTimeout"] = 408] = "RequestTimeout";
|
|
37
|
-
HttpStatus2[HttpStatus2["Conflict"] = 409] = "Conflict";
|
|
38
|
-
HttpStatus2[HttpStatus2["Gone"] = 410] = "Gone";
|
|
39
|
-
HttpStatus2[HttpStatus2["LengthRequired"] = 411] = "LengthRequired";
|
|
40
|
-
HttpStatus2[HttpStatus2["PreconditionFailed"] = 412] = "PreconditionFailed";
|
|
41
|
-
HttpStatus2[HttpStatus2["PayloadTooLarge"] = 413] = "PayloadTooLarge";
|
|
42
|
-
HttpStatus2[HttpStatus2["UriTooLong"] = 414] = "UriTooLong";
|
|
43
|
-
HttpStatus2[HttpStatus2["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
|
|
44
|
-
HttpStatus2[HttpStatus2["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
|
|
45
|
-
HttpStatus2[HttpStatus2["ExpectationFailed"] = 417] = "ExpectationFailed";
|
|
46
|
-
HttpStatus2[HttpStatus2["MisdirectedRequest"] = 421] = "MisdirectedRequest";
|
|
47
|
-
HttpStatus2[HttpStatus2["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
48
|
-
HttpStatus2[HttpStatus2["Locked"] = 423] = "Locked";
|
|
49
|
-
HttpStatus2[HttpStatus2["FailedDependency"] = 424] = "FailedDependency";
|
|
50
|
-
HttpStatus2[HttpStatus2["TooEarly"] = 425] = "TooEarly";
|
|
51
|
-
HttpStatus2[HttpStatus2["UpgradeRequired"] = 426] = "UpgradeRequired";
|
|
52
|
-
HttpStatus2[HttpStatus2["PreconditionRequired"] = 428] = "PreconditionRequired";
|
|
53
|
-
HttpStatus2[HttpStatus2["TooManyRequests"] = 429] = "TooManyRequests";
|
|
54
|
-
HttpStatus2[HttpStatus2["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
|
|
55
|
-
HttpStatus2[HttpStatus2["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
56
|
-
HttpStatus2[HttpStatus2["InternalServerError"] = 500] = "InternalServerError";
|
|
57
|
-
HttpStatus2[HttpStatus2["NotImplemented"] = 501] = "NotImplemented";
|
|
58
|
-
HttpStatus2[HttpStatus2["BadGateway"] = 502] = "BadGateway";
|
|
59
|
-
HttpStatus2[HttpStatus2["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
60
|
-
HttpStatus2[HttpStatus2["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
61
|
-
HttpStatus2[HttpStatus2["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
|
|
62
|
-
HttpStatus2[HttpStatus2["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
|
|
63
|
-
HttpStatus2[HttpStatus2["InsufficientStorage"] = 507] = "InsufficientStorage";
|
|
64
|
-
HttpStatus2[HttpStatus2["LoopDetected"] = 508] = "LoopDetected";
|
|
65
|
-
HttpStatus2[HttpStatus2["NotExtended"] = 510] = "NotExtended";
|
|
66
|
-
HttpStatus2[HttpStatus2["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
67
|
-
return HttpStatus2;
|
|
68
|
-
})(HttpStatus || {});
|
|
69
|
-
|
|
70
|
-
var Revalidate = /* @__PURE__ */ ((Revalidate2) => {
|
|
71
|
-
Revalidate2[Revalidate2["OneHour"] = 3600] = "OneHour";
|
|
72
|
-
Revalidate2[Revalidate2["OneDay"] = 86400] = "OneDay";
|
|
73
|
-
Revalidate2[Revalidate2["OneWeek"] = 604800] = "OneWeek";
|
|
74
|
-
Revalidate2[Revalidate2["OneMonth"] = 2592e3] = "OneMonth";
|
|
75
|
-
Revalidate2[Revalidate2["OneYear"] = 31536e3] = "OneYear";
|
|
76
|
-
return Revalidate2;
|
|
77
|
-
})(Revalidate || {});
|
|
78
|
-
|
|
79
|
-
exports.HttpStatus = HttpStatus;
|
|
80
|
-
exports.Revalidate = Revalidate;
|
package/dist/index3.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => {
|
|
2
|
-
HttpStatus2[HttpStatus2["Continue"] = 100] = "Continue";
|
|
3
|
-
HttpStatus2[HttpStatus2["SwitchingProtocols"] = 101] = "SwitchingProtocols";
|
|
4
|
-
HttpStatus2[HttpStatus2["Processing"] = 102] = "Processing";
|
|
5
|
-
HttpStatus2[HttpStatus2["EarlyHints"] = 103] = "EarlyHints";
|
|
6
|
-
HttpStatus2[HttpStatus2["Ok"] = 200] = "Ok";
|
|
7
|
-
HttpStatus2[HttpStatus2["Created"] = 201] = "Created";
|
|
8
|
-
HttpStatus2[HttpStatus2["Accepted"] = 202] = "Accepted";
|
|
9
|
-
HttpStatus2[HttpStatus2["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
|
|
10
|
-
HttpStatus2[HttpStatus2["NoContent"] = 204] = "NoContent";
|
|
11
|
-
HttpStatus2[HttpStatus2["ResetContent"] = 205] = "ResetContent";
|
|
12
|
-
HttpStatus2[HttpStatus2["PartialContent"] = 206] = "PartialContent";
|
|
13
|
-
HttpStatus2[HttpStatus2["MultiStatus"] = 207] = "MultiStatus";
|
|
14
|
-
HttpStatus2[HttpStatus2["AlreadyReported"] = 208] = "AlreadyReported";
|
|
15
|
-
HttpStatus2[HttpStatus2["ImUsed"] = 226] = "ImUsed";
|
|
16
|
-
HttpStatus2[HttpStatus2["MultipleChoices"] = 300] = "MultipleChoices";
|
|
17
|
-
HttpStatus2[HttpStatus2["MovedPermanently"] = 301] = "MovedPermanently";
|
|
18
|
-
HttpStatus2[HttpStatus2["Found"] = 302] = "Found";
|
|
19
|
-
HttpStatus2[HttpStatus2["SeeOther"] = 303] = "SeeOther";
|
|
20
|
-
HttpStatus2[HttpStatus2["NotModified"] = 304] = "NotModified";
|
|
21
|
-
HttpStatus2[HttpStatus2["UseProxy"] = 305] = "UseProxy";
|
|
22
|
-
HttpStatus2[HttpStatus2["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
23
|
-
HttpStatus2[HttpStatus2["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
24
|
-
HttpStatus2[HttpStatus2["BadRequest"] = 400] = "BadRequest";
|
|
25
|
-
HttpStatus2[HttpStatus2["Unauthorized"] = 401] = "Unauthorized";
|
|
26
|
-
HttpStatus2[HttpStatus2["PaymentRequired"] = 402] = "PaymentRequired";
|
|
27
|
-
HttpStatus2[HttpStatus2["Forbidden"] = 403] = "Forbidden";
|
|
28
|
-
HttpStatus2[HttpStatus2["NotFound"] = 404] = "NotFound";
|
|
29
|
-
HttpStatus2[HttpStatus2["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
30
|
-
HttpStatus2[HttpStatus2["NotAcceptable"] = 406] = "NotAcceptable";
|
|
31
|
-
HttpStatus2[HttpStatus2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
|
|
32
|
-
HttpStatus2[HttpStatus2["RequestTimeout"] = 408] = "RequestTimeout";
|
|
33
|
-
HttpStatus2[HttpStatus2["Conflict"] = 409] = "Conflict";
|
|
34
|
-
HttpStatus2[HttpStatus2["Gone"] = 410] = "Gone";
|
|
35
|
-
HttpStatus2[HttpStatus2["LengthRequired"] = 411] = "LengthRequired";
|
|
36
|
-
HttpStatus2[HttpStatus2["PreconditionFailed"] = 412] = "PreconditionFailed";
|
|
37
|
-
HttpStatus2[HttpStatus2["PayloadTooLarge"] = 413] = "PayloadTooLarge";
|
|
38
|
-
HttpStatus2[HttpStatus2["UriTooLong"] = 414] = "UriTooLong";
|
|
39
|
-
HttpStatus2[HttpStatus2["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
|
|
40
|
-
HttpStatus2[HttpStatus2["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
|
|
41
|
-
HttpStatus2[HttpStatus2["ExpectationFailed"] = 417] = "ExpectationFailed";
|
|
42
|
-
HttpStatus2[HttpStatus2["MisdirectedRequest"] = 421] = "MisdirectedRequest";
|
|
43
|
-
HttpStatus2[HttpStatus2["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
44
|
-
HttpStatus2[HttpStatus2["Locked"] = 423] = "Locked";
|
|
45
|
-
HttpStatus2[HttpStatus2["FailedDependency"] = 424] = "FailedDependency";
|
|
46
|
-
HttpStatus2[HttpStatus2["TooEarly"] = 425] = "TooEarly";
|
|
47
|
-
HttpStatus2[HttpStatus2["UpgradeRequired"] = 426] = "UpgradeRequired";
|
|
48
|
-
HttpStatus2[HttpStatus2["PreconditionRequired"] = 428] = "PreconditionRequired";
|
|
49
|
-
HttpStatus2[HttpStatus2["TooManyRequests"] = 429] = "TooManyRequests";
|
|
50
|
-
HttpStatus2[HttpStatus2["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
|
|
51
|
-
HttpStatus2[HttpStatus2["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
52
|
-
HttpStatus2[HttpStatus2["InternalServerError"] = 500] = "InternalServerError";
|
|
53
|
-
HttpStatus2[HttpStatus2["NotImplemented"] = 501] = "NotImplemented";
|
|
54
|
-
HttpStatus2[HttpStatus2["BadGateway"] = 502] = "BadGateway";
|
|
55
|
-
HttpStatus2[HttpStatus2["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
56
|
-
HttpStatus2[HttpStatus2["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
57
|
-
HttpStatus2[HttpStatus2["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
|
|
58
|
-
HttpStatus2[HttpStatus2["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
|
|
59
|
-
HttpStatus2[HttpStatus2["InsufficientStorage"] = 507] = "InsufficientStorage";
|
|
60
|
-
HttpStatus2[HttpStatus2["LoopDetected"] = 508] = "LoopDetected";
|
|
61
|
-
HttpStatus2[HttpStatus2["NotExtended"] = 510] = "NotExtended";
|
|
62
|
-
HttpStatus2[HttpStatus2["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
63
|
-
return HttpStatus2;
|
|
64
|
-
})(HttpStatus || {});
|
|
65
|
-
|
|
66
|
-
var Revalidate = /* @__PURE__ */ ((Revalidate2) => {
|
|
67
|
-
Revalidate2[Revalidate2["OneHour"] = 3600] = "OneHour";
|
|
68
|
-
Revalidate2[Revalidate2["OneDay"] = 86400] = "OneDay";
|
|
69
|
-
Revalidate2[Revalidate2["OneWeek"] = 604800] = "OneWeek";
|
|
70
|
-
Revalidate2[Revalidate2["OneMonth"] = 2592e3] = "OneMonth";
|
|
71
|
-
Revalidate2[Revalidate2["OneYear"] = 31536e3] = "OneYear";
|
|
72
|
-
return Revalidate2;
|
|
73
|
-
})(Revalidate || {});
|
|
74
|
-
|
|
75
|
-
export { HttpStatus, Revalidate };
|