@nylas/react 2.0.6 → 2.2.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 (148) hide show
  1. package/dist/cjs/connect.js +1 -0
  2. package/dist/cjs/elements.js +1 -0
  3. package/dist/cjs/index.js +1 -0
  4. package/dist/cjs/notetaker.js +62 -0
  5. package/dist/cjs/utils.js +11 -0
  6. package/dist/connect.d.ts +1 -0
  7. package/dist/elements.d.ts +1 -0
  8. package/dist/es/connect.js +279 -0
  9. package/dist/es/elements.js +1319 -0
  10. package/dist/es/index.js +281 -0
  11. package/dist/es/notetaker.js +5784 -0
  12. package/dist/es/utils.js +12396 -0
  13. package/dist/lib/connect/index.d.ts +6 -0
  14. package/dist/lib/connect/types.d.ts +2 -0
  15. package/dist/lib/connect/useNylasConnect.d.ts +28 -0
  16. package/dist/lib/connect/useNylasConnect.test.d.ts +1 -0
  17. package/dist/lib/connect.d.ts +1 -0
  18. package/dist/lib/elements/components.d.ts +975 -0
  19. package/dist/lib/elements.d.ts +1 -0
  20. package/dist/lib/index.d.ts +3 -5
  21. package/dist/lib/notetaker.d.ts +1 -0
  22. package/dist/lib/utils.d.ts +2 -0
  23. package/dist/notetaker.d.ts +1 -0
  24. package/dist/utils.d.ts +1 -0
  25. package/package.json +37 -16
  26. package/dist/abstract-provider-45ada3b4-31e3ed72.cjs +0 -1
  27. package/dist/abstract-provider-45ada3b4-abd3105d.js +0 -187
  28. package/dist/add-circle-icon_2.entry-48953f9c.cjs +0 -1
  29. package/dist/add-circle-icon_2.entry-f6f8b5e5.js +0 -26
  30. package/dist/archive-icon.entry-b3a76711.js +0 -16
  31. package/dist/archive-icon.entry-e2880dc7.cjs +0 -1
  32. package/dist/arrow-icon.entry-84d1e26c.cjs +0 -1
  33. package/dist/arrow-icon.entry-9b3441aa.js +0 -16
  34. package/dist/bold-icon.entry-0749a116.js +0 -16
  35. package/dist/bold-icon.entry-e1d8ab5e.cjs +0 -1
  36. package/dist/button-component_2.entry-1a817230.cjs +0 -1
  37. package/dist/button-component_2.entry-6eb55e97.js +0 -27
  38. package/dist/calendar-agenda-fill-icon_37.entry-0ca8b9f4.cjs +0 -6
  39. package/dist/calendar-agenda-fill-icon_37.entry-4adf73a2.js +0 -5231
  40. package/dist/calendar-cancel-icon.entry-2a29cb3f.js +0 -16
  41. package/dist/calendar-cancel-icon.entry-e0dee585.cjs +0 -1
  42. package/dist/calendar-check-icon.entry-7f96d456.cjs +0 -1
  43. package/dist/calendar-check-icon.entry-c12b63ea.js +0 -16
  44. package/dist/calendar-icon.entry-a2d19ff2.cjs +0 -1
  45. package/dist/calendar-icon.entry-e82a5169.js +0 -16
  46. package/dist/checkbox-component.entry-59612a67.js +0 -52
  47. package/dist/checkbox-component.entry-ddce70bc.cjs +0 -1
  48. package/dist/checkbox-group_4.entry-3311da64.cjs +0 -28
  49. package/dist/checkbox-group_4.entry-7df47ad4.js +0 -10011
  50. package/dist/checkmark-circle-icon.entry-677b0def.js +0 -16
  51. package/dist/checkmark-circle-icon.entry-67df713b.cjs +0 -1
  52. package/dist/checkmark-icon_15.entry-2121e1b7.cjs +0 -5
  53. package/dist/checkmark-icon_15.entry-9fd0ec58.js +0 -1412
  54. package/dist/chevron-icon_3.entry-1a42235c.cjs +0 -1
  55. package/dist/chevron-icon_3.entry-f0ad71d9.js +0 -157
  56. package/dist/clock-icon_4.entry-88822a84.cjs +0 -1
  57. package/dist/clock-icon_4.entry-e7472d5f.js +0 -46
  58. package/dist/constants-f51538ef-cd2a67c4.cjs +0 -1
  59. package/dist/constants-f51538ef-e0a5f026.js +0 -876
  60. package/dist/customParseFormat-eeec04f5-3ad26beb.js +0 -135
  61. package/dist/customParseFormat-eeec04f5-d5957784.cjs +0 -1
  62. package/dist/delete-icon.entry-3cb58910.cjs +0 -1
  63. package/dist/delete-icon.entry-813429d7.js +0 -16
  64. package/dist/document-refresh-icon.entry-ae361b0b.cjs +0 -1
  65. package/dist/document-refresh-icon.entry-c224c778.js +0 -16
  66. package/dist/feedbackSync-0ebd0eda-803c3ebe.js +0 -6048
  67. package/dist/feedbackSync-0ebd0eda-e12b00d5.cjs +0 -448
  68. package/dist/folder-icon.entry-107841af.cjs +0 -1
  69. package/dist/folder-icon.entry-9c1f7c41.js +0 -16
  70. package/dist/forward-icon.entry-4ac22c16.js +0 -16
  71. package/dist/forward-icon.entry-6cec1f94.cjs +0 -1
  72. package/dist/globe-icon.entry-7798c93b.js +0 -16
  73. package/dist/globe-icon.entry-909c1382.cjs +0 -1
  74. package/dist/google-logo-icon_6.entry-1f4ad364.cjs +0 -2
  75. package/dist/google-logo-icon_6.entry-b198c90a.js +0 -1762
  76. package/dist/google-meet-icon_5.entry-82d87e77.cjs +0 -1
  77. package/dist/google-meet-icon_5.entry-fa6dc1dc.js +0 -56
  78. package/dist/inbox-icon.entry-1b123e64.js +0 -16
  79. package/dist/inbox-icon.entry-84f96d31.cjs +0 -1
  80. package/dist/index-140eb219.js +0 -24953
  81. package/dist/index-d8a42c15.cjs +0 -118
  82. package/dist/index.es-57d4a08f-184cbc01.js +0 -2724
  83. package/dist/index.es-57d4a08f-b0a2ca19.cjs +0 -7
  84. package/dist/info-icon_2.entry-f09e7dae.cjs +0 -1
  85. package/dist/info-icon_2.entry-f8b72d08.js +0 -35
  86. package/dist/input-component.entry-44607977.js +0 -93
  87. package/dist/input-component.entry-fd38953d.cjs +0 -1
  88. package/dist/input-dropdown_2.entry-4c2e5e1a.cjs +0 -1
  89. package/dist/input-dropdown_2.entry-6898b420.js +0 -252
  90. package/dist/italic-icon.entry-16aa1ada.js +0 -16
  91. package/dist/italic-icon.entry-beef2254.cjs +0 -1
  92. package/dist/lib/elements/index.d.ts +0 -133
  93. package/dist/lib/elements/react-component-lib/createComponent.d.ts +0 -10
  94. package/dist/lib/elements/react-component-lib/createOverlayComponent.d.ts +0 -21
  95. package/dist/lib/elements/react-component-lib/index.d.ts +0 -2
  96. package/dist/lib/elements/react-component-lib/interfaces.d.ts +0 -29
  97. package/dist/lib/elements/react-component-lib/utils/attachProps.d.ts +0 -9
  98. package/dist/lib/elements/react-component-lib/utils/case.d.ts +0 -2
  99. package/dist/lib/elements/react-component-lib/utils/dev.d.ts +0 -2
  100. package/dist/lib/elements/react-component-lib/utils/index.d.ts +0 -10
  101. package/dist/multi-select-dropdown.entry-50133d29.js +0 -130
  102. package/dist/multi-select-dropdown.entry-c82cd6d4.cjs +0 -1
  103. package/dist/nylas-booked-event-card_11.entry-56768a09.js +0 -1407
  104. package/dist/nylas-booked-event-card_11.entry-eb4b3c5c.cjs +0 -1
  105. package/dist/nylas-date-component_2.entry-93f2f352.cjs +0 -1
  106. package/dist/nylas-date-component_2.entry-df957150.js +0 -307
  107. package/dist/nylas-form-card.entry-4d95a4ad.cjs +0 -1
  108. package/dist/nylas-form-card.entry-7724e61f.js +0 -72
  109. package/dist/nylas-notification_2.entry-448c2cb8.cjs +0 -1
  110. package/dist/nylas-notification_2.entry-af763b6c.js +0 -85
  111. package/dist/nylas-scheduler-editor.entry-0e4ba46d.js +0 -1796
  112. package/dist/nylas-scheduler-editor.entry-e36cdd9d.cjs +0 -2
  113. package/dist/nylas-scheduling.entry-1b207e91.js +0 -999
  114. package/dist/nylas-scheduling.entry-904dd10e.cjs +0 -1
  115. package/dist/person-icon.entry-70d46ca6.cjs +0 -1
  116. package/dist/person-icon.entry-f2979577.js +0 -16
  117. package/dist/play-icon.entry-c2cf0b12.cjs +0 -1
  118. package/dist/play-icon.entry-d387df5d.js +0 -16
  119. package/dist/radio-button-group.entry-45dbd2df.js +0 -56
  120. package/dist/radio-button-group.entry-94e06176.cjs +0 -1
  121. package/dist/react.cjs +0 -1
  122. package/dist/react.js +0 -149
  123. package/dist/refresh-icon.entry-5ab20f26.cjs +0 -1
  124. package/dist/refresh-icon.entry-777cff27.js +0 -16
  125. package/dist/register-component-0aad9e3d-b395364a.js +0 -109
  126. package/dist/register-component-0aad9e3d-d2f2e543.cjs +0 -1
  127. package/dist/reply-all-icon.entry-3c90510e.cjs +0 -1
  128. package/dist/reply-all-icon.entry-e2dd6da9.js +0 -16
  129. package/dist/reply-icon.entry-00a97d9f.js +0 -16
  130. package/dist/reply-icon.entry-d96478be.cjs +0 -1
  131. package/dist/sent-icon.entry-2d16da4e.cjs +0 -1
  132. package/dist/sent-icon.entry-949cf214.js +0 -16
  133. package/dist/spam-icon.entry-3baf9e79.js +0 -16
  134. package/dist/spam-icon.entry-7ee61730.cjs +0 -1
  135. package/dist/star-icon.entry-9fdb278b.js +0 -16
  136. package/dist/star-icon.entry-dc702d73.cjs +0 -1
  137. package/dist/stop-icon.entry-b5ae7e55.cjs +0 -1
  138. package/dist/stop-icon.entry-efa1ea66.js +0 -16
  139. package/dist/textarea-component.entry-247aca42.cjs +0 -1
  140. package/dist/textarea-component.entry-7c6fc4d8.js +0 -55
  141. package/dist/toggle-switch.entry-a0295d17.js +0 -49
  142. package/dist/toggle-switch.entry-d52b0338.cjs +0 -1
  143. package/dist/translate-icon.entry-219cab17.js +0 -16
  144. package/dist/translate-icon.entry-985b3b29.cjs +0 -1
  145. package/dist/trash-fill-icon.entry-03c90559.js +0 -16
  146. package/dist/trash-fill-icon.entry-4dfd7d24.cjs +0 -1
  147. package/dist/underline-icon.entry-58fa18b5.js +0 -16
  148. package/dist/underline-icon.entry-c60b77a6.cjs +0 -1
@@ -0,0 +1 @@
1
+ export * from "./elements/components";
@@ -1,5 +1,3 @@
1
- import { NylasIdentityRequestWrapper } from "@nylas/web-elements";
2
- export { defineCustomElements, setNonce } from "@nylas/web-elements/loader";
3
- export { NylasIdentityRequestWrapper };
4
- export * from "./elements/index";
5
- export * from "./notetaker/index";
1
+ export * from "./elements";
2
+ export * from "./notetaker";
3
+ export * from "./utils";
@@ -0,0 +1 @@
1
+ export * from "./notetaker/index";
@@ -0,0 +1,2 @@
1
+ export { NylasIdentityRequestWrapper } from "@nylas/web-elements/components";
2
+ export type { LANGUAGE_CODE } from "@nylas/web-elements/components";
@@ -0,0 +1 @@
1
+ export * from './lib/notetaker'
@@ -0,0 +1 @@
1
+ export * from './lib/utils'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylas/react",
3
- "version": "2.0.6",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,40 +14,63 @@
14
14
  ],
15
15
  "exports": {
16
16
  ".": {
17
- "import": "./dist/react.js",
18
- "require": "./dist/react.cjs",
17
+ "import": "./dist/es/index.js",
18
+ "require": "./dist/cjs/index.js",
19
19
  "types": "./dist/index.d.ts",
20
20
  "style": "./dist/style.css"
21
21
  },
22
+ "./connect": {
23
+ "import": "./dist/es/connect.js",
24
+ "require": "./dist/cjs/connect.js",
25
+ "types": "./dist/connect.d.ts"
26
+ },
27
+ "./elements": {
28
+ "import": "./dist/es/elements.js",
29
+ "require": "./dist/cjs/elements.js",
30
+ "types": "./dist/elements.d.ts"
31
+ },
32
+ "./notetaker": {
33
+ "import": "./dist/es/notetaker.js",
34
+ "require": "./dist/cjs/notetaker.js",
35
+ "types": "./dist/notetaker.d.ts"
36
+ },
37
+ "./utils": {
38
+ "import": "./dist/es/utils.js",
39
+ "require": "./dist/cjs/utils.js",
40
+ "types": "./dist/utils.d.ts"
41
+ },
22
42
  "./style.css": {
23
43
  "default": "./dist/style.css"
24
44
  }
25
45
  },
26
- "main": "dist/react.cjs",
46
+ "main": "dist/cjs/index.js",
27
47
  "style": "./dist/style.css",
28
- "module": "dist/react.js",
48
+ "module": "dist/es/index.js",
29
49
  "types": "dist/index.d.ts",
30
50
  "dependencies": {
51
+ "@stencil/react-output-target": "^1.2.0",
31
52
  "axios": "^1.7.7",
32
53
  "dayjs": "1.11.7",
33
54
  "lucide-react": "^0.453.0",
34
55
  "tailwind-variants": "^1.0.0",
35
56
  "zustand": "^5.0.3",
36
- "@nylas/web-elements": "^2.0.6",
37
- "@nylas/core": "^1.1.8"
57
+ "@nylas/connect": "^0.0.1",
58
+ "@nylas/core": "^1.2.0",
59
+ "@nylas/web-elements": "^2.2.0"
38
60
  },
39
61
  "peerDependencies": {
40
- "react": ">=18.2.0 <20.0.0",
41
- "react-dom": ">=18.2.0 <20.0.0"
62
+ "react": "^18 || ^19",
63
+ "react-dom": "^18 || ^19"
42
64
  },
43
65
  "devDependencies": {
44
66
  "@tailwindcss/vite": "^4.0.3",
67
+ "@testing-library/dom": "^10.0.0",
45
68
  "@testing-library/jest-dom": "^5.17.0",
46
- "@testing-library/react": "^13.4.0",
69
+ "@testing-library/react": "^16.0.0",
47
70
  "@types/jsdom": "^21.1.7",
48
- "@types/node": "^20.8.10",
49
- "@types/react": "^18.2.15",
50
- "@types/react-dom": "^18.2.7",
71
+ "@types/node": "^22.13.10",
72
+ "@types/react": "^19.1.10",
73
+ "@types/react-dom": "^19.1.7",
51
74
  "@types/testing-library__jest-dom": "^6.0.0",
52
75
  "@typescript-eslint/eslint-plugin": "^6.0.0",
53
76
  "@typescript-eslint/parser": "^6.0.0",
@@ -59,8 +82,6 @@
59
82
  "jsdom": "^26.0.0",
60
83
  "markdown-table": "^3.0.4",
61
84
  "prettier": "^3.5.3",
62
- "react": "^18.3.1",
63
- "react-dom": "^18.3.1",
64
85
  "tailwindcss": "^4.1.7",
65
86
  "tslib": "^2.6.2",
66
87
  "typedoc": "^0.28.3",
@@ -68,7 +89,7 @@
68
89
  "typescript": "^5.3.3",
69
90
  "vite": "^4.5.2",
70
91
  "vite-plugin-dts": "^3.6.3",
71
- "vitest": "^2.1.8"
92
+ "vitest": "^3.2.4"
72
93
  },
73
94
  "scripts": {
74
95
  "dev": "vite build --watch --emptyOutDir=false",
@@ -1 +0,0 @@
1
- "use strict";const e=require("./index-d8a42c15.cjs");class R{constructor(t,o,l=!0,n){this.automaticComponentRegistration=!0,this.registeredComponents={},this.propStateRegistrations=new Map,this.eventListenerRegistrations=new Map,this.host=t,this.stores=o,this.automaticComponentRegistration=l,this.eventOverrides=n,e.debug(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:n}),this.registerComponent=this.registerComponent.bind(this),this.getStore=this.getStore.bind(this),Object.keys(this.stores).forEach(s=>{this.propStateRegistrations.set(s,new Map)})}async componentWillLoad(t){e.debug(`[${this.hostTagName}] Will load`),this.setupStoreListeners(),this.nylasConnector=t;const o=Array.from(this.host.querySelectorAll("*")).filter(n=>n.tagName.toLowerCase().startsWith("nylas-"));e.debug(`[${this.hostTagName}] Found ${o.length} child component(s).`,{childComponents:o});const l=o.map(async n=>{const s=n;if(!s){e.debug(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} does not have a name. Skipping.`);return}if(!s.registerNylasComponent){e.debug(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} is not a component that can be registered. Skipping.`,{component:s});return}const g={element:s,name:s.tagName.toLowerCase(),getStoresToProp:s.getStoresToProp,storeToProps:s.storeToProps,stateToProps:s.stateToProps,authToProp:s.authToProp,eventToProps:s.eventToProps,connectorToProp:s.connectorToProp,localPropsToProp:s.localPropsToProp};await this.registerComponent(g)});await Promise.all(l)}async componentDidLoad(){e.debug(`[~${this.hostTagName}] (componentDidLoad) Did load`)}async componentDisconnected(){Object.values(this.stores).forEach(t=>{t.dispose()})}async registerComponentHandler(t){if(t.stopPropagation(),!this.automaticComponentRegistration){e.debug(`~[${this.hostTagName}] (registerComponentHandler) Automatic component registration disabled. Skipping registration of ${t.detail.name}.`);return}await this.registerComponent(t.detail)}async unregisterComponentHandler(t){if(t.stopPropagation(),!this.automaticComponentRegistration){e.debug(`~[${this.hostTagName}] (unregisterComponentHandler) Automatic component registration disabled. Skipping unregistration of ${t.detail.name}.`);return}this.unregisterComponent(t.detail)}async registerComponent(t){e.debug(`~[${this.hostTagName}] (registerComponent) Registering component ${t.name}.`);const o=t.element.dataset.nylasId;o&&this.registeredComponents[o]?(e.debug(`[${this.hostTagName}] (registerComponent) Component ${t.name} already registered. Updating registration.`),this.cleanupComponentRegistration(o,!1)):t.element.dataset.nylasId=o||e.uniqueID();const n=t.element.dataset.nylasId;n&&(this.registeredComponents[n]=t),e.debug(`[${this.hostTagName}] (registerComponent) Waiting for "${t.element.localName}" component to be defined`,{component:t});try{await customElements.whenDefined(t.element.tagName.toLowerCase()),e.debug(`[${this.hostTagName}] (registerComponent) Component "${t.element.localName}" is now defined`)}catch(h){e.debug(`[${this.hostTagName}] (registerComponent) Error waiting for component "${t.element.localName}" to be defined:`,h)}const s=this.eventOverrides,{stateToProps:g,getStoresToProp:a,eventToProps:d,storeToProps:u,connectorToProp:p,localPropsToProp:c,element:i}=t;d==null||d.forEach((h,r)=>{var N;const m=this.nylasConnector,$=async S=>{e.debug(`[${this.hostTagName}] (registerComponent) Handling "${t.name}" prop "${String(r)}" event.`,{event:S}),r in s&&(e.debug(`[${this.hostTagName}] (registerComponent) Found event override for "${String(r)}" event. Calling override.`),await s[r](S,m)),S.defaultPrevented||await h(S,m)},f=t.element.dataset.nylasId;f&&!this.eventListenerRegistrations.has(f)&&this.eventListenerRegistrations.set(f,[]),f&&((N=this.eventListenerRegistrations.get(f))==null||N.push([i,r,$])),e.debug(`[${this.hostTagName}] (registerComponent) Setting "${t.name}" event "${String(r)}" to automcially call NylasConnector method.`);const C=e.formatEventName(r.toString());e.debug(`[${this.hostTagName}] (registerComponent) Adding event listener for "${C}" on "${i.tagName}"`),i.addEventListener(C,$)}),g==null||g.forEach((h,r)=>{var N,S,b,T;const[m,$]=r.split("."),C=this.getStore(m).state[$];if(!i.dataset.nylasId){e.debug(`[${this.hostTagName}] (registerComponent) Component "${t.name}" not registered. Skipping.`,{component:t});return}this.propStateRegistrations.has(m)||this.propStateRegistrations.set(m,new Map),(N=this.propStateRegistrations.get(m))!=null&&N.has($)?(T=(b=this.propStateRegistrations.get(m))==null?void 0:b.get($))==null||T.push({elementId:i.dataset.nylasId,propKey:h}):(S=this.propStateRegistrations.get(m))==null||S.set($,[{elementId:i.dataset.nylasId,propKey:h}]),i[h.toString()]=C,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" value.`,{stateValue:C})}),c==null||c.forEach((h,r)=>{const m=this.host[r];i[h.toString()]=m,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to the value of "${r}" value.`,{value:r,mappedPropValue:m})}),a&&(i[a==null?void 0:a.toString()]=this.getStore,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${a.toString()}" to "getStore" method.`)),u==null||u.forEach((h,r)=>{const m=this.getStore(r);i[h.toString()]=m,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" store.`,{store:m})}),p&&(i[p==null?void 0:p.toString()]=this.nylasConnector,e.debug(`[${this.hostTagName}] Setting "${t.name}" prop "${p.toString()}" to "nylasConnector" value.`,{connectorToProp:p})),typeof i.registerCallback=="function"&&(e.debug(`[${this.hostTagName}] (registerComponent) Calling registerCallback method for "${t.name}".`),await i.registerCallback()),e.debug(`[${this.hostTagName}] (registerComponent) Component ${t.name} registered.`)}cleanupComponentRegistration(t,o=!0){const l=this.eventListenerRegistrations.get(t);l&&(l.forEach(([n,s,g])=>{const a=e.formatEventName(s.toString());e.debug(`[${this.hostTagName}] (cleanupComponentRegistration) Removing event listener for "${a}" on "${n.tagName}"`),n.removeEventListener(a,g)}),this.eventListenerRegistrations.delete(t)),this.propStateRegistrations.forEach((n,s)=>{n.forEach((g,a)=>{var u;const d=g.filter(p=>p.elementId!==t);d.length!==g.length&&((u=this.propStateRegistrations.get(s))==null||u.set(a,d))})}),o&&delete this.registeredComponents[t]}unregisterComponent(t){e.debug(`[${this.hostTagName}] Unregistering component ${t.name}.`);const o=t.element.dataset.nylasId;if(!o){e.debug(`[${this.hostTagName}] (unregisterComponent) Unregistering component ${t.name}.`);return}if(this.registeredComponents[o]){e.debug(`[${this.hostTagName}] (unregisterComponent) Component ${t.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach((n,s)=>{n.forEach((g,a)=>{var p,c;const d=(p=this.propStateRegistrations.get(s))==null?void 0:p.get(a),u=d==null?void 0:d.filter(i=>i.elementId!==o);u&&((c=this.propStateRegistrations.get(s))==null||c.set(a,u))})});const l=this.eventListenerRegistrations.get(o);l==null||l.forEach(([n,s,g])=>{const a=e.formatEventName(s.toString());e.debug(`[${this.hostTagName}] (unregisterComponent) Removing event listener for "${a}" on "${n.tagName}"`),n.removeEventListener(a,g)}),delete this.registeredComponents[o]}getStore(t){const o=this.stores[t];if(!o)throw new Error(`[${this.hostTagName}] Store "${t.toString()}" not found.`);return o}async setupStoreListeners(){const t=this;Object.entries(this.stores).forEach(([o,l])=>{e.debug(`[${t.hostTagName}] (setupStoreListeners) Listening for changes in "${o}" store.`),l.use({set(n,s,g){var u;if(e.debug(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" changed`,{newValue:s,oldValue:g}),s===g){e.debug(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" unchanged. Skipping.`);return}const a=t.registeredComponents;if(!a){e.debug(`[${t.hostTagName}] (setupStoreListeners) No registered components found. Skipping.`);return}const d=((u=t.propStateRegistrations.get(o))==null?void 0:u.get(n.toString()))||[];e.debug(`[${t.hostTagName}] (setupStoreListeners) Found ${d.length} prop(s) registered for "${n.toString()}" store.`,{props:d,propStateRegistrations:t.propStateRegistrations}),d.forEach(({elementId:p,propKey:c})=>{const i=a[p];if(!i){e.debug(`[${t.hostTagName}] (setupStoreListeners) Component "${p}" not found. Skipping.`,{component:i});return}const r=t.getStore(o).state[n];i.element[c.toString()]=r,e.debug(`[${t.hostTagName}] (setupStoreListeners) Setting "${i.name}" prop "${c.toString()}" to "${n.toString()}" value.`,{stateValue:r})})}})})}get hostTagName(){var t,o;return((o=(t=this.host)==null?void 0:t.tagName)==null?void 0:o.toLowerCase())??"nylas-provider"}}class L extends R{}exports.NylasBaseProvider=L;
@@ -1,187 +0,0 @@
1
- import { b as e, n as E, o as T } from "./index-140eb219.js";
2
- class w {
3
- constructor(t, o, d = !0, n) {
4
- this.automaticComponentRegistration = !0, this.registeredComponents = {}, this.propStateRegistrations = /* @__PURE__ */ new Map(), this.eventListenerRegistrations = /* @__PURE__ */ new Map(), this.host = t, this.stores = o, this.automaticComponentRegistration = d, this.eventOverrides = n, e(`[${this.hostTagName}] Initializing (abstract) provider.`, { eventOverrides: n }), this.registerComponent = this.registerComponent.bind(this), this.getStore = this.getStore.bind(this), Object.keys(this.stores).forEach((s) => {
5
- this.propStateRegistrations.set(s, /* @__PURE__ */ new Map());
6
- });
7
- }
8
- async componentWillLoad(t) {
9
- e(`[${this.hostTagName}] Will load`), this.setupStoreListeners(), this.nylasConnector = t;
10
- const o = Array.from(this.host.querySelectorAll("*")).filter((n) => n.tagName.toLowerCase().startsWith("nylas-"));
11
- e(`[${this.hostTagName}] Found ${o.length} child component(s).`, { childComponents: o });
12
- const d = o.map(async (n) => {
13
- const s = n;
14
- if (!s) {
15
- e(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} does not have a name. Skipping.`);
16
- return;
17
- }
18
- if (!s.registerNylasComponent) {
19
- e(`[~${this.hostTagName}] (componentWillLoad) Component ${s.tagName} is not a component that can be registered. Skipping.`, { component: s });
20
- return;
21
- }
22
- const g = {
23
- element: s,
24
- name: s.tagName.toLowerCase(),
25
- getStoresToProp: s.getStoresToProp,
26
- storeToProps: s.storeToProps,
27
- stateToProps: s.stateToProps,
28
- authToProp: s.authToProp,
29
- eventToProps: s.eventToProps,
30
- connectorToProp: s.connectorToProp,
31
- localPropsToProp: s.localPropsToProp
32
- };
33
- await this.registerComponent(g);
34
- });
35
- await Promise.all(d);
36
- }
37
- async componentDidLoad() {
38
- e(`[~${this.hostTagName}] (componentDidLoad) Did load`);
39
- }
40
- async componentDisconnected() {
41
- Object.values(this.stores).forEach((t) => {
42
- t.dispose();
43
- });
44
- }
45
- async registerComponentHandler(t) {
46
- if (t.stopPropagation(), !this.automaticComponentRegistration) {
47
- e(`~[${this.hostTagName}] (registerComponentHandler) Automatic component registration disabled. Skipping registration of ${t.detail.name}.`);
48
- return;
49
- }
50
- await this.registerComponent(t.detail);
51
- }
52
- async unregisterComponentHandler(t) {
53
- if (t.stopPropagation(), !this.automaticComponentRegistration) {
54
- e(`~[${this.hostTagName}] (unregisterComponentHandler) Automatic component registration disabled. Skipping unregistration of ${t.detail.name}.`);
55
- return;
56
- }
57
- this.unregisterComponent(t.detail);
58
- }
59
- async registerComponent(t) {
60
- e(`~[${this.hostTagName}] (registerComponent) Registering component ${t.name}.`);
61
- const o = t.element.dataset.nylasId;
62
- o && this.registeredComponents[o] ? (e(`[${this.hostTagName}] (registerComponent) Component ${t.name} already registered. Updating registration.`), this.cleanupComponentRegistration(o, !1)) : t.element.dataset.nylasId = o || E();
63
- const n = t.element.dataset.nylasId;
64
- n && (this.registeredComponents[n] = t), e(`[${this.hostTagName}] (registerComponent) Waiting for "${t.element.localName}" component to be defined`, { component: t });
65
- try {
66
- await customElements.whenDefined(t.element.tagName.toLowerCase()), e(`[${this.hostTagName}] (registerComponent) Component "${t.element.localName}" is now defined`);
67
- } catch (h) {
68
- e(`[${this.hostTagName}] (registerComponent) Error waiting for component "${t.element.localName}" to be defined:`, h);
69
- }
70
- const s = this.eventOverrides, { stateToProps: g, getStoresToProp: a, eventToProps: p, storeToProps: c, connectorToProp: l, localPropsToProp: $, element: i } = t;
71
- p == null || p.forEach((h, r) => {
72
- var N;
73
- const m = this.nylasConnector, S = async (f) => {
74
- e(`[${this.hostTagName}] (registerComponent) Handling "${t.name}" prop "${String(r)}" event.`, { event: f }), r in s && (e(`[${this.hostTagName}] (registerComponent) Found event override for "${String(r)}" event. Calling override.`), await s[r](f, m)), f.defaultPrevented || await h(f, m);
75
- }, u = t.element.dataset.nylasId;
76
- u && !this.eventListenerRegistrations.has(u) && this.eventListenerRegistrations.set(u, []), u && ((N = this.eventListenerRegistrations.get(u)) == null || N.push([i, r, S])), e(`[${this.hostTagName}] (registerComponent) Setting "${t.name}" event "${String(r)}" to automcially call NylasConnector method.`);
77
- const C = T(r.toString());
78
- e(`[${this.hostTagName}] (registerComponent) Adding event listener for "${C}" on "${i.tagName}"`), i.addEventListener(C, S);
79
- }), g == null || g.forEach((h, r) => {
80
- var N, f, v, R;
81
- const [m, S] = r.split("."), C = this.getStore(m).state[S];
82
- if (!i.dataset.nylasId) {
83
- e(`[${this.hostTagName}] (registerComponent) Component "${t.name}" not registered. Skipping.`, { component: t });
84
- return;
85
- }
86
- this.propStateRegistrations.has(m) || this.propStateRegistrations.set(m, /* @__PURE__ */ new Map()), (N = this.propStateRegistrations.get(m)) != null && N.has(S) ? (R = (v = this.propStateRegistrations.get(m)) == null ? void 0 : v.get(S)) == null || R.push({
87
- elementId: i.dataset.nylasId,
88
- propKey: h
89
- }) : (f = this.propStateRegistrations.get(m)) == null || f.set(S, [
90
- {
91
- elementId: i.dataset.nylasId,
92
- propKey: h
93
- }
94
- ]), i[h.toString()] = C, e(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" value.`, { stateValue: C });
95
- }), $ == null || $.forEach((h, r) => {
96
- const m = this.host[r];
97
- i[h.toString()] = m, e(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to the value of "${r}" value.`, { value: r, mappedPropValue: m });
98
- }), a && (i[a == null ? void 0 : a.toString()] = this.getStore, e(`[${this.hostTagName}] Setting "${t.name}" prop "${a.toString()}" to "getStore" method.`)), c == null || c.forEach((h, r) => {
99
- const m = this.getStore(r);
100
- i[h.toString()] = m, e(`[${this.hostTagName}] Setting "${t.name}" prop "${h.toString()}" to "${r}" store.`, { store: m });
101
- }), l && (i[l == null ? void 0 : l.toString()] = this.nylasConnector, e(`[${this.hostTagName}] Setting "${t.name}" prop "${l.toString()}" to "nylasConnector" value.`, { connectorToProp: l })), typeof i.registerCallback == "function" && (e(`[${this.hostTagName}] (registerComponent) Calling registerCallback method for "${t.name}".`), await i.registerCallback()), e(`[${this.hostTagName}] (registerComponent) Component ${t.name} registered.`);
102
- }
103
- cleanupComponentRegistration(t, o = !0) {
104
- const d = this.eventListenerRegistrations.get(t);
105
- d && (d.forEach(([n, s, g]) => {
106
- const a = T(s.toString());
107
- e(`[${this.hostTagName}] (cleanupComponentRegistration) Removing event listener for "${a}" on "${n.tagName}"`), n.removeEventListener(a, g);
108
- }), this.eventListenerRegistrations.delete(t)), this.propStateRegistrations.forEach((n, s) => {
109
- n.forEach((g, a) => {
110
- var c;
111
- const p = g.filter((l) => l.elementId !== t);
112
- p.length !== g.length && ((c = this.propStateRegistrations.get(s)) == null || c.set(a, p));
113
- });
114
- }), o && delete this.registeredComponents[t];
115
- }
116
- unregisterComponent(t) {
117
- e(`[${this.hostTagName}] Unregistering component ${t.name}.`);
118
- const o = t.element.dataset.nylasId;
119
- if (!o) {
120
- e(`[${this.hostTagName}] (unregisterComponent) Unregistering component ${t.name}.`);
121
- return;
122
- }
123
- if (this.registeredComponents[o]) {
124
- e(`[${this.hostTagName}] (unregisterComponent) Component ${t.name} not registered. Skipping.`);
125
- return;
126
- }
127
- this.propStateRegistrations.forEach((n, s) => {
128
- n.forEach((g, a) => {
129
- var l, $;
130
- const p = (l = this.propStateRegistrations.get(s)) == null ? void 0 : l.get(a), c = p == null ? void 0 : p.filter((i) => i.elementId !== o);
131
- c && (($ = this.propStateRegistrations.get(s)) == null || $.set(a, c));
132
- });
133
- });
134
- const d = this.eventListenerRegistrations.get(o);
135
- d == null || d.forEach(([n, s, g]) => {
136
- const a = T(s.toString());
137
- e(`[${this.hostTagName}] (unregisterComponent) Removing event listener for "${a}" on "${n.tagName}"`), n.removeEventListener(a, g);
138
- }), delete this.registeredComponents[o];
139
- }
140
- getStore(t) {
141
- const o = this.stores[t];
142
- if (!o)
143
- throw new Error(`[${this.hostTagName}] Store "${t.toString()}" not found.`);
144
- return o;
145
- }
146
- async setupStoreListeners() {
147
- const t = this;
148
- Object.entries(this.stores).forEach(([o, d]) => {
149
- e(`[${t.hostTagName}] (setupStoreListeners) Listening for changes in "${o}" store.`), d.use({
150
- set(n, s, g) {
151
- var c;
152
- if (e(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" changed`, { newValue: s, oldValue: g }), s === g) {
153
- e(`[${t.hostTagName}] (setupStoreListeners) Store "${o}" state "${n.toString()}" unchanged. Skipping.`);
154
- return;
155
- }
156
- const a = t.registeredComponents;
157
- if (!a) {
158
- e(`[${t.hostTagName}] (setupStoreListeners) No registered components found. Skipping.`);
159
- return;
160
- }
161
- const p = ((c = t.propStateRegistrations.get(o)) == null ? void 0 : c.get(n.toString())) || [];
162
- e(`[${t.hostTagName}] (setupStoreListeners) Found ${p.length} prop(s) registered for "${n.toString()}" store.`, {
163
- props: p,
164
- propStateRegistrations: t.propStateRegistrations
165
- }), p.forEach(({ elementId: l, propKey: $ }) => {
166
- const i = a[l];
167
- if (!i) {
168
- e(`[${t.hostTagName}] (setupStoreListeners) Component "${l}" not found. Skipping.`, { component: i });
169
- return;
170
- }
171
- const r = t.getStore(o).state[n];
172
- i.element[$.toString()] = r, e(`[${t.hostTagName}] (setupStoreListeners) Setting "${i.name}" prop "${$.toString()}" to "${n.toString()}" value.`, { stateValue: r });
173
- });
174
- }
175
- });
176
- });
177
- }
178
- get hostTagName() {
179
- var t, o;
180
- return ((o = (t = this.host) == null ? void 0 : t.tagName) == null ? void 0 : o.toLowerCase()) ?? "nylas-provider";
181
- }
182
- }
183
- class b extends w {
184
- }
185
- export {
186
- b as N
187
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-d8a42c15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-add-circle-icon-h{display:flex}",d=s,t=class{constructor(c){e.registerInstance(this,c),this.width="24",this.height="25"}render(){return e.h("svg",{key:"f3f2fb57d9face731fdc2dcb2610bdfe4d8695d4",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"461ceb94da94f79aece2e208da886ec860b65e14",d:"M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z",fill:"currentColor"}))}};t.style=d;const i=".sc-close-icon-h{display:flex}",h=i,a=class{constructor(c){e.registerInstance(this,c),this.width="16",this.height="16"}render(){return e.h("svg",{key:"6ba2e8326762d40fed5697c52411e130381cae5e",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"b99abf46a9ac3e143d261c4a72a8d034072c52e5","clip-path":"url(#a)"},e.h("path",{key:"54b09b0c0d251cc982ab03a66c9c496fb63ea280",d:"M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z",fill:"currentColor"})),e.h("defs",{key:"f70a23bb36f8b0f4abbdd8ace2ac2ccf2e570b30"},e.h("clipPath",{key:"37837d0973c51120ef7a8841d885d5edce2b112d",id:"a"},e.h("path",{key:"094391e019662666ac5a51cda34878dbfdeaba8e",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};a.style=h;exports.add_circle_icon=t;exports.close_icon=a;
@@ -1,26 +0,0 @@
1
- import { r as t, h as e } from "./index-140eb219.js";
2
- import "react";
3
- import "react/jsx-runtime";
4
- import "react-dom";
5
- const a = ".sc-add-circle-icon-h{display:flex}", s = a, d = class {
6
- constructor(c) {
7
- t(this, c), this.width = "24", this.height = "25";
8
- }
9
- render() {
10
- return e("svg", { key: "f3f2fb57d9face731fdc2dcb2610bdfe4d8695d4", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "461ceb94da94f79aece2e208da886ec860b65e14", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
11
- }
12
- };
13
- d.style = s;
14
- const i = ".sc-close-icon-h{display:flex}", l = i, o = class {
15
- constructor(c) {
16
- t(this, c), this.width = "16", this.height = "16";
17
- }
18
- render() {
19
- return e("svg", { key: "6ba2e8326762d40fed5697c52411e130381cae5e", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "b99abf46a9ac3e143d261c4a72a8d034072c52e5", "clip-path": "url(#a)" }, e("path", { key: "54b09b0c0d251cc982ab03a66c9c496fb63ea280", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), e("defs", { key: "f70a23bb36f8b0f4abbdd8ace2ac2ccf2e570b30" }, e("clipPath", { key: "37837d0973c51120ef7a8841d885d5edce2b112d", id: "a" }, e("path", { key: "094391e019662666ac5a51cda34878dbfdeaba8e", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
20
- }
21
- };
22
- o.style = l;
23
- export {
24
- d as add_circle_icon,
25
- o as close_icon
26
- };
@@ -1,16 +0,0 @@
1
- import { r as o, h as t } from "./index-140eb219.js";
2
- import "react";
3
- import "react/jsx-runtime";
4
- import "react-dom";
5
- const s = ".sc-archive-icon-h{display:flex}", i = s, a = class {
6
- constructor(e) {
7
- o(this, e), this.width = "15", this.height = "15";
8
- }
9
- render() {
10
- return t("svg", { key: "846883e64fce20852b939ad69b17c50e4a1de305", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "faccfb69f1e2fad408be2c93f9debba7e5bed44f", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "0a67df705c7bb41f38b3a9f46ba00cf39236d833", d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "7845f5af5bb6a7db830df4576ea7e7979de4ca6c", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "b8cb556c7133dd3427ad41574121599411f9d741", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
11
- }
12
- };
13
- a.style = i;
14
- export {
15
- a as archive_icon
16
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-d8a42c15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const h=".sc-archive-icon-h{display:flex}",r=h,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"846883e64fce20852b939ad69b17c50e4a1de305",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"faccfb69f1e2fad408be2c93f9debba7e5bed44f",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0a67df705c7bb41f38b3a9f46ba00cf39236d833",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"7845f5af5bb6a7db830df4576ea7e7979de4ca6c",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"b8cb556c7133dd3427ad41574121599411f9d741",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};t.style=r;exports.archive_icon=t;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-d8a42c15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-arrow-icon-h{display:flex}",i=o,r=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"9a7f6c18c66e1046fff0bb0d814080e8961762f9",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5a2ebac5fcecfa06026aa74c24cfdd787e933d6d",d:"M5 12H19M12 5L19 12L12 19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};r.style=i;exports.arrow_icon=r;
@@ -1,16 +0,0 @@
1
- import { r as o, h as t } from "./index-140eb219.js";
2
- import "react";
3
- import "react/jsx-runtime";
4
- import "react-dom";
5
- const e = ".sc-arrow-icon-h{display:flex}", s = e, i = class {
6
- constructor(r) {
7
- o(this, r), this.width = "15", this.height = "15";
8
- }
9
- render() {
10
- return t("svg", { key: "9a7f6c18c66e1046fff0bb0d814080e8961762f9", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "5a2ebac5fcecfa06026aa74c24cfdd787e933d6d", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
11
- }
12
- };
13
- i.style = s;
14
- export {
15
- i as arrow_icon
16
- };
@@ -1,16 +0,0 @@
1
- import { r as e, h as t } from "./index-140eb219.js";
2
- import "react";
3
- import "react/jsx-runtime";
4
- import "react-dom";
5
- const s = ".sc-bold-icon-h{display:flex}", i = s, r = class {
6
- constructor(o) {
7
- e(this, o), this.width = "15", this.height = "15";
8
- }
9
- render() {
10
- return t("svg", { key: "a511c82949b76f6663e528b0e05009e9e0275a0a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "51849bb1f9701140b87c0869291fe4b486b17ff6", d: "M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
11
- }
12
- };
13
- r.style = i;
14
- export {
15
- r as bold_icon
16
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-d8a42c15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-bold-icon-h{display:flex}",r=i,t=class{constructor(o){e.registerInstance(this,o),this.width="15",this.height="15"}render(){return e.h("svg",{key:"a511c82949b76f6663e528b0e05009e9e0275a0a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"51849bb1f9701140b87c0869291fe4b486b17ff6",d:"M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.bold_icon=t;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-d8a42c15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r="button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}",a=r,o=class{constructor(n){t.registerInstance(this,n),this.variant="primary",this.disabled=!1,this.type="button",this.tooltip="",this.isLoading=!1,this.clickHandler=void 0,this.mouseOverHandler=void 0,this.mouseOutHandler=void 0,this.focusHandler=void 0,this.blurHandler=void 0}render(){const n=`button-${this.variant}`+(this.disabled?" disabled":"");return t.h("button",{key:"9fdcadbf82b1be992b6835bd4c4ac6cf69847512",class:n,disabled:this.disabled,type:"type",title:this.tooltip,onClick:this.clickHandler,onMouseOver:this.mouseOverHandler,onMouseOut:this.mouseOutHandler,onFocus:this.focusHandler,onBlur:this.blurHandler},!!this.isLoading&&t.h("loading-icon",{slot:"icon"}),t.h("slot",{key:"0168b50eac062d43d8a184d70fd5c80932f3e2ea"}))}};o.style=a;const s=".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}",d=s,e=class{constructor(n){t.registerInstance(this,n),this.width="15",this.height="15"}render(){return t.h("div",{key:"cb855fdd798e64637d245045e56a97f016f8b74f",class:"wave"},t.h("div",{key:"41591d61b8eda97e3abdd2ca83f82aada7d67edc",class:"dot"}),t.h("div",{key:"096aa4e8c6f1d9cb5a5d1d24cda06298fd0366b1",class:"dot"}),t.h("div",{key:"d2dd6942fe7b1a8ca68102e9dea7dae88e341824",class:"dot"}))}};e.style=d;exports.button_component=o;exports.loading_icon=e;
@@ -1,27 +0,0 @@
1
- import { r as o, h as t } from "./index-140eb219.js";
2
- import "react";
3
- import "react/jsx-runtime";
4
- import "react-dom";
5
- const a = "button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}", r = a, e = class {
6
- constructor(n) {
7
- o(this, n), this.variant = "primary", this.disabled = !1, this.type = "button", this.tooltip = "", this.isLoading = !1, this.clickHandler = void 0, this.mouseOverHandler = void 0, this.mouseOutHandler = void 0, this.focusHandler = void 0, this.blurHandler = void 0;
8
- }
9
- render() {
10
- const n = `button-${this.variant}` + (this.disabled ? " disabled" : "");
11
- return t("button", { key: "9fdcadbf82b1be992b6835bd4c4ac6cf69847512", class: n, disabled: this.disabled, type: "type", title: this.tooltip, onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, !!this.isLoading && t("loading-icon", { slot: "icon" }), t("slot", { key: "0168b50eac062d43d8a184d70fd5c80932f3e2ea" }));
12
- }
13
- };
14
- e.style = r;
15
- const s = ".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}", d = s, i = class {
16
- constructor(n) {
17
- o(this, n), this.width = "15", this.height = "15";
18
- }
19
- render() {
20
- return t("div", { key: "cb855fdd798e64637d245045e56a97f016f8b74f", class: "wave" }, t("div", { key: "41591d61b8eda97e3abdd2ca83f82aada7d67edc", class: "dot" }), t("div", { key: "096aa4e8c6f1d9cb5a5d1d24cda06298fd0366b1", class: "dot" }), t("div", { key: "d2dd6942fe7b1a8ca68102e9dea7dae88e341824", class: "dot" }));
21
- }
22
- };
23
- i.style = d;
24
- export {
25
- e as button_component,
26
- i as loading_icon
27
- };