@calcom/atoms 1.0.19 → 1.0.21

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 (27) hide show
  1. package/dist/{AddressInput-lgOl_tVT.js → AddressInput-JoQaGbRT.js} +1 -1
  2. package/dist/{AlbyPriceComponent-r4zhZs7G.js → AlbyPriceComponent-EPbQ6-Ch.js} +1 -1
  3. package/dist/{Card-TTw98xVy.js → Card-y1TAfpoG.js} +1 -1
  4. package/dist/{DatePicker-3L7chldg.js → DatePicker-JD_V3fz2.js} +1 -1
  5. package/dist/{PhoneInput-OC-8mHPi.js → PhoneInput-Am-blD_t.js} +2 -2
  6. package/dist/{PoweredBy-6qXf3LP3.js → PoweredBy-KQOqSIbh.js} +1 -1
  7. package/dist/{UnpublishedEntity-tjKqVYRo.js → UnpublishedEntity-3phZLMux.js} +1 -1
  8. package/dist/cal-atoms.js +7 -6
  9. package/dist/cal-atoms.umd.cjs +73 -73
  10. package/dist/cal-provider/CalProvider.d.ts +15 -1
  11. package/dist/cal-provider/CalProvider.d.ts.map +1 -1
  12. package/dist/{framer-features-9v7ztPCe.js → framer-features-QYUZb8Rn.js} +1 -1
  13. package/dist/hooks/useCreateRecurringBooking.d.ts.map +1 -1
  14. package/dist/hooks/useMe.d.ts +5 -0
  15. package/dist/hooks/useMe.d.ts.map +1 -1
  16. package/dist/hooks/usePublicEvent.d.ts.map +1 -1
  17. package/dist/{index-_g1FZHlP.js → index-SNl3aeux.js} +2 -2
  18. package/dist/index-_WKFJWoU.js +4 -0
  19. package/dist/{index-9EQ11-7o.js → index-aQmnJ9l7.js} +3 -3
  20. package/dist/{index-XvUjygA8.js → index-jQVrN-br.js} +1 -1
  21. package/dist/{index-SbtNfwjH.js → index-s72r9oDm.js} +355 -355
  22. package/dist/{index-IkeP1cDY.js → index-x4lkDi7r.js} +2 -2
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/{isSupportedCountry-wDuwCxBx.js → isSupportedCountry-CHPHKvcC.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/index-6RbmBa-b.js +0 -4
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
2
2
  export type CalProviderProps = {
3
3
  children?: ReactNode;
4
4
  clientId: string;
5
- accessToken: string;
5
+ accessToken?: string;
6
6
  options: {
7
7
  refreshUrl?: string;
8
8
  apiUrl: string;
@@ -10,5 +10,19 @@ export type CalProviderProps = {
10
10
  autoUpdateTimezone?: boolean;
11
11
  onTimezoneChange?: () => void;
12
12
  };
13
+ /**
14
+ * Renders a CalProvider component.
15
+ *
16
+ * @component
17
+ * @param {string} props.clientId - The platform oauth client ID.
18
+ * @param {string} props.accessToken - The access token of your managed user. - Optional
19
+ * @param {object} props.options - The options object.
20
+ * @param {string} [options.apiUrl] - The API URL. https://api.cal.com/v2
21
+ * @param {string} [options.refreshUrl] - The url point to your refresh endpoint. - Optional, required if accessToken is provided.
22
+ * @param {boolean} [autoUpdateTimezone=true] - Whether to automatically update the timezone. - Optional
23
+ * @param {function} props.onTimezoneChange - The callback function for timezone change. - Optional
24
+ * @param {ReactNode} props.children - The child components. - Optional
25
+ * @returns {JSX.Element} The rendered CalProvider component.
26
+ */
13
27
  export declare function CalProvider({ clientId, accessToken, options, children, autoUpdateTimezone, onTimezoneChange, }: CalProviderProps): JSX.Element;
14
28
  //# sourceMappingURL=CalProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CalProvider.d.ts","sourceRoot":"","sources":["../../cal-provider/CalProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAQ,EACR,kBAAyB,EACzB,gBAAgB,GACjB,EAAE,gBAAgB,eAalB"}
1
+ {"version":3,"file":"CalProvider.d.ts","sourceRoot":"","sources":["../../cal-provider/CalProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAQ,EACR,kBAAyB,EACzB,gBAAgB,GACjB,EAAE,gBAAgB,eAalB"}
@@ -1,4 +1,4 @@
1
- import { aP as L, aQ as V, aR as D, aS as M, aT as Q, aU as Z, aV as _, aW as j, aX as re, aY as ie, aZ as oe, a_ as ae } from "./index-SbtNfwjH.js";
1
+ import { aP as L, aQ as V, aR as D, aS as M, aT as Q, aU as Z, aV as _, aW as j, aX as re, aY as ie, aZ as oe, a_ as ae } from "./index-s72r9oDm.js";
2
2
  function b(t, e, n, s = { passive: !0 }) {
3
3
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateRecurringBooking.d.ts","sourceRoot":"","sources":["../../hooks/useCreateRecurringBooking.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,KAAK,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAIhG,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,CAAC,eAAe,EAAE,CAAC,KAAK,IAAI,CAAC;IACjE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,yBAAyB,4BACZ,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA+BnD,CAAC"}
1
+ {"version":3,"file":"useCreateRecurringBooking.d.ts","sourceRoot":"","sources":["../../hooks/useCreateRecurringBooking.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,KAAK,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAIhG,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,CAAC,eAAe,EAAE,CAAC,KAAK,IAAI,CAAC;IACjE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,yBAAyB,4BACZ,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA6BnD,CAAC"}
@@ -1,4 +1,9 @@
1
1
  export declare const QUERY_KEY = "get-me";
2
+ /**
3
+ * Custom hook to fetch the current user's information.
4
+ * Access Token must be provided to CalProvider in order to use this hook
5
+ * @returns The result of the query containing the user's profile.
6
+ */
2
7
  export declare const useMe: () => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@calcom/platform-types").ApiSuccessResponse<{
3
8
  id: number;
4
9
  username: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useMe.d.ts","sourceRoot":"","sources":["../../hooks/useMe.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC,eAAO,MAAM,KAAK;;;;;;;;UAejB,CAAC"}
1
+ {"version":3,"file":"useMe.d.ts","sourceRoot":"","sources":["../../hooks/useMe.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;UAgBjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePublicEvent.d.ts","sourceRoot":"","sources":["../../hooks/usePublicEvent.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS,qBAAqB,CAAC;AAC5C,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzE,eAAO,MAAM,cAAc,UAAW;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
- 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-SbtNfwjH.js";
2
- import { i } from "./isSupportedCountry-wDuwCxBx.js";
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-s72r9oDm.js";
2
+ import { i } from "./isSupportedCountry-CHPHKvcC.js";
3
3
  export {
4
4
  a as DIGITS,
5
5
  o as ParseError,
@@ -0,0 +1,4 @@
1
+ import { U as i } from "./UnpublishedEntity-3phZLMux.js";
2
+ export {
3
+ i as UnpublishedEntity
4
+ };
@@ -1,6 +1,6 @@
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 m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, 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, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-SbtNfwjH.js";
2
- import { U as Sa } from "./UnpublishedEntity-tjKqVYRo.js";
3
- import { C as wa } from "./Card-TTw98xVy.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 m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, 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, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-s72r9oDm.js";
2
+ import { U as Sa } from "./UnpublishedEntity-3phZLMux.js";
3
+ import { C as wa } from "./Card-y1TAfpoG.js";
4
4
  export {
5
5
  o as AddressInput,
6
6
  s as Alert,
@@ -1,4 +1,4 @@
1
- import { T as m, b as n } from "./index-SbtNfwjH.js";
1
+ import { T as m, b as n } from "./index-s72r9oDm.js";
2
2
  export {
3
3
  m as TimezoneSelect,
4
4
  n as TimezoneSelectComponent