@calcom/atoms 1.3.0 → 1.4.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 (141) hide show
  1. package/dist/{AddressInput-sMG4Ayqp.js → AddressInput-2hL6xvaw.js} +3 -3
  2. package/dist/{AlbyPriceComponent-1rbVIc_T.js → AlbyPriceComponent-90fNQIrg.js} +19 -19
  3. package/dist/{PhoneInput-cqTlU9G5.js → PhoneInput-FnKIa4kA.js} +1 -1
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-YQ_KdK6G.js +83604 -0
  6. package/dist/{index-SRsTKyeM.js → index-a3d1IjXE.js} +1 -1
  7. package/dist/index-ubX_XTnt.js +1957 -0
  8. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/BookerStoreProvider.d.ts +11 -0
  10. package/dist/packages/features/bookings/Booker/BookerStoreProvider.d.ts.map +1 -0
  11. package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts +10 -0
  12. package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts.map +1 -0
  13. package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts +2 -1
  14. package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts.map +1 -1
  15. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts +2 -1
  16. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts.map +1 -1
  17. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  18. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +2 -1
  19. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  20. package/dist/packages/features/bookings/Booker/components/Header.d.ts.map +1 -1
  21. package/dist/packages/features/bookings/Booker/components/LargeCalendar.d.ts.map +1 -1
  22. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +1 -1
  23. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +39 -0
  24. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
  25. package/dist/packages/features/bookings/Booker/store.d.ts +6 -6
  26. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  27. package/dist/packages/features/bookings/Booker/utils/event.d.ts +7 -0
  28. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  29. package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
  30. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  31. package/dist/packages/features/ee/round-robin/roundRobinDeleteEvents.test.d.ts +2 -0
  32. package/dist/packages/features/ee/round-robin/roundRobinDeleteEvents.test.d.ts.map +1 -0
  33. package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
  34. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts +6 -0
  35. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts.map +1 -0
  36. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts +5 -0
  37. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts.map +1 -0
  38. package/dist/packages/features/eventtypes/components/{Locations.d.ts → locations/Locations.d.ts} +2 -2
  39. package/dist/packages/features/eventtypes/components/locations/Locations.d.ts.map +1 -0
  40. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts +1 -1
  41. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
  42. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +36 -0
  43. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  44. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +7 -0
  45. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  46. package/dist/packages/features/eventtypes/lib/types.d.ts +10 -9
  47. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  48. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
  49. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  50. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  51. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  52. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  53. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  54. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +7 -0
  55. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  56. package/dist/packages/platform/atoms/index.d.ts +0 -36
  57. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  58. package/dist/packages/platform/libraries/index.d.ts +1 -0
  59. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  60. package/dist/packages/platform/libraries/repositories.d.ts +1 -0
  61. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  62. package/dist/packages/platform/libraries/slots.d.ts +2 -0
  63. package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
  64. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  65. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  66. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  67. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  68. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
  69. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  70. package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts +4 -0
  71. package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts.map +1 -1
  72. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +1 -0
  73. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
  74. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +1 -0
  75. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  76. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts +19 -7
  77. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts.map +1 -1
  78. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +21 -0
  79. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
  80. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +2 -0
  81. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  82. package/dist/style.css +1 -1
  83. package/package.json +1 -1
  84. package/dist/AppCard-Zx_xfVt_.js +0 -281
  85. package/dist/AppListCardPlatformWrapper-qcAFCAXX.js +0 -9
  86. package/dist/AppListCardWebWrapper-3Pbmp6y8.js +0 -74
  87. package/dist/AppSettingsInterface-4XMEEbcJ.js +0 -75
  88. package/dist/AppSettingsInterface-YsrrXooV.js +0 -29
  89. package/dist/AppSettingsInterface-odT8kPt-.js +0 -23
  90. package/dist/DateRangePicker-DJBZW9da.js +0 -74
  91. package/dist/EventTypeAppCardInterface-0K5xbIex.js +0 -49
  92. package/dist/EventTypeAppCardInterface-0OvYJLmR.js +0 -24
  93. package/dist/EventTypeAppCardInterface-0kqrhpLm.js +0 -34
  94. package/dist/EventTypeAppCardInterface-31dw8z6g.js +0 -34
  95. package/dist/EventTypeAppCardInterface-3DQk93Oh.js +0 -34
  96. package/dist/EventTypeAppCardInterface-9awj9ikp.js +0 -32
  97. package/dist/EventTypeAppCardInterface-A4ukS96V.js +0 -51
  98. package/dist/EventTypeAppCardInterface-FHw_ihqn.js +0 -34
  99. package/dist/EventTypeAppCardInterface-G_vO0W-q.js +0 -51
  100. package/dist/EventTypeAppCardInterface-HLMEZBRF.js +0 -39
  101. package/dist/EventTypeAppCardInterface-OmcE4mB3.js +0 -42
  102. package/dist/EventTypeAppCardInterface-WkoM7u6A.js +0 -41
  103. package/dist/EventTypeAppCardInterface-h4Pze3Gg.js +0 -32
  104. package/dist/EventTypeAppCardInterface-iQlInguK.js +0 -34
  105. package/dist/EventTypeAppCardInterface-lYTrL5Bl.js +0 -42
  106. package/dist/EventTypeAppCardInterface-mK2_N-dB.js +0 -34
  107. package/dist/EventTypeAppCardInterface-obLysXQC.js +0 -24
  108. package/dist/EventTypeAppCardInterface-omWnfJYA.js +0 -33
  109. package/dist/EventTypeAppCardInterface-pSepgnI-.js +0 -34
  110. package/dist/EventTypeAppCardInterface-rvCvUanb.js +0 -24
  111. package/dist/EventTypeAppCardInterface-se55G0wm.js +0 -24
  112. package/dist/EventTypeAppCardInterface-t4XO8_QR.js +0 -41
  113. package/dist/EventTypeAppCardInterface-tDBXaZGm.js +0 -39
  114. package/dist/EventTypeAppCardInterface-utbpEdvv.js +0 -31
  115. package/dist/EventTypeAppCardInterface-wk4GzNE9.js +0 -86
  116. package/dist/EventTypeAppCardInterface-xWjmxDRE.js +0 -858
  117. package/dist/EventTypeAppCardInterface-z0_lwBiz.js +0 -24
  118. package/dist/EventTypeAppSettingsInterface-2x-2dNXv.js +0 -42
  119. package/dist/EventTypeAppSettingsInterface-7bn1HSLI.js +0 -43
  120. package/dist/EventTypeAppSettingsInterface-KY9K2A4a.js +0 -24
  121. package/dist/EventTypeAppSettingsInterface-N3GZOEOV.js +0 -23
  122. package/dist/EventTypeAppSettingsInterface-SyFwT8fy.js +0 -298
  123. package/dist/EventTypeAppSettingsInterface-VPwlxALu.js +0 -78
  124. package/dist/EventTypeAppSettingsInterface-W5ejZRBB.js +0 -120
  125. package/dist/EventTypeAppSettingsInterface-WxLx9nXX.js +0 -221
  126. package/dist/EventTypeAppSettingsInterface-eqtUnnNt.js +0 -48
  127. package/dist/EventTypeAppSettingsInterface-qI5dfOri.js +0 -23
  128. package/dist/EventTypeAppSettingsInterface-sgrrOkbn.js +0 -72
  129. package/dist/EventTypeAppSettingsInterface-uSZXgZw6.js +0 -25
  130. package/dist/EventTypeAppSettingsInterface-v7Pzk2Bm.js +0 -106
  131. package/dist/InstallAppButton-JS_mFJ2c.js +0 -14
  132. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  133. package/dist/InstallAppButton-Tmmia5nu.js +0 -14
  134. package/dist/InstallAppButton-bTw6dwGS.js +0 -58
  135. package/dist/StripePaymentForm-sHV_1oj6.js +0 -493
  136. package/dist/currencyOptions-kannG2hu.js +0 -61
  137. package/dist/index-MLgFWWYi.js +0 -161243
  138. package/dist/index-oB7xnM_T.js +0 -30
  139. package/dist/index-uQDDhsO6.js +0 -518
  140. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +0 -1
  141. package/dist/useIsAppEnabled-GIoK8AkC.js +0 -18
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { X as n, e as o, s as c } from "./index-MLgFWWYi.js";
2
+ import { I as n, b as c, c as o } from "./index-YQ_KdK6G.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(
@@ -11,14 +11,14 @@ function r({ value: s, onChange: t, ...a }) {
11
11
  }
12
12
  ),
13
13
  /* @__PURE__ */ e(
14
- o,
14
+ c,
15
15
  {
16
16
  ...a,
17
17
  value: s,
18
18
  onChange: (l) => {
19
19
  t(l.target.value);
20
20
  },
21
- className: c("pl-10", a == null ? void 0 : a.className)
21
+ className: o("pl-10", a == null ? void 0 : a.className)
22
22
  }
23
23
  )
24
24
  ] });
@@ -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 { V as tr, Y as nr } from "./index-MLgFWWYi.js";
3
+ import { d as tr, S as nr } from "./index-YQ_KdK6G.js";
4
4
  const K = function(s, r = !0) {
5
5
  if (s.destroyed)
6
6
  throw new Error("Hash instance has been destroyed");
@@ -67,8 +67,8 @@ class ir extends sr {
67
67
  (function(b, y, E, x) {
68
68
  if (typeof b.setBigUint64 == "function")
69
69
  return b.setBigUint64(y, E, x);
70
- const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k), C = Number(E & k), j = x ? 0 : 4;
71
- b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j, C, x);
70
+ const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k), S = Number(E & k), j = x ? 0 : 4;
71
+ b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j, S, x);
72
72
  })(c, f - 8, BigInt(8 * this.length), u), this.process(c, 0);
73
73
  const g = N(r), m = this.outputLen;
74
74
  if (m % 4)
@@ -347,8 +347,8 @@ Q = function(s, r) {
347
347
  }
348
348
  return Uint8Array.from(t);
349
349
  } }, r.base58check = (e) => c(B(4, (t) => e(e(t))), r.base58);
350
- const C = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), j = [996825010, 642813549, 513874426, 1027748829, 705979059];
351
- function S(e) {
350
+ const S = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), j = [996825010, 642813549, 513874426, 1027748829, 705979059];
351
+ function C(e) {
352
352
  const t = e >> 25;
353
353
  let n = (33554431 & e) << 5;
354
354
  for (let o = 0; o < j.length; o++)
@@ -362,16 +362,16 @@ Q = function(s, r) {
362
362
  const d = e.charCodeAt(h);
363
363
  if (d < 33 || d > 126)
364
364
  throw new Error(`Invalid prefix (${e})`);
365
- a = S(a) ^ d >> 5;
365
+ a = C(a) ^ d >> 5;
366
366
  }
367
- a = S(a);
367
+ a = C(a);
368
368
  for (let h = 0; h < o; h++)
369
- a = S(a) ^ 31 & e.charCodeAt(h);
369
+ a = C(a) ^ 31 & e.charCodeAt(h);
370
370
  for (let h of t)
371
- a = S(a) ^ h;
371
+ a = C(a) ^ h;
372
372
  for (let h = 0; h < 6; h++)
373
- a = S(a);
374
- return a ^= n, C.encode(b([a % 2 ** 30], 30, 5, !1));
373
+ a = C(a);
374
+ return a ^= n, S.encode(b([a % 2 ** 30], 30, 5, !1));
375
375
  }
376
376
  function O(e) {
377
377
  const t = e === "bech32" ? 1 : 734539939, n = E(5), o = n.decode, a = n.encode, h = x(o);
@@ -389,7 +389,7 @@ Q = function(s, r) {
389
389
  const G = w.slice(0, v), D = w.slice(v + 1);
390
390
  if (D.length < 6)
391
391
  throw new Error("Data must be at least 6 characters long");
392
- const M = C.decode(D).slice(0, -6), P = H(G, M, t);
392
+ const M = S.decode(D).slice(0, -6), P = H(G, M, t);
393
393
  if (!D.endsWith(P))
394
394
  throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
395
395
  return { prefix: G, words: M };
@@ -402,7 +402,7 @@ Q = function(s, r) {
402
402
  const v = w.length + 7 + p.length;
403
403
  if ($ !== !1 && v > $)
404
404
  throw new TypeError(`Length ${v} exceeds limit ${$}`);
405
- return `${w = w.toLowerCase()}1${C.encode(p)}${H(w, p, t)}`;
405
+ return `${w = w.toLowerCase()}1${S.encode(p)}${H(w, p, t)}`;
406
406
  }, decode: d, decodeToBytes: function(w) {
407
407
  const { prefix: p, words: $ } = d(w, !1);
408
408
  return { prefix: p, words: $, bytes: o($) };
@@ -431,20 +431,20 @@ Q = function(s, r) {
431
431
  BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
432
432
  BigInt("2100000000000000000");
433
433
  BigInt(1e11);
434
- const Y = { payment_hash: 1, payment_secret: 16, description: 13, payee: 19, description_hash: 23, expiry: 6, min_final_cltv_expiry: 24, fallback_address: 9, route_hint: 3, feature_bits: 5, metadata: 27 };
435
- for (let s = 0, r = Object.keys(Y); s < r.length; s++)
436
- r[s], Y[r[s]].toString();
434
+ const X = { payment_hash: 1, payment_secret: 16, description: 13, payee: 19, description_hash: 23, expiry: 6, min_final_cltv_expiry: 24, fallback_address: 9, route_hint: 3, feature_bits: 5, metadata: 27 };
435
+ for (let s = 0, r = Object.keys(X); s < r.length; s++)
436
+ r[s], X[r[s]].toString();
437
437
  const V = async (s) => {
438
438
  const r = "https://getalby.com/api/rates/" + s.toLowerCase() + ".json";
439
439
  return (await (await fetch(r)).json()).rate_float / 1e8;
440
- }, X = async ({ satoshi: s, currency: r }) => {
440
+ }, Y = async ({ satoshi: s, currency: r }) => {
441
441
  const i = await V(r);
442
442
  return Number(s) * i;
443
443
  };
444
- var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: X, getSatoshiValue: async ({ amount: s, currency: r }) => {
444
+ var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: Y, getSatoshiValue: async ({ amount: s, currency: r }) => {
445
445
  const i = await V(r);
446
446
  return Math.floor(Number(s) / i);
447
- }, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await X({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
447
+ }, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await Y({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
448
448
  function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
449
449
  const [c, f] = J.useState("loading...");
450
450
  return J.useEffect(() => {
@@ -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 { aj as Vt, ak as qt, al as Kt, am as Ut, s as It, O as Wt } from "./index-MLgFWWYi.js";
3
+ import { w as Vt, i as qt, g as Kt, u as Ut, c as It, t as Wt } from "./index-YQ_KdK6G.js";
4
4
  function Ht() {
5
5
  return Vt(qt, arguments);
6
6
  }
package/dist/cal-atoms.js CHANGED
@@ -1,38 +1,7 @@
1
- import { aG as s, aH as n, aU as t, aE as o, b0 as r, b2 as i, aT as u, b4 as C, a$ as l, b1 as d, aF as g, aS as b, b5 as c, aV as m, a_ as p, b3 as v, aX as S, aI as T, aP as y, aQ as E, aO as k, aJ as B, b6 as A, b7 as O, aW as P, aM as f, aN as I, aK as R, am as x, aR as z, b8 as D, b9 as F, aY as G, aL as M, aZ as U } from "./index-MLgFWWYi.js";
1
+ import { al as s, ak as e, am as r, u as t } from "./index-YQ_KdK6G.js";
2
2
  export {
3
- s as AvailabilitySettings,
4
- n as Booker,
5
- t as BookerEmbed,
6
- o as CalProvider,
7
- r as CalendarSettings,
8
- i as ConferencingAppsSettings,
9
- u as Connect,
10
- C as CreateEventType,
11
- l as DestinationCalendarSettings,
12
- d as EventTypeSettings,
13
- g as GcalConnect,
14
- b as OutlookConnect,
15
- c as PaymentForm,
16
- m as Router,
17
- p as SelectedCalendarsSettings,
18
- v as StripeConnect,
19
- S as useAddSelectedCalendar,
20
- T as useAtomsContext,
21
- y as useBooking,
22
- E as useBookings,
23
- k as useCancelBooking,
24
- B as useConnectedCalendars,
25
- A as useCreateEventType,
26
- O as useCreateTeamEventType,
27
- P as useDeleteCalendarCredentials,
28
- f as useEvent,
29
- I as useEventTypeById,
30
- R as useEventTypes,
31
- x as useIsPlatform,
32
- z as useMe,
33
- D as useOrganizationBookings,
34
- F as useOrganizationUserBookings,
35
- G as useRemoveSelectedCalendar,
36
- M as useTeamEventTypes,
37
- U as useTeams
3
+ s as Booker,
4
+ e as CalProvider,
5
+ r as useAtomsContext,
6
+ t as useIsPlatform
38
7
  };