@calcom/atoms 1.0.3

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 (134) hide show
  1. package/README.md +5 -0
  2. package/dist/AddressInput-Ci02wr5C.js +33 -0
  3. package/dist/AlbyPriceComponent-NqN1MEov.js +967 -0
  4. package/dist/Card-6fRR5Hwj.js +185 -0
  5. package/dist/DatePicker-9pbCidOU.js +27 -0
  6. package/dist/PhoneInput-ysQbrvjy.js +1405 -0
  7. package/dist/PoweredBy-AY0Afi6V.js +31 -0
  8. package/dist/UnpublishedEntity-epeaNFkK.js +23 -0
  9. package/dist/availability/AvailabilitySettings.d.ts +58 -0
  10. package/dist/availability/AvailabilitySettings.d.ts.map +1 -0
  11. package/dist/availability/index.d.ts +4 -0
  12. package/dist/availability/index.d.ts.map +1 -0
  13. package/dist/availability/types.d.ts +22 -0
  14. package/dist/availability/types.d.ts.map +1 -0
  15. package/dist/availability/wrappers/PlatformAvailabilitySettingsWrapper.d.ts +18 -0
  16. package/dist/availability/wrappers/PlatformAvailabilitySettingsWrapper.d.ts.map +1 -0
  17. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts +2 -0
  18. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts.map +1 -0
  19. package/dist/booker/Booker.stories.d.ts +7 -0
  20. package/dist/booker/Booker.stories.d.ts.map +1 -0
  21. package/dist/booker/BookerPlatformWrapper.d.ts +24 -0
  22. package/dist/booker/BookerPlatformWrapper.d.ts.map +1 -0
  23. package/dist/booker/BookerWebWrapper.d.ts +5 -0
  24. package/dist/booker/BookerWebWrapper.d.ts.map +1 -0
  25. package/dist/booker/export.d.ts +4 -0
  26. package/dist/booker/export.d.ts.map +1 -0
  27. package/dist/booker/index.d.ts +3 -0
  28. package/dist/booker/index.d.ts.map +1 -0
  29. package/dist/cal-atoms.js +9 -0
  30. package/dist/cal-atoms.umd.cjs +577 -0
  31. package/dist/cal-provider/BaseCalProvider.d.ts +4 -0
  32. package/dist/cal-provider/BaseCalProvider.d.ts.map +1 -0
  33. package/dist/cal-provider/CalProvider.d.ts +14 -0
  34. package/dist/cal-provider/CalProvider.d.ts.map +1 -0
  35. package/dist/cal-provider/index.d.ts +2 -0
  36. package/dist/cal-provider/index.d.ts.map +1 -0
  37. package/dist/framer-features-Zr_i_7k0.js +443 -0
  38. package/dist/gcal-connect/GcalConnect.d.ts +9 -0
  39. package/dist/gcal-connect/GcalConnect.d.ts.map +1 -0
  40. package/dist/gcal-connect/index.d.ts +2 -0
  41. package/dist/gcal-connect/index.d.ts.map +1 -0
  42. package/dist/globals.min.css +1 -0
  43. package/dist/hooks/useApiKeys.d.ts +10 -0
  44. package/dist/hooks/useApiKeys.d.ts.map +1 -0
  45. package/dist/hooks/useAtomsContext.d.ts +31 -0
  46. package/dist/hooks/useAtomsContext.d.ts.map +1 -0
  47. package/dist/hooks/useAvailableSlots.d.ts +6 -0
  48. package/dist/hooks/useAvailableSlots.d.ts.map +1 -0
  49. package/dist/hooks/useBookings.d.ts +3 -0
  50. package/dist/hooks/useBookings.d.ts.map +1 -0
  51. package/dist/hooks/useCalendarsBusyTimes.d.ts +10 -0
  52. package/dist/hooks/useCalendarsBusyTimes.d.ts.map +1 -0
  53. package/dist/hooks/useClientSchedule.d.ts +8 -0
  54. package/dist/hooks/useClientSchedule.d.ts.map +1 -0
  55. package/dist/hooks/useConnectedCalendars.d.ts +3 -0
  56. package/dist/hooks/useConnectedCalendars.d.ts.map +1 -0
  57. package/dist/hooks/useCreateBooking.d.ts +169 -0
  58. package/dist/hooks/useCreateBooking.d.ts.map +1 -0
  59. package/dist/hooks/useCreateInstantBooking.d.ts +169 -0
  60. package/dist/hooks/useCreateInstantBooking.d.ts.map +1 -0
  61. package/dist/hooks/useCreateRecurringBooking.d.ts +154 -0
  62. package/dist/hooks/useCreateRecurringBooking.d.ts.map +1 -0
  63. package/dist/hooks/useDeleteSchedule.d.ts +11 -0
  64. package/dist/hooks/useDeleteSchedule.d.ts.map +1 -0
  65. package/dist/hooks/useDeleteSelectedSlot.d.ts +8 -0
  66. package/dist/hooks/useDeleteSelectedSlot.d.ts.map +1 -0
  67. package/dist/hooks/useGcal.d.ts +9 -0
  68. package/dist/hooks/useGcal.d.ts.map +1 -0
  69. package/dist/hooks/useGetCityTimezones.d.ts +6 -0
  70. package/dist/hooks/useGetCityTimezones.d.ts.map +1 -0
  71. package/dist/hooks/useHandleBookEvent.d.ts +15 -0
  72. package/dist/hooks/useHandleBookEvent.d.ts.map +1 -0
  73. package/dist/hooks/useIsPlatform.d.ts +2 -0
  74. package/dist/hooks/useIsPlatform.d.ts.map +1 -0
  75. package/dist/hooks/useMe.d.ts +12 -0
  76. package/dist/hooks/useMe.d.ts.map +1 -0
  77. package/dist/hooks/useOAuthClient.d.ts +11 -0
  78. package/dist/hooks/useOAuthClient.d.ts.map +1 -0
  79. package/dist/hooks/useOAuthFlow.d.ts +12 -0
  80. package/dist/hooks/useOAuthFlow.d.ts.map +1 -0
  81. package/dist/hooks/usePublicEvent.d.ts +958 -0
  82. package/dist/hooks/usePublicEvent.d.ts.map +1 -0
  83. package/dist/hooks/useReserveSlot.d.ts +8 -0
  84. package/dist/hooks/useReserveSlot.d.ts.map +1 -0
  85. package/dist/hooks/useSlots.d.ts +11 -0
  86. package/dist/hooks/useSlots.d.ts.map +1 -0
  87. package/dist/hooks/useTimezone.d.ts +2 -0
  88. package/dist/hooks/useTimezone.d.ts.map +1 -0
  89. package/dist/hooks/useUpdateSchedule.d.ts +9 -0
  90. package/dist/hooks/useUpdateSchedule.d.ts.map +1 -0
  91. package/dist/hooks/useUpdateUserTimezone.d.ts +15 -0
  92. package/dist/hooks/useUpdateUserTimezone.d.ts.map +1 -0
  93. package/dist/index--Pb54wx_.js +4 -0
  94. package/dist/index-3sgDY24S.js +5 -0
  95. package/dist/index-GttMIx74.js +65366 -0
  96. package/dist/index-RcPlEXh-.js +220 -0
  97. package/dist/index-rUbdQ7Zu.js +1256 -0
  98. package/dist/index-uuiJumv6.js +76 -0
  99. package/dist/index.d.ts +7 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/isSupportedCountry-WVb-DZDd.js +487 -0
  102. package/dist/lib/getQueryParam.d.ts +3 -0
  103. package/dist/lib/getQueryParam.d.ts.map +1 -0
  104. package/dist/lib/http.d.ts +18 -0
  105. package/dist/lib/http.d.ts.map +1 -0
  106. package/dist/lib/setQueryParam.d.ts +3 -0
  107. package/dist/lib/setQueryParam.d.ts.map +1 -0
  108. package/dist/monorepo.d.ts +9 -0
  109. package/dist/monorepo.d.ts.map +1 -0
  110. package/dist/server.browser-yA5s9iMO.js +9859 -0
  111. package/dist/src/components/ui/button.d.ts +12 -0
  112. package/dist/src/components/ui/button.d.ts.map +1 -0
  113. package/dist/src/components/ui/confirmation-dialog-content.d.ts +4 -0
  114. package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +1 -0
  115. package/dist/src/components/ui/dialog.d.ts +20 -0
  116. package/dist/src/components/ui/dialog.d.ts.map +1 -0
  117. package/dist/src/components/ui/shell.d.ts +3 -0
  118. package/dist/src/components/ui/shell.d.ts.map +1 -0
  119. package/dist/src/components/ui/toast.d.ts +16 -0
  120. package/dist/src/components/ui/toast.d.ts.map +1 -0
  121. package/dist/src/components/ui/toaster.d.ts +3 -0
  122. package/dist/src/components/ui/toaster.d.ts.map +1 -0
  123. package/dist/src/components/ui/use-toast.d.ts +45 -0
  124. package/dist/src/components/ui/use-toast.d.ts.map +1 -0
  125. package/dist/src/lib/utils.d.ts +3 -0
  126. package/dist/src/lib/utils.d.ts.map +1 -0
  127. package/dist/style.css +1 -0
  128. package/dist/timezone/index.d.ts +4 -0
  129. package/dist/timezone/index.d.ts.map +1 -0
  130. package/dist/types.d.ts +8 -0
  131. package/dist/types.d.ts.map +1 -0
  132. package/dist/vite.config.d.ts +3 -0
  133. package/dist/vite.config.d.ts.map +1 -0
  134. package/package.json +56 -0
@@ -0,0 +1,31 @@
1
+ import { af as r, ag as m, ah as d, ai as a, aj as e, ak as h, al as x, am as t, an as i } from "./index-GttMIx74.js";
2
+ const u = ({
3
+ logoOnly: l
4
+ }) => {
5
+ const {
6
+ t: n
7
+ } = r(), s = m.useSession(), o = d(), c = s.data ? s.data.hasValidLicense : null;
8
+ return /* @__PURE__ */ a("div", {
9
+ className: `p-2 text-center text-xs sm:text-right${o ? " max-w-3xl" : ""}`,
10
+ children: /* @__PURE__ */ e(h, {
11
+ href: x,
12
+ target: "_blank",
13
+ className: "text-subtle",
14
+ children: [!l && /* @__PURE__ */ e(t, {
15
+ children: [n("powered_by"), " "]
16
+ }), i === "Cal.com" || !c ? /* @__PURE__ */ a(t, {
17
+ children: /* @__PURE__ */ a("img", {
18
+ className: "relative -mt-px inline h-[10px] w-auto dark:invert",
19
+ src: "/api/logo",
20
+ alt: "Cal.com Logo"
21
+ })
22
+ }) : /* @__PURE__ */ a("span", {
23
+ className: "text-emphasis font-semibold opacity-50 hover:opacity-100",
24
+ children: i
25
+ })]
26
+ })
27
+ });
28
+ };
29
+ export {
30
+ u as default
31
+ };
@@ -0,0 +1,23 @@
1
+ import { af as n, ai as t, O as s, A as r } from "./index-GttMIx74.js";
2
+ function g(a) {
3
+ const {
4
+ t: i
5
+ } = n(), e = a.orgSlug || a.teamSlug;
6
+ return /* @__PURE__ */ t("div", {
7
+ className: "m-8 flex items-center justify-center",
8
+ children: /* @__PURE__ */ t(s, {
9
+ avatar: /* @__PURE__ */ t(r, {
10
+ alt: e ?? "",
11
+ imageSrc: a.orgSlug ? `/org/${e}/avatar.png` : `/team/${e}/avatar.png`,
12
+ size: "lg"
13
+ }),
14
+ headline: i("team_is_unpublished", {
15
+ team: a.name
16
+ }),
17
+ description: i(`${a.orgSlug ? "org" : "team"}_is_unpublished_description`)
18
+ })
19
+ });
20
+ }
21
+ export {
22
+ g as U
23
+ };
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ import type { WorkingHours } from "@calcom/types/schedule";
3
+ import type { TimeRange } from "@calcom/types/schedule";
4
+ import type { AvailabilityFormValues } from "./types";
5
+ export type Schedule = {
6
+ id: number;
7
+ startTime: Date;
8
+ endTime: Date;
9
+ userId: number | null;
10
+ eventTypeId: number | null;
11
+ date: Date | null;
12
+ scheduleId: number | null;
13
+ days: number[];
14
+ };
15
+ export type CustomClassNames = {
16
+ containerClassName?: string;
17
+ ctaClassName?: string;
18
+ editableHeadingClassName?: string;
19
+ formClassName?: string;
20
+ timezoneSelectClassName?: string;
21
+ subtitlesClassName?: string;
22
+ scheduleClassNames?: {
23
+ scheduleContainer?: string;
24
+ scheduleDay?: string;
25
+ dayRanges?: string;
26
+ timeRanges?: string;
27
+ labelAndSwitchContainer?: string;
28
+ };
29
+ };
30
+ type AvailabilitySettingsProps = {
31
+ skeletonLabel?: string;
32
+ schedule?: {
33
+ name: string;
34
+ id: number;
35
+ availability: TimeRange[][];
36
+ isLastSchedule: boolean;
37
+ isDefault: boolean;
38
+ workingHours: WorkingHours[];
39
+ dateOverrides: {
40
+ ranges: TimeRange[];
41
+ }[];
42
+ timeZone: string;
43
+ schedule: Schedule[] | [];
44
+ };
45
+ handleDelete: () => void;
46
+ isDeleting: boolean;
47
+ isSaving: boolean;
48
+ isLoading: boolean;
49
+ timeFormat: number | null;
50
+ weekStart: string;
51
+ backPath: string | boolean;
52
+ handleSubmit: (data: AvailabilityFormValues) => Promise<void>;
53
+ isPlatform?: boolean;
54
+ customClassNames?: CustomClassNames;
55
+ };
56
+ export declare function AvailabilitySettings({ schedule, handleDelete, isDeleting, isLoading, isSaving, timeFormat, weekStart, backPath, handleSubmit, isPlatform, customClassNames, }: AvailabilitySettingsProps): JSX.Element;
57
+ export {};
58
+ //# sourceMappingURL=AvailabilitySettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvailabilitySettings.d.ts","sourceRoot":"","sources":["../../availability/AvailabilitySettings.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAA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AE,CAAC;QAC7B,aAAa,EAAE;YAAE,MAAM,EAAE,SAAS,EAAE,CAAA;SAAE,EAAE,CAAC;QACzC,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;KAC3B,CAAC;IACF,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,YAAY,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAoIF,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAkB,EAClB,gBAAgB,GACjB,EAAE,yBAAyB,eAkU3B"}
@@ -0,0 +1,4 @@
1
+ export { PlatformAvailabilitySettingsWrapper } from "./wrappers/PlatformAvailabilitySettingsWrapper";
2
+ export { AvailabilitySettings } from "./AvailabilitySettings";
3
+ export * from "../types";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../availability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,cAAc,UAAU,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { Schedule as ScheduleType, TimeRange } from "@calcom/types/schedule";
2
+ export type Availability = {
3
+ id: number;
4
+ userId: number | null;
5
+ eventTypeId: number | null;
6
+ days: number[];
7
+ startTime: string;
8
+ endTime: Date;
9
+ date: Date | null;
10
+ scheduleId: number | null;
11
+ };
12
+ export type WeekdayFormat = "short" | "long";
13
+ export type AvailabilityFormValues = {
14
+ name: string;
15
+ schedule: ScheduleType;
16
+ dateOverrides: {
17
+ ranges: TimeRange[];
18
+ }[];
19
+ timeZone: string;
20
+ isDefault: boolean;
21
+ };
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../availability/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,aAAa,EAAE;QAAE,MAAM,EAAE,SAAS,EAAE,CAAA;KAAE,EAAE,CAAC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ScheduleLabelsType } from "@calcom/features/schedules/components/Schedule";
2
+ import type { UpdateScheduleOutputType } from "@calcom/platform-libraries";
3
+ import type { ApiErrorResponse, ApiResponse } from "@calcom/platform-types";
4
+ import type { CustomClassNames } from "../AvailabilitySettings";
5
+ type PlatformAvailabilitySettingsWrapperProps = {
6
+ id?: string;
7
+ labels?: {
8
+ tooltips: Partial<ScheduleLabelsType>;
9
+ };
10
+ customClassNames?: Partial<CustomClassNames>;
11
+ onUpdateSuccess?: (res: ApiResponse<UpdateScheduleOutputType>) => void;
12
+ onUpdateError?: (err: ApiErrorResponse) => void;
13
+ onDeleteSuccess?: (res: ApiResponse) => void;
14
+ onDeleteError?: (err: ApiErrorResponse) => void;
15
+ };
16
+ export declare const PlatformAvailabilitySettingsWrapper: ({ id, customClassNames, onDeleteError, onDeleteSuccess, onUpdateError, onUpdateSuccess, }: PlatformAvailabilitySettingsWrapperProps) => JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=PlatformAvailabilitySettingsWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformAvailabilitySettingsWrapper.d.ts","sourceRoot":"","sources":["../../../availability/wrappers/PlatformAvailabilitySettingsWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,EAAoC,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC7G,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAsB,MAAM,wBAAwB,CAAC;AAQhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,KAAK,wCAAwC,GAAG;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE;QACP,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;KACvC,CAAC;IACF,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IACvE,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,mCAAmC,8FAO7C,wCAAwC,gBAgG1C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const WebAvailabilitySettingsWrapper: () => JSX.Element;
2
+ //# sourceMappingURL=WebAvailabilitySettingsWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebAvailabilitySettingsWrapper.d.ts","sourceRoot":"","sources":["../../../availability/wrappers/WebAvailabilitySettingsWrapper.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,8BAA8B,mBAkG1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { BookerWebWrapper as Booker } from "./BookerWebWrapper";
3
+ declare const meta: Meta<typeof Booker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Booker>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=Booker.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Booker.stories.d.ts","sourceRoot":"","sources":["../../booker/Booker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAG7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { BookerProps } from "@calcom/features/bookings/Booker";
2
+ import type { BookingResponse } from "@calcom/platform-libraries";
3
+ import type { ApiErrorResponse, ApiSuccessResponse, ApiSuccessResponseWithoutData } from "@calcom/platform-types";
4
+ type BookerPlatformWrapperAtomProps = Omit<BookerProps, "entity"> & {
5
+ rescheduleUid?: string;
6
+ bookingUid?: string;
7
+ firstName?: string;
8
+ lastName?: string;
9
+ guests?: string[];
10
+ name?: string;
11
+ onCreateBookingSuccess?: (data: ApiSuccessResponse<BookingResponse>) => void;
12
+ onCreateBookingError?: (data: ApiErrorResponse | Error) => void;
13
+ onCreateRecurringBookingSuccess?: (data: ApiSuccessResponse<BookingResponse[]>) => void;
14
+ onCreateRecurringBookingError?: (data: ApiErrorResponse | Error) => void;
15
+ onCreateInstantBookingSuccess?: (data: ApiSuccessResponse<BookingResponse>) => void;
16
+ onCreateInstantBookingError?: (data: ApiErrorResponse | Error) => void;
17
+ onReserveSlotSuccess?: (data: ApiSuccessResponse<string>) => void;
18
+ onReserveSlotError?: (data: ApiErrorResponse) => void;
19
+ onDeleteSlotSuccess?: (data: ApiSuccessResponseWithoutData) => void;
20
+ onDeleteSlotError?: (data: ApiErrorResponse) => void;
21
+ };
22
+ export declare const BookerPlatformWrapper: (props: BookerPlatformWrapperAtomProps) => JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=BookerPlatformWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookerPlatformWrapper.d.ts","sourceRoot":"","sources":["../../booker/BookerPlatformWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAUpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAchC,KAAK,8BAA8B,GAAG,IAAI,CAAC,WAAW,EAAE,QA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are const BookerWebWrapper: (props: BookerWebWrapperAtomProps) => JSX.Element;
4
+ export {};
5
+ //# sourceMappingURL=BookerWebWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookerWebWrapper.d.ts","sourceRoot":"","sources":["../../booker/BookerWebWrapper.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAgBpE,KAAK,yBAAyB,GAAG,WAAW,CAAC;AAE7C,eAAO,MAAM,gBAAgB,UAAW,yBAAyB,gBA+KhE,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Export file is only used for building the dist version of this Atom. */
2
+ export { BookerWebWrapper as Booker } from "./BookerWebWrapper";
3
+ export * from "../types";
4
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../booker/export.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAG3E,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAChE,cAAc,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { BookerWebWrapper } from "./BookerWebWrapper";
2
+ export { BookerPlatformWrapper } from "./BookerPlatformWrapper";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../booker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { aV as o, aW as t, aT as e, aU as r, aY as i, aX as l } from "./index-GttMIx74.js";
2
+ export {
3
+ o as AvailabilitySettings,
4
+ t as Booker,
5
+ e as CalProvider,
6
+ r as GcalConnect,
7
+ i as useAtomsContext,
8
+ l as useIsPlatform
9
+ };