@trycourier/courier-react 8.0.11-beta → 8.0.14-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import React, { version, useRef, useEffect } from "react";
2
- import ReactDOM, { flushSync } from "react-dom";
1
+ import React, { useState, useEffect, useRef } from "react";
3
2
  import { createRoot } from "react-dom/client";
3
+ import { flushSync } from "react-dom";
4
4
  var __defProp$1 = Object.defineProperty;
5
5
  var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
6
  var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1176,7 +1176,15 @@ const addSystemThemeModeListener = (callback) => {
1176
1176
  mediaQuery.removeEventListener("change", handler);
1177
1177
  };
1178
1178
  };
1179
- class CourierSystemThemeElement extends HTMLElement {
1179
+ const BaseElement = typeof window === "undefined" ? class {
1180
+ constructor() {
1181
+ }
1182
+ } : class extends HTMLElement {
1183
+ constructor() {
1184
+ super();
1185
+ }
1186
+ };
1187
+ class CourierSystemThemeElement extends BaseElement {
1180
1188
  constructor() {
1181
1189
  super();
1182
1190
  __publicField2(this, "_currentSystemTheme");
@@ -1320,9 +1328,6 @@ class CourierButton extends CourierSystemThemeElement {
1320
1328
  this._style.textContent = this.getStyles(props);
1321
1329
  }
1322
1330
  }
1323
- if (!customElements.get("courier-button")) {
1324
- customElements.define("courier-button", CourierButton);
1325
- }
1326
1331
  const CourierIconSVGs = {
1327
1332
  inbox: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1328
1333
  <path d="M5.5 14.5V17C5.5 17.2812 5.71875 17.5 6 17.5H18C18.25 17.5 18.5 17.2812 18.5 17V14.5H15.9375L15.2812 15.8125C15.0938 16.25 14.6562 16.5 14.1875 16.5H9.78125C9.3125 16.5 8.875 16.25 8.6875 15.8125L8.03125 14.5H5.5ZM18.1875 13L16.6562 6.90625C16.5938 6.65625 16.4062 6.5 16.1875 6.5H7.8125C7.5625 6.5 7.375 6.65625 7.3125 6.90625L5.78125 13H8.1875C8.65625 13 9.09375 13.2812 9.3125 13.7188L9.9375 15H14.0312L14.6875 13.7188C14.875 13.2812 15.3125 13 15.7812 13H18.1875ZM4 14.25C4 14.0938 4 13.9375 4.03125 13.7812L5.84375 6.53125C6.09375 5.625 6.875 5 7.8125 5H16.1875C17.0938 5 17.9062 5.625 18.125 6.53125L19.9375 13.7812C19.9688 13.9375 20 14.0938 20 14.25V17C20 18.125 19.0938 19 18 19H6C4.875 19 4 18.125 4 17V14.25Z" fill="currentColor"/>
@@ -1352,7 +1357,7 @@ const CourierIconSVGs = {
1352
1357
  <path d="M5.5 11C5.0625 11 4.75 10.6875 4.75 10.25V5.75C4.75 5.34375 5.0625 5 5.5 5C5.90625 5 6.25 5.34375 6.25 5.75V8.28125L6.875 7.53125C8.15625 6 10.0625 5 12.25 5C16.0938 5 19.25 8.15625 19.25 12C19.25 15.875 16.0938 19 12.25 19C10.6562 19 9.21875 18.5 8.03125 17.625C7.71875 17.375 7.625 16.9062 7.875 16.5625C8.125 16.2188 8.59375 16.1562 8.9375 16.4062C9.84375 17.0938 11 17.5 12.25 17.5C15.2812 17.5 17.75 15.0625 17.75 12C17.75 8.96875 15.2812 6.5 12.25 6.5C10.5312 6.5 9.03125 7.28125 8 8.5L7.15625 9.5H10C10.4062 9.5 10.75 9.84375 10.75 10.25C10.75 10.6875 10.4062 11 10 11H5.5Z" fill="currentColor"/>
1353
1358
  </svg>`
1354
1359
  };
1355
- class CourierIcon extends HTMLElement {
1360
+ class CourierIcon extends BaseElement {
1356
1361
  constructor(color, svg) {
1357
1362
  super();
1358
1363
  __publicField2(this, "_color");
@@ -1403,10 +1408,7 @@ class CourierIcon extends HTMLElement {
1403
1408
  this.refresh();
1404
1409
  }
1405
1410
  }
1406
- if (!customElements.get("courier-icon")) {
1407
- customElements.define("courier-icon", CourierIcon);
1408
- }
1409
- class CourierLink extends HTMLElement {
1411
+ class CourierLink extends BaseElement {
1410
1412
  constructor() {
1411
1413
  super();
1412
1414
  __publicField2(this, "link");
@@ -1568,9 +1570,6 @@ __publicField2(CourierLink, "observedAttributes", [
1568
1570
  "font-family",
1569
1571
  "font-size"
1570
1572
  ]);
1571
- if (!customElements.get("courier-link")) {
1572
- customElements.define("courier-link", CourierLink);
1573
- }
1574
1573
  class CourierElement extends CourierSystemThemeElement {
1575
1574
  constructor() {
1576
1575
  super();
@@ -1676,10 +1675,7 @@ class CourierInfoState extends CourierElement {
1676
1675
  this._buttonClickCallback = callback;
1677
1676
  }
1678
1677
  }
1679
- if (!customElements.get("courier-info-state")) {
1680
- customElements.define("courier-info-state", CourierInfoState);
1681
- }
1682
- class CourierIconButton extends HTMLElement {
1678
+ class CourierIconButton extends BaseElement {
1683
1679
  constructor(svg, color, backgroundColor, hoverBackgroundColor, activeBackgroundColor, borderRadius, height, width) {
1684
1680
  super();
1685
1681
  __publicField2(this, "_backgroundColor");
@@ -1772,21 +1768,20 @@ class CourierIconButton extends HTMLElement {
1772
1768
  this.refresh();
1773
1769
  }
1774
1770
  }
1775
- if (!customElements.get("courier-icon-button")) {
1776
- customElements.define("courier-icon-button", CourierIconButton);
1771
+ function registerElement(name, element) {
1772
+ if (typeof window !== "undefined" && !customElements.get(name)) {
1773
+ customElements.define(name, element);
1774
+ }
1777
1775
  }
1778
1776
  const components = [
1779
1777
  { name: "courier-button", class: CourierButton },
1780
1778
  { name: "courier-icon", class: CourierIcon },
1781
1779
  { name: "courier-link", class: CourierLink },
1782
1780
  { name: "courier-info-state", class: CourierInfoState },
1783
- { name: "courier-icon-button", class: CourierIconButton }
1781
+ { name: "courier-icon-button", class: CourierIconButton },
1782
+ { name: "courier-system-theme", class: CourierSystemThemeElement }
1784
1783
  ];
1785
- components.forEach(({ name, class: componentClass }) => {
1786
- if (!customElements.get(name)) {
1787
- customElements.define(name, componentClass);
1788
- }
1789
- });
1784
+ components.forEach(({ name, class: componentClass }) => registerElement(name, componentClass));
1790
1785
  function copyMessage(message) {
1791
1786
  const copy = {
1792
1787
  ...message
@@ -1832,7 +1827,7 @@ function getMessageTime(message) {
1832
1827
  if (diffInSeconds < 31536e3) return `${Math.floor(diffInSeconds / 604800)}w`;
1833
1828
  return `${Math.floor(diffInSeconds / 31536e3)}y`;
1834
1829
  }
1835
- class CourierListItemActionMenu extends HTMLElement {
1830
+ class CourierInboxListItemMenu extends BaseElement {
1836
1831
  constructor(theme2) {
1837
1832
  super();
1838
1833
  __publicField(this, "_theme");
@@ -1925,9 +1920,7 @@ class CourierListItemActionMenu extends HTMLElement {
1925
1920
  this.classList.remove("visible");
1926
1921
  }
1927
1922
  }
1928
- if (!customElements.get("courier-list-item-menu")) {
1929
- customElements.define("courier-list-item-menu", CourierListItemActionMenu);
1930
- }
1923
+ registerElement("courier-inbox-list-item-menu", CourierInboxListItemMenu);
1931
1924
  const _CourierInboxDatastore = class _CourierInboxDatastore2 {
1932
1925
  constructor() {
1933
1926
  __publicField(this, "_inboxDataSet");
@@ -2619,7 +2612,7 @@ const _CourierInboxDatastore = class _CourierInboxDatastore2 {
2619
2612
  };
2620
2613
  __publicField(_CourierInboxDatastore, "instance");
2621
2614
  let CourierInboxDatastore = _CourierInboxDatastore;
2622
- class CourierListItem extends HTMLElement {
2615
+ class CourierListItem extends BaseElement {
2623
2616
  constructor(theme2) {
2624
2617
  super();
2625
2618
  __publicField(this, "_theme");
@@ -2658,7 +2651,7 @@ class CourierListItem extends HTMLElement {
2658
2651
  this._unreadIndicator.className = "unread-indicator";
2659
2652
  this._style = document.createElement("style");
2660
2653
  this._refreshStyles();
2661
- this._menu = new CourierListItemActionMenu(this._theme);
2654
+ this._menu = new CourierInboxListItemMenu(this._theme);
2662
2655
  this._menu.setOptions(this._getMenuOptions());
2663
2656
  shadow.append(this._style, this._unreadIndicator, contentContainer, this._timeElement, this._menu);
2664
2657
  const cancelPropagation = (e) => {
@@ -2825,11 +2818,11 @@ class CourierListItem extends HTMLElement {
2825
2818
 
2826
2819
  /* ───────────────────────── Menu hover / active ────────────────── */
2827
2820
  @media (hover: hover) {
2828
- :host(:hover):has(courier-list-item-menu:hover, courier-list-item-menu *:hover, courier-button:hover, courier-button *:hover) {
2821
+ :host(:hover):has(courier-inbox-list-item-menu:hover, courier-inbox-list-item-menu *:hover, courier-button:hover, courier-button *:hover) {
2829
2822
  background-color: ${(listItem == null ? void 0 : listItem.backgroundColor) ?? "transparent"};
2830
2823
  }
2831
2824
  }
2832
- :host(:active):has(courier-list-item-menu:active, courier-list-item-menu *:active, courier-button:active, courier-button *:active) {
2825
+ :host(:active):has(courier-inbox-list-item-menu:active, courier-inbox-list-item-menu *:active, courier-button:active, courier-button *:active) {
2833
2826
  background-color: ${(listItem == null ? void 0 : listItem.backgroundColor) ?? "transparent"};
2834
2827
  }
2835
2828
 
@@ -2893,7 +2886,7 @@ class CourierListItem extends HTMLElement {
2893
2886
  white-space: nowrap;
2894
2887
  }
2895
2888
 
2896
- courier-list-item-menu {
2889
+ courier-inbox-list-item-menu {
2897
2890
  z-index: 1;
2898
2891
  position: absolute;
2899
2892
  top: 8px;
@@ -2989,10 +2982,8 @@ class CourierListItem extends HTMLElement {
2989
2982
  });
2990
2983
  }
2991
2984
  }
2992
- if (!customElements.get("courier-list-item")) {
2993
- customElements.define("courier-list-item", CourierListItem);
2994
- }
2995
- class CourierInboxSkeletonListItem extends HTMLElement {
2985
+ registerElement("courier-inbox-list-item", CourierListItem);
2986
+ class CourierInboxSkeletonListItem extends BaseElement {
2996
2987
  constructor(theme2, opacity) {
2997
2988
  super();
2998
2989
  __publicField(this, "_shadow");
@@ -3021,10 +3012,8 @@ class CourierInboxSkeletonListItem extends HTMLElement {
3021
3012
  `;
3022
3013
  }
3023
3014
  }
3024
- if (!customElements.get("courier-inbox-skeleton-list-item")) {
3025
- customElements.define("courier-inbox-skeleton-list-item", CourierInboxSkeletonListItem);
3026
- }
3027
- class CourierSkeletonAnimatedRow extends HTMLElement {
3015
+ registerElement("courier-inbox-skeleton-list-item", CourierInboxSkeletonListItem);
3016
+ class CourierSkeletonAnimatedRow extends BaseElement {
3028
3017
  constructor(theme2, widthPercent) {
3029
3018
  super();
3030
3019
  __publicField(this, "_shadow");
@@ -3079,9 +3068,7 @@ class CourierSkeletonAnimatedRow extends HTMLElement {
3079
3068
  `;
3080
3069
  }
3081
3070
  }
3082
- if (!customElements.get("courier-skeleton-animated-row")) {
3083
- customElements.define("courier-skeleton-animated-row", CourierSkeletonAnimatedRow);
3084
- }
3071
+ registerElement("courier-skeleton-animated-row", CourierSkeletonAnimatedRow);
3085
3072
  class CourierInboxSkeletonList extends CourierElement {
3086
3073
  constructor(theme2) {
3087
3074
  super();
@@ -3131,10 +3118,8 @@ class CourierInboxSkeletonList extends CourierElement {
3131
3118
  `;
3132
3119
  }
3133
3120
  }
3134
- if (!customElements.get("courier-inbox-skeleton-list")) {
3135
- customElements.define("courier-inbox-skeleton-list", CourierInboxSkeletonList);
3136
- }
3137
- class CourierInboxPaginationListItem extends HTMLElement {
3121
+ registerElement("courier-inbox-skeleton-list", CourierInboxSkeletonList);
3122
+ class CourierInboxPaginationListItem extends BaseElement {
3138
3123
  constructor(props) {
3139
3124
  super();
3140
3125
  __publicField(this, "skeletonLoadingList");
@@ -3183,10 +3168,8 @@ class CourierInboxPaginationListItem extends HTMLElement {
3183
3168
  this.observer.disconnect();
3184
3169
  }
3185
3170
  }
3186
- if (!customElements.get("courier-inbox-pagination-list-item")) {
3187
- customElements.define("courier-inbox-pagination-list-item", CourierInboxPaginationListItem);
3188
- }
3189
- class CourierInboxList extends HTMLElement {
3171
+ registerElement("courier-inbox-pagination-list-item", CourierInboxPaginationListItem);
3172
+ class CourierInboxList extends BaseElement {
3190
3173
  constructor(props) {
3191
3174
  super();
3192
3175
  __publicField(this, "_themeSubscription");
@@ -3433,10 +3416,8 @@ class CourierInboxList extends HTMLElement {
3433
3416
  this._themeSubscription.unsubscribe();
3434
3417
  }
3435
3418
  }
3436
- if (!customElements.get("courier-inbox-list")) {
3437
- customElements.define("courier-inbox-list", CourierInboxList);
3438
- }
3439
- class CourierInboxOptionMenuItem extends HTMLElement {
3419
+ registerElement("courier-inbox-list", CourierInboxList);
3420
+ class CourierInboxOptionMenuItem extends BaseElement {
3440
3421
  constructor(props) {
3441
3422
  super();
3442
3423
  __publicField(this, "_option");
@@ -3526,10 +3507,8 @@ class CourierInboxOptionMenuItem extends HTMLElement {
3526
3507
  this._itemIcon.updateSVG(((_d = this._option.icon) == null ? void 0 : _d.svg) ?? CourierIconSVGs.inbox);
3527
3508
  }
3528
3509
  }
3529
- if (!customElements.get("courier-inbox-filter-menu-item")) {
3530
- customElements.define("courier-inbox-filter-menu-item", CourierInboxOptionMenuItem);
3531
- }
3532
- class CourierInboxOptionMenu extends HTMLElement {
3510
+ registerElement("courier-inbox-filter-menu-item", CourierInboxOptionMenuItem);
3511
+ class CourierInboxOptionMenu extends BaseElement {
3533
3512
  constructor(themeManager, type, selectable, options, onMenuOpen) {
3534
3513
  super();
3535
3514
  __publicField(this, "_themeSubscription");
@@ -3655,10 +3634,8 @@ class CourierInboxOptionMenu extends HTMLElement {
3655
3634
  this._themeSubscription.unsubscribe();
3656
3635
  }
3657
3636
  }
3658
- if (!customElements.get("courier-inbox-option-menu")) {
3659
- customElements.define("courier-inbox-option-menu", CourierInboxOptionMenu);
3660
- }
3661
- class CourierUnreadCountBadge extends HTMLElement {
3637
+ registerElement("courier-inbox-option-menu", CourierInboxOptionMenu);
3638
+ class CourierUnreadCountBadge extends BaseElement {
3662
3639
  constructor(props) {
3663
3640
  super();
3664
3641
  __publicField(this, "_themeSubscription");
@@ -3724,10 +3701,8 @@ class CourierUnreadCountBadge extends HTMLElement {
3724
3701
  this._themeSubscription.unsubscribe();
3725
3702
  }
3726
3703
  }
3727
- if (!customElements.get("courier-unread-count-badge")) {
3728
- customElements.define("courier-unread-count-badge", CourierUnreadCountBadge);
3729
- }
3730
- class CourierInboxHeaderTitle extends HTMLElement {
3704
+ registerElement("courier-unread-count-badge", CourierUnreadCountBadge);
3705
+ class CourierInboxHeaderTitle extends BaseElement {
3731
3706
  constructor(themeManager, option) {
3732
3707
  super();
3733
3708
  __publicField(this, "_themeSubscription");
@@ -3821,9 +3796,7 @@ class CourierInboxHeaderTitle extends HTMLElement {
3821
3796
  this._themeSubscription.unsubscribe();
3822
3797
  }
3823
3798
  }
3824
- if (!customElements.get("courier-inbox-header-title")) {
3825
- customElements.define("courier-inbox-header-title", CourierInboxHeaderTitle);
3826
- }
3799
+ registerElement("courier-inbox-header-title", CourierInboxHeaderTitle);
3827
3800
  class CourierInboxHeader extends CourierElement {
3828
3801
  constructor(props) {
3829
3802
  super();
@@ -4025,9 +3998,7 @@ class CourierInboxHeader extends CourierElement {
4025
3998
  this._themeSubscription.unsubscribe();
4026
3999
  }
4027
4000
  }
4028
- if (!customElements.get("courier-inbox-header")) {
4029
- customElements.define("courier-inbox-header", CourierInboxHeader);
4030
- }
4001
+ registerElement("courier-inbox-header", CourierInboxHeader);
4031
4002
  class CourierInboxDataStoreListener {
4032
4003
  constructor(events) {
4033
4004
  __publicField(this, "events");
@@ -4803,7 +4774,7 @@ class CourierInboxThemeManager {
4803
4774
  this._subscriptions = [];
4804
4775
  }
4805
4776
  }
4806
- let CourierInbox$1 = class CourierInbox extends HTMLElement {
4777
+ let CourierInbox$1 = class CourierInbox extends BaseElement {
4807
4778
  constructor(themeManager) {
4808
4779
  var _a;
4809
4780
  super();
@@ -5103,9 +5074,7 @@ let CourierInbox$1 = class CourierInbox extends HTMLElement {
5103
5074
  }
5104
5075
  }
5105
5076
  };
5106
- if (!customElements.get("courier-inbox")) {
5107
- customElements.define("courier-inbox", CourierInbox$1);
5108
- }
5077
+ registerElement("courier-inbox", CourierInbox$1);
5109
5078
  class CourierInboxMenuButton extends CourierElement {
5110
5079
  constructor(themeBus) {
5111
5080
  super();
@@ -5169,10 +5138,8 @@ class CourierInboxMenuButton extends CourierElement {
5169
5138
  this._themeSubscription.unsubscribe();
5170
5139
  }
5171
5140
  }
5172
- if (!customElements.get("courier-inbox-menu-button")) {
5173
- customElements.define("courier-inbox-menu-button", CourierInboxMenuButton);
5174
- }
5175
- let CourierInboxMenu$1 = class CourierInboxMenu extends HTMLElement {
5141
+ registerElement("courier-inbox-menu-button", CourierInboxMenuButton);
5142
+ let CourierInboxPopupMenu$1 = class CourierInboxPopupMenu extends BaseElement {
5176
5143
  constructor() {
5177
5144
  super();
5178
5145
  __publicField(this, "_width", "440px");
@@ -5472,9 +5439,7 @@ let CourierInboxMenu$1 = class CourierInboxMenu extends HTMLElement {
5472
5439
  this._themeManager.cleanup();
5473
5440
  }
5474
5441
  };
5475
- if (!customElements.get("courier-inbox-menu")) {
5476
- customElements.define("courier-inbox-menu", CourierInboxMenu$1);
5477
- }
5442
+ registerElement("courier-inbox-popup-menu", CourierInboxPopupMenu$1);
5478
5443
  const useCourier = () => {
5479
5444
  const signIn = (props) => Courier.shared.signIn(props);
5480
5445
  const signOut = () => Courier.shared.signOut();
@@ -5879,7 +5844,6 @@ function requireJsxRuntime() {
5879
5844
  return jsxRuntime.exports;
5880
5845
  }
5881
5846
  var jsxRuntimeExports = requireJsxRuntime();
5882
- const reactVersion = parseInt(version.split(".")[0]);
5883
5847
  function reactNodeToHTMLElement(node) {
5884
5848
  const container = document.createElement("div");
5885
5849
  flushSync(() => {
@@ -5888,13 +5852,22 @@ function reactNodeToHTMLElement(node) {
5888
5852
  return container;
5889
5853
  }
5890
5854
  function render(node, container) {
5891
- if (reactVersion >= 18) {
5892
- const root = createRoot(container);
5893
- return root.render(node);
5894
- }
5895
- const render2 = ReactDOM["render"];
5896
- return render2(node, container);
5855
+ const root = createRoot(container);
5856
+ return root.render(node);
5897
5857
  }
5858
+ const CourierClientComponent = ({ children }) => {
5859
+ const [isMounted, setIsMounted] = useState(false);
5860
+ useEffect(() => {
5861
+ setIsMounted(true);
5862
+ }, []);
5863
+ if (typeof window === "undefined") {
5864
+ return null;
5865
+ }
5866
+ if (!isMounted) {
5867
+ return null;
5868
+ }
5869
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children });
5870
+ };
5898
5871
  const CourierInbox2 = (props) => {
5899
5872
  const inboxRef = useRef(null);
5900
5873
  useEffect(() => {
@@ -5979,21 +5952,18 @@ const CourierInbox2 = (props) => {
5979
5952
  inbox.setFeedType(props.feedType || "inbox");
5980
5953
  });
5981
5954
  }, [props.feedType, inboxRef]);
5982
- return (
5983
- /* @ts-ignore */
5984
- /* @__PURE__ */ jsxRuntimeExports.jsx(
5985
- "courier-inbox",
5986
- {
5987
- ref: inboxRef,
5988
- height: props.height,
5989
- "light-theme": props.lightTheme ? JSON.stringify(props.lightTheme) : void 0,
5990
- "dark-theme": props.darkTheme ? JSON.stringify(props.darkTheme) : void 0,
5991
- mode: props.mode
5992
- }
5993
- )
5994
- );
5955
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CourierClientComponent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5956
+ "courier-inbox",
5957
+ {
5958
+ ref: inboxRef,
5959
+ height: props.height,
5960
+ "light-theme": props.lightTheme ? JSON.stringify(props.lightTheme) : void 0,
5961
+ "dark-theme": props.darkTheme ? JSON.stringify(props.darkTheme) : void 0,
5962
+ mode: props.mode
5963
+ }
5964
+ ) });
5995
5965
  };
5996
- const CourierInboxMenu2 = (props) => {
5966
+ const CourierInboxPopupMenu2 = (props) => {
5997
5967
  const menuRef = useRef(null);
5998
5968
  useEffect(() => {
5999
5969
  const menu = menuRef.current;
@@ -6087,29 +6057,26 @@ const CourierInboxMenu2 = (props) => {
6087
6057
  menu.setFeedType(props.feedType || "inbox");
6088
6058
  });
6089
6059
  }, [props.feedType, menuRef]);
6090
- return (
6091
- /* @ts-ignore */
6092
- /* @__PURE__ */ jsxRuntimeExports.jsx(
6093
- "courier-inbox-menu",
6094
- {
6095
- ref: menuRef,
6096
- "popup-alignment": props.popupAlignment,
6097
- "popup-width": props.popupWidth,
6098
- "popup-height": props.popupHeight,
6099
- left: props.left,
6100
- top: props.top,
6101
- right: props.right,
6102
- bottom: props.bottom,
6103
- "light-theme": props.lightTheme ? JSON.stringify(props.lightTheme) : void 0,
6104
- "dark-theme": props.darkTheme ? JSON.stringify(props.darkTheme) : void 0,
6105
- mode: props.mode
6106
- }
6107
- )
6108
- );
6060
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CourierClientComponent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6061
+ "courier-inbox-popup-menu",
6062
+ {
6063
+ ref: menuRef,
6064
+ "popup-alignment": props.popupAlignment,
6065
+ "popup-width": props.popupWidth,
6066
+ "popup-height": props.popupHeight,
6067
+ left: props.left,
6068
+ top: props.top,
6069
+ right: props.right,
6070
+ bottom: props.bottom,
6071
+ "light-theme": props.lightTheme ? JSON.stringify(props.lightTheme) : void 0,
6072
+ "dark-theme": props.darkTheme ? JSON.stringify(props.darkTheme) : void 0,
6073
+ mode: props.mode
6074
+ }
6075
+ ) });
6109
6076
  };
6110
6077
  export {
6111
6078
  CourierInbox2 as CourierInbox,
6112
- CourierInboxMenu2 as CourierInboxMenu,
6079
+ CourierInboxPopupMenu2 as CourierInboxPopupMenu,
6113
6080
  useCourier
6114
6081
  };
6115
6082
  //# sourceMappingURL=index.mjs.map