@nylas/react 1.0.1-prealpha1 → 1.0.2-canary.0

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.
Files changed (124) hide show
  1. package/dist/add-circle-icon_13.entry-6dccb5e5.cjs +1 -0
  2. package/dist/add-circle-icon_13.entry-ab84be80.js +1050 -0
  3. package/dist/{archive-icon_7.entry-baecb43c.cjs → archive-icon_7.entry-0deb31c2.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-9f3eca2c.js → archive-icon_7.entry-187a3484.js} +20 -20
  5. package/dist/arrow-icon.entry-b782e05a.js +15 -0
  6. package/dist/{arrow-icon.entry-9ab0c414.cjs → arrow-icon.entry-fb0ebc89.cjs} +1 -1
  7. package/dist/auth-store-764d3768-3e9c24a0.js +66 -0
  8. package/dist/auth-store-764d3768-ce84fc6a.cjs +1 -0
  9. package/dist/{bold-icon_3.entry-50406bc7.cjs → bold-icon_3.entry-49e5a1d0.cjs} +1 -1
  10. package/dist/{bold-icon_3.entry-b0d81839.js → bold-icon_3.entry-8aebbbdb.js} +4 -4
  11. package/dist/{calendar-cancel-icon.entry-0d07e33c.js → calendar-cancel-icon.entry-305c099c.js} +2 -2
  12. package/dist/{calendar-cancel-icon.entry-8f498984.cjs → calendar-cancel-icon.entry-3f4d6cf2.cjs} +1 -1
  13. package/dist/calendar-check-icon_2.entry-1bf4163c.js +25 -0
  14. package/dist/calendar-check-icon_2.entry-fa7c033a.cjs +1 -0
  15. package/dist/{calendar-icon.entry-219efd7a.cjs → calendar-icon.entry-78433555.cjs} +1 -1
  16. package/dist/{calendar-icon.entry-e5f20598.js → calendar-icon.entry-b5678535.js} +7 -7
  17. package/dist/chevron-icon.entry-49b0d3e7.cjs +1 -0
  18. package/dist/{chevron-icon.entry-f5d5d1b1.js → chevron-icon.entry-f484c9a3.js} +5 -5
  19. package/dist/close-icon.entry-24d5c268.js +15 -0
  20. package/dist/close-icon.entry-37965d55.cjs +1 -0
  21. package/dist/{nylas-booked-event-card_10.entry-f2481a57.js → constants-d93cf397-dd67263d.js} +1636 -2376
  22. package/dist/{nylas-booked-event-card_10.entry-27efa654.cjs → constants-d93cf397-e3587f5c.cjs} +6 -6
  23. package/dist/document-refresh-icon.entry-0e8935fa.cjs +1 -0
  24. package/dist/{document-refresh-icon.entry-89ad42fa.js → document-refresh-icon.entry-8791ab16.js} +5 -5
  25. package/dist/elements/index.d.ts +16 -0
  26. package/dist/{forward-icon_6.entry-ce725f05.cjs → forward-icon_6.entry-903ccd33.cjs} +3 -3
  27. package/dist/{forward-icon_6.entry-0a6dff18.js → forward-icon_6.entry-cb605bfc.js} +82 -82
  28. package/dist/globe-icon_3.entry-71d83904.js +109 -0
  29. package/dist/globe-icon_3.entry-c6aefc52.cjs +1 -0
  30. package/dist/{index-b30d446a-e0eaccad.js → index-10914bc1-1a809477.js} +2 -2
  31. package/dist/{index-b30d446a-3d69a3cc.cjs → index-10914bc1-93ff6f46.cjs} +1 -1
  32. package/dist/index-cee193d2.cjs +30 -0
  33. package/dist/index-e834697b.js +1562 -0
  34. package/dist/index.d.ts +1 -1
  35. package/dist/info-icon.entry-3774a4e3.js +15 -0
  36. package/dist/info-icon.entry-85bf3fbc.cjs +1 -0
  37. package/dist/loading-icon.entry-8941102c.js +15 -0
  38. package/dist/{loading-icon.entry-d2680046.cjs → loading-icon.entry-ae6c7b74.cjs} +1 -1
  39. package/dist/mailbox-store-6b9425dc-a0366cf2.cjs +1 -0
  40. package/dist/{mailbox-store-19f0c6c9-23a4e72f.js → mailbox-store-6b9425dc-c249fa99.js} +59 -121
  41. package/dist/nylas-booked-event-card_10.entry-a166d51d.js +739 -0
  42. package/dist/nylas-booked-event-card_10.entry-b181a874.cjs +1 -0
  43. package/dist/nylas-form-card.entry-7173dd4a.js +56 -0
  44. package/dist/nylas-form-card.entry-8fdbefa6.cjs +1 -0
  45. package/dist/nylas-if-state_3.entry-2093c593.cjs +1 -0
  46. package/dist/{nylas-if-state_3.entry-d805d4c6.js → nylas-if-state_3.entry-e7b615a1.js} +12 -10
  47. package/dist/{nylas-list-folders.entry-472bd255.js → nylas-list-folders.entry-744293ae.js} +9 -8
  48. package/dist/nylas-list-folders.entry-dff7a835.cjs +1 -0
  49. package/dist/{nylas-list-threads.entry-f3266bf7.js → nylas-list-threads.entry-85ad1b74.js} +5 -4
  50. package/dist/nylas-list-threads.entry-edb1d265.cjs +1 -0
  51. package/dist/{nylas-mailbox-pagination.entry-bd0d3bda.js → nylas-mailbox-pagination.entry-55ef4b8c.js} +4 -3
  52. package/dist/nylas-mailbox-pagination.entry-5b888a0e.cjs +1 -0
  53. package/dist/nylas-mailbox-toolbar-button.entry-bb42156a.cjs +1 -0
  54. package/dist/{nylas-mailbox-toolbar-button.entry-9641b5cd.js → nylas-mailbox-toolbar-button.entry-bdcf7d17.js} +9 -8
  55. package/dist/nylas-open-hours-picker.entry-0f4f34f6.cjs +1 -0
  56. package/dist/{nylas-open-hours-picker.entry-42942946.js → nylas-open-hours-picker.entry-7e7060fe.js} +59 -58
  57. package/dist/nylas-provider.entry-1dc58829.js +155 -0
  58. package/dist/nylas-provider.entry-cb1ef04e.cjs +1 -0
  59. package/dist/nylas-scheduler-config.entry-2382ac1b.js +114 -0
  60. package/dist/nylas-scheduler-config.entry-477d2171.cjs +1 -0
  61. package/dist/nylas-scheduler-editor.entry-1a95d313.cjs +1 -0
  62. package/dist/nylas-scheduler-editor.entry-c0479087.js +140 -0
  63. package/dist/nylas-scheduler.entry-69ecc3ae.cjs +1 -0
  64. package/dist/{nylas-scheduler.entry-3b7cb841.js → nylas-scheduler.entry-7084c148.js} +20 -19
  65. package/dist/nylas-threads-refresh.entry-b35f1b68.cjs +1 -0
  66. package/dist/{nylas-threads-refresh.entry-7d567ed1.js → nylas-threads-refresh.entry-ef5d6dfd.js} +13 -12
  67. package/dist/nylas-threads-search.entry-2dda7524.cjs +1 -0
  68. package/dist/{nylas-threads-search.entry-c881d54b.js → nylas-threads-search.entry-e570bf8e.js} +13 -12
  69. package/dist/nylas-view-thread.entry-1ee0680f.cjs +1 -0
  70. package/dist/{nylas-view-thread.entry-d8de6c83.js → nylas-view-thread.entry-3939c913.js} +5 -4
  71. package/dist/people-icon.entry-4a88822e.cjs +1 -0
  72. package/dist/people-icon.entry-69465395.js +15 -0
  73. package/dist/{play-icon_2.entry-cae94826.js → play-icon_2.entry-bc24fda7.js} +6 -6
  74. package/dist/play-icon_2.entry-bd9f650e.cjs +1 -0
  75. package/dist/react.cjs +1 -1
  76. package/dist/react.js +74 -58
  77. package/dist/{refresh-icon.entry-3e0aef26.cjs → refresh-icon.entry-678f92e7.cjs} +1 -1
  78. package/dist/{refresh-icon.entry-9563850b.js → refresh-icon.entry-bd2bf7ce.js} +4 -4
  79. package/dist/{register-component-152c6ad2-418db864.js → register-component-486ea571-1f151779.js} +2 -2
  80. package/dist/{register-component-152c6ad2-b0d34c36.cjs → register-component-486ea571-cdfe1ef9.cjs} +1 -1
  81. package/dist/scheduler-config-store-a059f30b-06c1aa21.cjs +1 -0
  82. package/dist/scheduler-config-store-a059f30b-ff3efc00.js +33 -0
  83. package/dist/{scheduler-store-7d48e682-39104219.js → scheduler-store-81058220-263a5f44.js} +53 -45
  84. package/dist/scheduler-store-81058220-a20698af.cjs +1 -0
  85. package/dist/translate-icon.entry-0c0dbba6.cjs +1 -0
  86. package/dist/translate-icon.entry-c1fcd2f8.js +15 -0
  87. package/dist/utils-df5c1963-1c47e21c.cjs +8 -0
  88. package/dist/utils-df5c1963-d9833bcb.js +2114 -0
  89. package/dist/warning-icon.entry-9631cd2e.js +15 -0
  90. package/dist/warning-icon.entry-dbd44cdb.cjs +1 -0
  91. package/package.json +6 -3
  92. package/dist/add-circle-icon.entry-4b8debfa.js +0 -15
  93. package/dist/add-circle-icon.entry-c5fdaa6f.cjs +0 -1
  94. package/dist/arrow-icon.entry-a3b36218.js +0 -15
  95. package/dist/calendar-check-icon_3.entry-5415e916.cjs +0 -1
  96. package/dist/calendar-check-icon_3.entry-cfb612c6.js +0 -35
  97. package/dist/chevron-icon.entry-3c709061.cjs +0 -1
  98. package/dist/close-icon_2.entry-eca351c4.js +0 -25
  99. package/dist/close-icon_2.entry-fa4f6d3e.cjs +0 -1
  100. package/dist/document-refresh-icon.entry-3a29a6e6.cjs +0 -1
  101. package/dist/globe-icon.entry-71414bc6.js +0 -15
  102. package/dist/globe-icon.entry-a0c9599a.cjs +0 -1
  103. package/dist/index-586a4206.cjs +0 -30
  104. package/dist/index-98d3a4da.js +0 -1498
  105. package/dist/loading-icon.entry-15debb7d.js +0 -15
  106. package/dist/mailbox-store-19f0c6c9-9a3ef58a.cjs +0 -1
  107. package/dist/nylas-if-state_3.entry-6c0bf8eb.cjs +0 -1
  108. package/dist/nylas-list-folders.entry-cc04a07e.cjs +0 -1
  109. package/dist/nylas-list-threads.entry-795c5a2b.cjs +0 -1
  110. package/dist/nylas-mailbox-pagination.entry-f701fd83.cjs +0 -1
  111. package/dist/nylas-mailbox-toolbar-button.entry-b9d6a3c8.cjs +0 -1
  112. package/dist/nylas-open-hours-picker.entry-aa103daf.cjs +0 -1
  113. package/dist/nylas-provider.entry-5bb55b2d.cjs +0 -1
  114. package/dist/nylas-provider.entry-b94198a1.js +0 -134
  115. package/dist/nylas-scheduler.entry-ea6fb146.cjs +0 -1
  116. package/dist/nylas-threads-refresh.entry-4002608b.cjs +0 -1
  117. package/dist/nylas-threads-search.entry-556f1219.cjs +0 -1
  118. package/dist/nylas-view-thread.entry-6faf1b51.cjs +0 -1
  119. package/dist/play-icon_2.entry-2e21b8b9.cjs +0 -1
  120. package/dist/scheduler-store-7d48e682-449277d4.cjs +0 -1
  121. package/dist/search-icon_3.entry-9b027cfc.cjs +0 -1
  122. package/dist/search-icon_3.entry-e36548ec.js +0 -101
  123. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  124. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export { applyPolyfills, defineCustomElements } from '@nylas/web-elements/loader';
3
3
  export * from './elements/index';
4
- export declare function useNylasMailboxElement(): readonly [import("react").MutableRefObject<HTMLNylasMailboxElement | undefined>, import("@nylas/web-elements").ObservableMap<import("@nylas/web-elements").NylasAuthStoreState> | null];
4
+ export declare function useNylasMailboxElement(): readonly [import("react").MutableRefObject<HTMLNylasMailboxElement | undefined>, import("@nylas/web-elements").ObservableMap<import("@nylas/web-elements").NylasAuthStoreState1> | null];
@@ -0,0 +1,15 @@
1
+ import { r as i, h as t } from "./index-e834697b.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const o = ".sc-info-icon-h{display:flex}", s = o, n = class {
5
+ constructor(e) {
6
+ i(this, e), this.width = "13", this.height = "13";
7
+ }
8
+ render() {
9
+ return t("svg", { key: "93d17587662e611c02b1987d96ef70a8c59ef718", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "d5abdfebe1476fd371e0c0c299ab26e88e2a0618", fill: "currentColor", d: "M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z" }));
10
+ }
11
+ };
12
+ n.style = s;
13
+ export {
14
+ n as info_icon
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cee193d2.cjs");require("react");require("react-dom");const n=".sc-info-icon-h{display:flex}",s=n,t=class{constructor(i){e.registerInstance(this,i),this.width="13",this.height="13"}render(){return e.h("svg",{key:"93d17587662e611c02b1987d96ef70a8c59ef718",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"d5abdfebe1476fd371e0c0c299ab26e88e2a0618",fill:"currentColor",d:"M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z"}))}};t.style=s;exports.info_icon=t;
@@ -0,0 +1,15 @@
1
+ import { r as a, h as e } from "./index-e834697b.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const c = ".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)}}", i = c, n = class {
5
+ constructor(t) {
6
+ a(this, t), this.width = "15", this.height = "15";
7
+ }
8
+ render() {
9
+ return e("div", { key: "b2ac03f4021eac652626935ffcc5cb854b5fa38b", class: "wave" }, e("div", { key: "92f4232bc3fbd135a541f6fc61e24d8efe1ebe40", class: "dot" }), e("div", { key: "ee9ce93599fca0fe36e12b5411c637dcba24ee36", class: "dot" }), e("div", { key: "f34cceedec7910a0c1bcd7db76a21e14c409df3a", class: "dot" }));
10
+ }
11
+ };
12
+ n.style = i;
13
+ export {
14
+ n as loading_icon
15
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-586a4206.cjs");require("react");require("react-dom");const i=".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)}}",n=i,t=class{constructor(a){e.registerInstance(this,a),this.width="15",this.height="15"}render(){return e.h("div",{key:"bf96616e119f5ffef943b4bee1c45cbf9919bba7",class:"wave"},e.h("div",{key:"cb1a652eae22004ac8f265f68a8dbf56adeaf0e1",class:"dot"}),e.h("div",{key:"5f608e19d592c0fb0fd81b43702c391af2667f41",class:"dot"}),e.h("div",{key:"1b2d7ab591ec6e8fe0c1502a8e290281ce140e52",class:"dot"}))}};t.style=n;exports.loading_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cee193d2.cjs");require("react");require("react-dom");const i=".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)}}",c=i,t=class{constructor(a){e.registerInstance(this,a),this.width="15",this.height="15"}render(){return e.h("div",{key:"b2ac03f4021eac652626935ffcc5cb854b5fa38b",class:"wave"},e.h("div",{key:"92f4232bc3fbd135a541f6fc61e24d8efe1ebe40",class:"dot"}),e.h("div",{key:"ee9ce93599fca0fe36e12b5411c637dcba24ee36",class:"dot"}),e.h("div",{key:"f34cceedec7910a0c1bcd7db76a21e14c409df3a",class:"dot"}))}};t.style=c;exports.loading_icon=t;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./index-10914bc1-93ff6f46.cjs"),i=require("./utils-df5c1963-1c47e21c.cjs");class g{constructor(t,e,s){this.nylasAuth=t,this.nylasAuthStore=e,this.nylasMailboxStore=s}async getMessages(){var o;if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing message:read-only scope");this.nylasMailboxStore.state.state="loading";const t=this.nylasMailboxStore.state.messgeQueryParams,e=new URLSearchParams;for(const h in t){const l=(o=t[h])==null?void 0:o.toString();l&&e.append(h,l)}const s=`/v3/grants/me/messages?${e.toString()}`,a=await this.nylasAuth.nylasAPIRequest(s);if(n.Xr(a))throw new n.Zr(a.error);const r=a.data;return this.nylasMailboxStore.state.messages=r,this.nylasMailboxStore.state.state="ready",r}async getThreadMessages(t){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing message:read-only scope");const e=await this.nylasAuth.nylasAPIRequest(`/v3/grants/me/messages?thread_id=${t}&fields=include_headers`);if(n.Xr(e))throw new n.Zr(e.error);const s=e.data;return this.nylasMailboxStore.state.messages=s,s}downloadMessageAttachments(t){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing message:read-only scope");const e=[],s=t.attachments||[];for(const a of s){const r=this.nylasAuth.nylasDownloadFileRequest(`/v3/grants/me/attachments/${a.id}?message_id=${t.id}`);e.push(r)}return e}async summarizeText(t){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing message:read-only scope");const e=await this.nylasAuth.nylasAPIRequest("/v3/grants/me/mailbox/summarize","POST",{message:{body:t}},!0,this.nylasAuth.config.elementsApiUri);if(n.Xr(e))throw new n.Zr(e.error);return e.data.summary}async textToSpeech(t,e){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing message:read-only scope");return this.nylasAuth.nylasAPIRequest("/v3/grants/me/mailbox/tts","POST",{text:t},!1,this.nylasAuth.config.elementsApiUri,{...e?{signal:e==null?void 0:e.signal}:{}})}}class w{constructor(t,e,s,a){this.nylasAuth=t,this.nylasAuthStore=e,this.nylasMailboxStore=s,this.router=a}async getThreads(t,e="overwrite",s=!0){var y;if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing thread:read-only scope");s&&(this.nylasMailboxStore.state.state="loading");const a=t||this.nylasMailboxStore.state.threadsQueryParams,r=new URLSearchParams;for(const c in a){const d=(y=a[c])==null?void 0:y.toString();typeof d<"u"&&d!==null&&r.append(c,d)}a.search_query_native?this.router.navigate(`/?query=${a.search_query_native}`,!0):this.nylasMailboxStore.state.threadsQueryParams.search_query_native&&!a.search_query_native&&this.router.navigate("/",!0),a.page_token||(this.nylasMailboxStore.state.previousThreadPageTokens=[]),this.nylasMailboxStore.state.threadsQueryParams=a;const o=`/v3/grants/me/threads?${r.toString()}`,h=await this.nylasAuth.nylasAPIRequest(o);if(n.Xr(h))throw new n.Zr(h.error);const l=h.data;switch(e){case"prepend":this.nylasMailboxStore.state.threads=[...l,...this.nylasMailboxStore.state.threads];break;case"append":this.nylasMailboxStore.state.threads=[...this.nylasMailboxStore.state.threads,...l];break;case"overwrite":default:this.nylasMailboxStore.state.threads=l;break}return h.next_cursor?this.nylasMailboxStore.state.nextThreadPageToken=h.next_cursor:this.nylasMailboxStore.state.nextThreadPageToken=null,s&&(this.nylasMailboxStore.state.state="ready"),l}async getThread(t){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing thread:read-only scope");const e=this.nylasMailboxStore.state.threads.find(o=>o.id===t);if(e)return e;this.nylasMailboxStore.state.state="loading";const s=`/v3/grants/me/threads/${t}`,a=await this.nylasAuth.nylasAPIRequest(s);if(n.Xr(a))throw new n.Zr(a.error);const r=a.data;return this.nylasMailboxStore.state.threads=this.nylasMailboxStore.state.threads.map(o=>o.id===r.id?r:o),this.nylasMailboxStore.state.state="ready",r}async nextThreadPage(t="overwrite",e=!0){if(!this.nylasMailboxStore.state.nextThreadPageToken)throw new Error("No next page token");this.nylasMailboxStore.state.previousThreadPageTokens=Array.from(new Set([...this.nylasMailboxStore.state.previousThreadPageTokens,this.nylasMailboxStore.state.threadsQueryParams.page_token??null]));const s=this.nylasMailboxStore.state.nextThreadPageToken;return this.getThreads({...this.nylasMailboxStore.state.threadsQueryParams,page_token:s},t,e)}async previousThreadPage(t="overwrite",e=!0){if(!this.nylasMailboxStore.state.previousThreadPageTokens.length)throw new Error("No previous page token");const s=[...this.nylasMailboxStore.state.previousThreadPageTokens],a=s.pop();return this.nylasMailboxStore.state.previousThreadPageTokens=s,this.getThreads({...this.nylasMailboxStore.state.threadsQueryParams,page_token:a??void 0},t,e)}updateThreadQueryParams(t){this.nylasMailboxStore.state.threadsQueryParams={...this.nylasMailboxStore.state.threadsQueryParams,...t}}back(){this.router.navigate("/",!0),this.nylasMailboxStore.state.selectedThread=null}unSelectThread(){this.nylasMailboxStore.state.selectedThread=null}async selectThread(t){this.router.navigate(`/thread/${t.id}`,!0),this.nylasMailboxStore.state.selectedThread=t,t.unread&&this.markThreadAsRead(t).catch(e=>{i.debug("Error marking thread as read",e)})}async markThreadAsRead(t){return this.updateThread(t,{unread:!1})}async updateThread(t,e){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email","modify"))throw new Error("Missing thread:modify scope");const s=`/v3/grants/me/threads/${t.id}`,a=await this.nylasAuth.nylasAPIRequest(s,"PUT",e);if(n.Xr(a))throw new n.Zr(a.error);const r=a.data;return this.nylasMailboxStore.state.threads=this.nylasMailboxStore.state.threads.map(o=>o.id===r.id?r:o),this.nylasMailboxStore.state.selectedThread=r,r}}class m{constructor(t,e,s){this.nylasAuth=t,this.nylasAuthStore=e,this.nylasMailboxStore=s}async getFolders(){if(!this.nylasAuthStore.state.isAuthenticated)throw new Error("Not authenticated");if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"]))throw new Error("Missing thread:read-only scope");this.nylasMailboxStore.state.state="loading";const t="/v3/grants/me/folders",e=await this.nylasAuth.nylasAPIRequest(t);if(n.Xr(e))throw new n.Zr(e.error);const s=e.data;return this.nylasMailboxStore.state.folders=s,this.nylasMailboxStore.state.state="ready",s}async selectFolder(t){this.nylasMailboxStore.state.threadsQueryParams={in:t.id,...this.nylasMailboxStore.state.threadsQueryParams||{}}}}class f extends Event{constructor(t,e){super(t,e),this.oldURL=e.oldURL,this.newURL=e.newURL}}class p{constructor(){this.routeChangeListeners=[],i.debug("HashRouter constructor")}destroy(){i.debug("HashRouter destroy"),window.removeEventListener("hashchange",this.onRouteChange.bind(this))}init(){if(i.debug("HashRouter init"),window.addEventListener("hashchange",this.onRouteChange.bind(this)),typeof HashChangeEvent<"u"){const t=new HashChangeEvent("hashchange",{oldURL:"",newURL:window.location.href});this.onRouteChange(t)}else{const t=new f("hashchange",{oldURL:"",newURL:window.location.href});this.onRouteChange(t)}}addRouteChangeListener(t,e){i.debug("HashRouter addRouteChangeListener"),this.routeChangeListeners.push([t,e])}navigate(t,e){if(i.debug("HashRouter navigate"),e)return window.history.pushState(null,"",`#${t}`);window.location.hash=t}setRoute(t){i.debug("HashRouter setRoute"),window.location.hash=t}matchRoute(t,e){const s=t.split("/"),a=e.split("/");if(i.debug(`HashRouter matchRoute route=${t} path=${e}`,{routeParts:s,pathParts:a}),s[1]===""&&a[0]==="")return!0;if(s.length!==a.length)return!1;for(let r=0;r<s.length;r++){const o=s[r],h=a[r];if(!o.startsWith(":")&&o!==h)return!1}return!0}getRouteParams(t){i.debug("HashRouter getRouteParams");const e={},s=t.split("/"),a=window.location.hash.split("/");return s.forEach((r,o)=>{if(r.startsWith(":")){const h=r.substring(1);e[h]=a[o]}}),e}getRouteWithParams(t,e){i.debug("HashRouter getRouteWithParams");let s=t;return Object.keys(e).forEach(a=>{s=s.replace(`:${a}`,e[a])}),s}getRoute(){return i.debug("HashRouter getRoute"),window.location.hash}onRouteChange(t){this.routeChangeListeners.forEach(async([e,s])=>{const a=t.newURL.indexOf("#")===-1?"":t.newURL.substring(t.newURL.indexOf("#")+1);if(i.debug(`HashRouter onRouteChange route=${e} path=${a}`,{event:t}),!this.matchRoute(e,a)){i.debug(`HashRouter onRouteChange route=${e} path=${a} does not match`);return}const r=this.getRouteParams(e);await s(e,a,r)})}getBasePath(){return i.debug("HashRouter getBasePath"),""}}function S(u={}){const t={state:"ready",messages:[],threads:[],folders:[],selectedThread:null,nextThreadPageToken:null,previousThreadPageTokens:[],searchQuery:"",hasNextThreadPage:!1,hasPreviousThreadPage:!1,selectedFolder:"inbox",threadsQueryParams:{in:"inbox"},messgeQueryParams:{fields:"include_headers"},...u},e=n.createStore({...t});return e.onChange("nextThreadPageToken",s=>{e.set("hasNextThreadPage",s!==null)}),e.onChange("previousThreadPageTokens",s=>{e.set("hasPreviousThreadPage",s.length>0)}),e.onChange("threadsQueryParams",s=>{e.set("selectedFolder",s.in||"inbox"),e.set("searchQuery",s.search_query_native||"")}),e.reset=()=>{for(const s in t){const a=t[s];e.set(s,a)}},e}exports.CreateNylasMailboxStore=S;exports.HashRouter=p;exports.NylasFoldersConnector=m;exports.NylasMessagesConnector=g;exports.NylasThreadsConnector=w;
@@ -1,57 +1,11 @@
1
- import { d as o } from "./utils-5074a070-ce33ee6b.js";
2
- import { c as f, X as u, Z as d } from "./index-b30d446a-e0eaccad.js";
1
+ import { c as m, X as l, Z as u } from "./index-10914bc1-1a809477.js";
2
+ import { d as n } from "./utils-df5c1963-d9833bcb.js";
3
3
  class S {
4
- constructor(t, e) {
5
- this.nylasAuth = t, this.nylasAuthStore = e;
6
- }
7
- async validateSession() {
8
- const t = await this.isAccessTokenValid();
9
- if (!t)
10
- this.logout();
11
- else {
12
- let e = await this.nylasAuth.getTokenInfo();
13
- if (e) {
14
- const a = Math.floor(Date.now() / 1e3);
15
- if (e.expires_in && e.expires_in - a < 3e5 && (o("[NylasAuthConnectorMixin] Refreshing access token"), e = await this.nylasAuth.refreshAccessToken(), !e)) {
16
- o("[NylasAuthConnectorMixin] Token is expired and could not be refreshed. Logging out."), this.logout();
17
- return;
18
- }
19
- this.nylasAuthStore.state.tokenInfo = e;
20
- }
21
- }
22
- this.nylasAuthStore.state.isAuthenticated = t;
23
- }
24
- async isAuthenticated() {
25
- return this.nylasAuth.isAuthenticated();
26
- }
27
- async getTokenInfo() {
28
- return this.nylasAuth.getTokenInfo();
29
- }
30
- async isAccessTokenValid() {
31
- return this.nylasAuth.isAccessTokenValid();
32
- }
33
- async logout() {
34
- await this.nylasAuth.logout();
35
- }
36
- async getHostedAuthRedirectURL(t, e, s) {
37
- return this.nylasAuth.getHostedAuthRedirectURL(t, e, s);
38
- }
39
- async manageHostedAuthCodeExchange(t) {
40
- const s = new URL(t).searchParams.get("code");
41
- if (s) {
42
- const a = await this.nylasAuth.exchangeAuthCodeForTokenInfo(s);
43
- if (a)
44
- return this.nylasAuthStore.state.tokenInfo = a, this.nylasAuthStore.state.isAuthenticated = !0, a;
45
- }
46
- return null;
47
- }
48
- }
49
- class A {
50
4
  constructor(t, e, s) {
51
5
  this.nylasAuth = t, this.nylasAuthStore = e, this.nylasMailboxStore = s;
52
6
  }
53
7
  async getMessages() {
54
- var n;
8
+ var o;
55
9
  if (!this.nylasAuthStore.state.isAuthenticated)
56
10
  throw new Error("Not authenticated");
57
11
  if (!this.nylasAuth.hasScopeByType("email", ["read-only", "modify"]))
@@ -59,12 +13,12 @@ class A {
59
13
  this.nylasMailboxStore.state.state = "loading";
60
14
  const t = this.nylasMailboxStore.state.messgeQueryParams, e = new URLSearchParams();
61
15
  for (const i in t) {
62
- const l = (n = t[i]) == null ? void 0 : n.toString();
63
- l && e.append(i, l);
16
+ const h = (o = t[i]) == null ? void 0 : o.toString();
17
+ h && e.append(i, h);
64
18
  }
65
19
  const s = `/v3/grants/me/messages?${e.toString()}`, a = await this.nylasAuth.nylasAPIRequest(s);
66
- if (u(a))
67
- throw new d(a.error);
20
+ if (l(a))
21
+ throw new u(a.error);
68
22
  const r = a.data;
69
23
  return this.nylasMailboxStore.state.messages = r, this.nylasMailboxStore.state.state = "ready", r;
70
24
  }
@@ -74,8 +28,8 @@ class A {
74
28
  if (!this.nylasAuth.hasScopeByType("email", ["read-only", "modify"]))
75
29
  throw new Error("Missing message:read-only scope");
76
30
  const e = await this.nylasAuth.nylasAPIRequest(`/v3/grants/me/messages?thread_id=${t}&fields=include_headers`);
77
- if (u(e))
78
- throw new d(e.error);
31
+ if (l(e))
32
+ throw new u(e.error);
79
33
  const s = e.data;
80
34
  return this.nylasMailboxStore.state.messages = s, s;
81
35
  }
@@ -101,8 +55,8 @@ class A {
101
55
  body: t
102
56
  }
103
57
  }, !0, this.nylasAuth.config.elementsApiUri);
104
- if (u(e))
105
- throw new d(e.error);
58
+ if (l(e))
59
+ throw new u(e.error);
106
60
  return e.data.summary;
107
61
  }
108
62
  async textToSpeech(t, e) {
@@ -117,12 +71,12 @@ class A {
117
71
  });
118
72
  }
119
73
  }
120
- class T {
74
+ class x {
121
75
  constructor(t, e, s, a) {
122
76
  this.nylasAuth = t, this.nylasAuthStore = e, this.nylasMailboxStore = s, this.router = a;
123
77
  }
124
78
  async getThreads(t, e = "overwrite", s = !0) {
125
- var y;
79
+ var c;
126
80
  if (!this.nylasAuthStore.state.isAuthenticated)
127
81
  throw new Error("Not authenticated");
128
82
  if (!this.nylasAuth.hasScopeByType("email", ["read-only", "modify"]))
@@ -130,42 +84,42 @@ class T {
130
84
  s && (this.nylasMailboxStore.state.state = "loading");
131
85
  const a = t || this.nylasMailboxStore.state.threadsQueryParams, r = new URLSearchParams();
132
86
  for (const g in a) {
133
- const c = (y = a[g]) == null ? void 0 : y.toString();
134
- typeof c < "u" && c !== null && r.append(g, c);
87
+ const y = (c = a[g]) == null ? void 0 : c.toString();
88
+ typeof y < "u" && y !== null && r.append(g, y);
135
89
  }
136
90
  a.search_query_native ? this.router.navigate(`/?query=${a.search_query_native}`, !0) : this.nylasMailboxStore.state.threadsQueryParams.search_query_native && !a.search_query_native && this.router.navigate("/", !0), a.page_token || (this.nylasMailboxStore.state.previousThreadPageTokens = []), this.nylasMailboxStore.state.threadsQueryParams = a;
137
- const n = `/v3/grants/me/threads?${r.toString()}`, i = await this.nylasAuth.nylasAPIRequest(n);
138
- if (u(i))
139
- throw new d(i.error);
140
- const l = i.data;
91
+ const o = `/v3/grants/me/threads?${r.toString()}`, i = await this.nylasAuth.nylasAPIRequest(o);
92
+ if (l(i))
93
+ throw new u(i.error);
94
+ const h = i.data;
141
95
  switch (e) {
142
96
  case "prepend":
143
- this.nylasMailboxStore.state.threads = [...l, ...this.nylasMailboxStore.state.threads];
97
+ this.nylasMailboxStore.state.threads = [...h, ...this.nylasMailboxStore.state.threads];
144
98
  break;
145
99
  case "append":
146
- this.nylasMailboxStore.state.threads = [...this.nylasMailboxStore.state.threads, ...l];
100
+ this.nylasMailboxStore.state.threads = [...this.nylasMailboxStore.state.threads, ...h];
147
101
  break;
148
102
  case "overwrite":
149
103
  default:
150
- this.nylasMailboxStore.state.threads = l;
104
+ this.nylasMailboxStore.state.threads = h;
151
105
  break;
152
106
  }
153
- return i.next_cursor ? this.nylasMailboxStore.state.nextThreadPageToken = i.next_cursor : this.nylasMailboxStore.state.nextThreadPageToken = null, s && (this.nylasMailboxStore.state.state = "ready"), l;
107
+ return i.next_cursor ? this.nylasMailboxStore.state.nextThreadPageToken = i.next_cursor : this.nylasMailboxStore.state.nextThreadPageToken = null, s && (this.nylasMailboxStore.state.state = "ready"), h;
154
108
  }
155
109
  async getThread(t) {
156
110
  if (!this.nylasAuthStore.state.isAuthenticated)
157
111
  throw new Error("Not authenticated");
158
112
  if (!this.nylasAuth.hasScopeByType("email", ["read-only", "modify"]))
159
113
  throw new Error("Missing thread:read-only scope");
160
- const e = this.nylasMailboxStore.state.threads.find((n) => n.id === t);
114
+ const e = this.nylasMailboxStore.state.threads.find((o) => o.id === t);
161
115
  if (e)
162
116
  return e;
163
117
  this.nylasMailboxStore.state.state = "loading";
164
118
  const s = `/v3/grants/me/threads/${t}`, a = await this.nylasAuth.nylasAPIRequest(s);
165
- if (u(a))
166
- throw new d(a.error);
119
+ if (l(a))
120
+ throw new u(a.error);
167
121
  const r = a.data;
168
- return this.nylasMailboxStore.state.threads = this.nylasMailboxStore.state.threads.map((n) => n.id === r.id ? r : n), this.nylasMailboxStore.state.state = "ready", r;
122
+ return this.nylasMailboxStore.state.threads = this.nylasMailboxStore.state.threads.map((o) => o.id === r.id ? r : o), this.nylasMailboxStore.state.state = "ready", r;
169
123
  }
170
124
  async nextThreadPage(t = "overwrite", e = !0) {
171
125
  if (!this.nylasMailboxStore.state.nextThreadPageToken)
@@ -200,7 +154,7 @@ class T {
200
154
  }
201
155
  async selectThread(t) {
202
156
  this.router.navigate(`/thread/${t.id}`, !0), this.nylasMailboxStore.state.selectedThread = t, t.unread && this.markThreadAsRead(t).catch((e) => {
203
- o("Error marking thread as read", e);
157
+ n("Error marking thread as read", e);
204
158
  });
205
159
  }
206
160
  async markThreadAsRead(t) {
@@ -212,13 +166,13 @@ class T {
212
166
  if (!this.nylasAuth.hasScopeByType("email", "modify"))
213
167
  throw new Error("Missing thread:modify scope");
214
168
  const s = `/v3/grants/me/threads/${t.id}`, a = await this.nylasAuth.nylasAPIRequest(s, "PUT", e);
215
- if (u(a))
216
- throw new d(a.error);
169
+ if (l(a))
170
+ throw new u(a.error);
217
171
  const r = a.data;
218
- return this.nylasMailboxStore.state.threads = this.nylasMailboxStore.state.threads.map((n) => n.id === r.id ? r : n), this.nylasMailboxStore.state.selectedThread = r, r;
172
+ return this.nylasMailboxStore.state.threads = this.nylasMailboxStore.state.threads.map((o) => o.id === r.id ? r : o), this.nylasMailboxStore.state.selectedThread = r, r;
219
173
  }
220
174
  }
221
- class x {
175
+ class T {
222
176
  constructor(t, e, s) {
223
177
  this.nylasAuth = t, this.nylasAuthStore = e, this.nylasMailboxStore = s;
224
178
  }
@@ -229,8 +183,8 @@ class x {
229
183
  throw new Error("Missing thread:read-only scope");
230
184
  this.nylasMailboxStore.state.state = "loading";
231
185
  const t = "/v3/grants/me/folders", e = await this.nylasAuth.nylasAPIRequest(t);
232
- if (u(e))
233
- throw new d(e.error);
186
+ if (l(e))
187
+ throw new u(e.error);
234
188
  const s = e.data;
235
189
  return this.nylasMailboxStore.state.folders = s, this.nylasMailboxStore.state.state = "ready", s;
236
190
  }
@@ -241,76 +195,76 @@ class x {
241
195
  };
242
196
  }
243
197
  }
244
- class m extends Event {
198
+ class w extends Event {
245
199
  constructor(t, e) {
246
200
  super(t, e), this.oldURL = e.oldURL, this.newURL = e.newURL;
247
201
  }
248
202
  }
249
203
  class P {
250
204
  constructor() {
251
- this.routeChangeListeners = [], o("HashRouter constructor");
205
+ this.routeChangeListeners = [], n("HashRouter constructor");
252
206
  }
253
207
  destroy() {
254
- o("HashRouter destroy"), window.removeEventListener("hashchange", this.onRouteChange.bind(this));
208
+ n("HashRouter destroy"), window.removeEventListener("hashchange", this.onRouteChange.bind(this));
255
209
  }
256
210
  init() {
257
- if (o("HashRouter init"), window.addEventListener("hashchange", this.onRouteChange.bind(this)), typeof HashChangeEvent < "u") {
211
+ if (n("HashRouter init"), window.addEventListener("hashchange", this.onRouteChange.bind(this)), typeof HashChangeEvent < "u") {
258
212
  const t = new HashChangeEvent("hashchange", { oldURL: "", newURL: window.location.href });
259
213
  this.onRouteChange(t);
260
214
  } else {
261
- const t = new m("hashchange", { oldURL: "", newURL: window.location.href });
215
+ const t = new w("hashchange", { oldURL: "", newURL: window.location.href });
262
216
  this.onRouteChange(t);
263
217
  }
264
218
  }
265
219
  addRouteChangeListener(t, e) {
266
- o("HashRouter addRouteChangeListener"), this.routeChangeListeners.push([t, e]);
220
+ n("HashRouter addRouteChangeListener"), this.routeChangeListeners.push([t, e]);
267
221
  }
268
222
  navigate(t, e) {
269
- if (o("HashRouter navigate"), e)
223
+ if (n("HashRouter navigate"), e)
270
224
  return window.history.pushState(null, "", `#${t}`);
271
225
  window.location.hash = t;
272
226
  }
273
227
  setRoute(t) {
274
- o("HashRouter setRoute"), window.location.hash = t;
228
+ n("HashRouter setRoute"), window.location.hash = t;
275
229
  }
276
230
  matchRoute(t, e) {
277
231
  const s = t.split("/"), a = e.split("/");
278
- if (o(`HashRouter matchRoute route=${t} path=${e}`, { routeParts: s, pathParts: a }), s[1] === "" && a[0] === "")
232
+ if (n(`HashRouter matchRoute route=${t} path=${e}`, { routeParts: s, pathParts: a }), s[1] === "" && a[0] === "")
279
233
  return !0;
280
234
  if (s.length !== a.length)
281
235
  return !1;
282
236
  for (let r = 0; r < s.length; r++) {
283
- const n = s[r], i = a[r];
284
- if (!n.startsWith(":") && n !== i)
237
+ const o = s[r], i = a[r];
238
+ if (!o.startsWith(":") && o !== i)
285
239
  return !1;
286
240
  }
287
241
  return !0;
288
242
  }
289
243
  getRouteParams(t) {
290
- o("HashRouter getRouteParams");
244
+ n("HashRouter getRouteParams");
291
245
  const e = {}, s = t.split("/"), a = window.location.hash.split("/");
292
- return s.forEach((r, n) => {
246
+ return s.forEach((r, o) => {
293
247
  if (r.startsWith(":")) {
294
248
  const i = r.substring(1);
295
- e[i] = a[n];
249
+ e[i] = a[o];
296
250
  }
297
251
  }), e;
298
252
  }
299
253
  getRouteWithParams(t, e) {
300
- o("HashRouter getRouteWithParams");
254
+ n("HashRouter getRouteWithParams");
301
255
  let s = t;
302
256
  return Object.keys(e).forEach((a) => {
303
257
  s = s.replace(`:${a}`, e[a]);
304
258
  }), s;
305
259
  }
306
260
  getRoute() {
307
- return o("HashRouter getRoute"), window.location.hash;
261
+ return n("HashRouter getRoute"), window.location.hash;
308
262
  }
309
263
  onRouteChange(t) {
310
264
  this.routeChangeListeners.forEach(async ([e, s]) => {
311
265
  const a = t.newURL.indexOf("#") === -1 ? "" : t.newURL.substring(t.newURL.indexOf("#") + 1);
312
- if (o(`HashRouter onRouteChange route=${e} path=${a}`, { event: t }), !this.matchRoute(e, a)) {
313
- o(`HashRouter onRouteChange route=${e} path=${a} does not match`);
266
+ if (n(`HashRouter onRouteChange route=${e} path=${a}`, { event: t }), !this.matchRoute(e, a)) {
267
+ n(`HashRouter onRouteChange route=${e} path=${a} does not match`);
314
268
  return;
315
269
  }
316
270
  const r = this.getRouteParams(e);
@@ -318,24 +272,10 @@ class P {
318
272
  });
319
273
  }
320
274
  getBasePath() {
321
- return o("HashRouter getBasePath"), "";
275
+ return n("HashRouter getBasePath"), "";
322
276
  }
323
277
  }
324
- function b(h = {}) {
325
- const t = {
326
- isAuthenticated: !1,
327
- tokenInfo: null,
328
- state: "ready",
329
- ...h
330
- }, e = f(t);
331
- return e.reset = () => {
332
- for (const s in t) {
333
- const a = t[s];
334
- e.set(s, a);
335
- }
336
- }, e;
337
- }
338
- function M(h = {}) {
278
+ function b(d = {}) {
339
279
  const t = {
340
280
  state: "ready",
341
281
  messages: [],
@@ -354,8 +294,8 @@ function M(h = {}) {
354
294
  messgeQueryParams: {
355
295
  fields: "include_headers"
356
296
  },
357
- ...h
358
- }, e = f({ ...t });
297
+ ...d
298
+ }, e = m({ ...t });
359
299
  return e.onChange("nextThreadPageToken", (s) => {
360
300
  e.set("hasNextThreadPage", s !== null);
361
301
  }), e.onChange("previousThreadPageTokens", (s) => {
@@ -372,9 +312,7 @@ function M(h = {}) {
372
312
  export {
373
313
  b as C,
374
314
  P as H,
375
- S as N,
376
- M as a,
377
- T as b,
378
- A as c,
379
- x as d
315
+ x as N,
316
+ S as a,
317
+ T as b
380
318
  };