expo-calendar 15.1.0-canary-20251127-587bc53 → 15.1.0-canary-20251205-a1dedc6

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 (43) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/build.gradle +2 -2
  3. package/build/next/Calendar.js.map +1 -1
  4. package/build/next/ExpoCalendar.d.ts +6 -1
  5. package/build/next/ExpoCalendar.d.ts.map +1 -1
  6. package/build/next/ExpoCalendar.js.map +1 -1
  7. package/expo-module.config.json +1 -1
  8. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.module → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.module} +7 -7
  9. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.module.md5 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.module.sha1 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.module.sha256 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.module.sha512 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.pom → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.pom} +1 -1
  14. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.pom.md5 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.pom.sha1 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.pom.sha256 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.pom.sha512 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/maven-metadata.xml +4 -4
  19. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/maven-metadata.xml.md5 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/maven-metadata.xml.sha1 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/maven-metadata.xml.sha256 +1 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/maven-metadata.xml.sha512 +1 -1
  23. package/package.json +3 -3
  24. package/src/next/Calendar.ts +1 -1
  25. package/src/next/ExpoCalendar.ts +7 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.module.md5 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.module.sha1 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.module.sha256 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.module.sha512 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.pom.md5 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.pom.sha1 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.pom.sha256 +0 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.calendar/15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.pom.sha512 +0 -1
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar.md5 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar.md5} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar.sha1 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar.sha1} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar.sha256 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar.sha256} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar.sha512 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar.sha512} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar.md5 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar.md5} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar.sha1 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar.sha1} +0 -0
  42. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar.sha256 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar.sha256} +0 -0
  43. /package/local-maven-repo/host/exp/exponent/expo.modules.calendar/{15.1.0-canary-20251127-587bc53/expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar.sha512 → 15.1.0-canary-20251205-a1dedc6/expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -17,6 +17,10 @@
17
17
 
18
18
  - [Android] Refactored module native code. ([#40548](https://github.com/expo/expo/pull/40548) by [@barthap](https://github.com/barthap))
19
19
 
20
+ ## 15.0.8 - 2025-12-05
21
+
22
+ _This version does not introduce any user-facing changes._
23
+
20
24
  ## 15.0.7 — 2025-09-11
21
25
 
22
26
  _This version does not introduce any user-facing changes._
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '15.1.0-canary-20251127-587bc53'
7
+ version = '15.1.0-canary-20251205-a1dedc6'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.calendar"
11
11
  defaultConfig {
12
12
  versionCode 17
13
- versionName '15.1.0-canary-20251127-587bc53'
13
+ versionName '15.1.0-canary-20251205-a1dedc6'
14
14
  }
15
15
  }
16
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../src/next/Calendar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAatD,OAAO,oBAAoB,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAU1F;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,oBAAoB,CAAC,oBAAoB;IACxE,KAAK,CAAC,MAAM,CAAC,OAA8C;QAClE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAClB,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;QAClE,CAAC;QACD,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAChE,OAAO,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,qBAAqB,CAAC,CAAC;IAC3E,CAAC;IAEQ,KAAK,CAAC,MAAM;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAClB,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;QAClE,CAAC;QACD,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC;IACvB,CAAC;CACF;AAED;;GAEG;AACH,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CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC1D,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,oBAAoB,CAAC,UAAU,CACpC,WAAW,EACX,eAAe,CAAC,SAAS,CAAC,EAC1B,eAAe,CAAC,OAAO,CAAC,CACzB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,0BAA0B,CAAC;AAE1F;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC;AAElF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,2BAA2B,CAAC;AAE5F;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;AAEpF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC,cAAc,CAAC;AAwBlE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\nimport { Platform, processColor } from 'react-native';\n\nimport {\n Calendar,\n Attendee,\n DialogEventResult,\n EntityTypes,\n Event,\n OpenEventDialogResult,\n RecurringEventOptions,\n Reminder,\n ReminderStatus,\n} from '../Calendar';\nimport InternalExpoCalendar from './ExpoCalendar';\nimport { stringifyDateValues, stringifyIfDate, getNullableDetailsFields } from '../utils';\nimport {\n ModifiableEventProperties,\n ModifiableReminderProperties,\n ModifiableCalendarProperties,\n CalendarDialogOpenParamsNext,\n CalendarDialogParamsNext,\n ModifiableAttendeeProperties,\n} from './ExpoCalendar.types';\n\n/**\n * Represents a calendar attendee object.\n */\nexport class ExpoCalendarAttendee extends InternalExpoCalendar.ExpoCalendarAttendee {\n override async update(details: Partial<ModifiableAttendeeProperties>): Promise<void> {\n if (!super.update) {\n throw new UnavailabilityError('ExpoCalendarAttendee', 'update');\n }\n const nullableDetailsFields = getNullableDetailsFields(details);\n return super.update(stringifyDateValues(details), nullableDetailsFields);\n }\n\n override async delete(): Promise<void> {\n if (!super.delete) {\n throw new UnavailabilityError('ExpoCalendarAttendee', 'delete');\n }\n await super.delete();\n }\n}\n\n/**\n * Represents a calendar event object that can be accessed and modified using the Expo Calendar Next API.\n */\nexport class ExpoCalendarEvent extends InternalExpoCalendar.ExpoCalendarEvent {\n override async openInCalendar(\n params?: CalendarDialogOpenParamsNext\n ): Promise<OpenEventDialogResult> {\n // We have to pass null here because the core doesn't support skipping the first param\n return super.openInCalendar(params ?? null);\n }\n\n override async editInCalendar(params?: CalendarDialogParamsNext): Promise<DialogEventResult> {\n // We have to pass null here because the core doesn't support skipping the first param\n return await super.editInCalendar(params ?? null);\n }\n\n override getOccurrenceSync(recurringEventOptions: RecurringEventOptions = {}): ExpoCalendarEvent {\n const result = super.getOccurrenceSync(stringifyDateValues(recurringEventOptions));\n Object.setPrototypeOf(result, ExpoCalendarEvent.prototype);\n return result;\n }\n\n override async getAttendees(): Promise<ExpoCalendarAttendee[]> {\n const attendees = await super.getAttendees();\n return attendees.map((attendee) => {\n Object.setPrototypeOf(attendee, ExpoCalendarAttendee.prototype);\n return attendee;\n });\n }\n\n override async createAttendee(attendee: Attendee): Promise<ExpoCalendarAttendee> {\n if (!super.createAttendee) {\n throw new UnavailabilityError('ExpoCalendarEvent', 'createAttendee');\n }\n const newAttendee = await super.createAttendee(attendee);\n Object.setPrototypeOf(newAttendee, ExpoCalendarAttendee.prototype);\n return newAttendee;\n }\n\n override async update(details: Partial<ModifiableEventProperties>): Promise<void> {\n const nullableDetailsFields = getNullableDetailsFields(details);\n return await super.update(stringifyDateValues(details), nullableDetailsFields);\n }\n\n override async delete(): Promise<void> {\n await super.delete();\n }\n\n static override async get(eventId: string): Promise<ExpoCalendarEvent> {\n const event = await InternalExpoCalendar.getEventById(eventId);\n Object.setPrototypeOf(event, ExpoCalendarEvent.prototype);\n return event;\n }\n}\n\n/**\n * Represents a calendar reminder object that can be accessed and modified using the Expo Calendar Next API.\n */\nexport class ExpoCalendarReminder extends InternalExpoCalendar.ExpoCalendarReminder {\n override async update(details: Partial<ModifiableReminderProperties>): Promise<void> {\n const nullableDetailsFields = getNullableDetailsFields(details);\n await super.update(stringifyDateValues(details), nullableDetailsFields);\n }\n\n static override async get(reminderId: string): Promise<ExpoCalendarReminder> {\n const reminder = await InternalExpoCalendar.getReminderById(reminderId);\n Object.setPrototypeOf(reminder, ExpoCalendarReminder.prototype);\n return reminder;\n }\n}\n\n/**\n * Represents a calendar object that can be accessed and modified using the Expo Calendar Next API.\n *\n * This class provides properties and methods for interacting with a specific calendar on the device,\n * such as retrieving its events, updating its details, and accessing its metadata.\n */\nexport class ExpoCalendar extends InternalExpoCalendar.ExpoCalendar {\n override async createEvent(\n details: Partial<\n Omit<\n Event,\n | 'creationDate'\n | 'lastModifiedDate'\n | 'originalStartDate'\n | 'isDetached'\n | 'status'\n | 'organizer'\n >\n >\n ): Promise<ExpoCalendarEvent> {\n const newEvent = await super.createEvent(stringifyDateValues(details));\n Object.setPrototypeOf(newEvent, ExpoCalendarEvent.prototype);\n return newEvent;\n }\n\n override async createReminder(details: Partial<Reminder>): Promise<ExpoCalendarReminder> {\n const newReminder = await super.createReminder(stringifyDateValues(details));\n Object.setPrototypeOf(newReminder, ExpoCalendarReminder.prototype);\n return newReminder;\n }\n\n override async listEvents(startDate: Date, endDate: Date): Promise<ExpoCalendarEvent[]> {\n if (!startDate) {\n throw new Error('listEvents must be called with a startDate (date) to search for events');\n }\n if (!endDate) {\n throw new Error('listEvents must be called with an endDate (date) to search for events');\n }\n const events = await super.listEvents(stringifyIfDate(startDate), stringifyIfDate(endDate));\n return events.map((event) => {\n Object.setPrototypeOf(event, ExpoCalendarEvent.prototype);\n return event;\n });\n }\n\n override async listReminders(\n startDate: Date | null = null,\n endDate: Date | null = null,\n status: ReminderStatus | null = null\n ): Promise<ExpoCalendarReminder[]> {\n const reminders = await super.listReminders(\n startDate ? stringifyIfDate(startDate) : null,\n endDate ? stringifyIfDate(endDate) : null,\n status\n );\n return reminders.map((reminder) => {\n Object.setPrototypeOf(reminder, ExpoCalendarReminder.prototype);\n return reminder;\n });\n }\n\n override async update(details: Partial<ModifiableCalendarProperties>): Promise<void> {\n const color = details.color ? processColor(details.color) : undefined;\n const newDetails = { ...details, color: color || undefined };\n return await super.update(newDetails as Partial<ModifiableCalendarProperties>);\n }\n\n static override async get(calendarId: string): Promise<ExpoCalendar> {\n const calendar = await InternalExpoCalendar.getCalendarById(calendarId);\n Object.setPrototypeOf(calendar, ExpoCalendar.prototype);\n return calendar;\n }\n}\n\n/**\n * Gets an instance of the default calendar object.\n * @return An [`ExpoCalendar`](#expocalendar) object that is the user's default calendar.\n */\nexport function getDefaultCalendarSync(): ExpoCalendar {\n if (Platform.OS === 'android' || !InternalExpoCalendar.getDefaultCalendarSync) {\n throw new UnavailabilityError('Calendar', 'getDefaultCalendar');\n }\n const defaultCalendar = InternalExpoCalendar.getDefaultCalendarSync();\n Object.setPrototypeOf(defaultCalendar, ExpoCalendar.prototype);\n return defaultCalendar;\n}\n\n/**\n * Gets an array of [`ExpoCalendar`](#expocalendar) shared objects with details about the different calendars stored on the device.\n * @param entityType __iOS Only.__ Not required, but if defined, filters the returned calendars to\n * a specific [entity type](#entitytypes). Possible values are `Calendar.EntityTypes.EVENT` (for calendars shown in\n * the Calendar app) and `Calendar.EntityTypes.REMINDER` (for the Reminders app).\n * > **Note:** If not defined, you will need both permissions: **CALENDAR** and **REMINDERS**.\n * @return An array of [`ExpoCalendar`](#expocalendar) shared objects matching the provided entity type (if provided).\n */\nexport async function getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]> {\n if (!InternalExpoCalendar.getCalendars) {\n throw new UnavailabilityError('Calendar', 'getCalendars');\n }\n const calendars = await InternalExpoCalendar.getCalendars(type);\n return calendars.map((calendar) => {\n Object.setPrototypeOf(calendar, ExpoCalendar.prototype);\n return calendar;\n });\n}\n\n/**\n * Creates a new calendar on the device, allowing events to be added later and displayed in the OS Calendar app.\n * @param details A map of details for the calendar to be created.\n * @returns An [`ExpoCalendar`](#expocalendar) object representing the newly created calendar.\n */\nexport async function createCalendar(details: Partial<Calendar> = {}): Promise<ExpoCalendar> {\n const color = details.color ? processColor(details.color) : undefined;\n const newDetails = { ...details, id: undefined, color: color || undefined };\n const createdCalendar = await InternalExpoCalendar.createCalendar(newDetails);\n Object.setPrototypeOf(createdCalendar, ExpoCalendar.prototype);\n return createdCalendar;\n}\n\n/**\n * Lists events from the device's calendar. It can be used to search events in multiple calendars.\n * > **Note:** If you want to search events in a single calendar, you can use [`ExpoCalendar.listEvents`](#listeventsstartdate-enddate) instead.\n * @param calendars An array of calendar IDs (`string[]`) or [`ExpoCalendar`](#expocalendar) objects to search for events.\n * @param startDate The start date of the time range to search for events.\n * @param endDate The end date of the time range to search for events.\n * @returns An array of [`ExpoCalendarEvent`](#expocalendarevent) objects representing the events found.\n */\nexport async function listEvents(\n calendars: (string | ExpoCalendar)[],\n startDate: Date,\n endDate: Date\n): Promise<ExpoCalendarEvent[]> {\n if (!InternalExpoCalendar.listEvents) {\n throw new UnavailabilityError('Calendar', 'listEvents');\n }\n const calendarIds = Array.isArray(calendars)\n ? calendars.map((c) => (typeof c === 'string' ? c : c.id))\n : [];\n return InternalExpoCalendar.listEvents(\n calendarIds,\n stringifyIfDate(startDate),\n stringifyIfDate(endDate)\n );\n}\n\n/**\n * Asks the user to grant permissions for accessing user's calendars.\n * @return A promise that resolves to an object of type [`PermissionResponse`](#permissionresponse).\n */\nexport const requestCalendarPermissions = InternalExpoCalendar.requestCalendarPermissions;\n\n/**\n * Check or request permissions to access the calendar.\n * This uses both `getCalendarPermissionsAsync` and `requestCalendarPermissionsAsync` to interact\n * with the permissions.\n *\n * @example\n * ```ts\n * const [status, requestPermission] = Calendar.useCalendarPermissions();\n * ```\n */\nexport const getCalendarPermissions = InternalExpoCalendar.getCalendarPermissions;\n\n/**\n * Asks the user to grant permissions for accessing user's reminders.\n * @return A promise that resolves to an object of type [`PermissionResponse`](#permissionresponse).\n */\nexport const requestRemindersPermissions = InternalExpoCalendar.requestRemindersPermissions;\n\n/**\n * Checks user's permissions for accessing user's reminders.\n * @return A promise that resolves to an object of type [`PermissionResponse`](#permissionresponse).\n */\nexport const getRemindersPermissions = InternalExpoCalendar.getRemindersPermissions;\n\n/**\n * Gets an array of Source objects with details about the different sources stored on the device.\n * @returns An array of Source objects representing the sources found.\n */\nexport const getSourcesSync = InternalExpoCalendar.getSourcesSync;\n\nexport type {\n ModifiableEventProperties,\n ModifiableReminderProperties,\n ModifiableCalendarProperties,\n} from './ExpoCalendar.types';\n\nexport type {\n PermissionResponse,\n Alarm,\n AlarmLocation,\n CalendarDialogParams,\n DaysOfTheWeek,\n DialogEventResult,\n OpenEventDialogResult,\n OpenEventPresentationOptions,\n PermissionExpiration,\n PermissionHookOptions,\n PresentationOptions,\n RecurrenceRule,\n RecurringEventOptions,\n Source,\n} from '../Calendar';\nexport {\n AlarmMethod,\n AttendeeRole,\n AttendeeStatus,\n AttendeeType,\n Availability,\n CalendarAccessLevel,\n CalendarDialogResultActions,\n CalendarType,\n DayOfTheWeek,\n EntityTypes,\n EventAccessLevel,\n EventStatus,\n Frequency,\n MonthOfTheYear,\n ReminderStatus,\n SourceType,\n createEventInCalendarAsync,\n openEventInCalendarAsync,\n} from '../Calendar';\nexport { useCalendarPermissions, useRemindersPermissions } from '../Calendar';\n"]}
1
+ {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../src/next/Calendar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sBAAsB,CAAC;AAElF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,2BAA2B,CAAC;AAE5F;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;AAEpF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC,cAAc,CAAC;AAwBlE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\nimport { Platform, processColor } from 'react-native';\n\nimport {\n Calendar,\n Attendee,\n DialogEventResult,\n EntityTypes,\n Event,\n OpenEventDialogResult,\n RecurringEventOptions,\n Reminder,\n ReminderStatus,\n} from '../Calendar';\nimport InternalExpoCalendar from './ExpoCalendar';\nimport { stringifyDateValues, stringifyIfDate, getNullableDetailsFields } from '../utils';\nimport {\n ModifiableEventProperties,\n ModifiableReminderProperties,\n ModifiableCalendarProperties,\n CalendarDialogOpenParamsNext,\n CalendarDialogParamsNext,\n ModifiableAttendeeProperties,\n} from './ExpoCalendar.types';\n\n/**\n * Represents a calendar attendee object.\n */\nexport class ExpoCalendarAttendee extends InternalExpoCalendar.ExpoCalendarAttendee {\n override async update(details: Partial<ModifiableAttendeeProperties>): Promise<void> {\n if (!super.update) {\n throw new UnavailabilityError('ExpoCalendarAttendee', 'update');\n }\n const nullableDetailsFields = getNullableDetailsFields(details);\n return super.update(stringifyDateValues(details), nullableDetailsFields);\n }\n\n override async delete(): Promise<void> {\n if (!super.delete) {\n throw new UnavailabilityError('ExpoCalendarAttendee', 'delete');\n }\n await super.delete();\n }\n}\n\n/**\n * Represents a calendar event object that can be accessed and modified using the Expo Calendar Next API.\n */\nexport class ExpoCalendarEvent extends InternalExpoCalendar.ExpoCalendarEvent {\n override async openInCalendar(\n params?: CalendarDialogOpenParamsNext\n ): Promise<OpenEventDialogResult> {\n // We have to pass null here because the core doesn't support skipping the first param\n return super.openInCalendar(params ?? null);\n }\n\n override async editInCalendar(params?: CalendarDialogParamsNext): Promise<DialogEventResult> {\n // We have to pass null here because the core doesn't support skipping the first param\n return await super.editInCalendar(params ?? null);\n }\n\n override getOccurrenceSync(recurringEventOptions: RecurringEventOptions = {}): ExpoCalendarEvent {\n const result = super.getOccurrenceSync(stringifyDateValues(recurringEventOptions));\n Object.setPrototypeOf(result, ExpoCalendarEvent.prototype);\n return result;\n }\n\n override async getAttendees(): Promise<ExpoCalendarAttendee[]> {\n const attendees = await super.getAttendees();\n return attendees.map((attendee) => {\n Object.setPrototypeOf(attendee, ExpoCalendarAttendee.prototype);\n return attendee;\n });\n }\n\n override async createAttendee(attendee: Attendee): Promise<ExpoCalendarAttendee> {\n if (!super.createAttendee) {\n throw new UnavailabilityError('ExpoCalendarEvent', 'createAttendee');\n }\n const newAttendee = await super.createAttendee(attendee);\n Object.setPrototypeOf(newAttendee, ExpoCalendarAttendee.prototype);\n return newAttendee;\n }\n\n override async update(details: Partial<ModifiableEventProperties>): Promise<void> {\n const nullableDetailsFields = getNullableDetailsFields(details);\n return await super.update(stringifyDateValues(details), nullableDetailsFields);\n }\n\n override async delete(): Promise<void> {\n await super.delete();\n }\n\n static override async get(eventId: string): Promise<ExpoCalendarEvent> {\n const event = await InternalExpoCalendar.getEventById(eventId);\n Object.setPrototypeOf(event, ExpoCalendarEvent.prototype);\n return event;\n }\n}\n\n/**\n * Represents a calendar reminder object that can be accessed and modified using the Expo Calendar Next API.\n */\nexport class ExpoCalendarReminder extends InternalExpoCalendar.ExpoCalendarReminder {\n override async update(details: Partial<ModifiableReminderProperties>): Promise<void> {\n const nullableDetailsFields = getNullableDetailsFields(details);\n await super.update(stringifyDateValues(details), nullableDetailsFields);\n }\n\n static override async get(reminderId: string): Promise<ExpoCalendarReminder> {\n const reminder = await InternalExpoCalendar.getReminderById(reminderId);\n Object.setPrototypeOf(reminder, ExpoCalendarReminder.prototype);\n return reminder;\n }\n}\n\n/**\n * Represents a calendar object that can be accessed and modified using the Expo Calendar Next API.\n *\n * This class provides properties and methods for interacting with a specific calendar on the device,\n * such as retrieving its events, updating its details, and accessing its metadata.\n */\nexport class ExpoCalendar extends InternalExpoCalendar.ExpoCalendar {\n override async createEvent(\n details: Partial<\n Omit<\n Event,\n | 'creationDate'\n | 'lastModifiedDate'\n | 'originalStartDate'\n | 'isDetached'\n | 'status'\n | 'organizer'\n >\n >\n ): Promise<ExpoCalendarEvent> {\n const newEvent = await super.createEvent(stringifyDateValues(details));\n Object.setPrototypeOf(newEvent, ExpoCalendarEvent.prototype);\n return newEvent;\n }\n\n override async createReminder(details: Partial<Reminder>): Promise<ExpoCalendarReminder> {\n const newReminder = await super.createReminder(stringifyDateValues(details));\n Object.setPrototypeOf(newReminder, ExpoCalendarReminder.prototype);\n return newReminder;\n }\n\n override async listEvents(startDate: Date, endDate: Date): Promise<ExpoCalendarEvent[]> {\n if (!startDate) {\n throw new Error('listEvents must be called with a startDate (date) to search for events');\n }\n if (!endDate) {\n throw new Error('listEvents must be called with an endDate (date) to search for events');\n }\n const events = await super.listEvents(stringifyIfDate(startDate), stringifyIfDate(endDate));\n return events.map((event) => {\n Object.setPrototypeOf(event, ExpoCalendarEvent.prototype);\n return event;\n });\n }\n\n override async listReminders(\n startDate: Date | null = null,\n endDate: Date | null = null,\n status: ReminderStatus | null = null\n ): Promise<ExpoCalendarReminder[]> {\n const reminders = await super.listReminders(\n startDate ? stringifyIfDate(startDate) : null,\n endDate ? stringifyIfDate(endDate) : null,\n status\n );\n return reminders.map((reminder) => {\n Object.setPrototypeOf(reminder, ExpoCalendarReminder.prototype);\n return reminder;\n });\n }\n\n override async update(details: Partial<ModifiableCalendarProperties>): Promise<void> {\n const color = details.color ? processColor(details.color) : undefined;\n const newDetails = { ...details, color: color || undefined };\n return await super.update(newDetails as Partial<ModifiableCalendarProperties>);\n }\n\n static override async get(calendarId: string): Promise<ExpoCalendar> {\n const calendar = await InternalExpoCalendar.getCalendarById(calendarId);\n Object.setPrototypeOf(calendar, ExpoCalendar.prototype);\n return calendar;\n }\n}\n\n/**\n * Gets an instance of the default calendar object.\n * @return An [`ExpoCalendar`](#expocalendar) object that is the user's default calendar.\n */\nexport function getDefaultCalendarSync(): ExpoCalendar {\n if (Platform.OS === 'android' || !InternalExpoCalendar.getDefaultCalendarSync) {\n throw new UnavailabilityError('Calendar', 'getDefaultCalendar');\n }\n const defaultCalendar = InternalExpoCalendar.getDefaultCalendarSync();\n Object.setPrototypeOf(defaultCalendar, ExpoCalendar.prototype);\n return defaultCalendar as ExpoCalendar;\n}\n\n/**\n * Gets an array of [`ExpoCalendar`](#expocalendar) shared objects with details about the different calendars stored on the device.\n * @param entityType __iOS Only.__ Not required, but if defined, filters the returned calendars to\n * a specific [entity type](#entitytypes). Possible values are `Calendar.EntityTypes.EVENT` (for calendars shown in\n * the Calendar app) and `Calendar.EntityTypes.REMINDER` (for the Reminders app).\n * > **Note:** If not defined, you will need both permissions: **CALENDAR** and **REMINDERS**.\n * @return An array of [`ExpoCalendar`](#expocalendar) shared objects matching the provided entity type (if provided).\n */\nexport async function getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]> {\n if (!InternalExpoCalendar.getCalendars) {\n throw new UnavailabilityError('Calendar', 'getCalendars');\n }\n const calendars = await InternalExpoCalendar.getCalendars(type);\n return calendars.map((calendar) => {\n Object.setPrototypeOf(calendar, ExpoCalendar.prototype);\n return calendar;\n });\n}\n\n/**\n * Creates a new calendar on the device, allowing events to be added later and displayed in the OS Calendar app.\n * @param details A map of details for the calendar to be created.\n * @returns An [`ExpoCalendar`](#expocalendar) object representing the newly created calendar.\n */\nexport async function createCalendar(details: Partial<Calendar> = {}): Promise<ExpoCalendar> {\n const color = details.color ? processColor(details.color) : undefined;\n const newDetails = { ...details, id: undefined, color: color || undefined };\n const createdCalendar = await InternalExpoCalendar.createCalendar(newDetails);\n Object.setPrototypeOf(createdCalendar, ExpoCalendar.prototype);\n return createdCalendar;\n}\n\n/**\n * Lists events from the device's calendar. It can be used to search events in multiple calendars.\n * > **Note:** If you want to search events in a single calendar, you can use [`ExpoCalendar.listEvents`](#listeventsstartdate-enddate) instead.\n * @param calendars An array of calendar IDs (`string[]`) or [`ExpoCalendar`](#expocalendar) objects to search for events.\n * @param startDate The start date of the time range to search for events.\n * @param endDate The end date of the time range to search for events.\n * @returns An array of [`ExpoCalendarEvent`](#expocalendarevent) objects representing the events found.\n */\nexport async function listEvents(\n calendars: (string | ExpoCalendar)[],\n startDate: Date,\n endDate: Date\n): Promise<ExpoCalendarEvent[]> {\n if (!InternalExpoCalendar.listEvents) {\n throw new UnavailabilityError('Calendar', 'listEvents');\n }\n const calendarIds = Array.isArray(calendars)\n ? calendars.map((c) => (typeof c === 'string' ? c : c.id))\n : [];\n return InternalExpoCalendar.listEvents(\n calendarIds,\n stringifyIfDate(startDate),\n stringifyIfDate(endDate)\n );\n}\n\n/**\n * Asks the user to grant permissions for accessing user's calendars.\n * @return A promise that resolves to an object of type [`PermissionResponse`](#permissionresponse).\n */\nexport const requestCalendarPermissions = InternalExpoCalendar.requestCalendarPermissions;\n\n/**\n * Check or request permissions to access the calendar.\n * This uses both `getCalendarPermissionsAsync` and `requestCalendarPermissionsAsync` to interact\n * with the permissions.\n *\n * @example\n * ```ts\n * const [status, requestPermission] = Calendar.useCalendarPermissions();\n * ```\n */\nexport const getCalendarPermissions = InternalExpoCalendar.getCalendarPermissions;\n\n/**\n * Asks the user to grant permissions for accessing user's reminders.\n * @return A promise that resolves to an object of type [`PermissionResponse`](#permissionresponse).\n */\nexport const requestRemindersPermissions = InternalExpoCalendar.requestRemindersPermissions;\n\n/**\n * Checks user's permissions for accessing user's reminders.\n * @return A promise that resolves to an object of type [`PermissionResponse`](#permissionresponse).\n */\nexport const getRemindersPermissions = InternalExpoCalendar.getRemindersPermissions;\n\n/**\n * Gets an array of Source objects with details about the different sources stored on the device.\n * @returns An array of Source objects representing the sources found.\n */\nexport const getSourcesSync = InternalExpoCalendar.getSourcesSync;\n\nexport type {\n ModifiableEventProperties,\n ModifiableReminderProperties,\n ModifiableCalendarProperties,\n} from './ExpoCalendar.types';\n\nexport type {\n PermissionResponse,\n Alarm,\n AlarmLocation,\n CalendarDialogParams,\n DaysOfTheWeek,\n DialogEventResult,\n OpenEventDialogResult,\n OpenEventPresentationOptions,\n PermissionExpiration,\n PermissionHookOptions,\n PresentationOptions,\n RecurrenceRule,\n RecurringEventOptions,\n Source,\n} from '../Calendar';\nexport {\n AlarmMethod,\n AttendeeRole,\n AttendeeStatus,\n AttendeeType,\n Availability,\n CalendarAccessLevel,\n CalendarDialogResultActions,\n CalendarType,\n DayOfTheWeek,\n EntityTypes,\n EventAccessLevel,\n EventStatus,\n Frequency,\n MonthOfTheYear,\n ReminderStatus,\n SourceType,\n createEventInCalendarAsync,\n openEventInCalendarAsync,\n} from '../Calendar';\nexport { useCalendarPermissions, useRemindersPermissions } from '../Calendar';\n"]}
@@ -1,12 +1,17 @@
1
1
  import { NativeModule, PermissionResponse } from 'expo-modules-core';
2
+ import { ProcessedColorValue } from 'react-native';
2
3
  import { ExpoCalendar, ExpoCalendarAttendee, ExpoCalendarEvent, ExpoCalendarReminder } from './ExpoCalendar.types';
3
- import { EntityTypes, Source } from '../Calendar';
4
+ import { Calendar, EntityTypes, Source } from '../Calendar';
4
5
  declare class ExpoCalendarNextModule extends NativeModule {
5
6
  ExpoCalendar: typeof ExpoCalendar;
6
7
  ExpoCalendarEvent: typeof ExpoCalendarEvent;
7
8
  ExpoCalendarAttendee: typeof ExpoCalendarAttendee;
8
9
  ExpoCalendarReminder: typeof ExpoCalendarReminder;
10
+ createCalendar(details: Omit<Partial<Calendar>, 'color'> & {
11
+ color: ProcessedColorValue | undefined;
12
+ }): Promise<ExpoCalendar>;
9
13
  getDefaultCalendar(): ExpoCalendar;
14
+ getDefaultCalendarSync(): unknown;
10
15
  getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]>;
11
16
  listEvents(calendars: string[], startDate: string | Date, endDate: string | Date): Promise<ExpoCalendarEvent[]>;
12
17
  getCalendarById(calendarId: string): Promise<ExpoCalendar>;
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoCalendar.d.ts","sourceRoot":"","sources":["../../src/next/ExpoCalendar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAuB,MAAM,mBAAmB,CAAC;AAE1F,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,OAAO,sBAAuB,SAAQ,YAAY;IACvD,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;IAC5C,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;IAClD,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;IAElD,kBAAkB,IAAI,YAAY;IAClC,YAAY,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAEzD,UAAU,CACR,SAAS,EAAE,MAAM,EAAE,EACnB,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAE/B,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAC1D,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,C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E,EACnB,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAE/B,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAC1D,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IACzD,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAElE,0BAA0B,IAAI,OAAO,CAAC,kBAAkB,CAAC;IACzD,sBAAsB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IACrD,2BAA2B,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAC1D,uBAAuB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAEtD,cAAc,IAAI,MAAM,EAAE;CAC3B;;AAED,wBAEgE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoCalendar.js","sourceRoot":"","sources":["../../src/next/ExpoCalendar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAoC,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAS1F,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AA6B9D,eAAe,iBAAiB,EAAE;IAChC,CAAC,CAAE,sBAAwD;IAC3D,CAAC,CAAC,mBAAmB,CAAyB,cAAc,CAAC,CAAC","sourcesContent":["import { isRunningInExpoGo } from 'expo';\nimport { NativeModule, PermissionResponse, requireNativeModule } from 'expo-modules-core';\n\nimport {\n ExpoCalendar,\n ExpoCalendarAttendee,\n ExpoCalendarEvent,\n ExpoCalendarReminder,\n} from './ExpoCalendar.types';\nimport { EntityTypes, Source } from '../Calendar';\nimport ExpoGoCalendarNextStub from './ExpoGoCalendarNextStub';\n\ndeclare class ExpoCalendarNextModule extends NativeModule {\n ExpoCalendar: typeof ExpoCalendar;\n ExpoCalendarEvent: typeof ExpoCalendarEvent;\n ExpoCalendarAttendee: typeof ExpoCalendarAttendee;\n ExpoCalendarReminder: typeof ExpoCalendarReminder;\n\n getDefaultCalendar(): ExpoCalendar;\n getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]>;\n\n listEvents(\n calendars: string[],\n startDate: string | Date,\n endDate: string | Date\n ): Promise<ExpoCalendarEvent[]>;\n\n getCalendarById(calendarId: string): Promise<ExpoCalendar>;\n getEventById(eventId: string): Promise<ExpoCalendarEvent>;\n getReminderById(reminderId: string): Promise<ExpoCalendarReminder>;\n\n requestCalendarPermissions(): Promise<PermissionResponse>;\n getCalendarPermissions(): Promise<PermissionResponse>;\n requestRemindersPermissions(): Promise<PermissionResponse>;\n getRemindersPermissions(): Promise<PermissionResponse>;\n\n getSourcesSync(): Source[];\n}\n\nexport default isRunningInExpoGo()\n ? (ExpoGoCalendarNextStub as any as ExpoCalendarNextModule)\n : requireNativeModule<ExpoCalendarNextModule>('CalendarNext');\n"]}
1
+ {"version":3,"file":"ExpoCalendar.js","sourceRoot":"","sources":["../../src/next/ExpoCalendar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAoC,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAU1F,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAkC9D,eAAe,iBAAiB,EAAE;IAChC,CAAC,CAAE,sBAAwD;IAC3D,CAAC,CAAC,mBAAmB,CAAyB,cAAc,CAAC,CAAC","sourcesContent":["import { isRunningInExpoGo } from 'expo';\nimport { NativeModule, PermissionResponse, requireNativeModule } from 'expo-modules-core';\nimport { ProcessedColorValue } from 'react-native';\n\nimport {\n ExpoCalendar,\n ExpoCalendarAttendee,\n ExpoCalendarEvent,\n ExpoCalendarReminder,\n} from './ExpoCalendar.types';\nimport { Calendar, EntityTypes, Source } from '../Calendar';\nimport ExpoGoCalendarNextStub from './ExpoGoCalendarNextStub';\n\ndeclare class ExpoCalendarNextModule extends NativeModule {\n ExpoCalendar: typeof ExpoCalendar;\n ExpoCalendarEvent: typeof ExpoCalendarEvent;\n ExpoCalendarAttendee: typeof ExpoCalendarAttendee;\n ExpoCalendarReminder: typeof ExpoCalendarReminder;\n\n createCalendar(\n details: Omit<Partial<Calendar>, 'color'> & { color: ProcessedColorValue | undefined }\n ): Promise<ExpoCalendar>;\n\n getDefaultCalendar(): ExpoCalendar;\n getDefaultCalendarSync(): unknown;\n getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]>;\n\n listEvents(\n calendars: string[],\n startDate: string | Date,\n endDate: string | Date\n ): Promise<ExpoCalendarEvent[]>;\n\n getCalendarById(calendarId: string): Promise<ExpoCalendar>;\n getEventById(eventId: string): Promise<ExpoCalendarEvent>;\n getReminderById(reminderId: string): Promise<ExpoCalendarReminder>;\n\n requestCalendarPermissions(): Promise<PermissionResponse>;\n getCalendarPermissions(): Promise<PermissionResponse>;\n requestRemindersPermissions(): Promise<PermissionResponse>;\n getRemindersPermissions(): Promise<PermissionResponse>;\n\n getSourcesSync(): Source[];\n}\n\nexport default isRunningInExpoGo()\n ? (ExpoGoCalendarNextStub as any as ExpoCalendarNextModule)\n : requireNativeModule<ExpoCalendarNextModule>('CalendarNext');\n"]}
@@ -11,7 +11,7 @@
11
11
  "publication": {
12
12
  "groupId": "host.exp.exponent",
13
13
  "artifactId": "expo.modules.calendar",
14
- "version": "15.1.0-canary-20251127-587bc53",
14
+ "version": "15.1.0-canary-20251205-a1dedc6",
15
15
  "repository": "local-maven-repo"
16
16
  }
17
17
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.calendar",
6
- "version": "15.1.0-canary-20251127-587bc53",
6
+ "version": "15.1.0-canary-20251205-a1dedc6",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar",
28
- "url": "expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar",
27
+ "name": "expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar",
28
+ "url": "expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar",
29
29
  "size": 507576,
30
30
  "sha512": "a9502afdcc5ed3f6a9522883047adee116b44c0976df4febeb44e092a16421264f13b1527406869008d0ba0f4b6980cd01c6b65e56e8d1373ca870309cb1a1eb",
31
31
  "sha256": "5587954bf22f221056b8a376e4f25c7d884bca06285675177b6ed57f86fce4d3",
@@ -67,8 +67,8 @@
67
67
  ],
68
68
  "files": [
69
69
  {
70
- "name": "expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar",
71
- "url": "expo.modules.calendar-15.1.0-canary-20251127-587bc53.aar",
70
+ "name": "expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar",
71
+ "url": "expo.modules.calendar-15.1.0-canary-20251205-a1dedc6.aar",
72
72
  "size": 507576,
73
73
  "sha512": "a9502afdcc5ed3f6a9522883047adee116b44c0976df4febeb44e092a16421264f13b1527406869008d0ba0f4b6980cd01c6b65e56e8d1373ca870309cb1a1eb",
74
74
  "sha256": "5587954bf22f221056b8a376e4f25c7d884bca06285675177b6ed57f86fce4d3",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "files": [
89
89
  {
90
- "name": "expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar",
91
- "url": "expo.modules.calendar-15.1.0-canary-20251127-587bc53-sources.jar",
90
+ "name": "expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar",
91
+ "url": "expo.modules.calendar-15.1.0-canary-20251205-a1dedc6-sources.jar",
92
92
  "size": 53734,
93
93
  "sha512": "109df9a383a035eac8ddc46a7a71d00c50ba28455b37cfee1462477806162b731527eff058421aff237ee964c3636eb1b94a4bfaf0c1dc50438f7c9c1d25e6e0",
94
94
  "sha256": "c59d3c2f945d80706d7c6c4962a23084470539607d802ddf552049b60455c8ef",
@@ -0,0 +1 @@
1
+ 9e4117e04eaafc26b5a76c9dda97bd7e5865f78db3ff1368cfedada8e0078ebe920833c0a3eec920c8389840aaf2348fec458292f3aecf877d5e6de9ffbc4f49
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.calendar</artifactId>
12
- <version>15.1.0-canary-20251127-587bc53</version>
12
+ <version>15.1.0-canary-20251205-a1dedc6</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.calendar</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 003247dc00375389538271e32d6840e81bc5545b8937506ba1a86e332b2b741146ed602f135f2d615955356de4e8e58861f3e9d6c726d3430d4e181116cadbda
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.calendar</artifactId>
5
5
  <versioning>
6
- <latest>15.1.0-canary-20251127-587bc53</latest>
7
- <release>15.1.0-canary-20251127-587bc53</release>
6
+ <latest>15.1.0-canary-20251205-a1dedc6</latest>
7
+ <release>15.1.0-canary-20251205-a1dedc6</release>
8
8
  <versions>
9
- <version>15.1.0-canary-20251127-587bc53</version>
9
+ <version>15.1.0-canary-20251205-a1dedc6</version>
10
10
  </versions>
11
- <lastUpdated>20251127152346</lastUpdated>
11
+ <lastUpdated>20251205162329</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- e5a9dbdaa6d683170744aac5d52acd6f
1
+ a33ab85efd901dee7f4ef2af1c6b5084
@@ -1 +1 @@
1
- 1b7f3e856ad4332ce7ad0d6e6f1c5ac290ae61b0
1
+ b2b7e598b07a1030e58d2fa142ab908a253dc2d5
@@ -1 +1 @@
1
- 6b2109022158ffba6b9a3b0a04666a7b6421b9c2d71797433dfcc5bc95ddef73
1
+ 7ce6500a84466967a081958747a4d2f71cf13fddf6084ff19fad244db5339abe
@@ -1 +1 @@
1
- 079db90fa969991382954684f0bafa9929100912eb47f77c7d7ae848a0ab31bfa0d57b7d45247a517cce52668ec4f92fb9317e05565d5fbabd8c0e542295ae74
1
+ fc70eb6955239e336a3b15830ee3e757f4f3e04bb007d57117cb191cb9d50b51cbb7e703fcb441cbc8191b1ec93d32f1264cbd00755fad2805bd9b111803e4c9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-calendar",
3
- "version": "15.1.0-canary-20251127-587bc53",
3
+ "version": "15.1.0-canary-20251205-a1dedc6",
4
4
  "description": "Provides an API for interacting with the device's system calendars, events, reminders, and associated records.",
5
5
  "main": "build/Calendar.js",
6
6
  "types": "build/Calendar.d.ts",
@@ -35,10 +35,10 @@
35
35
  "preset": "expo-module-scripts"
36
36
  },
37
37
  "devDependencies": {
38
- "expo-module-scripts": "5.1.0-canary-20251127-587bc53"
38
+ "expo-module-scripts": "5.1.0-canary-20251205-a1dedc6"
39
39
  },
40
40
  "peerDependencies": {
41
- "expo": "55.0.0-canary-20251127-587bc53",
41
+ "expo": "55.0.0-canary-20251205-a1dedc6",
42
42
  "react-native": "*"
43
43
  }
44
44
  }
@@ -198,7 +198,7 @@ export function getDefaultCalendarSync(): ExpoCalendar {
198
198
  }
199
199
  const defaultCalendar = InternalExpoCalendar.getDefaultCalendarSync();
200
200
  Object.setPrototypeOf(defaultCalendar, ExpoCalendar.prototype);
201
- return defaultCalendar;
201
+ return defaultCalendar as ExpoCalendar;
202
202
  }
203
203
 
204
204
  /**
@@ -1,5 +1,6 @@
1
1
  import { isRunningInExpoGo } from 'expo';
2
2
  import { NativeModule, PermissionResponse, requireNativeModule } from 'expo-modules-core';
3
+ import { ProcessedColorValue } from 'react-native';
3
4
 
4
5
  import {
5
6
  ExpoCalendar,
@@ -7,7 +8,7 @@ import {
7
8
  ExpoCalendarEvent,
8
9
  ExpoCalendarReminder,
9
10
  } from './ExpoCalendar.types';
10
- import { EntityTypes, Source } from '../Calendar';
11
+ import { Calendar, EntityTypes, Source } from '../Calendar';
11
12
  import ExpoGoCalendarNextStub from './ExpoGoCalendarNextStub';
12
13
 
13
14
  declare class ExpoCalendarNextModule extends NativeModule {
@@ -16,7 +17,12 @@ declare class ExpoCalendarNextModule extends NativeModule {
16
17
  ExpoCalendarAttendee: typeof ExpoCalendarAttendee;
17
18
  ExpoCalendarReminder: typeof ExpoCalendarReminder;
18
19
 
20
+ createCalendar(
21
+ details: Omit<Partial<Calendar>, 'color'> & { color: ProcessedColorValue | undefined }
22
+ ): Promise<ExpoCalendar>;
23
+
19
24
  getDefaultCalendar(): ExpoCalendar;
25
+ getDefaultCalendarSync(): unknown;
20
26
  getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]>;
21
27
 
22
28
  listEvents(
@@ -1 +0,0 @@
1
- 03ecc293a4955ef59edcb260fd71804e3906bfde60ccca453a85fdb34d68a327c2a3d9d39b8b8d82ee54ffe7f03fc8805bb847df5a512fc12b25f31ab1ed799e
@@ -1 +0,0 @@
1
- 0210e40ba5cd689498d973c883c5fddfb5db5172f98bd4ab5566d17869be50e79141bf96fe2bfee227a282f983cfc3900a7869caa3eaa86f312432762645d97c