@ilamy/calendar 1.0.0 → 1.0.1

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
@@ -1,5 +1,25 @@
1
1
  import React3 from "react";
2
- import { RRuleOptions } from "@/lib/recurrence-handler/types";
2
+ import { Options } from "rrule";
3
+ /**
4
+ * Re-rrule.js Options with practical TypeScript interface.
5
+ * Makes all properties optional except freq and dtstart (which are required by RFC 5545).
6
+ * This allows clean object creation without needing explicit null values.
7
+ *
8
+ * @see https://tools.ietf.org/html/rfc5545 - RFC 5545 iCalendar specification
9
+ * @see https://github.com/jakubroztocil/rrule - rrule.js library documentation
10
+ */
11
+ type RRuleOptions = {
12
+ /**
13
+ * The frequency of the event. Must be one of the following: DAILY, WEEKLY, MONTHLY, etc.
14
+ */
15
+ freq: Options["freq"];
16
+ /**
17
+ * The start date of the recurrence rule. This defines when the recurrence pattern begins.
18
+ * Required for proper RRULE functionality according to RFC 5545.
19
+ * @important Same as the event start date.
20
+ */
21
+ dtstart: Date;
22
+ } & Partial<Omit<Options, "freq" | "dtstart">>;
3
23
  /**
4
24
  * Core calendar event interface representing a single calendar event.
5
25
  * This is the primary data structure for calendar events.
@@ -342,27 +362,6 @@ interface ResourceCalendarEvent extends CalendarEvent {
342
362
  resourceIds?: (string | number)[];
343
363
  }
344
364
  declare const IlamyResourceCalendar: React4.FC<IlamyResourceCalendarProps>;
345
- import { Options } from "rrule";
346
- /**
347
- * Re-rrule.js Options with practical TypeScript interface.
348
- * Makes all properties optional except freq and dtstart (which are required by RFC 5545).
349
- * This allows clean object creation without needing explicit null values.
350
- *
351
- * @see https://tools.ietf.org/html/rfc5545 - RFC 5545 iCalendar specification
352
- * @see https://github.com/jakubroztocil/rrule - rrule.js library documentation
353
- */
354
- type RRuleOptions2 = {
355
- /**
356
- * The frequency of the event. Must be one of the following: DAILY, WEEKLY, MONTHLY, etc.
357
- */
358
- freq: Options["freq"]
359
- /**
360
- * The start date of the recurrence rule. This defines when the recurrence pattern begins.
361
- * Required for proper RRULE functionality according to RFC 5545.
362
- * @important Same as the event start date.
363
- */
364
- dtstart: Date
365
- } & Partial<Omit<Options, "freq" | "dtstart">>;
366
365
  /**
367
366
  * Simplified calendar context type for external use
368
367
  * Contains only the most commonly used calendar operations
@@ -408,4 +407,4 @@ declare const generateRecurringEvents: ({ event, currentEvents, startDate, endDa
408
407
  import { Frequency, Weekday } from "rrule";
409
408
  import { RRule } from "rrule";
410
409
  declare const defaultTranslations: Translations;
411
- export { useIlamyResourceCalendarContext, useIlamyCalendarContext, isRecurringEvent, generateRecurringEvents, defaultTranslations, Weekday, WeekDays, UseIlamyResourceCalendarContextReturn, UseIlamyCalendarContextReturn, TranslatorFunction, Translations, TranslationKey, ResourceCalendarEvent, Resource, RRuleOptions2 as RRuleOptions, RRule, IlamyResourceCalendarProps, IlamyResourceCalendar, IlamyCalendarProps, IlamyCalendar, Frequency, CalendarEvent };
410
+ export { useIlamyResourceCalendarContext, useIlamyCalendarContext, isRecurringEvent, generateRecurringEvents, defaultTranslations, Weekday, WeekDays, UseIlamyResourceCalendarContextReturn, UseIlamyCalendarContextReturn, TranslatorFunction, Translations, TranslationKey, ResourceCalendarEvent, Resource, RRuleOptions, RRule, IlamyResourceCalendarProps, IlamyResourceCalendar, IlamyCalendarProps, IlamyCalendar, Frequency, CalendarEvent };