fix: exclude atoms web wrappers from build (#15216)

* fix: exclude atoms web wrappers from build

* refactor: tsconfig web wrapper regex

* refactor: wrappers follow schema Component(Web|Platform)Wrapper.tsx

* fix: tsconfig regex for web wrapper
This commit is contained in:
Lauris Skraucis
2024-05-28 10:09:03 +00:00
committed by GitHub
parent 17c4a10e33
commit 655127d155
6 changed files with 8 additions and 8 deletions
@@ -1,4 +1,4 @@
export { PlatformAvailabilitySettingsWrapper } from "./wrappers/PlatformAvailabilitySettingsWrapper";
export { AvailabilitySettingsPlatformWrapper } from "./wrappers/AvailabilitySettingsPlatformWrapper";
export { AvailabilitySettings } from "./AvailabilitySettings";
export * from "../types";
@@ -13,7 +13,7 @@ import type { CustomClassNames } from "../AvailabilitySettings";
import { AvailabilitySettings } from "../AvailabilitySettings";
import type { AvailabilityFormValues } from "../types";
type PlatformAvailabilitySettingsWrapperProps = {
type AvailabilitySettingsPlatformWrapperProps = {
id?: string;
labels?: {
tooltips: Partial<ScheduleLabelsType>;
@@ -26,7 +26,7 @@ type PlatformAvailabilitySettingsWrapperProps = {
disableEditableHeading?: boolean;
};
export const PlatformAvailabilitySettingsWrapper = ({
export const AvailabilitySettingsPlatformWrapper = ({
id,
customClassNames,
onDeleteError,
@@ -34,7 +34,7 @@ export const PlatformAvailabilitySettingsWrapper = ({
onUpdateError,
onUpdateSuccess,
disableEditableHeading = false,
}: PlatformAvailabilitySettingsWrapperProps) => {
}: AvailabilitySettingsPlatformWrapperProps) => {
const { isLoading, data: schedule } = useClientSchedule(id);
const mySchedule = schedule as ApiSuccessResponse<ScheduleWithAvailabilitiesForWeb>;
const { data: me } = useMe();
@@ -10,7 +10,7 @@ import { showToast } from "@calcom/ui";
import { AvailabilitySettings } from "../AvailabilitySettings";
export const WebAvailabilitySettingsWrapper = () => {
export const AvailabilitySettingsWebWrapper = () => {
const searchParams = useCompatSearchParams();
const { t } = useLocale();
const router = useRouter();
+1 -1
View File
@@ -1,6 +1,6 @@
export { CalProvider } from "./cal-provider";
export { GcalConnect } from "./gcal-connect";
export { PlatformAvailabilitySettingsWrapper as AvailabilitySettings } from "./availability";
export { AvailabilitySettingsPlatformWrapper as AvailabilitySettings } from "./availability";
export { BookerPlatformWrapper as Booker } from "./booker";
export { useIsPlatform } from "./hooks/useIsPlatform";
export { useAtomsContext } from "./hooks/useAtomsContext";
+1 -1
View File
@@ -1,5 +1,5 @@
export { BookerWebWrapper as Booker } from "./booker";
export { WebAvailabilitySettingsWrapper as AvailabilitySettings } from "./availability/wrappers/WebAvailabilitySettingsWrapper";
export { AvailabilitySettingsWebWrapper as AvailabilitySettings } from "./availability/wrappers/AvailabilitySettingsWebWrapper";
export { CalProvider } from "./cal-provider/CalProvider";
export { useIsPlatform } from "./hooks/useIsPlatform";
export { useAtomsContext } from "./hooks/useAtomsContext";
+1 -1
View File
@@ -43,5 +43,5 @@
"../../trpc",
"../../app-store"
],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["dist", "build", "node_modules", "**/*WebWrapper.tsx"]
}