diff --git a/.changeset/sync-web-elements-types.md b/.changeset/sync-web-elements-types.md new file mode 100644 index 0000000..bf3ba76 --- /dev/null +++ b/.changeset/sync-web-elements-types.md @@ -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. diff --git a/packages/react/src/elements/components.ts b/packages/react/src/elements/components.ts index d81fb9f..060b824 100644 --- a/packages/react/src/elements/components.ts +++ b/packages/react/src/elements/components.ts @@ -8,6 +8,7 @@ /* eslint-disable */ import { + type AdditionalParticipant, type BookedEventInfo, type CONFIGURATION_EVENT_TYPE, type Configuration, @@ -20,6 +21,7 @@ import { type InputDropdownCustomEvent, type InputImageUrlCustomEvent, type Notification, + type NylasAdditionalParticipantsCustomEvent, type NylasBookedEventCardCustomEvent, type NylasBookingCalendarPickerCustomEvent, type NylasBookingConfirmationRedirectCustomEvent, @@ -1393,6 +1395,9 @@ export type NylasAdditionalParticipantsEvents = { name: string; }> >; + onParticipantSearchResultSelected: EventName< + NylasAdditionalParticipantsCustomEvent + >; }; export const NylasAdditionalParticipants: StencilReactComponent< @@ -1408,6 +1413,7 @@ export const NylasAdditionalParticipants: StencilReactComponent< react: React, events: { onValueChanged: "valueChanged", + onParticipantSearchResultSelected: "participantSearchResultSelected", } as NylasAdditionalParticipantsEvents, defineCustomElement: defineNylasAdditionalParticipants, }); @@ -2924,6 +2930,12 @@ export type NylasSchedulerEditorEvents = { onSchedulerConfigCloseClicked: EventName< NylasSchedulerEditorCustomEvent >; + onNylasSchedulerEditorError: EventName< + NylasSchedulerEditorCustomEvent<{ + notification: Notification; + host: HTMLElement; + }> + >; }; export const NylasSchedulerEditor: StencilReactComponent< @@ -2942,6 +2954,7 @@ export const NylasSchedulerEditor: StencilReactComponent< onLoggedIn: "loggedIn", onLoggedOut: "loggedOut", onSchedulerConfigCloseClicked: "schedulerConfigCloseClicked", + onNylasSchedulerEditorError: "nylasSchedulerEditorError", } as NylasSchedulerEditorEvents, defineCustomElement: defineNylasSchedulerEditor, });