@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.
- package/dist/components/courier-inbox-header-title.d.ts +2 -1
- package/dist/components/courier-inbox-list-item-menu.d.ts +4 -3
- package/dist/components/courier-inbox-list-item.d.ts +2 -1
- package/dist/components/courier-inbox-list.d.ts +2 -1
- package/dist/components/courier-inbox-option-menu-item.d.ts +2 -1
- package/dist/components/courier-inbox-option-menu.d.ts +2 -1
- package/dist/components/courier-inbox-pagination-list-item.d.ts +2 -1
- package/dist/components/{courier-inbox-menu.d.ts → courier-inbox-popup-menu.d.ts} +2 -1
- package/dist/components/courier-inbox-skeleton-list-item.d.ts +2 -1
- package/dist/components/courier-inbox.d.ts +2 -1
- package/dist/components/courier-unread-count-badge.d.ts +2 -1
- package/dist/datastore/__tests__/datastore.test.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +51 -86
- package/dist/index.mjs.map +1 -1
- package/dist/jest.setup.d.ts +0 -0
- package/package.json +7 -4
|
@@ -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
|
-
|
|
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
|
|
3
|
+
export type CourierInboxListItemActionMenuOption = {
|
|
3
4
|
id: string;
|
|
4
5
|
icon: CourierInboxIcon;
|
|
5
6
|
onClick: () => void;
|
|
6
7
|
};
|
|
7
|
-
export declare class
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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';
|