@ericbutera/kaleido 0.1.7 → 0.1.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/dist/components/admin/adminLayoutConfig.d.ts +9 -0
- package/dist/components/common/GenericList.d.ts +1 -1
- package/dist/components/featureFlags/FeatureFlagStatus.d.ts +9 -0
- package/dist/featureFlags/defaults.d.ts +3 -0
- package/dist/featureFlags/index.d.ts +2 -0
- package/dist/featureFlags/useFeatureFlag.d.ts +86 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1423 -1213
- package/dist/pages/admin/FeatureFlags.d.ts +1 -0
- package/dist/pages/index.d.ts +1 -0
- package/package.json +72 -72
- package/dist/auth/lib/featureFlags.d.ts +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FeatureFlags(): import("react/jsx-runtime").JSX.Element;
|
package/dist/pages/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist",
|
|
16
|
-
"README.md"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "npx vite build",
|
|
20
|
-
"dev": "npx vite build --watch",
|
|
21
|
-
"lint": "eslint src",
|
|
22
|
-
"clean": "rm -rf dist",
|
|
23
|
-
"typecheck": "npx tsc --noEmit"
|
|
24
|
-
},
|
|
25
|
-
"peerDependencies": {
|
|
26
|
-
"@fortawesome/fontawesome-svg-core": ">=6.0.0",
|
|
27
|
-
"@fortawesome/free-solid-svg-icons": ">=6.0.0",
|
|
28
|
-
"@fortawesome/react-fontawesome": ">=3.1.0",
|
|
29
|
-
"@tanstack/react-query": "^5.0.0",
|
|
30
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
31
|
-
"react-dom": "^18.0.0 || ^19.0.0",
|
|
32
|
-
"react-hook-form": "^7.0.0",
|
|
33
|
-
"react-hot-toast": "^2.0.0",
|
|
34
|
-
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@fortawesome/free-brands-svg-icons": "^7.2.0",
|
|
38
|
-
"@types/lodash-es": "^4.17.12",
|
|
39
|
-
"lodash-es": "^4.17.23",
|
|
40
|
-
"qrcode.react": "^4.2.0",
|
|
41
|
-
"zod": "^3.23.0"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
45
|
-
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
46
|
-
"@fortawesome/react-fontawesome": "^3.1.1",
|
|
47
|
-
"@tanstack/react-query": "^5.0.0",
|
|
48
|
-
"@types/node": "^25.3.0",
|
|
49
|
-
"@types/react": "^19.2.5",
|
|
50
|
-
"@types/react-dom": "^19.2.3",
|
|
51
|
-
"@vitejs/plugin-react": "^5.1.1",
|
|
52
|
-
"eslint": "^9.39.1",
|
|
53
|
-
"react": "^19.2.0",
|
|
54
|
-
"react-dom": "^19.2.0",
|
|
55
|
-
"react-hook-form": "^7.71.1",
|
|
56
|
-
"react-hot-toast": "^2.6.0",
|
|
57
|
-
"react-router-dom": "^7.0.0",
|
|
58
|
-
"typescript": "~5.9.3",
|
|
59
|
-
"vite": "^7.2.4",
|
|
60
|
-
"vite-plugin-dts": "^4.3.0"
|
|
61
|
-
},
|
|
62
|
-
"keywords": [
|
|
63
|
-
"kaleido",
|
|
64
|
-
"ui",
|
|
65
|
-
"components"
|
|
66
|
-
],
|
|
67
|
-
"author": "Eric Butera",
|
|
68
|
-
"license": "MIT",
|
|
69
|
-
"repository": {
|
|
70
|
-
"type": "git",
|
|
71
|
-
"url": "https://github.com/ericbutera/kaleido",
|
|
72
|
-
"directory": "typescript/packages/kaleido"
|
|
2
|
+
"name": "@ericbutera/kaleido",
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"description": "Shared UI components and framework utilities for Kaleido",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
73
12
|
}
|
|
74
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@fortawesome/fontawesome-svg-core": ">=6.0.0",
|
|
20
|
+
"@fortawesome/free-solid-svg-icons": ">=6.0.0",
|
|
21
|
+
"@fortawesome/react-fontawesome": ">=3.1.0",
|
|
22
|
+
"@tanstack/react-query": "^5.0.0",
|
|
23
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
25
|
+
"react-hook-form": "^7.0.0",
|
|
26
|
+
"react-hot-toast": "^2.0.0",
|
|
27
|
+
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@fortawesome/free-brands-svg-icons": "^7.2.0",
|
|
31
|
+
"@types/lodash-es": "^4.17.12",
|
|
32
|
+
"lodash-es": "^4.17.23",
|
|
33
|
+
"qrcode.react": "^4.2.0",
|
|
34
|
+
"zod": "^3.23.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
38
|
+
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
39
|
+
"@fortawesome/react-fontawesome": "^3.1.1",
|
|
40
|
+
"@tanstack/react-query": "^5.0.0",
|
|
41
|
+
"@types/node": "^25.3.0",
|
|
42
|
+
"@types/react": "^19.2.5",
|
|
43
|
+
"@types/react-dom": "^19.2.3",
|
|
44
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
45
|
+
"eslint": "^10.0.1",
|
|
46
|
+
"react": "^19.2.0",
|
|
47
|
+
"react-dom": "^19.2.0",
|
|
48
|
+
"react-hook-form": "^7.71.1",
|
|
49
|
+
"react-hot-toast": "^2.6.0",
|
|
50
|
+
"react-router-dom": "^7.0.0",
|
|
51
|
+
"typescript": "~5.9.3",
|
|
52
|
+
"vite": "^7.2.4",
|
|
53
|
+
"vite-plugin-dts": "^4.5.4"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"kaleido",
|
|
57
|
+
"ui",
|
|
58
|
+
"components"
|
|
59
|
+
],
|
|
60
|
+
"author": "Eric Butera",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "https://github.com/ericbutera/kaleido",
|
|
65
|
+
"directory": "typescript/packages/kaleido"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "npx vite build",
|
|
69
|
+
"dev": "npx vite build --watch",
|
|
70
|
+
"lint": "eslint src",
|
|
71
|
+
"clean": "rm -rf dist",
|
|
72
|
+
"typecheck": "npx tsc --noEmit"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|