@calcom/atoms 1.0.5 → 1.0.7

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 (53) hide show
  1. package/dist/{AddressInput-Ci02wr5C.js → AddressInput-2Zzr_cXb.js} +11 -8
  2. package/dist/{AlbyPriceComponent-NqN1MEov.js → AlbyPriceComponent-05_2Gjso.js} +59 -60
  3. package/dist/{Card-6fRR5Hwj.js → Card-LbZlOt2O.js} +30 -27
  4. package/dist/DatePicker-Le7528E8.js +27 -0
  5. package/dist/{PhoneInput-ysQbrvjy.js → PhoneInput-Wo701fQd.js} +2 -2
  6. package/dist/{PoweredBy-AY0Afi6V.js → PoweredBy-IBR7IFv-.js} +3 -3
  7. package/dist/{UnpublishedEntity-epeaNFkK.js → UnpublishedEntity--p3zoyCs.js} +1 -1
  8. package/dist/availability/AvailabilitySettings.d.ts +3 -4
  9. package/dist/availability/AvailabilitySettings.d.ts.map +1 -1
  10. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts +1 -1
  11. package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts.map +1 -1
  12. package/dist/booker/BookerPlatformWrapper.d.ts.map +1 -1
  13. package/dist/cal-atoms.js +13 -7
  14. package/dist/cal-atoms.umd.cjs +458 -163
  15. package/dist/{framer-features-Zr_i_7k0.js → framer-features-Ury4Mtf7.js} +66 -66
  16. package/dist/hooks/event-types/useEventTypesPrivate.d.ts +3 -0
  17. package/dist/hooks/event-types/useEventTypesPrivate.d.ts.map +1 -0
  18. package/dist/hooks/event-types/useEventTypesPublic.d.ts +3 -0
  19. package/dist/hooks/event-types/useEventTypesPublic.d.ts.map +1 -0
  20. package/dist/hooks/event-types/useGetEventTypeById.d.ts +3 -0
  21. package/dist/hooks/event-types/useGetEventTypeById.d.ts.map +1 -0
  22. package/dist/hooks/useCancelBooking.d.ts +14 -0
  23. package/dist/hooks/useCancelBooking.d.ts.map +1 -0
  24. package/dist/hooks/useConnectedCalendars.d.ts +3 -1
  25. package/dist/hooks/useConnectedCalendars.d.ts.map +1 -1
  26. package/dist/hooks/useGetBooking.d.ts +46 -0
  27. package/dist/hooks/useGetBooking.d.ts.map +1 -0
  28. package/dist/hooks/useGetBookingForReschedule.d.ts +39 -0
  29. package/dist/hooks/useGetBookingForReschedule.d.ts.map +1 -0
  30. package/dist/hooks/useGetBookings.d.ts +4 -0
  31. package/dist/hooks/useGetBookings.d.ts.map +1 -0
  32. package/dist/hooks/useMe.d.ts +1 -1
  33. package/dist/hooks/usePublicEvent.d.ts +18 -0
  34. package/dist/hooks/usePublicEvent.d.ts.map +1 -1
  35. package/dist/hooks/useUpdateUserTimezone.d.ts +1 -1
  36. package/dist/{index-3sgDY24S.js → index-1gjmjEQz.js} +1 -1
  37. package/dist/{index-GttMIx74.js → index-Dp1Fw3yT.js} +24603 -22062
  38. package/dist/index-I9fhNw6k.js +4 -0
  39. package/dist/{index-uuiJumv6.js → index-cC2xjjWb.js} +16 -16
  40. package/dist/index-cwL4aUlp.js +13 -0
  41. package/dist/{index-RcPlEXh-.js → index-dFT1L4IP.js} +10 -10
  42. package/dist/index.d.ts +7 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/isSupportedCountry-17w3UcDH.js +7 -0
  45. package/dist/monorepo.d.ts +1 -0
  46. package/dist/monorepo.d.ts.map +1 -1
  47. package/package.json +2 -2
  48. package/dist/DatePicker-9pbCidOU.js +0 -27
  49. package/dist/index--Pb54wx_.js +0 -4
  50. package/dist/index-rUbdQ7Zu.js +0 -1256
  51. package/dist/isSupportedCountry-WVb-DZDd.js +0 -487
  52. package/dist/src/components/ui/confirmation-dialog-content.d.ts +0 -4
  53. package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { U as i } from "./UnpublishedEntity--p3zoyCs.js";
2
+ export {
3
+ i as UnpublishedEntity
4
+ };
@@ -1,6 +1,6 @@
1
- import { a9 as o, M as s, A as t, b as r, B as n, e as i, f as d, w as l, C as p, g as u, a7 as g, a6 as m, N as D, a0 as C, a1 as c, a2 as T, a3 as S, a4 as I, a5 as w, D as h, p as x, v as k, q as B, r as b, s as A, x as E, t as F, u as L, E as M, h as f, O as G, J as v, F as U, ac as H, W as R, H as y, I as O, i as P, z, j as V, L as W, P as j, Q as q, R as J, K, aa as N, ab as Q, ad as X, S as Y, _ as Z, m as _, X as $, Y as aa, Z as ea, y as oa, k as sa, l as ta, T as ra, a as na, n as ia, $ as da, G as la, d as pa, U as ua, c as ga, V as ma, o as Da, a8 as Ca, ae as ca } from "./index-GttMIx74.js";
2
- import { U as Sa } from "./UnpublishedEntity-epeaNFkK.js";
3
- import { C as wa } from "./Card-6fRR5Hwj.js";
1
+ import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as g, ad as m, X as C, a7 as D, a8 as c, a9 as T, aa as S, ab as I, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, I as O, m as z, O as P, n as V, L as W, _ as j, $ as q, a0 as J, V as K, ah as N, ai as Q, ak as X, S as Y, a5 as Z, r as _, a2 as $, a3 as aa, a4 as ea, N as oa, o as sa, q as ta, T as ra, b as na, s as ia, a6 as la, Q as da, e as pa, U as ua, d as ga, Y as ma, t as Ca, af as Da, al as ca } from "./index-Dp1Fw3yT.js";
2
+ import { U as Sa } from "./UnpublishedEntity--p3zoyCs.js";
3
+ import { C as ha } from "./Card-LbZlOt2O.js";
4
4
  export {
5
5
  o as AddressInput,
6
6
  s as Alert,
@@ -8,21 +8,21 @@ export {
8
8
  r as AvatarGroup,
9
9
  n as Badge,
10
10
  i as Button,
11
- d as ButtonGroup,
12
- l as ButtonOrLink,
13
- wa as Card,
11
+ l as ButtonGroup,
12
+ d as ButtonOrLink,
13
+ ha as Card,
14
14
  p as Checkbox,
15
15
  u as CheckboxField,
16
16
  g as ConfirmationContent,
17
17
  m as ConfirmationDialogContent,
18
- D as Credits,
19
- C as Dialog,
18
+ C as Credits,
19
+ D as Dialog,
20
20
  c as DialogClose,
21
21
  T as DialogContent,
22
22
  S as DialogFooter,
23
23
  I as DialogHeader,
24
- w as DialogTrigger,
25
- h as Dropdown,
24
+ h as DialogTrigger,
25
+ w as Dropdown,
26
26
  x as DropdownItem,
27
27
  k as DropdownMenuCheckboxItem,
28
28
  B as DropdownMenuContent,
@@ -40,8 +40,8 @@ export {
40
40
  R as HeadSeo,
41
41
  y as HintsOrErrors,
42
42
  O as InfoBadge,
43
- P as Input,
44
- z as InputError,
43
+ z as Input,
44
+ P as InputError,
45
45
  V as InputField,
46
46
  W as Label,
47
47
  j as ListItem,
@@ -63,14 +63,14 @@ export {
63
63
  ra as TimezoneSelect,
64
64
  na as TimezoneSelectComponent,
65
65
  ia as ToggleGroup,
66
- da as Tooltip,
67
- la as TopBanner,
66
+ la as Tooltip,
67
+ da as TopBanner,
68
68
  Sa as UnpublishedEntity,
69
69
  pa as UpgradeTeamsBadge,
70
70
  ua as UserAvatarGroup,
71
71
  ga as UserAvatarGroupWithOrg,
72
72
  ma as VerticalDivider,
73
- Da as getReactSelectProps,
74
- Ca as showToast,
73
+ Ca as getReactSelectProps,
74
+ Da as showToast,
75
75
  ca as useCalcomTheme
76
76
  };
@@ -0,0 +1,13 @@
1
+ import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-Dp1Fw3yT.js";
2
+ import { i } from "./isSupportedCountry-17w3UcDH.js";
3
+ export {
4
+ a as DIGITS,
5
+ o as ParseError,
6
+ s as formatRFC3966,
7
+ t as getCountryCallingCodeCustom,
8
+ m as getPhoneCodeCustom,
9
+ i as isSupportedCountry,
10
+ C as isValidPhoneNumber,
11
+ n as parseIncompletePhoneNumber,
12
+ p as parsePhoneNumberCharacter
13
+ };
@@ -1,7 +1,7 @@
1
- import { memo as L, useState as T } from "react";
2
- import { af as k, ax as g, ai as t, ay as U, az as N, aA as C, am as b, aj as n, au as v } from "./index-GttMIx74.js";
3
- import { C as A } from "./Card-6fRR5Hwj.js";
4
- const S = [{
1
+ import { memo as j, useState as T } from "react";
2
+ import { am as k, aG as g, ap as t, aH as U, aI as N, aJ as C, at as b, aq as n, aB as v } from "./index-Dp1Fw3yT.js";
3
+ import { C as A } from "./Card-LbZlOt2O.js";
4
+ const I = [{
5
5
  id: 13,
6
6
  thumbnailUrl: "https://img.youtube.com/vi/ihE8OYTdklg/0.jpg",
7
7
  mediaLink: "https://go.cal.com/ooo",
@@ -92,8 +92,8 @@ const S = [{
92
92
  title: "Dynamic booking links",
93
93
  description: "Booking link that allows people to quickly schedule meetings.",
94
94
  href: "https://cal.com/blog/cal-v-1-9"
95
- }], d = S.slice(0).reverse();
96
- function I() {
95
+ }], d = I.slice(0).reverse();
96
+ function S() {
97
97
  const {
98
98
  t: r
99
99
  } = k(), [c, p] = T(() => {
@@ -152,7 +152,7 @@ function I() {
152
152
  }, e.id))
153
153
  });
154
154
  }
155
- const z = L(I);
155
+ const q = j(S);
156
156
  function F({
157
157
  title: r,
158
158
  description: c,
@@ -172,8 +172,8 @@ function F({
172
172
  hasTeamPlan: w
173
173
  } = N(), {
174
174
  data: u
175
- } = C.viewer.teams.getUpgradeable.useQuery(), f = `${p}${o === "dark" ? "-dark" : ""}.jpg`, x = !1, j = !!(u != null && u[0]);
176
- return s === "team" && (w || j) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(b, {
175
+ } = C.viewer.teams.getUpgradeable.useQuery(), f = `${p}${o === "dark" ? "-dark" : ""}.jpg`, x = !1, L = !!(u != null && u[0]);
176
+ return s === "team" && (w || L) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(b, {
177
177
  children: e
178
178
  }) : /* @__PURE__ */ n(b, {
179
179
  children: [/* @__PURE__ */ n("div", {
@@ -215,6 +215,6 @@ function F({
215
215
  });
216
216
  }
217
217
  export {
218
- z as Tips,
218
+ q as Tips,
219
219
  F as UpgradeTip
220
220
  };
package/dist/index.d.ts CHANGED
@@ -4,4 +4,11 @@ export { PlatformAvailabilitySettingsWrapper as AvailabilitySettings } from "./a
4
4
  export { BookerPlatformWrapper as Booker } from "./booker";
5
5
  export { useIsPlatform } from "./hooks/useIsPlatform";
6
6
  export { useAtomsContext } from "./hooks/useAtomsContext";
7
+ export { useConnectedCalendars } from "./hooks/useConnectedCalendars";
8
+ export { useEventTypesPublic } from "./hooks/event-types/useEventTypesPublic";
9
+ export { useGetEventTypeById } from "./hooks/event-types/useGetEventTypeById";
10
+ export { useCancelBooking } from "./hooks/useCancelBooking";
11
+ export { useGetBooking } from "./hooks/useGetBooking";
12
+ export { useGetBookings } from "./hooks/useGetBookings";
13
+ export type { BookingResponse } from "@calcom/platform-libraries";
7
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mCAAmC,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mCAAmC,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { aE as t, aF as r } from "./index-Dp1Fw3yT.js";
2
+ function o() {
3
+ return t(r, arguments);
4
+ }
5
+ export {
6
+ o as i
7
+ };
@@ -3,6 +3,7 @@ export { WebAvailabilitySettingsWrapper as AvailabilitySettings } from "./availa
3
3
  export { CalProvider } from "./cal-provider/CalProvider";
4
4
  export { useIsPlatform } from "./hooks/useIsPlatform";
5
5
  export { useAtomsContext } from "./hooks/useAtomsContext";
6
+ export { useGetEventTypeById } from "./hooks/event-types/useGetEventTypeById";
6
7
  export { useHandleBookEvent } from "./hooks/useHandleBookEvent";
7
8
  export * as Dialog from "./src/components/ui/dialog";
8
9
  export { Timezone } from "./timezone";
@@ -1 +1 @@
1
- {"version":3,"file":"monorepo.d.ts","sourceRoot":"","sources":["../monorepo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,8BAA8B,IAAI,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAChI,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"monorepo.d.ts","sourceRoot":"","sources":["../monorepo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,8BAA8B,IAAI,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAChI,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "description": "Customizable UI components to integrate scheduling into your product.",
6
6
  "authors": "Cal.com, Inc.",
7
- "version": "1.0.5",
7
+ "version": "1.0.7",
8
8
  "scripts": {
9
9
  "dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch",
10
10
  "build": "yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify",
@@ -47,7 +47,7 @@
47
47
  "@tanstack/react-query": "^5.17.15",
48
48
  "class-variance-authority": "^0.4.0",
49
49
  "clsx": "^2.0.0",
50
- "lucide-react": "^0.171.0",
50
+ "lucide-react": "^0.363.0",
51
51
  "react-use": "^17.4.2",
52
52
  "tailwind-merge": "^1.13.2",
53
53
  "tailwindcss": "^3.3.3",
@@ -1,27 +0,0 @@
1
- import { af as g, ao as c, ap as i, aq as k, ai as S, ar as p, as as Y, at as f } from "./index-GttMIx74.js";
2
- const w = ({
3
- event: t,
4
- schedule: e
5
- }) => {
6
- var n, r, D, l;
7
- const {
8
- i18n: m
9
- } = g(), [o, d] = c((a) => [a.month, a.selectedDate], i), [s, M, u] = c((a) => [a.setSelectedDate, a.setMonth, a.setDayCount], i), y = k((n = e == null ? void 0 : e.data) == null ? void 0 : n.slots);
10
- return /* @__PURE__ */ S(p, {
11
- isPending: e.isPending,
12
- onChange: (a) => {
13
- s(a === null ? a : a.format("YYYY-MM-DD"));
14
- },
15
- onMonthChange: (a) => {
16
- M(a.format("YYYY-MM")), s(a.format("YYYY-MM-DD")), u(null);
17
- },
18
- includedDates: y,
19
- locale: m.language,
20
- browsingDate: o ? Y(o) : void 0,
21
- selected: Y(d),
22
- weekStart: f((l = (D = (r = t == null ? void 0 : t.data) == null ? void 0 : r.users) == null ? void 0 : D[0]) == null ? void 0 : l.weekStart)
23
- });
24
- };
25
- export {
26
- w as DatePicker
27
- };
@@ -1,4 +0,0 @@
1
- import { U as i } from "./UnpublishedEntity-epeaNFkK.js";
2
- export {
3
- i as UnpublishedEntity
4
- };