@calcom/atoms 2.6.8 → 2.6.9

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 (78) hide show
  1. package/dist/{AddressInput-EiN3XN_W.js → AddressInput-B9lmeV0m.js} +1 -1
  2. package/dist/{AlbyPriceComponent-16YZ08Sb.js → AlbyPriceComponent-CoYd6CJZ.js} +1 -1
  3. package/dist/{AppCard-Bv15nTnY.js → AppCard-BGnNxoRU.js} +1 -1
  4. package/dist/{AppListCardPlatformWrapper-iJPq0QXn.js → AppListCardPlatformWrapper-D1_8WHNm.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-8MQvp3Yi.js → AppListCardWebWrapper-CiTNF2lp.js} +1 -1
  6. package/dist/{AppSettingsInterface-DYPjERec.js → AppSettingsInterface-Cka9Wxtr.js} +1 -1
  7. package/dist/{AppSettingsInterface-BYSAPv25.js → AppSettingsInterface-DkZRNlc5.js} +1 -1
  8. package/dist/{AppSettingsInterface-NE0aQhlm.js → AppSettingsInterface-xiEFZsxo.js} +1 -1
  9. package/dist/{DateRangePicker-BrStaisz.js → DateRangePicker-B0NlbFj0.js} +1 -1
  10. package/dist/{EventTypeAppCardInterface-B4LPE7gV.js → EventTypeAppCardInterface-BJR3J9jH.js} +3 -3
  11. package/dist/{EventTypeAppCardInterface-DvQon5HD.js → EventTypeAppCardInterface-BKHVzLsi.js} +4 -4
  12. package/dist/{EventTypeAppCardInterface-RdhwlKjR.js → EventTypeAppCardInterface-BN4KvNNd.js} +3 -3
  13. package/dist/{EventTypeAppCardInterface-BI69kOJL.js → EventTypeAppCardInterface-BPXQWqHx.js} +2 -2
  14. package/dist/{EventTypeAppCardInterface-nVAKQjUq.js → EventTypeAppCardInterface-BPuOojZj.js} +3 -3
  15. package/dist/{EventTypeAppCardInterface-zoaQBBju.js → EventTypeAppCardInterface-BYY0MLYX.js} +3 -3
  16. package/dist/{EventTypeAppCardInterface-D1Ct09ZS.js → EventTypeAppCardInterface-BbT-U_G2.js} +3 -3
  17. package/dist/{EventTypeAppCardInterface-T6r9vxpY.js → EventTypeAppCardInterface-Bie47UPg.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-3gOhW5jN.js → EventTypeAppCardInterface-BlVXV60Y.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface-BQYkZF3J.js → EventTypeAppCardInterface-CJ5R4-Qm.js} +4 -4
  20. package/dist/{EventTypeAppCardInterface-DNi2iDxb.js → EventTypeAppCardInterface-CSqjshLT.js} +3 -3
  21. package/dist/{EventTypeAppCardInterface-Bb9A_m02.js → EventTypeAppCardInterface-CVihA2M5.js} +4 -4
  22. package/dist/{EventTypeAppCardInterface-CyOsTNcQ.js → EventTypeAppCardInterface-Ce0OKbwo.js} +3 -3
  23. package/dist/{EventTypeAppCardInterface-DSlWKooB.js → EventTypeAppCardInterface-CeWhmAyM.js} +4 -4
  24. package/dist/{EventTypeAppCardInterface-BsY58kc9.js → EventTypeAppCardInterface-CiXfYoly.js} +4 -4
  25. package/dist/{EventTypeAppCardInterface-DpfPeBBF.js → EventTypeAppCardInterface-D4baak-z.js} +3 -3
  26. package/dist/{EventTypeAppCardInterface-DvjiyapS.js → EventTypeAppCardInterface-DGjR2Ove.js} +4 -4
  27. package/dist/{EventTypeAppCardInterface-B5XcslYW.js → EventTypeAppCardInterface-DQp-APFS.js} +4 -4
  28. package/dist/{EventTypeAppCardInterface-Pk-DS7I2.js → EventTypeAppCardInterface-DYZ42x4U.js} +3 -3
  29. package/dist/{EventTypeAppCardInterface-_IOCpHAJ.js → EventTypeAppCardInterface-DaZTQdfS.js} +3 -3
  30. package/dist/{EventTypeAppCardInterface-C-QcaUf9.js → EventTypeAppCardInterface-DhcjJkqU.js} +4 -4
  31. package/dist/{EventTypeAppCardInterface-BdIBIojE.js → EventTypeAppCardInterface-DkdbVZb1.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-C_ihoPqp.js → EventTypeAppCardInterface-DsZs9pE5.js} +3 -3
  33. package/dist/{EventTypeAppCardInterface-CwugPdK7.js → EventTypeAppCardInterface-RM8d2WyO.js} +4 -4
  34. package/dist/{EventTypeAppCardInterface-C4TNBlyB.js → EventTypeAppCardInterface-YWzUWY7Y.js} +3 -3
  35. package/dist/{EventTypeAppCardInterface-BxCV-YUl.js → EventTypeAppCardInterface-d-Qph6EC.js} +4 -4
  36. package/dist/{EventTypeAppCardInterface-C8WG0NUM.js → EventTypeAppCardInterface-livmvsig.js} +4 -4
  37. package/dist/{EventTypeAppCardInterface-BZgD8yxe.js → EventTypeAppCardInterface-uocIlLed.js} +2 -2
  38. package/dist/{EventTypeAppSettingsInterface-VNx6noOn.js → EventTypeAppSettingsInterface-B4pLXLby.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-Df1eUL2K.js → EventTypeAppSettingsInterface-BIXmiwXJ.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-CVrbqGOb.js → EventTypeAppSettingsInterface-Bfbmuivx.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-BfOBlZAq.js → EventTypeAppSettingsInterface-BpxHHbqr.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-DCPRhcE6.js → EventTypeAppSettingsInterface-Bs4ewWv_.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-B7MP1oEK.js → EventTypeAppSettingsInterface-C0Y2hHvL.js} +1 -1
  44. package/dist/{EventTypeAppSettingsInterface-BG5vTBQT.js → EventTypeAppSettingsInterface-CUcOC6R8.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-vFGj9wUG.js → EventTypeAppSettingsInterface-CoBAicQZ.js} +1 -1
  46. package/dist/{EventTypeAppSettingsInterface-ChcsFKRH.js → EventTypeAppSettingsInterface-DOEfgaVy.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-DtU0x_EY.js → EventTypeAppSettingsInterface-DU5mTuqZ.js} +1 -1
  48. package/dist/{EventTypeAppSettingsInterface-Bo3ya2BC.js → EventTypeAppSettingsInterface-DuaWQVEZ.js} +1 -1
  49. package/dist/{EventTypeAppSettingsInterface-DVcKUGZw.js → EventTypeAppSettingsInterface-Due3SW04.js} +1 -1
  50. package/dist/{EventTypeAppSettingsInterface-_1h93Y52.js → EventTypeAppSettingsInterface-fRuVe8tC.js} +1 -1
  51. package/dist/{EventTypeAppSettingsInterface-DbuEfAM1.js → EventTypeAppSettingsInterface-qcRA4vKz.js} +1 -1
  52. package/dist/{InstallAppButton-CY0elph-.js → InstallAppButton-C_OlEZE_.js} +1 -1
  53. package/dist/{InstallAppButton-D-GDue0E.js → InstallAppButton-DYDhoVXr.js} +1 -1
  54. package/dist/{InstallAppButton-Coc_N42k.js → InstallAppButton-DurAfwWr.js} +1 -1
  55. package/dist/{PhoneInput-CSafwWvx.js → PhoneInput-TT2A4ASP.js} +1 -1
  56. package/dist/{StripePaymentForm-BGDAvT-w.js → StripePaymentForm-BoBL7Zsh.js} +1 -1
  57. package/dist/cal-atoms.js +1 -1
  58. package/dist/{index-LQD_Kg7d.js → index-Bc7zAl5s.js} +2 -2
  59. package/dist/{index-BZ8ferbV.js → index-CgANIEsx.js} +32776 -32712
  60. package/dist/packages/platform/atoms/calendar-view/CalendarViewComponent.d.ts +12 -2
  61. package/dist/packages/platform/atoms/calendar-view/CalendarViewComponent.d.ts.map +1 -1
  62. package/dist/packages/platform/atoms/calendar-view/components/calendar-shell.d.ts +4 -0
  63. package/dist/packages/platform/atoms/calendar-view/components/calendar-shell.d.ts.map +1 -1
  64. package/dist/packages/platform/atoms/calendar-view/components/calendar-timezone-bar.d.ts +7 -1
  65. package/dist/packages/platform/atoms/calendar-view/components/calendar-timezone-bar.d.ts.map +1 -1
  66. package/dist/packages/platform/atoms/calendar-view/components/users-busy-times-calendar.d.ts +1 -1
  67. package/dist/packages/platform/atoms/calendar-view/components/users-busy-times-calendar.d.ts.map +1 -1
  68. package/dist/packages/platform/atoms/calendar-view/components/viewer-overlay-calendar.d.ts +1 -1
  69. package/dist/packages/platform/atoms/calendar-view/components/viewer-overlay-calendar.d.ts.map +1 -1
  70. package/dist/packages/platform/atoms/calendar-view/lib/calendar-slot-interval-options.d.ts +10 -0
  71. package/dist/packages/platform/atoms/calendar-view/lib/calendar-slot-interval-options.d.ts.map +1 -0
  72. package/dist/packages/platform/atoms/calendar-view/lib/calendar-slot-interval-options.test.d.ts +2 -0
  73. package/dist/packages/platform/atoms/calendar-view/lib/calendar-slot-interval-options.test.d.ts.map +1 -0
  74. package/dist/packages/platform/atoms/calendar-view/wrappers/CalendarViewPlatformWrapper.d.ts.map +1 -1
  75. package/dist/packages/platform/atoms/package.json.d.ts +1 -1
  76. package/dist/{server.browser-kP8VBz7J.js → server.browser-BHDUQ_wy.js} +1 -1
  77. package/dist/{useIsAppEnabled-MFuvssvd.js → useIsAppEnabled-C8sn5edr.js} +1 -1
  78. package/package.json +1 -1
@@ -14,7 +14,11 @@ export type CalendarViewComponentProps = {
14
14
  eventTypeId?: number;
15
15
  /** Slot duration in minutes for the hover preview, click grid and availability slots. Defaults to 30. */
16
16
  duration?: number;
17
- /** Minutes between consecutive slot starts. Defaults to the event type's interval, then to the duration. */
17
+ /**
18
+ * Minutes between consecutive slot starts. Defaults to the event type's interval, then to the
19
+ * duration. Passing it makes the slot interval picker controlled: it only reports its selection
20
+ * through `onSlotIntervalChange` and the grid follows this prop.
21
+ */
18
22
  slotInterval?: number;
19
23
  /** Booking to keep visible and highlighted on the grid, whoever its hosts are. */
20
24
  bookingUid?: string | null;
@@ -34,10 +38,16 @@ export type CalendarViewComponentProps = {
34
38
  showTimezoneControls?: boolean;
35
39
  /** Fires when the meeting timezone is picked, whether or not `timezone` is controlled. */
36
40
  onTimezoneChange?: (timezone: string) => void;
41
+ /** Shows a slot interval picker in the bar above the grid so the cadence can be changed on the spot. */
42
+ showSlotIntervalControls?: boolean;
43
+ /** Intervals offered by the picker, in minutes. Defaults to 15, 30, 45 and 60; the current one is always included. */
44
+ slotIntervalOptions?: number[];
45
+ /** Fires when a slot interval is picked, whether or not `slotInterval` is controlled. */
46
+ onSlotIntervalChange?: (slotInterval: number) => void;
37
47
  /** Fires for clicks anywhere on the grid, inside or outside the users' availability. */
38
48
  onCellClick?: (date: Date) => void;
39
49
  onEventClick?: (event: CalendarEvent) => void;
40
50
  };
41
- export declare const CalendarViewComponent: ({ userIds, weekStart, eventTypeId, duration, slotInterval, bookingUid, initialDate, timezone, showTimezoneControls, onTimezoneChange, onCellClick, onEventClick, }: CalendarViewComponentProps) => JSX.Element;
51
+ export declare const CalendarViewComponent: ({ userIds, weekStart, eventTypeId, duration, slotInterval, bookingUid, initialDate, timezone, showTimezoneControls, onTimezoneChange, showSlotIntervalControls, slotIntervalOptions, onSlotIntervalChange, onCellClick, onEventClick, }: CalendarViewComponentProps) => JSX.Element;
42
52
  export {};
43
53
  //# sourceMappingURL=CalendarViewComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarViewComponent.d.ts","sourceRoot":"","sources":["../../../../../calendar-view/CalendarViewComponent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAUxF,QAAA,MAAM,SAAS,yFAA0F,CAAC;AAC1G,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,I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,CAAC,EAAE,OAAO,CAAC;IAC/B,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,wGAAwG;IACxG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,sHAAsH;IACtH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,yFAAyF;IACzF,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,wFAAwF;IACxF,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,yOAgBnC,0BAA0B,gBAyE5B,CAAC"}
@@ -21,6 +21,10 @@ export type LargeCalendarProps = {
21
21
  /** Shows the timezone bar with an editable meeting timezone and everyone's timezone. */
22
22
  showTimezoneControls?: boolean;
23
23
  onTimezoneChange?: (timezone: string) => void;
24
+ /** Adds a slot interval picker to the timezone bar, shown even without `showTimezoneControls`. */
25
+ showSlotIntervalControls?: boolean;
26
+ slotIntervalOptions?: number[];
27
+ onSlotIntervalChange?: (slotInterval: number) => void;
24
28
  onCellClick?: (date: Date) => void;
25
29
  onEventClick?: (event: CalendarEvent) => void;
26
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-shell.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/calendar-shell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,KAAK,cAAc,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,OAAO,QAAQ,CAAC,EAC7B,QAAQ,GACR,oBAAoB,GACpB,WAAW,GACX,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,cAAc,GACd,yCAAyC,GACzC,+BAA+B,CAClC,GAAG;IACF,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,sGAAsG;IACtG,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,eAsCA"}
1
+ {"version":3,"file":"calendar-shell.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/calendar-shell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,KAAK,cAAc,EAAsB,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAMzF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IAC5D,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;KAClD,CAAC;IACF,kIAAkI;IAClI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAA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12,6 +12,12 @@ export type CalendarTimezoneBarProps = {
12
12
  hosts?: CalendarTimezoneBarHost[];
13
13
  /** Omitting it renders the meeting timezone as a read-only label instead of a picker. */
14
14
  onTimezoneChange?: (timezone: string) => void;
15
+ /** Minutes between slot starts currently drawn on the grid. */
16
+ slotInterval?: number;
17
+ /** Intervals offered by the picker; the current one is always included. Defaults to 15/30/45/60. */
18
+ slotIntervalOptions?: number[];
19
+ /** Omitting it hides the slot interval picker. */
20
+ onSlotIntervalChange?: (slotInterval: number) => void;
15
21
  };
16
- export declare function CalendarTimezoneBar({ timezone, viewerTimezone, hosts, onTimezoneChange, }: CalendarTimezoneBarProps): JSX.Element;
22
+ export declare function CalendarTimezoneBar({ timezone, viewerTimezone, hosts, onTimezoneChange, slotInterval, slotIntervalOptions, onSlotIntervalChange, }: CalendarTimezoneBarProps): JSX.Element;
17
23
  //# sourceMappingURL=calendar-timezone-bar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-timezone-bar.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/calendar-timezone-bar.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,2FAA2F;IAC3F,KAAK,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAClC,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C,CAAC;AAaF,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,cAAc,EACd,KAAK,EACL,gBAAgB,GACjB,EAAE,wBAAwB,eAyC1B"}
1
+ {"version":3,"file":"calendar-timezone-bar.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/calendar-timezone-bar.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,2FAA2F;IAC3F,KAAK,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAClC,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oGAAoG;IACpG,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,kDAAkD;IAClD,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAaF,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,cAAc,EACd,KAAK,EACL,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,GACrB,EAAE,wBAAwB,eAsE1B"}
@@ -1,5 +1,5 @@
1
1
  import { LargeCalendarProps } from './calendar-shell';
2
- export declare function UsersBusyTimesCalendar({ userIds, extraDays, isLoading, event, duration, slotInterval, bookingUid, timezone: timezoneOverride, showTimezoneControls, viewerTimezone, onTimezoneChange, onCellClick, onEventClick, }: LargeCalendarProps & {
2
+ export declare function UsersBusyTimesCalendar({ userIds, extraDays, isLoading, event, duration, slotInterval, bookingUid, timezone: timezoneOverride, showTimezoneControls, viewerTimezone, onTimezoneChange, showSlotIntervalControls, slotIntervalOptions, onSlotIntervalChange, onCellClick, onEventClick, }: LargeCalendarProps & {
3
3
  userIds: number[];
4
4
  viewerTimezone?: string | null;
5
5
  }): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"users-busy-times-calendar.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/users-busy-times-calendar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,KAAK,kBAAkB,EAAqB,MAAM,kBAAkB,CAAC;AAG7F,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EAAE,gBAAgB,EAC1B,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,YAAY,GACb,EAAE,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,eAmF5E"}
1
+ {"version":3,"file":"users-busy-times-calendar.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/users-busy-times-calendar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,KAAK,kBAAkB,EAAqB,MAAM,kBAAkB,CAAC;AAG7F,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EAAE,gBAAgB,EAC1B,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,EAAE,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,eAsF5E"}
@@ -1,5 +1,5 @@
1
1
  import { LargeCalendarProps } from './calendar-shell';
2
- export declare function ViewerOverlayCalendar({ extraDays, availableTimeslots, isLoading, event, duration, slotInterval, bookingUid, timezone: timezoneOverride, showTimezoneControls, viewerTimezone, onTimezoneChange, onCellClick, onEventClick, }: LargeCalendarProps & {
2
+ export declare function ViewerOverlayCalendar({ extraDays, availableTimeslots, isLoading, event, duration, slotInterval, bookingUid, timezone: timezoneOverride, showTimezoneControls, viewerTimezone, onTimezoneChange, showSlotIntervalControls, slotIntervalOptions, onSlotIntervalChange, onCellClick, onEventClick, }: LargeCalendarProps & {
3
3
  viewerTimezone?: string | null;
4
4
  }): JSX.Element;
5
5
  //# sourceMappingURL=viewer-overlay-calendar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"viewer-overlay-calendar.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/viewer-overlay-calendar.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAiB,KAAK,kBAAkB,EAAqB,MAAM,kBAAkB,CAAC;AAG7F,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EAAE,gBAAgB,EAC1B,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,YAAY,GACb,EAAE,kBAAkB,GAAG;IAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,eAoIzD"}
1
+ {"version":3,"file":"viewer-overlay-calendar.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/components/viewer-overlay-calendar.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAiB,KAAK,kBAAkB,EAAqB,MAAM,kBAAkB,CAAC;AAG7F,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EAAE,gBAAgB,EAC1B,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,EAAE,kBAAkB,GAAG;IAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,eAuIzD"}
@@ -0,0 +1,10 @@
1
+ export declare const DEFAULT_SLOT_INTERVAL_OPTIONS: number[];
2
+ /**
3
+ * Options offered by the slot interval picker, always including the interval currently in use so an
4
+ * event type configured outside the list (e.g. 20 minutes) still shows its own value as selected.
5
+ */
6
+ export declare function buildSlotIntervalOptions({ options, selected, }: {
7
+ options?: number[];
8
+ selected?: number;
9
+ }): number[];
10
+ //# sourceMappingURL=calendar-slot-interval-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-slot-interval-options.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/lib/calendar-slot-interval-options.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAAmB,CAAC;AAE9D;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,EAAE,CAMX"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=calendar-slot-interval-options.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-slot-interval-options.test.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/lib/calendar-slot-interval-options.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarViewPlatformWrapper.d.ts","sourceRoot":"","sources":["../../../../../../calendar-view/wrappers/CalendarViewPlatformWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAGlG,MAAM,MAAM,iD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2CAA2C,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAC,CACnF,CAAC;AAEF,KAAK,6BAA6B,GAAG;IAAE,eAAe,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG,0BAA0B,CAAC;AAE9F,KAAK,iBAAiB,GAAG,0BAA0B,GAAG,6BAA6B,CAAC;AA4BpF,eAAO,MAAM,2BAA2B,GAAI,OAAO,iBAAiB,gBAMnE,CAAC"}
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  "type": "module",
5
5
  "description": "Customizable UI components to integrate scheduling into your product.",
6
6
  "authors": "Cal.com, Inc.",
7
- "version": "2.6.8",
7
+ "version": "2.6.9",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/calcom/cal"
@@ -1,4 +1,4 @@
1
- import { az as fn } from "./index-BZ8ferbV.js";
1
+ import { az as fn } from "./index-CgANIEsx.js";
2
2
  import Kr from "react";
3
3
  function pn($, m) {
4
4
  for (var F = 0; F < m.length; F++) {
@@ -1,5 +1,5 @@
1
1
  import { useState as c } from "react";
2
- import { p as o } from "./index-BZ8ferbV.js";
2
+ import { p as o } from "./index-CgANIEsx.js";
3
3
  function f(e) {
4
4
  const { getAppData: a, setAppData: i } = o(), [l, s] = c(() => {
5
5
  const t = a("enabled");
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": "2.6.8",
7
+ "version": "2.6.9",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/calcom/cal"