@trycourier/courier-ui-inbox 1.0.6-beta → 1.0.7-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.
@@ -1,7 +1,8 @@
1
1
  import { CourierInboxMenuOption } from './courier-inbox-option-menu';
2
2
  import { CourierInboxFeedType } from '../types/feed-type';
3
3
  import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
4
- export declare class CourierInboxHeaderTitle extends HTMLElement {
4
+ import { BaseElement } from '@trycourier/courier-ui-core';
5
+ export declare class CourierInboxHeaderTitle extends BaseElement {
5
6
  private _themeSubscription;
6
7
  private _option;
7
8
  private _feedType?;
@@ -1,16 +1,17 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxIcon, CourierInboxTheme } from '../types/courier-inbox-theme';
2
- export type CourierListItemActionMenuOption = {
3
+ export type CourierInboxListItemActionMenuOption = {
3
4
  id: string;
4
5
  icon: CourierInboxIcon;
5
6
  onClick: () => void;
6
7
  };
7
- export declare class CourierListItemActionMenu extends HTMLElement {
8
+ export declare class CourierInboxListItemMenu extends BaseElement {
8
9
  private _theme;
9
10
  private _options;
10
11
  private _style;
11
12
  constructor(theme: CourierInboxTheme);
12
13
  private getStyles;
13
- setOptions(options: CourierListItemActionMenuOption[]): void;
14
+ setOptions(options: CourierInboxListItemActionMenuOption[]): void;
14
15
  private renderMenu;
15
16
  show(): void;
16
17
  hide(): void;
@@ -1,7 +1,8 @@
1
1
  import { InboxAction, InboxMessage } from '@trycourier/courier-js';
2
+ import { BaseElement } from '@trycourier/courier-ui-core';
2
3
  import { CourierInboxFeedType } from '../types/feed-type';
3
4
  import { CourierInboxTheme } from '../types/courier-inbox-theme';
4
- export declare class CourierListItem extends HTMLElement {
5
+ export declare class CourierListItem extends BaseElement {
5
6
  private _theme;
6
7
  private _message;
7
8
  private _feedType;
@@ -1,9 +1,10 @@
1
1
  import { InboxAction, InboxMessage } from '@trycourier/courier-js';
2
+ import { BaseElement } from '@trycourier/courier-ui-core';
2
3
  import { InboxDataSet } from '../types/inbox-data-set';
3
4
  import { CourierInboxFeedType } from '../types/feed-type';
4
5
  import { CourierInboxStateErrorFactoryProps, CourierInboxStateEmptyFactoryProps, CourierInboxStateLoadingFactoryProps, CourierInboxListItemFactoryProps, CourierInboxPaginationItemFactoryProps } from '../types/factories';
5
6
  import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
6
- export declare class CourierInboxList extends HTMLElement {
7
+ export declare class CourierInboxList extends BaseElement {
7
8
  private _themeSubscription;
8
9
  private _messages;
9
10
  private _feedType;
@@ -1,6 +1,7 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
2
3
  import { CourierInboxMenuOption } from './courier-inbox-option-menu';
3
- export declare class CourierInboxOptionMenuItem extends HTMLElement {
4
+ export declare class CourierInboxOptionMenuItem extends BaseElement {
4
5
  private _option;
5
6
  private _isSelected?;
6
7
  private _content;
@@ -1,3 +1,4 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
2
3
  import { CourierInboxHeaderMenuItemId } from './courier-inbox-header';
3
4
  import { CourierInboxIcon } from '../types/courier-inbox-theme';
@@ -9,7 +10,7 @@ export type CourierInboxMenuOption = {
9
10
  selectionIcon?: CourierInboxIcon | null;
10
11
  onClick: (option: CourierInboxMenuOption) => void;
11
12
  };
12
- export declare class CourierInboxOptionMenu extends HTMLElement {
13
+ export declare class CourierInboxOptionMenu extends BaseElement {
13
14
  private _themeSubscription;
14
15
  private _type;
15
16
  private _selectedIndex;
@@ -1,5 +1,6 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxTheme } from '../types/courier-inbox-theme';
2
- export declare class CourierInboxPaginationListItem extends HTMLElement {
3
+ export declare class CourierInboxPaginationListItem extends BaseElement {
3
4
  private skeletonLoadingList?;
4
5
  private observer;
5
6
  private customItem?;
@@ -2,8 +2,9 @@ import { CourierInboxDatastoreEvents } from '../datastore/datatore-events';
2
2
  import { CourierInboxHeaderFactoryProps, CourierInboxListItemActionFactoryProps, CourierInboxListItemFactoryProps, CourierInboxMenuButtonFactoryProps, CourierInboxPaginationItemFactoryProps, CourierInboxStateEmptyFactoryProps, CourierInboxStateErrorFactoryProps, CourierInboxStateLoadingFactoryProps } from '../types/factories';
3
3
  import { CourierInboxFeedType } from '../types/feed-type';
4
4
  import { CourierInboxTheme } from '../types/courier-inbox-theme';
5
+ import { BaseElement } from '@trycourier/courier-ui-core';
5
6
  export type CourierInboxPopupAlignment = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center' | 'center-right' | 'center-left' | 'center-center';
6
- export declare class CourierInboxMenu extends HTMLElement implements CourierInboxDatastoreEvents {
7
+ export declare class CourierInboxPopupMenu extends BaseElement implements CourierInboxDatastoreEvents {
7
8
  private _width;
8
9
  private _height;
9
10
  private _popupAlignment;
@@ -1,5 +1,6 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxTheme } from '../types/courier-inbox-theme';
2
- export declare class CourierInboxSkeletonListItem extends HTMLElement {
3
+ export declare class CourierInboxSkeletonListItem extends BaseElement {
3
4
  private _shadow;
4
5
  constructor(theme: CourierInboxTheme, opacity: number);
5
6
  private getStyles;
@@ -1,8 +1,9 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxFeedType } from '../types/feed-type';
2
3
  import { CourierInboxHeaderFactoryProps, CourierInboxListItemActionFactoryProps, CourierInboxListItemFactoryProps, CourierInboxPaginationItemFactoryProps, CourierInboxStateEmptyFactoryProps, CourierInboxStateErrorFactoryProps, CourierInboxStateLoadingFactoryProps } from '../types/factories';
3
4
  import { CourierInboxTheme } from '../types/courier-inbox-theme';
4
5
  import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
5
- export declare class CourierInbox extends HTMLElement {
6
+ export declare class CourierInbox extends BaseElement {
6
7
  private _currentFeed;
7
8
  private _themeManager;
8
9
  get theme(): CourierInboxTheme;
@@ -1,6 +1,7 @@
1
+ import { BaseElement } from '@trycourier/courier-ui-core';
1
2
  import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
2
3
  export type CourierUnreadCountLocation = 'button' | 'header';
3
- export declare class CourierUnreadCountBadge extends HTMLElement {
4
+ export declare class CourierUnreadCountBadge extends BaseElement {
4
5
  private _themeSubscription;
5
6
  private _location;
6
7
  private _count;
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from './components/courier-inbox';
2
2
  export * from './components/courier-inbox-header';
3
3
  export * from './components/courier-inbox-list-item';
4
- export * from './components/courier-inbox-menu';
4
+ export * from './components/courier-inbox-popup-menu';
5
5
  export * from './utils/extensions';
6
6
  export * from './types/factories';
7
7
  export * from './types/feed-type';