@trycourier/courier-ui-inbox 1.0.11-beta → 1.0.12-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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## 1. Install
4
4
 
5
5
  ```sh
6
- npm i @trycourier/courier-ui-inbox@1.0.11-beta
6
+ npm i @trycourier/courier-ui-inbox@1.0.12-beta
7
7
  ```
8
8
 
9
9
  > **Using React?** We suggest you use [@trycourier/courier-react](../courier-react/README.md) package instead.
@@ -10,6 +10,7 @@ export declare class CourierInboxListItem extends CourierBaseElement {
10
10
  private _message;
11
11
  private _feedType;
12
12
  private _isMobile;
13
+ private _canClick;
13
14
  private _titleElement?;
14
15
  private _subtitleElement?;
15
16
  private _timeElement?;
@@ -21,7 +22,7 @@ export declare class CourierInboxListItem extends CourierBaseElement {
21
22
  private onItemClick;
22
23
  private onItemLongPress;
23
24
  private onItemActionClick;
24
- constructor(themeManager: CourierInboxThemeManager);
25
+ constructor(themeManager: CourierInboxThemeManager, canClick: boolean, _canLongPress: boolean);
25
26
  private render;
26
27
  static getStyles(theme: CourierInboxTheme): string;
27
28
  private _setupHoverBehavior;
@@ -13,6 +13,8 @@ export declare class CourierInboxList extends CourierBaseElement {
13
13
  private _isLoading;
14
14
  private _error;
15
15
  private _canPaginate;
16
+ private _canClickListItems;
17
+ private _canLongPressListItems;
16
18
  private _onMessageClick;
17
19
  private _onMessageActionClick;
18
20
  private _onMessageLongPress;
@@ -32,6 +34,8 @@ export declare class CourierInboxList extends CourierBaseElement {
32
34
  private _emptyContainer?;
33
35
  constructor(props: {
34
36
  themeManager: CourierInboxThemeManager;
37
+ canClickListItems: boolean;
38
+ canLongPressListItems: boolean;
35
39
  onRefresh: () => void;
36
40
  onPaginationTrigger: (feedType: CourierInboxFeedType) => void;
37
41
  onMessageClick: (message: InboxMessage, index: number) => void;
@@ -40,6 +44,8 @@ export declare class CourierInboxList extends CourierBaseElement {
40
44
  });
41
45
  onComponentMounted(): void;
42
46
  onComponentUnmounted(): void;
47
+ setCanClickListItems(canClick: boolean): void;
48
+ setCanLongPressListItems(canLongPress: boolean): void;
43
49
  static getStyles(theme: CourierInboxTheme): string;
44
50
  setDataSet(dataSet: InboxDataSet): void;
45
51
  addPage(dataSet: InboxDataSet): void;
@@ -7,13 +7,13 @@ export declare class CourierInboxMenuButton extends CourierFactoryElement {
7
7
  private _style?;
8
8
  private _container?;
9
9
  private _triggerButton?;
10
- private _unreadCountBadge?;
10
+ private _unreadBadge?;
11
11
  get theme(): CourierInboxTheme;
12
12
  constructor(themeBus: CourierInboxThemeManager);
13
13
  onComponentMounted(): void;
14
14
  onComponentUnmounted(): void;
15
15
  defaultElement(): HTMLElement;
16
- static getStyles(_theme: CourierInboxTheme): string;
16
+ static getStyles(theme: CourierInboxTheme): string;
17
17
  onUnreadCountChange(unreadCount: number): void;
18
18
  private refreshTheme;
19
19
  }