Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/sync-web-elements-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@nylas/react": patch
---

Sync generated React component wrappers with @nylas/web-elements 2.5.0

The auto-generated `components.ts` file was out of date with the published @nylas/web-elements 2.5.0 types. This updates the React wrapper types to match the latest Stencil output, including new types like `AdditionalParticipant` and `NylasAdditionalParticipantsCustomEvent`, and updated component definitions.
13 changes: 13 additions & 0 deletions packages/react/src/elements/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/* eslint-disable */

import {
type AdditionalParticipant,
type BookedEventInfo,
type CONFIGURATION_EVENT_TYPE,
type Configuration,
Expand All @@ -20,6 +21,7 @@ import {
type InputDropdownCustomEvent,
type InputImageUrlCustomEvent,
type Notification,
type NylasAdditionalParticipantsCustomEvent,
type NylasBookedEventCardCustomEvent,
type NylasBookingCalendarPickerCustomEvent,
type NylasBookingConfirmationRedirectCustomEvent,
Expand Down Expand Up @@ -1393,6 +1395,9 @@ export type NylasAdditionalParticipantsEvents = {
name: string;
}>
>;
onParticipantSearchResultSelected: EventName<
NylasAdditionalParticipantsCustomEvent<AdditionalParticipant>
>;
};

export const NylasAdditionalParticipants: StencilReactComponent<
Expand All @@ -1408,6 +1413,7 @@ export const NylasAdditionalParticipants: StencilReactComponent<
react: React,
events: {
onValueChanged: "valueChanged",
onParticipantSearchResultSelected: "participantSearchResultSelected",
} as NylasAdditionalParticipantsEvents,
defineCustomElement: defineNylasAdditionalParticipants,
});
Expand Down Expand Up @@ -2924,6 +2930,12 @@ export type NylasSchedulerEditorEvents = {
onSchedulerConfigCloseClicked: EventName<
NylasSchedulerEditorCustomEvent<HTMLNylasSchedulerEditorElement>
>;
onNylasSchedulerEditorError: EventName<
NylasSchedulerEditorCustomEvent<{
notification: Notification;
host: HTMLElement;
}>
>;
};

export const NylasSchedulerEditor: StencilReactComponent<
Expand All @@ -2942,6 +2954,7 @@ export const NylasSchedulerEditor: StencilReactComponent<
onLoggedIn: "loggedIn",
onLoggedOut: "loggedOut",
onSchedulerConfigCloseClicked: "schedulerConfigCloseClicked",
onNylasSchedulerEditorError: "nylasSchedulerEditorError",
} as NylasSchedulerEditorEvents,
defineCustomElement: defineNylasSchedulerEditor,
});
Expand Down
Loading