@calcom/atoms 2.7.2 → 2.8.0
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 +14 -0
- package/dist/cal-atoms.js +138 -45
- package/dist/{index-D_xjDzPo.js → index-BrBTKoIj.js} +29177 -28818
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/badge.d.ts +16 -16
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/checkbox.d.ts +1 -1
- package/dist/src/components/ui/dialog.d.ts +4 -4
- package/dist/src/components/ui/dropdown.d.ts +8 -8
- package/dist/src/components/ui/icon.d.ts +2 -2
- package/dist/src/components/ui/show-toast.d.ts +1 -1
- package/dist/src/components/ui/switch.d.ts +1 -1
- package/dist/src/components/ui/text-field.d.ts +1 -1
- package/dist/src/components/ui/toast.d.ts +5 -5
- package/dist/src/contracts/bookings.d.ts +4 -4
- package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts +1 -1
- package/dist/src/hooks/bookings/use-cancel-booking.d.ts +1 -1
- package/dist/src/index.d.ts +81 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/vendor/form-builder/base-schema.d.ts +140 -140
- package/dist/src/vendor/form-builder/schema.d.ts +94 -94
- package/dist/src/vendor/form-builder/utils/variants-config.d.ts +6 -6
- package/dist/{stripe-payment-form-B8jt-Dp0.js → stripe-payment-form-2mrB04BK.js} +1 -1
- package/package.json +1 -1
- package/src/index.ts +130 -0
package/README.md
CHANGED
|
@@ -40,6 +40,20 @@ export default function MyApp() {
|
|
|
40
40
|
}
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
## Imports
|
|
44
|
+
|
|
45
|
+
Everything you need is exported from the package root:
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
import { Booker, useBooking, useSlotsForDate, useAtomsContext } from "@calcom/atoms";
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Subpath imports (`@calcom/atoms/booker/hooks/useSlotsForDate`) still work
|
|
52
|
+
for back-compat but the root import is preferred — it walks through a
|
|
53
|
+
single bundled module so React, hooks, and context providers stay on a
|
|
54
|
+
single instance even when consumers run other React libraries side by
|
|
55
|
+
side.
|
|
56
|
+
|
|
43
57
|
## Documentation
|
|
44
58
|
|
|
45
59
|
- Quickstart: <https://cal.com/docs/platform/quickstart>
|
package/dist/cal-atoms.js
CHANGED
|
@@ -1,47 +1,140 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as s, a as t, b as o, c as r, d as n, e as l, f as i, h as u, i as d, j as m, k as C, l as S, m as b, n as v, o as g, p as T, q as y, r as c, s as p, t as E, v as h, w as k, x as A, y as D, D as B, z as f, E as F, F as I, G as L, H as M, I as O, J as P, K as R, L as z, M as H, N as w, O as x, P as V, Q as N, R as G, S as W, T as U, U as _, V as j, X as Q, Y as q, Z as J, _ as K, $ as X, a0 as Y, a1 as Z, a2 as $, a3 as aa, a4 as ea, a5 as sa, a6 as ta, a7 as oa, a8 as ra, a9 as na, aa as la, ab as ia, ac as ua, ad as da, ae as ma, af as Ca, ag as Sa, ah as ba, ai as va, aj as ga, ak as Ta, al as ya, am as ca, an as pa, ao as Ea, ap as ha, aq as ka, ar as Aa, as as Da, at as Ba, au as fa, av as Fa, aw as Ia, ax as La, ay as Ma, az as Oa, aA as Pa, aB as Ra, aC as za, aD as Ha, aE as wa, aF as xa, aG as Va, aH as Na, aI as Ga, aJ as Wa, aK as Ua, aL as _a, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as Ka, aR as Xa, aS as Ya, aT as Za, aU as $a, aV as ae, aW as ee, aX as se, aY as te, aZ as oe, a_ as re, a$ as ne, b0 as le, b1 as ie, b2 as ue, b3 as de, b4 as me, b5 as Ce, b6 as Se, b7 as be, b8 as ve, b9 as ge, ba as Te, bb as ye, bc as ce, bd as pe, be as Ee, bf as he, bg as ke, bh as Ae, bi as De, bj as Be, bk as fe, bl as Fe, bm as Ie, bn as Le } from "./index-BrBTKoIj.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
t as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
u as
|
|
11
|
-
d as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
v as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
A as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
3
|
+
s as AddMembersWithSwitchPlatformWrapper,
|
|
4
|
+
t as AllDayEvents,
|
|
5
|
+
o as AssignAllTeamMembers,
|
|
6
|
+
r as AvailabilitySettings,
|
|
7
|
+
n as AvailableCellsForDay,
|
|
8
|
+
l as Booker,
|
|
9
|
+
i as BookerEmbed,
|
|
10
|
+
u as BookerSection,
|
|
11
|
+
d as BookerStoreProvider,
|
|
12
|
+
m as CalOAuthProvider,
|
|
13
|
+
C as CalProvider,
|
|
14
|
+
S as Calendar,
|
|
15
|
+
b as CalendarSettings,
|
|
16
|
+
v as CalendarStoreContext,
|
|
17
|
+
g as CalendarToggleContainer,
|
|
18
|
+
T as CalendarToggleContainerComponent,
|
|
19
|
+
y as CalendarView,
|
|
20
|
+
c as ChildrenEventTypeSelect,
|
|
21
|
+
p as ConferencingAppsSettings,
|
|
22
|
+
E as Connect,
|
|
23
|
+
h as CreateEventType,
|
|
24
|
+
k as CreateEventTypeFormAtoms,
|
|
25
|
+
A as CreateSchedule,
|
|
26
|
+
D as CreateScheduleForm,
|
|
27
|
+
B as DestinationCalendarSelector,
|
|
28
|
+
f as DestinationCalendarSettings,
|
|
29
|
+
F as DryRunMessage,
|
|
30
|
+
I as EmptyCell,
|
|
31
|
+
L as Event,
|
|
32
|
+
M as EventList,
|
|
33
|
+
O as EventScheduleItem,
|
|
34
|
+
P as EventScheduleItemComponent,
|
|
35
|
+
R as EventTypeSelectComponent,
|
|
36
|
+
z as EventTypeSettings,
|
|
37
|
+
H as ExternalRedirectInterstitial,
|
|
38
|
+
w as FromTime,
|
|
39
|
+
x as FromToTime,
|
|
40
|
+
V as GcalConnect,
|
|
41
|
+
N as Header,
|
|
42
|
+
G as LargeCalendar,
|
|
43
|
+
W as LearnMoreLink,
|
|
44
|
+
U as ListEventTypes,
|
|
45
|
+
_ as ListSchedules,
|
|
46
|
+
j as NoAvailabilityDialog,
|
|
47
|
+
Q as NotFound,
|
|
48
|
+
q as OnboardingEmbed,
|
|
49
|
+
J as OutlookConnect,
|
|
50
|
+
K as PaymentForm,
|
|
51
|
+
X as RedirectToInstantMeetingModal,
|
|
52
|
+
Y as Router,
|
|
53
|
+
Z as STATUS_COLOR_MAP,
|
|
54
|
+
$ as SchedulerHeading,
|
|
55
|
+
aa as SelectedCalendarsSettings,
|
|
56
|
+
ea as Spinner,
|
|
57
|
+
sa as StripeConnect,
|
|
58
|
+
ta as TimeFormatToggle,
|
|
59
|
+
oa as TroubleShooter,
|
|
60
|
+
ra as TroubleshooterListItemContainer,
|
|
61
|
+
na as TroubleshooterListItemHeader,
|
|
62
|
+
la as VerifyCodeDialog,
|
|
63
|
+
ia as assignLanes,
|
|
64
|
+
ua as buildOverlapGroups,
|
|
65
|
+
da as calculateEventLayouts,
|
|
66
|
+
ma as calculateHourSizeInPx,
|
|
67
|
+
Ca as createBookerStore,
|
|
68
|
+
Sa as createCalendarStore,
|
|
69
|
+
ba as createLayoutMap,
|
|
70
|
+
va as formatEventFromTime,
|
|
71
|
+
ga as formatEventFromToTime,
|
|
72
|
+
Ta as getBookerTimezone,
|
|
73
|
+
ya as getBookingDuration,
|
|
74
|
+
ca as getDaysBetweenDates,
|
|
75
|
+
pa as getHoursToDisplay,
|
|
76
|
+
Ea as getPrefetchMonthCount,
|
|
77
|
+
ha as getStatusColorClass,
|
|
78
|
+
ka as gridCellToDateTime,
|
|
79
|
+
Aa as isBookingDryRun,
|
|
80
|
+
Da as isInAllDayBar,
|
|
81
|
+
Ba as isOverlapping,
|
|
82
|
+
fa as isPrefetchNextMonthEnabled,
|
|
83
|
+
Fa as isTimeSlotAvailable,
|
|
84
|
+
Ia as mergeOverlappingDateRanges,
|
|
85
|
+
La as sortEvents,
|
|
86
|
+
Ma as useAddSelectedCalendar,
|
|
87
|
+
Oa as useAddVerifiedEmail,
|
|
88
|
+
Pa as useAllDayEventBar,
|
|
89
|
+
Ra as useAllDayEventSpans,
|
|
90
|
+
za as useAtomsContext,
|
|
91
|
+
Ha as useAvailableSlots,
|
|
92
|
+
wa as useAvailableTimeSlots,
|
|
93
|
+
xa as useBookerLayout,
|
|
94
|
+
Va as useBookerStore,
|
|
95
|
+
Na as useBookerTime,
|
|
96
|
+
Ga as useBooking,
|
|
97
|
+
Wa as useBookings,
|
|
98
|
+
Ua as useCalendarStore,
|
|
99
|
+
_a as useCancelBooking,
|
|
100
|
+
ja as useConnectedCalendars,
|
|
101
|
+
Qa as useCreateEventType,
|
|
102
|
+
qa as useCreateEventTypeForm,
|
|
103
|
+
Ja as useCreateTeamEventType,
|
|
104
|
+
Ka as useDeleteCalendarCredentials,
|
|
105
|
+
Xa as useEvent,
|
|
106
|
+
Ya as useEventTypeById,
|
|
107
|
+
Za as useEventTypeForm,
|
|
108
|
+
$a as useEventTypes,
|
|
109
|
+
ae as useGetVerifiedEmails,
|
|
110
|
+
ee as useHandleBookEvent,
|
|
111
|
+
se as useHandleRouteChange,
|
|
112
|
+
te as useInitalizeTroubleshooterStore,
|
|
113
|
+
oe as useInitializeBookerStore,
|
|
114
|
+
re as useInitializeWeekStart,
|
|
115
|
+
ne as useIsPlatform,
|
|
116
|
+
le as useIsQuickAvailabilityCheckFeatureEnabled,
|
|
117
|
+
ie as useLocalSet,
|
|
118
|
+
ue as useMe,
|
|
119
|
+
de as useNonEmptyScheduleDays,
|
|
120
|
+
me as useOrganizationBookings,
|
|
121
|
+
Ce as useOrganizationUserBookings,
|
|
122
|
+
Se as useOverlayCalendar,
|
|
123
|
+
be as useOverlayCalendarStore,
|
|
124
|
+
ve as useRemoveSelectedCalendar,
|
|
125
|
+
ge as useShouldShowArrows,
|
|
126
|
+
Te as useSkipConfirmStep,
|
|
127
|
+
ye as useSlotReservationId,
|
|
128
|
+
ce as useSlotsForAvailableDates,
|
|
129
|
+
pe as useSlotsForDate,
|
|
130
|
+
Ee as useStableTimezone,
|
|
131
|
+
he as useTabsNavigations,
|
|
132
|
+
ke as useTeamEventTypes,
|
|
133
|
+
Ae as useTeamMembersWithSegmentPlatform,
|
|
134
|
+
De as useTeams,
|
|
135
|
+
Be as useTroubleshooterStore,
|
|
136
|
+
fe as useVerifyCode,
|
|
137
|
+
Fe as useVerifyEmail,
|
|
138
|
+
Ie as validateLayout,
|
|
139
|
+
Le as weekdayDates
|
|
47
140
|
};
|