@calcom/atoms 1.0.8 → 1.0.10

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.
@@ -1,4 +1,4 @@
1
- import { aQ as L, aR as V, aS as D, aT as M, aU as Q, aV as Z, aW as _, aX as $, aY as re, aZ as ie, a_ as oe, a$ as ae } from "./index-aVuXOTK6.js";
1
+ import { aQ as L, aR as V, aS as D, aT as M, aU as Q, aV as Z, aW as _, aX as $, aY as re, aZ as ie, a_ as oe, a$ as ae } from "./index-c1sqSEY5.js";
2
2
  function b(t, e, n, s = { passive: !0 }) {
3
3
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { T as m, b as n } from "./index-aVuXOTK6.js";
1
+ import { T as m, b as n } from "./index-c1sqSEY5.js";
2
2
  export {
3
3
  m as TimezoneSelect,
4
4
  n as TimezoneSelectComponent
@@ -0,0 +1,4 @@
1
+ import { U as i } from "./UnpublishedEntity-qAoI8AfL.js";
2
+ export {
3
+ i as UnpublishedEntity
4
+ };
@@ -37359,9 +37359,7 @@ E.object({
37359
37359
  client_id: E.string().startsWith("ca_").min(1),
37360
37360
  client_secret: E.string().startsWith("sk_").min(1),
37361
37361
  public_key: E.string().startsWith("pk_").min(1),
37362
- webhook_secret: E.string().startsWith("whsec_").min(1),
37363
- payment_fee_fixed: E.number().min(0),
37364
- payment_fee_percentage: E.number().min(0)
37362
+ webhook_secret: E.string().startsWith("whsec_").min(1)
37365
37363
  });
37366
37364
  const ntt = E.object({});
37367
37365
  E.object({
@@ -42641,7 +42639,7 @@ const Jrt = (e, t, n, r) => {
42641
42639
  currency: t
42642
42640
  }).format(rat(e, t))}`;
42643
42641
  }
42644
- }, oat = Ci(() => import("./AlbyPriceComponent-EPnWQgZI.js").then((e) => e.AlbyPriceComponent), {
42642
+ }, oat = Ci(() => import("./AlbyPriceComponent-QBBiyNIm.js").then((e) => e.AlbyPriceComponent), {
42645
42643
  ssr: !1
42646
42644
  }), iat = ({
42647
42645
  price: e,
@@ -43954,7 +43952,7 @@ var iot = function(e) {
43954
43952
  var l = c.message, u = c.types, f = Object.assign({}, i, { children: l || a });
43955
43953
  return q.isValidElement(t) ? q.cloneElement(t, f) : o ? o({ message: l || a, messages: u }) : q.createElement(t || q.Fragment, f);
43956
43954
  };
43957
- const Lv = Ci(async () => (await import("./index-Rz7pdAOk.js")).SelectWithValidation), sot = (e) => {
43955
+ const Lv = Ci(async () => (await import("./index-fzC1Qtk1.js")).SelectWithValidation), sot = (e) => {
43958
43956
  const {
43959
43957
  value: t,
43960
43958
  setValue: n,
@@ -44949,7 +44947,7 @@ const _F = ({
44949
44947
  return t.isError ? /* @__PURE__ */ y(wl, {
44950
44948
  severity: "warning",
44951
44949
  message: C("error_booking_event")
44952
- }) : t.isLoading || !t.data ? /* @__PURE__ */ y(Iot, {}) : g ? p ? /* @__PURE__ */ U("div", {
44950
+ }) : t.isPending || !t.data ? /* @__PURE__ */ y(Iot, {}) : g ? p ? /* @__PURE__ */ U("div", {
44953
44951
  className: "flex h-full flex-col",
44954
44952
  children: [/* @__PURE__ */ U(NA, {
44955
44953
  className: "flex h-full flex-col",
@@ -45056,7 +45054,7 @@ const _F = ({
45056
45054
  data: a == null ? void 0 : a.data,
45057
45055
  isSuccess: a == null ? void 0 : a.isSuccess,
45058
45056
  isError: a == null ? void 0 : a.isError,
45059
- isLoading: a == null ? void 0 : a.isPending
45057
+ isPending: a == null ? void 0 : a.isPending
45060
45058
  };
45061
45059
  }, Tot = ({
45062
45060
  children: e,
@@ -45313,7 +45311,7 @@ const _F = ({
45313
45311
  return /* @__PURE__ */ U(Ne, {
45314
45312
  children: [t.date, /* @__PURE__ */ y("br", {}), t.time]
45315
45313
  });
45316
- }, Mot = Ci(() => import("./index-mVu2KPl4.js").then((e) => e.TimezoneSelect), {
45314
+ }, Mot = Ci(() => import("./index-0MBOlIUN.js").then((e) => e.TimezoneSelect), {
45317
45315
  ssr: !1
45318
45316
  }), Lot = ({
45319
45317
  event: e,
@@ -46754,7 +46752,7 @@ const pit = ({
46754
46752
  children: e("booker_event_not_found")
46755
46753
  })
46756
46754
  });
46757
- }, bit = () => import("./framer-features-EVI8tzB_.js").then((e) => e.default), yit = Ci(() => import("./PoweredBy-smE7ZCft.js")), vit = Ci(() => import("./index-UlZYL4xc.js").then((e) => e.UnpublishedEntity)), vO = Ci(() => import("./DatePicker-HrIZ23Fy.js").then((e) => e.DatePicker), {
46755
+ }, bit = () => import("./framer-features-21Bhid0u.js").then((e) => e.default), yit = Ci(() => import("./PoweredBy-CRHuDJhE.js")), vit = Ci(() => import("./index-DK_i_j_U.js").then((e) => e.UnpublishedEntity)), vO = Ci(() => import("./DatePicker-84yyFd_u.js").then((e) => e.DatePicker), {
46758
46756
  ssr: !1
46759
46757
  }), _it = ({
46760
46758
  username: e,
@@ -46827,7 +46825,7 @@ const pit = ({
46827
46825
  loadingConnectedCalendar: Sc,
46828
46826
  onToggleCalendar: Ec
46829
46827
  } = C;
46830
- be(() => I.isLoading ? R("loading") : R(N ? ue ? "booking" : "selecting_time" : "selecting_date"), [I, N, ue, R]);
46828
+ be(() => I.isPending ? R("loading") : R(N ? ue ? "booking" : "selecting_time" : "selecting_date"), [I, N, ue, R]);
46831
46829
  const $s = mt(() => F === "booking" ? /* @__PURE__ */ y(Aot, {
46832
46830
  onCancel: () => {
46833
46831
  ye(null), Q.bookingUid && me({
@@ -46964,7 +46962,7 @@ const pit = ({
46964
46962
  src: P
46965
46963
  }), /* @__PURE__ */ y(Lot, {
46966
46964
  event: I.data,
46967
- isPending: I.isLoading,
46965
+ isPending: I.isPending,
46968
46966
  isPlatform: O
46969
46967
  }), z !== At.MONTH_VIEW && !(z === "mobile" && F === "booking") && /* @__PURE__ */ y("div", {
46970
46968
  className: "mt-auto px-5 py-3 ",
@@ -46998,7 +46996,7 @@ const pit = ({
46998
46996
  children: /* @__PURE__ */ y(sit, {
46999
46997
  extraDays: j,
47000
46998
  schedule: A.data,
47001
- isLoading: A.isLoading,
46999
+ isLoading: A.isPending,
47002
47000
  event: I
47003
47001
  })
47004
47002
  }, "large-calendar"), /* @__PURE__ */ y(uu, {
@@ -47014,7 +47012,7 @@ const pit = ({
47014
47012
  extraDays: j,
47015
47013
  limitHeight: z === At.MONTH_VIEW,
47016
47014
  schedule: A == null ? void 0 : A.data,
47017
- isLoading: A.isLoading,
47015
+ isLoading: A.isPending,
47018
47016
  seatsPerTimeSlot: (Tc = I.data) == null ? void 0 : Tc.seatsPerTimeSlot,
47019
47017
  showAvailableSeatsCount: (Da = I.data) == null ? void 0 : Da.seatsShowAvailabilityCount,
47020
47018
  event: I
@@ -47216,7 +47214,7 @@ function AF({
47216
47214
  if (t)
47217
47215
  for (const c of t) {
47218
47216
  const l = o[c.name], u = E.string(), f = n ? E.string() : E.string().refine(Ltt), p = n ? E.string() : E.string().refine(async ($) => {
47219
- const { isValidPhoneNumber: I } = await import("./index-pL9ARr25.js");
47217
+ const { isValidPhoneNumber: I } = await import("./index-vEH6yjnh.js");
47220
47218
  return I($);
47221
47219
  }), h = ($) => `{${c.name}}${$}`, b = c.views, g = r === "ALL_VIEWS" ? !0 : b ? b.find(($) => $.id === r) : !0;
47222
47220
  let v = c.hidden;
@@ -47859,7 +47857,7 @@ const Vit = "get-available-slots", jit = ({ enabled: e, ...t }) => lo({
47859
47857
  prefillFormParams: g
47860
47858
  }), {
47861
47859
  mutate: S,
47862
- isLoading: O,
47860
+ isPending: O,
47863
47861
  error: P,
47864
47862
  isError: M
47865
47863
  } = Hit({
@@ -47870,7 +47868,7 @@ const Vit = "get-available-slots", jit = ({ enabled: e, ...t }) => lo({
47870
47868
  onError: e.onCreateBookingError
47871
47869
  }), {
47872
47870
  mutate: F,
47873
- isLoading: R,
47871
+ isPending: R,
47874
47872
  error: N,
47875
47873
  isError: V
47876
47874
  } = Yit({
@@ -47881,7 +47879,7 @@ const Vit = "get-available-slots", jit = ({ enabled: e, ...t }) => lo({
47881
47879
  onError: e.onCreateRecurringBookingError
47882
47880
  }), {
47883
47881
  mutate: W,
47884
- isLoading: j,
47882
+ isPending: j,
47885
47883
  error: Z,
47886
47884
  isError: L
47887
47885
  } = Zit({
@@ -47892,7 +47890,7 @@ const Vit = "get-available-slots", jit = ({ enabled: e, ...t }) => lo({
47892
47890
  onError: e.onCreateInstantBookingError
47893
47891
  }), z = nst(i), [X] = dc((ie) => [ie.calendarSettingsOverlayModal, ie.setCalendarSettingsOverlayModal], mr), {
47894
47892
  data: ne,
47895
- isLoading: fe
47893
+ isPending: fe
47896
47894
  } = zit({
47897
47895
  enabled: !!X
47898
47896
  }), Q = ne, {
@@ -53958,7 +53956,7 @@ function swt() {
53958
53956
  children: n("invite_team_notifcation_badge")
53959
53957
  });
53960
53958
  }
53961
- const cwt = Ci(() => import("./index-yMBy3aTz.js").then((e) => e.Tips), {
53959
+ const cwt = Ci(() => import("./index-lSq3psK2.js").then((e) => e.Tips), {
53962
53960
  ssr: !1
53963
53961
  }), lwt = de("September 1 2021").toISOString(), uwt = (e) => !e.completedOnboarding && !e.organizationId && de(e.createdDate).isAfter(lwt);
53964
53962
  function dwt(e = !1) {
@@ -68090,7 +68088,7 @@ const kTt = (e) => {
68090
68088
  })]
68091
68089
  })]
68092
68090
  });
68093
- }, STt = Ci(() => import("./AddressInput-JOWwwPRO.js")), ETt = STt, TTt = Ci(() => import("./PhoneInput-TrwWtOVh.js")), OTt = TTt, hG = "Radio", [NTt, gG] = Tr(hG), [PTt, RTt] = NTt(hG), DTt = /* @__PURE__ */ Te((e, t) => {
68091
+ }, STt = Ci(() => import("./AddressInput-Vppjdvqq.js")), ETt = STt, TTt = Ci(() => import("./PhoneInput-ymW8Hzfc.js")), OTt = TTt, hG = "Radio", [NTt, gG] = Tr(hG), [PTt, RTt] = NTt(hG), DTt = /* @__PURE__ */ Te((e, t) => {
68094
68092
  const { __scopeRadio: n, name: r, checked: a = !1, required: o, disabled: i, value: s = "on", onCheck: c, ...l } = e, [u, f] = $e(null), p = un(
68095
68093
  t,
68096
68094
  (g) => f(g)
@@ -68294,7 +68292,7 @@ const BTt = [
68294
68292
  }, n4t = Ci(
68295
68293
  // Fast refresh doesn't play nice with dynamic imports
68296
68294
  // This prevent slowdowns in development mode
68297
- process.env.NODE_ENV === "production" ? () => import("./IconProd-ruo3qr6f.js") : () => import("./IconDev-0sTs0ViB.js")
68295
+ process.env.NODE_ENV === "production" ? () => import("./IconProd-vTxg50au.js") : () => import("./IconDev-sj1o7vii.js")
68298
68296
  ), wG = MX((e) => /* @__PURE__ */ y(n4t, {
68299
68297
  ...e
68300
68298
  }));
@@ -68695,7 +68693,7 @@ const m4t = ({ isAuth: e }) => {
68695
68693
  toast: p
68696
68694
  } = kG(), {
68697
68695
  mutate: h,
68698
- isLoading: b
68696
+ isPending: b
68699
68697
  } = y4t({
68700
68698
  onSuccess: (C) => {
68701
68699
  r == null || r(C), p({
@@ -68709,7 +68707,7 @@ const m4t = ({ isAuth: e }) => {
68709
68707
  }
68710
68708
  }), {
68711
68709
  mutate: g,
68712
- isLoading: v
68710
+ isPending: v
68713
68711
  } = _4t({
68714
68712
  onSuccess: (C) => {
68715
68713
  o == null || o(C), p({
@@ -68752,7 +68750,7 @@ const m4t = ({ isAuth: e }) => {
68752
68750
  weekStart: "Sunday",
68753
68751
  timeFormat: f,
68754
68752
  isLoading: i,
68755
- schedule: {
68753
+ schedule: u ? {
68756
68754
  name: u.name,
68757
68755
  id: u.id,
68758
68756
  isLastSchedule: u.isLastSchedule,
@@ -68766,7 +68764,7 @@ const m4t = ({ isAuth: e }) => {
68766
68764
  startTime: new Date($.startTime),
68767
68765
  endTime: new Date($.endTime)
68768
68766
  }], []) || []
68769
- },
68767
+ } : void 0,
68770
68768
  isDeleting: b,
68771
68769
  isSaving: v,
68772
68770
  backPath: "",
@@ -1,6 +1,6 @@
1
- import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-aVuXOTK6.js";
2
- import { U as Sa } from "./UnpublishedEntity-JMZ1lfEh.js";
3
- import { C as wa } from "./Card-p57Hzlps.js";
1
+ import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-c1sqSEY5.js";
2
+ import { U as Sa } from "./UnpublishedEntity-qAoI8AfL.js";
3
+ import { C as wa } from "./Card-PKWVjiGY.js";
4
4
  export {
5
5
  o as AddressInput,
6
6
  s as Alert,
@@ -1,6 +1,6 @@
1
1
  import { memo as j, useState as T } from "react";
2
- import { an as k, aH as g, aq as t, aI as U, aJ as N, aK as C, au as b, ar as n, aC as v } from "./index-aVuXOTK6.js";
3
- import { C as A } from "./Card-p57Hzlps.js";
2
+ import { an as k, aH as g, aq as t, aI as U, aJ as N, aK as C, au as b, ar as n, aC as v } from "./index-c1sqSEY5.js";
3
+ import { C as A } from "./Card-PKWVjiGY.js";
4
4
  const I = [{
5
5
  id: 13,
6
6
  thumbnailUrl: "https://img.youtube.com/vi/ihE8OYTdklg/0.jpg",
@@ -1,5 +1,5 @@
1
- import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-aVuXOTK6.js";
2
- import { i } from "./isSupportedCountry-vvY59WJS.js";
1
+ import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-c1sqSEY5.js";
2
+ import { i } from "./isSupportedCountry-U_JX-cgR.js";
3
3
  export {
4
4
  a as DIGITS,
5
5
  o as ParseError,
@@ -1,4 +1,4 @@
1
- import { aE as t, aF as r } from "./index-aVuXOTK6.js";
1
+ import { aE as t, aF as r } from "./index-c1sqSEY5.js";
2
2
  function o() {
3
3
  return t(r, arguments);
4
4
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
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.8",
7
+ "version": "1.0.10",
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": "yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify",
@@ -44,7 +44,7 @@
44
44
  "@radix-ui/react-dialog": "^1.0.4",
45
45
  "@radix-ui/react-slot": "^1.0.2",
46
46
  "@radix-ui/react-toast": "^1.1.5",
47
- "@tanstack/react-query": "4.36.1",
47
+ "@tanstack/react-query": "^5.17.15",
48
48
  "class-variance-authority": "^0.4.0",
49
49
  "clsx": "^2.0.0",
50
50
  "lucide-react": "^0.364.0",
@@ -1,4 +0,0 @@
1
- import { U as i } from "./UnpublishedEntity-JMZ1lfEh.js";
2
- export {
3
- i as UnpublishedEntity
4
- };