Skip to content

Commit f315e2b

Browse files
authored
Updating nylas-web-elements to v2.3.0 (#32)
1 parent 6fcd247 commit f315e2b

File tree

5 files changed

+103
-51
lines changed

5 files changed

+103
-51
lines changed

.changeset/yellow-ants-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nylas/react": minor
3+
---
4+
5+
Updating to the latest version of nylas-web-elements.

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
# Create snapshot version
7070
- name: Create snapshot version
71-
run: pnpm changeset version --snapshot ${{ inputs.snapshot_tag }} && git add --all
71+
run: pnpm changeset version --snapshot ${{ inputs.snapshot_tag }} && pnpm -r generate:version && git add --all
7272
env:
7373
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
7474
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"dependencies": {
7979
"@nylas/connect": "workspace:^",
8080
"@nylas/core": "^1.2.0",
81-
"@nylas/web-elements": "^2.2.4",
81+
"@nylas/web-elements": "2.3.0",
8282
"@stencil/react-output-target": "^1.2.0",
8383
"axios": "^1.7.7",
8484
"dayjs": "1.11.7",

packages/react/src/elements/components.ts

Lines changed: 68 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import {
4040
type NylasEventCalendarCustomEvent,
4141
type NylasEventCapacityCustomEvent,
4242
type NylasListConfigurationsCustomEvent,
43+
type NylasNotetakerConfigCustomEvent,
4344
type NylasOrganizerConfirmationCardCustomEvent,
4445
type NylasPageNameCustomEvent,
4546
type NylasPageStylingCustomEvent,
@@ -412,15 +413,18 @@ import {
412413
NylasMinCancellationNotice as NylasMinCancellationNoticeElement,
413414
defineCustomElement as defineNylasMinCancellationNotice,
414415
} from "@nylas/web-elements/dist/components/nylas-min-cancellation-notice.js";
416+
import {
417+
NylasNotetakerConfig as NylasNotetakerConfigElement,
418+
defineCustomElement as defineNylasNotetakerConfig,
419+
} from "@nylas/web-elements/dist/components/nylas-notetaker-config.js";
415420
import {
416421
NylasNotification as NylasNotificationElement,
417422
defineCustomElement as defineNylasNotification,
418423
} from "@nylas/web-elements/dist/components/nylas-notification.js";
419-
// NOTE: Component not available in current web-elements version
420-
// import {
421-
// NylasOnlySpecificTimeAvailability as NylasOnlySpecificTimeAvailabilityElement,
422-
// defineCustomElement as defineNylasOnlySpecificTimeAvailability,
423-
// } from "@nylas/web-elements/dist/components/nylas-only-specific-time-availability.js";
424+
import {
425+
NylasOnlySpecificTimeAvailability as NylasOnlySpecificTimeAvailabilityElement,
426+
defineCustomElement as defineNylasOnlySpecificTimeAvailability,
427+
} from "@nylas/web-elements/dist/components/nylas-only-specific-time-availability.js";
424428
import {
425429
NylasOrganizerConfirmationCard as NylasOrganizerConfirmationCardElement,
426430
defineCustomElement as defineNylasOrganizerConfirmationCard,
@@ -2630,6 +2634,40 @@ export const NylasMinCancellationNotice: StencilReactComponent<
26302634
defineCustomElement: defineNylasMinCancellationNotice,
26312635
});
26322636

2637+
export type NylasNotetakerConfigEvents = {
2638+
onValueChanged: EventName<
2639+
CustomEvent<{
2640+
value: string;
2641+
name: string;
2642+
}>
2643+
>;
2644+
onNotetakerError: EventName<
2645+
NylasNotetakerConfigCustomEvent<{
2646+
error: string;
2647+
reason: string;
2648+
context?: Record<string, any>;
2649+
}>
2650+
>;
2651+
};
2652+
2653+
export const NylasNotetakerConfig: StencilReactComponent<
2654+
NylasNotetakerConfigElement,
2655+
NylasNotetakerConfigEvents
2656+
> = /*@__PURE__*/ createComponent<
2657+
NylasNotetakerConfigElement,
2658+
NylasNotetakerConfigEvents
2659+
>({
2660+
tagName: "nylas-notetaker-config",
2661+
elementClass: NylasNotetakerConfigElement,
2662+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
2663+
react: React,
2664+
events: {
2665+
onValueChanged: "valueChanged",
2666+
onNotetakerError: "notetakerError",
2667+
} as NylasNotetakerConfigEvents,
2668+
defineCustomElement: defineNylasNotetakerConfig,
2669+
});
2670+
26332671
export type NylasNotificationEvents = NonNullable<unknown>;
26342672

26352673
export const NylasNotification: StencilReactComponent<
@@ -2647,32 +2685,31 @@ export const NylasNotification: StencilReactComponent<
26472685
defineCustomElement: defineNylasNotification,
26482686
});
26492687

2650-
// NOTE: Component not available in current web-elements version
2651-
// export type NylasOnlySpecificTimeAvailabilityEvents = {
2652-
// onValueChanged: EventName<
2653-
// CustomEvent<{
2654-
// value: string;
2655-
// name: string;
2656-
// }>
2657-
// >;
2658-
// };
2659-
//
2660-
// export const NylasOnlySpecificTimeAvailability: StencilReactComponent<
2661-
// NylasOnlySpecificTimeAvailabilityElement,
2662-
// NylasOnlySpecificTimeAvailabilityEvents
2663-
// > = /*@__PURE__*/ createComponent<
2664-
// NylasOnlySpecificTimeAvailabilityElement,
2665-
// NylasOnlySpecificTimeAvailabilityEvents
2666-
// >({
2667-
// tagName: "nylas-only-specific-time-availability",
2668-
// elementClass: NylasOnlySpecificTimeAvailabilityElement,
2669-
// // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
2670-
// react: React,
2671-
// events: {
2672-
// onValueChanged: "valueChanged",
2673-
// } as NylasOnlySpecificTimeAvailabilityEvents,
2674-
// defineCustomElement: defineNylasOnlySpecificTimeAvailability,
2675-
// });
2688+
export type NylasOnlySpecificTimeAvailabilityEvents = {
2689+
onValueChanged: EventName<
2690+
CustomEvent<{
2691+
value: string;
2692+
name: string;
2693+
}>
2694+
>;
2695+
};
2696+
2697+
export const NylasOnlySpecificTimeAvailability: StencilReactComponent<
2698+
NylasOnlySpecificTimeAvailabilityElement,
2699+
NylasOnlySpecificTimeAvailabilityEvents
2700+
> = /*@__PURE__*/ createComponent<
2701+
NylasOnlySpecificTimeAvailabilityElement,
2702+
NylasOnlySpecificTimeAvailabilityEvents
2703+
>({
2704+
tagName: "nylas-only-specific-time-availability",
2705+
elementClass: NylasOnlySpecificTimeAvailabilityElement,
2706+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
2707+
react: React,
2708+
events: {
2709+
onValueChanged: "valueChanged",
2710+
} as NylasOnlySpecificTimeAvailabilityEvents,
2711+
defineCustomElement: defineNylasOnlySpecificTimeAvailability,
2712+
});
26762713

26772714
export type NylasOrganizerConfirmationCardEvents = {
26782715
onRejectBookingButtonClicked: EventName<

pnpm-lock.yaml

Lines changed: 28 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)