@igamingcareer/igaming-components 1.1.22 → 1.1.23
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/types/src/components/CareerAssistant/CareerAssistant.d.ts +2 -2
- package/dist/types/src/components/CareerAssistant/WelcomeScreen.d.ts +1 -1
- package/dist/types/src/components/Companies/CompanyDetail.d.ts +4 -4
- package/dist/types/src/components/Companies/CompanyReviewsTab.d.ts +1 -1
- package/dist/types/src/components/Companies/components/CompanyAdminShell.d.ts +2 -2
- package/dist/types/src/components/Companies/components/CompanyHeader.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CandidateCard.d.ts +1 -1
- package/dist/types/src/components/Companies/components/admin/CompanyAdminCandidates.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminEvents.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminJobs.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminNews.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminOverview.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminPeople.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminProducts.d.ts +2 -2
- package/dist/types/src/components/Companies/components/admin/CompanyAdminSettings.d.ts +2 -2
- package/dist/types/src/components/Companies/components/tabs/CompanyEventsTab.d.ts +1 -1
- package/dist/types/src/components/Companies/components/tabs/CompanyJobsTab.d.ts +1 -1
- package/dist/types/src/components/Companies/components/tabs/CompanyNewsTab.d.ts +1 -1
- package/dist/types/src/components/Companies/components/tabs/CompanyTabsList.d.ts +1 -1
- package/dist/types/src/components/Companies/data/company-group-preview.d.ts +1 -1
- package/dist/types/src/components/Companies/reviews/LeaveReviewModal.d.ts +1 -1
- package/dist/types/src/components/Companies/reviews/ReviewCard.d.ts +1 -1
- package/dist/types/src/components/Companies/reviews/ReviewSummaryBar.d.ts +1 -1
- package/dist/types/src/components/Companies/types/companyAdmin.d.ts +1 -1
- package/dist/types/src/components/CompanyOnboarding/CompanyOnboardingModal.d.ts +2 -2
- package/dist/types/src/components/Complaints/Complaints.d.ts +2 -2
- package/dist/types/src/components/Dashboard/Alerts/AlertCard.d.ts +1 -1
- package/dist/types/src/components/Dashboard/Alerts/AlertForm.d.ts +1 -1
- package/dist/types/src/components/Dashboard/Alerts/AlertInsightsWidget.d.ts +1 -1
- package/dist/types/src/components/Dashboard/Alerts/AlertStatusBadge.d.ts +1 -1
- package/dist/types/src/components/Dashboard/Alerts/DashboardAlerts.d.ts +1 -1
- package/dist/types/src/components/Dashboard/CompanyDashboard.d.ts +2 -2
- package/dist/types/src/components/Dashboard/Dashboard.d.ts +5 -5
- package/dist/types/src/components/Dashboard/DashboardJobCard.d.ts +1 -1
- package/dist/types/src/components/Dashboard/DashboardJobs.d.ts +2 -2
- package/dist/types/src/components/Dashboard/DashboardNews.d.ts +1 -1
- package/dist/types/src/components/Dashboard/DashboardNewsCard.d.ts +1 -1
- package/dist/types/src/components/Dashboard/DashboardOverview.d.ts +3 -3
- package/dist/types/src/components/Dashboard/DashboardProfile.d.ts +1 -1
- package/dist/types/src/components/Dashboard/DashboardSettings.d.ts +1 -1
- package/dist/types/src/components/Dashboard/FreelancerDashboardSection.d.ts +1 -1
- package/dist/types/src/components/Dashboard/FreelancerOnboardingModal.d.ts +1 -1
- package/dist/types/src/components/Events/EventsList.d.ts +1 -1
- package/dist/types/src/components/Events/SubmitEventModal.d.ts +1 -1
- package/dist/types/src/components/Freelancer/FreelancerProfile.d.ts +2 -2
- package/dist/types/src/components/Freelancer/Freelancers.d.ts +3 -3
- package/dist/types/src/components/Freelancer/FreelancersList.d.ts +1 -1
- package/dist/types/src/components/Freelancer/mockFreelancers.d.ts +1 -1
- package/dist/types/src/components/GenericListing/Listing.d.ts +1 -1
- package/dist/types/src/components/GenericListing/Sidebar.d.ts +1 -1
- package/dist/types/src/components/GenericListing/SidebarFilters.d.ts +1 -1
- package/dist/types/src/components/HomePage/SidebarNewsletterV2.d.ts +1 -1
- package/dist/types/src/components/IgamingCoursesPage/FeaturedCourses.d.ts +1 -1
- package/dist/types/src/components/IgamingCoursesPage/IgamingCoursesPage.d.ts +1 -1
- package/dist/types/src/components/JobListing/JobListing.d.ts +1 -1
- package/dist/types/src/components/JobListing/components/JobList.d.ts +1 -1
- package/dist/types/src/components/Jobs/JobsList.d.ts +1 -1
- package/dist/types/src/components/MarketDetail/MarketDetail.d.ts +1 -1
- package/dist/types/src/components/NewsPage/NewsPage.d.ts +1 -1
- package/dist/types/src/components/Onboarding/DashboardOnboardingSection.d.ts +1 -1
- package/dist/types/src/components/Onboarding/OnboardingChecklist.d.ts +1 -1
- package/dist/types/src/components/Onboarding/OnboardingContext.d.ts +1 -1
- package/dist/types/src/components/Onboarding/OnboardingDashboard.d.ts +1 -1
- package/dist/types/src/components/Onboarding/OnboardingModal.d.ts +1 -1
- package/dist/types/src/components/RegulatorDetail/RegulatorDetail.d.ts +1 -1
- package/dist/types/src/components/Reviews/LeaveReviewStandaloneModal.d.ts +1 -1
- package/dist/types/src/components/Reviews/Reviews.d.ts +2 -2
- package/dist/types/src/components/Shared/Cards/ChannelCard.d.ts +1 -1
- package/dist/types/src/components/Shared/Cards/CompanyTypeCard.d.ts +1 -1
- package/dist/types/src/components/Shared/Cards/DepartmentEntityCard.d.ts +1 -1
- package/dist/types/src/components/Shared/Cards/FreelancerCard.d.ts +2 -2
- package/dist/types/src/components/Shared/Cards/GamblingVerticalCard.d.ts +1 -1
- package/dist/types/src/components/Shared/Cards/JurisdictionCard.d.ts +1 -1
- package/dist/types/src/components/hooks/useOnboarding.d.ts +1 -1
- package/dist/types/src/data/mockCandidates.d.ts +1 -1
- package/dist/types/src/data/mockComplaints.d.ts +1 -1
- package/dist/types/src/data/mockReviews.d.ts +1 -1
- package/dist/types/src/hooks/useCareerAssistant.d.ts +1 -1
- package/dist/types/src/stories/Button.stories.d.ts +1 -1
- package/dist/types/src/stories/CompanyGroupDetail.stories.d.ts +1 -1
- package/dist/types/src/stories/ConsentAnalytics.stories.d.ts +2 -2
- package/dist/types/src/stories/Footer.stories.d.ts +1 -1
- package/dist/types/src/stories/GenericPagination.stories.d.ts +1 -1
- package/dist/types/src/stories/Header.stories.d.ts +1 -1
- package/dist/types/src/stories/ItemsPerPageSelector.stories.d.ts +1 -1
- package/dist/types/src/stories/LoadingCompanyShadowCard.stories.d.ts +1 -1
- package/dist/types/src/stories/LoadingShadowCard.stories.d.ts +1 -1
- package/dist/types/src/stories/Login.stories.d.ts +1 -1
- package/dist/types/src/stories/Notification.stories.d.ts +1 -1
- package/dist/types/src/stories/NotificationTester.stories.d.ts +1 -1
- package/dist/types/src/stories/OnboardingChecklist.stories.d.ts +1 -1
- package/dist/types/src/stories/OnboardingDashboard.stories.d.ts +1 -1
- package/dist/types/src/stories/ShieldedActionButton.stories.d.ts +1 -1
- package/dist/types/src/stories/SignInPromptModal.stories.d.ts +1 -1
- package/dist/types/src/stories/VerificationBanner.stories.d.ts +1 -1
- package/dist/types/src/types/dashboard.d.ts +1 -1
- package/dist/types/src/types/onboarding.d.ts +1 -1
- package/package.json +8 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QuickPromptsType } from "
|
|
2
|
-
import { ChatMessage } from "
|
|
1
|
+
import { QuickPromptsType } from "@/components/CareerAssistant/mockCareerAssistant";
|
|
2
|
+
import { ChatMessage } from "@/types/chat-messages";
|
|
3
3
|
type Props = {
|
|
4
4
|
messages: ChatMessage[];
|
|
5
5
|
isLoading: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ClaimProfilePrefillData, CompanyDetailTab, CompanyDetailTabChangeEvent, Company, CompanyClaimRequestPayload, SimilarCompanyItem } from "./types";
|
|
2
|
-
import type { DashboardJob } from "
|
|
3
|
-
import type { DashboardNewsArticle } from "
|
|
4
|
-
import type { ConferenceEvent } from "
|
|
2
|
+
import type { DashboardJob } from "@/types/job";
|
|
3
|
+
import type { DashboardNewsArticle } from "@/types/news";
|
|
4
|
+
import type { ConferenceEvent } from "@/types/conference";
|
|
5
5
|
import type { CompanyFollowActionPayload, SaveCompanyPayload } from "./types";
|
|
6
|
-
import type { CompanyReview } from "
|
|
6
|
+
import type { CompanyReview } from "@/types/review";
|
|
7
7
|
interface CompanyDetailProps {
|
|
8
8
|
company?: Company | null;
|
|
9
9
|
jobs?: DashboardJob[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import DashboardStats from "../../Dashboard/DashboardStats";
|
|
3
|
-
import { Company } from "
|
|
4
|
-
import type { CompanyAdminPermissions, CompanyAdminUpdateEvent } from "
|
|
3
|
+
import { Company } from "@/components/Companies/types";
|
|
4
|
+
import type { CompanyAdminPermissions, CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
5
5
|
export type AdminTab = "overview" | "products" | "people" | "jobs" | "events" | "news" | "candidates" | "settings";
|
|
6
6
|
export type CompanyAdminRole = "owner" | "admin" | "manager" | "recruiter" | "viewer";
|
|
7
7
|
export type { CompanyAdminPermissions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CompanyClassification, type CompanyFollowActionPayload, CompanyOverview, type SaveCompanyPayload, SignalsInsights } from "
|
|
2
|
-
import { CompanyAdminPermissions, CompanyAdminRole } from "
|
|
1
|
+
import { CompanyClassification, type CompanyFollowActionPayload, CompanyOverview, type SaveCompanyPayload, SignalsInsights } from "@/components/Companies/types";
|
|
2
|
+
import { CompanyAdminPermissions, CompanyAdminRole } from "@/components/Companies/components/CompanyAdminShell";
|
|
3
3
|
type CompanyHeaderProps = {
|
|
4
4
|
companyName: string;
|
|
5
5
|
overview: CompanyOverview;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminCandidatesProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminEventsProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminJobsProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminNewsProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminOverviewProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminPeopleProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminProductsProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Company } from "
|
|
2
|
-
import type { CompanyAdminUpdateEvent } from "
|
|
1
|
+
import type { Company } from "@/components/Companies/types";
|
|
2
|
+
import type { CompanyAdminUpdateEvent } from "@/components/Companies/types/companyAdmin";
|
|
3
3
|
interface CompanyAdminSettingsProps {
|
|
4
4
|
company: Company;
|
|
5
5
|
onUpdate: (event: CompanyAdminUpdateEvent) => void | Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventsSummary } from "../../types";
|
|
2
|
-
import type { ConferenceEvent } from "
|
|
2
|
+
import type { ConferenceEvent } from "@/types/conference";
|
|
3
3
|
interface CompanyEventsTabProps {
|
|
4
4
|
companyEvents: EventsSummary;
|
|
5
5
|
conferenceEvents?: ConferenceEvent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NewsSummary } from "../../types";
|
|
2
|
-
import type { DashboardNewsArticle } from "
|
|
2
|
+
import type { DashboardNewsArticle } from "@/types/news";
|
|
3
3
|
interface CompanyNewsTabProps {
|
|
4
4
|
companyNews: NewsSummary;
|
|
5
5
|
newsArticles?: DashboardNewsArticle[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CompanyOnboardingData, CompanyUserRole } from "
|
|
2
|
-
import { CompanyListItem } from "
|
|
1
|
+
import { CompanyOnboardingData, CompanyUserRole } from "@/types/company-user";
|
|
2
|
+
import { CompanyListItem } from "@/types/onboarding";
|
|
3
3
|
interface CompanyOnboardingModalProps {
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange: (open: boolean) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SubmitComplaintPayload } from "
|
|
2
|
-
import type { Complaint } from "
|
|
1
|
+
import type { SubmitComplaintPayload } from "@/components/Complaints/SubmitComplaintModal";
|
|
2
|
+
import type { Complaint } from "@/types/complaint";
|
|
3
3
|
interface ComplaintsProps {
|
|
4
4
|
complaintsData?: Complaint[];
|
|
5
5
|
onSubmitComplaint?: (payload: SubmitComplaintPayload) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CompanyUserRole } from "
|
|
2
|
-
import type { CompanyDashboardData } from "
|
|
1
|
+
import { CompanyUserRole } from "@/types/company-user";
|
|
2
|
+
import type { CompanyDashboardData } from "@/types/dashboard";
|
|
3
3
|
type CompanyDashboardTab = "overview" | "jobs" | "candidates" | "events" | "courses" | "news" | "settings";
|
|
4
4
|
interface CompanyDashboardProps {
|
|
5
5
|
userRole: CompanyUserRole;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DashboardCertificate, DashboardCourse } from "./DashboardCourses";
|
|
2
|
-
import type { DashboardNewsArticle } from "
|
|
3
|
-
import { CompanyDashboardData, DashboardUpdateEvent, DashboardRole, DashboardTab, DashboardTabChangeEvent, FreelancerUpdatePayload, JobsDashboardData, ProfileData, UserSettings } from "
|
|
4
|
-
import { FreelancerOnboardingData, FreelancerDashboardStats } from "
|
|
5
|
-
import { OnboardingStep } from "
|
|
6
|
-
import { AlertActionPayload, JobAlert } from "
|
|
2
|
+
import type { DashboardNewsArticle } from "@/types/news";
|
|
3
|
+
import { CompanyDashboardData, DashboardUpdateEvent, DashboardRole, DashboardTab, DashboardTabChangeEvent, FreelancerUpdatePayload, JobsDashboardData, ProfileData, UserSettings } from "@/types/dashboard";
|
|
4
|
+
import { FreelancerOnboardingData, FreelancerDashboardStats } from "@/types/freelancer";
|
|
5
|
+
import { OnboardingStep } from "@/types/onboarding";
|
|
6
|
+
import { AlertActionPayload, JobAlert } from "@/types/job-alert";
|
|
7
7
|
interface DashboardProps {
|
|
8
8
|
user: {
|
|
9
9
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DashboardJob } from "
|
|
2
|
-
import { DashboardUpdateEvent } from "
|
|
1
|
+
import { DashboardJob } from "@/types/job";
|
|
2
|
+
import { DashboardUpdateEvent } from "@/types/dashboard";
|
|
3
3
|
interface DashboardJobsProps {
|
|
4
4
|
savedJobs: DashboardJob[];
|
|
5
5
|
applications: DashboardJob[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FreelancerOnboardingData, FreelancerDashboardStats } from "
|
|
2
|
-
import { FreelancerUpdatePayload } from "
|
|
3
|
-
import { OnboardingStep } from "
|
|
1
|
+
import { FreelancerOnboardingData, FreelancerDashboardStats } from "@/types/freelancer";
|
|
2
|
+
import { FreelancerUpdatePayload } from "@/types/dashboard";
|
|
3
|
+
import { OnboardingStep } from "@/types/onboarding";
|
|
4
4
|
interface FeedItem {
|
|
5
5
|
id: string;
|
|
6
6
|
type: "job" | "course" | "news";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FreelancerOnboardingData, FreelancerDashboardStats } from "
|
|
1
|
+
import { FreelancerOnboardingData, FreelancerDashboardStats } from "@/types/freelancer";
|
|
2
2
|
interface FreelancerDashboardSectionProps {
|
|
3
3
|
freelancerData: FreelancerOnboardingData;
|
|
4
4
|
stats: FreelancerDashboardStats;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DirectoryEvent } from "./types";
|
|
2
|
-
import { SubmitEventPayload } from "
|
|
2
|
+
import { SubmitEventPayload } from "@/components/Events/SubmitEventModal";
|
|
3
3
|
interface EventsListProps {
|
|
4
4
|
apiUrl?: string;
|
|
5
5
|
eventsData?: DirectoryEvent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Freelancer, FreelancerFollowActionPayload, SaveFreelancerPayload } from "
|
|
2
|
-
import type { EmittedEventHandler } from "
|
|
1
|
+
import type { Freelancer, FreelancerFollowActionPayload, SaveFreelancerPayload } from "@/types/freelancer";
|
|
2
|
+
import type { EmittedEventHandler } from "@/types/events";
|
|
3
3
|
interface FreelancerProfileProps {
|
|
4
4
|
freelancer?: Freelancer | null;
|
|
5
5
|
loading?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ViewMode } from "
|
|
2
|
-
import type { Freelancer, FreelancerFilterOptions, FreelancerFilters, FreelancerFollowActionPayload, SaveFreelancerPayload } from "
|
|
3
|
-
import type { EmittedEventHandler } from "
|
|
1
|
+
import { ViewMode } from "@/components/Shared/Listing";
|
|
2
|
+
import type { Freelancer, FreelancerFilterOptions, FreelancerFilters, FreelancerFollowActionPayload, SaveFreelancerPayload } from "@/types/freelancer";
|
|
3
|
+
import type { EmittedEventHandler } from "@/types/events";
|
|
4
4
|
interface FreelancerDirectoryProps {
|
|
5
5
|
freelancers: Freelancer[];
|
|
6
6
|
filterOptions: FreelancerFilterOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./styles/itemListing.css";
|
|
3
3
|
import { ListingAccessControl } from "./accessControl";
|
|
4
|
-
import type { EmittedEventHandler, ListingEventContext } from "
|
|
4
|
+
import type { EmittedEventHandler, ListingEventContext } from "@/types/events";
|
|
5
5
|
interface ListingProps {
|
|
6
6
|
apiUrl: string;
|
|
7
7
|
itemsPerPage?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { JobFilters } from "
|
|
2
|
+
import { JobFilters } from "@/components/GenericListing/SidebarFilter";
|
|
3
3
|
interface SidebarProps {
|
|
4
4
|
filters: JobFilters;
|
|
5
5
|
onFilterChange: (filters: JobFilters) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import { JobFilters } from "
|
|
2
|
+
import { JobFilters } from "@/components/GenericListing/SidebarFilter";
|
|
3
3
|
export type JobType = "full-time" | "part-time" | "contract";
|
|
4
4
|
export type ExperienceLevel = "entry" | "mid" | "senior";
|
|
5
5
|
interface SidebarFiltersProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NewsletterEvent, NewsletterSubscribePayload } from "
|
|
1
|
+
import type { NewsletterEvent, NewsletterSubscribePayload } from "@/types/events.newsletter";
|
|
2
2
|
export interface SidebarNewsletterV2Props {
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { Course } from "./types/course";
|
|
3
|
-
import { ListingAccessControl } from "
|
|
3
|
+
import { ListingAccessControl } from "@/components/GenericListing/accessControl";
|
|
4
4
|
interface FeaturedCoursesProps {
|
|
5
5
|
courses: Course[];
|
|
6
6
|
favorites: Set<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ListingAccessControl } from "../GenericListing/accessControl";
|
|
2
|
-
import type { EmittedEventHandler, ListingEventContext } from "
|
|
2
|
+
import type { EmittedEventHandler, ListingEventContext } from "@/types/events";
|
|
3
3
|
interface IGamingCoursePageProps {
|
|
4
4
|
apiUrl?: string;
|
|
5
5
|
enableMobileFilter?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import { ResolvedListingAccessControl } from "
|
|
2
|
+
import { ResolvedListingAccessControl } from "@/components/GenericListing/accessControl";
|
|
3
3
|
interface JobListProps {
|
|
4
4
|
jobs: Job[];
|
|
5
5
|
onSaveJob: (job: Job, positionInList?: number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ListingAccessControl } from "../GenericListing/accessControl";
|
|
2
|
-
import type { EmittedEventHandler, ListingEventContext } from "
|
|
2
|
+
import type { EmittedEventHandler, ListingEventContext } from "@/types/events";
|
|
3
3
|
import { type JobsListFilterDisplayConfig } from "./jobsListFilters";
|
|
4
4
|
interface ListingBannerConfig {
|
|
5
5
|
enabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { NewsFilters as NewsFiltersType, NewsSortOption } from "./types/news";
|
|
3
3
|
import { ListingAccessControl } from "../GenericListing/accessControl";
|
|
4
|
-
import type { EmittedEventHandler, ListingEventContext } from "
|
|
4
|
+
import type { EmittedEventHandler, ListingEventContext } from "@/types/events";
|
|
5
5
|
interface NewsPageProps {
|
|
6
6
|
apiUrl?: string;
|
|
7
7
|
defaultFilters?: NewsFiltersType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import { UseOnboardingReturn } from "
|
|
2
|
+
import { UseOnboardingReturn } from "@/components/hooks/useOnboarding";
|
|
3
3
|
export declare function OnboardingProvider({ children }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LeaveReviewStandalonePayload } from "
|
|
2
|
-
import { CompanyReview } from "
|
|
1
|
+
import type { LeaveReviewStandalonePayload } from "@/components/Reviews/LeaveReviewStandaloneModal";
|
|
2
|
+
import { CompanyReview } from "@/types/review";
|
|
3
3
|
interface ReviewsProps {
|
|
4
4
|
reviewsData?: CompanyReview[];
|
|
5
5
|
onLeaveReview?: (payload: LeaveReviewStandalonePayload) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DepartmentEntity } from "
|
|
2
|
+
import { DepartmentEntity } from "@/components/Shared/types/shared-types";
|
|
3
3
|
interface DepartmentEntityCardProps {
|
|
4
4
|
item: DepartmentEntity;
|
|
5
5
|
viewMode?: "grid" | "list";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Freelancer, FreelancerFollowActionPayload, SaveFreelancerPayload } from "
|
|
3
|
-
import type { EmittedEventHandler } from "
|
|
2
|
+
import { Freelancer, FreelancerFollowActionPayload, SaveFreelancerPayload } from "@/types/freelancer";
|
|
3
|
+
import type { EmittedEventHandler } from "@/types/events";
|
|
4
4
|
interface FreelancerCardProps {
|
|
5
5
|
freelancer: Freelancer;
|
|
6
6
|
viewMode: "grid" | "list";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { GamblingVertical } from "
|
|
2
|
+
import { GamblingVertical } from "@/components/Shared/types/shared-types";
|
|
3
3
|
interface GamblingVerticalCardProps {
|
|
4
4
|
item: GamblingVertical;
|
|
5
5
|
viewMode?: "grid" | "list";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { Jurisdiction } from "
|
|
2
|
+
import type { Jurisdiction } from "@/components/Regulators/types";
|
|
3
3
|
interface JurisdictionCardProps extends Jurisdiction {
|
|
4
4
|
viewMode?: "grid" | "list";
|
|
5
5
|
onNavigate?: (slug: string) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Candidate } from "
|
|
1
|
+
import type { Candidate } from "@/types/candidate";
|
|
2
2
|
export declare const generateMockCandidates: (count?: number) => Candidate[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Complaint } from "
|
|
1
|
+
import type { Complaint } from "@/types/complaint";
|
|
2
2
|
export declare const mockComplaints: Complaint[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompanyReview, ReviewSummary } from "
|
|
1
|
+
import type { CompanyReview, ReviewSummary } from "@/types/review";
|
|
2
2
|
export declare const mockReviews: CompanyReview[];
|
|
3
3
|
export declare const getReviewsForCompany: (companySlug: string) => CompanyReview[];
|
|
4
4
|
export declare const getReviewSummary: (companySlug: string) => ReviewSummary;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import CompanyGroupDetail from "
|
|
2
|
+
import CompanyGroupDetail from "@/components/Companies/CompanyGroupDetail";
|
|
3
3
|
declare const meta: Meta<typeof CompanyGroupDetail>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof CompanyGroupDetail>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import ConsentBanner from '
|
|
3
|
-
import Analytics from '
|
|
2
|
+
import ConsentBanner from '@/components/Consent/ConsentBanner';
|
|
3
|
+
import Analytics from '@/components/Consent/Analytics';
|
|
4
4
|
declare const meta: Meta<typeof ConsentBanner>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type ConsentBannerStory = StoryObj<typeof ConsentBanner>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import GenericPagination from "
|
|
2
|
+
import GenericPagination from "@/components/Shared/GenericPagination";
|
|
3
3
|
declare const meta: Meta<typeof GenericPagination>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof GenericPagination>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import ItemsPerPageSelector from "
|
|
2
|
+
import ItemsPerPageSelector from "@/components/Shared/ItemsPerPageSelector";
|
|
3
3
|
declare const meta: Meta<typeof ItemsPerPageSelector>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof ItemsPerPageSelector>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import LoadingCompanyShadowCard from "
|
|
2
|
+
import LoadingCompanyShadowCard from "@/components/Companies/components/LoadingCompanyShadowCard";
|
|
3
3
|
declare const meta: Meta<typeof LoadingCompanyShadowCard>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof LoadingCompanyShadowCard>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import LoadingShadowCard from "
|
|
2
|
+
import LoadingShadowCard from "@/components/Shared/LoadingShadowCard";
|
|
3
3
|
declare const meta: Meta<typeof LoadingShadowCard>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof LoadingShadowCard>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { NotificationProvider } from "
|
|
2
|
+
import { NotificationProvider } from "@/components/Notification/NotificationProvider";
|
|
3
3
|
declare const meta: Meta<typeof NotificationProvider>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof NotificationProvider>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { NotificationTester } from "
|
|
2
|
+
import { NotificationTester } from "@/components/Notification/NotificationTester";
|
|
3
3
|
declare const meta: Meta<typeof NotificationTester>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof NotificationTester>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import OnboardingChecklist from "
|
|
2
|
+
import OnboardingChecklist from "@/components/Dashboard/OnboardingChecklist";
|
|
3
3
|
declare const meta: Meta<typeof OnboardingChecklist>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof OnboardingChecklist>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import OnboardingDashboard from "
|
|
2
|
+
import OnboardingDashboard from "@/components/Dashboard/OnboardingDashboard";
|
|
3
3
|
declare const meta: Meta<typeof OnboardingDashboard>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof OnboardingDashboard>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import ShieldedActionButton from "
|
|
2
|
+
import ShieldedActionButton from "@/components/Shared/ShieldedActionButton";
|
|
3
3
|
declare const meta: Meta<typeof ShieldedActionButton>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof ShieldedActionButton>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import SignInPromptModal from "
|
|
2
|
+
import SignInPromptModal from "@/components/Auth/SignInPromptModal";
|
|
3
3
|
declare const meta: Meta<typeof SignInPromptModal>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof SignInPromptModal>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import VerificationBanner from "
|
|
2
|
+
import VerificationBanner from "@/components/Auth/VerificationBanner";
|
|
3
3
|
declare const meta: Meta<typeof VerificationBanner>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof VerificationBanner>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DashboardJob } from "./job";
|
|
2
|
-
import { FreelancerOnboardingData } from "
|
|
2
|
+
import { FreelancerOnboardingData } from "@/types/freelancer";
|
|
3
3
|
import { CompanyUserRole } from "./company-user";
|
|
4
4
|
export type CoursesUpdatePayload = {
|
|
5
5
|
action: "enroll";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Company } from "
|
|
1
|
+
import { Company } from "@/components/Companies/types";
|
|
2
2
|
export type OnboardingStepId = "email_verification" | "profile_required_fields" | string;
|
|
3
3
|
export type OnboardingStepStatus = "complete" | "pending" | "blocked";
|
|
4
4
|
export type CompanyListItem = Pick<Company, "id" | "name" | "slug">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igamingcareer/igaming-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
4
4
|
"description": "Reusable React component library for the iGamingCareer platform",
|
|
5
5
|
"author": "iGamingCareer <info@igamingcareer.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "vite",
|
|
33
33
|
"build": "vite build",
|
|
34
|
-
"build:lib": "tsc &&
|
|
34
|
+
"build:lib": "tsc && BUILD_LIB=true vite build",
|
|
35
35
|
"preview": "vite preview",
|
|
36
36
|
"test": "jest",
|
|
37
37
|
"storybook": "storybook dev -p 6006",
|
|
38
38
|
"build-storybook": "storybook build"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"cmdk": "^1.0.0",
|
|
42
41
|
"react": "^18.0.0",
|
|
43
|
-
"react-dom": "^18.0.0"
|
|
42
|
+
"react-dom": "^18.0.0",
|
|
43
|
+
"cmdk": "^1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@emotion/react": "^11.13.0",
|
|
@@ -66,17 +66,16 @@
|
|
|
66
66
|
"@radix-ui/react-switch": "^1.2.6",
|
|
67
67
|
"@radix-ui/react-tabs": "^1.1.1",
|
|
68
68
|
"@radix-ui/react-toast": "^1.2.1",
|
|
69
|
-
"@supabase/supabase-js": "^2.100.0",
|
|
70
69
|
"class-variance-authority": "^0.7.0",
|
|
71
70
|
"clsx": "^2.1.1",
|
|
72
|
-
"cmdk": "^1.
|
|
71
|
+
"cmdk": "^1.1.1",
|
|
73
72
|
"date-fns": "^3.6.0",
|
|
74
73
|
"geist": "^1.3.1",
|
|
75
74
|
"gsap": "^3.12.5",
|
|
75
|
+
"sonner": "^1.5.0",
|
|
76
76
|
"lucide-react": "^0.451.0",
|
|
77
77
|
"react-hook-form": "^7.53.0",
|
|
78
78
|
"react-markdown": "^10.1.0",
|
|
79
|
-
"sonner": "^1.5.0",
|
|
80
79
|
"tailwind-merge": "^2.5.3",
|
|
81
80
|
"tailwindcss-animate": "^1.0.7",
|
|
82
81
|
"vaul": "^0.9.3",
|
|
@@ -101,7 +100,6 @@
|
|
|
101
100
|
"@vitejs/plugin-react": "^4.3.1",
|
|
102
101
|
"autoprefixer": "^10.4.20",
|
|
103
102
|
"babel-jest": "^29.7.0",
|
|
104
|
-
"cmdk": "^1.1.1",
|
|
105
103
|
"jest": "^29.7.0",
|
|
106
104
|
"jest-environment-jsdom": "^29.7.0",
|
|
107
105
|
"postcss": "^8.5.4",
|
|
@@ -115,6 +113,7 @@
|
|
|
115
113
|
"tsc-alias": "^1.8.16",
|
|
116
114
|
"typescript": "^5.6.3",
|
|
117
115
|
"vite": "^5.4.1",
|
|
118
|
-
"vite-tsconfig-paths": "^5.1.2"
|
|
116
|
+
"vite-tsconfig-paths": "^5.1.2",
|
|
117
|
+
"cmdk": "^1.1.1"
|
|
119
118
|
}
|
|
120
119
|
}
|