@calcom/atoms 1.0.114 → 1.1.0-booker
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/README.md +21 -0
- package/dist/{AddressInput-VF2BcYWB.js → AddressInput-6TIOefqU.js} +3 -3
- package/dist/{AlbyPriceComponent-I4VGjeFQ.js → AlbyPriceComponent-zZlkVZTy.js} +29 -29
- package/dist/{PhoneInput-fAGB7rRq.js → PhoneInput-_EJl7Rqu.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-4kA2xtz7.js +1957 -0
- package/dist/index-ESVL5ZDq.js +82852 -0
- package/dist/{index-oT1fC7Ad.js → index-_P-UqUYu.js} +1 -1
- package/dist/packages/dayjs/locales.d.ts +1 -0
- package/dist/packages/dayjs/locales.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +2 -8
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -0
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +9 -8
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +5 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +18 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +22 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +18 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +14 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +4 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts +5 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts +1 -1
- package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +4 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +1 -2
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts +0 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts +9 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
- package/dist/packages/features/shell/navigation/NavigationItem.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +14 -13
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -2
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +4 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/usePlatformTabsNavigations.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +2 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +6 -0
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -32
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +9 -0
- package/dist/packages/platform/libraries/repositories.d.ts.map +1 -0
- package/dist/packages/platform/libraries/slots.d.ts +2 -2
- package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +11 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts +2 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts +2 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts +4 -3
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +4 -0
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
- package/dist/packages/prisma/zod/deployment.d.ts +3 -0
- package/dist/packages/prisma/zod/deployment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/destinationcalendar.d.ts +6 -0
- package/dist/packages/prisma/zod/destinationcalendar.d.ts.map +1 -1
- package/dist/packages/prisma/zod/role.d.ts +3 -0
- package/dist/packages/prisma/zod/role.d.ts.map +1 -1
- package/dist/packages/prisma/zod/selectedcalendar.d.ts +6 -0
- package/dist/packages/prisma/zod/selectedcalendar.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +316 -3
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/getSchedule.handler.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/reserveSlot.handler.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +50 -2027
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/globals.min.css +3 -16
- package/package.json +6 -3
- package/dist/AppCard-pDC8U-yB.js +0 -281
- package/dist/AppListCardPlatformWrapper-loLunYWd.js +0 -9
- package/dist/AppListCardWebWrapper-D4Jf6GP2.js +0 -74
- package/dist/AppSettingsInterface-IXKzuu1x.js +0 -23
- package/dist/AppSettingsInterface-lziyfc4I.js +0 -29
- package/dist/AppSettingsInterface-ojk6jWF7.js +0 -75
- package/dist/DateRangePicker-IYx0MUpg.js +0 -2405
- package/dist/EventTypeAppCardInterface--kWvVigG.js +0 -51
- package/dist/EventTypeAppCardInterface-1KTHO3G7.js +0 -33
- package/dist/EventTypeAppCardInterface-7lVRi0Xk.js +0 -34
- package/dist/EventTypeAppCardInterface-9XBZQdMQ.js +0 -24
- package/dist/EventTypeAppCardInterface-AZo1pqDp.js +0 -41
- package/dist/EventTypeAppCardInterface-DZ4D9D3W.js +0 -24
- package/dist/EventTypeAppCardInterface-EBFdClZD.js +0 -696
- package/dist/EventTypeAppCardInterface-FZryR-1y.js +0 -49
- package/dist/EventTypeAppCardInterface-KDF7jyPv.js +0 -51
- package/dist/EventTypeAppCardInterface-N3dSZHui.js +0 -24
- package/dist/EventTypeAppCardInterface-O9SdGwyA.js +0 -86
- package/dist/EventTypeAppCardInterface-Qw1evpmE.js +0 -32
- package/dist/EventTypeAppCardInterface-Z5nEUe-1.js +0 -24
- package/dist/EventTypeAppCardInterface-a64s2iWs.js +0 -34
- package/dist/EventTypeAppCardInterface-b8raVgeq.js +0 -31
- package/dist/EventTypeAppCardInterface-eaJodJji.js +0 -42
- package/dist/EventTypeAppCardInterface-k3Xp04ki.js +0 -34
- package/dist/EventTypeAppCardInterface-mfDCf5dr.js +0 -34
- package/dist/EventTypeAppCardInterface-pHUkN5bu.js +0 -41
- package/dist/EventTypeAppCardInterface-pOYWJtzY.js +0 -34
- package/dist/EventTypeAppCardInterface-rDg3IChY.js +0 -34
- package/dist/EventTypeAppCardInterface-rgWOAhB8.js +0 -24
- package/dist/EventTypeAppCardInterface-uzfRpOdc.js +0 -32
- package/dist/EventTypeAppCardInterface-v8qGKcOE.js +0 -34
- package/dist/EventTypeAppCardInterface-xHb-ACiF.js +0 -42
- package/dist/EventTypeAppCardInterface-zHnc4Mbg.js +0 -39
- package/dist/EventTypeAppSettingsInterface-3-SZIQ-K.js +0 -25
- package/dist/EventTypeAppSettingsInterface-969looOL.js +0 -23
- package/dist/EventTypeAppSettingsInterface-98MZ7He7.js +0 -120
- package/dist/EventTypeAppSettingsInterface-9GodkYYn.js +0 -42
- package/dist/EventTypeAppSettingsInterface-CWav7rpk.js +0 -43
- package/dist/EventTypeAppSettingsInterface-VEHCbWtC.js +0 -23
- package/dist/EventTypeAppSettingsInterface-bOoXGu5X.js +0 -221
- package/dist/EventTypeAppSettingsInterface-bUpznL_v.js +0 -48
- package/dist/EventTypeAppSettingsInterface-faJm9V_Q.js +0 -24
- package/dist/EventTypeAppSettingsInterface-g8GmoGC1.js +0 -78
- package/dist/EventTypeAppSettingsInterface-om-CMCRh.js +0 -72
- package/dist/EventTypeAppSettingsInterface-tcEkCwRz.js +0 -298
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-NUfFF7w2.js +0 -14
- package/dist/InstallAppButton-kqm9kHNr.js +0 -58
- package/dist/InstallAppButton-mOs3Tny1.js +0 -14
- package/dist/StripePaymentForm-zcleIq7N.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-3rF5prT9.js +0 -518
- package/dist/index-RiT9rcSU.js +0 -28
- package/dist/index-Swazt2OL.js +0 -156147
- package/dist/useIsAppEnabled-Hz7V9bEN.js +0 -18
package/package.json
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
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
|
|
7
|
+
"version": "1.1.0-booker",
|
|
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=12288' rm -rf dist && 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",
|
|
11
11
|
"publish-npm": "yarn build && npm publish --access public",
|
|
12
|
-
"test": "jest"
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"dev-on": "node scripts/dev-on.js",
|
|
14
|
+
"dev-off": "git checkout -- package.json vite.config.ts"
|
|
13
15
|
},
|
|
14
16
|
"devDependencies": {
|
|
15
17
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
"postcss-prefixer": "^3.0.0",
|
|
27
29
|
"postcss-prefixwrap": "1.46.0",
|
|
28
30
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
31
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
29
32
|
"ts-jest": "^29.1.2",
|
|
30
33
|
"typescript": "^5.7.2",
|
|
31
34
|
"vite": "^5.0.10",
|
|
@@ -70,7 +73,7 @@
|
|
|
70
73
|
"@radix-ui/react-toast": "^1.1.5",
|
|
71
74
|
"@radix-ui/react-tooltip-atoms": "npm:@radix-ui/react-tooltip@^1.0.0",
|
|
72
75
|
"@tanstack/react-query": "^5.17.15",
|
|
73
|
-
"class-variance-authority": "^0.
|
|
76
|
+
"class-variance-authority": "^0.7.0",
|
|
74
77
|
"clsx": "^2.0.0",
|
|
75
78
|
"dompurify": "^3.2.3",
|
|
76
79
|
"marked": "^15.0.3",
|
package/dist/AppCard-pDC8U-yB.js
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { jsx as l, Fragment as O, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { ag as V, ah as v, M as u, N as C, ai as W, y as A, q as H, u as T, aj as q, r as j, _ as N, ak as L, t as F, ae as M, al as g, p as U } from "./index-Swazt2OL.js";
|
|
3
|
-
import * as c from "react";
|
|
4
|
-
var y = c.forwardRef((e, r) => {
|
|
5
|
-
const { children: t, ...n } = e, s = c.Children.toArray(t), i = s.find(Z);
|
|
6
|
-
if (i) {
|
|
7
|
-
const o = i.props.children, f = s.map((d) => d === i ? c.Children.count(o) > 1 ? c.Children.only(null) : c.isValidElement(o) ? o.props.children : null : d);
|
|
8
|
-
return /* @__PURE__ */ l(x, { ...n, ref: r, children: c.isValidElement(o) ? c.cloneElement(o, void 0, f) : null });
|
|
9
|
-
}
|
|
10
|
-
return /* @__PURE__ */ l(x, { ...n, ref: r, children: t });
|
|
11
|
-
});
|
|
12
|
-
y.displayName = "Slot";
|
|
13
|
-
var x = c.forwardRef((e, r) => {
|
|
14
|
-
const { children: t, ...n } = e;
|
|
15
|
-
if (c.isValidElement(t)) {
|
|
16
|
-
const s = G(t);
|
|
17
|
-
return c.cloneElement(t, {
|
|
18
|
-
...p(n, t.props),
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
ref: r ? V(r, s) : s
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
return c.Children.count(t) > 1 ? c.Children.only(null) : null;
|
|
24
|
-
});
|
|
25
|
-
x.displayName = "SlotClone";
|
|
26
|
-
var Q = ({ children: e }) => /* @__PURE__ */ l(O, { children: e });
|
|
27
|
-
function Z(e) {
|
|
28
|
-
return c.isValidElement(e) && e.type === Q;
|
|
29
|
-
}
|
|
30
|
-
function p(e, r) {
|
|
31
|
-
const t = { ...r };
|
|
32
|
-
for (const n in r) {
|
|
33
|
-
const s = e[n], i = r[n];
|
|
34
|
-
/^on[A-Z]/.test(n) ? s && i ? t[n] = (...f) => {
|
|
35
|
-
i(...f), s(...f);
|
|
36
|
-
} : s && (t[n] = s) : n === "style" ? t[n] = { ...s, ...i } : n === "className" && (t[n] = [s, i].filter(Boolean).join(" "));
|
|
37
|
-
}
|
|
38
|
-
return { ...e, ...t };
|
|
39
|
-
}
|
|
40
|
-
function G(e) {
|
|
41
|
-
var n, s;
|
|
42
|
-
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
43
|
-
return t ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
44
|
-
}
|
|
45
|
-
const J = ({
|
|
46
|
-
children: e,
|
|
47
|
-
ref: r,
|
|
48
|
-
className: t
|
|
49
|
-
}) => {
|
|
50
|
-
const [n] = v();
|
|
51
|
-
return /* @__PURE__ */ l("div", { ref: n, className: u("bg-muted flex flex-col gap-4 rounded-2xl p-4", t), children: e });
|
|
52
|
-
}, R = ({
|
|
53
|
-
children: e,
|
|
54
|
-
ref: r,
|
|
55
|
-
as: t
|
|
56
|
-
}) => /* @__PURE__ */ l(t ? y : "h2", { ref: r, className: "text-emphasis text-base font-semibold leading-none", children: e }), _ = ({
|
|
57
|
-
children: e,
|
|
58
|
-
ref: r,
|
|
59
|
-
as: t
|
|
60
|
-
}) => /* @__PURE__ */ l(t ? y : "h3", { ref: r, className: "text-subtle line-clamp-1 text-sm", children: e }), b = ({
|
|
61
|
-
ref: e,
|
|
62
|
-
name: r,
|
|
63
|
-
size: t = "md",
|
|
64
|
-
iconSlot: n
|
|
65
|
-
}) => /* @__PURE__ */ l(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
ref: e,
|
|
69
|
-
className: u(
|
|
70
|
-
"bg-default border-subtle border-subtle flex items-center justify-center border",
|
|
71
|
-
t === "sm" && "rounded-md p-1",
|
|
72
|
-
t === "md" && "rounded-[10px] p-1.5"
|
|
73
|
-
),
|
|
74
|
-
children: n || /* @__PURE__ */ l(C, { name: r, className: u(t === "sm" && "h-4 w-4", t === "md" && "h-6 w-6") })
|
|
75
|
-
}
|
|
76
|
-
), K = ({
|
|
77
|
-
children: e,
|
|
78
|
-
ref: r,
|
|
79
|
-
icon: t,
|
|
80
|
-
title: n,
|
|
81
|
-
description: s,
|
|
82
|
-
iconSlot: i,
|
|
83
|
-
rawHeading: o
|
|
84
|
-
}) => /* @__PURE__ */ a("div", { ref: r, className: "flex items-center justify-between gap-3", children: [
|
|
85
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
86
|
-
t && !i && /* @__PURE__ */ l(b, { name: t }),
|
|
87
|
-
i && /* @__PURE__ */ l(b, { iconSlot: i }),
|
|
88
|
-
/* @__PURE__ */ a("div", { className: "flex flex-col gap-0.5", children: [
|
|
89
|
-
n && /* @__PURE__ */ l(R, { children: n }),
|
|
90
|
-
s && /* @__PURE__ */ l(_, { children: s }),
|
|
91
|
-
o && o
|
|
92
|
-
] })
|
|
93
|
-
] }),
|
|
94
|
-
e
|
|
95
|
-
] }), X = ({ children: e, ref: r }) => /* @__PURE__ */ l("div", { ref: r, className: "flex flex-col gap-4", children: e }), Y = ({ children: e, ref: r }) => {
|
|
96
|
-
const [t] = v();
|
|
97
|
-
return /* @__PURE__ */ l("div", { ref: t, className: "border-muted bg-default flex flex-col gap-4 rounded-xl border p-3", children: e });
|
|
98
|
-
}, z = ({
|
|
99
|
-
children: e,
|
|
100
|
-
ref: r,
|
|
101
|
-
icon: t,
|
|
102
|
-
title: n,
|
|
103
|
-
classNames: s,
|
|
104
|
-
justify: i = "between",
|
|
105
|
-
labelFor: o
|
|
106
|
-
}) => /* @__PURE__ */ a(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
ref: r,
|
|
110
|
-
className: u(
|
|
111
|
-
"flex items-center gap-2",
|
|
112
|
-
i === "between" ? "justify-between" : "justify-start",
|
|
113
|
-
s == null ? void 0 : s.container
|
|
114
|
-
),
|
|
115
|
-
children: [
|
|
116
|
-
/* @__PURE__ */ a("div", { className: u("flex items-center gap-2", s == null ? void 0 : s.title), children: [
|
|
117
|
-
t && /* @__PURE__ */ l(b, { name: t, size: "sm" }),
|
|
118
|
-
/* @__PURE__ */ l("div", { className: u("flex", s == null ? void 0 : s.title), children: /* @__PURE__ */ l("h4", { className: "text-default text-sm font-medium leading-none", id: o, children: n }) })
|
|
119
|
-
] }),
|
|
120
|
-
e
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
), $ = ({
|
|
124
|
-
children: e,
|
|
125
|
-
ref: r,
|
|
126
|
-
invert: t,
|
|
127
|
-
classNames: n
|
|
128
|
-
}) => /* @__PURE__ */ l(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
ref: r,
|
|
132
|
-
className: u(
|
|
133
|
-
"bg-muted flex flex-col rounded-lg px-[6px] py-1",
|
|
134
|
-
t && "bg-default border-subtle border",
|
|
135
|
-
n == null ? void 0 : n.container
|
|
136
|
-
),
|
|
137
|
-
children: e
|
|
138
|
-
}
|
|
139
|
-
), ee = ({
|
|
140
|
-
children: e,
|
|
141
|
-
ref: r
|
|
142
|
-
}) => /* @__PURE__ */ l("div", { ref: r, className: "bg-default border-subtle flex flex-col gap-2 rounded-xl border p-2", children: e }), h = Object.assign(J, {
|
|
143
|
-
Header: K,
|
|
144
|
-
Content: X,
|
|
145
|
-
Title: R,
|
|
146
|
-
Description: _,
|
|
147
|
-
SubSection: Y,
|
|
148
|
-
SubSectionHeader: z,
|
|
149
|
-
SubSectionContent: $,
|
|
150
|
-
SubSectionNested: ee
|
|
151
|
-
});
|
|
152
|
-
function te(e) {
|
|
153
|
-
const { status: r } = W.useSession();
|
|
154
|
-
return A.viewer.apps.appById.useQuery(
|
|
155
|
-
{ appId: e },
|
|
156
|
-
{
|
|
157
|
-
enabled: r === "authenticated"
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
function ne({
|
|
162
|
-
appId: e,
|
|
163
|
-
className: r,
|
|
164
|
-
returnTo: t,
|
|
165
|
-
teamId: n
|
|
166
|
-
}) {
|
|
167
|
-
const { t: s } = H(), { data: i } = te(e), o = A.useUtils(), f = T(null, {
|
|
168
|
-
returnTo: t,
|
|
169
|
-
onSuccess: (d) => {
|
|
170
|
-
o.viewer.apps.appById.invalidate({ appId: e }), o.viewer.apps.integrations.invalidate({
|
|
171
|
-
extendsFeature: "EventType",
|
|
172
|
-
...n && { teamId: n }
|
|
173
|
-
}), !(d != null && d.setupPending) && N(s("app_successfully_installed"), "success");
|
|
174
|
-
},
|
|
175
|
-
onError: (d) => {
|
|
176
|
-
d instanceof Error && N(d.message || s("app_could_not_be_installed"), "error");
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
return i ? /* @__PURE__ */ l(
|
|
180
|
-
q,
|
|
181
|
-
{
|
|
182
|
-
type: i.type,
|
|
183
|
-
teamsPlanRequired: i.teamsPlanRequired,
|
|
184
|
-
wrapperClassName: u("[@media(max-width:260px)]:w-full", r),
|
|
185
|
-
render: ({ useDefaultComponent: d, ...m }) => (d && (m = {
|
|
186
|
-
...m,
|
|
187
|
-
onClick: () => {
|
|
188
|
-
f.mutate({
|
|
189
|
-
type: i.type,
|
|
190
|
-
variant: i.variant,
|
|
191
|
-
slug: i.slug,
|
|
192
|
-
...n && { teamId: n }
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
}), /* @__PURE__ */ l(
|
|
196
|
-
j,
|
|
197
|
-
{
|
|
198
|
-
loading: f.isPending,
|
|
199
|
-
color: "secondary",
|
|
200
|
-
className: "[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center",
|
|
201
|
-
StartIcon: "plus",
|
|
202
|
-
...m,
|
|
203
|
-
children: s("add")
|
|
204
|
-
}
|
|
205
|
-
))
|
|
206
|
-
}
|
|
207
|
-
) : null;
|
|
208
|
-
}
|
|
209
|
-
function se({
|
|
210
|
-
app: e,
|
|
211
|
-
description: r,
|
|
212
|
-
switchOnClick: t,
|
|
213
|
-
switchChecked: n,
|
|
214
|
-
children: s,
|
|
215
|
-
returnTo: i,
|
|
216
|
-
teamId: o,
|
|
217
|
-
disableSwitch: f,
|
|
218
|
-
switchTooltip: d,
|
|
219
|
-
hideSettingsIcon: m = !1,
|
|
220
|
-
hideAppCardOptions: E = !1
|
|
221
|
-
}) {
|
|
222
|
-
const { t: w } = L(), [I] = v(), { setAppData: P, LockedIcon: k, disabled: B } = F(), D = M();
|
|
223
|
-
return /* @__PURE__ */ a(h, { className: u(!(e != null && e.isInstalled) && "rounded-xl"), children: [
|
|
224
|
-
/* @__PURE__ */ l(
|
|
225
|
-
h.Header,
|
|
226
|
-
{
|
|
227
|
-
rawHeading: /* @__PURE__ */ a("div", { children: [
|
|
228
|
-
/* @__PURE__ */ a("div", { className: "flex w-full items-center gap-1", children: [
|
|
229
|
-
/* @__PURE__ */ l(h.Title, { children: e == null ? void 0 : e.name }),
|
|
230
|
-
!(e != null && e.isInstalled) && /* @__PURE__ */ l("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)) })
|
|
231
|
-
] }),
|
|
232
|
-
/* @__PURE__ */ l(h.Description, { children: e == null ? void 0 : e.description })
|
|
233
|
-
] }),
|
|
234
|
-
iconSlot: /* @__PURE__ */ l(g, { href: `/apps/${e.slug}`, className: "flex h-8 w-8 items-center justify-center", children: /* @__PURE__ */ l(
|
|
235
|
-
"img",
|
|
236
|
-
{
|
|
237
|
-
className: u(
|
|
238
|
-
(e == null ? void 0 : e.logo.includes("-dark")) && "dark:invert",
|
|
239
|
-
"max-h-full max-w-full object-contain"
|
|
240
|
-
),
|
|
241
|
-
src: e == null ? void 0 : e.logo,
|
|
242
|
-
alt: e == null ? void 0 : e.name
|
|
243
|
-
}
|
|
244
|
-
) }),
|
|
245
|
-
children: /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("div", { children: e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ l("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ l(
|
|
246
|
-
U,
|
|
247
|
-
{
|
|
248
|
-
size: "sm",
|
|
249
|
-
disabled: !e.enabled || B || f,
|
|
250
|
-
onCheckedChange: (S) => {
|
|
251
|
-
t && t(S), P("enabled", S);
|
|
252
|
-
},
|
|
253
|
-
checked: n,
|
|
254
|
-
LockedIcon: k,
|
|
255
|
-
"data-testid": `${e.slug}-app-switch`,
|
|
256
|
-
tooltip: d
|
|
257
|
-
}
|
|
258
|
-
) }) : /* @__PURE__ */ l(
|
|
259
|
-
ne,
|
|
260
|
-
{
|
|
261
|
-
className: "ml-auto flex items-center",
|
|
262
|
-
appId: e.slug,
|
|
263
|
-
returnTo: i,
|
|
264
|
-
teamId: o
|
|
265
|
-
}
|
|
266
|
-
) }) })
|
|
267
|
-
}
|
|
268
|
-
),
|
|
269
|
-
E ? null : (e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ l("div", { ref: I, children: e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ a("div", { className: "relative text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
|
|
270
|
-
!m && !D && /* @__PURE__ */ l(g, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ l(C, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
|
|
271
|
-
s
|
|
272
|
-
] }) : /* @__PURE__ */ a("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
|
|
273
|
-
/* @__PURE__ */ l("p", { children: w("this_app_is_not_setup_already") }),
|
|
274
|
-
/* @__PURE__ */ l(g, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ l(j, { StartIcon: "settings", children: w("setup") }) })
|
|
275
|
-
] }) })
|
|
276
|
-
] });
|
|
277
|
-
}
|
|
278
|
-
export {
|
|
279
|
-
se as A,
|
|
280
|
-
h as S
|
|
281
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as P } from "react/jsx-runtime";
|
|
2
|
-
import { Q as i, s as y, R as A, U as R, A as Q } from "./index-Swazt2OL.js";
|
|
3
|
-
import { useMemo as $, 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 U(r) {
|
|
7
|
-
const o = y.useRouter(), c = A(), u = y.usePathname(), a = r.safeParse(c);
|
|
8
|
-
let s = $(() => ({}), []);
|
|
9
|
-
d(() => {
|
|
10
|
-
a.success && a.data && Object.entries(a.data).forEach(([e, t]) => {
|
|
11
|
-
if (e in c || !t)
|
|
12
|
-
return;
|
|
13
|
-
const n = new URLSearchParams(s);
|
|
14
|
-
n.set(String(e), String(t)), o.replace(`${u}?${n.toString()}`);
|
|
15
|
-
});
|
|
16
|
-
}, [a, r, o, u, c, s]), a.success ? s = a.data : a.success || console.error(a.error);
|
|
17
|
-
const m = b(
|
|
18
|
-
function(t, n) {
|
|
19
|
-
const p = new URLSearchParams(s);
|
|
20
|
-
p.set(String(t), String(n)), 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 n = s[e];
|
|
31
|
-
if (Array.isArray(n)) {
|
|
32
|
-
if (n.includes(t))
|
|
33
|
-
return;
|
|
34
|
-
m(e, [...n, t]);
|
|
35
|
-
} else
|
|
36
|
-
m(e, [t]);
|
|
37
|
-
}
|
|
38
|
-
function h(e, t) {
|
|
39
|
-
const n = s[e];
|
|
40
|
-
if (Array.isArray(n) && n.length > 1) {
|
|
41
|
-
const p = n.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 x = i.object({ hl: i.string().optional() });
|
|
59
|
-
function j(r) {
|
|
60
|
-
const { slug: o, shouldHighlight: c } = r, {
|
|
61
|
-
data: { hl: u }
|
|
62
|
-
} = U(x), a = 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
|
-
a.replace(`${h}${e !== "" ? `?${e}` : ""}`);
|
|
68
|
-
}, 3e3)), () => {
|
|
69
|
-
l.current && (clearTimeout(l.current), l.current = null);
|
|
70
|
-
}), [s, h, a, f, c]), /* @__PURE__ */ P(Q, { ...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 { q as r, f as u, r as i } from "./index-Swazt2OL.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 { q as i, f as l, r as m } from "./index-Swazt2OL.js";
|
|
4
|
-
function h() {
|
|
5
|
-
const { t: a } = i(), n = "metric", [e, r] = 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 (c) => {
|
|
14
|
-
r(c.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 { r as i, q as o } from "./index-Swazt2OL.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
|
-
};
|