@calcom/atoms 1.2.0-booker → 1.3.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.
Files changed (155) hide show
  1. package/README.md +17 -1
  2. package/dist/{AddressInput-_Diya_zo.js → AddressInput-WXZaR4AM.js} +1 -1
  3. package/dist/{AlbyPriceComponent-fIgFEUXN.js → AlbyPriceComponent-HWQCTeD1.js} +1 -1
  4. package/dist/{PhoneInput-MNv3E3Ho.js → PhoneInput-6J6htPeB.js} +1 -1
  5. package/dist/cal-atoms.js +1 -1
  6. package/dist/{index-mKRiKaF6.js → index-7pq3HQ5u.js} +171 -171
  7. package/dist/{index-TYx-qK4G.js → index-SbGDY58y.js} +29124 -29054
  8. package/dist/{index-ghibukoV.js → index-aGnAhRxt.js} +1 -1
  9. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  10. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +2 -1
  11. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +2 -1
  13. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  14. package/dist/packages/features/bookings/Booker/types.d.ts +3 -0
  15. package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/Booker/utils/event.d.ts +4 -0
  17. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  18. package/dist/packages/features/bookings/lib/getCalEventResponses.d.ts.map +1 -1
  19. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +6 -0
  20. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  21. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +8 -0
  22. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  23. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +6 -0
  24. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  25. package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
  26. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  27. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +3 -0
  28. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  29. package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/round-robin.test.d.ts +2 -0
  30. package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/round-robin.test.d.ts.map +1 -0
  31. package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts +1 -0
  32. package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts.map +1 -1
  33. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  34. package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts.map +1 -1
  35. package/dist/packages/features/ee/payments/pages/payment.d.ts +1 -0
  36. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  37. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  38. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  39. package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts +8 -0
  40. package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts.map +1 -1
  41. package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts +2 -0
  42. package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts.map +1 -1
  43. package/dist/packages/features/ee/workflows/lib/constants.d.ts +1 -1
  44. package/dist/packages/features/ee/workflows/lib/constants.d.ts.map +1 -1
  45. package/dist/packages/features/ee/workflows/lib/getOptions.d.ts +1 -1
  46. package/dist/packages/features/ee/workflows/lib/getOptions.d.ts.map +1 -1
  47. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  48. package/dist/packages/features/ee/workflows/lib/schema.d.ts +5 -4
  49. package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
  50. package/dist/packages/features/ee/workflows/pages/index.d.ts.map +1 -1
  51. package/dist/packages/features/ee/workflows/pages/workflow.d.ts +1 -5
  52. package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
  53. package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts +2 -1
  54. package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts.map +1 -1
  55. package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts +5 -2
  56. package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts.map +1 -1
  57. package/dist/packages/features/eventtypes/components/DuplicateDialog.d.ts.map +1 -1
  58. package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
  59. package/dist/packages/features/eventtypes/components/EventType.d.ts +1 -0
  60. package/dist/packages/features/eventtypes/components/EventType.d.ts.map +1 -1
  61. package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
  62. package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts +2 -0
  63. package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts.map +1 -1
  64. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  65. package/dist/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.d.ts.map +1 -1
  66. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +6 -0
  67. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  68. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +1 -0
  69. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  70. package/dist/packages/features/eventtypes/lib/types.d.ts +9 -1
  71. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  72. package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
  73. package/dist/packages/features/schedules/components/Schedule.d.ts +8 -1
  74. package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
  75. package/dist/packages/features/shell/Shell.d.ts.map +1 -1
  76. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +6 -0
  77. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  78. package/dist/packages/platform/atoms/availability/types.d.ts +12 -1
  79. package/dist/packages/platform/atoms/availability/types.d.ts.map +1 -1
  80. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
  81. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  82. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  83. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  84. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  85. package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +1 -1
  86. package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
  87. package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +4 -1
  88. package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
  89. package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts +11 -0
  90. package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts.map +1 -1
  91. package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +3 -1
  92. package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
  93. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +6 -0
  94. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  95. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +1 -0
  96. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  97. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +6 -0
  98. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  99. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  100. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  101. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +4 -0
  102. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  103. package/dist/packages/platform/atoms/hooks/useMe.d.ts +1 -1
  104. package/dist/packages/platform/atoms/hooks/useMe.d.ts.map +1 -1
  105. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +26 -1
  106. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
  107. package/dist/packages/platform/libraries/private-links.d.ts +3 -0
  108. package/dist/packages/platform/libraries/private-links.d.ts.map +1 -0
  109. package/dist/packages/platform/libraries/schedules.d.ts +1 -0
  110. package/dist/packages/platform/libraries/schedules.d.ts.map +1 -1
  111. package/dist/packages/platform/libraries/slots.d.ts +6 -0
  112. package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
  113. package/dist/packages/platform/types/event-types/index.d.ts +2 -0
  114. package/dist/packages/platform/types/event-types/index.d.ts.map +1 -1
  115. package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts +10 -0
  116. package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts.map +1 -0
  117. package/dist/packages/platform/types/event-types/outputs/private-link.output.d.ts +35 -0
  118. package/dist/packages/platform/types/event-types/outputs/private-link.output.d.ts.map +1 -0
  119. package/dist/packages/platform/types/index.d.ts +1 -0
  120. package/dist/packages/platform/types/index.d.ts.map +1 -1
  121. package/dist/packages/prisma/zod/agent.d.ts +44 -0
  122. package/dist/packages/prisma/zod/agent.d.ts.map +1 -0
  123. package/dist/packages/prisma/zod/calaiphonenumber.d.ts +66 -0
  124. package/dist/packages/prisma/zod/calaiphonenumber.d.ts.map +1 -0
  125. package/dist/packages/prisma/zod/custom/eventtype.d.ts +10 -0
  126. package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
  127. package/dist/packages/prisma/zod/eventtype.d.ts +10 -1
  128. package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
  129. package/dist/packages/prisma/zod/host.d.ts +9 -1
  130. package/dist/packages/prisma/zod/host.d.ts.map +1 -1
  131. package/dist/packages/prisma/zod/hostgroup.d.ts +32 -0
  132. package/dist/packages/prisma/zod/hostgroup.d.ts.map +1 -0
  133. package/dist/packages/prisma/zod/index.d.ts +3 -0
  134. package/dist/packages/prisma/zod/index.d.ts.map +1 -1
  135. package/dist/packages/prisma/zod/membership.d.ts +2 -1
  136. package/dist/packages/prisma/zod/membership.d.ts.map +1 -1
  137. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  138. package/dist/packages/prisma/zod/team.d.ts +3 -1
  139. package/dist/packages/prisma/zod/team.d.ts.map +1 -1
  140. package/dist/packages/prisma/zod/user.d.ts +3 -1
  141. package/dist/packages/prisma/zod/user.d.ts.map +1 -1
  142. package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -2
  143. package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
  144. package/dist/packages/prisma/zod/workflowstep.d.ts +8 -3
  145. package/dist/packages/prisma/zod/workflowstep.d.ts.map +1 -1
  146. package/dist/packages/prisma/zod-utils.d.ts +24 -0
  147. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  148. package/dist/packages/prisma-client/index.d.ts +12634 -3343
  149. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +155 -7
  150. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
  151. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +12 -2
  152. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  153. package/package.json +1 -1
  154. package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/seatedRoundRobin.test.d.ts +0 -2
  155. package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/seatedRoundRobin.test.d.ts.map +0 -1
package/README.md CHANGED
@@ -36,4 +36,20 @@ changesets will publish atoms to npm only if the `"version"` in the atoms `packa
36
36
 
37
37
  The following 2 articles teach how to write good change summaries for each PR when it deserves to end up in CHANGELOG.md
38
38
  - https://keepachangelog.com/en/1.0.0/
39
- - https://docs.gitlab.com/development/changelog/
39
+ - https://docs.gitlab.com/development/changelog/
40
+
41
+ ### Testing
42
+ Atoms are tested in CI using e2e tests within the example platform app. To run them locally:
43
+ 1. Go to "packages/platform/atoms" and run `yarn dev-on` and then `yarn build` - this will create local build of atoms.
44
+ 2. Setup environment variables in "packages/platform/examples/base/.env" file. You will need your own platform oAuth client to populate NEXT_PUBLIC_X_CAL_ID (oAuth id), X_CAL_SECRET_KEY (oAuth secret), VITE_BOOKER_EMBED_OAUTH_CLIENT_ID (oAuth id) and ORGANIZATION_ID (organization id to which oAuth client belongs) - all of these are available in the platform settings dashboard after creating the oAuth client.
45
+ ```
46
+ NEXT_PUBLIC_X_CAL_ID=""
47
+ X_CAL_SECRET_KEY=""
48
+ NEXT_PUBLIC_CALCOM_API_URL="https://api.cal.com/v2"
49
+ VITE_BOOKER_EMBED_OAUTH_CLIENT_ID=""
50
+ VITE_BOOKER_EMBED_API_URL="https://api.cal.com/v2"
51
+ ORGANIZATION_ID=""
52
+ ```
53
+ 3. Go to "packages/platform/examples/base" and run `yarn dev:e2e` - this will start the example platform app and run e2e tests by using locally built atoms. Because it is not running within CI it will open a browser and run tests.
54
+
55
+
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { I as n, b as c, c as o } from "./index-TYx-qK4G.js";
2
+ import { I as n, b as c, c as o } from "./index-SbGDY58y.js";
3
3
  function r({ value: s, onChange: t, ...a }) {
4
4
  return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
5
5
  /* @__PURE__ */ e(
@@ -1,6 +1,6 @@
1
1
  import { jsx as z, jsxs as er } from "react/jsx-runtime";
2
2
  import J from "react";
3
- import { d as tr, S as nr } from "./index-TYx-qK4G.js";
3
+ import { d as tr, S as nr } from "./index-SbGDY58y.js";
4
4
  const K = function(s, r = !0) {
5
5
  if (s.destroyed)
6
6
  throw new Error("Hash instance has been destroyed");
@@ -1,6 +1,6 @@
1
1
  import { jsx as vt } from "react/jsx-runtime";
2
2
  import Bt, { useState as $t, useEffect as Gt } from "react";
3
- import { w as Vt, i as qt, g as Kt, u as Ut, c as It, t as Wt } from "./index-TYx-qK4G.js";
3
+ import { w as Vt, i as qt, g as Kt, u as Ut, c as It, t as Wt } from "./index-SbGDY58y.js";
4
4
  function Ht() {
5
5
  return Vt(qt, arguments);
6
6
  }
package/dist/cal-atoms.js CHANGED
@@ -1,4 +1,4 @@
1
- import { al as s, ak as e, am as r, u as t } from "./index-TYx-qK4G.js";
1
+ import { al as s, ak as e, am as r, u as t } from "./index-SbGDY58y.js";
2
2
  export {
3
3
  s as Booker,
4
4
  e as CalProvider,