@nylas/react 1.1.2 → 1.1.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/{add-circle-icon_2.entry-f1383568.cjs → add-circle-icon_2.entry-b77120e5.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-611be49d.js → add-circle-icon_2.entry-fbc1e82b.js} +1 -1
- package/dist/{archive-icon_7.entry-5e6ba9e7.js → archive-icon_7.entry-30962e70.js} +13 -13
- package/dist/{archive-icon_7.entry-59cc6868.cjs → archive-icon_7.entry-dd8c7642.cjs} +1 -1
- package/dist/{arrow-icon.entry-a924df13.cjs → arrow-icon.entry-2dfd8319.cjs} +1 -1
- package/dist/{arrow-icon.entry-9c19a803.js → arrow-icon.entry-5b436054.js} +1 -1
- package/dist/{bold-icon_3.entry-2935a3df.js → bold-icon_3.entry-5120a9c8.js} +3 -3
- package/dist/{bold-icon_3.entry-ffe02f93.cjs → bold-icon_3.entry-da2d1270.cjs} +1 -1
- package/dist/{button-component_2.entry-b9d3f6a2.cjs → button-component_2.entry-27a504d9.cjs} +1 -1
- package/dist/{button-component_2.entry-93aa59a2.js → button-component_2.entry-697bf5ac.js} +7 -7
- package/dist/{calendar-agenda-fill-icon_48.entry-476bc4ef.js → calendar-agenda-fill-icon_51.entry-52b5bf31.js} +990 -910
- package/dist/calendar-agenda-fill-icon_51.entry-a25262b3.cjs +7 -0
- package/dist/{calendar-cancel-icon.entry-11bb8656.cjs → calendar-cancel-icon.entry-c6e2eed6.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-ee0acc54.js → calendar-cancel-icon.entry-e6a433a2.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-14548656.cjs → calendar-check-icon_2.entry-45cad6f1.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-54a82e1e.js → calendar-check-icon_2.entry-d88307d6.js} +1 -1
- package/dist/{calendar-icon.entry-29f7003b.js → calendar-icon.entry-2badc962.js} +1 -1
- package/dist/{calendar-icon.entry-1a17f887.cjs → calendar-icon.entry-b2fffd21.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-84a17232.cjs → checkbox-component_2.entry-3926b644.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-dfec10cb.js → checkbox-component_2.entry-5ab55050.js} +3 -3
- package/dist/{chevron-icon_3.entry-5da08d02.cjs → chevron-icon_3.entry-1fe5d097.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-826e81d4.js → chevron-icon_3.entry-664fae5d.js} +5 -5
- package/dist/{clock-icon_4.entry-dafdd895.cjs → clock-icon_4.entry-efec2c08.cjs} +1 -1
- package/dist/{clock-icon_4.entry-36d97f00.js → clock-icon_4.entry-f11f9dad.js} +13 -13
- package/dist/{constants-50c3e067-fed7fb48.js → constants-50c3e067-33cf0ffe.js} +1 -1
- package/dist/{constants-50c3e067-1fe54cf3.cjs → constants-50c3e067-5ec3f879.cjs} +1 -1
- package/dist/{copy-icon.entry-eec265da.cjs → copy-icon.entry-3965f206.cjs} +1 -1
- package/dist/{copy-icon.entry-6d1a649d.js → copy-icon.entry-70131e8e.js} +1 -1
- package/dist/{delete-icon_2.entry-160ba41e.cjs → delete-icon.entry-5d067fef.cjs} +1 -1
- package/dist/{delete-icon_2.entry-528a3879.js → delete-icon.entry-e003695d.js} +4 -14
- package/dist/{document-refresh-icon.entry-276704dc.cjs → document-refresh-icon.entry-30c974df.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-6565f3b5.js → document-refresh-icon.entry-b4e01cd4.js} +1 -1
- package/dist/elements/index.d.ts +2 -0
- package/dist/{elements-dc5b338e-2d3857dc.js → elements-dc5b338e-55823d00.js} +1 -1
- package/dist/{elements-dc5b338e-b06b2857.cjs → elements-dc5b338e-6883a39e.cjs} +1 -1
- package/dist/feedbackSync-81d4c4d8-dd4d2e32.js +11735 -0
- package/dist/feedbackSync-81d4c4d8-f4e78902.cjs +455 -0
- package/dist/{focus-visible-e8093c16-47e61336.cjs → focus-visible-e8093c16-431bbe59.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-6f68eb89.js → focus-visible-e8093c16-f403fee8.js} +1 -1
- package/dist/{forward-icon_6.entry-ed6ab66a.js → forward-icon_6.entry-3bb91d58.js} +7 -7
- package/dist/{forward-icon_6.entry-fed8994d.cjs → forward-icon_6.entry-ceec2371.cjs} +3 -3
- package/dist/{globe-icon.entry-154ccdb5.js → globe-icon.entry-6fc456c7.js} +5 -5
- package/dist/{globe-icon.entry-95fc0408.cjs → globe-icon.entry-8c3c9e48.cjs} +1 -1
- package/dist/google-logo-icon_4.entry-4eb16cd2.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-68cfa3fe.js → google-logo-icon_4.entry-d6e0c4c0.js} +331 -289
- package/dist/index-11f33e47.cjs +82 -0
- package/dist/{index-1322d804.js → index-a282e817.js} +2890 -2792
- package/dist/{index.es-79f5b771-08cc349d.cjs → index.es-ab9affcc-18263b66.cjs} +1 -1
- package/dist/{index.es-79f5b771-04cd3414.js → index.es-ab9affcc-30461b18.js} +1 -1
- package/dist/{info-icon_2.entry-49261a0a.js → info-icon_2.entry-d20b975c.js} +5 -5
- package/dist/{info-icon_2.entry-2af880b8.cjs → info-icon_2.entry-e582ac10.cjs} +1 -1
- package/dist/{input-color-picker.entry-aefe0e26.js → input-color-picker.entry-27f4288f.js} +3 -3
- package/dist/{input-color-picker.entry-57adff77.cjs → input-color-picker.entry-c6a28671.cjs} +1 -1
- package/dist/{input-component.entry-09c3c9b6.cjs → input-component.entry-744fcec1.cjs} +1 -1
- package/dist/{input-component.entry-d7c2724b.js → input-component.entry-b6f1c417.js} +2 -2
- package/dist/{input-dropdown.entry-e573ade0.js → input-dropdown.entry-18744def.js} +2 -2
- package/dist/{input-dropdown.entry-e7d26273.cjs → input-dropdown.entry-f13234d7.cjs} +1 -1
- package/dist/{mailbox-store-9c52a3fa-6b39645f.cjs → mailbox-store-affca6de-9451094e.cjs} +1 -1
- package/dist/{mailbox-store-9c52a3fa-27f8f7e6.js → mailbox-store-affca6de-d601dc6b.js} +2 -2
- package/dist/{multi-select-dropdown.entry-15cacb87.js → multi-select-dropdown.entry-924809e1.js} +5 -5
- package/dist/{multi-select-dropdown.entry-46b2b1c9.cjs → multi-select-dropdown.entry-dde671d7.cjs} +1 -1
- package/dist/{nylas-booked-event-card_12.entry-3921071a.js → nylas-booked-event-card_12.entry-52c3111d.js} +62 -60
- package/dist/nylas-booked-event-card_12.entry-d89c1f9d.cjs +1 -0
- package/dist/{nylas-form-card.entry-db3f0e3b.cjs → nylas-form-card.entry-ab61fdc5.cjs} +1 -1
- package/dist/{nylas-form-card.entry-ca835017.js → nylas-form-card.entry-b0a2403f.js} +8 -8
- package/dist/{nylas-if-state.entry-4159d41d.js → nylas-if-state.entry-523fdc6b.js} +2 -2
- package/dist/{nylas-if-state.entry-5410607c.cjs → nylas-if-state.entry-53883c36.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-0f143930.cjs → nylas-list-folders.entry-4ef6cb3d.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-6b4a3d96.js → nylas-list-folders.entry-e37d069f.js} +8 -8
- package/dist/{nylas-list-threads.entry-68b6f32b.cjs → nylas-list-threads.entry-3be623e9.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-62108562.js → nylas-list-threads.entry-8ba62db8.js} +3 -3
- package/dist/{nylas-login.entry-f1d7bc7d.cjs → nylas-login.entry-05e1df3e.cjs} +1 -1
- package/dist/{nylas-login.entry-590e7fba.js → nylas-login.entry-d9bf3974.js} +5 -5
- package/dist/{nylas-mailbox-pagination.entry-8377fdee.cjs → nylas-mailbox-pagination.entry-3dd05cf4.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-ba1af8fb.js → nylas-mailbox-pagination.entry-50d9d9e3.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-4497acd0.js → nylas-mailbox-toolbar-button.entry-9a77d137.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-6a5d8387.cjs → nylas-mailbox-toolbar-button.entry-d87b55de.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-917c22f5.js → nylas-mailbox.entry-cb7d1031.js} +3 -3
- package/dist/{nylas-mailbox.entry-a07652b4.cjs → nylas-mailbox.entry-f7db9aa8.cjs} +1 -1
- package/dist/{nylas-provider.entry-0e520ac3.cjs → nylas-provider.entry-1716bf48.cjs} +1 -1
- package/dist/{nylas-provider.entry-20c47b14.js → nylas-provider.entry-7aa46ea2.js} +37 -37
- package/dist/{nylas-reminder-emails.entry-69626e7f.cjs → nylas-reminder-emails.entry-88a862cd.cjs} +2 -2
- package/dist/{nylas-reminder-emails.entry-088ee120.js → nylas-reminder-emails.entry-a86231b7.js} +5 -5
- package/dist/{nylas-reminder-time_2.entry-0357f280.js → nylas-reminder-time_2.entry-9589d5f2.js} +4 -4
- package/dist/{nylas-reminder-time_2.entry-b5c181db.cjs → nylas-reminder-time_2.entry-bc76d4ab.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-d2c3bddc.cjs → nylas-scheduler-editor.entry-1a2f3ee0.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-6bb290ed.js → nylas-scheduler-editor.entry-b434b526.js} +7 -7
- package/dist/nylas-scheduling.entry-59e5e8c1.cjs +1 -0
- package/dist/nylas-scheduling.entry-b71080c8.js +400 -0
- package/dist/{nylas-threads-refresh.entry-45d7d171.js → nylas-threads-refresh.entry-544ca90a.js} +2 -2
- package/dist/{nylas-threads-refresh.entry-6636e7b1.cjs → nylas-threads-refresh.entry-7ada7b2d.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-4460aa9b.js → nylas-threads-search.entry-181ba46a.js} +17 -17
- package/dist/{nylas-threads-search.entry-ae87695a.cjs → nylas-threads-search.entry-f1cb19e4.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-1b449403.cjs → nylas-time-window-picker.entry-a6d1c648.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-260f52a6.js → nylas-time-window-picker.entry-c1ee860a.js} +2 -2
- package/dist/{nylas-view-thread.entry-5a9b353a.cjs → nylas-view-thread.entry-6ae8dd64.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-5821630b.js → nylas-view-thread.entry-c066f522.js} +6 -6
- package/dist/{person-icon.entry-b4ce06b7.cjs → person-icon.entry-80c9022e.cjs} +1 -1
- package/dist/{person-icon.entry-ed6786db.js → person-icon.entry-8833e3cc.js} +4 -4
- package/dist/{play-icon_2.entry-87fe39a9.cjs → play-icon_2.entry-801c85bc.cjs} +1 -1
- package/dist/{play-icon_2.entry-261ea828.js → play-icon_2.entry-efca8f00.js} +3 -3
- package/dist/react.cjs +1 -1
- package/dist/react.js +118 -116
- package/dist/{refresh-icon.entry-87af05b0.js → refresh-icon.entry-4d6791bd.js} +4 -4
- package/dist/{refresh-icon.entry-21ac359d.cjs → refresh-icon.entry-d4cc16b7.cjs} +1 -1
- package/dist/{register-component-ea95564d-a64ee107.cjs → register-component-a7ea27ad-2343f3df.cjs} +1 -1
- package/dist/{register-component-ea95564d-843da1da.js → register-component-a7ea27ad-fa2c4b17.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-88840eb1.cjs → scheduler-config-store-2a3b403d-2263f999.cjs} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-8553b685.js → scheduler-config-store-2a3b403d-5176cd45.js} +1 -1
- package/dist/{scheduler-store-9ff4914b-d1a624f8.js → scheduler-store-33ab8dea-9801357a.js} +2 -2
- package/dist/scheduler-store-33ab8dea-a0b39d36.cjs +1 -0
- package/dist/{textarea-component.entry-cbffb0b0.cjs → textarea-component.entry-019e75d0.cjs} +1 -1
- package/dist/{textarea-component.entry-dad42f20.js → textarea-component.entry-174089bc.js} +2 -2
- package/dist/{time-period-selector.entry-79c94da3.js → time-period-selector.entry-62c854d1.js} +4 -4
- package/dist/{time-period-selector.entry-e54d0989.cjs → time-period-selector.entry-8466d0f2.cjs} +1 -1
- package/dist/{translate-icon.entry-ef6266c4.js → translate-icon.entry-73f7127b.js} +4 -4
- package/dist/{translate-icon.entry-8e9eeeba.cjs → translate-icon.entry-7d5cf4b8.cjs} +1 -1
- package/dist/{warning-icon.entry-34c85de2.cjs → warning-icon.entry-92638eeb.cjs} +1 -1
- package/dist/{warning-icon.entry-adf18211.js → warning-icon.entry-abf896c3.js} +5 -5
- package/package.json +2 -2
- package/dist/calendar-agenda-fill-icon_48.entry-c4ea84b3.cjs +0 -7
- package/dist/google-logo-icon_4.entry-afffb209.cjs +0 -1
- package/dist/index-c4e817ef.cjs +0 -82
- package/dist/nylas-booked-event-card_12.entry-47c5381d.cjs +0 -1
- package/dist/nylas-scheduling.entry-bc9c25c5.js +0 -359
- package/dist/nylas-scheduling.entry-dc92d5e7.cjs +0 -1
- package/dist/scheduler-store-9ff4914b-63dc472a.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-c4e817ef.cjs"),w=require("./register-component-ea95564d-a64ee107.cjs");require("react");require("react-dom");function f(t,a,s,o,r){if(!o||!s||s.children.length>0)return;e.debug("[nylas-view-thread] Rendering email",{message:t,attachments:a,viewEmailElement:o});const n=o.cloneNode(!0);n.message=t.data,n.parent=r,s.appendChild(n)}const c=({viewEmailElement:t,message:a,attachments:s,onMessageClick:o,onShowContactDataClick:r,parent:n})=>{var l,i,d,g,u,v,y;return e.h(e.Fragment,null,e.h("div",{key:a.id,class:"message"},e.h("div",{class:"sub-header","data-id":a.data.id,onClick:o},e.h("div",{class:"avatar"},a.data.from&&((l=a.data.from[0])==null?void 0:l.name)&&((d=(i=a.data.from[0])==null?void 0:i.name[0])==null?void 0:d.toUpperCase())),e.h("div",{class:"from"},e.h("span",{class:"name"},a.data.from&&((g=a.data.from[0])==null?void 0:g.name))," ",e.h("span",{class:"email"},a.data.from&&((u=a.data.from[0])==null?void 0:u.email))),e.h("div",{class:"date"},new Date(a.data.date*1e3).toLocaleTimeString(void 0,{timeStyle:"short"})," ","(",e.formatTimeAgo(new Date(a.data.date*1e3)),")"),e.h("sp-button-group",{class:"buttons"},e.h("nylas-summarize-message-button",{message:a.data})),a.collapse&&e.h("div",{class:"snippet"},a.data.snippet),!a.collapse&&a.data.to&&e.h("div",{class:"to"},e.h("span",null,"to")," ",e.formatParticipants(a.data.to)," ",e.h("button",{type:"button",value:a.data.id,onClick:r,class:{expand:!0,"expand--showContactData":a.showContactData}},e.h("chevron-icon",null)))),a.showContactData&&e.h("div",{class:"address-info"},e.h("div",{class:"label"},"From"),e.h("div",{class:"value"},e.formatRecipient((v=a.data)!=null&&v.from?(y=a==null?void 0:a.data)==null?void 0:y.from[0]:{name:"",email:""})),a.data.to&&e.h(e.Fragment,null,e.h("div",{class:"label"},"To"),e.h("div",{class:"value"},a.data.to.map(h=>e.h("div",null,e.formatRecipient(h))))),typeof a.data.cc<"u"&&a.data.cc.length>0&&e.h(e.Fragment,null,e.h("div",{class:"label"},"CC"),e.h("div",{class:"value"},a.data.cc.map(h=>e.h("div",null,e.formatRecipient(h)))))),!a.collapse&&t&&e.h("div",{key:a.id,ref:h=>f(a,s,h,t,n)}),!a.collapse&&!t&&e.h("nylas-view-email",{key:a.id,message:a.data,parent:n})),e.h("hr",null))},b=':host{display:block;font-size:inherit}.avatar{z-index:1;border-radius:100%;background-color:var(--nylas-color-primary-200);height:40px;width:40px;align-items:center;display:flex;justify-content:center;border:1px solid var(--nylas-color-primary-200)}.view-thread{display:grid;grid-auto-flow:row;width:100%}.view-thread .header{display:grid;grid-gap:1rem;align-items:center;margin-bottom:1rem}.view-thread .header .subject{font-size:1.25rem;font-weight:600;line-height:1.5rem}.view-thread .header .folders{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;overflow-x:auto;gap:1rem}.view-thread .header .folders .folder{padding:0 0.5rem;font-size:0.9rem;color:var(--nylas-color-primary-900);background-color:var(--nylas-color-primary-300)}.view-thread .messages{display:grid;gap:1rem}.view-thread .messages hr{margin:0;width:100%;border:1px solid var(--nylas-color-primary-200)}.view-thread .messages hr:last-of-type{display:none}.view-thread .messages .message{display:grid;grid-auto-flow:row;gap:1rem}.view-thread .messages .message:last-of-type .sub-header{cursor:default}.view-thread .messages .message .sub-header{display:grid;grid-template:"avatar from date buttons" "avatar to to buttons";grid-column-gap:1rem;grid-template-columns:auto 1fr auto auto;cursor:pointer}.view-thread .messages .message .sub-header>*{pointer-events:none}.view-thread .messages .message .sub-header .avatar{grid-area:avatar}.view-thread .messages .message .sub-header .from{grid-area:from}.view-thread .messages .message .sub-header .from span.email{display:none;color:var(--nylas-color-primary-400);font-weight:600}.view-thread .messages .message .sub-header .buttons{grid-area:buttons;align-self:center}.view-thread .messages .message .sub-header .buttons *{pointer-events:all}.view-thread .messages .message .sub-header .date{grid-area:date;align-self:center;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .snippet{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nylas-color-primary-600)}.view-thread .messages .message .sub-header .to{grid-area:to;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to>span{color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to button{border:0;background-color:transparent;cursor:pointer;pointer-events:all;padding:0;margin:0}.view-thread .messages .message .sub-header .to button>*{pointer-events:none}.view-thread .messages .message .sub-header .to button chevron-icon{display:inline-table;fill:var(--nylas-color-primary-400);width:15px;height:15px;vertical-align:middle}.view-thread .messages .message .sub-header .to button chevron-icon svg{width:15px;height:15px;transform:rotate(90deg)}.view-thread .messages .message .sub-header .to button.expand--showContactData chevron-icon svg{transform:rotate(270deg)}.view-thread .messages .message .address-info{display:grid;column-gap:1rem;row-gap:0.5rem;grid-template-columns:auto 1fr;grid-template-rows:1fr;padding:1rem 2rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-color-primary-200);align-items:flex-start;color:var(--nylas-color-primary-600)}.view-thread .messages .message .address-info .label{color:var(--nylas-color-primary-400);font-weight:600}.show-more{position:relative;display:flex;width:100%}.show-more .sr-only{display:none}.show-more button{position:relative;display:inline-flex;width:100%;padding:0;border:0;background-color:transparent;cursor:pointer;text-align:left;overflow:hidden}.show-more button span{border:1px solid var(--nylas-color-primary-400)}.show-more button:hover span{background-color:var(--nylas-color-primary-700)}.show-more button::after{border-top:1px solid rgba(100, 121, 143, 0.122);border-bottom:1px solid rgba(100, 121, 143, 0.122);content:"";height:4px;width:100%;position:absolute;top:50%}.loading{position:absolute;width:100%;height:100%;background-color:var(--loading__background-color);top:0;bottom:0;left:0;z-index:1;display:grid;justify-content:center;align-items:center;font-weight:600;overflow:hidden}.reply-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:1rem;margin-top:1rem}.reply-buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.reply-buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.reply-buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.reply-buttons sp-button chevron-icon{display:inline-block}@media only screen and (min-width: 768px){.view-thread .messages .message .sub-header .from span.email{display:inline}}',C=b;var k=function(t,a,s,o){var r=arguments.length,n=r<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,a,s,o);else for(var i=t.length-1;i>=0;i--)(l=t[i])&&(n=(r<3?l(n):r>3?l(a,s,n):l(a,s))||n);return r>3&&n&&Object.defineProperty(a,s,n),n},m=function(t,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,a)};const p=class{constructor(t){e.registerInstance(this,t),this.threadSelected=e.createEvent(this,"threadSelected",7),this.showContactDataClicked=e.createEvent(this,"showContactDataClicked",7),this.messageClicked=e.createEvent(this,"messageClicked",7),this.nylasViewEmailElement=null,this.nylasComposerElement=null,this.onShowContactDataClick=a=>{a.stopPropagation();const o=a.target.value,r=this.internalMessages.find(l=>l.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.showContactDataClicked.emit(r.data).defaultPrevented||(r.showContactData=!r.showContactData,this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData?"collapsed":"expanded"}`)},this.onMessageClick=a=>{var l;const o=a.target.dataset.id,r=this.internalMessages.find(i=>i.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.messageClicked.emit(r.data).defaultPrevented||(r.id!==((l=this.internalMessages[this.internalMessages.length-1])==null?void 0:l.id)&&(r.collapse=!r.collapse,r.collapse&&(r.showContactData=!1)),this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] message clicked ${o} ${r.collapse?"collapsed":"expanded"}`)},this.onShowAllEmailsClick=()=>{this.showAllEmails=!this.showAllEmails},this.showComposerClick=()=>{this.showComposer=!this.showComposer},this.draft=void 0,this.thread=void 0,this.messages=[],this.attachments=[],this.state="loading",this.internalMessages=[],this.showAllEmails=!1,this.showComposer=!1}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){e.debug("[nylas-view-thread] Component will load"),this.updateInternalMessages(this.messages);const t=this.host.querySelector("template.nylas-view-email");if(!t){e.debug("[nylas-view-thread] Could not find template");return}const a=document.importNode(t.content,!0);this.nylasViewEmailElement=a.querySelector("nylas-view-email");const s=this.host.querySelector("template.nylas-composer");if(!s){e.debug("[nylas-view-thread] Could not find composer template");return}const o=document.importNode(s.content,!0);this.nylasComposerElement=o.querySelector("nylas-composer")}async componentDidLoad(){e.debug("[nylas-view-thread] Component did load")}async threadChanged(t){e.debug("[nylas-view-thread] Thread changed",{thread:t}),this.internalMessages=[],this.threadSelected.emit(t).defaultPrevented||e.debug("[nylas-view-thread] Default event not prevented, initializing")}updateInternalMessages(t){e.debug("[nylas-view-thread] Updating internal messages",{messages:t});const a=t.sort((s,o)=>s.date>o.date?1:-1).map((s,o)=>({id:s.id,data:s,collapse:o!==t.length-1,showContactData:!1}));this.internalMessages=a}render(){var r,n,l;const t=this.internalMessages.length>2?this.internalMessages[0]:null,a=this.internalMessages.slice(this.internalMessages.length-2,this.internalMessages.length),s=this.internalMessages.slice(1,this.internalMessages.length-2),o=this.internalMessages[this.internalMessages.length-1];return e.h(e.Host,{key:"bbdec659d5def3c554fe76fe6c4420abe80838d0"},e.h("sp-theme",{key:"a95af5db4617124e6c825c955d995010cbd84306",scale:"medium",color:"dark"},e.h("div",{key:"492bd99bf13e811172c75b0fc1fb4886319e1f01",class:"view-thread"},e.h("div",{key:"e93fc1f77a4041d8567fc12eb385418822cd8464",class:"header"},e.h("div",{key:"ff92914f3ddd5da54b71d489a8e239ed19387dff",class:"subject"},(r=this.thread)==null?void 0:r.subject),e.h("div",{key:"55e7e077a3ba751794f65960e7c76624a440964d",class:"folders"},(l=(n=this.thread)==null?void 0:n.folders)==null?void 0:l.map(i=>e.h("sp-tag",{size:"s"},e.toTitleCase(i.replace("CATEGORY_","").replace("_"," ")))))),e.h("div",{key:"4d9a122375f93b5d02398577c0c1d3af37224c09",class:"messages"},t&&e.h(c,{message:t,attachments:this.attachments.filter(i=>i.messageId===t.id),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}),s.length>0&&this.messages.length>1&&!this.showAllEmails&&a.length>0&&e.h(e.Fragment,null,e.h("div",{class:"show-more"},e.h("button",{type:"button",onClick:this.onShowAllEmailsClick},e.h("span",{class:"avatar"},s.length)," ",e.h("span",{class:"sr-only"},"Show ",s.length," more emails"))),e.h("hr",null)),s.length>0&&this.showAllEmails&&this.messages.length>2&&s.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement})),a.length>0&&a.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}))),!(this.showComposer&&o)&&e.h("div",{class:"reply-buttons"},e.h("sp-button",{variant:"cta",type:"button",onClick:this.showComposerClick},e.h("span",{slot:"icon"},e.h("reply-icon",null)),e.h("span",null,"Reply")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("reply-all-icon",null)),e.h("span",null,"Reply All")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("forward-icon",null)),e.h("span",null,"Forward"))),this.showComposer&&o&&e.h("div",{class:"composer"},e.h("nylas-composer",{message:o.data,onClose:this.showComposerClick,onSend:i=>{e.debug("[nylas-view-thread] Send event",{message:i.detail.message,replyBody:i.detail.replyBody})}})))))}get host(){return e.getElement(this)}static get watchers(){return{thread:["threadChanged"],messages:["updateInternalMessages"]}}};k([w.RegisterComponent({name:"nylas-view-thread",stateToProps:new Map([["mailbox.selectedThread","thread"],["mailbox.messages","messages"],["mailbox.state","state"]]),eventToProps:{threadSelected:async(t,a)=>{e.debug("[nylas-view-thread] Nylas init event. Fetching thread messages.",{event:t});const s=t.detail;s&&s.id&&await a.messages.getThreadMessages(s.id)}},fireRegisterEvent:!0}),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],p.prototype,"render",null);p.style=C;exports.nylas_view_thread=p;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-11f33e47.cjs"),f=require("./register-component-a7ea27ad-2343f3df.cjs");require("react");require("react-dom");function w(t,a,s,o,r){if(!o||!s||s.children.length>0)return;e.debug("[nylas-view-thread] Rendering email",{message:t,attachments:a,viewEmailElement:o});const n=o.cloneNode(!0);n.message=t.data,n.parent=r,s.appendChild(n)}const c=({viewEmailElement:t,message:a,attachments:s,onMessageClick:o,onShowContactDataClick:r,parent:n})=>{var l,i,d,g,u,v,y;return e.h(e.Fragment,null,e.h("div",{key:a.id,class:"message"},e.h("div",{class:"sub-header","data-id":a.data.id,onClick:o},e.h("div",{class:"avatar"},a.data.from&&((l=a.data.from[0])==null?void 0:l.name)&&((d=(i=a.data.from[0])==null?void 0:i.name[0])==null?void 0:d.toUpperCase())),e.h("div",{class:"from"},e.h("span",{class:"name"},a.data.from&&((g=a.data.from[0])==null?void 0:g.name))," ",e.h("span",{class:"email"},a.data.from&&((u=a.data.from[0])==null?void 0:u.email))),e.h("div",{class:"date"},new Date(a.data.date*1e3).toLocaleTimeString(void 0,{timeStyle:"short"})," ","(",e.formatTimeAgo(new Date(a.data.date*1e3)),")"),e.h("sp-button-group",{class:"buttons"},e.h("nylas-summarize-message-button",{message:a.data})),a.collapse&&e.h("div",{class:"snippet"},a.data.snippet),!a.collapse&&a.data.to&&e.h("div",{class:"to"},e.h("span",null,"to")," ",e.formatParticipants(a.data.to)," ",e.h("button",{type:"button",value:a.data.id,onClick:r,class:{expand:!0,"expand--showContactData":a.showContactData}},e.h("chevron-icon",null)))),a.showContactData&&e.h("div",{class:"address-info"},e.h("div",{class:"label"},"From"),e.h("div",{class:"value"},e.formatRecipient((v=a.data)!=null&&v.from?(y=a==null?void 0:a.data)==null?void 0:y.from[0]:{name:"",email:""})),a.data.to&&e.h(e.Fragment,null,e.h("div",{class:"label"},"To"),e.h("div",{class:"value"},a.data.to.map(h=>e.h("div",null,e.formatRecipient(h))))),typeof a.data.cc<"u"&&a.data.cc.length>0&&e.h(e.Fragment,null,e.h("div",{class:"label"},"CC"),e.h("div",{class:"value"},a.data.cc.map(h=>e.h("div",null,e.formatRecipient(h)))))),!a.collapse&&t&&e.h("div",{key:a.id,ref:h=>w(a,s,h,t,n)}),!a.collapse&&!t&&e.h("nylas-view-email",{key:a.id,message:a.data,parent:n})),e.h("hr",null))},b=':host{display:block;font-size:inherit}.avatar{z-index:1;border-radius:100%;background-color:var(--nylas-color-primary-200);height:40px;width:40px;align-items:center;display:flex;justify-content:center;border:1px solid var(--nylas-color-primary-200)}.view-thread{display:grid;grid-auto-flow:row;width:100%}.view-thread .header{display:grid;grid-gap:1rem;align-items:center;margin-bottom:1rem}.view-thread .header .subject{font-size:1.25rem;font-weight:600;line-height:1.5rem}.view-thread .header .folders{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;overflow-x:auto;gap:1rem}.view-thread .header .folders .folder{padding:0 0.5rem;font-size:0.9rem;color:var(--nylas-color-primary-900);background-color:var(--nylas-color-primary-300)}.view-thread .messages{display:grid;gap:1rem}.view-thread .messages hr{margin:0;width:100%;border:1px solid var(--nylas-color-primary-200)}.view-thread .messages hr:last-of-type{display:none}.view-thread .messages .message{display:grid;grid-auto-flow:row;gap:1rem}.view-thread .messages .message:last-of-type .sub-header{cursor:default}.view-thread .messages .message .sub-header{display:grid;grid-template:"avatar from date buttons" "avatar to to buttons";grid-column-gap:1rem;grid-template-columns:auto 1fr auto auto;cursor:pointer}.view-thread .messages .message .sub-header>*{pointer-events:none}.view-thread .messages .message .sub-header .avatar{grid-area:avatar}.view-thread .messages .message .sub-header .from{grid-area:from}.view-thread .messages .message .sub-header .from span.email{display:none;color:var(--nylas-color-primary-400);font-weight:600}.view-thread .messages .message .sub-header .buttons{grid-area:buttons;align-self:center}.view-thread .messages .message .sub-header .buttons *{pointer-events:all}.view-thread .messages .message .sub-header .date{grid-area:date;align-self:center;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .snippet{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nylas-color-primary-600)}.view-thread .messages .message .sub-header .to{grid-area:to;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to>span{color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to button{border:0;background-color:transparent;cursor:pointer;pointer-events:all;padding:0;margin:0}.view-thread .messages .message .sub-header .to button>*{pointer-events:none}.view-thread .messages .message .sub-header .to button chevron-icon{display:inline-table;fill:var(--nylas-color-primary-400);width:15px;height:15px;vertical-align:middle}.view-thread .messages .message .sub-header .to button chevron-icon svg{width:15px;height:15px;transform:rotate(90deg)}.view-thread .messages .message .sub-header .to button.expand--showContactData chevron-icon svg{transform:rotate(270deg)}.view-thread .messages .message .address-info{display:grid;column-gap:1rem;row-gap:0.5rem;grid-template-columns:auto 1fr;grid-template-rows:1fr;padding:1rem 2rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-color-primary-200);align-items:flex-start;color:var(--nylas-color-primary-600)}.view-thread .messages .message .address-info .label{color:var(--nylas-color-primary-400);font-weight:600}.show-more{position:relative;display:flex;width:100%}.show-more .sr-only{display:none}.show-more button{position:relative;display:inline-flex;width:100%;padding:0;border:0;background-color:transparent;cursor:pointer;text-align:left;overflow:hidden}.show-more button span{border:1px solid var(--nylas-color-primary-400)}.show-more button:hover span{background-color:var(--nylas-color-primary-700)}.show-more button::after{border-top:1px solid rgba(100, 121, 143, 0.122);border-bottom:1px solid rgba(100, 121, 143, 0.122);content:"";height:4px;width:100%;position:absolute;top:50%}.loading{position:absolute;width:100%;height:100%;background-color:var(--loading__background-color);top:0;bottom:0;left:0;z-index:1;display:grid;justify-content:center;align-items:center;font-weight:600;overflow:hidden}.reply-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:1rem;margin-top:1rem}.reply-buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.reply-buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.reply-buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.reply-buttons sp-button chevron-icon{display:inline-block}@media only screen and (min-width: 768px){.view-thread .messages .message .sub-header .from span.email{display:inline}}',C=b;var k=function(t,a,s,o){var r=arguments.length,n=r<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,a,s,o);else for(var i=t.length-1;i>=0;i--)(l=t[i])&&(n=(r<3?l(n):r>3?l(a,s,n):l(a,s))||n);return r>3&&n&&Object.defineProperty(a,s,n),n},m=function(t,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,a)};const p=class{constructor(t){e.registerInstance(this,t),this.threadSelected=e.createEvent(this,"threadSelected",7),this.showContactDataClicked=e.createEvent(this,"showContactDataClicked",7),this.messageClicked=e.createEvent(this,"messageClicked",7),this.nylasViewEmailElement=null,this.nylasComposerElement=null,this.onShowContactDataClick=a=>{a.stopPropagation();const o=a.target.value,r=this.internalMessages.find(l=>l.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.showContactDataClicked.emit(r.data).defaultPrevented||(r.showContactData=!r.showContactData,this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData?"collapsed":"expanded"}`)},this.onMessageClick=a=>{var l;const o=a.target.dataset.id,r=this.internalMessages.find(i=>i.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.messageClicked.emit(r.data).defaultPrevented||(r.id!==((l=this.internalMessages[this.internalMessages.length-1])==null?void 0:l.id)&&(r.collapse=!r.collapse,r.collapse&&(r.showContactData=!1)),this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] message clicked ${o} ${r.collapse?"collapsed":"expanded"}`)},this.onShowAllEmailsClick=()=>{this.showAllEmails=!this.showAllEmails},this.showComposerClick=()=>{this.showComposer=!this.showComposer},this.draft=void 0,this.thread=void 0,this.messages=[],this.attachments=[],this.state="loading",this.internalMessages=[],this.showAllEmails=!1,this.showComposer=!1}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){e.debug("[nylas-view-thread] Component will load"),this.updateInternalMessages(this.messages);const t=this.host.querySelector("template.nylas-view-email");if(!t){e.debug("[nylas-view-thread] Could not find template");return}const a=document.importNode(t.content,!0);this.nylasViewEmailElement=a.querySelector("nylas-view-email");const s=this.host.querySelector("template.nylas-composer");if(!s){e.debug("[nylas-view-thread] Could not find composer template");return}const o=document.importNode(s.content,!0);this.nylasComposerElement=o.querySelector("nylas-composer")}async componentDidLoad(){e.debug("[nylas-view-thread] Component did load")}async threadChanged(t){e.debug("[nylas-view-thread] Thread changed",{thread:t}),this.internalMessages=[],this.threadSelected.emit(t).defaultPrevented||e.debug("[nylas-view-thread] Default event not prevented, initializing")}updateInternalMessages(t){e.debug("[nylas-view-thread] Updating internal messages",{messages:t});const a=t.sort((s,o)=>s.date>o.date?1:-1).map((s,o)=>({id:s.id,data:s,collapse:o!==t.length-1,showContactData:!1}));this.internalMessages=a}render(){var r,n,l;const t=this.internalMessages.length>2?this.internalMessages[0]:null,a=this.internalMessages.slice(this.internalMessages.length-2,this.internalMessages.length),s=this.internalMessages.slice(1,this.internalMessages.length-2),o=this.internalMessages[this.internalMessages.length-1];return e.h(e.Host,{key:"95ab8e5e5e9e8a986132a98e0ea325d9200702a9"},e.h("sp-theme",{key:"6b51c27dcac47e5607a0f35401b53c66066d69b0",scale:"medium",color:"dark"},e.h("div",{key:"28753bfffd987848a4e8308490423930395f0375",class:"view-thread"},e.h("div",{key:"4b95425cc9a6a8e2c81d747852d9da5f07bd67b4",class:"header"},e.h("div",{key:"d5960331681445ad3766b333a8195d951e74c6e6",class:"subject"},(r=this.thread)==null?void 0:r.subject),e.h("div",{key:"3cbd5fe0ffb99ed1648cff0fd1af5b3ff30d0848",class:"folders"},(l=(n=this.thread)==null?void 0:n.folders)==null?void 0:l.map(i=>e.h("sp-tag",{size:"s"},e.toTitleCase(i.replace("CATEGORY_","").replace("_"," ")))))),e.h("div",{key:"a95eb69dbc861e3473f7d5f9fda4ff4ef4f8fdd3",class:"messages"},t&&e.h(c,{message:t,attachments:this.attachments.filter(i=>i.messageId===t.id),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}),s.length>0&&this.messages.length>1&&!this.showAllEmails&&a.length>0&&e.h(e.Fragment,null,e.h("div",{class:"show-more"},e.h("button",{type:"button",onClick:this.onShowAllEmailsClick},e.h("span",{class:"avatar"},s.length)," ",e.h("span",{class:"sr-only"},"Show ",s.length," more emails"))),e.h("hr",null)),s.length>0&&this.showAllEmails&&this.messages.length>2&&s.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement})),a.length>0&&a.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}))),!(this.showComposer&&o)&&e.h("div",{class:"reply-buttons"},e.h("sp-button",{variant:"cta",type:"button",onClick:this.showComposerClick},e.h("span",{slot:"icon"},e.h("reply-icon",null)),e.h("span",null,"Reply")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("reply-all-icon",null)),e.h("span",null,"Reply All")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("forward-icon",null)),e.h("span",null,"Forward"))),this.showComposer&&o&&e.h("div",{class:"composer"},e.h("nylas-composer",{message:o.data,onClose:this.showComposerClick,onSend:i=>{e.debug("[nylas-view-thread] Send event",{message:i.detail.message,replyBody:i.detail.replyBody})}})))))}get host(){return e.getElement(this)}static get watchers(){return{thread:["threadChanged"],messages:["updateInternalMessages"]}}};k([f.RegisterComponent({name:"nylas-view-thread",stateToProps:new Map([["mailbox.selectedThread","thread"],["mailbox.messages","messages"],["mailbox.state","state"]]),eventToProps:{threadSelected:async(t,a)=>{e.debug("[nylas-view-thread] Nylas init event. Fetching thread messages.",{event:t});const s=t.detail;s&&s.id&&await a.messages.getThreadMessages(s.id)}},fireRegisterEvent:!0}),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],p.prototype,"render",null);p.style=C;exports.nylas_view_thread=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as k, c as p, d, h as a, t as M, F as m, H as x, g as E, s as D, a as S, v as g } from "./index-
|
|
2
|
-
import { R as T } from "./register-component-
|
|
1
|
+
import { r as k, c as p, d, h as a, t as M, F as m, H as x, g as E, s as D, a as S, v as g } from "./index-a282e817.js";
|
|
2
|
+
import { R as T } from "./register-component-a7ea27ad-fa2c4b17.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function R(t, e, s, o, r) {
|
|
@@ -10,7 +10,7 @@ function R(t, e, s, o, r) {
|
|
|
10
10
|
n.message = t.data, n.parent = r, s.appendChild(n);
|
|
11
11
|
}
|
|
12
12
|
const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o, onShowContactDataClick: r, parent: n }) => {
|
|
13
|
-
var l, i, c, y,
|
|
13
|
+
var l, i, c, y, f, w, b;
|
|
14
14
|
return a(
|
|
15
15
|
m,
|
|
16
16
|
null,
|
|
@@ -26,7 +26,7 @@ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o,
|
|
|
26
26
|
{ class: "from" },
|
|
27
27
|
a("span", { class: "name" }, e.data.from && ((y = e.data.from[0]) == null ? void 0 : y.name)),
|
|
28
28
|
" ",
|
|
29
|
-
a("span", { class: "email" }, e.data.from && ((
|
|
29
|
+
a("span", { class: "email" }, e.data.from && ((f = e.data.from[0]) == null ? void 0 : f.email))
|
|
30
30
|
),
|
|
31
31
|
a(
|
|
32
32
|
"div",
|
|
@@ -66,7 +66,7 @@ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o,
|
|
|
66
66
|
"div",
|
|
67
67
|
{ class: "address-info" },
|
|
68
68
|
a("div", { class: "label" }, "From"),
|
|
69
|
-
a("div", { class: "value" }, g((
|
|
69
|
+
a("div", { class: "value" }, g((w = e.data) != null && w.from ? (b = e == null ? void 0 : e.data) == null ? void 0 : b.from[0] : { name: "", email: "" })),
|
|
70
70
|
e.data.to && a(
|
|
71
71
|
m,
|
|
72
72
|
null,
|
|
@@ -162,7 +162,7 @@ const C = class {
|
|
|
162
162
|
render() {
|
|
163
163
|
var r, n, l;
|
|
164
164
|
const t = this.internalMessages.length > 2 ? this.internalMessages[0] : null, e = this.internalMessages.slice(this.internalMessages.length - 2, this.internalMessages.length), s = this.internalMessages.slice(1, this.internalMessages.length - 2), o = this.internalMessages[this.internalMessages.length - 1];
|
|
165
|
-
return a(x, { key: "
|
|
165
|
+
return a(x, { key: "95ab8e5e5e9e8a986132a98e0ea325d9200702a9" }, a("sp-theme", { key: "6b51c27dcac47e5607a0f35401b53c66066d69b0", scale: "medium", color: "dark" }, a("div", { key: "28753bfffd987848a4e8308490423930395f0375", class: "view-thread" }, a("div", { key: "4b95425cc9a6a8e2c81d747852d9da5f07bd67b4", class: "header" }, a("div", { key: "d5960331681445ad3766b333a8195d951e74c6e6", class: "subject" }, (r = this.thread) == null ? void 0 : r.subject), a("div", { key: "3cbd5fe0ffb99ed1648cff0fd1af5b3ff30d0848", class: "folders" }, (l = (n = this.thread) == null ? void 0 : n.folders) == null ? void 0 : l.map((i) => a("sp-tag", { size: "s" }, M(i.replace("CATEGORY_", "").replace("_", " ")))))), a("div", { key: "a95eb69dbc861e3473f7d5f9fda4ff4ef4f8fdd3", class: "messages" }, t && a(u, { message: t, attachments: this.attachments.filter((i) => i.messageId === t.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }), s.length > 0 && this.messages.length > 1 && !this.showAllEmails && e.length > 0 && a(m, null, a("div", { class: "show-more" }, a("button", { type: "button", onClick: this.onShowAllEmailsClick }, a("span", { class: "avatar" }, s.length), " ", a("span", { class: "sr-only" }, "Show ", s.length, " more emails"))), a("hr", null)), s.length > 0 && this.showAllEmails && this.messages.length > 2 && s.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), e.length > 0 && e.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), !(this.showComposer && o) && a("div", { class: "reply-buttons" }, a("sp-button", { variant: "cta", type: "button", onClick: this.showComposerClick }, a("span", { slot: "icon" }, a("reply-icon", null)), a("span", null, "Reply")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("reply-all-icon", null)), a("span", null, "Reply All")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("forward-icon", null)), a("span", null, "Forward"))), this.showComposer && o && a("div", { class: "composer" }, a("nylas-composer", { message: o.data, onClose: this.showComposerClick, onSend: (i) => {
|
|
166
166
|
d("[nylas-view-thread] Send event", { message: i.detail.message, replyBody: i.detail.replyBody });
|
|
167
167
|
} })))));
|
|
168
168
|
}
|
|
@@ -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-11f33e47.cjs");require("react");require("react-dom");const r=".sc-person-icon-h{display:flex}",i=r,t=class{constructor(s){e.registerInstance(this,s),this.width="14",this.height="16"}render(){return e.h("svg",{key:"1acaf767bd6da51d84f327b50133a009353e13e2",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"11dd37c0315df78171e75188d70100a9be512fad",d:"M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z",fill:"currentColor"}))}};t.style=i;exports.person_icon=t;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as e, h as t } from "./index-a282e817.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ".sc-person-icon-h{display:flex}", r = o, C = class {
|
|
5
|
-
constructor(
|
|
6
|
-
|
|
5
|
+
constructor(s) {
|
|
6
|
+
e(this, s), this.width = "14", this.height = "16";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
9
|
+
return t("svg", { key: "1acaf767bd6da51d84f327b50133a009353e13e2", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "11dd37c0315df78171e75188d70100a9be512fad", d: "M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z", fill: "currentColor" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
C.style = r;
|
|
@@ -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-11f33e47.cjs");require("react");require("react-dom");const o=".sc-play-icon-h{display:flex}",n=o,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"aaf8436c2734b8050426adf588b82c23fd532517",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"0b5fe250458b42fa9f53fa465e5678d8784ba79c",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=n;const h=".sc-stop-icon-h{display:flex}",r=h,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"df57509ac31c75b5f8ea227a6356b588bbbe5e42",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"75d4a6c7f65327dd2107bd4051609ebc300daa17",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=r;exports.play_icon=s;exports.stop_icon=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as t } from "./index-
|
|
1
|
+
import { r as o, h as t } from "./index-a282e817.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
|
|
@@ -6,7 +6,7 @@ const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
|
|
|
6
6
|
o(this, s), this.width = "15", this.height = "15";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
9
|
+
return t("svg", { key: "aaf8436c2734b8050426adf588b82c23fd532517", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "0b5fe250458b42fa9f53fa465e5678d8784ba79c", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
h.style = i;
|
|
@@ -15,7 +15,7 @@ const n = ".sc-stop-icon-h{display:flex}", c = n, r = class {
|
|
|
15
15
|
o(this, s), this.width = "15", this.height = "15";
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return t("svg", { key: "
|
|
18
|
+
return t("svg", { key: "df57509ac31c75b5f8ea227a6356b588bbbe5e42", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "75d4a6c7f65327dd2107bd4051609ebc300daa17", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
r.style = c;
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-11f33e47.cjs");require("react");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasComposer=o.NylasComposer;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasListFolders=o.NylasListFolders;exports.NylasListThreads=o.NylasListThreads;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMailbox=o.NylasMailbox;exports.NylasMailboxPagination=o.NylasMailboxPagination;exports.NylasMailboxToolbarButton=o.NylasMailboxToolbarButton;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasProvider=o.NylasProvider;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasSummarizeMessageButton=o.NylasSummarizeMessageButton;exports.NylasThreadsRefresh=o.NylasThreadsRefresh;exports.NylasThreadsSearch=o.NylasThreadsSearch;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasViewEmail=o.NylasViewEmail;exports.NylasViewThread=o.NylasViewThread;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.applyPolyfills=o.applyPolyfills;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;exports.useNylasMailboxElement=o.useNylasMailboxElement;
|
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a6 as e, a7 as l, a8 as
|
|
1
|
+
import { a6 as e, a7 as l, a8 as c, a9 as i, aa as t, ab as r, ac as b, ad as y, ae as I, af as N, ag as d, ah as C, ai as m, aj as g, ak as p, al as u, am as k, an as h, ao as P, ap as f, aq as E, ar as T, as as S, at as v, au as B, av as F, aw as L, ax as w, ay as M, az as R, aA as A, aB as D, aC as x, aD as G, aE as z, aF as W, aG as O, aH as U, aI as V, aJ as q, aK as Z, aL as j, aM as H, aN as J, aO as K, aP as Q, aQ as X, aR as Y, aS as _, aT as $, aU as aa, aV as sa, aW as oa, aX as na, aY as ea, aZ as la, a_ as ca, a$ as ia, b0 as ta, b1 as ra, b2 as ba, b3 as ya, b4 as Ia, b5 as Na, b6 as da, b7 as Ca, b8 as ma, b9 as ga, ba as pa, bb as ua, bc as ka, bd as ha, be as Pa, bf as fa, bg as Ea, bh as Ta, N as Sa, bi as va, bj as Ba, bk as Fa, bl as La, bm as wa, bn as Ma, bo as Ra, bp as Aa, bq as Da, br as xa, bs as Ga, bt as za, bu as Wa, bv as Oa, bw as Ua, bx as Va, by as qa, bz as Za, bA as ja, bB as Ha, bC as Ja, bD as Ka, bE as Qa, bF as Xa, bG as Ya, bH as _a, bI as $a, bJ as as, bK as ss, bL as os, bM as ns, bN as es, bO as ls, bP as cs, bQ as is, bR as ts, bS as rs, bT as bs, bU as ys, bV as Is, bW as Ns, bX as ds, bY as Cs, bZ as ms, b_ as gs, b$ as ps, c0 as us, c1 as ks, c2 as hs, c3 as Ps, c4 as fs, c5 as Es, c6 as Ts, c7 as Ss, c8 as vs, c9 as Bs, ca as Fs, cb as Ls, cc as ws, cd as Ms, ce as Rs, a3 as As, a4 as Ds, a5 as xs, a2 as Gs } from "./index-a282e817.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
export {
|
|
5
5
|
e as AddCircleIcon,
|
|
6
6
|
l as ArchiveIcon,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
c as ArrowIcon,
|
|
8
|
+
i as BoldIcon,
|
|
9
9
|
t as ButtonComponent,
|
|
10
10
|
r as CalendarAgendaFillIcon,
|
|
11
11
|
b as CalendarAgendaIcon,
|
|
@@ -28,118 +28,120 @@ export {
|
|
|
28
28
|
v as EnvelopeFillIcon,
|
|
29
29
|
B as EnvelopeIcon,
|
|
30
30
|
F as EyeIcon,
|
|
31
|
-
L as
|
|
32
|
-
w as
|
|
33
|
-
M as
|
|
34
|
-
R as
|
|
35
|
-
A as
|
|
36
|
-
D as
|
|
37
|
-
x as
|
|
38
|
-
G as
|
|
39
|
-
z as
|
|
40
|
-
W as
|
|
41
|
-
O as
|
|
42
|
-
U as
|
|
43
|
-
V as
|
|
44
|
-
q as
|
|
45
|
-
Z as
|
|
46
|
-
j as
|
|
47
|
-
H as
|
|
48
|
-
J as
|
|
49
|
-
K as
|
|
50
|
-
Q as
|
|
51
|
-
X as
|
|
52
|
-
Y as
|
|
53
|
-
_ as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
oa as
|
|
58
|
-
na as
|
|
59
|
-
ea as
|
|
60
|
-
la as
|
|
31
|
+
L as FeedbackIcon,
|
|
32
|
+
w as FlowIcon,
|
|
33
|
+
M as FolderIcon,
|
|
34
|
+
R as ForwardIcon,
|
|
35
|
+
A as GlobeIcon,
|
|
36
|
+
D as GoogleLogoIcon,
|
|
37
|
+
x as GoogleMeetIcon,
|
|
38
|
+
G as InboxIcon,
|
|
39
|
+
z as InfoIcon,
|
|
40
|
+
W as InputColorPicker,
|
|
41
|
+
O as InputComponent,
|
|
42
|
+
U as InputDropdown,
|
|
43
|
+
V as InputImageUrl,
|
|
44
|
+
q as ItalicIcon,
|
|
45
|
+
Z as LoadingIcon,
|
|
46
|
+
j as LocationIcon,
|
|
47
|
+
H as LocationOffIcon,
|
|
48
|
+
J as MicrosoftLogoIcon,
|
|
49
|
+
K as MicrosoftTeamsIcon,
|
|
50
|
+
Q as MultiSelectDropdown,
|
|
51
|
+
X as NylasAdditionalParticipants,
|
|
52
|
+
Y as NylasAvailabilityPicker,
|
|
53
|
+
_ as NylasBookedEventCard,
|
|
54
|
+
$ as NylasBookingCalendarPicker,
|
|
55
|
+
aa as NylasBookingConfirmationRedirect,
|
|
56
|
+
sa as NylasBookingConfirmationType,
|
|
57
|
+
oa as NylasBookingForm,
|
|
58
|
+
na as NylasBookingFormConfig,
|
|
59
|
+
ea as NylasBufferTime,
|
|
60
|
+
la as NylasCalendarPicker,
|
|
61
|
+
ca as NylasCancelBookingForm,
|
|
61
62
|
ia as NylasCancellationPolicy,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
is as
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
63
|
+
ta as NylasCancelledEventCard,
|
|
64
|
+
ra as NylasComposer,
|
|
65
|
+
ba as NylasConfirmationEmail,
|
|
66
|
+
ya as NylasConfirmedEventCard,
|
|
67
|
+
Ia as NylasConnectedCalendars,
|
|
68
|
+
Na as NylasCustomBookingFlow,
|
|
69
|
+
da as NylasCustomEventSlug,
|
|
70
|
+
Ca as NylasCustomizeBookingSettings,
|
|
71
|
+
ma as NylasDatePicker,
|
|
72
|
+
ga as NylasEditorTabs,
|
|
73
|
+
pa as NylasEventDescription,
|
|
74
|
+
ua as NylasEventDuration,
|
|
75
|
+
ka as NylasEventInfo,
|
|
76
|
+
ha as NylasEventLimits,
|
|
77
|
+
Pa as NylasEventLocation,
|
|
78
|
+
fa as NylasEventTitle,
|
|
79
|
+
Ea as NylasFeedbackForm,
|
|
80
|
+
Ta as NylasFormCard,
|
|
81
|
+
Sa as NylasIdentityRequestWrapper,
|
|
82
|
+
va as NylasIfState,
|
|
83
|
+
Ba as NylasLimitFutureBookings,
|
|
84
|
+
Fa as NylasListConfigurations,
|
|
85
|
+
La as NylasListFolders,
|
|
86
|
+
wa as NylasListThreads,
|
|
87
|
+
Ma as NylasLocaleSwitch,
|
|
88
|
+
Ra as NylasLogin,
|
|
89
|
+
Aa as NylasLogo,
|
|
90
|
+
Da as NylasMailbox,
|
|
91
|
+
xa as NylasMailboxPagination,
|
|
92
|
+
Ga as NylasMailboxToolbarButton,
|
|
93
|
+
za as NylasMinBookingNotice,
|
|
94
|
+
Wa as NylasMinCancellationNotice,
|
|
95
|
+
Oa as NylasNotification,
|
|
96
|
+
Ua as NylasOrganizerConfirmationCard,
|
|
97
|
+
Va as NylasPageName,
|
|
98
|
+
qa as NylasPageStyling,
|
|
99
|
+
Za as NylasParticipantBookingCalendars,
|
|
100
|
+
ja as NylasParticipantsCustomAvailability,
|
|
101
|
+
Ha as NylasProvider,
|
|
102
|
+
Ja as NylasReminderEmails,
|
|
103
|
+
Ka as NylasReminderTime,
|
|
104
|
+
Qa as NylasSchedulerEditor,
|
|
105
|
+
Xa as NylasScheduling,
|
|
106
|
+
Ya as NylasSchedulingMethod,
|
|
107
|
+
_a as NylasSelectedEventCard,
|
|
108
|
+
$a as NylasSummarizeMessageButton,
|
|
109
|
+
as as NylasThreadsRefresh,
|
|
110
|
+
ss as NylasThreadsSearch,
|
|
111
|
+
os as NylasTimeWindowPicker,
|
|
112
|
+
ns as NylasTimeslotInterval,
|
|
113
|
+
es as NylasTimeslotPicker,
|
|
114
|
+
ls as NylasViewEmail,
|
|
115
|
+
cs as NylasViewThread,
|
|
116
|
+
is as PaintbrushFillIcon,
|
|
117
|
+
ts as PaintbrushIcon,
|
|
118
|
+
rs as PeopleIcon,
|
|
119
|
+
bs as PersonClipboardIcon,
|
|
120
|
+
ys as PersonIcon,
|
|
121
|
+
Is as PlayIcon,
|
|
122
|
+
Ns as PlusIcon,
|
|
123
|
+
ds as RadioButtonGroup,
|
|
124
|
+
Cs as RefreshIcon,
|
|
125
|
+
ms as ReplyAllIcon,
|
|
126
|
+
gs as ReplyIcon,
|
|
127
|
+
ps as SearchIcon,
|
|
128
|
+
us as SelectDropdown,
|
|
129
|
+
ks as SentIcon,
|
|
130
|
+
hs as SpamIcon,
|
|
131
|
+
Ps as StarIcon,
|
|
132
|
+
fs as StopIcon,
|
|
133
|
+
Es as TextareaComponent,
|
|
134
|
+
Ts as TimePeriodSelector,
|
|
135
|
+
Ss as ToggleSwitch,
|
|
136
|
+
vs as TooltipComponent,
|
|
137
|
+
Bs as TranslateIcon,
|
|
138
|
+
Fs as TrashFillIcon,
|
|
139
|
+
Ls as TrashIcon,
|
|
140
|
+
ws as UnderlineIcon,
|
|
141
|
+
Ms as WarningIcon,
|
|
142
|
+
Rs as ZoomIcon,
|
|
143
|
+
As as applyPolyfills,
|
|
144
|
+
Ds as defineCustomElements,
|
|
145
|
+
xs as setNonce,
|
|
146
|
+
Gs as useNylasMailboxElement
|
|
145
147
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as e, h as c } from "./index-a282e817.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const t = ".sc-refresh-icon-h{display:flex}", l = t, h = class {
|
|
5
5
|
constructor(s) {
|
|
6
|
-
|
|
6
|
+
e(this, s), this.width = "15", this.height = "15";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return c("svg", { key: "
|
|
9
|
+
return c("svg", { key: "4964fc3e3565544757b86f9e99cf30012f883401", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 32 32", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "1e4ff731a1d2ffba42d4210c742512f3981e2800", d: "M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
h.style = l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-11f33e47.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"4964fc3e3565544757b86f9e99cf30012f883401",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"1e4ff731a1d2ffba42d4210c742512f3981e2800",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=i;exports.refresh_icon=c;
|
package/dist/{register-component-ea95564d-a64ee107.cjs → register-component-a7ea27ad-2343f3df.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-11f33e47.cjs");function m(e,o,u="registerComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function P(e,o,u="unregisterComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,u)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${u}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),i=n.filter(c=>t.includes(c));if(i.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${i.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),i={element:t,...e,eventToProps:d},c=m(o,i,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),i={element:t,...e,eventToProps:d},c=P(o,i,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./index-
|
|
1
|
+
"use strict";const o=require("./index-11f33e47.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],hideEditorTabs:[],requiresSlug:!1,...n},e=o.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async i=>{i||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as b, e as $, k as d, m as R } from "./index-
|
|
1
|
+
import { d as b, e as $, k as d, m as R } from "./index-a282e817.js";
|
|
2
2
|
var w;
|
|
3
3
|
(function(a) {
|
|
4
4
|
a.Component = "component", a.Api = "api", a.Auth = "auth";
|
|
@@ -226,7 +226,7 @@ class U {
|
|
|
226
226
|
const u = this.schedulerStore.get("availabilityOrderEmails");
|
|
227
227
|
let m = "";
|
|
228
228
|
if (u.length > 0) {
|
|
229
|
-
const S = r.emails;
|
|
229
|
+
const S = (r == null ? void 0 : r.emails) || [];
|
|
230
230
|
for (let h = 0; h < u.length; h++)
|
|
231
231
|
if (S.includes(u[h])) {
|
|
232
232
|
m = u[h];
|