@zonos/amino 5.2.11 → 5.2.12
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/components/danger-zone/DangerZone.d.ts +1 -9
- package/package.json +1 -1
- package/utils/getFuzzySearch.d.ts +2 -2
- package/utils/getIsInternalLink.d.ts +3 -3
- package/utils/getTestId.d.ts +2 -2
- package/utils/handleFetch.d.ts +3 -6
- package/utils/hooks/_useGraphiqlExplorer.d.ts +1 -1
- package/utils/hooks/useStorage.d.ts +1 -3
- package/utils/hooks/useSwrt.d.ts +1 -1
- package/utils/storage.d.ts +1 -3
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { type CardProps } from "../card/Card";
|
|
3
3
|
import type { BaseProps } from "../../types/BaseProps";
|
|
4
|
-
export declare const DangerZone: ({ children, className, style, ...props }: BaseProps & {
|
|
5
|
-
actions?: ReactNode;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
footerActions?: ReactNode;
|
|
8
|
-
footerContent?: ReactNode;
|
|
9
|
-
footerHeight?: number | undefined;
|
|
10
|
-
label?: ReactNode;
|
|
11
|
-
spacing?: string | undefined;
|
|
12
|
-
} & {
|
|
4
|
+
export declare const DangerZone: ({ children, className, style, ...props }: BaseProps & CardProps & {
|
|
13
5
|
children: ReactNode;
|
|
14
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Fuse from 'fuse.js';
|
|
2
2
|
export declare const getFuzzySearch: <T extends unknown>({ array, index, options, }: {
|
|
3
3
|
array: T[];
|
|
4
|
-
index?: Fuse.FuseIndex<T
|
|
5
|
-
options?: Fuse.IFuseOptions<T
|
|
4
|
+
index?: Fuse.FuseIndex<T>;
|
|
5
|
+
options?: Fuse.IFuseOptions<T>;
|
|
6
6
|
}) => {
|
|
7
7
|
fuzzySearch: Fuse<T>;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getIsInternalLink: ({ href, internalPaths, shouldWarn, }: {
|
|
2
|
-
href?: string
|
|
3
|
-
internalPaths?: string[]
|
|
4
|
-
shouldWarn?: boolean
|
|
2
|
+
href?: string;
|
|
3
|
+
internalPaths?: string[];
|
|
4
|
+
shouldWarn?: boolean;
|
|
5
5
|
}) => {
|
|
6
6
|
isBrokenLink: boolean;
|
|
7
7
|
isInternalLink: boolean | undefined;
|
package/utils/getTestId.d.ts
CHANGED
package/utils/handleFetch.d.ts
CHANGED
|
@@ -13,10 +13,7 @@ export type RequestOptions<ResponseBody, RequestBody> = {
|
|
|
13
13
|
body?: NoInfer<RequestBody>;
|
|
14
14
|
testExpectedData?: (data: ResponseBody) => boolean;
|
|
15
15
|
} & Omit<RequestInit, 'body'>;
|
|
16
|
-
export declare const handleFetch: <ResponseBody extends unknown, RequestBody = unknown>(url: string, _opts?:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} & Omit<RequestInit, "body"> & {
|
|
20
|
-
logRequestIfError?: boolean | undefined;
|
|
21
|
-
}) | undefined) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
16
|
+
export declare const handleFetch: <ResponseBody extends unknown, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody> & {
|
|
17
|
+
logRequestIfError?: boolean;
|
|
18
|
+
}) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
22
19
|
export declare const fetcher: <ResponseBody extends unknown, RequestBody = unknown>(url: string, options?: RequestOptions<ResponseBody, RequestBody>) => Promise<FetcherReturn<ResponseBody>>;
|
|
@@ -12,6 +12,6 @@ type GraphiQlColors = {
|
|
|
12
12
|
variable: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const useGraphiqlExplorer: ({ overrideColor, }: {
|
|
15
|
-
overrideColor?: GraphiQlColors
|
|
15
|
+
overrideColor?: GraphiQlColors;
|
|
16
16
|
}) => import("@graphiql/react").GraphiQLPlugin;
|
|
17
17
|
export {};
|
|
@@ -10,9 +10,7 @@ export declare const useStorage: <TValue extends unknown, TKey extends AminoStor
|
|
|
10
10
|
setValue: (value: TValue) => void;
|
|
11
11
|
value: TValue;
|
|
12
12
|
};
|
|
13
|
-
export declare const useStorageWithLifetime: <TValue extends unknown, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, lifetime, schema, type, }:
|
|
14
|
-
defaultValue: TValue;
|
|
15
|
-
} & {
|
|
13
|
+
export declare const useStorageWithLifetime: <TValue extends unknown, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, lifetime, schema, type, }: UseStorageParams<TValue, TKey> & {
|
|
16
14
|
lifetime: Dayjs;
|
|
17
15
|
}) => {
|
|
18
16
|
setValue: (value: TValue) => void;
|
package/utils/hooks/useSwrt.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ type UseSwrArgs<ResponseData> = readonly [Key] | readonly [Key, Fetcher<SwrtPara
|
|
|
17
17
|
* fetcher
|
|
18
18
|
* );
|
|
19
19
|
*/
|
|
20
|
-
export declare const useSwrt: <ResponseData = unknown>(...params: UseSwrArgs<ResponseData>) => import("swr").SWRResponse<SwrtParams<ResponseData>, FetcherError,
|
|
20
|
+
export declare const useSwrt: <ResponseData = unknown>(...params: UseSwrArgs<ResponseData>) => import("swr").SWRResponse<SwrtParams<ResponseData>, FetcherError, SWRConfiguration<SwrtParams<ResponseData>, FetcherError, import("swr").BareFetcher<SwrtParams<ResponseData>>> | undefined>;
|
|
21
21
|
export {};
|
package/utils/storage.d.ts
CHANGED
|
@@ -14,9 +14,7 @@ type SetParams<Value> = Omit<StorageParams<Value>, 'schema'> & {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const getStorageItem: <Value extends unknown>({ key, schema, type, }: StorageParams<Value>) => Value | null;
|
|
16
16
|
export declare const setStorageItem: <Value extends unknown>({ key, type, value, }: SetParams<Value>) => void;
|
|
17
|
-
export declare const setStorageItemWithLifetime: <Value extends unknown>({ key, lifetime, type, value, }:
|
|
18
|
-
value: Value;
|
|
19
|
-
} & {
|
|
17
|
+
export declare const setStorageItemWithLifetime: <Value extends unknown>({ key, lifetime, type, value, }: SetParams<Value> & {
|
|
20
18
|
lifetime: Dayjs;
|
|
21
19
|
}) => void;
|
|
22
20
|
export declare const getShouldUpdateStorageItem: <Value extends unknown>({ key, type, }: StorageParams<Value>) => boolean;
|