@iblai/web-containers 0.0.6 → 0.2.0

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.
Files changed (177) hide show
  1. package/dist/components/hooks/use-toast.d.ts +1 -1
  2. package/dist/components/index.d.ts +2 -0
  3. package/dist/components/loader.d.ts +1 -0
  4. package/dist/components/modals/user-profile-modal.d.ts +14 -0
  5. package/dist/components/profile/index.d.ts +5 -1
  6. package/dist/components/profile/security.d.ts +1 -1
  7. package/dist/components/profile/use-profile.d.ts +1 -1
  8. package/dist/components/ui/card.d.ts +8 -0
  9. package/dist/components/ui/pagination.d.ts +1 -1
  10. package/dist/components/ui/separator.d.ts +4 -0
  11. package/dist/components/ui/sonner.d.ts +4 -0
  12. package/dist/components/version.d.ts +6 -0
  13. package/dist/data-layer/src/config.d.ts +7 -0
  14. package/dist/data-layer/src/constants.d.ts +30 -0
  15. package/dist/data-layer/src/core/index.d.ts +4 -0
  16. package/dist/data-layer/src/features/analytics/api-slice.d.ts +1600 -0
  17. package/dist/data-layer/src/features/analytics/constants.d.ts +66 -0
  18. package/dist/data-layer/src/features/analytics/types.d.ts +100 -0
  19. package/dist/data-layer/src/features/api-keys/api-slice.d.ts +665 -0
  20. package/dist/data-layer/src/features/apps/api-slice.d.ts +683 -0
  21. package/dist/data-layer/src/features/auth/api-slice.d.ts +137 -0
  22. package/dist/data-layer/src/features/auth/constants.d.ts +8 -0
  23. package/dist/data-layer/src/features/auth/types.d.ts +13 -0
  24. package/dist/data-layer/src/features/billing/api-slice.d.ts +349 -0
  25. package/dist/data-layer/src/features/career/api-slice.d.ts +687 -0
  26. package/dist/data-layer/src/features/catalog/api-slice.d.ts +6602 -0
  27. package/dist/data-layer/src/features/chat/api-slice.d.ts +1832 -0
  28. package/dist/data-layer/src/features/chat-history/api-slice.d.ts +1386 -0
  29. package/dist/data-layer/src/features/constants.d.ts +3 -0
  30. package/dist/data-layer/src/features/core/api-slice.d.ts +653 -0
  31. package/dist/data-layer/src/features/core/constants.d.ts +4 -0
  32. package/dist/data-layer/src/features/credentials/api-slice.d.ts +2129 -0
  33. package/dist/data-layer/src/features/credentials/constants.d.ts +28 -0
  34. package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +1284 -0
  35. package/dist/data-layer/src/features/credentials/types.d.ts +16 -0
  36. package/dist/data-layer/src/features/datasets/api-slice.d.ts +576 -0
  37. package/dist/data-layer/src/features/llms/api-slice.d.ts +333 -0
  38. package/dist/data-layer/src/features/mentor/api-slice.d.ts +4298 -0
  39. package/dist/data-layer/src/features/mentor/constants.d.ts +31 -0
  40. package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +268 -0
  41. package/dist/data-layer/src/features/mentor/types.d.ts +38 -0
  42. package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +311 -0
  43. package/dist/data-layer/src/features/notifications/api-slice.d.ts +946 -0
  44. package/dist/data-layer/src/features/per-learner/api-slice.d.ts +1213 -0
  45. package/dist/data-layer/src/features/platform/api-slice.d.ts +1124 -0
  46. package/dist/data-layer/src/features/prompts/api-slice.d.ts +2276 -0
  47. package/dist/data-layer/src/features/search/api-slice.d.ts +1939 -0
  48. package/dist/data-layer/src/features/sessions/api-slice.d.ts +705 -0
  49. package/dist/data-layer/src/features/skills/api-slice.d.ts +1235 -0
  50. package/dist/data-layer/src/features/stripe/api-slice.d.ts +620 -0
  51. package/dist/data-layer/src/features/stripe/constants.d.ts +15 -0
  52. package/dist/data-layer/src/features/stripe/types.d.ts +9 -0
  53. package/dist/data-layer/src/features/tenant/api-slice.d.ts +759 -0
  54. package/dist/data-layer/src/features/tenant/constants.d.ts +11 -0
  55. package/dist/data-layer/src/features/tenant/types.d.ts +18 -0
  56. package/dist/data-layer/src/features/tenant-logo/api-slice.d.ts +349 -0
  57. package/dist/data-layer/src/features/tenant-logo/constants.d.ts +24 -0
  58. package/dist/data-layer/src/features/tools/api-slice.d.ts +333 -0
  59. package/dist/data-layer/src/features/training-documents/api-slice.d.ts +922 -0
  60. package/dist/data-layer/src/features/user/api-slice.d.ts +1703 -0
  61. package/dist/data-layer/src/features/user/constants.d.ts +40 -0
  62. package/dist/data-layer/src/features/user/types.d.ts +107 -0
  63. package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +718 -0
  64. package/dist/data-layer/src/features/utils.d.ts +66 -0
  65. package/dist/data-layer/src/index.d.ts +47 -0
  66. package/dist/data-layer/src/reducers/index.d.ts +2 -0
  67. package/dist/data-layer/src/reducers/mentor.d.ts +2 -0
  68. package/dist/data-layer/src/reducers/skills.d.ts +1148 -0
  69. package/dist/data-layer/src/services/StorageService.d.ts +5 -0
  70. package/dist/data-layer/src/utils/index.d.ts +2 -0
  71. package/dist/index.esm.js +23491 -2086
  72. package/dist/index.esm.js.map +1 -1
  73. package/dist/index.js +23569 -2157
  74. package/dist/index.js.map +1 -1
  75. package/dist/package.json +98 -0
  76. package/dist/web-containers/src/components/advance-pagination.d.ts +8 -0
  77. package/dist/web-containers/src/components/error/client-error-page.d.ts +10 -0
  78. package/dist/web-containers/src/components/error/error-page.d.ts +18 -0
  79. package/dist/web-containers/src/components/hooks/use-copy-to-clipboard.d.ts +8 -0
  80. package/dist/web-containers/src/components/hooks/use-toast.d.ts +44 -0
  81. package/dist/web-containers/src/components/index.d.ts +13 -0
  82. package/dist/web-containers/src/components/loader.d.ts +1 -0
  83. package/dist/web-containers/src/components/modals/user-profile-modal.d.ts +23 -0
  84. package/dist/web-containers/src/components/notifications/index.d.ts +1 -0
  85. package/dist/web-containers/src/components/notifications/notification-dropdown.d.ts +6 -0
  86. package/dist/web-containers/src/components/profile/account.d.ts +19 -0
  87. package/dist/web-containers/src/components/profile/admin.d.ts +4 -0
  88. package/dist/web-containers/src/components/profile/advanced.d.ts +5 -0
  89. package/dist/web-containers/src/components/profile/billing.d.ts +5 -0
  90. package/dist/web-containers/src/components/profile/index.d.ts +16 -0
  91. package/dist/web-containers/src/components/profile/integration/api-tab/api-key-modal.d.ts +7 -0
  92. package/dist/web-containers/src/components/profile/integration/api-tab/constants.d.ts +2 -0
  93. package/dist/web-containers/src/components/profile/integration/api-tab/create-api-modal.d.ts +8 -0
  94. package/dist/web-containers/src/components/profile/integration/api-tab/delete-api-modal.d.ts +11 -0
  95. package/dist/web-containers/src/components/profile/integration/api-tab/integration-autogenerated-table.d.ts +3 -0
  96. package/dist/web-containers/src/components/profile/integration/data-sources-tab/create-data-source-modal.d.ts +8 -0
  97. package/dist/web-containers/src/components/profile/integration/data-sources-tab/integration-data-sources-tab.d.ts +3 -0
  98. package/dist/web-containers/src/components/profile/integration/index.d.ts +4 -0
  99. package/dist/web-containers/src/components/profile/integration/llms-tab/create-llm-modal.d.ts +8 -0
  100. package/dist/web-containers/src/components/profile/integration/llms-tab/integration-llms-tab.d.ts +3 -0
  101. package/dist/web-containers/src/components/profile/invite-user.d.ts +5 -0
  102. package/dist/web-containers/src/components/profile/invited-users.d.ts +4 -0
  103. package/dist/web-containers/src/components/profile/organization.d.ts +4 -0
  104. package/dist/web-containers/src/components/profile/security.d.ts +3 -0
  105. package/dist/web-containers/src/components/profile/use-profile.d.ts +44 -0
  106. package/dist/web-containers/src/components/spinner/index.d.ts +6 -0
  107. package/dist/web-containers/src/components/tenant-switch/index.d.ts +11 -0
  108. package/dist/web-containers/src/components/tenant-switch/types.d.ts +6 -0
  109. package/dist/web-containers/src/components/top-banner/index.d.ts +3 -0
  110. package/dist/web-containers/src/components/top-banner/types.d.ts +10 -0
  111. package/dist/web-containers/src/components/top-banner/use-top-banner.d.ts +11 -0
  112. package/dist/web-containers/src/components/ui/avatar.d.ts +13 -0
  113. package/dist/web-containers/src/components/ui/badge.d.ts +9 -0
  114. package/dist/web-containers/src/components/ui/button.d.ts +11 -0
  115. package/dist/web-containers/src/components/ui/calendar.d.ts +8 -0
  116. package/dist/web-containers/src/components/ui/card.d.ts +8 -0
  117. package/dist/web-containers/src/components/ui/checkbox.d.ts +4 -0
  118. package/dist/web-containers/src/components/ui/dialog.d.ts +19 -0
  119. package/dist/web-containers/src/components/ui/dropdown-menu.d.ts +25 -0
  120. package/dist/web-containers/src/components/ui/input.d.ts +3 -0
  121. package/dist/web-containers/src/components/ui/label.d.ts +5 -0
  122. package/dist/web-containers/src/components/ui/pagination.d.ts +28 -0
  123. package/dist/web-containers/src/components/ui/popover.d.ts +6 -0
  124. package/dist/web-containers/src/components/ui/select.d.ts +13 -0
  125. package/dist/web-containers/src/components/ui/separator.d.ts +4 -0
  126. package/dist/web-containers/src/components/ui/skeleton.d.ts +2 -0
  127. package/dist/web-containers/src/components/ui/sonner.d.ts +4 -0
  128. package/dist/web-containers/src/components/ui/switch.d.ts +4 -0
  129. package/dist/web-containers/src/components/ui/table.d.ts +10 -0
  130. package/dist/web-containers/src/components/ui/tabs.d.ts +7 -0
  131. package/dist/web-containers/src/components/ui/textarea.d.ts +3 -0
  132. package/dist/web-containers/src/components/ui/toast.d.ts +15 -0
  133. package/dist/web-containers/src/components/ui/toaster.d.ts +15 -0
  134. package/dist/web-containers/src/components/ui/tooltip.d.ts +7 -0
  135. package/dist/web-containers/src/components/ui/use-toast.d.ts +15 -0
  136. package/dist/web-containers/src/components/user-profile-dropdown/index.d.ts +52 -0
  137. package/dist/web-containers/src/components/version.d.ts +6 -0
  138. package/dist/web-containers/src/hooks/index.d.ts +1 -0
  139. package/dist/web-containers/src/hooks/use-iframe-message-handler.d.ts +8 -0
  140. package/dist/web-containers/src/index.d.ts +2 -0
  141. package/dist/web-containers/src/lib/error-utils.d.ts +15 -0
  142. package/dist/web-containers/src/lib/utils.d.ts +2 -0
  143. package/dist/web-containers/src/utils.d.ts +1 -0
  144. package/dist/web-utils/src/features/chat/slice.d.ts +91 -0
  145. package/dist/web-utils/src/features/index.d.ts +1 -0
  146. package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +48 -0
  147. package/dist/web-utils/src/hooks/chat/use-chat-v2.d.ts +56 -0
  148. package/dist/web-utils/src/hooks/chat/use-mentor-tools.d.ts +18 -0
  149. package/dist/web-utils/src/hooks/index.d.ts +15 -0
  150. package/dist/web-utils/src/hooks/profile/use-profile-image-upload.d.ts +13 -0
  151. package/dist/web-utils/src/hooks/profile/use-user-profile-update.d.ts +28 -0
  152. package/dist/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +70 -0
  153. package/dist/web-utils/src/hooks/subscription/constants.d.ts +4 -0
  154. package/dist/web-utils/src/hooks/subscription/use-subscription-handler.d.ts +11 -0
  155. package/dist/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +77 -0
  156. package/dist/web-utils/src/hooks/subscription-v2/constants.d.ts +51 -0
  157. package/dist/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
  158. package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +16 -0
  159. package/dist/web-utils/src/hooks/tenant-metadata/config-loader.d.ts +41 -0
  160. package/dist/web-utils/src/hooks/tenant-metadata/constants.d.ts +9 -0
  161. package/dist/web-utils/src/hooks/tenant-metadata/types.d.ts +9 -0
  162. package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +24 -0
  163. package/dist/web-utils/src/hooks/use-day-js.d.ts +7 -0
  164. package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +21 -0
  165. package/dist/web-utils/src/index.d.ts +5 -0
  166. package/dist/web-utils/src/providers/auth-provider.d.ts +64 -0
  167. package/dist/web-utils/src/providers/index.d.ts +3 -0
  168. package/dist/web-utils/src/providers/mentor-provider.d.ts +40 -0
  169. package/dist/web-utils/src/providers/tenant-provider.d.ts +63 -0
  170. package/dist/web-utils/src/types/chat.d.ts +1 -0
  171. package/dist/web-utils/src/types/index.d.ts +55 -0
  172. package/dist/web-utils/src/types/subscription.d.ts +18 -0
  173. package/dist/web-utils/src/utils/constants.d.ts +37 -0
  174. package/dist/web-utils/src/utils/data/advanced-tab.d.ts +62 -0
  175. package/dist/web-utils/src/utils/helpers.d.ts +6 -0
  176. package/dist/web-utils/src/utils/index.d.ts +3 -0
  177. package/package.json +38 -21
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@iblai/web-containers",
3
+ "version": "0.1.1",
4
+ "description": "ibl web containers",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.esm.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "rollup -c",
13
+ "test": "jest",
14
+ "test:watch": "jest --watch",
15
+ "test:coverage": "jest --coverage",
16
+ "prepare": "husky",
17
+ "format": "prettier --write .",
18
+ "format:check": "prettier --check .",
19
+ "lint": "eslint --fix",
20
+ "lint:check": "eslint"
21
+ },
22
+ "keywords": [
23
+ "web"
24
+ ],
25
+ "author": "iblai",
26
+ "license": "ISC",
27
+ "devDependencies": {
28
+ "@rollup/plugin-commonjs": "25.0.8",
29
+ "@rollup/plugin-node-resolve": "15.3.1",
30
+ "@rollup/plugin-typescript": "11.1.6",
31
+ "@testing-library/jest-dom": "6.6.3",
32
+ "@testing-library/react": "16.3.0",
33
+ "@types/jest": "29.5.14",
34
+ "@types/node": "^22.15.20",
35
+ "@types/react": "19.0.10",
36
+ "@types/react-gravatar": "^2.6.14",
37
+ "@typescript-eslint/eslint-plugin": "8.29.1",
38
+ "@typescript-eslint/parser": "8.29.1",
39
+ "autoprefixer": "^10.4.21",
40
+ "eslint": "9.24.0",
41
+ "eslint-config-prettier": "10.1.2",
42
+ "husky": "9.1.7",
43
+ "jest": "29.7.0",
44
+ "jest-environment-jsdom": "29.7.0",
45
+ "postcss": "^8.5.3",
46
+ "prettier": "3.5.3",
47
+ "rollup": "4.40.0",
48
+ "rollup-plugin-peer-deps-external": "2.2.4",
49
+ "rollup-plugin-postcss": "^4.0.2",
50
+ "rollup-plugin-strip-code": "^0.2.8",
51
+ "rollup-plugin-typescript2": "0.36.0",
52
+ "tailwindcss": "^4.1.7",
53
+ "ts-jest": "29.3.2",
54
+ "tslib": "2.8.1",
55
+ "typescript": "5.8.3"
56
+ },
57
+ "dependencies": {
58
+ "@iblai/data-layer": "workspace:*",
59
+ "@iblai/web-utils": "workspace:*",
60
+ "@radix-ui/react-accordion": "1.2.8",
61
+ "@radix-ui/react-avatar": "1.1.7",
62
+ "@radix-ui/react-checkbox": "1.2.3",
63
+ "@radix-ui/react-dialog": "^1.1.7",
64
+ "@radix-ui/react-dropdown-menu": "2.1.7",
65
+ "@radix-ui/react-label": "^2.1.6",
66
+ "@radix-ui/react-popover": "1.1.7",
67
+ "@radix-ui/react-select": "2.1.7",
68
+ "@radix-ui/react-separator": "1.1.4",
69
+ "@radix-ui/react-slot": "^1.2.3",
70
+ "@radix-ui/react-switch": "^1.2.4",
71
+ "@radix-ui/react-tabs": "1.1.4",
72
+ "@radix-ui/react-toast": "^1.2.13",
73
+ "@radix-ui/react-tooltip": "1.2.4",
74
+ "@shadcn/ui": "0.0.4",
75
+ "@tanstack/react-form": "1.11.2",
76
+ "class-variance-authority": "0.7.1",
77
+ "clsx": "2.1.1",
78
+ "date-fns": "4.1.0",
79
+ "globals": "^16.1.0",
80
+ "lucide-react": "0.507.0",
81
+ "next-themes": "^0.4.6",
82
+ "react-day-picker": "9.6.7",
83
+ "react-gravatar": "^2.6.3",
84
+ "rollup-plugin-copy": "^3.5.0",
85
+ "sonner": "^2.0.3",
86
+ "tailwind-merge": "3.2.0",
87
+ "tw-animate-css": "1.2.9",
88
+ "zod": "3.24.2"
89
+ },
90
+ "peerDependencies": {
91
+ "@iblai/iblai-api": "4.11.1-ai",
92
+ "@reduxjs/toolkit": "2.7.0",
93
+ "react": "19.0.0",
94
+ "react-dom": "19.0.0",
95
+ "react-redux": "9.2.0"
96
+ },
97
+ "packageManager": "pnpm@10.11.0"
98
+ }
@@ -0,0 +1,8 @@
1
+ interface AdvancedPaginationProps {
2
+ currentPage: number;
3
+ totalPages: number;
4
+ onPageChange: (page: number) => void;
5
+ siblingCount?: number;
6
+ }
7
+ export declare const AdvancedPagination: ({ currentPage, totalPages, onPageChange, siblingCount, }: AdvancedPaginationProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ header?: string;
3
+ message?: string;
4
+ errorCode?: string;
5
+ showHomeButton?: boolean;
6
+ supportEmail?: string;
7
+ handleError: (error: any) => void;
8
+ };
9
+ export declare const ClientErrorPage: ({ header, message, supportEmail, errorCode, showHomeButton, handleError, }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,18 @@
1
+ import type React from 'react';
2
+ interface ErrorPageProps {
3
+ errorCode: string;
4
+ supportEmail?: string;
5
+ showSupportButton?: boolean;
6
+ supportButtonText?: string;
7
+ customTitle?: string;
8
+ customDescription?: string;
9
+ customIcon?: React.ReactNode;
10
+ showHomeButton?: boolean;
11
+ homeButtonText?: string;
12
+ homeButtonHref?: string;
13
+ showReset?: boolean;
14
+ resetButtonText?: string;
15
+ reset?: () => void;
16
+ }
17
+ export declare function ErrorPage({ errorCode, customTitle, customDescription, customIcon, supportEmail, showSupportButton, supportButtonText, showReset, showHomeButton, homeButtonText, homeButtonHref, resetButtonText, reset, }: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,8 @@
1
+ type CopyFn = (text: string) => Promise<void>;
2
+ type CopyStatus = "idle" | "success" | "error";
3
+ type UseCopyToClipboardReturn = {
4
+ copy: CopyFn;
5
+ status: CopyStatus;
6
+ };
7
+ export declare function useCopyToClipboard(timeout?: number): UseCopyToClipboardReturn;
8
+ export {};
@@ -0,0 +1,44 @@
1
+ import * as React from "react";
2
+ import type { ToastActionElement, ToastProps } from "@web-containers/components/ui/toast";
3
+ type ToasterToast = ToastProps & {
4
+ id: string;
5
+ title?: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ action?: ToastActionElement;
8
+ };
9
+ declare const actionTypes: {
10
+ readonly ADD_TOAST: "ADD_TOAST";
11
+ readonly UPDATE_TOAST: "UPDATE_TOAST";
12
+ readonly DISMISS_TOAST: "DISMISS_TOAST";
13
+ readonly REMOVE_TOAST: "REMOVE_TOAST";
14
+ };
15
+ type ActionType = typeof actionTypes;
16
+ type Action = {
17
+ type: ActionType["ADD_TOAST"];
18
+ toast: ToasterToast;
19
+ } | {
20
+ type: ActionType["UPDATE_TOAST"];
21
+ toast: Partial<ToasterToast>;
22
+ } | {
23
+ type: ActionType["DISMISS_TOAST"];
24
+ toastId?: ToasterToast["id"];
25
+ } | {
26
+ type: ActionType["REMOVE_TOAST"];
27
+ toastId?: ToasterToast["id"];
28
+ };
29
+ interface State {
30
+ toasts: ToasterToast[];
31
+ }
32
+ export declare const reducer: (state: State, action: Action) => State;
33
+ type Toast = Omit<ToasterToast, "id">;
34
+ declare function toast({ ...props }: Toast): {
35
+ id: string;
36
+ dismiss: () => void;
37
+ update: (props: ToasterToast) => void;
38
+ };
39
+ declare function useToast(): {
40
+ toast: typeof toast;
41
+ dismiss: (toastId?: string) => void;
42
+ toasts: ToasterToast[];
43
+ };
44
+ export { useToast, toast };
@@ -0,0 +1,13 @@
1
+ export * from "./profile";
2
+ export * from "./profile/invite-user";
3
+ export * from "./profile/invited-users";
4
+ export * from "./top-banner";
5
+ export * from "./top-banner/types";
6
+ export * from "./modals/user-profile-modal";
7
+ export * from "./loader";
8
+ export * from "./tenant-switch";
9
+ export * from "./tenant-switch/types";
10
+ export * from "./user-profile-dropdown";
11
+ export * from "./notifications";
12
+ export * from "./error/client-error-page";
13
+ export * from "./error/error-page";
@@ -0,0 +1 @@
1
+ export declare function Loader(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ interface UserProfileModalProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ params: {
5
+ tenantKey: string;
6
+ mentorId?: string;
7
+ isAdmin?: boolean;
8
+ };
9
+ billingEnabled?: boolean;
10
+ billingURL?: string;
11
+ topUpEnabled?: boolean;
12
+ topUpURL?: string;
13
+ showMentorAIDisplayCheckbox?: boolean;
14
+ showLeaderboardDisplayCheckbox?: boolean;
15
+ showUsernameField?: boolean;
16
+ showPlatformName?: boolean;
17
+ useGravatarPicFallback?: boolean;
18
+ targetTab?: string;
19
+ currentPlan?: string;
20
+ currentSPA?: string;
21
+ }
22
+ export declare function UserProfileModal({ isOpen, onClose, params, billingEnabled, billingURL, topUpEnabled, topUpURL, showMentorAIDisplayCheckbox, showLeaderboardDisplayCheckbox, showUsernameField, showPlatformName, useGravatarPicFallback, targetTab, currentPlan, currentSPA }: UserProfileModalProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./notification-dropdown";
@@ -0,0 +1,6 @@
1
+ export interface NotificationDropdownProps {
2
+ org: string;
3
+ userId: string;
4
+ className?: string;
5
+ }
6
+ export declare function NotificationDropdown({ org, userId, className, }: NotificationDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ interface UserProfileModalProps {
2
+ tenant: string;
3
+ username: string;
4
+ onInviteClick: () => void;
5
+ onClose: () => void;
6
+ billingEnabled?: boolean;
7
+ billingURL?: string;
8
+ topUpEnabled?: boolean;
9
+ topUpURL?: string;
10
+ showUsernameField?: boolean;
11
+ showPlatformName?: boolean;
12
+ useGravatarPicFallback?: boolean;
13
+ isAdmin?: boolean;
14
+ targetTab?: string;
15
+ currentPlan?: string;
16
+ currentSPA?: string;
17
+ }
18
+ export declare function Account({ tenant, username, onInviteClick, onClose, billingEnabled, billingURL, topUpEnabled, topUpURL, showUsernameField, showPlatformName, useGravatarPicFallback, isAdmin, targetTab, currentPlan, currentSPA, }: UserProfileModalProps): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const Admin: ({ tenant, onInviteClick, }: {
2
+ tenant: string;
3
+ onInviteClick: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export default function AdvancedTab({ platformKey, username, currentSPA, }: {
2
+ platformKey: string;
3
+ username: string;
4
+ currentSPA?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export default function BillingTab({ billingURL, topUpURL, currentPlan, }: {
2
+ billingURL: string;
3
+ topUpURL: string;
4
+ currentPlan?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ interface UserProfileModalProps {
2
+ tenant: string;
3
+ username: string;
4
+ onClose: () => void;
5
+ customization?: {
6
+ showMentorAIDisplayCheckbox?: boolean;
7
+ showLeaderboardDisplayCheckbox?: boolean;
8
+ showUsernameField?: boolean;
9
+ showPlatformName?: boolean;
10
+ useGravatarPicFallback?: boolean;
11
+ };
12
+ isAdmin?: boolean;
13
+ targetTab?: string;
14
+ }
15
+ export declare function Profile({ tenant, username, onClose, customization, isAdmin, targetTab, }: UserProfileModalProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ apiKey: string;
5
+ };
6
+ export declare function ApiKeyModal({ isOpen, onClose, apiKey }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const providerFields: Record<string, string[]>;
2
+ export declare const providerRealNames: Record<string, string>;
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ tenantKey: string;
5
+ username: string;
6
+ };
7
+ export declare function CreateApiModal({ isOpen, onClose, tenantKey, username }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ type Props = {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ apiKey: ApiKey;
5
+ tenantKey: string;
6
+ };
7
+ export type ApiKey = {
8
+ name: string;
9
+ };
10
+ export declare function DeleteApiModal({ isOpen, onClose, apiKey, tenantKey }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export default function IntegrationAutogeneratedTab({ tenantKey, }: {
2
+ tenantKey: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ tenantKey: string;
5
+ onSuccess?: () => void;
6
+ };
7
+ export declare function CreateDataSourceModal({ isOpen, onClose, tenantKey, onSuccess }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ export default function IntegrationDataSourcesTab({ tenantKey, }: {
2
+ tenantKey: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function IntegrationsTab({ tenantKey, username, }: {
2
+ tenantKey: string;
3
+ username: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ tenantKey: string;
5
+ onSuccess?: () => void;
6
+ };
7
+ export declare function CreateLLMModal({ isOpen, onClose, tenantKey, onSuccess }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ export default function IntegrationLLMsTab({ tenantKey, }: {
2
+ tenantKey: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function InviteUserDialog({ tenant, onClose, isOpen, }: {
2
+ tenant: string;
3
+ onClose: () => void;
4
+ isOpen: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function InvitedUsersDialog({ tenant, onClose, }: {
2
+ tenant: string;
3
+ onClose: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function OrganizationTab({ platformKey, setOrganizationLogoFromOutside, }: {
2
+ platformKey: string;
3
+ setOrganizationLogoFromOutside: (logo: string) => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const Security: ({ email }: {
2
+ email?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { ReactFormExtendedApi } from "@tanstack/react-form";
2
+ import { z } from "zod";
3
+ import { UserProfile } from "@iblai/data-layer";
4
+ export interface ProfileBasicFormValues {
5
+ fullName: string;
6
+ email: string;
7
+ username: string;
8
+ title: string;
9
+ about: string;
10
+ language: string;
11
+ displayMentor: boolean;
12
+ displayLeaderBoard: boolean;
13
+ }
14
+ export interface ProfileSocialFormValues {
15
+ facebook: string;
16
+ linkedIn: string;
17
+ x: string;
18
+ }
19
+ export declare const useProfile: (username: string) => {
20
+ basicForm: ReactFormExtendedApi<ProfileBasicFormValues, any, any, any, any, any, any, any, any, any>;
21
+ socialForm: ReactFormExtendedApi<ProfileSocialFormValues, any, any, any, any, any, any, any, any, any>;
22
+ userMetadata: UserProfile | undefined;
23
+ isUserMetadataLoading: boolean;
24
+ handleProfileImageUpload: (file: File) => void;
25
+ isUploadingProfileImage: boolean;
26
+ userMetadataEdx: Partial<UserProfile> | undefined;
27
+ isUserMetadataEdxLoading: boolean;
28
+ FACEBOOK_URL_PREFIX: string;
29
+ X_URL_PREFIX: string;
30
+ LINKEDIN_URL_PREFIX: string;
31
+ handleSocialLinkChange: (value: string, callback: (value: string) => void, prefix: string) => void;
32
+ socialFormSchema: z.ZodSchema<ProfileSocialFormValues>;
33
+ socialValidators: {
34
+ facebook: ({ value }: {
35
+ value: string;
36
+ }) => string | undefined;
37
+ linkedIn: ({ value }: {
38
+ value: string;
39
+ }) => string | undefined;
40
+ x: ({ value }: {
41
+ value: string;
42
+ }) => string | undefined;
43
+ };
44
+ };
@@ -0,0 +1,6 @@
1
+ type SpinnerProps = {
2
+ size?: "sm" | "md" | "lg";
3
+ className?: string;
4
+ };
5
+ export declare function Spinner({ size, className }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Tenant } from "./types";
2
+ interface TenantSwitcherProps {
3
+ currentTenantKey: string | null;
4
+ tenants: Tenant[];
5
+ onTenantChange: (tenantKey: string) => void;
6
+ setHideTenantSwitcher?: (hide: boolean) => void;
7
+ setOpenAccount?: (tab: "basic" | "organization") => void;
8
+ setLoadingTenantInfo: (loading: boolean) => void;
9
+ }
10
+ export declare function TenantSwitcher({ currentTenantKey, tenants, onTenantChange, setHideTenantSwitcher, setOpenAccount, setLoadingTenantInfo }: TenantSwitcherProps): import("react/jsx-runtime").JSX.Element | null;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface Tenant {
2
+ key: string;
3
+ is_admin: boolean;
4
+ org: string;
5
+ name?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { TopBannerProps } from "./types";
2
+ export declare function TopBanner({ parentContainerSelector, bannerText, loading, tooltipText, buttonLabel, buttonHandler, onLoad, onClose, }: TopBannerProps): import("react/jsx-runtime").JSX.Element | null;
3
+ export default TopBanner;
@@ -0,0 +1,10 @@
1
+ export interface TopBannerProps {
2
+ parentContainerSelector: string;
3
+ bannerText?: string;
4
+ loading?: boolean;
5
+ tooltipText?: string;
6
+ buttonHandler?: () => void;
7
+ buttonLabel?: string;
8
+ onLoad?: (bannerRef: HTMLDivElement) => void;
9
+ onClose?: () => void;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { TopBannerProps } from "./types";
2
+ export declare const useTopBanner: ({ parentContainerSelector, loading, onLoad, onClose, }: TopBannerProps) => {
3
+ visible: boolean;
4
+ setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
+ showTooltip: boolean;
6
+ setShowTooltip: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
+ bannerRef: import("react").RefObject<HTMLDivElement | null>;
8
+ parentElRef: import("react").RefObject<HTMLElement | null>;
9
+ isLoading: boolean | undefined;
10
+ setLoading: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
11
+ };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
4
+ onClick?: () => void;
5
+ } & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & {
7
+ onClick?: () => void;
8
+ } & React.RefAttributes<HTMLImageElement>>;
9
+ declare const AvatarImageBordered: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & {
10
+ onClick?: () => void;
11
+ } & React.RefAttributes<HTMLImageElement>>;
12
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
13
+ export { Avatar, AvatarImage, AvatarImageBordered, AvatarFallback };
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
+ export { Badge, badgeVariants };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { DayButton, DayPicker } from 'react-day-picker';
3
+ import { Button } from '@web-containers/components/ui/button';
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
8
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
+ inset?: boolean;
10
+ variant?: "default" | "destructive";
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
+ inset?: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
25
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
+ export { Input };