@ilamy/calendar 0.1.7 → 0.1.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.
package/dist/index.d.ts CHANGED
@@ -242,39 +242,41 @@ interface CalendarEvent {
242
242
  */
243
243
  data?: Record<string, any>;
244
244
  }
245
- /**
246
- * Extended calendar event interface with calculated positioning properties.
247
- * Used internally by the calendar rendering engine to position events on the grid.
248
- *
249
- * @internal This interface is used by the calendar layout system and should not be used directly
250
- */
251
- interface ProcessedCalendarEvent extends CalendarEvent {
252
- /** Left position as a percentage of the container width (0-100) */
253
- left: number;
254
- /** Width as a percentage of the container width (0-100) */
255
- width: number;
256
- /** Top position as a percentage of the container height (0-100) */
257
- top: number;
258
- /** Height as a percentage of the container height (0-100) */
259
- height: number;
245
+ interface IlamyCalendarEventRecurrence extends Omit<EventRecurrence, "endDate"> {
246
+ /** How often the event repeats */
247
+ endDate?: dayjs.Dayjs | Date | string;
260
248
  }
261
- /**
262
- * Supported days of the week for calendar configuration.
263
- * Used for setting the first day of the week and other week-related settings.
264
- */
265
- type WeekDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
266
- interface CalendarEvents extends Omit<CalendarEvent, "start" | "end" | "recurrence" | "originalStart" | "originalEnd"> {
249
+ interface IlamyCalendarEvent extends Omit<CalendarEvent, "start" | "end" | "recurrence" | "originalStart" | "originalEnd"> {
250
+ /** Start date and time of the event */
267
251
  start: dayjs.Dayjs | Date | string;
252
+ /** End date and time of the event */
268
253
  end: dayjs.Dayjs | Date | string;
254
+ /**
255
+ * Original start date for recurring events (used for tracking modifications)
256
+ * @internal
257
+ */
269
258
  originalStart?: dayjs.Dayjs | Date | string;
259
+ /**
260
+ * Original end date for recurring events (used for tracking modifications)
261
+ * @internal
262
+ */
270
263
  originalEnd?: dayjs.Dayjs | Date | string;
271
- recurrence?: EventRecurrence;
264
+ /**
265
+ * Recurrence configuration for repeating events
266
+ * If present, this event will repeat according to the specified pattern
267
+ */
268
+ recurrence?: IlamyCalendarEventRecurrence;
272
269
  }
270
+ /**
271
+ * Supported days of the week for calendar configuration.
272
+ * Used for setting the first day of the week and other week-related settings.
273
+ */
274
+ type WeekDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
273
275
  interface CalendarProps {
274
276
  /**
275
277
  * Array of events to display in the calendar.
276
278
  */
277
- events?: CalendarEvents[];
279
+ events?: IlamyCalendarEvent[];
278
280
  /**
279
281
  * The first day of the week to display in the calendar.
280
282
  * Can be 'sunday', 'monday', etc. Defaults to 'sunday'.
@@ -344,4 +346,4 @@ interface CalendarProps {
344
346
  }
345
347
  declare const IlamyCalendar: React2.FC<CalendarProps>;
346
348
  declare const usePublicCalendarContext: () => {};
347
- export { usePublicCalendarContext as useIlamyCalendarContext, WeekDays, ProcessedCalendarEvent, IlamyCalendar, EventRecurrence, CalendarEvent };
349
+ export { usePublicCalendarContext as useIlamyCalendarContext, WeekDays, IlamyCalendar, IlamyCalendarEventRecurrence as EventRecurrence, IlamyCalendarEvent as CalendarEvent };