@nylas/react 2.0.0 → 2.0.1
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/abstract-provider-efe136bd-2041bdce.js +187 -0
- package/dist/abstract-provider-efe136bd-b4663c02.cjs +1 -0
- package/dist/add-circle-icon_2.entry-5204c48a.cjs +1 -0
- package/dist/add-circle-icon_2.entry-ea1692a4.js +26 -0
- package/dist/archive-icon.entry-0b585dff.js +16 -0
- package/dist/archive-icon.entry-c2c66bca.cjs +1 -0
- package/dist/{arrow-icon.entry-9414299f.js → arrow-icon.entry-2e61394e.js} +5 -5
- package/dist/arrow-icon.entry-9d471162.cjs +1 -0
- package/dist/{bold-icon.entry-c781e9c1.cjs → bold-icon.entry-5c37622f.cjs} +1 -1
- package/dist/{bold-icon.entry-b72aed9f.js → bold-icon.entry-8ef1b653.js} +2 -2
- package/dist/{button-component_2.entry-73f76545.cjs → button-component_2.entry-8335ee1e.cjs} +1 -1
- package/dist/{button-component_2.entry-36e49459.js → button-component_2.entry-c906230f.js} +9 -9
- package/dist/calendar-agenda-fill-icon_36.entry-59c0a997.cjs +6 -0
- package/dist/{calendar-agenda-fill-icon_36.entry-efa7ad26.js → calendar-agenda-fill-icon_36.entry-5f184433.js} +900 -881
- package/dist/{calendar-cancel-icon.entry-01c388eb.cjs → calendar-cancel-icon.entry-65a4a34e.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-0f739a8a.js → calendar-cancel-icon.entry-dd6ac4db.js} +5 -5
- package/dist/{calendar-check-icon_2.entry-5febbadf.cjs → calendar-check-icon_2.entry-ded15038.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-dfb0036d.js → calendar-check-icon_2.entry-f9b50bb8.js} +3 -3
- package/dist/{calendar-icon.entry-f197396d.js → calendar-icon.entry-a2a1ddbc.js} +2 -2
- package/dist/{calendar-icon.entry-9743e0b7.cjs → calendar-icon.entry-ca512dd6.cjs} +1 -1
- package/dist/checkbox-component_2.entry-d6128246.js +115 -0
- package/dist/checkbox-component_2.entry-d79b5d1d.cjs +1 -0
- package/dist/checkbox-group_4.entry-2946c7ef.cjs +28 -0
- package/dist/{nylas-event-calendar_3.entry-9abd46c2.js → checkbox-group_4.entry-e5145451.js} +1038 -923
- package/dist/{checkmark-icon_15.entry-5c09cff5.js → checkmark-icon_15.entry-6e92e93e.js} +19 -19
- package/dist/{checkmark-icon_15.entry-35dd97b7.cjs → checkmark-icon_15.entry-a75a1825.cjs} +2 -2
- package/dist/{chevron-icon_3.entry-4a72f211.js → chevron-icon_3.entry-6eaa3513.js} +16 -16
- package/dist/{chevron-icon_3.entry-e0608b7c.cjs → chevron-icon_3.entry-9193a885.cjs} +1 -1
- package/dist/{clock-icon_4.entry-0afe79c2.js → clock-icon_4.entry-2c93270e.js} +8 -8
- package/dist/{clock-icon_4.entry-202ce025.cjs → clock-icon_4.entry-ae2272f4.cjs} +1 -1
- package/dist/{customParseFormat-d1de5ed0-c0ef002d.js → customParseFormat-edc38d83-b3722499.js} +1 -1
- package/dist/{customParseFormat-d1de5ed0-65a0bba3.cjs → customParseFormat-edc38d83-fa9c77d9.cjs} +1 -1
- package/dist/{delete-icon.entry-580bfcc9.js → delete-icon.entry-6684eba6.js} +2 -2
- package/dist/{delete-icon.entry-762ac892.cjs → delete-icon.entry-b9e4f2c7.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-4e0f0c61.cjs → document-refresh-icon.entry-7afe6163.cjs} +1 -1
- package/dist/document-refresh-icon.entry-fba9f60b.js +16 -0
- package/dist/{feedbackSync-172f942c-42124493.js → feedbackSync-e4378c0b-23289195.js} +811 -798
- package/dist/{feedbackSync-172f942c-62f72bd2.cjs → feedbackSync-e4378c0b-7876d067.cjs} +26 -26
- package/dist/{folder-icon.entry-54c3cc66.js → folder-icon.entry-430c6b47.js} +4 -4
- package/dist/{folder-icon.entry-2694e253.cjs → folder-icon.entry-b1632bf3.cjs} +1 -1
- package/dist/{forward-icon.entry-5e540f05.js → forward-icon.entry-5e53da76.js} +2 -2
- package/dist/{forward-icon.entry-f07102d8.cjs → forward-icon.entry-7626dcca.cjs} +1 -1
- package/dist/{globe-icon_2.entry-aaceb196.js → globe-icon_2.entry-646eae41.js} +20 -20
- package/dist/{globe-icon_2.entry-14a4c168.cjs → globe-icon_2.entry-bbb0a6ce.cjs} +1 -1
- package/dist/{google-logo-icon_6.entry-00d40db2.js → google-logo-icon_6.entry-5951a546.js} +682 -488
- package/dist/google-logo-icon_6.entry-e39dd9cb.cjs +2 -0
- package/dist/{google-meet-icon_5.entry-f1f05903.js → google-meet-icon_5.entry-a54c83da.js} +14 -14
- package/dist/{google-meet-icon_5.entry-6c20e149.cjs → google-meet-icon_5.entry-c13e0738.cjs} +1 -1
- package/dist/inbox-icon.entry-7bee82b3.js +16 -0
- package/dist/inbox-icon.entry-911b047a.cjs +1 -0
- package/dist/index-71f61ea9.js +24544 -0
- package/dist/index-f769bc2a.cjs +118 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.es-6a9d55cf-122c27e0.js +2724 -0
- package/dist/index.es-6a9d55cf-458ba0e0.cjs +7 -0
- package/dist/{info-icon_2.entry-bbcefb9a.cjs → info-icon_2.entry-471b836b.cjs} +1 -1
- package/dist/{info-icon_2.entry-b3b313ab.js → info-icon_2.entry-6ff2f004.js} +3 -3
- package/dist/{input-component.entry-401b9ba5.js → input-component.entry-781b584c.js} +12 -12
- package/dist/{input-component.entry-ec8e8e7c.cjs → input-component.entry-b6a9b4cb.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-c37f392c.js → input-dropdown_2.entry-1feebcba.js} +3 -3
- package/dist/{input-dropdown_2.entry-8cb11601.cjs → input-dropdown_2.entry-c71d14ff.cjs} +1 -1
- package/dist/{italic-icon.entry-6675558a.cjs → italic-icon.entry-16debde5.cjs} +1 -1
- package/dist/italic-icon.entry-9ef7f4a2.js +16 -0
- package/dist/{elements → lib/elements}/index.d.ts +1 -1
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/main.d.ts +0 -0
- package/dist/lib/notetaker/CalendarSync/CalendarSync.d.ts +37 -0
- package/dist/lib/notetaker/CalendarSync/CalendarSync.spec.d.ts +0 -0
- package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +31 -0
- package/dist/lib/notetaker/SendNotetaker/SendNotetaker.spec.d.ts +1 -0
- package/dist/lib/notetaker/Transcript/Transcript.d.ts +23 -0
- package/dist/lib/notetaker/Transcript/Transcript.spec.d.ts +0 -0
- package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +22 -0
- package/dist/lib/notetaker/VideoPlayer/VideoPlayer.spec.d.ts +1 -0
- package/dist/lib/notetaker/index.d.ts +9 -0
- package/dist/lib/notetaker/lib/constants.d.ts +12 -0
- package/dist/lib/notetaker/lib/http-client.d.ts +2 -0
- package/dist/lib/notetaker/lib/primitives.d.ts +66 -0
- package/dist/lib/notetaker/lib/store.d.ts +7 -0
- package/dist/lib/notetaker/types.d.ts +42 -0
- package/dist/multi-select-dropdown.entry-0a6f9417.cjs +1 -0
- package/dist/multi-select-dropdown.entry-1b27c746.js +121 -0
- package/dist/nylas-booked-event-card_11.entry-74fba802.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-e7464ae7.js → nylas-booked-event-card_11.entry-802671ee.js} +469 -534
- package/dist/{nylas-form-card.entry-cbb00fba.cjs → nylas-form-card.entry-59a837c9.cjs} +1 -1
- package/dist/{nylas-form-card.entry-a3186807.js → nylas-form-card.entry-7da9a312.js} +3 -3
- package/dist/nylas-notification_2.entry-8f8bad34.cjs +1 -0
- package/dist/nylas-notification_2.entry-b16bb805.js +85 -0
- package/dist/{nylas-scheduler-editor.entry-7b188a38.js → nylas-scheduler-editor.entry-cbe3e1e3.js} +160 -136
- package/dist/nylas-scheduler-editor.entry-e33e11fb.cjs +2 -0
- package/dist/nylas-scheduling.entry-4223e50b.cjs +1 -0
- package/dist/{nylas-scheduling.entry-e9929b03.js → nylas-scheduling.entry-6fb094a8.js} +295 -295
- package/dist/{person-icon.entry-d2856f08.js → person-icon.entry-6232e6fd.js} +7 -7
- package/dist/{person-icon.entry-8998fdb8.cjs → person-icon.entry-beb26b48.cjs} +1 -1
- package/dist/play-icon.entry-16a1c1ac.js +16 -0
- package/dist/{play-icon.entry-99eb969b.cjs → play-icon.entry-9060d0d8.cjs} +1 -1
- package/dist/{radio-button-group.entry-bc3b12fd.js → radio-button-group.entry-5a3728cd.js} +2 -2
- package/dist/{radio-button-group.entry-d66edd04.cjs → radio-button-group.entry-6935c39d.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +135 -126
- package/dist/{refresh-icon.entry-99d1982d.cjs → refresh-icon.entry-2411b2e1.cjs} +1 -1
- package/dist/{refresh-icon.entry-d6df8b1c.js → refresh-icon.entry-4f56e72b.js} +2 -2
- package/dist/{register-component-62d792d4-448b6a43.js → register-component-a1c3d7b4-774feacc.js} +1 -1
- package/dist/{register-component-62d792d4-c6e7d129.cjs → register-component-a1c3d7b4-97d7a6f5.cjs} +1 -1
- package/dist/{reply-all-icon.entry-d7c44139.cjs → reply-all-icon.entry-b4b6926b.cjs} +1 -1
- package/dist/{reply-all-icon.entry-7ebf01a0.js → reply-all-icon.entry-b4b917ec.js} +2 -2
- package/dist/{reply-icon.entry-d1622d85.js → reply-icon.entry-24f6f4c6.js} +5 -5
- package/dist/{reply-icon.entry-058c00e8.cjs → reply-icon.entry-454545ed.cjs} +1 -1
- package/dist/sent-icon.entry-d9a79336.cjs +1 -0
- package/dist/sent-icon.entry-fa59ce85.js +16 -0
- package/dist/spam-icon.entry-da39987e.cjs +1 -0
- package/dist/spam-icon.entry-fb18a08b.js +16 -0
- package/dist/{star-icon.entry-98b80645.js → star-icon.entry-406472c1.js} +4 -4
- package/dist/{star-icon.entry-4db13fdb.cjs → star-icon.entry-833f35a7.cjs} +1 -1
- package/dist/{stop-icon.entry-0290fd30.js → stop-icon.entry-1b6ae838.js} +2 -2
- package/dist/{stop-icon.entry-9d7b53fd.cjs → stop-icon.entry-3258db59.cjs} +1 -1
- package/dist/style.css +1 -0
- package/dist/test/vitest.setup.d.ts +0 -0
- package/dist/{textarea-component.entry-9b474ab5.cjs → textarea-component.entry-0ae18897.cjs} +1 -1
- package/dist/{textarea-component.entry-a62c257b.js → textarea-component.entry-569a281e.js} +2 -2
- package/dist/{toggle-switch.entry-5dbfcd48.cjs → toggle-switch.entry-60d75f16.cjs} +1 -1
- package/dist/{toggle-switch.entry-e423b793.js → toggle-switch.entry-dc3f796b.js} +4 -4
- package/dist/{translate-icon.entry-60c55a2e.js → translate-icon.entry-297cf20f.js} +4 -4
- package/dist/{translate-icon.entry-f82fa6fc.cjs → translate-icon.entry-c183ecb5.cjs} +1 -1
- package/dist/trash-fill-icon.entry-3d8a2e5e.js +16 -0
- package/dist/trash-fill-icon.entry-94d4f66c.cjs +1 -0
- package/dist/{underline-icon.entry-40028bc6.js → underline-icon.entry-4a9105c7.js} +2 -2
- package/dist/{underline-icon.entry-0807a43d.cjs → underline-icon.entry-50d1e766.cjs} +1 -1
- package/package.json +41 -17
- package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +0 -1
- package/dist/add-circle-icon_2.entry-b4bbcfee.js +0 -26
- package/dist/archive-icon.entry-a2492cf3.js +0 -16
- package/dist/archive-icon.entry-e48d2356.cjs +0 -1
- package/dist/arrow-icon.entry-b1ecb2aa.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +0 -6
- package/dist/checkbox-component.entry-1aa5782f.cjs +0 -1
- package/dist/checkbox-component.entry-72a6aa72.js +0 -43
- package/dist/document-refresh-icon.entry-e500b4e3.js +0 -16
- package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +0 -2
- package/dist/inbox-icon.entry-9a4628f2.cjs +0 -1
- package/dist/inbox-icon.entry-aa78ba8c.js +0 -16
- package/dist/index-1e75512f.cjs +0 -57
- package/dist/index-e8380973.js +0 -18492
- package/dist/index.es-fc8588de-034ead51.cjs +0 -7
- package/dist/index.es-fc8588de-c943eef6.js +0 -2908
- package/dist/italic-icon.entry-0e85d0d9.js +0 -16
- package/dist/multi-select-dropdown_2.entry-3eecf18a.js +0 -193
- package/dist/multi-select-dropdown_2.entry-e37c501d.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +0 -1
- package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +0 -11
- package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +0 -2
- package/dist/nylas-scheduling.entry-970240f6.cjs +0 -1
- package/dist/play-icon.entry-f949a80f.js +0 -16
- package/dist/sent-icon.entry-6c604512.cjs +0 -1
- package/dist/sent-icon.entry-fe12bc2f.js +0 -16
- package/dist/spam-icon.entry-45e5292e.cjs +0 -1
- package/dist/spam-icon.entry-b97c7709.js +0 -16
- package/dist/trash-fill-icon.entry-095caae3.cjs +0 -1
- package/dist/trash-fill-icon.entry-825055fd.js +0 -16
- package/dist/warning-icon.entry-24e37759.js +0 -16
- package/dist/warning-icon.entry-fce7c14f.cjs +0 -1
- /package/dist/{elements → lib/elements}/react-component-lib/createComponent.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/index.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/interfaces.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/case.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/dev.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/index.d.ts +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { b as e, n as E, o as T } from "./index-71f61ea9.js";
|
|
2
|
+
class w {
|
|
3
|
+
constructor(t, o, d = !0, n) {
|
|
4
|
+
this.automaticComponentRegistration = !0, this.registeredComponents = {}, this.propStateRegistrations = /* @__PURE__ */ new Map(), this.eventListenerRegistrations = /* @__PURE__ */ new Map(), this.host = t, this.stores = o, this.automaticComponentRegistration = d, this.eventOverrides = n, e(`[${this.hostTagName}] Initializing (abstract) provider.`, { eventOverrides: n }), this.registerComponent = this.registerComponent.bind(this), this.getStore = this.getStore.bind(this), Object.keys(this.stores).forEach((s) => {
|
|
5
|
+
this.propStateRegistrations.set(s, /* @__PURE__ */ new Map());
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
async componentWillLoad(t) {
|
|
9
|
+
e(`[${this.hostTagName}] Will load`), this.setupStoreListeners(), this.nylasConnector = t;
|
|
10
|
+
const o = Array.from(this.host.querySelectorAll("*")).filter((n) => n.tagName.toLowerCase().startsWith("nylas-"));
|
|
11
|
+
e(`[${this.hostTagName}] Found ${o.length} child component(s).`, { childComponents: o });
|
|
12
|
+
const d = o.map(async (n) => {
|
|
13
|
+
const s = n;
|
|
14
|
+
if (!s) {
|
|
15
|
+
e(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} does not have a name. Skipping.`);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (!s.registerNylasComponent) {
|
|
19
|
+
e(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} is not a component that can be registered. Skipping.`, { component: s });
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const g = {
|
|
23
|
+
element: s,
|
|
24
|
+
name: s.tagName.toLowerCase(),
|
|
25
|
+
getStoresToProp: s.getStoresToProp,
|
|
26
|
+
storeToProps: s.storeToProps,
|
|
27
|
+
stateToProps: s.stateToProps,
|
|
28
|
+
authToProp: s.authToProp,
|
|
29
|
+
eventToProps: s.eventToProps,
|
|
30
|
+
connectorToProp: s.connectorToProp,
|
|
31
|
+
localPropsToProp: s.localPropsToProp
|
|
32
|
+
};
|
|
33
|
+
await this.registerComponent(g);
|
|
34
|
+
});
|
|
35
|
+
await Promise.all(d);
|
|
36
|
+
}
|
|
37
|
+
async componentDidLoad() {
|
|
38
|
+
e(`[~${this.hostTagName}] (componentDidLoad) Did load`);
|
|
39
|
+
}
|
|
40
|
+
async componentDisconnected() {
|
|
41
|
+
Object.values(this.stores).forEach((t) => {
|
|
42
|
+
t.dispose();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async registerComponentHandler(t) {
|
|
46
|
+
if (t.stopPropagation(), !this.automaticComponentRegistration) {
|
|
47
|
+
e(`~[${this.hostTagName}] (registerComponentHandler) Automatic component registration disabled. Skipping registration of ${t.detail.name}.`);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
await this.registerComponent(t.detail);
|
|
51
|
+
}
|
|
52
|
+
async unregisterComponentHandler(t) {
|
|
53
|
+
if (t.stopPropagation(), !this.automaticComponentRegistration) {
|
|
54
|
+
e(`~[${this.hostTagName}] (unregisterComponentHandler) Automatic component registration disabled. Skipping unregistration of ${t.detail.name}.`);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
this.unregisterComponent(t.detail);
|
|
58
|
+
}
|
|
59
|
+
async registerComponent(t) {
|
|
60
|
+
e(`~[${this.hostTagName}] (registerComponent) Registering component ${t.name}.`);
|
|
61
|
+
const o = t.element.dataset.nylasId;
|
|
62
|
+
o && this.registeredComponents[o] ? (e(`[${this.hostTagName}] (registerComponent) Component ${t.name} already registered. Updating registration.`), this.cleanupComponentRegistration(o, !1)) : t.element.dataset.nylasId = o || E();
|
|
63
|
+
const n = t.element.dataset.nylasId;
|
|
64
|
+
n && (this.registeredComponents[n] = t), e(`[${this.hostTagName}] (registerComponent) Waiting for "${t.element.localName}" component to be defined`, { component: t });
|
|
65
|
+
try {
|
|
66
|
+
await customElements.whenDefined(t.element.tagName.toLowerCase()), e(`[${this.hostTagName}] (registerComponent) Component "${t.element.localName}" is now defined`);
|
|
67
|
+
} catch (h) {
|
|
68
|
+
e(`[${this.hostTagName}] (registerComponent) Error waiting for component "${t.element.localName}" to be defined:`, h);
|
|
69
|
+
}
|
|
70
|
+
const s = this.eventOverrides, { stateToProps: g, getStoresToProp: a, eventToProps: p, storeToProps: c, connectorToProp: l, localPropsToProp: $, element: i } = t;
|
|
71
|
+
p == null || p.forEach((h, r) => {
|
|
72
|
+
var N;
|
|
73
|
+
const m = this.nylasConnector, S = async (f) => {
|
|
74
|
+
e(`[${this.hostTagName}] (registerComponent) Handling "${t.name}" prop "${String(r)}" event.`, { event: f }), r in s && (e(`[${this.hostTagName}] (registerComponent) Found event override for "${String(r)}" event. Calling override.`), await s[r](f, m)), f.defaultPrevented || await h(f, m);
|
|
75
|
+
}, u = t.element.dataset.nylasId;
|
|
76
|
+
u && !this.eventListenerRegistrations.has(u) && this.eventListenerRegistrations.set(u, []), u && ((N = this.eventListenerRegistrations.get(u)) == null || N.push([i, r, S])), e(`[${this.hostTagName}] (registerComponent) Setting "${t.name}" event "${String(r)}" to automcially call NylasConnector method.`);
|
|
77
|
+
const C = T(r.toString());
|
|
78
|
+
e(`[${this.hostTagName}] (registerComponent) Adding event listener for "${C}" on "${i.tagName}"`), i.addEventListener(C, S);
|
|
79
|
+
}), g == null || g.forEach((h, r) => {
|
|
80
|
+
var N, f, v, R;
|
|
81
|
+
const [m, S] = r.split("."), C = this.getStore(m).state[S];
|
|
82
|
+
if (!i.dataset.nylasId) {
|
|
83
|
+
e(`[${this.hostTagName}] (registerComponent) Component "${t.name}" not registered. Skipping.`, { component: t });
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this.propStateRegistrations.has(m) || this.propStateRegistrations.set(m, /* @__PURE__ */ new Map()), (N = this.propStateRegistrations.get(m)) != null && N.has(S) ? (R = (v = this.propStateRegistrations.get(m)) == null ? void 0 : v.get(S)) == null || R.push({
|
|
87
|
+
elementId: i.dataset.nylasId,
|
|
88
|
+
propKey: h
|
|
89
|
+
}) : (f = this.propStateRegistrations.get(m)) == null || f.set(S, [
|
|
90
|
+
{
|
|
91
|
+
elementId: i.dataset.nylasId,
|
|
92
|
+
propKey: h
|
|
93
|
+
}
|
|
94
|
+
]), i[h.toString()] = C, e(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" value.`, { stateValue: C });
|
|
95
|
+
}), $ == null || $.forEach((h, r) => {
|
|
96
|
+
const m = this.host[r];
|
|
97
|
+
i[h.toString()] = m, e(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to the value of "${r}" value.`, { value: r, mappedPropValue: m });
|
|
98
|
+
}), a && (i[a == null ? void 0 : a.toString()] = this.getStore, e(`[${this.hostTagName}] Setting "${t.name}" prop "${a.toString()}" to "getStore" method.`)), c == null || c.forEach((h, r) => {
|
|
99
|
+
const m = this.getStore(r);
|
|
100
|
+
i[h.toString()] = m, e(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" store.`, { store: m });
|
|
101
|
+
}), l && (i[l == null ? void 0 : l.toString()] = this.nylasConnector, e(`[${this.hostTagName}] Setting "${t.name}" prop "${l.toString()}" to "nylasConnector" value.`, { connectorToProp: l })), typeof i.registerCallback == "function" && (e(`[${this.hostTagName}] (registerComponent) Calling registerCallback method for "${t.name}".`), await i.registerCallback()), e(`[${this.hostTagName}] (registerComponent) Component ${t.name} registered.`);
|
|
102
|
+
}
|
|
103
|
+
cleanupComponentRegistration(t, o = !0) {
|
|
104
|
+
const d = this.eventListenerRegistrations.get(t);
|
|
105
|
+
d && (d.forEach(([n, s, g]) => {
|
|
106
|
+
const a = T(s.toString());
|
|
107
|
+
e(`[${this.hostTagName}] (cleanupComponentRegistration) Removing event listener for "${a}" on "${n.tagName}"`), n.removeEventListener(a, g);
|
|
108
|
+
}), this.eventListenerRegistrations.delete(t)), this.propStateRegistrations.forEach((n, s) => {
|
|
109
|
+
n.forEach((g, a) => {
|
|
110
|
+
var c;
|
|
111
|
+
const p = g.filter((l) => l.elementId !== t);
|
|
112
|
+
p.length !== g.length && ((c = this.propStateRegistrations.get(s)) == null || c.set(a, p));
|
|
113
|
+
});
|
|
114
|
+
}), o && delete this.registeredComponents[t];
|
|
115
|
+
}
|
|
116
|
+
unregisterComponent(t) {
|
|
117
|
+
e(`[${this.hostTagName}] Unregistering component ${t.name}.`);
|
|
118
|
+
const o = t.element.dataset.nylasId;
|
|
119
|
+
if (!o) {
|
|
120
|
+
e(`[${this.hostTagName}] (unregisterComponent) Unregistering component ${t.name}.`);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (this.registeredComponents[o]) {
|
|
124
|
+
e(`[${this.hostTagName}] (unregisterComponent) Component ${t.name} not registered. Skipping.`);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
this.propStateRegistrations.forEach((n, s) => {
|
|
128
|
+
n.forEach((g, a) => {
|
|
129
|
+
var l, $;
|
|
130
|
+
const p = (l = this.propStateRegistrations.get(s)) == null ? void 0 : l.get(a), c = p == null ? void 0 : p.filter((i) => i.elementId !== o);
|
|
131
|
+
c && (($ = this.propStateRegistrations.get(s)) == null || $.set(a, c));
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
const d = this.eventListenerRegistrations.get(o);
|
|
135
|
+
d == null || d.forEach(([n, s, g]) => {
|
|
136
|
+
const a = T(s.toString());
|
|
137
|
+
e(`[${this.hostTagName}] (unregisterComponent) Removing event listener for "${a}" on "${n.tagName}"`), n.removeEventListener(a, g);
|
|
138
|
+
}), delete this.registeredComponents[o];
|
|
139
|
+
}
|
|
140
|
+
getStore(t) {
|
|
141
|
+
const o = this.stores[t];
|
|
142
|
+
if (!o)
|
|
143
|
+
throw new Error(`[${this.hostTagName}] Store "${t.toString()}" not found.`);
|
|
144
|
+
return o;
|
|
145
|
+
}
|
|
146
|
+
async setupStoreListeners() {
|
|
147
|
+
const t = this;
|
|
148
|
+
Object.entries(this.stores).forEach(([o, d]) => {
|
|
149
|
+
e(`[${t.hostTagName}] (setupStoreListeners) Listening for changes in "${o}" store.`), d.use({
|
|
150
|
+
set(n, s, g) {
|
|
151
|
+
var c;
|
|
152
|
+
if (e(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" changed`, { newValue: s, oldValue: g }), s === g) {
|
|
153
|
+
e(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" unchanged. Skipping.`);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const a = t.registeredComponents;
|
|
157
|
+
if (!a) {
|
|
158
|
+
e(`[${t.hostTagName}] (setupStoreListeners) No registered components found. Skipping.`);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const p = ((c = t.propStateRegistrations.get(o)) == null ? void 0 : c.get(n.toString())) || [];
|
|
162
|
+
e(`[${t.hostTagName}] (setupStoreListeners) Found ${p.length} prop(s) registered for "${n.toString()}" store.`, {
|
|
163
|
+
props: p,
|
|
164
|
+
propStateRegistrations: t.propStateRegistrations
|
|
165
|
+
}), p.forEach(({ elementId: l, propKey: $ }) => {
|
|
166
|
+
const i = a[l];
|
|
167
|
+
if (!i) {
|
|
168
|
+
e(`[${t.hostTagName}] (setupStoreListeners) Component "${l}" not found. Skipping.`, { component: i });
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const r = t.getStore(o).state[n];
|
|
172
|
+
i.element[$.toString()] = r, e(`[${t.hostTagName}] (setupStoreListeners) Setting "${i.name}" prop "${$.toString()}" to "${n.toString()}" value.`, { stateValue: r });
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
get hostTagName() {
|
|
179
|
+
var t, o;
|
|
180
|
+
return ((o = (t = this.host) == null ? void 0 : t.tagName) == null ? void 0 : o.toLowerCase()) ?? "nylas-provider";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
class b extends w {
|
|
184
|
+
}
|
|
185
|
+
export {
|
|
186
|
+
b as N
|
|
187
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-f769bc2a.cjs");class R{constructor(t,o,l=!0,n){this.automaticComponentRegistration=!0,this.registeredComponents={},this.propStateRegistrations=new Map,this.eventListenerRegistrations=new Map,this.host=t,this.stores=o,this.automaticComponentRegistration=l,this.eventOverrides=n,e.debug(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:n}),this.registerComponent=this.registerComponent.bind(this),this.getStore=this.getStore.bind(this),Object.keys(this.stores).forEach(s=>{this.propStateRegistrations.set(s,new Map)})}async componentWillLoad(t){e.debug(`[${this.hostTagName}] Will load`),this.setupStoreListeners(),this.nylasConnector=t;const o=Array.from(this.host.querySelectorAll("*")).filter(n=>n.tagName.toLowerCase().startsWith("nylas-"));e.debug(`[${this.hostTagName}] Found ${o.length} child component(s).`,{childComponents:o});const l=o.map(async n=>{const s=n;if(!s){e.debug(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} does not have a name. Skipping.`);return}if(!s.registerNylasComponent){e.debug(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} is not a component that can be registered. Skipping.`,{component:s});return}const g={element:s,name:s.tagName.toLowerCase(),getStoresToProp:s.getStoresToProp,storeToProps:s.storeToProps,stateToProps:s.stateToProps,authToProp:s.authToProp,eventToProps:s.eventToProps,connectorToProp:s.connectorToProp,localPropsToProp:s.localPropsToProp};await this.registerComponent(g)});await Promise.all(l)}async componentDidLoad(){e.debug(`[~${this.hostTagName}] (componentDidLoad) Did load`)}async componentDisconnected(){Object.values(this.stores).forEach(t=>{t.dispose()})}async registerComponentHandler(t){if(t.stopPropagation(),!this.automaticComponentRegistration){e.debug(`~[${this.hostTagName}] (registerComponentHandler) Automatic component registration disabled. Skipping registration of ${t.detail.name}.`);return}await this.registerComponent(t.detail)}async unregisterComponentHandler(t){if(t.stopPropagation(),!this.automaticComponentRegistration){e.debug(`~[${this.hostTagName}] (unregisterComponentHandler) Automatic component registration disabled. Skipping unregistration of ${t.detail.name}.`);return}this.unregisterComponent(t.detail)}async registerComponent(t){e.debug(`~[${this.hostTagName}] (registerComponent) Registering component ${t.name}.`);const o=t.element.dataset.nylasId;o&&this.registeredComponents[o]?(e.debug(`[${this.hostTagName}] (registerComponent) Component ${t.name} already registered. Updating registration.`),this.cleanupComponentRegistration(o,!1)):t.element.dataset.nylasId=o||e.uniqueID();const n=t.element.dataset.nylasId;n&&(this.registeredComponents[n]=t),e.debug(`[${this.hostTagName}] (registerComponent) Waiting for "${t.element.localName}" component to be defined`,{component:t});try{await customElements.whenDefined(t.element.tagName.toLowerCase()),e.debug(`[${this.hostTagName}] (registerComponent) Component "${t.element.localName}" is now defined`)}catch(h){e.debug(`[${this.hostTagName}] (registerComponent) Error waiting for component "${t.element.localName}" to be defined:`,h)}const s=this.eventOverrides,{stateToProps:g,getStoresToProp:a,eventToProps:d,storeToProps:u,connectorToProp:p,localPropsToProp:c,element:i}=t;d==null||d.forEach((h,r)=>{var N;const m=this.nylasConnector,$=async S=>{e.debug(`[${this.hostTagName}] (registerComponent) Handling "${t.name}" prop "${String(r)}" event.`,{event:S}),r in s&&(e.debug(`[${this.hostTagName}] (registerComponent) Found event override for "${String(r)}" event. Calling override.`),await s[r](S,m)),S.defaultPrevented||await h(S,m)},f=t.element.dataset.nylasId;f&&!this.eventListenerRegistrations.has(f)&&this.eventListenerRegistrations.set(f,[]),f&&((N=this.eventListenerRegistrations.get(f))==null||N.push([i,r,$])),e.debug(`[${this.hostTagName}] (registerComponent) Setting "${t.name}" event "${String(r)}" to automcially call NylasConnector method.`);const C=e.formatEventName(r.toString());e.debug(`[${this.hostTagName}] (registerComponent) Adding event listener for "${C}" on "${i.tagName}"`),i.addEventListener(C,$)}),g==null||g.forEach((h,r)=>{var N,S,b,T;const[m,$]=r.split("."),C=this.getStore(m).state[$];if(!i.dataset.nylasId){e.debug(`[${this.hostTagName}] (registerComponent) Component "${t.name}" not registered. Skipping.`,{component:t});return}this.propStateRegistrations.has(m)||this.propStateRegistrations.set(m,new Map),(N=this.propStateRegistrations.get(m))!=null&&N.has($)?(T=(b=this.propStateRegistrations.get(m))==null?void 0:b.get($))==null||T.push({elementId:i.dataset.nylasId,propKey:h}):(S=this.propStateRegistrations.get(m))==null||S.set($,[{elementId:i.dataset.nylasId,propKey:h}]),i[h.toString()]=C,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" value.`,{stateValue:C})}),c==null||c.forEach((h,r)=>{const m=this.host[r];i[h.toString()]=m,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to the value of "${r}" value.`,{value:r,mappedPropValue:m})}),a&&(i[a==null?void 0:a.toString()]=this.getStore,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${a.toString()}" to "getStore" method.`)),u==null||u.forEach((h,r)=>{const m=this.getStore(r);i[h.toString()]=m,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" store.`,{store:m})}),p&&(i[p==null?void 0:p.toString()]=this.nylasConnector,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${p.toString()}" to "nylasConnector" value.`,{connectorToProp:p})),typeof i.registerCallback=="function"&&(e.debug(`[${this.hostTagName}] (registerComponent) Calling registerCallback method for "${t.name}".`),await i.registerCallback()),e.debug(`[${this.hostTagName}] (registerComponent) Component ${t.name} registered.`)}cleanupComponentRegistration(t,o=!0){const l=this.eventListenerRegistrations.get(t);l&&(l.forEach(([n,s,g])=>{const a=e.formatEventName(s.toString());e.debug(`[${this.hostTagName}] (cleanupComponentRegistration) Removing event listener for "${a}" on "${n.tagName}"`),n.removeEventListener(a,g)}),this.eventListenerRegistrations.delete(t)),this.propStateRegistrations.forEach((n,s)=>{n.forEach((g,a)=>{var u;const d=g.filter(p=>p.elementId!==t);d.length!==g.length&&((u=this.propStateRegistrations.get(s))==null||u.set(a,d))})}),o&&delete this.registeredComponents[t]}unregisterComponent(t){e.debug(`[${this.hostTagName}] Unregistering component ${t.name}.`);const o=t.element.dataset.nylasId;if(!o){e.debug(`[${this.hostTagName}] (unregisterComponent) Unregistering component ${t.name}.`);return}if(this.registeredComponents[o]){e.debug(`[${this.hostTagName}] (unregisterComponent) Component ${t.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach((n,s)=>{n.forEach((g,a)=>{var p,c;const d=(p=this.propStateRegistrations.get(s))==null?void 0:p.get(a),u=d==null?void 0:d.filter(i=>i.elementId!==o);u&&((c=this.propStateRegistrations.get(s))==null||c.set(a,u))})});const l=this.eventListenerRegistrations.get(o);l==null||l.forEach(([n,s,g])=>{const a=e.formatEventName(s.toString());e.debug(`[${this.hostTagName}] (unregisterComponent) Removing event listener for "${a}" on "${n.tagName}"`),n.removeEventListener(a,g)}),delete this.registeredComponents[o]}getStore(t){const o=this.stores[t];if(!o)throw new Error(`[${this.hostTagName}] Store "${t.toString()}" not found.`);return o}async setupStoreListeners(){const t=this;Object.entries(this.stores).forEach(([o,l])=>{e.debug(`[${t.hostTagName}] (setupStoreListeners) Listening for changes in "${o}" store.`),l.use({set(n,s,g){var u;if(e.debug(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" changed`,{newValue:s,oldValue:g}),s===g){e.debug(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" unchanged. Skipping.`);return}const a=t.registeredComponents;if(!a){e.debug(`[${t.hostTagName}] (setupStoreListeners) No registered components found. Skipping.`);return}const d=((u=t.propStateRegistrations.get(o))==null?void 0:u.get(n.toString()))||[];e.debug(`[${t.hostTagName}] (setupStoreListeners) Found ${d.length} prop(s) registered for "${n.toString()}" store.`,{props:d,propStateRegistrations:t.propStateRegistrations}),d.forEach(({elementId:p,propKey:c})=>{const i=a[p];if(!i){e.debug(`[${t.hostTagName}] (setupStoreListeners) Component "${p}" not found. Skipping.`,{component:i});return}const r=t.getStore(o).state[n];i.element[c.toString()]=r,e.debug(`[${t.hostTagName}] (setupStoreListeners) Setting "${i.name}" prop "${c.toString()}" to "${n.toString()}" value.`,{stateValue:r})})}})})}get hostTagName(){var t,o;return((o=(t=this.host)==null?void 0:t.tagName)==null?void 0:o.toLowerCase())??"nylas-provider"}}class L extends R{}exports.NylasBaseProvider=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f769bc2a.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-add-circle-icon-h{display:flex}",d=s,t=class{constructor(c){e.registerInstance(this,c),this.width="24",this.height="25"}render(){return e.h("svg",{key:"f3f2fb57d9face731fdc2dcb2610bdfe4d8695d4",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"461ceb94da94f79aece2e208da886ec860b65e14",d:"M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z",fill:"currentColor"}))}};t.style=d;const i=".sc-close-icon-h{display:flex}",h=i,a=class{constructor(c){e.registerInstance(this,c),this.width="16",this.height="16"}render(){return e.h("svg",{key:"6ba2e8326762d40fed5697c52411e130381cae5e",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"b99abf46a9ac3e143d261c4a72a8d034072c52e5","clip-path":"url(#a)"},e.h("path",{key:"54b09b0c0d251cc982ab03a66c9c496fb63ea280",d:"M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z",fill:"currentColor"})),e.h("defs",{key:"f70a23bb36f8b0f4abbdd8ace2ac2ccf2e570b30"},e.h("clipPath",{key:"37837d0973c51120ef7a8841d885d5edce2b112d",id:"a"},e.h("path",{key:"094391e019662666ac5a51cda34878dbfdeaba8e",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};a.style=h;exports.add_circle_icon=t;exports.close_icon=a;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as t, h as e } from "./index-71f61ea9.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const a = ".sc-add-circle-icon-h{display:flex}", s = a, d = class {
|
|
6
|
+
constructor(c) {
|
|
7
|
+
t(this, c), this.width = "24", this.height = "25";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return e("svg", { key: "f3f2fb57d9face731fdc2dcb2610bdfe4d8695d4", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "461ceb94da94f79aece2e208da886ec860b65e14", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
d.style = s;
|
|
14
|
+
const i = ".sc-close-icon-h{display:flex}", l = i, o = class {
|
|
15
|
+
constructor(c) {
|
|
16
|
+
t(this, c), this.width = "16", this.height = "16";
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return e("svg", { key: "6ba2e8326762d40fed5697c52411e130381cae5e", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "b99abf46a9ac3e143d261c4a72a8d034072c52e5", "clip-path": "url(#a)" }, e("path", { key: "54b09b0c0d251cc982ab03a66c9c496fb63ea280", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), e("defs", { key: "f70a23bb36f8b0f4abbdd8ace2ac2ccf2e570b30" }, e("clipPath", { key: "37837d0973c51120ef7a8841d885d5edce2b112d", id: "a" }, e("path", { key: "094391e019662666ac5a51cda34878dbfdeaba8e", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
o.style = l;
|
|
23
|
+
export {
|
|
24
|
+
d as add_circle_icon,
|
|
25
|
+
o as close_icon
|
|
26
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as o, h as t } from "./index-71f61ea9.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const s = ".sc-archive-icon-h{display:flex}", i = s, a = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
o(this, e), this.width = "15", this.height = "15";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return t("svg", { key: "846883e64fce20852b939ad69b17c50e4a1de305", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "faccfb69f1e2fad408be2c93f9debba7e5bed44f", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "0a67df705c7bb41f38b3a9f46ba00cf39236d833", d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "7845f5af5bb6a7db830df4576ea7e7979de4ca6c", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "b8cb556c7133dd3427ad41574121599411f9d741", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
a.style = i;
|
|
14
|
+
export {
|
|
15
|
+
a as archive_icon
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f769bc2a.cjs");require("react");require("react/jsx-runtime");require("react-dom");const h=".sc-archive-icon-h{display:flex}",r=h,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"846883e64fce20852b939ad69b17c50e4a1de305",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"faccfb69f1e2fad408be2c93f9debba7e5bed44f",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0a67df705c7bb41f38b3a9f46ba00cf39236d833",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"7845f5af5bb6a7db830df4576ea7e7979de4ca6c",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"b8cb556c7133dd3427ad41574121599411f9d741",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};t.style=r;exports.archive_icon=t;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as o, h as t } from "./index-
|
|
1
|
+
import { r as o, h as t } from "./index-71f61ea9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const e = ".sc-arrow-icon-h{display:flex}",
|
|
5
|
+
const e = ".sc-arrow-icon-h{display:flex}", s = e, i = class {
|
|
6
6
|
constructor(r) {
|
|
7
7
|
o(this, r), this.width = "15", this.height = "15";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "9a7f6c18c66e1046fff0bb0d814080e8961762f9", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "5a2ebac5fcecfa06026aa74c24cfdd787e933d6d", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
i.style = s;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
i as arrow_icon
|
|
16
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f769bc2a.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-arrow-icon-h{display:flex}",i=o,r=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"9a7f6c18c66e1046fff0bb0d814080e8961762f9",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5a2ebac5fcecfa06026aa74c24cfdd787e933d6d",d:"M5 12H19M12 5L19 12L12 19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};r.style=i;exports.arrow_icon=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f769bc2a.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-bold-icon-h{display:flex}",r=i,t=class{constructor(o){e.registerInstance(this,o),this.width="15",this.height="15"}render(){return e.h("svg",{key:"a511c82949b76f6663e528b0e05009e9e0275a0a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"51849bb1f9701140b87c0869291fe4b486b17ff6",d:"M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.bold_icon=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t } from "./index-
|
|
1
|
+
import { r as e, h as t } from "./index-71f61ea9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,7 +7,7 @@ const s = ".sc-bold-icon-h{display:flex}", i = s, r = class {
|
|
|
7
7
|
e(this, o), this.width = "15", this.height = "15";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "a511c82949b76f6663e528b0e05009e9e0275a0a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "51849bb1f9701140b87c0869291fe4b486b17ff6", d: "M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
r.style = i;
|
package/dist/{button-component_2.entry-73f76545.cjs → button-component_2.entry-8335ee1e.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-f769bc2a.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r="button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}",a=r,o=class{constructor(n){t.registerInstance(this,n),this.variant="primary",this.disabled=!1,this.type="button",this.tooltip="",this.isLoading=!1,this.clickHandler=void 0,this.mouseOverHandler=void 0,this.mouseOutHandler=void 0,this.focusHandler=void 0,this.blurHandler=void 0}render(){const n=`button-${this.variant}`+(this.disabled?" disabled":"");return t.h("button",{key:"9fdcadbf82b1be992b6835bd4c4ac6cf69847512",class:n,disabled:this.disabled,type:"type",title:this.tooltip,onClick:this.clickHandler,onMouseOver:this.mouseOverHandler,onMouseOut:this.mouseOutHandler,onFocus:this.focusHandler,onBlur:this.blurHandler},!!this.isLoading&&t.h("loading-icon",{slot:"icon"}),t.h("slot",{key:"0168b50eac062d43d8a184d70fd5c80932f3e2ea"}))}};o.style=a;const s=".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}",d=s,e=class{constructor(n){t.registerInstance(this,n),this.width="15",this.height="15"}render(){return t.h("div",{key:"cb855fdd798e64637d245045e56a97f016f8b74f",class:"wave"},t.h("div",{key:"41591d61b8eda97e3abdd2ca83f82aada7d67edc",class:"dot"}),t.h("div",{key:"096aa4e8c6f1d9cb5a5d1d24cda06298fd0366b1",class:"dot"}),t.h("div",{key:"d2dd6942fe7b1a8ca68102e9dea7dae88e341824",class:"dot"}))}};e.style=d;exports.button_component=o;exports.loading_icon=e;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { r as o, h as t } from "./index-
|
|
1
|
+
import { r as o, h as t } from "./index-71f61ea9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const a = "button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}",
|
|
5
|
+
const a = "button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}", r = a, e = class {
|
|
6
6
|
constructor(n) {
|
|
7
7
|
o(this, n), this.variant = "primary", this.disabled = !1, this.type = "button", this.tooltip = "", this.isLoading = !1, this.clickHandler = void 0, this.mouseOverHandler = void 0, this.mouseOutHandler = void 0, this.focusHandler = void 0, this.blurHandler = void 0;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
const n = `button-${this.variant}` + (this.disabled ? " disabled" : "");
|
|
11
|
-
return t("button", { key: "
|
|
11
|
+
return t("button", { key: "9fdcadbf82b1be992b6835bd4c4ac6cf69847512", class: n, disabled: this.disabled, type: "type", title: this.tooltip, onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, !!this.isLoading && t("loading-icon", { slot: "icon" }), t("slot", { key: "0168b50eac062d43d8a184d70fd5c80932f3e2ea" }));
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
const s = ".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}",
|
|
14
|
+
e.style = r;
|
|
15
|
+
const s = ".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}", d = s, i = class {
|
|
16
16
|
constructor(n) {
|
|
17
17
|
o(this, n), this.width = "15", this.height = "15";
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return t("div", { key: "
|
|
20
|
+
return t("div", { key: "cb855fdd798e64637d245045e56a97f016f8b74f", class: "wave" }, t("div", { key: "41591d61b8eda97e3abdd2ca83f82aada7d67edc", class: "dot" }), t("div", { key: "096aa4e8c6f1d9cb5a5d1d24cda06298fd0366b1", class: "dot" }), t("div", { key: "d2dd6942fe7b1a8ca68102e9dea7dae88e341824", class: "dot" }));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
i.style = d;
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
e as button_component,
|
|
26
|
+
i as loading_icon
|
|
27
27
|
};
|