@nylas/web-elements 0.0.0-test-20250320184617 → 0.0.0-test-20250320205845
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.
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +7 -7
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4792 -4796
- package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +17 -13
- package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
- package/dist/cjs/index.es-4f95065f.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +3 -3
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-provider.cjs.entry.js +2 -2
- package/dist/cjs/nylas-provider.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/scheduler-config-store-cf66a841.js.map +1 -1
- package/dist/cjs/{scheduler-store-df3a9a3a.js → scheduler-store-461fd2ff.js} +1 -11
- package/dist/cjs/{scheduler-store-df3a9a3a.js.map → scheduler-store-461fd2ff.js.map} +1 -1
- package/dist/collection/common/abstract-provider.js.map +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +7 -2
- package/dist/collection/components/nylas-provider/nylas-provider.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +8 -10
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +3 -3
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js +20 -15
- package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js.map +1 -1
- package/dist/collection/connector/nylas-connector/index.js.map +1 -1
- package/dist/collection/connector/nylas-scheduler-config-connector/index.js.map +1 -1
- package/dist/collection/connector/nylas-scheduler-connector/errors/index.js.map +1 -1
- package/dist/collection/connector/nylas-scheduler-connector/index.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
- package/dist/collection/stores/scheduler-config-store.js.map +1 -1
- package/dist/collection/stores/scheduler-store.js.map +1 -1
- package/dist/collection/types/index.js +0 -10
- package/dist/collection/types/index.js.map +1 -1
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/nylas-booked-event-card2.js +4 -4
- package/dist/components/nylas-booked-event-card2.js.map +1 -1
- package/dist/components/nylas-booking-form-config2.js +17 -13
- package/dist/components/nylas-booking-form-config2.js.map +1 -1
- package/dist/components/nylas-provider.js +1 -1
- package/dist/components/nylas-provider.js.map +1 -1
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/scheduler-config-store.js.map +1 -1
- package/dist/components/scheduler-store.js +0 -10
- package/dist/components/scheduler-store.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_36.entry.js +17 -13
- package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
- package/dist/esm/index.es-f8ebfa98.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nylas-booked-event-card_12.entry.js +3 -3
- package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
- package/dist/esm/nylas-provider.entry.js +2 -2
- package/dist/esm/nylas-provider.entry.js.map +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +1 -1
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/scheduler-config-store-d6729d8d.js.map +1 -1
- package/dist/esm/{scheduler-store-ef022be9.js → scheduler-store-755ced0b.js} +1 -11
- package/dist/esm/{scheduler-store-ef022be9.js.map → scheduler-store-755ced0b.js.map} +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
- package/dist/nylas-web-elements/p-14894041.js.map +1 -1
- package/dist/nylas-web-elements/{p-a906d005.entry.js → p-4b48f29a.entry.js} +2 -2
- package/dist/nylas-web-elements/p-4b48f29a.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-68608216.entry.js.map +1 -1
- package/dist/nylas-web-elements/{p-1fb32e0e.entry.js → p-b9727e42.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-1fb32e0e.entry.js.map → p-b9727e42.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-c372bced.js.map +1 -1
- package/dist/nylas-web-elements/p-d36ad6ef.js +2 -0
- package/dist/nylas-web-elements/p-d36ad6ef.js.map +1 -0
- package/dist/nylas-web-elements/{p-13a6c977.entry.js → p-e4272174.entry.js} +2 -2
- package/dist/nylas-web-elements/p-e4272174.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-f12cd991.entry.js +8 -0
- package/dist/nylas-web-elements/p-f12cd991.entry.js.map +1 -0
- package/dist/types/common/abstract-provider.d.ts +1 -1
- package/dist/types/components/nylas-provider/nylas-provider.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +2 -1
- package/dist/types/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.d.ts +4 -12
- package/dist/types/components.d.ts +10 -10
- package/dist/types/connector/nylas-connector/index.d.ts +6 -6
- package/dist/types/connector/nylas-scheduler-config-connector/index.d.ts +2 -2
- package/dist/types/connector/nylas-scheduler-connector/errors/index.d.ts +2 -1
- package/dist/types/connector/nylas-scheduler-connector/index.d.ts +2 -2
- package/dist/types/stores/scheduler-config-store.d.ts +1 -1
- package/dist/types/stores/scheduler-store.d.ts +2 -2
- package/dist/types/types/index.d.ts +0 -9
- package/package.json +2 -2
- package/dist/nylas-web-elements/p-13a6c977.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-731a856b.js +0 -2
- package/dist/nylas-web-elements/p-731a856b.js.map +0 -1
- package/dist/nylas-web-elements/p-7b787c73.entry.js +0 -8
- package/dist/nylas-web-elements/p-7b787c73.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-a906d005.entry.js.map +0 -1
|
@@ -35,7 +35,7 @@ export declare abstract class NylasAbstractProvider<Stores extends Record<string
|
|
|
35
35
|
registeredComponents: Record<ElementID, RegisteredComponent<any, any>>;
|
|
36
36
|
propStateRegistrations: Map<StoreName<this['stores']>, Map<StateKey, PropStateRegistration[]>>;
|
|
37
37
|
eventListenerRegistrations: Map<ElementID, EventListenerRegistration[]>;
|
|
38
|
-
eventOverrides: EventOverride<Exclude<
|
|
38
|
+
eventOverrides: EventOverride<Exclude<BaseNylasConnectorInterface, undefined>>;
|
|
39
39
|
constructor(host: HTMLElement, stores: Stores, automaticComponentRegistration: boolean | undefined, eventOverrides: EventOverride<any>);
|
|
40
40
|
componentWillLoad(nylasConnector: BaseNylasConnectorInterface): Promise<void>;
|
|
41
41
|
componentDidLoad(): Promise<void>;
|
|
@@ -13,7 +13,7 @@ export declare class NylasProvider {
|
|
|
13
13
|
private nylasConnector?;
|
|
14
14
|
private host;
|
|
15
15
|
readonly authConfig?: AuthConfig;
|
|
16
|
-
eventOverrides: EventOverride<Exclude<
|
|
16
|
+
eventOverrides: EventOverride<Exclude<NylasConnector, undefined>>;
|
|
17
17
|
automaticComponentRegistration: boolean;
|
|
18
18
|
init: EventEmitter<HTMLNylasProviderElement>;
|
|
19
19
|
loggedIn: EventEmitter<HTMLNylasProviderElement>;
|
package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { NylasSchedulerBookingData } from
|
|
2
|
+
import type { NylasSchedulerBookingData } from "../../../common/types";
|
|
3
3
|
import { ConfigSettings } from "../../../stores/scheduler-store";
|
|
4
4
|
import { NylasEvent } from "../../../common/types";
|
|
5
5
|
import { NylasSchedulerErrorResponse, ThemeConfig, Timeslot } from '@nylas/core';
|
|
@@ -2,10 +2,11 @@ import { RegisteredComponent } from "../../../common/register-component";
|
|
|
2
2
|
import type { SchedulerEventOverride } from "../../../common/component-types";
|
|
3
3
|
import { NylasSchedulerConnector } from "../../../connector/nylas-scheduler-connector/index";
|
|
4
4
|
import { NylasSchedulerStoreState, NylasSchedulerStoreType } from "../../../stores/scheduler-store";
|
|
5
|
-
import {
|
|
5
|
+
import { ThemeConfig, Notification, NylasSchedulerErrorResponse, NylasSchedulerResponse } from '@nylas/core';
|
|
6
6
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
7
7
|
import { NylasSchedulerBookingDataWithFlatFields, NylasEvent, UISettingsResponse } from "../../../common/types";
|
|
8
8
|
import { LANGUAGE_CODE, Locale } from "../../../common/constants";
|
|
9
|
+
import type { NylasSchedulerBookingData } from "../../../common/types";
|
|
9
10
|
export declare class NylasScheduling {
|
|
10
11
|
private stores?;
|
|
11
12
|
private baseProvider?;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { Configuration } from '@nylas/core';
|
|
2
|
+
import { Configuration, AdditionalFields } from '@nylas/core';
|
|
3
3
|
import { LANGUAGE_CODE } from "../../../common/constants";
|
|
4
|
-
interface AdditionalFields {
|
|
5
|
-
type: string;
|
|
6
|
-
required: boolean;
|
|
7
|
-
label: string;
|
|
8
|
-
order: number;
|
|
9
|
-
options?: string[];
|
|
10
|
-
key: string;
|
|
11
|
-
default?: string;
|
|
12
|
-
error?: string;
|
|
13
|
-
fieldLabelKey: string;
|
|
14
|
-
}
|
|
15
4
|
interface AdditionalFieldsInternal extends AdditionalFields {
|
|
16
5
|
isOpen: boolean;
|
|
17
6
|
readonly?: boolean;
|
|
18
7
|
typeLabel: string;
|
|
8
|
+
key?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
fieldLabelKey?: string;
|
|
19
11
|
}
|
|
20
12
|
export declare class NylasBookingFormConfig {
|
|
21
13
|
private staticFields;
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { AdditionalParticipant, Appearance, AuthConfig, ButtonType, Calendar, Conference, Configuration, DropdownOption, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar,
|
|
8
|
+
import { AdditionalFields, AdditionalParticipant, Appearance, AuthConfig, ButtonType, Calendar, Conference, Configuration, DropdownOption, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
9
9
|
import { AuthArgs, NylasApiRequest, User } from "./common/nylas-api-request";
|
|
10
10
|
import { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES, LANGUAGE_CODE, Locale } from "./common/constants";
|
|
11
11
|
import { OpenHours } from "./components/scheduler-editor/nylas-availability-picker/nylas-availability-picker";
|
|
12
|
-
import { NylasEvent, NylasSchedulerBookingData
|
|
13
|
-
import { NylasEvent as NylasEvent1, NylasSchedulerBookingData, NylasSchedulerErrorResponse as NylasSchedulerErrorResponse1 } from ".";
|
|
12
|
+
import { NylasEvent, NylasSchedulerBookingData, NylasSchedulerBookingDataWithFlatFields, UISettingsResponse } from "./common/types";
|
|
14
13
|
import { AvailabilityTimeslot, ConfigSettings, NylasSchedulerStoreState, NylasSchedulerStoreType } from "./stores/scheduler-store";
|
|
14
|
+
import { NylasEvent as NylasEvent1, NylasSchedulerErrorResponse as NylasSchedulerErrorResponse1 } from ".";
|
|
15
15
|
import { Tab } from "./components/scheduler-editor/nylas-editor-tabs/tab-contents";
|
|
16
16
|
import { SchedulerEventDetail } from "./components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs";
|
|
17
17
|
import { TabGroup } from "./components/scheduler-editor/nylas-editor-tabs-group/tab-contents-group";
|
|
@@ -26,13 +26,13 @@ import { NylasSchedulerConfigStoreState, NylasSchedulerConfigStoreType } from ".
|
|
|
26
26
|
import { Config } from "@nylas/identity";
|
|
27
27
|
import { NylasSchedulerConfigConnector } from "./connector/nylas-scheduler-config-connector/index";
|
|
28
28
|
import { NylasSchedulerConnector } from "./connector/nylas-scheduler-connector/index";
|
|
29
|
-
export { AdditionalParticipant, Appearance, AuthConfig, ButtonType, Calendar, Conference, Configuration, DropdownOption, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar,
|
|
29
|
+
export { AdditionalFields, AdditionalParticipant, Appearance, AuthConfig, ButtonType, Calendar, Conference, Configuration, DropdownOption, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
30
30
|
export { AuthArgs, NylasApiRequest, User } from "./common/nylas-api-request";
|
|
31
31
|
export { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES, LANGUAGE_CODE, Locale } from "./common/constants";
|
|
32
32
|
export { OpenHours } from "./components/scheduler-editor/nylas-availability-picker/nylas-availability-picker";
|
|
33
|
-
export { NylasEvent, NylasSchedulerBookingData
|
|
34
|
-
export { NylasEvent as NylasEvent1, NylasSchedulerBookingData, NylasSchedulerErrorResponse as NylasSchedulerErrorResponse1 } from ".";
|
|
33
|
+
export { NylasEvent, NylasSchedulerBookingData, NylasSchedulerBookingDataWithFlatFields, UISettingsResponse } from "./common/types";
|
|
35
34
|
export { AvailabilityTimeslot, ConfigSettings, NylasSchedulerStoreState, NylasSchedulerStoreType } from "./stores/scheduler-store";
|
|
35
|
+
export { NylasEvent as NylasEvent1, NylasSchedulerErrorResponse as NylasSchedulerErrorResponse1 } from ".";
|
|
36
36
|
export { Tab } from "./components/scheduler-editor/nylas-editor-tabs/tab-contents";
|
|
37
37
|
export { SchedulerEventDetail } from "./components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs";
|
|
38
38
|
export { TabGroup } from "./components/scheduler-editor/nylas-editor-tabs-group/tab-contents-group";
|
|
@@ -1669,7 +1669,7 @@ export namespace Components {
|
|
|
1669
1669
|
/**
|
|
1670
1670
|
* This provides a way to override the default event handlers.
|
|
1671
1671
|
*/
|
|
1672
|
-
"eventOverrides": EventOverride<Exclude<
|
|
1672
|
+
"eventOverrides": EventOverride<Exclude<NylasConnector, undefined>>;
|
|
1673
1673
|
/**
|
|
1674
1674
|
* This method is used to retrieve the authStore instance
|
|
1675
1675
|
* @returns The authStore instance
|
|
@@ -1824,7 +1824,7 @@ export namespace Components {
|
|
|
1824
1824
|
/**
|
|
1825
1825
|
* This enables passing the bookingInfo object to the Scheduler UI for direct booking event creation. When used with timeslotConfirmedHandler, it bypasses the additional data page and immediately invokes the handler after booking.
|
|
1826
1826
|
*/
|
|
1827
|
-
"bookingInfo"?:
|
|
1827
|
+
"bookingInfo"?: NylasSchedulerBookingData;
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Booking Ref required for cancelling flow.
|
|
1830
1830
|
*/
|
|
@@ -6933,7 +6933,7 @@ declare namespace LocalJSX {
|
|
|
6933
6933
|
/**
|
|
6934
6934
|
* This provides a way to override the default event handlers.
|
|
6935
6935
|
*/
|
|
6936
|
-
"eventOverrides"?: EventOverride<Exclude<
|
|
6936
|
+
"eventOverrides"?: EventOverride<Exclude<NylasConnector, undefined>>;
|
|
6937
6937
|
/**
|
|
6938
6938
|
* This event is fired when the provider is initialized. It can be used to set the initial state of the provider, or to prevent the provider from firing some default behavior.
|
|
6939
6939
|
*/
|
|
@@ -7097,7 +7097,7 @@ declare namespace LocalJSX {
|
|
|
7097
7097
|
/**
|
|
7098
7098
|
* This enables passing the bookingInfo object to the Scheduler UI for direct booking event creation. When used with timeslotConfirmedHandler, it bypasses the additional data page and immediately invokes the handler after booking.
|
|
7099
7099
|
*/
|
|
7100
|
-
"bookingInfo"?:
|
|
7100
|
+
"bookingInfo"?: NylasSchedulerBookingData;
|
|
7101
7101
|
/**
|
|
7102
7102
|
* Booking Ref required for cancelling flow.
|
|
7103
7103
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RouterInterface } from "../../routers/router-interface";
|
|
2
|
-
import { NylasAuthStoreType } from
|
|
3
|
-
import { NylasSchedulerConfigStoreType } from
|
|
4
|
-
import { NylasSchedulerStoreType } from
|
|
2
|
+
import { NylasAuthStoreType } from '../../stores/auth-store';
|
|
3
|
+
import { NylasSchedulerConfigStoreType } from '../../stores/scheduler-config-store';
|
|
4
|
+
import { NylasSchedulerStoreType } from '../../stores/scheduler-store';
|
|
5
5
|
import type { NylasAuthType } from '@nylas/core';
|
|
6
6
|
import { NylasConnectorInterface } from '../connector-interface';
|
|
7
7
|
import { NylasAuthConnector } from '../shared/api/auth';
|
|
@@ -17,9 +17,9 @@ export declare class NylasConnector implements NylasConnectorInterface {
|
|
|
17
17
|
private _schedulerAPIConnector;
|
|
18
18
|
constructor(router: RouterInterface, nylasAuth: NylasAuthType, nylasAuthStore: NylasAuthStoreType, nylasSchedulerStore: NylasSchedulerStoreType, nylasSchedulerConfigStore: NylasSchedulerConfigStoreType, schedulerAPIURL?: string);
|
|
19
19
|
init(): void;
|
|
20
|
-
get authStore(): import("@stencil/store").ObservableMap<import("
|
|
21
|
-
get schedulerStore(): import("@stencil/store").ObservableMap<import("
|
|
22
|
-
get schedulerConfigStore(): import("
|
|
20
|
+
get authStore(): import("@stencil/store").ObservableMap<import("../../stores/auth-store").NylasAuthStoreState>;
|
|
21
|
+
get schedulerStore(): import("@stencil/store").ObservableMap<import("../../stores/scheduler-store").NylasSchedulerStoreState>;
|
|
22
|
+
get schedulerConfigStore(): import("../../stores/scheduler-config-store").CreateNylasSchedulerConfigStoreReturnType;
|
|
23
23
|
get auth(): NylasAuthConnector;
|
|
24
24
|
get scheduler(): NylaSchedulerAPIConnector;
|
|
25
25
|
getAuth(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NylasApiRequest } from "../../common/nylas-api-request";
|
|
2
|
-
import { NylasSchedulerConfigStoreType } from
|
|
2
|
+
import { NylasSchedulerConfigStoreType } from '../../stores/scheduler-config-store';
|
|
3
3
|
import { NylasSchedulerConfigAPIConnector } from '../shared/api/scheduler-config';
|
|
4
4
|
type NylasSchedulerConfigConnectorOptions = {
|
|
5
5
|
nylasSchedulerConfigStore: NylasSchedulerConfigStoreType;
|
|
@@ -11,7 +11,7 @@ export declare class NylasSchedulerConfigConnector {
|
|
|
11
11
|
private _schedulerConfigConnector;
|
|
12
12
|
constructor({ nylasApiRequest, nylasSchedulerConfigStore }: NylasSchedulerConfigConnectorOptions);
|
|
13
13
|
init(): void;
|
|
14
|
-
get schedulerConfigStore(): import("
|
|
14
|
+
get schedulerConfigStore(): import("../../stores/scheduler-config-store").CreateNylasSchedulerConfigStoreReturnType;
|
|
15
15
|
get schedulerConfig(): NylasSchedulerConfigAPIConnector;
|
|
16
16
|
resetStores(): void;
|
|
17
17
|
logout(): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentErrorType, ErrorDetails } from "../../../types/index";
|
|
2
|
+
import { APIErrorType } from '@nylas/core';
|
|
2
3
|
export declare class Errors {
|
|
3
4
|
component: (_title: string) => Record<ComponentErrorType, (message?: string) => ErrorDetails>;
|
|
4
5
|
api: (_title: string) => Record<APIErrorType, (message: string) => ErrorDetails>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NylasSchedulerStoreType } from
|
|
1
|
+
import { NylasSchedulerStoreType } from '../../stores/scheduler-store';
|
|
2
2
|
import { NylasSchedulerConnectorInterface } from '../connector-interface';
|
|
3
3
|
import { NylaSchedulerAPIConnector } from '../shared/api/scheduler';
|
|
4
4
|
type NylasSchedulerConnectorOptions = {
|
|
@@ -19,7 +19,7 @@ export declare class NylasSchedulerConnector implements NylasSchedulerConnectorI
|
|
|
19
19
|
private _schedulerAPIConnector;
|
|
20
20
|
constructor({ schedulerAPIURL, nylasSchedulerStore, sessionId, configId, slug, clientId }: NylasSchedulerConnectorOptions);
|
|
21
21
|
init(): void;
|
|
22
|
-
get schedulerStore(): import("@stencil/store").ObservableMap<import("
|
|
22
|
+
get schedulerStore(): import("@stencil/store").ObservableMap<import("../../stores/scheduler-store").NylasSchedulerStoreState>;
|
|
23
23
|
get scheduler(): NylaSchedulerAPIConnector;
|
|
24
24
|
resetStores(): void;
|
|
25
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdditionalParticipant, Calendar, Configuration, EventDetails, GroupConfiguration, GroupEventAPIData } from '@nylas/core';
|
|
2
2
|
import { ObservableMap } from '@stencil/store';
|
|
3
|
-
import { User } from
|
|
3
|
+
import { User } from '../common/nylas-api-request';
|
|
4
4
|
import { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES } from "../common/constants";
|
|
5
5
|
type RecursivePartial<T> = {
|
|
6
6
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataState, NylasEvent } from "../common/types";
|
|
2
|
-
import { AdditionalFields, Appearance,
|
|
1
|
+
import { DataState, NylasEvent, NylasSchedulerBookingData } from "../common/types";
|
|
2
|
+
import { AdditionalFields, Appearance, ThemeConfig, Timeslot } from '@nylas/core';
|
|
3
3
|
export type AvailabilityTimeslot = {
|
|
4
4
|
emails: string[];
|
|
5
5
|
start_time: Date;
|
|
@@ -437,15 +437,6 @@ export declare enum ComponentErrorType {
|
|
|
437
437
|
invalid_timezone = "invalid_timezone",
|
|
438
438
|
no_config_id = "no_config_id"
|
|
439
439
|
}
|
|
440
|
-
export declare enum APIErrorType {
|
|
441
|
-
invalid_session = "invalid_session",
|
|
442
|
-
general_error = "general_error",
|
|
443
|
-
internal_error = "internal_error",
|
|
444
|
-
invalid_request_error = "invalid_request_error",
|
|
445
|
-
timeslot_not_available = "timeslot_not_available",
|
|
446
|
-
provider_error = "provider_error",
|
|
447
|
-
not_found_error = "not_found_error"
|
|
448
|
-
}
|
|
449
440
|
export interface KeyPoint {
|
|
450
441
|
time: number;
|
|
451
442
|
text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylas/web-elements",
|
|
3
|
-
"version": "0.0.0-test-
|
|
3
|
+
"version": "0.0.0-test-20250320205845",
|
|
4
4
|
"description": "Nylas Web Elements",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"sanitize-html": "^2.13.0",
|
|
43
43
|
"sortablejs": "^1.15.6",
|
|
44
44
|
"@nylas/identity": "^3.0.0",
|
|
45
|
-
"@nylas/core": "^0.0.0-test-
|
|
45
|
+
"@nylas/core": "^0.0.0-test-20250320205845"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@playwright/test": "^1.50.1",
|