@nylas/react 1.1.0-canary.9 → 1.1.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 (156) hide show
  1. package/README.md +110 -2
  2. package/dist/add-circle-icon_2.entry-7165bd0e.js +25 -0
  3. package/dist/add-circle-icon_2.entry-f1ddca18.cjs +1 -0
  4. package/dist/archive-icon_7.entry-7411c224.js +75 -0
  5. package/dist/archive-icon_7.entry-e3df60ed.cjs +1 -0
  6. package/dist/arrow-icon.entry-280e18b0.cjs +1 -0
  7. package/dist/arrow-icon.entry-38949317.js +15 -0
  8. package/dist/bold-icon_3.entry-5963945c.js +35 -0
  9. package/dist/bold-icon_3.entry-5dffbedd.cjs +1 -0
  10. package/dist/button-component_2.entry-237733b4.js +26 -0
  11. package/dist/button-component_2.entry-b29d2873.cjs +1 -0
  12. package/dist/calendar-agenda-fill-icon_48.entry-9afba869.js +5105 -0
  13. package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +7 -0
  14. package/dist/calendar-cancel-icon.entry-77ccf227.cjs +1 -0
  15. package/dist/calendar-cancel-icon.entry-780723a6.js +15 -0
  16. package/dist/calendar-check-icon_2.entry-2c89c230.js +25 -0
  17. package/dist/calendar-check-icon_2.entry-b37ac7f0.cjs +1 -0
  18. package/dist/calendar-icon.entry-02dd3990.js +15 -0
  19. package/dist/calendar-icon.entry-ffc93569.cjs +1 -0
  20. package/dist/checkbox-component_2.entry-00b6a1e9.cjs +1 -0
  21. package/dist/checkbox-component_2.entry-ee9d0e6c.js +56 -0
  22. package/dist/chevron-icon_3.entry-468abc26.cjs +1 -0
  23. package/dist/chevron-icon_3.entry-f62e9ef1.js +129 -0
  24. package/dist/clock-icon_4.entry-766a1b23.js +45 -0
  25. package/dist/clock-icon_4.entry-7dc2cc4a.cjs +1 -0
  26. package/dist/constants-50c3e067-8a40a5fe.js +3883 -0
  27. package/dist/constants-50c3e067-9f2a6372.cjs +15 -0
  28. package/dist/copy-icon.entry-2a841508.js +15 -0
  29. package/dist/copy-icon.entry-e5251410.cjs +1 -0
  30. package/dist/core-js-38e53e34.cjs +4 -0
  31. package/dist/core-js-a9d3b6e1.js +3297 -0
  32. package/dist/delete-icon_2.entry-1a5c39dc.cjs +1 -0
  33. package/dist/delete-icon_2.entry-64555a2f.js +25 -0
  34. package/dist/document-refresh-icon.entry-4bf6398b.js +15 -0
  35. package/dist/document-refresh-icon.entry-fdc7ddda.cjs +1 -0
  36. package/dist/dom-68f08be9.cjs +15 -0
  37. package/dist/dom-86e17616.js +664 -0
  38. package/dist/{types/elements → elements}/index.d.ts +47 -1
  39. package/dist/elements-dc5b338e-2da1fe61.js +28031 -0
  40. package/dist/elements-dc5b338e-c8016c3d.cjs +16516 -0
  41. package/dist/flow-40ff9cea-6f8c30e2.cjs +9 -0
  42. package/dist/flow-40ff9cea-ee70fdf5.js +505 -0
  43. package/dist/focus-visible-e8093c16-0a38a184.cjs +1 -0
  44. package/dist/focus-visible-e8093c16-9d0c98c0.js +84 -0
  45. package/dist/forward-icon_6.entry-390ef70a.js +953 -0
  46. package/dist/forward-icon_6.entry-7238ef38.cjs +3 -0
  47. package/dist/globe-icon.entry-81f42f89.cjs +1 -0
  48. package/dist/globe-icon.entry-8d106260.js +15 -0
  49. package/dist/google-logo-icon_4.entry-aabd3886.js +680 -0
  50. package/dist/google-logo-icon_4.entry-fa2b8999.cjs +1 -0
  51. package/dist/index-53420959-5fc8ad2b.js +5 -0
  52. package/dist/index-53420959-fcf45780.cjs +1 -0
  53. package/dist/index-5ccfd9df.js +7859 -0
  54. package/dist/index-6d9eeb53-58c8980a.js +4971 -0
  55. package/dist/index-6d9eeb53-b2a6d09f.cjs +41 -0
  56. package/dist/index-eb33703c.cjs +42 -0
  57. package/dist/index.es-c9454237-00ccd1e6.js +3135 -0
  58. package/dist/index.es-c9454237-b64161d1.cjs +7 -0
  59. package/dist/info-icon_2.entry-b2e11336.cjs +1 -0
  60. package/dist/info-icon_2.entry-bb8ed71c.js +34 -0
  61. package/dist/input-component.entry-378b1ccc.cjs +1 -0
  62. package/dist/input-component.entry-cb86170f.js +65 -0
  63. package/dist/input-dropdown.entry-98954c93.cjs +1 -0
  64. package/dist/input-dropdown.entry-a76c339e.js +134 -0
  65. package/dist/mailbox-store-edc386fc-156b7236.cjs +1 -0
  66. package/dist/mailbox-store-edc386fc-8bc7558b.js +380 -0
  67. package/dist/multi-select-dropdown.entry-40b855e1.cjs +1 -0
  68. package/dist/multi-select-dropdown.entry-6b686695.js +91 -0
  69. package/dist/nylas-booked-event-card_12.entry-9d693125.cjs +1 -0
  70. package/dist/nylas-booked-event-card_12.entry-e861bb16.js +1134 -0
  71. package/dist/nylas-form-card.entry-b158d789.js +57 -0
  72. package/dist/nylas-form-card.entry-ca4a8746.cjs +1 -0
  73. package/dist/nylas-if-state.entry-8e4d922c.js +94 -0
  74. package/dist/nylas-if-state.entry-95fac42d.cjs +1 -0
  75. package/dist/nylas-list-folders.entry-83c39684.js +120 -0
  76. package/dist/nylas-list-folders.entry-8a22e0c8.cjs +1 -0
  77. package/dist/nylas-list-threads.entry-54c582af.cjs +1 -0
  78. package/dist/nylas-list-threads.entry-7ea370e1.js +70 -0
  79. package/dist/nylas-login.entry-9115fd81.js +73 -0
  80. package/dist/nylas-login.entry-fb627e40.cjs +1 -0
  81. package/dist/nylas-mailbox-pagination.entry-04626d27.cjs +1 -0
  82. package/dist/nylas-mailbox-pagination.entry-3ff02cf9.js +101 -0
  83. package/dist/nylas-mailbox-toolbar-button.entry-8d00c789.cjs +1 -0
  84. package/dist/nylas-mailbox-toolbar-button.entry-f752e925.js +82 -0
  85. package/dist/nylas-mailbox.entry-99c27b6c.js +134 -0
  86. package/dist/nylas-mailbox.entry-b3974f4e.cjs +1 -0
  87. package/dist/nylas-provider.entry-a3ad02a5.cjs +1 -0
  88. package/dist/nylas-provider.entry-c206aa32.js +145 -0
  89. package/dist/nylas-reminder-emails.entry-414ce6fe.js +129 -0
  90. package/dist/nylas-reminder-emails.entry-59c07bfe.cjs +4 -0
  91. package/dist/nylas-reminder-time_2.entry-197d83a0.js +105 -0
  92. package/dist/nylas-reminder-time_2.entry-d79dcd85.cjs +1 -0
  93. package/dist/nylas-scheduler-editor.entry-7f389982.js +1447 -0
  94. package/dist/nylas-scheduler-editor.entry-f1c6964a.cjs +2 -0
  95. package/dist/nylas-scheduling.entry-1a8bd6fc.cjs +1 -0
  96. package/dist/nylas-scheduling.entry-4fa5381d.js +345 -0
  97. package/dist/nylas-threads-refresh.entry-20602e7b.js +74 -0
  98. package/dist/nylas-threads-refresh.entry-56b53449.cjs +1 -0
  99. package/dist/nylas-threads-search.entry-8872473c.js +69 -0
  100. package/dist/nylas-threads-search.entry-8e0ec3ae.cjs +1 -0
  101. package/dist/nylas-time-window-picker.entry-9ac542b7.js +316 -0
  102. package/dist/nylas-time-window-picker.entry-ca47f721.cjs +1 -0
  103. package/dist/nylas-view-thread.entry-1f758e43.cjs +1 -0
  104. package/dist/nylas-view-thread.entry-dcd3d5be.js +203 -0
  105. package/dist/person-icon.entry-63b28ace.cjs +1 -0
  106. package/dist/person-icon.entry-93130c05.js +15 -0
  107. package/dist/play-icon_2.entry-6a99c32d.js +25 -0
  108. package/dist/play-icon_2.entry-b67fb649.cjs +1 -0
  109. package/dist/react.cjs +1 -0
  110. package/dist/react.js +144 -0
  111. package/dist/refresh-icon.entry-84783c91.js +15 -0
  112. package/dist/refresh-icon.entry-b49792fc.cjs +1 -0
  113. package/dist/register-component-887199a9-003f96c5.cjs +1 -0
  114. package/dist/register-component-887199a9-b41dfa7a.js +109 -0
  115. package/dist/scheduler-config-store-2a3b403d-73610089.js +27 -0
  116. package/dist/scheduler-config-store-2a3b403d-a5e3433a.cjs +1 -0
  117. package/dist/scheduler-store-fe281404-bddb1b6a.js +469 -0
  118. package/dist/scheduler-store-fe281404-c3e477f6.cjs +1 -0
  119. package/dist/textarea-component.entry-28c4bc05.cjs +1 -0
  120. package/dist/textarea-component.entry-40e959e5.js +36 -0
  121. package/dist/time-period-selector.entry-af71523a.cjs +1 -0
  122. package/dist/time-period-selector.entry-da5d8652.js +93 -0
  123. package/dist/translate-icon.entry-92b83635.js +15 -0
  124. package/dist/translate-icon.entry-a2ed4f76.cjs +1 -0
  125. package/dist/warning-icon.entry-19f721c3.js +15 -0
  126. package/dist/warning-icon.entry-3ab9a59e.cjs +1 -0
  127. package/package.json +12 -8
  128. package/dist/elements/index.js +0 -92
  129. package/dist/elements/index.js.map +0 -1
  130. package/dist/elements/react-component-lib/createComponent.js +0 -65
  131. package/dist/elements/react-component-lib/createComponent.js.map +0 -1
  132. package/dist/elements/react-component-lib/createOverlayComponent.js +0 -98
  133. package/dist/elements/react-component-lib/createOverlayComponent.js.map +0 -1
  134. package/dist/elements/react-component-lib/index.js +0 -3
  135. package/dist/elements/react-component-lib/index.js.map +0 -1
  136. package/dist/elements/react-component-lib/interfaces.js +0 -2
  137. package/dist/elements/react-component-lib/interfaces.js.map +0 -1
  138. package/dist/elements/react-component-lib/utils/attachProps.js +0 -92
  139. package/dist/elements/react-component-lib/utils/attachProps.js.map +0 -1
  140. package/dist/elements/react-component-lib/utils/case.js +0 -7
  141. package/dist/elements/react-component-lib/utils/case.js.map +0 -1
  142. package/dist/elements/react-component-lib/utils/dev.js +0 -13
  143. package/dist/elements/react-component-lib/utils/dev.js.map +0 -1
  144. package/dist/elements/react-component-lib/utils/index.js +0 -31
  145. package/dist/elements/react-component-lib/utils/index.js.map +0 -1
  146. package/dist/index.js +0 -29
  147. package/dist/index.js.map +0 -1
  148. /package/dist/{types/elements → elements}/react-component-lib/createComponent.d.ts +0 -0
  149. /package/dist/{types/elements → elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  150. /package/dist/{types/elements → elements}/react-component-lib/index.d.ts +0 -0
  151. /package/dist/{types/elements → elements}/react-component-lib/interfaces.d.ts +0 -0
  152. /package/dist/{types/elements → elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  153. /package/dist/{types/elements → elements}/react-component-lib/utils/case.d.ts +0 -0
  154. /package/dist/{types/elements → elements}/react-component-lib/utils/dev.d.ts +0 -0
  155. /package/dist/{types/elements → elements}/react-component-lib/utils/index.d.ts +0 -0
  156. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,203 @@
1
+ import { r as k, c as p, d, h as a, t as M, F as m, H as x, g as E, q as D, a as S, s as g } from "./index-5ccfd9df.js";
2
+ import { R as T } from "./register-component-887199a9-b41dfa7a.js";
3
+ import "react";
4
+ import "react-dom";
5
+ function R(t, e, s, o, r) {
6
+ if (!o || !s || s.children.length > 0)
7
+ return;
8
+ d("[nylas-view-thread] Rendering email", { message: t, attachments: e, viewEmailElement: o });
9
+ const n = o.cloneNode(!0);
10
+ n.message = t.data, n.parent = r, s.appendChild(n);
11
+ }
12
+ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o, onShowContactDataClick: r, parent: n }) => {
13
+ var l, i, c, v, w, f, b;
14
+ return a(
15
+ m,
16
+ null,
17
+ a(
18
+ "div",
19
+ { key: e.id, class: "message" },
20
+ a(
21
+ "div",
22
+ { class: "sub-header", "data-id": e.data.id, onClick: o },
23
+ a("div", { class: "avatar" }, e.data.from && ((l = e.data.from[0]) == null ? void 0 : l.name) && ((c = (i = e.data.from[0]) == null ? void 0 : i.name[0]) == null ? void 0 : c.toUpperCase())),
24
+ a(
25
+ "div",
26
+ { class: "from" },
27
+ a("span", { class: "name" }, e.data.from && ((v = e.data.from[0]) == null ? void 0 : v.name)),
28
+ " ",
29
+ a("span", { class: "email" }, e.data.from && ((w = e.data.from[0]) == null ? void 0 : w.email))
30
+ ),
31
+ a(
32
+ "div",
33
+ { class: "date" },
34
+ new Date(e.data.date * 1e3).toLocaleTimeString(void 0, {
35
+ timeStyle: "short"
36
+ }),
37
+ " ",
38
+ "(",
39
+ D(new Date(e.data.date * 1e3)),
40
+ ")"
41
+ ),
42
+ a(
43
+ "sp-button-group",
44
+ { class: "buttons" },
45
+ a("nylas-summarize-message-button", { message: e.data })
46
+ ),
47
+ e.collapse && a("div", { class: "snippet" }, e.data.snippet),
48
+ !e.collapse && e.data.to && a(
49
+ "div",
50
+ { class: "to" },
51
+ a("span", null, "to"),
52
+ " ",
53
+ S(e.data.to),
54
+ " ",
55
+ a(
56
+ "button",
57
+ { type: "button", value: e.data.id, onClick: r, class: {
58
+ expand: !0,
59
+ "expand--showContactData": e.showContactData
60
+ } },
61
+ a("chevron-icon", null)
62
+ )
63
+ )
64
+ ),
65
+ e.showContactData && a(
66
+ "div",
67
+ { class: "address-info" },
68
+ a("div", { class: "label" }, "From"),
69
+ a("div", { class: "value" }, g((f = e.data) != null && f.from ? (b = e == null ? void 0 : e.data) == null ? void 0 : b.from[0] : { name: "", email: "" })),
70
+ e.data.to && a(
71
+ m,
72
+ null,
73
+ a("div", { class: "label" }, "To"),
74
+ a("div", { class: "value" }, e.data.to.map((h) => a("div", null, g(h))))
75
+ ),
76
+ typeof e.data.cc < "u" && e.data.cc.length > 0 && a(
77
+ m,
78
+ null,
79
+ a("div", { class: "label" }, "CC"),
80
+ a("div", { class: "value" }, e.data.cc.map((h) => a("div", null, g(h))))
81
+ )
82
+ ),
83
+ !e.collapse && t && a("div", { key: e.id, ref: (h) => R(e, s, h, t, n) }),
84
+ !e.collapse && !t && a("nylas-view-email", { key: e.id, message: e.data, parent: n })
85
+ ),
86
+ a("hr", null)
87
+ );
88
+ }, A = ':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}}', V = A;
89
+ var _ = function(t, e, s, o) {
90
+ var r = arguments.length, n = r < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, s) : o, l;
91
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
92
+ n = Reflect.decorate(t, e, s, o);
93
+ else
94
+ for (var i = t.length - 1; i >= 0; i--)
95
+ (l = t[i]) && (n = (r < 3 ? l(n) : r > 3 ? l(e, s, n) : l(e, s)) || n);
96
+ return r > 3 && n && Object.defineProperty(e, s, n), n;
97
+ }, y = function(t, e) {
98
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
99
+ return Reflect.metadata(t, e);
100
+ };
101
+ const C = class {
102
+ constructor(t) {
103
+ k(this, t), this.threadSelected = p(this, "threadSelected", 7), this.showContactDataClicked = p(this, "showContactDataClicked", 7), this.messageClicked = p(this, "messageClicked", 7), this.nylasViewEmailElement = null, this.nylasComposerElement = null, this.onShowContactDataClick = (e) => {
104
+ e.stopPropagation();
105
+ const o = e.target.value, r = this.internalMessages.find((l) => l.data.id === o);
106
+ if (!r) {
107
+ d(`[nylas-view-thread] Could not find message ${o}`);
108
+ return;
109
+ }
110
+ this.showContactDataClicked.emit(r.data).defaultPrevented || (r.showContactData = !r.showContactData, this.internalMessages = [...this.internalMessages]), d(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData ? "collapsed" : "expanded"}`);
111
+ }, this.onMessageClick = (e) => {
112
+ var l;
113
+ const o = e.target.dataset.id, r = this.internalMessages.find((i) => i.data.id === o);
114
+ if (!r) {
115
+ d(`[nylas-view-thread] Could not find message ${o}`);
116
+ return;
117
+ }
118
+ 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]), d(`[nylas-view-thread] message clicked ${o} ${r.collapse ? "collapsed" : "expanded"}`);
119
+ }, this.onShowAllEmailsClick = () => {
120
+ this.showAllEmails = !this.showAllEmails;
121
+ }, this.showComposerClick = () => {
122
+ this.showComposer = !this.showComposer;
123
+ }, this.draft = void 0, this.thread = void 0, this.messages = [], this.attachments = [], this.state = "loading", this.internalMessages = [], this.showAllEmails = !1, this.showComposer = !1;
124
+ }
125
+ connectedCallback() {
126
+ }
127
+ disconnectedCallback() {
128
+ }
129
+ async componentWillLoad() {
130
+ d("[nylas-view-thread] Component will load"), this.updateInternalMessages(this.messages);
131
+ const t = this.host.querySelector("template.nylas-view-email");
132
+ if (!t) {
133
+ d("[nylas-view-thread] Could not find template");
134
+ return;
135
+ }
136
+ const e = document.importNode(t.content, !0);
137
+ this.nylasViewEmailElement = e.querySelector("nylas-view-email");
138
+ const s = this.host.querySelector("template.nylas-composer");
139
+ if (!s) {
140
+ d("[nylas-view-thread] Could not find composer template");
141
+ return;
142
+ }
143
+ const o = document.importNode(s.content, !0);
144
+ this.nylasComposerElement = o.querySelector("nylas-composer");
145
+ }
146
+ async componentDidLoad() {
147
+ d("[nylas-view-thread] Component did load");
148
+ }
149
+ async threadChanged(t) {
150
+ d("[nylas-view-thread] Thread changed", { thread: t }), this.internalMessages = [], this.threadSelected.emit(t).defaultPrevented || d("[nylas-view-thread] Default event not prevented, initializing");
151
+ }
152
+ updateInternalMessages(t) {
153
+ d("[nylas-view-thread] Updating internal messages", { messages: t });
154
+ const e = t.sort((s, o) => s.date > o.date ? 1 : -1).map((s, o) => ({
155
+ id: s.id,
156
+ data: s,
157
+ collapse: o !== t.length - 1,
158
+ showContactData: !1
159
+ }));
160
+ this.internalMessages = e;
161
+ }
162
+ render() {
163
+ var r, n, l;
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: "8ded7fac7238425d362b59a6754cc8c0ee36dc13" }, a("sp-theme", { key: "709b8e7877cb108bb09199db5ba6306ea9b130a0", scale: "medium", color: "dark" }, a("div", { key: "19d5912e09475417c50b27b24979e5337806b94c", class: "view-thread" }, a("div", { key: "46c2022b7a45b8d05f8f23068828579b4294fee4", class: "header" }, a("div", { key: "5e748e44ef6683d4215fbe0afff040f2091e376c", class: "subject" }, (r = this.thread) == null ? void 0 : r.subject), a("div", { key: "3106d62c0ecf951ccf58fd32bb171ae4ce846909", 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: "f2c2bfb336520c4dafa6597c417efee372648354", 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
+ d("[nylas-view-thread] Send event", { message: i.detail.message, replyBody: i.detail.replyBody });
167
+ } })))));
168
+ }
169
+ get host() {
170
+ return E(this);
171
+ }
172
+ static get watchers() {
173
+ return {
174
+ thread: ["threadChanged"],
175
+ messages: ["updateInternalMessages"]
176
+ };
177
+ }
178
+ };
179
+ _([
180
+ T({
181
+ name: "nylas-view-thread",
182
+ stateToProps: /* @__PURE__ */ new Map([
183
+ ["mailbox.selectedThread", "thread"],
184
+ ["mailbox.messages", "messages"],
185
+ ["mailbox.state", "state"]
186
+ ]),
187
+ eventToProps: {
188
+ threadSelected: async (t, e) => {
189
+ d("[nylas-view-thread] Nylas init event. Fetching thread messages.", { event: t });
190
+ const s = t.detail;
191
+ s && s.id && await e.messages.getThreadMessages(s.id);
192
+ }
193
+ },
194
+ fireRegisterEvent: !0
195
+ }),
196
+ y("design:type", Function),
197
+ y("design:paramtypes", []),
198
+ y("design:returntype", void 0)
199
+ ], C.prototype, "render", null);
200
+ C.style = V;
201
+ export {
202
+ C as nylas_view_thread
203
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-eb33703c.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:"954b500b6e68dff36be085c9ec1a347f1dffd216",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"22b3215ec25511a03ef33ead4a3d073b4c49a04b",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;
@@ -0,0 +1,15 @@
1
+ import { r as s, h as t } from "./index-5ccfd9df.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const o = ".sc-person-icon-h{display:flex}", r = o, C = class {
5
+ constructor(e) {
6
+ s(this, e), this.width = "14", this.height = "16";
7
+ }
8
+ render() {
9
+ return t("svg", { key: "954b500b6e68dff36be085c9ec1a347f1dffd216", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "22b3215ec25511a03ef33ead4a3d073b4c49a04b", 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
+ }
11
+ };
12
+ C.style = r;
13
+ export {
14
+ C as person_icon
15
+ };
@@ -0,0 +1,25 @@
1
+ import { r as o, h as t } from "./index-5ccfd9df.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const e = ".sc-play-icon-h{display:flex}", i = e, a = class {
5
+ constructor(s) {
6
+ o(this, s), this.width = "15", this.height = "15";
7
+ }
8
+ render() {
9
+ return t("svg", { key: "aaa15133933cb8ebd39db0754937bf24a9f1e2d5", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f615374aabdfdf059536fb524668c0a157463020", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
+ }
11
+ };
12
+ a.style = i;
13
+ const h = ".sc-stop-icon-h{display:flex}", n = h, r = class {
14
+ constructor(s) {
15
+ o(this, s), this.width = "15", this.height = "15";
16
+ }
17
+ render() {
18
+ return t("svg", { key: "77caaa680d7ca30d98feef3e16941734c4c289da", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "aad5a8ad1b0a98fa154a1eabbb3dfab69d09f5b2", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
19
+ }
20
+ };
21
+ r.style = n;
22
+ export {
23
+ a as play_icon,
24
+ r as stop_icon
25
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-eb33703c.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:"aaa15133933cb8ebd39db0754937bf24a9f1e2d5",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f615374aabdfdf059536fb524668c0a157463020",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=n;const a=".sc-stop-icon-h{display:flex}",h=a,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"77caaa680d7ca30d98feef3e16941734c4c289da",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"aad5a8ad1b0a98fa154a1eabbb3dfab69d09f5b2",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=h;exports.play_icon=s;exports.stop_icon=i;
package/dist/react.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-eb33703c.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.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.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.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 ADDED
@@ -0,0 +1,144 @@
1
+ import { a3 as e, a4 as l, a5 as i, a6 as c, a7 as t, a8 as r, a9 as b, aa as y, ab as N, ac as I, ad as d, ae as C, af as m, ag as g, ah as p, ai as u, aj as k, ak as h, al as P, am as f, an as E, ao as T, ap as S, aq as v, ar as B, as as F, at as L, au as w, av as M, aw as R, ax as A, ay as D, az as x, aA as G, aB as z, aC as W, aD as O, aE as V, aF as q, aG as U, aH as Z, aI as $, aJ as j, aK as H, aL as J, aM as K, aN as Q, aO as X, aP as Y, aQ as _, aR as aa, aS as sa, aT as oa, aU as na, aV as ea, aW as la, aX as ia, aY as ca, aZ as ta, a_ as ra, a$ as ba, b0 as ya, b1 as Na, b2 as Ia, b3 as da, b4 as Ca, b5 as ma, b6 as ga, b7 as pa, b8 as ua, b9 as ka, ba as ha, bb as Pa, N as fa, bc as Ea, bd as Ta, be as Sa, bf as va, bg as Ba, bh as Fa, bi as La, bj as wa, bk as Ma, bl as Ra, bm as Aa, bn as Da, bo as xa, bp as Ga, bq as za, br as Wa, bs as Oa, bt as Va, bu as qa, bv as Ua, bw as Za, bx as $a, by as ja, bz as Ha, bA as Ja, bB as Ka, bC as Qa, bD as Xa, bE as Ya, bF as _a, bG as as, bH as ss, bI as os, bJ as ns, bK as es, bL as ls, bM as is, bN as cs, bO as ts, bP as rs, bQ as bs, bR as ys, bS as Ns, bT as Is, bU as ds, bV as Cs, bW as ms, bX as gs, bY as ps, bZ as us, b_ as ks, b$ as hs, c0 as Ps, c1 as fs, c2 as Es, c3 as Ts, c4 as Ss, c5 as vs, c6 as Bs, c7 as Fs, c8 as Ls, a0 as ws, a1 as Ms, a2 as Rs, $ as As } from "./index-5ccfd9df.js";
2
+ import "react";
3
+ import "react-dom";
4
+ export {
5
+ e as AddCircleIcon,
6
+ l as ArchiveIcon,
7
+ i as ArrowIcon,
8
+ c as BoldIcon,
9
+ t as ButtonComponent,
10
+ r as CalendarAgendaFillIcon,
11
+ b as CalendarAgendaIcon,
12
+ y as CalendarCancelIcon,
13
+ N as CalendarCheckIcon,
14
+ I as CalendarIcon,
15
+ d as CalendarInfoIcon,
16
+ C as CalendarPatternsIcon,
17
+ m as CheckboxComponent,
18
+ g as CheckmarkCircleIcon,
19
+ p as CheckmarkIcon,
20
+ u as ChevronIcon,
21
+ k as ClockIcon,
22
+ h as CloseIcon,
23
+ P as CopyIcon,
24
+ f as DeleteIcon,
25
+ E as DocumentRefreshIcon,
26
+ T as DragableIcon,
27
+ S as EditIcon,
28
+ v as EnvelopeFillIcon,
29
+ B as EnvelopeIcon,
30
+ F as EyeIcon,
31
+ L as FlowIcon,
32
+ w as FolderIcon,
33
+ M as ForwardIcon,
34
+ R as GlobeIcon,
35
+ A as GoogleLogoIcon,
36
+ D as GoogleMeetIcon,
37
+ x as InboxIcon,
38
+ G as InfoIcon,
39
+ z as InputColorPicker,
40
+ W as InputComponent,
41
+ O as InputDropdown,
42
+ V as ItalicIcon,
43
+ q as LoadingIcon,
44
+ U as LocationIcon,
45
+ Z as LocationOffIcon,
46
+ $ as MicrosoftLogoIcon,
47
+ j as MicrosoftTeamsIcon,
48
+ H as MultiSelectDropdown,
49
+ J as NylasAdditionalParticipants,
50
+ K as NylasAvailabilityPicker,
51
+ Q as NylasBookedEventCard,
52
+ X as NylasBookingCalendarPicker,
53
+ Y as NylasBookingConfirmationRedirect,
54
+ _ as NylasBookingConfirmationType,
55
+ aa as NylasBookingForm,
56
+ sa as NylasBookingFormConfig,
57
+ oa as NylasBufferTime,
58
+ na as NylasCalendarPicker,
59
+ ea as NylasCancelBookingForm,
60
+ la as NylasCancellationPolicy,
61
+ ia as NylasCancelledEventCard,
62
+ ca as NylasComposer,
63
+ ta as NylasConfirmationEmail,
64
+ ra as NylasConfirmedEventCard,
65
+ ba as NylasConnectedCalendars,
66
+ ya as NylasCustomBookingFlow,
67
+ Na as NylasCustomEventSlug,
68
+ Ia as NylasCustomizeBookingSettings,
69
+ da as NylasDatePicker,
70
+ Ca as NylasEditorTabs,
71
+ ma as NylasEventDescription,
72
+ ga as NylasEventDuration,
73
+ pa as NylasEventInfo,
74
+ ua as NylasEventLimits,
75
+ ka as NylasEventLocation,
76
+ ha as NylasEventTitle,
77
+ Pa as NylasFormCard,
78
+ fa as NylasIdentityRequestWrapper,
79
+ Ea as NylasIfState,
80
+ Ta as NylasLimitFutureBookings,
81
+ Sa as NylasListConfigurations,
82
+ va as NylasListFolders,
83
+ Ba as NylasListThreads,
84
+ Fa as NylasLocaleSwitch,
85
+ La as NylasLogin,
86
+ wa as NylasLogo,
87
+ Ma as NylasMailbox,
88
+ Ra as NylasMailboxPagination,
89
+ Aa as NylasMailboxToolbarButton,
90
+ Da as NylasMinBookingNotice,
91
+ xa as NylasMinCancellationNotice,
92
+ Ga as NylasNotification,
93
+ za as NylasOrganizerConfirmationCard,
94
+ Wa as NylasPageName,
95
+ Oa as NylasPageStyling,
96
+ Va as NylasParticipantBookingCalendars,
97
+ qa as NylasParticipantsCustomAvailability,
98
+ Ua as NylasProvider,
99
+ Za as NylasReminderEmails,
100
+ $a as NylasReminderTime,
101
+ ja as NylasSchedulerEditor,
102
+ Ha as NylasScheduling,
103
+ Ja as NylasSchedulingMethod,
104
+ Ka as NylasSelectedEventCard,
105
+ Qa as NylasSummarizeMessageButton,
106
+ Xa as NylasThreadsRefresh,
107
+ Ya as NylasThreadsSearch,
108
+ _a as NylasTimeWindowPicker,
109
+ as as NylasTimeslotInterval,
110
+ ss as NylasTimeslotPicker,
111
+ os as NylasViewEmail,
112
+ ns as NylasViewThread,
113
+ es as PaintbrushFillIcon,
114
+ ls as PaintbrushIcon,
115
+ is as PeopleIcon,
116
+ cs as PersonClipboardIcon,
117
+ ts as PersonIcon,
118
+ rs as PlayIcon,
119
+ bs as PlusIcon,
120
+ ys as RadioButtonGroup,
121
+ Ns as RefreshIcon,
122
+ Is as ReplyAllIcon,
123
+ ds as ReplyIcon,
124
+ Cs as SearchIcon,
125
+ ms as SelectDropdown,
126
+ gs as SentIcon,
127
+ ps as SpamIcon,
128
+ us as StarIcon,
129
+ ks as StopIcon,
130
+ hs as TextareaComponent,
131
+ Ps as TimePeriodSelector,
132
+ fs as ToggleSwitch,
133
+ Es as TooltipComponent,
134
+ Ts as TranslateIcon,
135
+ Ss as TrashFillIcon,
136
+ vs as TrashIcon,
137
+ Bs as UnderlineIcon,
138
+ Fs as WarningIcon,
139
+ Ls as ZoomIcon,
140
+ ws as applyPolyfills,
141
+ Ms as defineCustomElements,
142
+ Rs as setNonce,
143
+ As as useNylasMailboxElement
144
+ };
@@ -0,0 +1,15 @@
1
+ import { r as e, h as c } from "./index-5ccfd9df.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const t = ".sc-refresh-icon-h{display:flex}", l = t, h = class {
5
+ constructor(s) {
6
+ e(this, s), this.width = "15", this.height = "15";
7
+ }
8
+ render() {
9
+ return c("svg", { key: "6fc5035412c1f81e4d9dcfa18730d4c4d8b60d25", 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: "b4c463bdc933001c9cab6caed8d0d14e92117d1e", 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
+ }
11
+ };
12
+ h.style = l;
13
+ export {
14
+ h as refresh_icon
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-eb33703c.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,e=class{constructor(s){c.registerInstance(this,s),this.width="15",this.height="15"}render(){return c.h("svg",{key:"6fc5035412c1f81e4d9dcfa18730d4c4d8b60d25",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c.h("path",{key:"b4c463bdc933001c9cab6caed8d0d14e92117d1e",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"}))}};e.style=i;exports.refresh_icon=e;
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./index-eb33703c.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;
@@ -0,0 +1,109 @@
1
+ import { d, V as m, g as P } from "./index-5ccfd9df.js";
2
+ function b(e, o, i = "registerComponent") {
3
+ return new CustomEvent(i, {
4
+ bubbles: !0,
5
+ composed: !0,
6
+ detail: o
7
+ });
8
+ }
9
+ function T(e, o, i = "unregisterComponent") {
10
+ return new CustomEvent(i, {
11
+ bubbles: !0,
12
+ composed: !0,
13
+ detail: o
14
+ });
15
+ }
16
+ function v(e) {
17
+ return (o, i) => {
18
+ const r = e.name;
19
+ d(`[${r}] Registering component ${r} being called on ${i}`);
20
+ const u = o.componentWillLoad;
21
+ if (!u) {
22
+ m(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);
23
+ return;
24
+ }
25
+ const p = o.connectedCallback;
26
+ if (!p) {
27
+ m(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);
28
+ return;
29
+ }
30
+ const l = o.disconnectedCallback;
31
+ if (!l) {
32
+ m(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);
33
+ return;
34
+ }
35
+ if (e.storeToProps && e.stateToProps) {
36
+ const n = Array.from(e.storeToProps.values()), t = Array.from(e.stateToProps.values()), s = n.filter((c) => t.includes(c));
37
+ if (s.length > 0) {
38
+ m(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${s.join(", ")}`);
39
+ return;
40
+ }
41
+ }
42
+ const a = /* @__PURE__ */ new Map();
43
+ e.eventToProps && Object.keys(e.eventToProps).forEach((n) => {
44
+ var t;
45
+ a.set(n, (t = e.eventToProps) == null ? void 0 : t[n]);
46
+ }), o.connectedCallback = function() {
47
+ d(`[~${r}] connectedCallback called`);
48
+ const n = p == null ? void 0 : p.call(this), t = P(this);
49
+ return t.dataset.nylasId || (Object.defineProperty(t, "registerNylasComponent", {
50
+ get() {
51
+ return !0;
52
+ },
53
+ enumerable: !0
54
+ }), Object.defineProperty(t, "stateToProps", {
55
+ get() {
56
+ return e.stateToProps;
57
+ },
58
+ enumerable: !0
59
+ }), Object.defineProperty(t, "getStoresToProp", {
60
+ get() {
61
+ return e.getStoresToProp;
62
+ },
63
+ enumerable: !0
64
+ }), Object.defineProperty(t, "storeToProps", {
65
+ get() {
66
+ return e.storeToProps;
67
+ },
68
+ enumerable: !0
69
+ }), Object.defineProperty(t, "eventToProps", {
70
+ get() {
71
+ return a;
72
+ },
73
+ enumerable: !0
74
+ }), Object.defineProperty(t, "authToProp", {
75
+ get() {
76
+ return e.authToProp;
77
+ },
78
+ enumerable: !0
79
+ }), Object.defineProperty(t, "connectorToProp", {
80
+ get() {
81
+ return e.connectorToProp;
82
+ },
83
+ enumerable: !0
84
+ }), Object.defineProperty(t, "localPropsToProp", {
85
+ get() {
86
+ return e.localPropsToProp;
87
+ },
88
+ enumerable: !0
89
+ })), n;
90
+ }, e.fireRegisterEvent && (o.componentWillLoad = function() {
91
+ const n = u == null ? void 0 : u.call(this), t = P(this), s = {
92
+ element: t,
93
+ ...e,
94
+ eventToProps: a
95
+ }, c = b(o, s, e.registrationEventName);
96
+ return t.dispatchEvent(c) && d(`[${r}] Component ${r} successfully fired registration event`), n;
97
+ }, o.disconnectedCallback = function() {
98
+ const n = l == null ? void 0 : l.call(this), t = P(this), s = {
99
+ element: t,
100
+ ...e,
101
+ eventToProps: a
102
+ }, c = T(o, s, e.unregistrationEventName);
103
+ return t.dispatchEvent(c) && d(`[${r}] Component ${r} successfully fired unregistration event`), n;
104
+ });
105
+ };
106
+ }
107
+ export {
108
+ v as R
109
+ };
@@ -0,0 +1,27 @@
1
+ import { e as i } from "./index-5ccfd9df.js";
2
+ function s(n = {}) {
3
+ const o = {
4
+ selectedConfiguration: {},
5
+ configurations: [],
6
+ listConfigurationsNextCursor: null,
7
+ calendars: [],
8
+ currentUser: null,
9
+ action: null,
10
+ additionalParticipants: [],
11
+ hideEditorTabs: [],
12
+ requiresSlug: !1,
13
+ ...n
14
+ }, e = i(o);
15
+ function t() {
16
+ e.set("selectedConfiguration", { ...n.selectedConfiguration });
17
+ }
18
+ return e.onChange("action", async (r) => {
19
+ r || t();
20
+ }), {
21
+ ...e,
22
+ resetSelectedConfiguration: t
23
+ };
24
+ }
25
+ export {
26
+ s as C
27
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./index-eb33703c.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;