@trycourier/courier-react 8.0.7-beta → 8.0.8-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,10 +1,6 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import React, { version, useRef, useEffect } from "react";
1
+ import React, { useRef, useEffect } from "react";
5
2
  import require$$1 from "object-assign";
6
- import { flushSync } from "react-dom";
7
- import { createRoot } from "react-dom/client";
3
+ import ReactDOM, { flushSync } from "react-dom";
8
4
  var __defProp$1 = Object.defineProperty;
9
5
  var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
6
  var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1106,12 +1102,12 @@ const _Courier = class _Courier2 {
1106
1102
  };
1107
1103
  __publicField$1(_Courier, "instance");
1108
1104
  let Courier = _Courier;
1105
+ var __defProp = Object.defineProperty;
1106
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1107
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1109
1108
  var __defProp2 = Object.defineProperty;
1110
1109
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1111
1110
  var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
1112
- var __defProp22 = Object.defineProperty;
1113
- var __defNormalProp22 = (obj, key, value) => key in obj ? __defProp22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1114
- var __publicField22 = (obj, key, value) => __defNormalProp22(obj, typeof key !== "symbol" ? key + "" : key, value);
1115
1111
  const CourierColors = {
1116
1112
  black: {
1117
1113
  500: "#171717",
@@ -1183,8 +1179,8 @@ const addSystemThemeModeListener = (callback) => {
1183
1179
  class CourierSystemThemeElement extends HTMLElement {
1184
1180
  constructor() {
1185
1181
  super();
1186
- __publicField22(this, "_currentSystemTheme");
1187
- __publicField22(this, "_systemThemeCleanup");
1182
+ __publicField2(this, "_currentSystemTheme");
1183
+ __publicField2(this, "_systemThemeCleanup");
1188
1184
  this._currentSystemTheme = getSystemThemeMode();
1189
1185
  this._systemThemeCleanup = addSystemThemeModeListener((mode) => {
1190
1186
  this._currentSystemTheme = mode;
@@ -1234,8 +1230,8 @@ const CourierButtonVariants = {
1234
1230
  class CourierButton extends CourierSystemThemeElement {
1235
1231
  constructor(props) {
1236
1232
  super();
1237
- __publicField22(this, "_button");
1238
- __publicField22(this, "_style");
1233
+ __publicField2(this, "_button");
1234
+ __publicField2(this, "_style");
1239
1235
  const shadow = this.attachShadow({ mode: "open" });
1240
1236
  this._button = document.createElement("button");
1241
1237
  this._button.setAttribute("part", "button");
@@ -1359,10 +1355,10 @@ const CourierIconSVGs = {
1359
1355
  class CourierIcon extends HTMLElement {
1360
1356
  constructor(color, svg) {
1361
1357
  super();
1362
- __publicField22(this, "_color");
1363
- __publicField22(this, "_svg");
1364
- __publicField22(this, "_iconContainer");
1365
- __publicField22(this, "_style");
1358
+ __publicField2(this, "_color");
1359
+ __publicField2(this, "_svg");
1360
+ __publicField2(this, "_iconContainer");
1361
+ __publicField2(this, "_style");
1366
1362
  this._color = color ?? CourierColors.black[500];
1367
1363
  this._svg = svg;
1368
1364
  const shadow = this.attachShadow({ mode: "open" });
@@ -1413,7 +1409,7 @@ if (!customElements.get("courier-icon")) {
1413
1409
  class CourierLink extends HTMLElement {
1414
1410
  constructor() {
1415
1411
  super();
1416
- __publicField22(this, "link");
1412
+ __publicField2(this, "link");
1417
1413
  const shadow = this.attachShadow({ mode: "open" });
1418
1414
  this.link = document.createElement("a");
1419
1415
  this.link.setAttribute("part", "link");
@@ -1561,7 +1557,7 @@ class CourierLink extends HTMLElement {
1561
1557
  }
1562
1558
  }
1563
1559
  }
1564
- __publicField22(CourierLink, "observedAttributes", [
1560
+ __publicField2(CourierLink, "observedAttributes", [
1565
1561
  "href",
1566
1562
  "variant",
1567
1563
  "disabled",
@@ -1578,7 +1574,7 @@ if (!customElements.get("courier-link")) {
1578
1574
  class CourierElement extends CourierSystemThemeElement {
1579
1575
  constructor() {
1580
1576
  super();
1581
- __publicField22(this, "shadow");
1577
+ __publicField2(this, "shadow");
1582
1578
  this.shadow = this.attachShadow({ mode: "open" });
1583
1579
  }
1584
1580
  // Build the element with a factory function
@@ -1605,11 +1601,11 @@ class CourierElement extends CourierSystemThemeElement {
1605
1601
  class CourierInfoState extends CourierElement {
1606
1602
  constructor(props) {
1607
1603
  super();
1608
- __publicField22(this, "_props");
1609
- __publicField22(this, "_title");
1610
- __publicField22(this, "_button");
1611
- __publicField22(this, "_style");
1612
- __publicField22(this, "_buttonClickCallback", null);
1604
+ __publicField2(this, "_props");
1605
+ __publicField2(this, "_title");
1606
+ __publicField2(this, "_button");
1607
+ __publicField2(this, "_style");
1608
+ __publicField2(this, "_buttonClickCallback", null);
1613
1609
  this._props = props;
1614
1610
  }
1615
1611
  defaultElement() {
@@ -1686,15 +1682,15 @@ if (!customElements.get("courier-info-state")) {
1686
1682
  class CourierIconButton extends HTMLElement {
1687
1683
  constructor(svg, color, backgroundColor, hoverBackgroundColor, activeBackgroundColor, borderRadius, height, width) {
1688
1684
  super();
1689
- __publicField22(this, "_backgroundColor");
1690
- __publicField22(this, "_hoverBackgroundColor");
1691
- __publicField22(this, "_activeBackgroundColor");
1692
- __publicField22(this, "_borderRadius");
1693
- __publicField22(this, "_height");
1694
- __publicField22(this, "_width");
1695
- __publicField22(this, "_style");
1696
- __publicField22(this, "_button");
1697
- __publicField22(this, "_icon");
1685
+ __publicField2(this, "_backgroundColor");
1686
+ __publicField2(this, "_hoverBackgroundColor");
1687
+ __publicField2(this, "_activeBackgroundColor");
1688
+ __publicField2(this, "_borderRadius");
1689
+ __publicField2(this, "_height");
1690
+ __publicField2(this, "_width");
1691
+ __publicField2(this, "_style");
1692
+ __publicField2(this, "_button");
1693
+ __publicField2(this, "_icon");
1698
1694
  this._borderRadius = borderRadius;
1699
1695
  this._backgroundColor = backgroundColor;
1700
1696
  this._hoverBackgroundColor = hoverBackgroundColor;
@@ -1839,9 +1835,9 @@ function getMessageTime(message) {
1839
1835
  class CourierListItemActionMenu extends HTMLElement {
1840
1836
  constructor(theme2) {
1841
1837
  super();
1842
- __publicField2(this, "_theme");
1843
- __publicField2(this, "_options", []);
1844
- __publicField2(this, "_style");
1838
+ __publicField(this, "_theme");
1839
+ __publicField(this, "_options", []);
1840
+ __publicField(this, "_style");
1845
1841
  this._theme = theme2;
1846
1842
  const shadow = this.attachShadow({ mode: "open" });
1847
1843
  this._style = document.createElement("style");
@@ -1934,12 +1930,12 @@ if (!customElements.get("courier-list-item-menu")) {
1934
1930
  }
1935
1931
  const _CourierInboxDatastore = class _CourierInboxDatastore2 {
1936
1932
  constructor() {
1937
- __publicField2(this, "_inboxDataSet");
1938
- __publicField2(this, "_archiveDataSet");
1939
- __publicField2(this, "_dataStoreListeners", []);
1940
- __publicField2(this, "_unreadCount");
1941
- __publicField2(this, "isPaginatingInbox", false);
1942
- __publicField2(this, "isPaginatingArchive", false);
1933
+ __publicField(this, "_inboxDataSet");
1934
+ __publicField(this, "_archiveDataSet");
1935
+ __publicField(this, "_dataStoreListeners", []);
1936
+ __publicField(this, "_unreadCount");
1937
+ __publicField(this, "isPaginatingInbox", false);
1938
+ __publicField(this, "isPaginatingArchive", false);
1943
1939
  }
1944
1940
  static get shared() {
1945
1941
  if (!_CourierInboxDatastore2.instance) {
@@ -2621,27 +2617,27 @@ const _CourierInboxDatastore = class _CourierInboxDatastore2 {
2621
2617
  };
2622
2618
  }
2623
2619
  };
2624
- __publicField2(_CourierInboxDatastore, "instance");
2620
+ __publicField(_CourierInboxDatastore, "instance");
2625
2621
  let CourierInboxDatastore = _CourierInboxDatastore;
2626
2622
  class CourierListItem extends HTMLElement {
2627
2623
  constructor(theme2) {
2628
2624
  super();
2629
- __publicField2(this, "_theme");
2630
- __publicField2(this, "_message", null);
2631
- __publicField2(this, "_feedType", "inbox");
2632
- __publicField2(this, "_isMobile", false);
2633
- __publicField2(this, "_titleElement");
2634
- __publicField2(this, "_subtitleElement");
2635
- __publicField2(this, "_timeElement");
2636
- __publicField2(this, "_style");
2637
- __publicField2(this, "_menu");
2638
- __publicField2(this, "_unreadIndicator");
2639
- __publicField2(this, "_actionsContainer");
2640
- __publicField2(this, "_longPressTimeout", null);
2641
- __publicField2(this, "_isLongPress", false);
2642
- __publicField2(this, "onItemClick", null);
2643
- __publicField2(this, "onItemLongPress", null);
2644
- __publicField2(this, "onItemActionClick", null);
2625
+ __publicField(this, "_theme");
2626
+ __publicField(this, "_message", null);
2627
+ __publicField(this, "_feedType", "inbox");
2628
+ __publicField(this, "_isMobile", false);
2629
+ __publicField(this, "_titleElement");
2630
+ __publicField(this, "_subtitleElement");
2631
+ __publicField(this, "_timeElement");
2632
+ __publicField(this, "_style");
2633
+ __publicField(this, "_menu");
2634
+ __publicField(this, "_unreadIndicator");
2635
+ __publicField(this, "_actionsContainer");
2636
+ __publicField(this, "_longPressTimeout", null);
2637
+ __publicField(this, "_isLongPress", false);
2638
+ __publicField(this, "onItemClick", null);
2639
+ __publicField(this, "onItemLongPress", null);
2640
+ __publicField(this, "onItemActionClick", null);
2645
2641
  this._theme = theme2;
2646
2642
  this._isMobile = "ontouchstart" in window;
2647
2643
  const shadow = this.attachShadow({ mode: "open" });
@@ -2999,7 +2995,7 @@ if (!customElements.get("courier-list-item")) {
2999
2995
  class CourierInboxSkeletonListItem extends HTMLElement {
3000
2996
  constructor(theme2, opacity) {
3001
2997
  super();
3002
- __publicField2(this, "_shadow");
2998
+ __publicField(this, "_shadow");
3003
2999
  this._shadow = this.attachShadow({ mode: "open" });
3004
3000
  const style = document.createElement("style");
3005
3001
  style.textContent = this.getStyles(opacity);
@@ -3031,7 +3027,7 @@ if (!customElements.get("courier-inbox-skeleton-list-item")) {
3031
3027
  class CourierSkeletonAnimatedRow extends HTMLElement {
3032
3028
  constructor(theme2, widthPercent) {
3033
3029
  super();
3034
- __publicField2(this, "_shadow");
3030
+ __publicField(this, "_shadow");
3035
3031
  this._shadow = this.attachShadow({ mode: "open" });
3036
3032
  const style = document.createElement("style");
3037
3033
  style.textContent = this.getStyles(theme2, widthPercent);
@@ -3089,7 +3085,7 @@ if (!customElements.get("courier-skeleton-animated-row")) {
3089
3085
  class CourierInboxSkeletonList extends CourierElement {
3090
3086
  constructor(theme2) {
3091
3087
  super();
3092
- __publicField2(this, "_theme");
3088
+ __publicField(this, "_theme");
3093
3089
  this._theme = theme2;
3094
3090
  }
3095
3091
  defaultElement() {
@@ -3141,10 +3137,10 @@ if (!customElements.get("courier-inbox-skeleton-list")) {
3141
3137
  class CourierInboxPaginationListItem extends HTMLElement {
3142
3138
  constructor(props) {
3143
3139
  super();
3144
- __publicField2(this, "skeletonLoadingList");
3145
- __publicField2(this, "observer");
3146
- __publicField2(this, "customItem");
3147
- __publicField2(this, "onPaginationTrigger");
3140
+ __publicField(this, "skeletonLoadingList");
3141
+ __publicField(this, "observer");
3142
+ __publicField(this, "customItem");
3143
+ __publicField(this, "onPaginationTrigger");
3148
3144
  this.onPaginationTrigger = props.onPaginationTrigger;
3149
3145
  this.customItem = props.customItem;
3150
3146
  const shadow = this.attachShadow({ mode: "open" });
@@ -3193,22 +3189,22 @@ if (!customElements.get("courier-inbox-pagination-list-item")) {
3193
3189
  class CourierInboxList extends HTMLElement {
3194
3190
  constructor(props) {
3195
3191
  super();
3196
- __publicField2(this, "_themeSubscription");
3197
- __publicField2(this, "_messages", []);
3198
- __publicField2(this, "_feedType", "inbox");
3199
- __publicField2(this, "_isLoading", true);
3200
- __publicField2(this, "_error", null);
3201
- __publicField2(this, "_canPaginate", false);
3202
- __publicField2(this, "_onMessageClick", null);
3203
- __publicField2(this, "_onMessageActionClick", null);
3204
- __publicField2(this, "_onMessageLongPress", null);
3205
- __publicField2(this, "_onRefresh");
3206
- __publicField2(this, "_onPaginationTrigger");
3207
- __publicField2(this, "_listItemFactory");
3208
- __publicField2(this, "_paginationItemFactory");
3209
- __publicField2(this, "_loadingStateFactory");
3210
- __publicField2(this, "_emptyStateFactory");
3211
- __publicField2(this, "_errorStateFactory");
3192
+ __publicField(this, "_themeSubscription");
3193
+ __publicField(this, "_messages", []);
3194
+ __publicField(this, "_feedType", "inbox");
3195
+ __publicField(this, "_isLoading", true);
3196
+ __publicField(this, "_error", null);
3197
+ __publicField(this, "_canPaginate", false);
3198
+ __publicField(this, "_onMessageClick", null);
3199
+ __publicField(this, "_onMessageActionClick", null);
3200
+ __publicField(this, "_onMessageLongPress", null);
3201
+ __publicField(this, "_onRefresh");
3202
+ __publicField(this, "_onPaginationTrigger");
3203
+ __publicField(this, "_listItemFactory");
3204
+ __publicField(this, "_paginationItemFactory");
3205
+ __publicField(this, "_loadingStateFactory");
3206
+ __publicField(this, "_emptyStateFactory");
3207
+ __publicField(this, "_errorStateFactory");
3212
3208
  this._themeSubscription = props.themeManager.subscribe((_) => {
3213
3209
  this.refreshTheme();
3214
3210
  });
@@ -3443,14 +3439,14 @@ if (!customElements.get("courier-inbox-list")) {
3443
3439
  class CourierInboxOptionMenuItem extends HTMLElement {
3444
3440
  constructor(props) {
3445
3441
  super();
3446
- __publicField2(this, "_option");
3447
- __publicField2(this, "_isSelected");
3448
- __publicField2(this, "_content");
3449
- __publicField2(this, "_itemIcon");
3450
- __publicField2(this, "_title");
3451
- __publicField2(this, "_selectionIcon");
3452
- __publicField2(this, "_style");
3453
- __publicField2(this, "_themeManager");
3442
+ __publicField(this, "_option");
3443
+ __publicField(this, "_isSelected");
3444
+ __publicField(this, "_content");
3445
+ __publicField(this, "_itemIcon");
3446
+ __publicField(this, "_title");
3447
+ __publicField(this, "_selectionIcon");
3448
+ __publicField(this, "_style");
3449
+ __publicField(this, "_themeManager");
3454
3450
  this._option = props.option;
3455
3451
  this._isSelected = props.isSelected;
3456
3452
  this._themeManager = props.themeManager;
@@ -3536,15 +3532,15 @@ if (!customElements.get("courier-inbox-filter-menu-item")) {
3536
3532
  class CourierInboxOptionMenu extends HTMLElement {
3537
3533
  constructor(themeManager, type, selectable, options, onMenuOpen) {
3538
3534
  super();
3539
- __publicField2(this, "_themeSubscription");
3540
- __publicField2(this, "_type");
3541
- __publicField2(this, "_selectedIndex", 0);
3542
- __publicField2(this, "_options");
3543
- __publicField2(this, "_selectable");
3544
- __publicField2(this, "_onMenuOpen");
3545
- __publicField2(this, "_menuButton");
3546
- __publicField2(this, "_menu");
3547
- __publicField2(this, "_style");
3535
+ __publicField(this, "_themeSubscription");
3536
+ __publicField(this, "_type");
3537
+ __publicField(this, "_selectedIndex", 0);
3538
+ __publicField(this, "_options");
3539
+ __publicField(this, "_selectable");
3540
+ __publicField(this, "_onMenuOpen");
3541
+ __publicField(this, "_menuButton");
3542
+ __publicField(this, "_menu");
3543
+ __publicField(this, "_style");
3548
3544
  this._type = type;
3549
3545
  this._selectable = selectable;
3550
3546
  this._options = options;
@@ -3665,11 +3661,11 @@ if (!customElements.get("courier-inbox-option-menu")) {
3665
3661
  class CourierUnreadCountBadge extends HTMLElement {
3666
3662
  constructor(props) {
3667
3663
  super();
3668
- __publicField2(this, "_themeSubscription");
3669
- __publicField2(this, "_location");
3670
- __publicField2(this, "_count", 0);
3671
- __publicField2(this, "_badge");
3672
- __publicField2(this, "_style");
3664
+ __publicField(this, "_themeSubscription");
3665
+ __publicField(this, "_location");
3666
+ __publicField(this, "_count", 0);
3667
+ __publicField(this, "_badge");
3668
+ __publicField(this, "_style");
3673
3669
  this._location = props.location;
3674
3670
  this._themeSubscription = props.themeBus.subscribe((_) => {
3675
3671
  this.refreshTheme(this._location);
@@ -3734,14 +3730,14 @@ if (!customElements.get("courier-unread-count-badge")) {
3734
3730
  class CourierInboxHeaderTitle extends HTMLElement {
3735
3731
  constructor(themeManager, option) {
3736
3732
  super();
3737
- __publicField2(this, "_themeSubscription");
3738
- __publicField2(this, "_option");
3739
- __publicField2(this, "_feedType");
3740
- __publicField2(this, "_titleElement");
3741
- __publicField2(this, "_iconElement");
3742
- __publicField2(this, "_unreadBadge");
3743
- __publicField2(this, "_container");
3744
- __publicField2(this, "_style");
3733
+ __publicField(this, "_themeSubscription");
3734
+ __publicField(this, "_option");
3735
+ __publicField(this, "_feedType");
3736
+ __publicField(this, "_titleElement");
3737
+ __publicField(this, "_iconElement");
3738
+ __publicField(this, "_unreadBadge");
3739
+ __publicField(this, "_container");
3740
+ __publicField(this, "_style");
3745
3741
  this._option = option;
3746
3742
  const shadow = this.attachShadow({ mode: "open" });
3747
3743
  this._style = document.createElement("style");
@@ -3831,14 +3827,14 @@ if (!customElements.get("courier-inbox-header-title")) {
3831
3827
  class CourierInboxHeader extends CourierElement {
3832
3828
  constructor(props) {
3833
3829
  super();
3834
- __publicField2(this, "_themeSubscription");
3835
- __publicField2(this, "_feedType", "inbox");
3836
- __publicField2(this, "_unreadCount", 0);
3837
- __publicField2(this, "_titleSection");
3838
- __publicField2(this, "_filterMenu");
3839
- __publicField2(this, "_actionMenu");
3840
- __publicField2(this, "_style");
3841
- __publicField2(this, "_onFeedTypeChange");
3830
+ __publicField(this, "_themeSubscription");
3831
+ __publicField(this, "_feedType", "inbox");
3832
+ __publicField(this, "_unreadCount", 0);
3833
+ __publicField(this, "_titleSection");
3834
+ __publicField(this, "_filterMenu");
3835
+ __publicField(this, "_actionMenu");
3836
+ __publicField(this, "_style");
3837
+ __publicField(this, "_onFeedTypeChange");
3842
3838
  this._themeSubscription = props.themeManager.subscribe((_) => {
3843
3839
  this.refreshTheme();
3844
3840
  });
@@ -4034,7 +4030,7 @@ if (!customElements.get("courier-inbox-header")) {
4034
4030
  }
4035
4031
  class CourierInboxDataStoreListener {
4036
4032
  constructor(events) {
4037
- __publicField2(this, "events");
4033
+ __publicField(this, "events");
4038
4034
  this.events = events;
4039
4035
  }
4040
4036
  remove() {
@@ -4703,15 +4699,15 @@ const mergeTheme = (mode, theme2) => {
4703
4699
  };
4704
4700
  class CourierInboxThemeManager {
4705
4701
  constructor(initialTheme) {
4706
- __publicField2(this, "THEME_CHANGE_EVENT", "courier_inbox_theme_change");
4707
- __publicField2(this, "_theme");
4708
- __publicField2(this, "_lightTheme", defaultLightTheme);
4709
- __publicField2(this, "_darkTheme", defaultDarkTheme);
4710
- __publicField2(this, "_target");
4711
- __publicField2(this, "_subscriptions", []);
4712
- __publicField2(this, "_userMode");
4713
- __publicField2(this, "_systemMode");
4714
- __publicField2(this, "_systemThemeCleanup");
4702
+ __publicField(this, "THEME_CHANGE_EVENT", "courier_inbox_theme_change");
4703
+ __publicField(this, "_theme");
4704
+ __publicField(this, "_lightTheme", defaultLightTheme);
4705
+ __publicField(this, "_darkTheme", defaultDarkTheme);
4706
+ __publicField(this, "_target");
4707
+ __publicField(this, "_subscriptions", []);
4708
+ __publicField(this, "_userMode");
4709
+ __publicField(this, "_systemMode");
4710
+ __publicField(this, "_systemThemeCleanup");
4715
4711
  this._theme = initialTheme;
4716
4712
  this._target = new EventTarget();
4717
4713
  this._userMode = "system";
@@ -4811,19 +4807,19 @@ let CourierInbox$1 = class CourierInbox extends HTMLElement {
4811
4807
  constructor(themeManager) {
4812
4808
  var _a;
4813
4809
  super();
4814
- __publicField2(this, "_currentFeed", "inbox");
4815
- __publicField2(this, "_themeManager");
4816
- __publicField2(this, "_shadow");
4817
- __publicField2(this, "_list");
4818
- __publicField2(this, "_datastoreListener");
4819
- __publicField2(this, "_authListener");
4820
- __publicField2(this, "_style");
4821
- __publicField2(this, "_header");
4822
- __publicField2(this, "_headerFactory");
4823
- __publicField2(this, "_onMessageClick");
4824
- __publicField2(this, "_onMessageActionClick");
4825
- __publicField2(this, "_onMessageLongPress");
4826
- __publicField2(this, "_defaultProps", {
4810
+ __publicField(this, "_currentFeed", "inbox");
4811
+ __publicField(this, "_themeManager");
4812
+ __publicField(this, "_shadow");
4813
+ __publicField(this, "_list");
4814
+ __publicField(this, "_datastoreListener");
4815
+ __publicField(this, "_authListener");
4816
+ __publicField(this, "_style");
4817
+ __publicField(this, "_header");
4818
+ __publicField(this, "_headerFactory");
4819
+ __publicField(this, "_onMessageClick");
4820
+ __publicField(this, "_onMessageActionClick");
4821
+ __publicField(this, "_onMessageLongPress");
4822
+ __publicField(this, "_defaultProps", {
4827
4823
  title: "Inbox",
4828
4824
  icon: CourierIconSVGs.inbox,
4829
4825
  feedType: this._currentFeed,
@@ -5113,10 +5109,10 @@ if (!customElements.get("courier-inbox")) {
5113
5109
  class CourierInboxMenuButton extends CourierElement {
5114
5110
  constructor(themeBus) {
5115
5111
  super();
5116
- __publicField2(this, "_themeSubscription");
5117
- __publicField2(this, "_container");
5118
- __publicField2(this, "_triggerButton");
5119
- __publicField2(this, "_unreadCountBadge");
5112
+ __publicField(this, "_themeSubscription");
5113
+ __publicField(this, "_container");
5114
+ __publicField(this, "_triggerButton");
5115
+ __publicField(this, "_unreadCountBadge");
5120
5116
  this._themeSubscription = themeBus.subscribe((_) => {
5121
5117
  this.updateTheme();
5122
5118
  });
@@ -5179,20 +5175,20 @@ if (!customElements.get("courier-inbox-menu-button")) {
5179
5175
  let CourierInboxMenu$1 = class CourierInboxMenu extends HTMLElement {
5180
5176
  constructor() {
5181
5177
  super();
5182
- __publicField2(this, "_width", "440px");
5183
- __publicField2(this, "_height", "440px");
5184
- __publicField2(this, "_popupAlignment", "top-right");
5185
- __publicField2(this, "_top", "40px");
5186
- __publicField2(this, "_right", "0");
5187
- __publicField2(this, "_bottom", "40px");
5188
- __publicField2(this, "_left", "0");
5189
- __publicField2(this, "_themeManager", new CourierInboxThemeManager(defaultLightTheme));
5190
- __publicField2(this, "_triggerButton");
5191
- __publicField2(this, "_popup");
5192
- __publicField2(this, "_inbox");
5193
- __publicField2(this, "_style");
5194
- __publicField2(this, "_datastoreListener");
5195
- __publicField2(this, "_popupMenuButtonFactory");
5178
+ __publicField(this, "_width", "440px");
5179
+ __publicField(this, "_height", "440px");
5180
+ __publicField(this, "_popupAlignment", "top-right");
5181
+ __publicField(this, "_top", "40px");
5182
+ __publicField(this, "_right", "0");
5183
+ __publicField(this, "_bottom", "40px");
5184
+ __publicField(this, "_left", "0");
5185
+ __publicField(this, "_themeManager", new CourierInboxThemeManager(defaultLightTheme));
5186
+ __publicField(this, "_triggerButton");
5187
+ __publicField(this, "_popup");
5188
+ __publicField(this, "_inbox");
5189
+ __publicField(this, "_style");
5190
+ __publicField(this, "_datastoreListener");
5191
+ __publicField(this, "_popupMenuButtonFactory");
5196
5192
  const shadow = this.attachShadow({ mode: "open" });
5197
5193
  this._triggerButton = new CourierInboxMenuButton(this._themeManager);
5198
5194
  this._triggerButton.build(void 0);
@@ -6448,31 +6444,22 @@ function requireJsxRuntime() {
6448
6444
  return jsxRuntime.exports;
6449
6445
  }
6450
6446
  var jsxRuntimeExports = requireJsxRuntime();
6451
- class ModernRenderer {
6452
- static render(node, container) {
6453
- flushSync(() => {
6454
- const root = createRoot(container);
6455
- root.render(node);
6456
- });
6457
- }
6458
- }
6459
- const _Renderer = class _Renderer {
6460
- static async render(node, container) {
6461
- if (_Renderer.reactVersion >= 18) {
6462
- ModernRenderer.render(node, container);
6463
- } else {
6464
- const { default: LegacyRenderer } = await import("./legacy-O6WN3SMx.mjs");
6465
- LegacyRenderer.render(node, container);
6466
- }
6467
- }
6468
- };
6469
- __publicField(_Renderer, "reactVersion", parseInt(version.split(".")[0]));
6470
- let Renderer = _Renderer;
6471
6447
  function reactNodeToHTMLElement(node) {
6472
6448
  const container = document.createElement("div");
6473
- Renderer.render(node, container);
6449
+ flushSync(() => {
6450
+ render(node, container);
6451
+ });
6474
6452
  return container;
6475
6453
  }
6454
+ function render(node, container) {
6455
+ const createRoot = ReactDOM["createRoot"];
6456
+ if (createRoot instanceof Function) {
6457
+ const root = createRoot(container);
6458
+ return root.render(node);
6459
+ }
6460
+ const render2 = ReactDOM["render"];
6461
+ return render2(node, container);
6462
+ }
6476
6463
  const CourierInbox2 = (props) => {
6477
6464
  const inboxRef = useRef(null);
6478
6465
  useEffect(() => {