@calcom/atoms 1.0.97-beta-3 → 1.0.97-booker-2

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 (72) hide show
  1. package/dist/{AddressInput-LPJtHhnk.js → AddressInput-W-XdY4qU.js} +3 -3
  2. package/dist/{AlbyPriceComponent-VO8iEUWb.js → AlbyPriceComponent-nBe_4ylu.js} +19 -19
  3. package/dist/{PhoneInput-saKL4loW.js → PhoneInput-iIT9lpZf.js} +2 -2
  4. package/dist/cal-atoms.js +3 -34
  5. package/dist/{framer-features-K_TB52kd.js → framer-features-swH-ehNh.js} +63 -63
  6. package/dist/{index-IPz9Apiv.js → index-0motN_6U.js} +1 -1
  7. package/dist/index-aZS0_Iu8.js +1957 -0
  8. package/dist/index-iVm4HGuW.js +79423 -0
  9. package/dist/index-mBOxto7x.js +1258 -0
  10. package/dist/isSupportedCountry-xN7Xshgi.js +487 -0
  11. package/dist/packages/platform/atoms/index.d.ts +0 -32
  12. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  13. package/dist/style.css +1 -1
  14. package/globals.min.css +2 -22
  15. package/package.json +1 -1
  16. package/dist/AppCard-cTyZ7qdO.js +0 -162
  17. package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +0 -9
  18. package/dist/AppListCardWebWrapper-nLRKr-Qu.js +0 -74
  19. package/dist/AppSettingsInterface-1iuEhZRw.js +0 -23
  20. package/dist/AppSettingsInterface-9nYzo3Ef.js +0 -29
  21. package/dist/AppSettingsInterface-Y7iloRRd.js +0 -75
  22. package/dist/DateRangePicker-zh9gM3ld.js +0 -2401
  23. package/dist/EventTypeAppCardInterface-0tcE4MHz.js +0 -32
  24. package/dist/EventTypeAppCardInterface-2xzo_8rb.js +0 -453
  25. package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +0 -41
  26. package/dist/EventTypeAppCardInterface-4dkcilsD.js +0 -51
  27. package/dist/EventTypeAppCardInterface-A7WN14Mn.js +0 -34
  28. package/dist/EventTypeAppCardInterface-BbJv67UJ.js +0 -49
  29. package/dist/EventTypeAppCardInterface-D42_2WwA.js +0 -42
  30. package/dist/EventTypeAppCardInterface-F9zy0_KX.js +0 -24
  31. package/dist/EventTypeAppCardInterface-LB9yguQb.js +0 -39
  32. package/dist/EventTypeAppCardInterface-PGX33FFN.js +0 -42
  33. package/dist/EventTypeAppCardInterface-PaCD78C8.js +0 -33
  34. package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +0 -51
  35. package/dist/EventTypeAppCardInterface-S5bK4a_4.js +0 -24
  36. package/dist/EventTypeAppCardInterface-SXV5NhVT.js +0 -24
  37. package/dist/EventTypeAppCardInterface-SdCRwS0b.js +0 -34
  38. package/dist/EventTypeAppCardInterface-TV1GspR-.js +0 -41
  39. package/dist/EventTypeAppCardInterface-WrBEdjss.js +0 -86
  40. package/dist/EventTypeAppCardInterface-Xl60vAW7.js +0 -34
  41. package/dist/EventTypeAppCardInterface-bY6zHj23.js +0 -34
  42. package/dist/EventTypeAppCardInterface-bpyx9DoB.js +0 -34
  43. package/dist/EventTypeAppCardInterface-dSD0TA4p.js +0 -34
  44. package/dist/EventTypeAppCardInterface-hulmgxtc.js +0 -24
  45. package/dist/EventTypeAppCardInterface-n8fugRqn.js +0 -32
  46. package/dist/EventTypeAppCardInterface-qqnnC5vq.js +0 -24
  47. package/dist/EventTypeAppCardInterface-rVMclz_u.js +0 -34
  48. package/dist/EventTypeAppCardInterface-zXewU-bg.js +0 -31
  49. package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +0 -221
  50. package/dist/EventTypeAppSettingsInterface-5hQr6WTa.js +0 -25
  51. package/dist/EventTypeAppSettingsInterface-CwuQI4XA.js +0 -120
  52. package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +0 -43
  53. package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +0 -78
  54. package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +0 -48
  55. package/dist/EventTypeAppSettingsInterface-ccBCyO4S.js +0 -23
  56. package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +0 -42
  57. package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +0 -72
  58. package/dist/EventTypeAppSettingsInterface-sOLaF1pR.js +0 -23
  59. package/dist/EventTypeAppSettingsInterface-v8a7XnIr.js +0 -24
  60. package/dist/EventTypeAppSettingsInterface-xlYsU6Vi.js +0 -298
  61. package/dist/InstallAppButton-34JAPxwK.js +0 -14
  62. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  63. package/dist/InstallAppButton-ihX89_K4.js +0 -58
  64. package/dist/InstallAppButton-zjD9dbE7.js +0 -14
  65. package/dist/StripePaymentForm-dfxxUj2E.js +0 -493
  66. package/dist/currencyOptions-kannG2hu.js +0 -61
  67. package/dist/index-81plgMPe.js +0 -28
  68. package/dist/index-engsJK56.js +0 -511
  69. package/dist/index-ite7gJ1a.js +0 -13
  70. package/dist/index-ykl8OQ78.js +0 -154402
  71. package/dist/isSupportedCountry-RPoEk3Bi.js +0 -7
  72. package/dist/useIsAppEnabled-jQTpW-EN.js +0 -18
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.97-beta-3",
7
+ "version": "1.0.97-booker-2",
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": "NODE_OPTIONS='--max_old_space_size=16384' yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify && mkdir ./dist/packages/prisma-client && cp -rf ../../../node_modules/.prisma/client/*.d.ts ./dist/packages/prisma-client",
@@ -1,162 +0,0 @@
1
- import { jsx as s, jsxs as l } from "react/jsx-runtime";
2
- import { ag as S, R as N, y as k, x as B, ah as O, Z as r, z as w, a2 as v, ai as P, aj as j, J as C, ak as R, al as f, am as $, an as E, w as L, a4 as T } from "./index-ykl8OQ78.js";
3
- function q(e) {
4
- const { status: a } = S.useSession();
5
- return N.viewer.apps.appById.useQuery(
6
- { appId: e },
7
- {
8
- enabled: a === "authenticated"
9
- }
10
- );
11
- }
12
- function z({
13
- appId: e,
14
- className: a,
15
- returnTo: m,
16
- teamId: n
17
- }) {
18
- const { t: d } = k(), { data: i } = q(e), o = N.useUtils(), u = B(null, {
19
- returnTo: m,
20
- onSuccess: (t) => {
21
- o.viewer.apps.appById.invalidate({ appId: e }), o.viewer.apps.integrations.invalidate({
22
- extendsFeature: "EventType",
23
- ...n && { teamId: n }
24
- }), !(t != null && t.setupPending) && v(d("app_successfully_installed"), "success");
25
- },
26
- onError: (t) => {
27
- t instanceof Error && v(t.message || d("app_could_not_be_installed"), "error");
28
- }
29
- });
30
- return i ? /* @__PURE__ */ s(
31
- O,
32
- {
33
- type: i.type,
34
- teamsPlanRequired: i.teamsPlanRequired,
35
- wrapperClassName: r("[@media(max-width:260px)]:w-full", a),
36
- render: ({ useDefaultComponent: t, ...c }) => (t && (c = {
37
- ...c,
38
- onClick: () => {
39
- u.mutate({
40
- type: i.type,
41
- variant: i.variant,
42
- slug: i.slug,
43
- ...n && { teamId: n }
44
- });
45
- }
46
- }), /* @__PURE__ */ s(
47
- w,
48
- {
49
- loading: u.isPending,
50
- color: "secondary",
51
- className: "[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center",
52
- StartIcon: "plus",
53
- ...c,
54
- children: d("add")
55
- }
56
- ))
57
- }
58
- ) : null;
59
- }
60
- function F({
61
- app: e,
62
- description: a,
63
- switchOnClick: m,
64
- switchChecked: n,
65
- children: d,
66
- returnTo: i,
67
- teamId: o,
68
- disableSwitch: u,
69
- switchTooltip: t,
70
- hideSettingsIcon: c = !1,
71
- hideAppCardOptions: y = !1
72
- }) {
73
- const { t: h } = P(), [b] = j(), { setAppData: A, LockedIcon: I, disabled: _ } = C(), x = R();
74
- return /* @__PURE__ */ l(
75
- "div",
76
- {
77
- className: r(
78
- "border-subtle",
79
- (e == null ? void 0 : e.isInstalled) && "mb-4 rounded-md border",
80
- !e.enabled && "grayscale"
81
- ),
82
- children: [
83
- /* @__PURE__ */ s("div", { className: r(e.isInstalled ? "p-4 text-sm sm:p-4" : "px-5 py-4 text-sm sm:px-5"), children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-2 sm:flex-row sm:gap-0", children: [
84
- /* @__PURE__ */ s(
85
- f,
86
- {
87
- href: `/apps/${e.slug}`,
88
- className: r(e != null && e.isInstalled ? "mr-[11px]" : "mr-3", "h-auto w-10 rounded-sm"),
89
- children: /* @__PURE__ */ s(
90
- "img",
91
- {
92
- className: r(
93
- (e == null ? void 0 : e.logo.includes("-dark")) && "dark:invert",
94
- e != null && e.isInstalled ? "min-w-[42px]" : "min-w-[40px]",
95
- "w-full"
96
- ),
97
- src: e == null ? void 0 : e.logo,
98
- alt: e == null ? void 0 : e.name
99
- }
100
- )
101
- }
102
- ),
103
- /* @__PURE__ */ l("div", { className: "flex flex-col pe-3", children: [
104
- /* @__PURE__ */ l("div", { className: "text-emphasis", children: [
105
- /* @__PURE__ */ s("span", { className: r((e == null ? void 0 : e.isInstalled) && "text-base", "font-semibold leading-4"), children: e == null ? void 0 : e.name }),
106
- !(e != null && e.isInstalled) && /* @__PURE__ */ s("span", { className: "bg-emphasis ml-1 rounded px-1 py-0.5 text-xs font-medium leading-3 tracking-[0.01em]", children: (e == null ? void 0 : e.categories[0].charAt(0).toUpperCase()) + (e == null ? void 0 : e.categories[0].slice(1)) })
107
- ] }),
108
- /* @__PURE__ */ s("p", { title: e == null ? void 0 : e.description, className: "text-default line-clamp-1 pt-1 text-sm font-normal", children: a || (e == null ? void 0 : e.description) })
109
- ] }),
110
- /* @__PURE__ */ l("div", { className: "ml-auto flex items-center space-x-2", children: [
111
- e.credentialOwner && !x && /* @__PURE__ */ s("div", { className: "ml-auto", children: /* @__PURE__ */ s($, { variant: "gray", children: /* @__PURE__ */ l("div", { className: "flex items-center", children: [
112
- /* @__PURE__ */ s(
113
- E,
114
- {
115
- className: "mr-2",
116
- alt: e.credentialOwner.name || "Credential Owner Name",
117
- size: "sm",
118
- imageSrc: e.credentialOwner.avatar
119
- }
120
- ),
121
- e.credentialOwner.name
122
- ] }) }) }),
123
- e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ s("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ s(
124
- L,
125
- {
126
- disabled: !e.enabled || _ || u,
127
- onCheckedChange: (g) => {
128
- m && m(g), A("enabled", g);
129
- },
130
- checked: n,
131
- LockedIcon: I,
132
- "data-testid": `${e.slug}-app-switch`,
133
- tooltip: t
134
- }
135
- ) }) : /* @__PURE__ */ s(
136
- z,
137
- {
138
- className: "ml-auto flex items-center",
139
- appId: e.slug,
140
- returnTo: i,
141
- teamId: o
142
- }
143
- )
144
- ] })
145
- ] }) }),
146
- y ? null : /* @__PURE__ */ l("div", { ref: b, children: [
147
- (e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ s("hr", { className: "border-subtle" }),
148
- e != null && e.isInstalled && n ? e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ l("div", { className: "relative p-4 pt-5 text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
149
- !c && !x && /* @__PURE__ */ s(f, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ s(T, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
150
- d
151
- ] }) : /* @__PURE__ */ l("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
152
- /* @__PURE__ */ s("p", { children: h("this_app_is_not_setup_already") }),
153
- /* @__PURE__ */ s(f, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ s(w, { StartIcon: "settings", children: h("setup") }) })
154
- ] }) : null
155
- ] })
156
- ]
157
- }
158
- );
159
- }
160
- export {
161
- F as A
162
- };
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { A as p } from "./index-ykl8OQ78.js";
3
- function s(o) {
4
- const t = `https://app.cal.com${o.logo}`;
5
- return /* @__PURE__ */ r(p, { ...o, logo: t });
6
- }
7
- export {
8
- s as default
9
- };
@@ -1,74 +0,0 @@
1
- import { jsx as P } from "react/jsx-runtime";
2
- import { a6 as i, G as y, a7 as A, a8 as R, A as $ } from "./index-ykl8OQ78.js";
3
- import { useMemo as Q, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
4
- i.string().or(i.number()).or(i.array(i.number())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
5
- i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
6
- function x(r) {
7
- const o = y.useRouter(), c = A(), u = y.usePathname(), n = r.safeParse(c);
8
- let s = Q(() => ({}), []);
9
- d(() => {
10
- n.success && n.data && Object.entries(n.data).forEach(([e, t]) => {
11
- if (e in c || !t)
12
- return;
13
- const a = new URLSearchParams(s);
14
- a.set(String(e), String(t)), o.replace(`${u}?${a.toString()}`);
15
- });
16
- }, [n, r, o, u, c, s]), n.success ? s = n.data : n.success || console.error(n.error);
17
- const m = b(
18
- function(t, a) {
19
- const p = new URLSearchParams(s);
20
- p.set(String(t), String(a)), o.replace(`${u}?${p.toString()}`);
21
- },
22
- // eslint-disable-next-line react-hooks/exhaustive-deps
23
- [s, o]
24
- );
25
- function l(e) {
26
- const t = new URLSearchParams(s);
27
- t.delete(String(e)), o.replace(`${u}?${t.toString()}`);
28
- }
29
- function f(e, t) {
30
- const a = s[e];
31
- if (Array.isArray(a)) {
32
- if (a.includes(t))
33
- return;
34
- m(e, [...a, t]);
35
- } else
36
- m(e, [t]);
37
- }
38
- function h(e, t) {
39
- const a = s[e];
40
- if (Array.isArray(a) && a.length > 1) {
41
- const p = a.filter((S) => S !== t);
42
- m(e, p);
43
- } else
44
- l(e);
45
- }
46
- function g() {
47
- u !== null && o.replace(u);
48
- }
49
- return {
50
- data: s,
51
- setQuery: m,
52
- removeByKey: l,
53
- pushItemToKey: f,
54
- removeItemByKeyAndValue: h,
55
- removeAllQueryParams: g
56
- };
57
- }
58
- const C = i.object({ hl: i.string().optional() });
59
- function j(r) {
60
- const { slug: o, shouldHighlight: c } = r, {
61
- data: { hl: u }
62
- } = x(C), n = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = R(), h = y.usePathname();
63
- return d(() => (c && s && f !== null && h !== null && (l.current = setTimeout(() => {
64
- const g = new URLSearchParams(f.toString());
65
- g.delete("hl"), g.delete("category"), m(!1);
66
- const e = g.toString();
67
- n.replace(`${h}${e !== "" ? `?${e}` : ""}`);
68
- }, 3e3)), () => {
69
- l.current && (clearTimeout(l.current), l.current = null);
70
- }), [s, h, n, f, c]), /* @__PURE__ */ P($, { ...r });
71
- }
72
- export {
73
- j as default
74
- };
@@ -1,23 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { y as r, k as u, z as i } from "./index-ykl8OQ78.js";
4
- function d() {
5
- const { t: e } = r(), [s, n] = p("");
6
- return /* @__PURE__ */ o("div", { className: "space-y-4 px-4 pb-4 pt-4 text-sm", children: [
7
- /* @__PURE__ */ t(
8
- u,
9
- {
10
- placeholder: "Some Input",
11
- value: s,
12
- name: "Enter Input",
13
- onChange: async (a) => {
14
- n(a.target.value);
15
- }
16
- }
17
- ),
18
- /* @__PURE__ */ t(i, { children: e("submit") })
19
- ] });
20
- }
21
- export {
22
- d as default
23
- };
@@ -1,29 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- import { y as i, k as l, z as m } from "./index-ykl8OQ78.js";
4
- function h() {
5
- const { t: a } = i(), n = "metric", [e, c] = s("");
6
- return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
7
- /* @__PURE__ */ t(
8
- l,
9
- {
10
- placeholder: "San Francisco",
11
- value: e,
12
- name: "Enter City",
13
- onChange: async (r) => {
14
- c(r.target.value);
15
- }
16
- }
17
- ),
18
- /* @__PURE__ */ t(
19
- m,
20
- {
21
- href: `webcal://weather-in-calendar.com/cal/weather-cal.php?city=${e}&units=${n}&temperature=day`,
22
- children: a("add_to_calendar")
23
- }
24
- )
25
- ] });
26
- }
27
- export {
28
- h as default
29
- };
@@ -1,75 +0,0 @@
1
- import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { z as i, y as o } from "./index-ykl8OQ78.js";
3
- function d({ template: t }) {
4
- return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
5
- /* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
6
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "mr-4 flex h-12 w-12 items-center justify-center rounded-md p-1", children: /* @__PURE__ */ e("img", { className: "h-8", alt: t.app, src: `/api/app-store/zapier/${t.icon}` }) }) }),
7
- /* @__PURE__ */ e("div", { className: "mr-4", children: /* @__PURE__ */ a("div", { children: [
8
- /* @__PURE__ */ e("p", { className: "text-emphasis truncate text-sm font-medium leading-4", children: t.app }),
9
- /* @__PURE__ */ e("p", { className: "text-subtle mt-[2px] text-sm", children: t.text })
10
- ] }) })
11
- ] }),
12
- /* @__PURE__ */ e("div", { className: "hidden w-full sm:block", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: " w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) }),
13
- /* @__PURE__ */ e("div", { className: "mt-2 block w-full sm:hidden", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: "w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) })
14
- ] });
15
- }
16
- const n = [
17
- {
18
- icon: "gmail.svg",
19
- app: "Gmail",
20
- text: "Send emails via Gmail for scheduled events",
21
- link: "https://zapier.com/app/editor/template/1071345"
22
- },
23
- {
24
- icon: "googleSheets.svg",
25
- app: "Google Sheets",
26
- text: "Create Google Sheets rows for scheduled events",
27
- link: "https://zapier.com/app/editor/template/1082047"
28
- },
29
- {
30
- icon: "salesforce.svg",
31
- app: "Salesforce",
32
- text: "Create Salesforce leads from new bookings",
33
- link: "https://zapier.com/app/editor/template/1082050"
34
- },
35
- {
36
- icon: "todoist.svg",
37
- app: "Todoist",
38
- text: "Create Todoist tasks for scheduled events",
39
- link: "https://zapier.com/app/editor/template/1082073"
40
- },
41
- {
42
- icon: "gmail.svg",
43
- app: "Gmail",
44
- text: "Send emails via Gmail for rescheduled events",
45
- link: "https://zapier.com/app/editor/template/1083605"
46
- },
47
- {
48
- icon: "gmail.svg",
49
- app: "Gmail",
50
- text: "Send emails via Gmail for cancelled events",
51
- link: "https://zapier.com/app/editor/template/1083609"
52
- },
53
- {
54
- icon: "gmail.svg",
55
- app: "Gmail",
56
- text: "Send emails via Gmail after scheduled meetings end",
57
- link: "https://zapier.com/app/editor/template/1083613"
58
- },
59
- {
60
- icon: "googleCalendar.svg",
61
- app: "Google Calendar",
62
- text: "Add new bookings to Google Calendar",
63
- link: "https://zapier.com/app/editor/template/1083651"
64
- }
65
- ];
66
- function m() {
67
- const { t } = o();
68
- return /* @__PURE__ */ a(r, { children: [
69
- /* @__PURE__ */ e("div", { className: "text-sm font-semibold leading-4 ", children: t("get_started_zapier_templates") }),
70
- /* @__PURE__ */ e("div", { className: "mt-4 grid gap-4 md:grid-cols-2", children: n.map((s, l) => /* @__PURE__ */ e(d, { template: s }, l)) })
71
- ] });
72
- }
73
- export {
74
- m as default
75
- };