@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.
- package/dist/{AddressInput-lgOl_tVT.js → AddressInput-JoQaGbRT.js} +1 -1
- package/dist/{AlbyPriceComponent-r4zhZs7G.js → AlbyPriceComponent-EPbQ6-Ch.js} +1 -1
- package/dist/{Card-TTw98xVy.js → Card-y1TAfpoG.js} +1 -1
- package/dist/{DatePicker-3L7chldg.js → DatePicker-JD_V3fz2.js} +1 -1
- package/dist/{PhoneInput-OC-8mHPi.js → PhoneInput-Am-blD_t.js} +2 -2
- package/dist/{PoweredBy-6qXf3LP3.js → PoweredBy-KQOqSIbh.js} +1 -1
- package/dist/{UnpublishedEntity-tjKqVYRo.js → UnpublishedEntity-3phZLMux.js} +1 -1
- package/dist/cal-atoms.js +7 -6
- package/dist/cal-atoms.umd.cjs +73 -73
- package/dist/cal-provider/CalProvider.d.ts +15 -1
- package/dist/cal-provider/CalProvider.d.ts.map +1 -1
- package/dist/{framer-features-9v7ztPCe.js → framer-features-QYUZb8Rn.js} +1 -1
- package/dist/hooks/useCreateRecurringBooking.d.ts.map +1 -1
- package/dist/hooks/useMe.d.ts +5 -0
- package/dist/hooks/useMe.d.ts.map +1 -1
- package/dist/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/{index-_g1FZHlP.js → index-SNl3aeux.js} +2 -2
- package/dist/index-_WKFJWoU.js +4 -0
- package/dist/{index-9EQ11-7o.js → index-aQmnJ9l7.js} +3 -3
- package/dist/{index-XvUjygA8.js → index-jQVrN-br.js} +1 -1
- package/dist/{index-SbtNfwjH.js → index-s72r9oDm.js} +355 -355
- package/dist/{index-IkeP1cDY.js → index-x4lkDi7r.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/{isSupportedCountry-wDuwCxBx.js → isSupportedCountry-CHPHKvcC.js} +1 -1
- package/package.json +1 -1
- 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
|
|
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;
|
|
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-
|
|
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,CA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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;;;;;;;;
|
|
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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g as m, i as C, p as n, a as p } from "./index-
|
|
2
|
-
import { i } from "./isSupportedCountry-
|
|
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,
|
|
@@ -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-
|
|
2
|
-
import { U as Sa } from "./UnpublishedEntity-
|
|
3
|
-
import { C as wa } from "./Card-
|
|
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,
|