@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
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import type { ToastActionElement, ToastProps } from "@/components/ui/toast";
2
+ import type { ToastActionElement, ToastProps } from "@web-containers/components/ui/toast";
3
3
  type ToasterToast = ToastProps & {
4
4
  id: string;
5
5
  title?: React.ReactNode;
@@ -3,3 +3,5 @@ export * from "./profile/invite-user";
3
3
  export * from "./profile/invited-users";
4
4
  export * from "./top-banner";
5
5
  export * from "./top-banner/types";
6
+ export * from "./modals/user-profile-modal";
7
+ export * from "./loader";
@@ -0,0 +1 @@
1
+ export declare function Loader(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ interface UserProfileModalProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ params: {
5
+ tenantKey: string;
6
+ mentorId?: string;
7
+ };
8
+ billingEnabled?: boolean;
9
+ billingURL?: string;
10
+ topUpEnabled?: boolean;
11
+ topUpURL?: string;
12
+ }
13
+ export declare function UserProfileModal({ isOpen, onClose, params, billingEnabled, billingURL, topUpEnabled, topUpURL, }: UserProfileModalProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -2,6 +2,10 @@ interface UserProfileModalProps {
2
2
  tenant: string;
3
3
  username: string;
4
4
  onInviteClick: () => void;
5
+ billingEnabled?: boolean;
6
+ billingURL?: string;
7
+ topUpEnabled?: boolean;
8
+ topUpURL?: string;
5
9
  }
6
- export declare function Profile({ tenant, username, onInviteClick, }: UserProfileModalProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function Profile({ tenant, username, onInviteClick, billingEnabled, billingURL, topUpEnabled, topUpURL, }: UserProfileModalProps): import("react/jsx-runtime").JSX.Element;
7
11
  export {};
@@ -1,3 +1,3 @@
1
1
  export declare const Security: ({ email }: {
2
- email: string;
2
+ email?: string;
3
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -18,6 +18,6 @@ export interface ProfileSocialFormValues {
18
18
  export declare const useProfile: (username: string) => {
19
19
  basicForm: ReactFormExtendedApi<ProfileBasicFormValues, any, any, any, any, any, any, any, any, any>;
20
20
  socialForm: ReactFormExtendedApi<ProfileSocialFormValues, any, any, any, any, any, any, any, any, any>;
21
- userMetadata: UserProfile;
21
+ userMetadata: UserProfile | undefined;
22
22
  isUserMetadataLoading: boolean;
23
23
  };
@@ -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, };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { ButtonProps } from "@/components/ui/button";
2
+ import { ButtonProps } from "@web-containers/components/ui/button";
3
3
  declare const Pagination: {
4
4
  ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Separator };
@@ -0,0 +1,4 @@
1
+ import { Toaster as Sonner } from "sonner";
2
+ type ToasterProps = React.ComponentProps<typeof Sonner>;
3
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
4
+ export { Toaster };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export declare function Version({ appName, appVersion, poweredBy, }: {
3
+ appName: string;
4
+ appVersion: string;
5
+ poweredBy: React.ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export default class Config {
2
+ static lmsUrl: string;
3
+ static dmUrl: string;
4
+ static axdUrl: string;
5
+ static mentorIframeUrl: string;
6
+ static httpErrorHandlers: {};
7
+ }
@@ -0,0 +1,30 @@
1
+ export declare const STORAGE_KEYS: {
2
+ CURRENT_TENANT: string;
3
+ TENANT: string;
4
+ TENANTS: string;
5
+ REDIRECT_TO: string;
6
+ TOKEN_EXPIRY: string;
7
+ EDX_TOKEN_KEY: string;
8
+ DM_TOKEN_KEY: string;
9
+ AXD_TOKEN_KEY: string;
10
+ USER_DATA: string;
11
+ };
12
+ export declare const URL_PATTERNS: {
13
+ PLATFORM_KEY: RegExp;
14
+ };
15
+ export declare const APP_IDENTIFIERS: {
16
+ APP_NAME: string;
17
+ };
18
+ export declare const QUERY_PARAMS: {
19
+ APP: string;
20
+ REDIRECT_TO: string;
21
+ TENANT: string;
22
+ };
23
+ export declare const TENANT_IDENTIFIERS: {
24
+ MAIN: string;
25
+ };
26
+ export declare enum SERVICES {
27
+ LMS = "LMS",
28
+ DM = "DM",
29
+ AXD = "AXD"
30
+ }
@@ -0,0 +1,4 @@
1
+ import { StorageService } from "../services/StorageService";
2
+ export declare class IblDataLayer {
3
+ static storage: StorageService;
4
+ }