@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.
- package/dist/components/hooks/use-toast.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/loader.d.ts +1 -0
- package/dist/components/modals/user-profile-modal.d.ts +14 -0
- package/dist/components/profile/index.d.ts +5 -1
- package/dist/components/profile/security.d.ts +1 -1
- package/dist/components/profile/use-profile.d.ts +1 -1
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/version.d.ts +6 -0
- package/dist/data-layer/src/config.d.ts +7 -0
- package/dist/data-layer/src/constants.d.ts +30 -0
- package/dist/data-layer/src/core/index.d.ts +4 -0
- package/dist/data-layer/src/features/analytics/api-slice.d.ts +1600 -0
- package/dist/data-layer/src/features/analytics/constants.d.ts +66 -0
- package/dist/data-layer/src/features/analytics/types.d.ts +100 -0
- package/dist/data-layer/src/features/api-keys/api-slice.d.ts +665 -0
- package/dist/data-layer/src/features/apps/api-slice.d.ts +683 -0
- package/dist/data-layer/src/features/auth/api-slice.d.ts +137 -0
- package/dist/data-layer/src/features/auth/constants.d.ts +8 -0
- package/dist/data-layer/src/features/auth/types.d.ts +13 -0
- package/dist/data-layer/src/features/billing/api-slice.d.ts +349 -0
- package/dist/data-layer/src/features/career/api-slice.d.ts +687 -0
- package/dist/data-layer/src/features/catalog/api-slice.d.ts +6602 -0
- package/dist/data-layer/src/features/chat/api-slice.d.ts +1832 -0
- package/dist/data-layer/src/features/chat-history/api-slice.d.ts +1386 -0
- package/dist/data-layer/src/features/constants.d.ts +3 -0
- package/dist/data-layer/src/features/core/api-slice.d.ts +653 -0
- package/dist/data-layer/src/features/core/constants.d.ts +4 -0
- package/dist/data-layer/src/features/credentials/api-slice.d.ts +2129 -0
- package/dist/data-layer/src/features/credentials/constants.d.ts +28 -0
- package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +1284 -0
- package/dist/data-layer/src/features/credentials/types.d.ts +16 -0
- package/dist/data-layer/src/features/datasets/api-slice.d.ts +576 -0
- package/dist/data-layer/src/features/llms/api-slice.d.ts +333 -0
- package/dist/data-layer/src/features/mentor/api-slice.d.ts +4298 -0
- package/dist/data-layer/src/features/mentor/constants.d.ts +31 -0
- package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +268 -0
- package/dist/data-layer/src/features/mentor/types.d.ts +38 -0
- package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +311 -0
- package/dist/data-layer/src/features/notifications/api-slice.d.ts +946 -0
- package/dist/data-layer/src/features/per-learner/api-slice.d.ts +1213 -0
- package/dist/data-layer/src/features/platform/api-slice.d.ts +1124 -0
- package/dist/data-layer/src/features/prompts/api-slice.d.ts +2276 -0
- package/dist/data-layer/src/features/search/api-slice.d.ts +1939 -0
- package/dist/data-layer/src/features/sessions/api-slice.d.ts +705 -0
- package/dist/data-layer/src/features/skills/api-slice.d.ts +1235 -0
- package/dist/data-layer/src/features/stripe/api-slice.d.ts +620 -0
- package/dist/data-layer/src/features/stripe/constants.d.ts +15 -0
- package/dist/data-layer/src/features/stripe/types.d.ts +9 -0
- package/dist/data-layer/src/features/tenant/api-slice.d.ts +759 -0
- package/dist/data-layer/src/features/tenant/constants.d.ts +11 -0
- package/dist/data-layer/src/features/tenant/types.d.ts +18 -0
- package/dist/data-layer/src/features/tenant-logo/api-slice.d.ts +349 -0
- package/dist/data-layer/src/features/tenant-logo/constants.d.ts +24 -0
- package/dist/data-layer/src/features/tools/api-slice.d.ts +333 -0
- package/dist/data-layer/src/features/training-documents/api-slice.d.ts +922 -0
- package/dist/data-layer/src/features/user/api-slice.d.ts +1703 -0
- package/dist/data-layer/src/features/user/constants.d.ts +40 -0
- package/dist/data-layer/src/features/user/types.d.ts +107 -0
- package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +718 -0
- package/dist/data-layer/src/features/utils.d.ts +66 -0
- package/dist/data-layer/src/index.d.ts +47 -0
- package/dist/data-layer/src/reducers/index.d.ts +2 -0
- package/dist/data-layer/src/reducers/mentor.d.ts +2 -0
- package/dist/data-layer/src/reducers/skills.d.ts +1148 -0
- package/dist/data-layer/src/services/StorageService.d.ts +5 -0
- package/dist/data-layer/src/utils/index.d.ts +2 -0
- package/dist/index.esm.js +23491 -2086
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +23569 -2157
- package/dist/index.js.map +1 -1
- package/dist/package.json +98 -0
- package/dist/web-containers/src/components/advance-pagination.d.ts +8 -0
- package/dist/web-containers/src/components/error/client-error-page.d.ts +10 -0
- package/dist/web-containers/src/components/error/error-page.d.ts +18 -0
- package/dist/web-containers/src/components/hooks/use-copy-to-clipboard.d.ts +8 -0
- package/dist/web-containers/src/components/hooks/use-toast.d.ts +44 -0
- package/dist/web-containers/src/components/index.d.ts +13 -0
- package/dist/web-containers/src/components/loader.d.ts +1 -0
- package/dist/web-containers/src/components/modals/user-profile-modal.d.ts +23 -0
- package/dist/web-containers/src/components/notifications/index.d.ts +1 -0
- package/dist/web-containers/src/components/notifications/notification-dropdown.d.ts +6 -0
- package/dist/web-containers/src/components/profile/account.d.ts +19 -0
- package/dist/web-containers/src/components/profile/admin.d.ts +4 -0
- package/dist/web-containers/src/components/profile/advanced.d.ts +5 -0
- package/dist/web-containers/src/components/profile/billing.d.ts +5 -0
- package/dist/web-containers/src/components/profile/index.d.ts +16 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/api-key-modal.d.ts +7 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/constants.d.ts +2 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/create-api-modal.d.ts +8 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/delete-api-modal.d.ts +11 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/integration-autogenerated-table.d.ts +3 -0
- package/dist/web-containers/src/components/profile/integration/data-sources-tab/create-data-source-modal.d.ts +8 -0
- package/dist/web-containers/src/components/profile/integration/data-sources-tab/integration-data-sources-tab.d.ts +3 -0
- package/dist/web-containers/src/components/profile/integration/index.d.ts +4 -0
- package/dist/web-containers/src/components/profile/integration/llms-tab/create-llm-modal.d.ts +8 -0
- package/dist/web-containers/src/components/profile/integration/llms-tab/integration-llms-tab.d.ts +3 -0
- package/dist/web-containers/src/components/profile/invite-user.d.ts +5 -0
- package/dist/web-containers/src/components/profile/invited-users.d.ts +4 -0
- package/dist/web-containers/src/components/profile/organization.d.ts +4 -0
- package/dist/web-containers/src/components/profile/security.d.ts +3 -0
- package/dist/web-containers/src/components/profile/use-profile.d.ts +44 -0
- package/dist/web-containers/src/components/spinner/index.d.ts +6 -0
- package/dist/web-containers/src/components/tenant-switch/index.d.ts +11 -0
- package/dist/web-containers/src/components/tenant-switch/types.d.ts +6 -0
- package/dist/web-containers/src/components/top-banner/index.d.ts +3 -0
- package/dist/web-containers/src/components/top-banner/types.d.ts +10 -0
- package/dist/web-containers/src/components/top-banner/use-top-banner.d.ts +11 -0
- package/dist/web-containers/src/components/ui/avatar.d.ts +13 -0
- package/dist/web-containers/src/components/ui/badge.d.ts +9 -0
- package/dist/web-containers/src/components/ui/button.d.ts +11 -0
- package/dist/web-containers/src/components/ui/calendar.d.ts +8 -0
- package/dist/web-containers/src/components/ui/card.d.ts +8 -0
- package/dist/web-containers/src/components/ui/checkbox.d.ts +4 -0
- package/dist/web-containers/src/components/ui/dialog.d.ts +19 -0
- package/dist/web-containers/src/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/web-containers/src/components/ui/input.d.ts +3 -0
- package/dist/web-containers/src/components/ui/label.d.ts +5 -0
- package/dist/web-containers/src/components/ui/pagination.d.ts +28 -0
- package/dist/web-containers/src/components/ui/popover.d.ts +6 -0
- package/dist/web-containers/src/components/ui/select.d.ts +13 -0
- package/dist/web-containers/src/components/ui/separator.d.ts +4 -0
- package/dist/web-containers/src/components/ui/skeleton.d.ts +2 -0
- package/dist/web-containers/src/components/ui/sonner.d.ts +4 -0
- package/dist/web-containers/src/components/ui/switch.d.ts +4 -0
- package/dist/web-containers/src/components/ui/table.d.ts +10 -0
- package/dist/web-containers/src/components/ui/tabs.d.ts +7 -0
- package/dist/web-containers/src/components/ui/textarea.d.ts +3 -0
- package/dist/web-containers/src/components/ui/toast.d.ts +15 -0
- package/dist/web-containers/src/components/ui/toaster.d.ts +15 -0
- package/dist/web-containers/src/components/ui/tooltip.d.ts +7 -0
- package/dist/web-containers/src/components/ui/use-toast.d.ts +15 -0
- package/dist/web-containers/src/components/user-profile-dropdown/index.d.ts +52 -0
- package/dist/web-containers/src/components/version.d.ts +6 -0
- package/dist/web-containers/src/hooks/index.d.ts +1 -0
- package/dist/web-containers/src/hooks/use-iframe-message-handler.d.ts +8 -0
- package/dist/web-containers/src/index.d.ts +2 -0
- package/dist/web-containers/src/lib/error-utils.d.ts +15 -0
- package/dist/web-containers/src/lib/utils.d.ts +2 -0
- package/dist/web-containers/src/utils.d.ts +1 -0
- package/dist/web-utils/src/features/chat/slice.d.ts +91 -0
- package/dist/web-utils/src/features/index.d.ts +1 -0
- package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +48 -0
- package/dist/web-utils/src/hooks/chat/use-chat-v2.d.ts +56 -0
- package/dist/web-utils/src/hooks/chat/use-mentor-tools.d.ts +18 -0
- package/dist/web-utils/src/hooks/index.d.ts +15 -0
- package/dist/web-utils/src/hooks/profile/use-profile-image-upload.d.ts +13 -0
- package/dist/web-utils/src/hooks/profile/use-user-profile-update.d.ts +28 -0
- package/dist/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +70 -0
- package/dist/web-utils/src/hooks/subscription/constants.d.ts +4 -0
- package/dist/web-utils/src/hooks/subscription/use-subscription-handler.d.ts +11 -0
- package/dist/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +77 -0
- package/dist/web-utils/src/hooks/subscription-v2/constants.d.ts +51 -0
- package/dist/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
- package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +16 -0
- package/dist/web-utils/src/hooks/tenant-metadata/config-loader.d.ts +41 -0
- package/dist/web-utils/src/hooks/tenant-metadata/constants.d.ts +9 -0
- package/dist/web-utils/src/hooks/tenant-metadata/types.d.ts +9 -0
- package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +24 -0
- package/dist/web-utils/src/hooks/use-day-js.d.ts +7 -0
- package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +21 -0
- package/dist/web-utils/src/index.d.ts +5 -0
- package/dist/web-utils/src/providers/auth-provider.d.ts +64 -0
- package/dist/web-utils/src/providers/index.d.ts +3 -0
- package/dist/web-utils/src/providers/mentor-provider.d.ts +40 -0
- package/dist/web-utils/src/providers/tenant-provider.d.ts +63 -0
- package/dist/web-utils/src/types/chat.d.ts +1 -0
- package/dist/web-utils/src/types/index.d.ts +55 -0
- package/dist/web-utils/src/types/subscription.d.ts +18 -0
- package/dist/web-utils/src/utils/constants.d.ts +37 -0
- package/dist/web-utils/src/utils/data/advanced-tab.d.ts +62 -0
- package/dist/web-utils/src/utils/helpers.d.ts +6 -0
- package/dist/web-utils/src/utils/index.d.ts +3 -0
- package/package.json +38 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { ToastActionElement, ToastProps } from "
|
|
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;
|
|
@@ -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 {};
|
|
@@ -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 "
|
|
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,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
|
+
}
|