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:
@@ -1,4 +1,4 @@
|
||||
export { PlatformAvailabilitySettingsWrapper } from "./wrappers/PlatformAvailabilitySettingsWrapper";
|
||||
export { AvailabilitySettingsPlatformWrapper } from "./wrappers/AvailabilitySettingsPlatformWrapper";
|
||||
export { AvailabilitySettings } from "./AvailabilitySettings";
|
||||
|
||||
export * from "../types";
|
||||
|
||||
+3
-3
@@ -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();
|
||||
+1
-1
@@ -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,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,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";
|
||||
|
||||
@@ -43,5 +43,5 @@
|
||||
"../../trpc",
|
||||
"../../app-store"
|
||||
],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
"exclude": ["dist", "build", "node_modules", "**/*WebWrapper.tsx"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user