@ericbutera/kaleido 0.1.0 → 0.1.7
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.md +3 -0
- package/dist/auth/components/GoogleOAuthButton.d.ts +8 -0
- package/dist/auth/lib/featureFlags.d.ts +21 -0
- package/dist/auth/pages/auth/SignUp.d.ts +3 -1
- package/dist/components/common/GenericList.d.ts +1 -1
- package/dist/index.js +876 -793
- package/dist/lib/params/adminTasksParams.d.ts +2 -2
- package/package.json +2 -1
package/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface GoogleOAuthButtonProps {
|
|
2
|
+
redirectUrl?: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function GoogleOAuthButton({ redirectUrl, text, className, disabled, }: GoogleOAuthButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const FLAG_OAUTH = "oauth";
|
|
3
|
+
export declare const FLAG_REGISTRATION = "registration";
|
|
4
|
+
export interface FeatureFlagClient {
|
|
5
|
+
useFeatureFlag(flag: string): boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function FeatureFlagProvider({ client, children, }: {
|
|
8
|
+
client?: FeatureFlagClient;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Hook to read a single feature flag. This delegates to the configured
|
|
13
|
+
* `FeatureFlagClient` so callers can be provider-agnostic (local flags,
|
|
14
|
+
* LaunchDarkly, remote config, etc.).
|
|
15
|
+
*/
|
|
16
|
+
export declare function useFeatureFlag(flag: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Helper to expose the raw client for advanced use-cases.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useFeatureFlagClient(): FeatureFlagClient;
|
|
21
|
+
export default FeatureFlagProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PaginatedQueryResult } from '../../lib/paginatedQuery';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { ZodTypeAny } from 'zod';
|
|
3
|
-
import { PaginatedQueryResult } from '../../lib/paginatedQuery';
|
|
4
4
|
export interface Column<T, P = any> {
|
|
5
5
|
key: string;
|
|
6
6
|
header: ReactNode | ((params: P, setFilter: (key: keyof P, value: any) => void, setFilters: (updates: Partial<P>) => void) => ReactNode);
|