@nylas/react 2.0.1 → 2.0.3
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-b4663c02.cjs → abstract-provider-bdb7d9b4-12a95387.cjs} +1 -1
- package/dist/{abstract-provider-efe136bd-2041bdce.js → abstract-provider-bdb7d9b4-22cf4a74.js} +1 -1
- package/dist/{add-circle-icon_2.entry-ea1692a4.js → add-circle-icon_2.entry-0ff79148.js} +1 -1
- package/dist/{add-circle-icon_2.entry-5204c48a.cjs → add-circle-icon_2.entry-d56f519c.cjs} +1 -1
- package/dist/{archive-icon.entry-c2c66bca.cjs → archive-icon.entry-6ab120ff.cjs} +1 -1
- package/dist/{archive-icon.entry-0b585dff.js → archive-icon.entry-aaff46ec.js} +1 -1
- package/dist/{arrow-icon.entry-9d471162.cjs → arrow-icon.entry-d57cf44f.cjs} +1 -1
- package/dist/{arrow-icon.entry-2e61394e.js → arrow-icon.entry-d8fcbc1f.js} +1 -1
- package/dist/{bold-icon.entry-5c37622f.cjs → bold-icon.entry-0f23543d.cjs} +1 -1
- package/dist/{bold-icon.entry-8ef1b653.js → bold-icon.entry-e48075a4.js} +1 -1
- package/dist/{button-component_2.entry-8335ee1e.cjs → button-component_2.entry-3d622397.cjs} +1 -1
- package/dist/{button-component_2.entry-c906230f.js → button-component_2.entry-5db80bec.js} +1 -1
- package/dist/calendar-agenda-fill-icon_36.entry-75d7cd5b.cjs +6 -0
- package/dist/{calendar-agenda-fill-icon_36.entry-5f184433.js → calendar-agenda-fill-icon_36.entry-78fc2e0d.js} +835 -835
- package/dist/{calendar-cancel-icon.entry-dd6ac4db.js → calendar-cancel-icon.entry-8b43441c.js} +1 -1
- package/dist/{calendar-cancel-icon.entry-65a4a34e.cjs → calendar-cancel-icon.entry-9546c7c3.cjs} +1 -1
- package/dist/calendar-check-icon.entry-4e6abda7.js +16 -0
- package/dist/{calendar-check-icon_2.entry-ded15038.cjs → calendar-check-icon.entry-a03b249a.cjs} +1 -1
- package/dist/{calendar-icon.entry-a2a1ddbc.js → calendar-icon.entry-5b622c12.js} +1 -1
- package/dist/{calendar-icon.entry-ca512dd6.cjs → calendar-icon.entry-cd4b0ec4.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-d6128246.js → checkbox-component_2.entry-82f4b1f2.js} +1 -1
- package/dist/{checkbox-component_2.entry-d79b5d1d.cjs → checkbox-component_2.entry-c9c8a87d.cjs} +1 -1
- package/dist/{checkbox-group_4.entry-2946c7ef.cjs → checkbox-group_4.entry-5a4f0ed2.cjs} +1 -1
- package/dist/{checkbox-group_4.entry-e5145451.js → checkbox-group_4.entry-b2a5b2b2.js} +3 -3
- package/dist/checkmark-circle-icon.entry-30582af4.js +16 -0
- package/dist/checkmark-circle-icon.entry-9617301c.cjs +1 -0
- package/dist/{checkmark-icon_15.entry-6e92e93e.js → checkmark-icon_15.entry-01536ed2.js} +33 -33
- package/dist/{checkmark-icon_15.entry-a75a1825.cjs → checkmark-icon_15.entry-c5eaad9b.cjs} +2 -2
- package/dist/{chevron-icon_3.entry-9193a885.cjs → chevron-icon_3.entry-26f14744.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-6eaa3513.js → chevron-icon_3.entry-517447a6.js} +1 -1
- package/dist/{clock-icon_4.entry-ae2272f4.cjs → clock-icon_4.entry-5351318c.cjs} +1 -1
- package/dist/{clock-icon_4.entry-2c93270e.js → clock-icon_4.entry-7ea1274d.js} +1 -1
- package/dist/{customParseFormat-edc38d83-fa9c77d9.cjs → customParseFormat-f0d21eb3-769d6bf2.cjs} +1 -1
- package/dist/{customParseFormat-edc38d83-b3722499.js → customParseFormat-f0d21eb3-904f1e57.js} +1 -1
- package/dist/{delete-icon.entry-6684eba6.js → delete-icon.entry-02e44ba1.js} +1 -1
- package/dist/{delete-icon.entry-b9e4f2c7.cjs → delete-icon.entry-64b61f5c.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-7afe6163.cjs → document-refresh-icon.entry-2f599a22.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-fba9f60b.js → document-refresh-icon.entry-fcaa84ad.js} +1 -1
- package/dist/{feedbackSync-e4378c0b-23289195.js → feedbackSync-b9c9e719-b54b3268.js} +1 -1
- package/dist/{feedbackSync-e4378c0b-7876d067.cjs → feedbackSync-b9c9e719-bee3fea1.cjs} +1 -1
- package/dist/{folder-icon.entry-b1632bf3.cjs → folder-icon.entry-55c123dc.cjs} +1 -1
- package/dist/{folder-icon.entry-430c6b47.js → folder-icon.entry-f4862c1b.js} +1 -1
- package/dist/{forward-icon.entry-5e53da76.js → forward-icon.entry-4a41e94f.js} +1 -1
- package/dist/{forward-icon.entry-7626dcca.cjs → forward-icon.entry-82719382.cjs} +1 -1
- package/dist/{globe-icon_2.entry-bbb0a6ce.cjs → globe-icon_2.entry-3f0e408e.cjs} +1 -1
- package/dist/{globe-icon_2.entry-646eae41.js → globe-icon_2.entry-8f5c79b2.js} +2 -2
- package/dist/{google-logo-icon_6.entry-e39dd9cb.cjs → google-logo-icon_6.entry-9c91c3d4.cjs} +1 -1
- package/dist/{google-logo-icon_6.entry-5951a546.js → google-logo-icon_6.entry-b331ab60.js} +8 -8
- package/dist/{google-meet-icon_5.entry-c13e0738.cjs → google-meet-icon_5.entry-e3d44d56.cjs} +1 -1
- package/dist/{google-meet-icon_5.entry-a54c83da.js → google-meet-icon_5.entry-eb9f7d93.js} +1 -1
- package/dist/{inbox-icon.entry-7bee82b3.js → inbox-icon.entry-a385095d.js} +1 -1
- package/dist/{inbox-icon.entry-911b047a.cjs → inbox-icon.entry-fa9085cd.cjs} +1 -1
- package/dist/{index-71f61ea9.js → index-ad781fbc.js} +5585 -5490
- package/dist/index-dc6efb5e.cjs +118 -0
- package/dist/{index.es-6a9d55cf-458ba0e0.cjs → index.es-ccb2a286-9a2c0934.cjs} +1 -1
- package/dist/{index.es-6a9d55cf-122c27e0.js → index.es-ccb2a286-dfa2bfbe.js} +1 -1
- package/dist/{info-icon_2.entry-471b836b.cjs → info-icon_2.entry-9f32753b.cjs} +1 -1
- package/dist/{info-icon_2.entry-6ff2f004.js → info-icon_2.entry-c18a111e.js} +1 -1
- package/dist/{input-component.entry-781b584c.js → input-component.entry-eae64f46.js} +1 -1
- package/dist/{input-component.entry-b6a9b4cb.cjs → input-component.entry-ff9e04c9.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-1feebcba.js → input-dropdown_2.entry-1b55ef0c.js} +1 -1
- package/dist/{input-dropdown_2.entry-c71d14ff.cjs → input-dropdown_2.entry-67d6d292.cjs} +1 -1
- package/dist/{italic-icon.entry-9ef7f4a2.js → italic-icon.entry-4266a817.js} +1 -1
- package/dist/{italic-icon.entry-16debde5.cjs → italic-icon.entry-843feb2b.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-1b27c746.js → multi-select-dropdown.entry-854265ef.js} +1 -1
- package/dist/{multi-select-dropdown.entry-0a6f9417.cjs → multi-select-dropdown.entry-ca9acf75.cjs} +1 -1
- package/dist/nylas-booked-event-card_11.entry-8d3e2019.cjs +1 -0
- package/dist/{nylas-booked-event-card_11.entry-802671ee.js → nylas-booked-event-card_11.entry-ccf30d91.js} +138 -107
- package/dist/{nylas-form-card.entry-7da9a312.js → nylas-form-card.entry-481ede48.js} +2 -2
- package/dist/{nylas-form-card.entry-59a837c9.cjs → nylas-form-card.entry-58162c72.cjs} +1 -1
- package/dist/{nylas-notification_2.entry-b16bb805.js → nylas-notification_2.entry-7d3ed3b0.js} +1 -1
- package/dist/{nylas-notification_2.entry-8f8bad34.cjs → nylas-notification_2.entry-dffa3ff6.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-e33e11fb.cjs → nylas-scheduler-editor.entry-9744694a.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-cbe3e1e3.js → nylas-scheduler-editor.entry-aa079dff.js} +5 -5
- package/dist/nylas-scheduling.entry-7441979c.js +988 -0
- package/dist/nylas-scheduling.entry-b1fcb48f.cjs +1 -0
- package/dist/{person-icon.entry-6232e6fd.js → person-icon.entry-23a69633.js} +1 -1
- package/dist/{person-icon.entry-beb26b48.cjs → person-icon.entry-acf4d22b.cjs} +1 -1
- package/dist/{play-icon.entry-16a1c1ac.js → play-icon.entry-4e7884d4.js} +1 -1
- package/dist/{play-icon.entry-9060d0d8.cjs → play-icon.entry-aa088180.cjs} +1 -1
- package/dist/{radio-button-group.entry-5a3728cd.js → radio-button-group.entry-243d7988.js} +1 -1
- package/dist/{radio-button-group.entry-6935c39d.cjs → radio-button-group.entry-cea225c8.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-2411b2e1.cjs → refresh-icon.entry-96cb008f.cjs} +1 -1
- package/dist/{refresh-icon.entry-4f56e72b.js → refresh-icon.entry-d1603555.js} +1 -1
- package/dist/{register-component-a1c3d7b4-774feacc.js → register-component-9d4ceee5-46f58baf.js} +1 -1
- package/dist/{register-component-a1c3d7b4-97d7a6f5.cjs → register-component-9d4ceee5-6fabc42c.cjs} +1 -1
- package/dist/{reply-all-icon.entry-b4b6926b.cjs → reply-all-icon.entry-537f7718.cjs} +1 -1
- package/dist/{reply-all-icon.entry-b4b917ec.js → reply-all-icon.entry-6fae7288.js} +1 -1
- package/dist/{reply-icon.entry-454545ed.cjs → reply-icon.entry-72fa6e4c.cjs} +1 -1
- package/dist/{reply-icon.entry-24f6f4c6.js → reply-icon.entry-ae114e35.js} +1 -1
- package/dist/{sent-icon.entry-d9a79336.cjs → sent-icon.entry-30a6ac17.cjs} +1 -1
- package/dist/{sent-icon.entry-fa59ce85.js → sent-icon.entry-b10d5e26.js} +1 -1
- package/dist/{spam-icon.entry-da39987e.cjs → spam-icon.entry-357aa525.cjs} +1 -1
- package/dist/{spam-icon.entry-fb18a08b.js → spam-icon.entry-bed45849.js} +1 -1
- package/dist/{star-icon.entry-406472c1.js → star-icon.entry-010349a5.js} +1 -1
- package/dist/{star-icon.entry-833f35a7.cjs → star-icon.entry-53c85ebb.cjs} +1 -1
- package/dist/{stop-icon.entry-1b6ae838.js → stop-icon.entry-18f650bf.js} +1 -1
- package/dist/{stop-icon.entry-3258db59.cjs → stop-icon.entry-20af3bf5.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{textarea-component.entry-0ae18897.cjs → textarea-component.entry-b19642f1.cjs} +1 -1
- package/dist/{textarea-component.entry-569a281e.js → textarea-component.entry-e6120440.js} +1 -1
- package/dist/{toggle-switch.entry-dc3f796b.js → toggle-switch.entry-32b0e964.js} +1 -1
- package/dist/{toggle-switch.entry-60d75f16.cjs → toggle-switch.entry-becdda2c.cjs} +1 -1
- package/dist/{translate-icon.entry-297cf20f.js → translate-icon.entry-2308a8e4.js} +1 -1
- package/dist/{translate-icon.entry-c183ecb5.cjs → translate-icon.entry-7cb7a479.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-3d8a2e5e.js → trash-fill-icon.entry-7f410c82.js} +1 -1
- package/dist/{trash-fill-icon.entry-94d4f66c.cjs → trash-fill-icon.entry-c70b9326.cjs} +1 -1
- package/dist/{underline-icon.entry-50d1e766.cjs → underline-icon.entry-23f478f3.cjs} +1 -1
- package/dist/{underline-icon.entry-4a9105c7.js → underline-icon.entry-58ef1a9f.js} +1 -1
- package/package.json +2 -2
- package/dist/calendar-agenda-fill-icon_36.entry-59c0a997.cjs +0 -6
- package/dist/calendar-check-icon_2.entry-f9b50bb8.js +0 -26
- package/dist/index-f769bc2a.cjs +0 -118
- package/dist/nylas-booked-event-card_11.entry-74fba802.cjs +0 -1
- package/dist/nylas-scheduling.entry-4223e50b.cjs +0 -1
- package/dist/nylas-scheduling.entry-6fb094a8.js +0 -968
package/dist/{abstract-provider-efe136bd-b4663c02.cjs → abstract-provider-bdb7d9b4-12a95387.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-dc6efb5e.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;
|
package/dist/{abstract-provider-efe136bd-2041bdce.js → abstract-provider-bdb7d9b4-22cf4a74.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as e, n as E, o as T } from "./index-
|
|
1
|
+
import { b as e, n as E, o as T } from "./index-ad781fbc.js";
|
|
2
2
|
class w {
|
|
3
3
|
constructor(t, o, d = !0, n) {
|
|
4
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) => {
|
|
@@ -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-dc6efb5e.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;
|
|
@@ -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-dc6efb5e.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 +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-dc6efb5e.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-dc6efb5e.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;
|
package/dist/{button-component_2.entry-8335ee1e.cjs → button-component_2.entry-3d622397.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-dc6efb5e.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;
|