@calcom/atoms 1.0.99 → 1.0.101-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/dist/{AddressInput-WBfvWGkL.js → AddressInput-juYkbZV2.js} +3 -3
- package/dist/{AlbyPriceComponent-eW8bnLtO.js → AlbyPriceComponent-zPblWsmO.js} +28 -28
- package/dist/{PhoneInput-LeK3XZ0X.js → PhoneInput-lzIUvvEp.js} +1 -1
- package/dist/cal-atoms.js +3 -34
- package/dist/index-1iD3RAuF.js +83360 -0
- package/dist/index-4eiX6cBE.js +1957 -0
- package/dist/{index-mhIxRvCU.js → index-pxPagOVY.js} +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +6 -0
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +17 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/get-booking.d.ts +3 -0
- package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts +4 -2
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts +9 -0
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts.map +1 -0
- package/dist/packages/features/data-table/hooks/useSegments.d.ts +3 -0
- package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -0
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts +3 -0
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts.map +1 -0
- package/dist/packages/features/data-table/index.d.ts +1 -1
- package/dist/packages/features/data-table/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.d.ts +7 -0
- package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.test.d.ts +2 -0
- package/dist/packages/features/data-table/lib/dateRange.test.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/types.d.ts +31 -6
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +1 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts +3 -0
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +3 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -3
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts +11 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +4 -2
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +3 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.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/recurring/RecurringEventController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +17 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts +1 -0
- package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/apple/AppleConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/google/GcalConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/outlook/OutlookConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +12 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts +32 -0
- package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts +3 -10
- package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +17 -0
- package/dist/packages/platform/atoms/hooks/usePublicEvent.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/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +2 -4
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +2 -0
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +2 -0
- 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/get-bookings.input.d.ts.map +1 -1
- package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts +5 -0
- package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts.map +1 -0
- package/dist/packages/platform/types/organizations/bookings/index.d.ts +2 -0
- package/dist/packages/platform/types/organizations/bookings/index.d.ts.map +1 -0
- package/dist/packages/platform/types/organizations/index.d.ts +1 -0
- package/dist/packages/platform/types/organizations/index.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -4
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +15 -3
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
- package/dist/packages/platform/types/teams/outputs/index.d.ts +1 -0
- package/dist/packages/platform/types/teams/outputs/index.d.ts.map +1 -1
- package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts +9 -0
- package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts.map +1 -0
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +3 -0
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts.map +1 -1
- package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
- package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
- package/dist/packages/prisma/zod/filtersegment.d.ts +3 -0
- package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/task.d.ts +3 -0
- package/dist/packages/prisma/zod/task.d.ts.map +1 -1
- package/dist/packages/prisma/zod/user.d.ts +3 -0
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -0
- package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +126 -3
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +408 -5
- 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/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +6 -0
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/globals.min.css +2 -14
- package/package.json +2 -2
- package/dist/AppCard-a2VNbyLx.js +0 -162
- package/dist/AppListCardPlatformWrapper-C8hnPpP4.js +0 -9
- package/dist/AppListCardWebWrapper-DvvSERyw.js +0 -74
- package/dist/AppSettingsInterface-277vkITp.js +0 -75
- package/dist/AppSettingsInterface-cKTul9l1.js +0 -29
- package/dist/AppSettingsInterface-cRYupPyd.js +0 -23
- package/dist/DateRangePicker-vgjaMql7.js +0 -2418
- package/dist/EventTypeAppCardInterface-5SmitGNV.js +0 -24
- package/dist/EventTypeAppCardInterface-5oCKHCnt.js +0 -24
- package/dist/EventTypeAppCardInterface-DCGeU2Nt.js +0 -32
- package/dist/EventTypeAppCardInterface-E0Qss22P.js +0 -39
- package/dist/EventTypeAppCardInterface-EjBlklYZ.js +0 -32
- package/dist/EventTypeAppCardInterface-J-7B6Xjo.js +0 -34
- package/dist/EventTypeAppCardInterface-KduqlFNa.js +0 -34
- package/dist/EventTypeAppCardInterface-MS4ucwo6.js +0 -49
- package/dist/EventTypeAppCardInterface-PTb9KLMK.js +0 -31
- package/dist/EventTypeAppCardInterface-Sy_wEWq8.js +0 -493
- package/dist/EventTypeAppCardInterface-UnxmvFiF.js +0 -42
- package/dist/EventTypeAppCardInterface-Y4hW3FSd.js +0 -24
- package/dist/EventTypeAppCardInterface-ax3KRlWb.js +0 -41
- package/dist/EventTypeAppCardInterface-gWjvfWM8.js +0 -34
- package/dist/EventTypeAppCardInterface-hdSBbtYi.js +0 -34
- package/dist/EventTypeAppCardInterface-i0iSNHI5.js +0 -51
- package/dist/EventTypeAppCardInterface-iRFQuaNc.js +0 -24
- package/dist/EventTypeAppCardInterface-iye41eH9.js +0 -34
- package/dist/EventTypeAppCardInterface-jPx0Q4vg.js +0 -42
- package/dist/EventTypeAppCardInterface-jsVu8y8O.js +0 -24
- package/dist/EventTypeAppCardInterface-k6-pyXdz.js +0 -51
- package/dist/EventTypeAppCardInterface-rV9JaOnf.js +0 -86
- package/dist/EventTypeAppCardInterface-tRwK3uo8.js +0 -34
- package/dist/EventTypeAppCardInterface-u3dNHTwX.js +0 -33
- package/dist/EventTypeAppCardInterface-urvIbTUy.js +0 -41
- package/dist/EventTypeAppCardInterface-yEwxGABY.js +0 -34
- package/dist/EventTypeAppSettingsInterface-H0Y7R_6K.js +0 -48
- package/dist/EventTypeAppSettingsInterface-HjjrUG-6.js +0 -120
- package/dist/EventTypeAppSettingsInterface-IlX26-MP.js +0 -78
- package/dist/EventTypeAppSettingsInterface-UEd9lbfG.js +0 -23
- package/dist/EventTypeAppSettingsInterface-VctSrf5M.js +0 -43
- package/dist/EventTypeAppSettingsInterface-VdsSNh9p.js +0 -25
- package/dist/EventTypeAppSettingsInterface-XljkqZTl.js +0 -23
- package/dist/EventTypeAppSettingsInterface-YGCAMT_H.js +0 -72
- package/dist/EventTypeAppSettingsInterface-cZcfyfGn.js +0 -24
- package/dist/EventTypeAppSettingsInterface-mb6aW1Vk.js +0 -221
- package/dist/EventTypeAppSettingsInterface-t9OOHsGu.js +0 -42
- package/dist/EventTypeAppSettingsInterface-zpEk1DKo.js +0 -298
- package/dist/InstallAppButton-0rF_k2oO.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-LAgGkMR5.js +0 -14
- package/dist/InstallAppButton-mCwpgGMb.js +0 -58
- package/dist/StripePaymentForm-7wEfBhaI.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/framer-features-OfBOvlO4.js +0 -443
- package/dist/index-61yVVkPy.js +0 -28
- package/dist/index-E1a1GKmY.js +0 -155405
- package/dist/index-NLytQWtD.js +0 -511
- package/dist/packages/features/data-table/lib/resizing.d.ts +0 -9
- package/dist/packages/features/data-table/lib/resizing.d.ts.map +0 -1
- package/dist/packages/features/data-table/lib/segments.d.ts +0 -27
- package/dist/packages/features/data-table/lib/segments.d.ts.map +0 -1
- package/dist/useIsAppEnabled-bcfIdtzp.js +0 -18
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
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.0.101-booker",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --
|
|
9
|
+
"dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --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",
|
|
11
11
|
"publish": "rm -rf dist && yarn build && npm publish --access public",
|
|
12
12
|
"test": "jest"
|
package/dist/AppCard-a2VNbyLx.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { a7 as S, y as N, q as B, u as O, a8 as P, M as r, r as w, U as v, a9 as k, aa as C, t as j, ab as $, ac as f, ad as q, ae as E, p as L, X as R } from "./index-E1a1GKmY.js";
|
|
3
|
-
function T(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 U({
|
|
13
|
-
appId: e,
|
|
14
|
-
className: a,
|
|
15
|
-
returnTo: m,
|
|
16
|
-
teamId: n
|
|
17
|
-
}) {
|
|
18
|
-
const { t: d } = B(), { data: i } = T(e), o = N.useUtils(), u = O(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
|
-
P,
|
|
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 z({
|
|
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 } = k(), [b] = C(), { setAppData: A, LockedIcon: I, disabled: _ } = j(), x = $();
|
|
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(q, { 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
|
-
U,
|
|
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(R, { 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
|
-
z as A
|
|
162
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as P } from "react/jsx-runtime";
|
|
2
|
-
import { Z as i, s as y, _ as A, $, A as R } from "./index-E1a1GKmY.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(), a = r.safeParse(c);
|
|
8
|
-
let s = Q(() => ({}), []);
|
|
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 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), a = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = $(), 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(R, { ...r });
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
j as default
|
|
74
|
-
};
|
|
@@ -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-E1a1GKmY.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
|
-
};
|
|
@@ -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-E1a1GKmY.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,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-E1a1GKmY.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
|
-
};
|