@trycourier/courier-ui-inbox 2.4.4 → 2.4.6

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
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { Courier, InboxMessageEvent } from "@trycourier/courier-js";
5
5
  import { Courier as Courier2, DEFAULT_COURIER_API_URLS, EU_COURIER_API_URLS, getCourierApiUrls, getCourierApiUrlsForRegion } from "@trycourier/courier-js";
6
- import { registerElement, CourierBaseElement, CourierIconButton, CourierIcon, CourierIconSVGs, CourierButton, injectGlobalStyle, CourierFactoryElement, CourierInfoState, CourierColors, CourierThemeManager } from "@trycourier/courier-ui-core";
6
+ import { registerElement, CourierBaseElement, CourierIconButton, CourierIcon, CourierIconSVGs, CourierButton, injectGlobalStyle, CourierFactoryElement, CourierInfoState, CourierColors, COURIER_DEFAULT_PRIMARY_COLOR, CourierThemeManager } from "@trycourier/courier-ui-core";
7
7
  function copyMessage(message) {
8
8
  const copy = {
9
9
  ...message
@@ -3587,7 +3587,7 @@ const defaultLightTheme = {
3587
3587
  hoverBackgroundColor: CourierColors.black[50010],
3588
3588
  activeBackgroundColor: CourierColors.black[50020],
3589
3589
  unreadDotIndicator: {
3590
- backgroundColor: CourierColors.blue[500],
3590
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
3591
3591
  borderRadius: "50%",
3592
3592
  height: "8px",
3593
3593
  width: "8px"
@@ -3631,7 +3631,7 @@ const defaultLightTheme = {
3631
3631
  family: void 0,
3632
3632
  size: "12px"
3633
3633
  },
3634
- backgroundColor: CourierColors.blue[500],
3634
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
3635
3635
  borderRadius: "4px",
3636
3636
  padding: "2px 6px"
3637
3637
  }
@@ -3691,12 +3691,12 @@ const defaultLightTheme = {
3691
3691
  },
3692
3692
  selected: {
3693
3693
  indicatorHeight: "1px",
3694
- indicatorColor: CourierColors.blue[500],
3694
+ indicatorColor: COURIER_DEFAULT_PRIMARY_COLOR,
3695
3695
  backgroundColor: "transparent",
3696
3696
  hoverBackgroundColor: CourierColors.gray[200],
3697
3697
  activeBackgroundColor: CourierColors.gray[500],
3698
3698
  font: {
3699
- color: CourierColors.blue[500],
3699
+ color: COURIER_DEFAULT_PRIMARY_COLOR,
3700
3700
  family: void 0,
3701
3701
  size: "14px"
3702
3702
  },
@@ -3706,7 +3706,7 @@ const defaultLightTheme = {
3706
3706
  family: void 0,
3707
3707
  size: "12px"
3708
3708
  },
3709
- backgroundColor: CourierColors.blue[500],
3709
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
3710
3710
  borderRadius: "4px",
3711
3711
  padding: "2px 6px"
3712
3712
  }
@@ -3743,12 +3743,12 @@ const defaultLightTheme = {
3743
3743
  },
3744
3744
  selected: {
3745
3745
  indicatorHeight: "1px",
3746
- indicatorColor: CourierColors.blue[500],
3746
+ indicatorColor: COURIER_DEFAULT_PRIMARY_COLOR,
3747
3747
  backgroundColor: "transparent",
3748
3748
  hoverBackgroundColor: CourierColors.gray[200],
3749
3749
  activeBackgroundColor: CourierColors.gray[500],
3750
3750
  font: {
3751
- color: CourierColors.blue[500],
3751
+ color: COURIER_DEFAULT_PRIMARY_COLOR,
3752
3752
  family: void 0,
3753
3753
  size: "14px"
3754
3754
  },
@@ -3758,7 +3758,7 @@ const defaultLightTheme = {
3758
3758
  family: void 0,
3759
3759
  size: "12px"
3760
3760
  },
3761
- backgroundColor: CourierColors.blue[500],
3761
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
3762
3762
  borderRadius: "4px",
3763
3763
  padding: "2px 6px"
3764
3764
  }
@@ -3811,7 +3811,7 @@ const defaultLightTheme = {
3811
3811
  },
3812
3812
  item: {
3813
3813
  backgroundColor: "transparent",
3814
- unreadIndicatorColor: CourierColors.blue[500],
3814
+ unreadIndicatorColor: COURIER_DEFAULT_PRIMARY_COLOR,
3815
3815
  hoverBackgroundColor: CourierColors.gray[200],
3816
3816
  activeBackgroundColor: CourierColors.gray[500],
3817
3817
  transition: "all 0.2s ease",
@@ -3839,7 +3839,7 @@ const defaultLightTheme = {
3839
3839
  size: "14px"
3840
3840
  },
3841
3841
  subtitleLink: {
3842
- color: CourierColors.blue[500],
3842
+ color: COURIER_DEFAULT_PRIMARY_COLOR,
3843
3843
  textDecoration: "underline",
3844
3844
  hoverColor: CourierColors.blue[400]
3845
3845
  },
@@ -3930,7 +3930,7 @@ const defaultDarkTheme = {
3930
3930
  hoverBackgroundColor: CourierColors.white[50010],
3931
3931
  activeBackgroundColor: CourierColors.white[50020],
3932
3932
  unreadDotIndicator: {
3933
- backgroundColor: CourierColors.blue[500],
3933
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
3934
3934
  borderRadius: "50%",
3935
3935
  height: "8px",
3936
3936
  width: "8px"
@@ -3974,7 +3974,7 @@ const defaultDarkTheme = {
3974
3974
  family: void 0,
3975
3975
  size: "12px"
3976
3976
  },
3977
- backgroundColor: CourierColors.blue[500],
3977
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
3978
3978
  borderRadius: "4px",
3979
3979
  padding: "3px 8px"
3980
3980
  }
@@ -4034,12 +4034,12 @@ const defaultDarkTheme = {
4034
4034
  },
4035
4035
  selected: {
4036
4036
  indicatorHeight: "1px",
4037
- indicatorColor: CourierColors.blue[500],
4037
+ indicatorColor: COURIER_DEFAULT_PRIMARY_COLOR,
4038
4038
  backgroundColor: "transparent",
4039
4039
  hoverBackgroundColor: CourierColors.white[50010],
4040
4040
  activeBackgroundColor: CourierColors.white[50020],
4041
4041
  font: {
4042
- color: CourierColors.blue[500],
4042
+ color: COURIER_DEFAULT_PRIMARY_COLOR,
4043
4043
  family: void 0,
4044
4044
  size: "14px"
4045
4045
  },
@@ -4049,7 +4049,7 @@ const defaultDarkTheme = {
4049
4049
  family: void 0,
4050
4050
  size: "12px"
4051
4051
  },
4052
- backgroundColor: CourierColors.blue[500],
4052
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
4053
4053
  borderRadius: "4px",
4054
4054
  padding: "3px 8px"
4055
4055
  }
@@ -4086,12 +4086,12 @@ const defaultDarkTheme = {
4086
4086
  },
4087
4087
  selected: {
4088
4088
  indicatorHeight: "1px",
4089
- indicatorColor: CourierColors.blue[500],
4089
+ indicatorColor: COURIER_DEFAULT_PRIMARY_COLOR,
4090
4090
  backgroundColor: "transparent",
4091
4091
  hoverBackgroundColor: CourierColors.white[50010],
4092
4092
  activeBackgroundColor: CourierColors.white[50020],
4093
4093
  font: {
4094
- color: CourierColors.blue[500],
4094
+ color: COURIER_DEFAULT_PRIMARY_COLOR,
4095
4095
  family: void 0,
4096
4096
  size: "14px"
4097
4097
  },
@@ -4101,7 +4101,7 @@ const defaultDarkTheme = {
4101
4101
  family: void 0,
4102
4102
  size: "12px"
4103
4103
  },
4104
- backgroundColor: CourierColors.blue[500],
4104
+ backgroundColor: COURIER_DEFAULT_PRIMARY_COLOR,
4105
4105
  borderRadius: "4px",
4106
4106
  padding: "3px 8px"
4107
4107
  }
@@ -4154,7 +4154,7 @@ const defaultDarkTheme = {
4154
4154
  },
4155
4155
  item: {
4156
4156
  backgroundColor: "transparent",
4157
- unreadIndicatorColor: CourierColors.blue[500],
4157
+ unreadIndicatorColor: COURIER_DEFAULT_PRIMARY_COLOR,
4158
4158
  hoverBackgroundColor: CourierColors.white[50010],
4159
4159
  activeBackgroundColor: CourierColors.white[50020],
4160
4160
  transition: "all 0.2s ease",
@@ -4182,7 +4182,7 @@ const defaultDarkTheme = {
4182
4182
  size: "14px"
4183
4183
  },
4184
4184
  subtitleLink: {
4185
- color: CourierColors.blue[500],
4185
+ color: COURIER_DEFAULT_PRIMARY_COLOR,
4186
4186
  textDecoration: "underline",
4187
4187
  hoverColor: CourierColors.blue[400]
4188
4188
  },
@@ -6025,7 +6025,7 @@ class CourierInboxDatastoreEvents {
6025
6025
  }
6026
6026
  }
6027
6027
  Courier.shared.courierUserAgentName = "courier-ui-inbox";
6028
- Courier.shared.courierUserAgentVersion = "2.4.4";
6028
+ Courier.shared.courierUserAgentVersion = "2.4.6";
6029
6029
  export {
6030
6030
  Courier2 as Courier,
6031
6031
  CourierInbox,