diff --git a/apps/test-suite/tests/CalendarNext.ts b/apps/test-suite/tests/CalendarNext.ts index 0dcecd04497d2f..188083d2b48c60 100644 --- a/apps/test-suite/tests/CalendarNext.ts +++ b/apps/test-suite/tests/CalendarNext.ts @@ -498,7 +498,10 @@ export async function test(t) { t.it('creates an event via UI', async () => { const eventData = createEventData(); await alertAndWaitForResponse('Please confirm the event creation dialog.'); - const result = await Calendar.createEventInCalendarAsync(eventData, dontStartNewTask); + const result = await calendar.addEventWithForm({ + ...eventData, + ...dontStartNewTask, + }); if (Platform.OS === 'ios') { t.expect(result.action).toBe('saved'); t.expect(typeof result.id).toBe('string'); diff --git a/packages/expo-brownfield/package.json b/packages/expo-brownfield/package.json index f242711c918606..89587e5e3612f8 100644 --- a/packages/expo-brownfield/package.json +++ b/packages/expo-brownfield/package.json @@ -54,7 +54,7 @@ "chalk": "^4.1.2", "commander": "^14.0.3", "diff": "^5.2.0", - "expo-build-properties": "workspace:~56.0.10", + "expo-build-properties": "workspace:~56.0.11", "expo-manifests": "workspace:~56.0.4", "ora": "^5.4.1", "prompts": "^2.4.2" diff --git a/packages/expo-build-properties/CHANGELOG.md b/packages/expo-build-properties/CHANGELOG.md index 69467493069a73..4141ed7b4aaad2 100644 --- a/packages/expo-build-properties/CHANGELOG.md +++ b/packages/expo-build-properties/CHANGELOG.md @@ -10,6 +10,10 @@ ### 💡 Others +## 56.0.11 — 2026-05-20 + +_This version does not introduce any user-facing changes._ + ## 56.0.10 — 2026-05-19 _This version does not introduce any user-facing changes._ diff --git a/packages/expo-build-properties/package.json b/packages/expo-build-properties/package.json index 516e0798e534ee..48457aff984f71 100644 --- a/packages/expo-build-properties/package.json +++ b/packages/expo-build-properties/package.json @@ -1,6 +1,6 @@ { "name": "expo-build-properties", - "version": "56.0.10", + "version": "56.0.11", "description": "Config plugin to customize native build properties on prebuild", "main": "build/withBuildProperties.js", "types": "build/withBuildProperties.d.ts", diff --git a/packages/expo-calendar/CHANGELOG.md b/packages/expo-calendar/CHANGELOG.md index 2b115dbcb9f729..e5ac48c5e448d1 100644 --- a/packages/expo-calendar/CHANGELOG.md +++ b/packages/expo-calendar/CHANGELOG.md @@ -6,6 +6,8 @@ ### 🎉 New features +- [Android][next] Add `calendar.addEventWithForm()` ([#46004](https://github.com/expo/expo/pull/46004) by [@Wenszel](https://github.com/Wenszel)) + ### 🐛 Bug fixes - [next] Remove legacy exports ([#45739](https://github.com/expo/expo/pull/45739) by [@Wenszel](https://github.com/Wenszel)) diff --git a/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/AddEventWithFormContract.kt b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/AddEventWithFormContract.kt new file mode 100644 index 00000000000000..497073900a4de6 --- /dev/null +++ b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/AddEventWithFormContract.kt @@ -0,0 +1,66 @@ +package expo.modules.calendar.next + +import android.content.Context +import android.content.Intent +import android.content.Intent.ACTION_INSERT +import android.provider.CalendarContract +import android.provider.CalendarContract.EXTRA_EVENT_ALL_DAY +import android.provider.CalendarContract.EXTRA_EVENT_BEGIN_TIME +import android.provider.CalendarContract.EXTRA_EVENT_END_TIME +import expo.modules.calendar.CalendarUtils +import expo.modules.calendar.dialogs.CreateEventIntentResult +import expo.modules.calendar.next.mappers.EventMapper +import expo.modules.calendar.next.records.AddEventWithFormOptionsRecord +import expo.modules.kotlin.activityresult.AppContextActivityResultContract +import java.io.Serializable + +internal class AddEventWithFormContract(private val eventMapper: EventMapper) : + AppContextActivityResultContract { + data class Input( + val calendarId: String, + val options: AddEventWithFormOptionsRecord + ) : Serializable + + override fun createIntent(context: Context, input: Input): Intent = + Intent(ACTION_INSERT) + .setData(CalendarContract.Events.CONTENT_URI) + .apply { + input.calendarId.toLongOrNull()?.let { + putExtra(CalendarContract.Events.CALENDAR_ID, it) + } + input.options.title?.let { putExtra(CalendarContract.Events.TITLE, it) } + input.options.allDay?.let { putExtra(EXTRA_EVENT_ALL_DAY, it) } + input.options.notes?.let { putExtra(CalendarContract.Events.DESCRIPTION, it) } + input.options.location?.let { putExtra(CalendarContract.Events.EVENT_LOCATION, it) } + input.options.startDate?.let { + putExtra(EXTRA_EVENT_BEGIN_TIME, getTimestamp(it)) + } + input.options.endDate?.let { + putExtra(EXTRA_EVENT_END_TIME, getTimestamp(it)) + } + input.options.timeZone?.let { + putExtra(CalendarContract.Events.EVENT_TIMEZONE, it) + } + input.options.availability?.let { + putExtra(CalendarContract.Events.AVAILABILITY, with(eventMapper) { it.toDomain().value }) + } + input.options.recurrenceRule?.let { + with(eventMapper) { + it.toDomain().toRuleString() + } + }?.let { + putExtra(CalendarContract.Events.RRULE, it) + } + input.options.startNewActivityTask.takeIf { it }?.let { + addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + } + } + + private fun getTimestamp(value: String): Long { + val maybeTimestamp = CalendarUtils.sdf.parse(value)?.time + return maybeTimestamp ?: throw IllegalArgumentException("Invalid date format") + } + + override fun parseResult(input: Input, resultCode: Int, intent: Intent?): CreateEventIntentResult = + CreateEventIntentResult() +} diff --git a/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/CalendarNextModule.kt b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/CalendarNextModule.kt index 95990fa80261b0..8d479c808f83ea 100644 --- a/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/CalendarNextModule.kt +++ b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/CalendarNextModule.kt @@ -1,9 +1,7 @@ package expo.modules.calendar.next import android.Manifest -import expo.modules.calendar.dialogs.CreateEventContract import expo.modules.calendar.dialogs.CreateEventIntentResult -import expo.modules.calendar.dialogs.CreatedEventOptions import expo.modules.calendar.dialogs.ViewEventContract import expo.modules.calendar.dialogs.ViewEventIntentResult import expo.modules.calendar.dialogs.ViewedEventOptions @@ -13,8 +11,10 @@ import expo.modules.calendar.next.domain.repositories.instance.InstanceRepositor import expo.modules.calendar.next.domain.repositories.attendee.AttendeeRepository import expo.modules.calendar.next.domain.repositories.reminder.ReminderRepository import expo.modules.calendar.next.domain.repositories.calendar.CalendarRepository +import expo.modules.calendar.next.exceptions.CalendarNotFoundException import expo.modules.calendar.next.mappers.AttendeeMapper import expo.modules.calendar.next.records.AttendeeRecord +import expo.modules.calendar.next.records.AddEventWithFormOptionsRecord import expo.modules.calendar.next.mappers.CalendarMapper import expo.modules.calendar.next.mappers.EventMapper import expo.modules.calendar.next.mappers.ReminderMapper @@ -34,7 +34,8 @@ import expo.modules.kotlin.modules.Module import expo.modules.kotlin.modules.ModuleDefinition class CalendarNextModule : Module() { - private lateinit var createEventLauncher: AppContextActivityResultLauncher + private lateinit var addEventWithFormLauncher: + AppContextActivityResultLauncher private lateinit var viewEventLauncher: AppContextActivityResultLauncher private val context @@ -99,8 +100,8 @@ class CalendarNextModule : Module() { Name("CalendarNext") RegisterActivityContracts { - createEventLauncher = registerForActivityResult( - CreateEventContract() + addEventWithFormLauncher = registerForActivityResult( + AddEventWithFormContract(eventMapper) ) viewEventLauncher = registerForActivityResult( ViewEventContract() @@ -220,6 +221,16 @@ class CalendarNextModule : Module() { expoCalendar.createEvent(record) } + AsyncFunction("addEventWithForm") Coroutine { expoCalendar: ExpoCalendar, options: AddEventWithFormOptionsRecord? -> + val result = addEventWithFormLauncher.launch( + AddEventWithFormContract.Input( + calendarId = expoCalendar.id ?: throw CalendarNotFoundException("Calendar ID is null"), + options = options ?: AddEventWithFormOptionsRecord() + ) + ) + return@Coroutine result + } + AsyncFunction("update") Coroutine { expoCalendar: ExpoCalendar, updateCalendarInput: CalendarUpdateRecord -> permissionsDelegate.requireSystemPermissions(true) expoCalendar.update(updateCalendarInput) diff --git a/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/mappers/EventMapper.kt b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/mappers/EventMapper.kt index f1d343054168bc..e2d46681f0d595 100644 --- a/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/mappers/EventMapper.kt +++ b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/mappers/EventMapper.kt @@ -52,20 +52,20 @@ class EventMapper { rrule = eventRecord.recurrenceRule?.toDomain() ) - private fun EventAvailability.toDomain() = when (this) { + fun EventAvailability.toDomain() = when (this) { EventAvailability.BUSY -> Availability.BUSY EventAvailability.FREE -> Availability.FREE EventAvailability.TENTATIVE -> Availability.TENTATIVE } - private fun EventAccessLevel.toDomain() = when (this) { + fun EventAccessLevel.toDomain() = when (this) { EventAccessLevel.PUBLIC -> AccessLevel.PUBLIC EventAccessLevel.PRIVATE -> AccessLevel.PRIVATE EventAccessLevel.CONFIDENTIAL -> AccessLevel.CONFIDENTIAL EventAccessLevel.DEFAULT -> AccessLevel.DEFAULT } - private fun RecurrenceRuleRecord.toDomain() = RecurrenceRule( + fun RecurrenceRuleRecord.toDomain() = RecurrenceRule( frequency = frequency ?: throw IllegalArgumentException("Frequency is required for recurrence rule"), interval = interval, diff --git a/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/records/AddEventWithFormOptionsRecord.kt b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/records/AddEventWithFormOptionsRecord.kt new file mode 100644 index 00000000000000..6bbf24731f0fae --- /dev/null +++ b/packages/expo-calendar/android/src/main/java/expo/modules/calendar/next/records/AddEventWithFormOptionsRecord.kt @@ -0,0 +1,20 @@ +package expo.modules.calendar.next.records + +import expo.modules.kotlin.records.Field +import expo.modules.kotlin.records.Record +import expo.modules.kotlin.types.OptimizedRecord +import java.io.Serializable + +@OptimizedRecord +data class AddEventWithFormOptionsRecord( + @Field val title: String? = null, + @Field val location: String? = null, + @Field val notes: String? = null, + @Field val timeZone: String? = null, + @Field val availability: EventAvailability? = null, + @Field val allDay: Boolean? = null, + @Field val startDate: String? = null, + @Field val endDate: String? = null, + @Field val recurrenceRule: RecurrenceRuleRecord? = null, + @Field val startNewActivityTask: Boolean = true +) : Record, Serializable diff --git a/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts b/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts index 85793e7230cb50..ee7e2715b4d93a 100644 --- a/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts +++ b/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts @@ -2,7 +2,7 @@ import type { AttendeeRole, AttendeeStatus, AttendeeType, Source, RecurringEvent import type { RecurrenceRule } from './types/RecurrenceRule'; export type CalendarDialogParamsNext = Omit & PresentationOptions; export type CalendarDialogOpenParamsNext = CalendarDialogParamsNext & OpenEventPresentationOptions; -export type AddEventWithFormOptions = { +export type AddEventWithFormOptions = PresentationOptions & { title?: string; startDate?: Date | string; endDate?: Date | string; @@ -134,7 +134,6 @@ export declare class ExpoCalendar { /** * Presents the system-provided dialog to create a new event in this calendar, pre-filled with the provided data. * Requires at minimum write-only calendar permission. - * @platform ios */ addEventWithForm(options?: AddEventWithFormOptions): Promise; /** diff --git a/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts.map b/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts.map index 8a30d128502f24..588cd5f7c0aca4 100644 --- a/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts.map +++ b/packages/expo-calendar/build/next/ExpoCalendar.types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExpoCalendar.types.d.ts","sourceRoot":"","sources":["../../src/next/ExpoCalendar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,MAAM,EACN,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,KAAK,EACL,WAAW,EACX,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG,IAAI,CA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AAE,OAAO,CAAC,4BAA4B,CAAC,EAC9C,cAAc,CAAC,EAAE,CAAC,MAAM,4BAA4B,CAAC,EAAE,GACtD,OAAO,CAAC,IAAI,CAAC;IAEhB;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAC9D;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC,EAC9C,cAAc,CAAC,EAAE,CAAC,MAAM,4BAA4B,CAAC,EAAE,GACtD,OAAO,CAAC,IAAI,CAAC;IAEhB;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CACxB"} \ No newline at end of file +{"version":3,"file":"ExpoCalendar.types.d.ts","sourceRoot":"","sources":["../../src/next/ExpoCalendar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,MAAM,EACN,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,KAAK,EACL,WAAW,EACX,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB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CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,MAAM,CACJ,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC,EAC9C,cAAc,CAAC,EAAE,CAAC,MAAM,4BAA4B,CAAC,EAAE,GACtD,OAAO,CAAC,IAAI,CAAC;IAEhB;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAC9D;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC,EAC9C,cAAc,CAAC,EAAE,CAAC,MAAM,4BAA4B,CAAC,EAAE,GACtD,OAAO,CAAC,IAAI,CAAC;IAEhB;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CACxB"} \ No newline at end of file diff --git a/packages/expo-calendar/build/next/ExpoCalendar.types.js.map b/packages/expo-calendar/build/next/ExpoCalendar.types.js.map index 94ca1394345314..0b987aed5a20e0 100644 --- a/packages/expo-calendar/build/next/ExpoCalendar.types.js.map +++ b/packages/expo-calendar/build/next/ExpoCalendar.types.js.map @@ -1 +1 @@ -{"version":3,"file":"ExpoCalendar.types.js","sourceRoot":"","sources":["../../src/next/ExpoCalendar.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AttendeeRole,\n AttendeeStatus,\n AttendeeType,\n Source,\n RecurringEventOptions,\n CalendarType,\n Availability,\n EntityTypes,\n Alarm,\n EventStatus,\n Organizer,\n ReminderStatus,\n CalendarDialogParams,\n DialogEventResult,\n OpenEventPresentationOptions,\n PresentationOptions,\n EventAccessLevel,\n CalendarAccessLevel,\n AlarmMethod,\n OpenEventDialogResult,\n Attendee,\n} from '../Calendar';\nimport type { RecurrenceRule } from './types/RecurrenceRule';\n\nexport type CalendarDialogParamsNext = Omit & PresentationOptions;\n\nexport type CalendarDialogOpenParamsNext = CalendarDialogParamsNext & OpenEventPresentationOptions;\n\nexport type AddEventWithFormOptions = {\n title?: string;\n startDate?: Date | string;\n endDate?: Date | string;\n allDay?: boolean;\n notes?: string;\n location?: string;\n url?: string;\n alarms?: Alarm[];\n recurrenceRule?: RecurrenceRule;\n};\n\nexport type ModifiableCalendarProperties = Pick;\n\nexport type ModifiableEventProperties = Pick<\n ExpoCalendarEvent,\n | 'title'\n | 'location'\n | 'timeZone'\n | 'url'\n | 'notes'\n | 'alarms'\n | 'recurrenceRule'\n | 'availability'\n | 'startDate'\n | 'endDate'\n | 'allDay'\n>;\n\nexport type ModifiableReminderProperties = Pick<\n ExpoCalendarReminder,\n | 'title'\n | 'location'\n | 'timeZone'\n | 'url'\n | 'notes'\n | 'alarms'\n | 'recurrenceRule'\n | 'startDate'\n | 'dueDate'\n | 'completed'\n | 'completionDate'\n>;\n\nexport type ModifiableAttendeeProperties = ExpoCalendarAttendee;\n\nexport declare class ExpoCalendar {\n constructor(id: string);\n\n /**\n * Internal ID that represents this calendar on the device.\n */\n id: string;\n /**\n * Visible name of the calendar.\n */\n title: string;\n /**\n * ID of the source to be used for the calendar. Likely the same as the source for any other\n * locally stored calendars.\n * @platform ios\n */\n sourceId?: string;\n /**\n * Object representing the source to be used for the calendar.\n */\n source: Source;\n /**\n * Type of calendar this object represents.\n * @platform ios\n */\n type?: CalendarType;\n /**\n * Color used to display this calendar's events.\n */\n color?: string;\n /**\n * Whether the calendar is used in the Calendar or Reminders OS app.\n * @platform ios\n */\n entityType?: EntityTypes;\n /**\n * Boolean value that determines whether this calendar can be modified.\n */\n allowsModifications: boolean;\n /**\n * Availability types that this calendar supports.\n */\n allowedAvailabilities: Availability[];\n /**\n * Boolean value indicating whether this is the device's primary calendar.\n * @platform android\n */\n isPrimary?: boolean;\n /**\n * Internal system name of the calendar.\n * @platform android\n */\n name?: string | null;\n /**\n * Name for the account that owns this calendar.\n * @platform android\n */\n ownerAccount?: string;\n /**\n * Time zone for the calendar.\n * @platform android\n */\n timeZone?: string;\n /**\n * Alarm methods that this calendar supports.\n * @platform android\n */\n allowedReminders?: AlarmMethod[];\n /**\n * Attendee types that this calendar supports.\n * @platform android\n */\n allowedAttendeeTypes?: AttendeeType[];\n /**\n * Indicates whether the OS displays events on this calendar.\n * @platform android\n */\n isVisible?: boolean;\n /**\n * Indicates whether this calendar is synced and its events stored on the device.\n * Unexpected behavior may occur if this is not set to `true`.\n * @platform android\n */\n isSynced?: boolean;\n /**\n * Level of access that the user has for the calendar.\n * @platform android\n */\n accessLevel?: CalendarAccessLevel;\n\n /**\n * Returns a calendar event list for the given date range.\n */\n listEvents(startDate: Date | string, endDate: Date | string): Promise;\n\n /**\n * Returns a list of reminders matching the provided criteria. If `startDate` and `endDate` are defined,\n * returns all reminders that overlap at all with the `[startDate, endDate]` interval, that is, all reminders\n * that end after the `startDate` or begin before the `endDate`.\n * @param startDate Beginning of time period to search for reminders in, or `null` for all completed reminders before `endDate`.\n * @param endDate End of time period to search for reminders in, or `null` for all completed reminders after `startDate`.\n * @param status One of `Calendar.ReminderStatus.COMPLETED` or `Calendar.ReminderStatus.INCOMPLETE`. If not defined, both completed and incomplete reminders will be returned.\n * @return An array of [`ExpoCalendarReminder`](#expocalendarreminder) objects matching the search criteria.\n */\n listReminders(\n startDate?: Date | string | null,\n endDate?: Date | string | null,\n status?: ReminderStatus | null\n ): Promise;\n\n /**\n * Creates a new event in the calendar.\n * @param eventData A map of details for the event to be created.\n * @return An instance of the created event.\n */\n createEvent(\n eventData: Omit, 'id' | 'organizer'>\n ): Promise;\n\n /**\n * Creates a new reminder in the calendar.\n * @param reminderData A map of details for the reminder to be created.\n * @return An instance of the created reminder.\n */\n createReminder(\n reminderData: Omit, 'id' | 'calendarId'>\n ): Promise;\n\n /**\n * Presents the system-provided dialog to create a new event in this calendar, pre-filled with the provided data.\n * Requires at minimum write-only calendar permission.\n * @platform ios\n */\n addEventWithForm(options?: AddEventWithFormOptions): Promise;\n\n /**\n * Updates the provided details of an existing calendar stored on the device. To remove a property,\n * explicitly set it to `null` in `details`.\n * @param details A map of properties to be updated.\n */\n update(details: Partial): Promise;\n\n /**\n * Deletes the calendar.\n */\n delete(): Promise;\n\n /**\n * Gets a calendar by its ID. Throws an error if the calendar with the given ID does not exist.\n * @param calendarId The ID of the calendar to get.\n * @returns An [`ExpoCalendar`](#expocalendar) object representing the calendar.\n */\n static get(calendarId: string): Promise;\n}\n\nexport declare class ExpoCalendarEvent {\n constructor(id: string);\n /**\n * Internal ID that represents this event on the device.\n */\n id: string;\n /**\n * ID of the calendar that contains this event.\n */\n calendarId: string;\n /**\n * Visible name of the event.\n */\n title: string;\n /**\n * Location field of the event.\n */\n location: string | null;\n /**\n * Date when the event record was created.\n * @platform ios\n */\n creationDate?: string | Date;\n /**\n * Date when the event record was last modified.\n * @platform ios\n */\n lastModifiedDate?: string | Date;\n /**\n * Time zone the event is scheduled in.\n * When set to `null`, the event is scheduled to the device's time zone.\n */\n timeZone: string;\n /**\n * Time zone for the end date of the event.\n * @platform android\n */\n endTimeZone?: string;\n /**\n * URL for the event.\n * @platform ios\n */\n url?: string;\n /**\n * Description or notes saved with the event.\n */\n notes: string;\n /**\n * Array of Alarm objects which control automated reminders to the user.\n */\n alarms: Alarm[];\n /**\n * Object representing rules for recurring or repeating events. Set to `null` for one-time events.\n * It is either `endDate` or `occurrence` based.\n */\n recurrenceRule: RecurrenceRule | null;\n /**\n * Date object or string representing the time when the event starts.\n */\n startDate: string | Date;\n /**\n * Date object or string representing the time when the event ends.\n */\n endDate: string | Date;\n /**\n * For recurring events, the start date for the first (original) instance of the event.\n * @platform ios\n */\n originalStartDate?: string | Date;\n /**\n * Boolean value indicating whether or not the event is a detached (modified) instance of a recurring event.\n * @platform ios\n */\n isDetached?: boolean;\n /**\n * Whether the event is displayed as an all-day event on the calendar\n */\n allDay: boolean;\n /**\n * The availability setting for the event.\n */\n availability: Availability;\n /**\n * Status of the event.\n */\n status: EventStatus;\n /**\n * Organizer of the event.\n * This property is only available on events associated with calendars that are managed by a service such as Google Calendar or iCloud.\n * The organizer is read-only and cannot be set.\n *\n * @platform ios\n */\n organizer?: Organizer;\n /**\n * Email address of the organizer of the event.\n * @platform android\n */\n organizerEmail?: string;\n /**\n * User's access level for the event.\n * @platform android\n */\n accessLevel?: EventAccessLevel;\n /**\n * Whether invited guests can modify the details of the event.\n * @platform android\n */\n guestsCanModify?: boolean;\n /**\n * Whether invited guests can invite other guests.\n * @platform android\n */\n guestsCanInviteOthers?: boolean;\n /**\n * Whether invited guests can see other guests.\n * @platform android\n */\n guestsCanSeeGuests?: boolean;\n /**\n * For detached (modified) instances of recurring events, the ID of the original recurring event.\n * @platform android\n */\n originalId?: string;\n /**\n * For instances of recurring events, volatile ID representing this instance. Not guaranteed to\n * always refer to the same instance.\n * @platform android\n */\n instanceId?: string;\n\n /**\n * Launches the calendar UI provided by the OS to preview an event.\n * @return A promise which resolves with information about the dialog result.\n * @header systemProvidedUI\n */\n openInCalendar(\n params?: CalendarDialogOpenParamsNext | null // TODO: Support skipping this param instead of passing null, change needed in the core\n ): Promise;\n\n /**\n * Launches the calendar UI provided by the OS to edit or delete an event.\n * @return A promise which resolves with information about the dialog result.\n * @header systemProvidedUI\n */\n editInCalendar(\n params?: CalendarDialogParamsNext | null // TODO: Support skipping this param instead of passing null, change needed in the core\n ): Promise;\n\n /**\n * Returns an event instance for a given event (or instance of a recurring event).\n * @param recurringEventOptions A map of options for recurring events.\n * @return An event instance.\n * @platform ios\n */\n getOccurrenceSync(recurringEventOptions?: RecurringEventOptions): ExpoCalendarEvent;\n\n /**\n * Gets all attendees for a given event (or instance of a recurring event).\n * @return An array of [`Attendee`](#attendee) associated with the specified event.\n */\n getAttendees(): Promise;\n\n /**\n * Updates the provided details of an existing calendar stored on the device. To remove a property,\n * explicitly set it to `null` in `details`.\n * @param details A map of properties to be updated.\n * @param nullableFields A list of fields that can be set to `null`.\n */\n update(\n details: Partial,\n nullableFields?: (keyof ModifiableEventProperties)[]\n ): Promise;\n\n /**\n * Deletes the event.\n */\n delete(): Promise;\n\n /**\n * Creates a new attendee and adds it to this event.\n */\n createAttendee(\n attendee: Pick, 'email'> & Partial\n ): Promise;\n\n /**\n * Gets an event by its ID. Throws an error if the event with the given ID does not exist.\n * @param eventId The ID of the event to get.\n * @returns An [`ExpoCalendarEvent`](#expocalendarevent) object representing the event.\n */\n static get(eventId: string): Promise;\n}\n\nexport declare class ExpoCalendarReminder {\n /**\n * Internal ID that represents this reminder on the device.\n */\n id?: string;\n /**\n * ID of the calendar that contains this reminder.\n */\n calendarId?: string;\n /**\n * Visible name of the reminder.\n */\n title?: string;\n /**\n * Location field of the reminder\n */\n location?: string;\n /**\n * Date when the reminder record was created.\n */\n creationDate?: string | Date;\n /**\n * Date when the reminder record was last modified.\n */\n lastModifiedDate?: string | Date;\n /**\n * Time zone the reminder is scheduled in.\n */\n timeZone?: string;\n /**\n * URL for the reminder.\n */\n url?: string;\n /**\n * Description or notes saved with the reminder.\n */\n notes?: string;\n /**\n * Array of Alarm objects which control automated alarms to the user about the task.\n */\n alarms?: Alarm[];\n /**\n * Object representing rules for recurring or repeated reminders. `null` for one-time tasks.\n */\n recurrenceRule?: RecurrenceRule | null;\n /**\n * Date object or string representing the start date of the reminder task.\n */\n startDate?: string | Date;\n /**\n * Date object or string representing the time when the reminder task is due.\n */\n dueDate?: string | Date;\n /**\n * Whether the reminder is an all-day reminder.\n */\n allDay?: boolean;\n /**\n * Indicates whether or not the task has been completed.\n */\n completed?: boolean;\n /**\n * Date object or string representing the date of completion, if `completed` is `true`.\n * Setting this property of a nonnull `Date` will automatically set the reminder's `completed` value to `true`.\n */\n completionDate?: string | Date;\n\n update(\n details: Partial,\n nullableFields?: (keyof ModifiableReminderProperties)[]\n ): Promise;\n\n /**\n * Deletes the reminder.\n */\n delete(): Promise;\n\n /**\n * Gets a reminder by its ID. Throws an error if the reminder with the given ID does not exist.\n * @param reminderId The ID of the reminder to get.\n * @returns An [`ExpoCalendarReminder`](#expocalendarreminder) object representing the reminder.\n */\n static get(reminderId: string): Promise;\n}\n\n/**\n * Represents a calendar attendee object.\n * @platform android\n */\nexport declare class ExpoCalendarAttendee {\n /**\n * Internal ID that represents this attendee on the device.\n * @platform android\n */\n id?: string;\n /**\n * Indicates whether or not this attendee is the current OS user.\n * @platform ios\n */\n isCurrentUser?: boolean;\n /**\n * Displayed name of the attendee.\n */\n name: string;\n /**\n * Role of the attendee at the event.\n */\n role: AttendeeRole;\n /**\n * Status of the attendee in relation to the event.\n */\n status: AttendeeStatus;\n /**\n * Type of the attendee.\n */\n type: AttendeeType;\n /**\n * URL for the attendee.\n * @platform ios\n */\n url?: string;\n /**\n * Email of the attendee.\n * @platform android\n */\n email: string;\n\n /**\n * Updates the attendee.\n * @platform android\n */\n update(\n details: Partial,\n nullableFields?: (keyof ModifiableAttendeeProperties)[]\n ): Promise;\n\n /**\n * Deletes the attendee.\n * @platform android\n */\n delete(): Promise;\n}\n"]} \ No newline at end of file +{"version":3,"file":"ExpoCalendar.types.js","sourceRoot":"","sources":["../../src/next/ExpoCalendar.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AttendeeRole,\n AttendeeStatus,\n AttendeeType,\n Source,\n RecurringEventOptions,\n CalendarType,\n Availability,\n EntityTypes,\n Alarm,\n EventStatus,\n Organizer,\n ReminderStatus,\n CalendarDialogParams,\n DialogEventResult,\n OpenEventPresentationOptions,\n PresentationOptions,\n EventAccessLevel,\n CalendarAccessLevel,\n AlarmMethod,\n OpenEventDialogResult,\n Attendee,\n} from '../Calendar';\nimport type { RecurrenceRule } from './types/RecurrenceRule';\n\nexport type CalendarDialogParamsNext = Omit & PresentationOptions;\n\nexport type CalendarDialogOpenParamsNext = CalendarDialogParamsNext & OpenEventPresentationOptions;\n\nexport type AddEventWithFormOptions = PresentationOptions & {\n title?: string;\n startDate?: Date | string;\n endDate?: Date | string;\n allDay?: boolean;\n notes?: string;\n location?: string;\n url?: string;\n alarms?: Alarm[];\n recurrenceRule?: RecurrenceRule;\n};\n\nexport type ModifiableCalendarProperties = Pick;\n\nexport type ModifiableEventProperties = Pick<\n ExpoCalendarEvent,\n | 'title'\n | 'location'\n | 'timeZone'\n | 'url'\n | 'notes'\n | 'alarms'\n | 'recurrenceRule'\n | 'availability'\n | 'startDate'\n | 'endDate'\n | 'allDay'\n>;\n\nexport type ModifiableReminderProperties = Pick<\n ExpoCalendarReminder,\n | 'title'\n | 'location'\n | 'timeZone'\n | 'url'\n | 'notes'\n | 'alarms'\n | 'recurrenceRule'\n | 'startDate'\n | 'dueDate'\n | 'completed'\n | 'completionDate'\n>;\n\nexport type ModifiableAttendeeProperties = ExpoCalendarAttendee;\n\nexport declare class ExpoCalendar {\n constructor(id: string);\n\n /**\n * Internal ID that represents this calendar on the device.\n */\n id: string;\n /**\n * Visible name of the calendar.\n */\n title: string;\n /**\n * ID of the source to be used for the calendar. Likely the same as the source for any other\n * locally stored calendars.\n * @platform ios\n */\n sourceId?: string;\n /**\n * Object representing the source to be used for the calendar.\n */\n source: Source;\n /**\n * Type of calendar this object represents.\n * @platform ios\n */\n type?: CalendarType;\n /**\n * Color used to display this calendar's events.\n */\n color?: string;\n /**\n * Whether the calendar is used in the Calendar or Reminders OS app.\n * @platform ios\n */\n entityType?: EntityTypes;\n /**\n * Boolean value that determines whether this calendar can be modified.\n */\n allowsModifications: boolean;\n /**\n * Availability types that this calendar supports.\n */\n allowedAvailabilities: Availability[];\n /**\n * Boolean value indicating whether this is the device's primary calendar.\n * @platform android\n */\n isPrimary?: boolean;\n /**\n * Internal system name of the calendar.\n * @platform android\n */\n name?: string | null;\n /**\n * Name for the account that owns this calendar.\n * @platform android\n */\n ownerAccount?: string;\n /**\n * Time zone for the calendar.\n * @platform android\n */\n timeZone?: string;\n /**\n * Alarm methods that this calendar supports.\n * @platform android\n */\n allowedReminders?: AlarmMethod[];\n /**\n * Attendee types that this calendar supports.\n * @platform android\n */\n allowedAttendeeTypes?: AttendeeType[];\n /**\n * Indicates whether the OS displays events on this calendar.\n * @platform android\n */\n isVisible?: boolean;\n /**\n * Indicates whether this calendar is synced and its events stored on the device.\n * Unexpected behavior may occur if this is not set to `true`.\n * @platform android\n */\n isSynced?: boolean;\n /**\n * Level of access that the user has for the calendar.\n * @platform android\n */\n accessLevel?: CalendarAccessLevel;\n\n /**\n * Returns a calendar event list for the given date range.\n */\n listEvents(startDate: Date | string, endDate: Date | string): Promise;\n\n /**\n * Returns a list of reminders matching the provided criteria. If `startDate` and `endDate` are defined,\n * returns all reminders that overlap at all with the `[startDate, endDate]` interval, that is, all reminders\n * that end after the `startDate` or begin before the `endDate`.\n * @param startDate Beginning of time period to search for reminders in, or `null` for all completed reminders before `endDate`.\n * @param endDate End of time period to search for reminders in, or `null` for all completed reminders after `startDate`.\n * @param status One of `Calendar.ReminderStatus.COMPLETED` or `Calendar.ReminderStatus.INCOMPLETE`. If not defined, both completed and incomplete reminders will be returned.\n * @return An array of [`ExpoCalendarReminder`](#expocalendarreminder) objects matching the search criteria.\n */\n listReminders(\n startDate?: Date | string | null,\n endDate?: Date | string | null,\n status?: ReminderStatus | null\n ): Promise;\n\n /**\n * Creates a new event in the calendar.\n * @param eventData A map of details for the event to be created.\n * @return An instance of the created event.\n */\n createEvent(\n eventData: Omit, 'id' | 'organizer'>\n ): Promise;\n\n /**\n * Creates a new reminder in the calendar.\n * @param reminderData A map of details for the reminder to be created.\n * @return An instance of the created reminder.\n */\n createReminder(\n reminderData: Omit, 'id' | 'calendarId'>\n ): Promise;\n\n /**\n * Presents the system-provided dialog to create a new event in this calendar, pre-filled with the provided data.\n * Requires at minimum write-only calendar permission.\n */\n addEventWithForm(options?: AddEventWithFormOptions): Promise;\n\n /**\n * Updates the provided details of an existing calendar stored on the device. To remove a property,\n * explicitly set it to `null` in `details`.\n * @param details A map of properties to be updated.\n */\n update(details: Partial): Promise;\n\n /**\n * Deletes the calendar.\n */\n delete(): Promise;\n\n /**\n * Gets a calendar by its ID. Throws an error if the calendar with the given ID does not exist.\n * @param calendarId The ID of the calendar to get.\n * @returns An [`ExpoCalendar`](#expocalendar) object representing the calendar.\n */\n static get(calendarId: string): Promise;\n}\n\nexport declare class ExpoCalendarEvent {\n constructor(id: string);\n /**\n * Internal ID that represents this event on the device.\n */\n id: string;\n /**\n * ID of the calendar that contains this event.\n */\n calendarId: string;\n /**\n * Visible name of the event.\n */\n title: string;\n /**\n * Location field of the event.\n */\n location: string | null;\n /**\n * Date when the event record was created.\n * @platform ios\n */\n creationDate?: string | Date;\n /**\n * Date when the event record was last modified.\n * @platform ios\n */\n lastModifiedDate?: string | Date;\n /**\n * Time zone the event is scheduled in.\n * When set to `null`, the event is scheduled to the device's time zone.\n */\n timeZone: string;\n /**\n * Time zone for the end date of the event.\n * @platform android\n */\n endTimeZone?: string;\n /**\n * URL for the event.\n * @platform ios\n */\n url?: string;\n /**\n * Description or notes saved with the event.\n */\n notes: string;\n /**\n * Array of Alarm objects which control automated reminders to the user.\n */\n alarms: Alarm[];\n /**\n * Object representing rules for recurring or repeating events. Set to `null` for one-time events.\n * It is either `endDate` or `occurrence` based.\n */\n recurrenceRule: RecurrenceRule | null;\n /**\n * Date object or string representing the time when the event starts.\n */\n startDate: string | Date;\n /**\n * Date object or string representing the time when the event ends.\n */\n endDate: string | Date;\n /**\n * For recurring events, the start date for the first (original) instance of the event.\n * @platform ios\n */\n originalStartDate?: string | Date;\n /**\n * Boolean value indicating whether or not the event is a detached (modified) instance of a recurring event.\n * @platform ios\n */\n isDetached?: boolean;\n /**\n * Whether the event is displayed as an all-day event on the calendar\n */\n allDay: boolean;\n /**\n * The availability setting for the event.\n */\n availability: Availability;\n /**\n * Status of the event.\n */\n status: EventStatus;\n /**\n * Organizer of the event.\n * This property is only available on events associated with calendars that are managed by a service such as Google Calendar or iCloud.\n * The organizer is read-only and cannot be set.\n *\n * @platform ios\n */\n organizer?: Organizer;\n /**\n * Email address of the organizer of the event.\n * @platform android\n */\n organizerEmail?: string;\n /**\n * User's access level for the event.\n * @platform android\n */\n accessLevel?: EventAccessLevel;\n /**\n * Whether invited guests can modify the details of the event.\n * @platform android\n */\n guestsCanModify?: boolean;\n /**\n * Whether invited guests can invite other guests.\n * @platform android\n */\n guestsCanInviteOthers?: boolean;\n /**\n * Whether invited guests can see other guests.\n * @platform android\n */\n guestsCanSeeGuests?: boolean;\n /**\n * For detached (modified) instances of recurring events, the ID of the original recurring event.\n * @platform android\n */\n originalId?: string;\n /**\n * For instances of recurring events, volatile ID representing this instance. Not guaranteed to\n * always refer to the same instance.\n * @platform android\n */\n instanceId?: string;\n\n /**\n * Launches the calendar UI provided by the OS to preview an event.\n * @return A promise which resolves with information about the dialog result.\n * @header systemProvidedUI\n */\n openInCalendar(\n params?: CalendarDialogOpenParamsNext | null // TODO: Support skipping this param instead of passing null, change needed in the core\n ): Promise;\n\n /**\n * Launches the calendar UI provided by the OS to edit or delete an event.\n * @return A promise which resolves with information about the dialog result.\n * @header systemProvidedUI\n */\n editInCalendar(\n params?: CalendarDialogParamsNext | null // TODO: Support skipping this param instead of passing null, change needed in the core\n ): Promise;\n\n /**\n * Returns an event instance for a given event (or instance of a recurring event).\n * @param recurringEventOptions A map of options for recurring events.\n * @return An event instance.\n * @platform ios\n */\n getOccurrenceSync(recurringEventOptions?: RecurringEventOptions): ExpoCalendarEvent;\n\n /**\n * Gets all attendees for a given event (or instance of a recurring event).\n * @return An array of [`Attendee`](#attendee) associated with the specified event.\n */\n getAttendees(): Promise;\n\n /**\n * Updates the provided details of an existing calendar stored on the device. To remove a property,\n * explicitly set it to `null` in `details`.\n * @param details A map of properties to be updated.\n * @param nullableFields A list of fields that can be set to `null`.\n */\n update(\n details: Partial,\n nullableFields?: (keyof ModifiableEventProperties)[]\n ): Promise;\n\n /**\n * Deletes the event.\n */\n delete(): Promise;\n\n /**\n * Creates a new attendee and adds it to this event.\n */\n createAttendee(\n attendee: Pick, 'email'> & Partial\n ): Promise;\n\n /**\n * Gets an event by its ID. Throws an error if the event with the given ID does not exist.\n * @param eventId The ID of the event to get.\n * @returns An [`ExpoCalendarEvent`](#expocalendarevent) object representing the event.\n */\n static get(eventId: string): Promise;\n}\n\nexport declare class ExpoCalendarReminder {\n /**\n * Internal ID that represents this reminder on the device.\n */\n id?: string;\n /**\n * ID of the calendar that contains this reminder.\n */\n calendarId?: string;\n /**\n * Visible name of the reminder.\n */\n title?: string;\n /**\n * Location field of the reminder\n */\n location?: string;\n /**\n * Date when the reminder record was created.\n */\n creationDate?: string | Date;\n /**\n * Date when the reminder record was last modified.\n */\n lastModifiedDate?: string | Date;\n /**\n * Time zone the reminder is scheduled in.\n */\n timeZone?: string;\n /**\n * URL for the reminder.\n */\n url?: string;\n /**\n * Description or notes saved with the reminder.\n */\n notes?: string;\n /**\n * Array of Alarm objects which control automated alarms to the user about the task.\n */\n alarms?: Alarm[];\n /**\n * Object representing rules for recurring or repeated reminders. `null` for one-time tasks.\n */\n recurrenceRule?: RecurrenceRule | null;\n /**\n * Date object or string representing the start date of the reminder task.\n */\n startDate?: string | Date;\n /**\n * Date object or string representing the time when the reminder task is due.\n */\n dueDate?: string | Date;\n /**\n * Whether the reminder is an all-day reminder.\n */\n allDay?: boolean;\n /**\n * Indicates whether or not the task has been completed.\n */\n completed?: boolean;\n /**\n * Date object or string representing the date of completion, if `completed` is `true`.\n * Setting this property of a nonnull `Date` will automatically set the reminder's `completed` value to `true`.\n */\n completionDate?: string | Date;\n\n update(\n details: Partial,\n nullableFields?: (keyof ModifiableReminderProperties)[]\n ): Promise;\n\n /**\n * Deletes the reminder.\n */\n delete(): Promise;\n\n /**\n * Gets a reminder by its ID. Throws an error if the reminder with the given ID does not exist.\n * @param reminderId The ID of the reminder to get.\n * @returns An [`ExpoCalendarReminder`](#expocalendarreminder) object representing the reminder.\n */\n static get(reminderId: string): Promise;\n}\n\n/**\n * Represents a calendar attendee object.\n * @platform android\n */\nexport declare class ExpoCalendarAttendee {\n /**\n * Internal ID that represents this attendee on the device.\n * @platform android\n */\n id?: string;\n /**\n * Indicates whether or not this attendee is the current OS user.\n * @platform ios\n */\n isCurrentUser?: boolean;\n /**\n * Displayed name of the attendee.\n */\n name: string;\n /**\n * Role of the attendee at the event.\n */\n role: AttendeeRole;\n /**\n * Status of the attendee in relation to the event.\n */\n status: AttendeeStatus;\n /**\n * Type of the attendee.\n */\n type: AttendeeType;\n /**\n * URL for the attendee.\n * @platform ios\n */\n url?: string;\n /**\n * Email of the attendee.\n * @platform android\n */\n email: string;\n\n /**\n * Updates the attendee.\n * @platform android\n */\n update(\n details: Partial,\n nullableFields?: (keyof ModifiableAttendeeProperties)[]\n ): Promise;\n\n /**\n * Deletes the attendee.\n * @platform android\n */\n delete(): Promise;\n}\n"]} \ No newline at end of file diff --git a/packages/expo-calendar/src/next/ExpoCalendar.types.ts b/packages/expo-calendar/src/next/ExpoCalendar.types.ts index e1f315a0e07c6a..526dffcb771f9b 100644 --- a/packages/expo-calendar/src/next/ExpoCalendar.types.ts +++ b/packages/expo-calendar/src/next/ExpoCalendar.types.ts @@ -27,7 +27,7 @@ export type CalendarDialogParamsNext = Omit & Presen export type CalendarDialogOpenParamsNext = CalendarDialogParamsNext & OpenEventPresentationOptions; -export type AddEventWithFormOptions = { +export type AddEventWithFormOptions = PresentationOptions & { title?: string; startDate?: Date | string; endDate?: Date | string; @@ -204,7 +204,6 @@ export declare class ExpoCalendar { /** * Presents the system-provided dialog to create a new event in this calendar, pre-filled with the provided data. * Requires at minimum write-only calendar permission. - * @platform ios */ addEventWithForm(options?: AddEventWithFormOptions): Promise; diff --git a/packages/expo/bundledNativeModules.json b/packages/expo/bundledNativeModules.json index 6f83317ffd92e3..ab62666a5dccde 100644 --- a/packages/expo/bundledNativeModules.json +++ b/packages/expo/bundledNativeModules.json @@ -28,7 +28,7 @@ "expo-blur": "~56.0.3", "expo-brightness": "~56.0.4", "expo-brownfield": "~56.0.11", - "expo-build-properties": "~56.0.10", + "expo-build-properties": "~56.0.11", "expo-calendar": "~56.0.6", "expo-camera": "~56.0.5", "expo-cellular": "~56.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 83a0f4d12c7a7d..bb7e9a7a5bf43d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3855,7 +3855,7 @@ importers: specifier: ^5.2.0 version: 5.2.2 expo-build-properties: - specifier: workspace:~56.0.10 + specifier: workspace:~56.0.11 version: link:../expo-build-properties expo-manifests: specifier: workspace:~56.0.4