@messenger-box/platform-mobile 10.0.2-alpha.5 → 10.0.3-alpha.5

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/compute.js +14 -14
  3. package/lib/compute.js.map +1 -1
  4. package/lib/index.js.map +1 -1
  5. package/lib/module.js +1 -2
  6. package/lib/module.js.map +1 -1
  7. package/lib/screens/inbox/DialogMessages.js +44 -20
  8. package/lib/screens/inbox/DialogMessages.js.map +1 -1
  9. package/lib/screens/inbox/DialogThreadMessages.js +13 -48
  10. package/lib/screens/inbox/DialogThreadMessages.js.map +1 -1
  11. package/lib/screens/inbox/DialogThreads.js +13 -70
  12. package/lib/screens/inbox/DialogThreads.js.map +1 -1
  13. package/lib/screens/inbox/Inbox.js +18 -9
  14. package/lib/screens/inbox/Inbox.js.map +1 -1
  15. package/lib/screens/inbox/components/CachedImage/consts.js.map +1 -1
  16. package/lib/screens/inbox/components/CachedImage/index.js +41 -27
  17. package/lib/screens/inbox/components/CachedImage/index.js.map +1 -1
  18. package/lib/screens/inbox/components/DialogsListItem.js +96 -146
  19. package/lib/screens/inbox/components/DialogsListItem.js.map +1 -1
  20. package/lib/screens/inbox/components/ServiceDialogsListItem.js +95 -148
  21. package/lib/screens/inbox/components/ServiceDialogsListItem.js.map +1 -1
  22. package/lib/screens/inbox/components/SlackMessageContainer/ImageViewerModal.js +37 -51
  23. package/lib/screens/inbox/components/SlackMessageContainer/ImageViewerModal.js.map +1 -1
  24. package/lib/screens/inbox/components/SlackMessageContainer/SlackBubble.js +113 -97
  25. package/lib/screens/inbox/components/SlackMessageContainer/SlackBubble.js.map +1 -1
  26. package/lib/screens/inbox/components/SlackMessageContainer/SlackMessage.js +50 -42
  27. package/lib/screens/inbox/components/SlackMessageContainer/SlackMessage.js.map +1 -1
  28. package/lib/screens/inbox/components/ThreadsViewItem.js +41 -149
  29. package/lib/screens/inbox/components/ThreadsViewItem.js.map +1 -1
  30. package/lib/screens/inbox/config/config.js +8 -10
  31. package/lib/screens/inbox/config/config.js.map +1 -1
  32. package/lib/screens/inbox/containers/ConversationView.js +357 -501
  33. package/lib/screens/inbox/containers/ConversationView.js.map +1 -1
  34. package/lib/screens/inbox/containers/Dialogs.js +49 -140
  35. package/lib/screens/inbox/containers/Dialogs.js.map +1 -1
  36. package/lib/screens/inbox/containers/ThreadConversationView.js +297 -400
  37. package/lib/screens/inbox/containers/ThreadConversationView.js.map +1 -1
  38. package/lib/screens/inbox/containers/ThreadsView.js +83 -190
  39. package/lib/screens/inbox/containers/ThreadsView.js.map +1 -1
  40. package/package.json +4 -4
  41. package/rollup.config.mjs +5 -1
  42. package/lib/compute.d.ts +0 -5
  43. package/lib/index.d.ts +0 -4
  44. package/lib/module.d.ts +0 -3
  45. package/lib/navigation/InboxNavigation.d.ts +0 -2
  46. package/lib/navigation/index.d.ts +0 -1
  47. package/lib/screens/inbox/DialogMessages.d.ts +0 -8
  48. package/lib/screens/inbox/DialogThreadMessages.d.ts +0 -8
  49. package/lib/screens/inbox/DialogThreads.d.ts +0 -7
  50. package/lib/screens/inbox/Inbox.d.ts +0 -2
  51. package/lib/screens/inbox/components/CachedImage/consts.d.ts +0 -2
  52. package/lib/screens/inbox/components/CachedImage/index.d.ts +0 -8
  53. package/lib/screens/inbox/components/DialogsHeader.d.ts +0 -8
  54. package/lib/screens/inbox/components/DialogsListItem.d.ts +0 -19
  55. package/lib/screens/inbox/components/ServiceDialogsListItem.d.ts +0 -21
  56. package/lib/screens/inbox/components/SlackMessageContainer/ImageViewerModal.d.ts +0 -3
  57. package/lib/screens/inbox/components/SlackMessageContainer/SlackBubble.d.ts +0 -34
  58. package/lib/screens/inbox/components/SlackMessageContainer/SlackMessage.d.ts +0 -25
  59. package/lib/screens/inbox/components/SlackMessageContainer/index.d.ts +0 -3
  60. package/lib/screens/inbox/components/SupportServiceDialogsListItem.d.ts +0 -21
  61. package/lib/screens/inbox/components/ThreadsViewItem.d.ts +0 -20
  62. package/lib/screens/inbox/config/config.d.ts +0 -11
  63. package/lib/screens/inbox/config/index.d.ts +0 -1
  64. package/lib/screens/inbox/containers/ConversationView.d.ts +0 -11
  65. package/lib/screens/inbox/containers/Dialogs.d.ts +0 -7
  66. package/lib/screens/inbox/containers/SupportServiceDialogs.d.ts +0 -6
  67. package/lib/screens/inbox/containers/ThreadConversationView.d.ts +0 -11
  68. package/lib/screens/inbox/containers/ThreadsView.d.ts +0 -13
  69. package/lib/screens/index.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messenger-box/platform-mobile",
3
- "version": "10.0.2-alpha.5",
3
+ "version": "10.0.3-alpha.5",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -22,8 +22,8 @@
22
22
  "watch-ts": "tsc --watch"
23
23
  },
24
24
  "dependencies": {
25
- "@messenger-box/core": "10.0.2-alpha.5",
26
- "@messenger-box/platform-client": "10.0.2-alpha.5",
25
+ "@messenger-box/core": "10.0.3-alpha.5",
26
+ "@messenger-box/platform-client": "10.0.3-alpha.5",
27
27
  "base-64": "1.0.0",
28
28
  "react-native-gifted-chat": "1.0.4"
29
29
  },
@@ -43,5 +43,5 @@
43
43
  "typescript": {
44
44
  "definition": "lib/index.d.ts"
45
45
  },
46
- "gitHead": "a54223fc4058746a7e563003413e9c7b394a38aa"
46
+ "gitHead": "c7d0623dc1a572d1809011b21c9cfcdcb093076e"
47
47
  }
package/rollup.config.mjs CHANGED
@@ -35,7 +35,11 @@ export default (commandLineArgs) => {
35
35
  // Enable caching for faster rebuilds
36
36
  cache: true,
37
37
  },
38
- isWatchMode,
38
+ {
39
+ isWatchMode,
40
+ generateRoutesJSON: true,
41
+ useEsbuild: true,
42
+ },
39
43
  ),
40
44
  ];
41
45
  };
package/lib/compute.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IRouteData } from '@common-stack/client-react/lib/interfaces/router.js';
2
- import { IPageStore } from '@adminide-stack/core/lib/interfaces/page-store.js';
3
- export declare const inboxPageStore: IPageStore[];
4
- declare const filteredRoutes: IRouteData[];
5
- export { filteredRoutes };
package/lib/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { Feature } from '@common-stack/client-react';
2
- declare const _default: Feature;
3
- export default _default;
4
- export * from './screens';
package/lib/module.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Feature } from '@common-stack/client-react';
2
- declare const _default: Feature;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import { Feature } from '@common-stack/client-react';
2
- export declare const inboxFeature: Feature;
@@ -1 +0,0 @@
1
- export * from './InboxNavigation';
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- export declare function DialogMessages({ channelId, role, isShowThreadMessage, ...rest }: {
3
- [x: string]: any;
4
- channelId: any;
5
- role: any;
6
- isShowThreadMessage?: boolean;
7
- }): React.JSX.Element;
8
- export default DialogMessages;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- export declare function DialogThreadMessages({ channelId, postParentId, isPostParentIdThread, role }: {
3
- channelId: any;
4
- postParentId: any;
5
- isPostParentIdThread: any;
6
- role: any;
7
- }): React.JSX.Element;
8
- export default DialogThreadMessages;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export declare function DialogThreads({ channelId, postParentId, role }: {
3
- channelId: any;
4
- postParentId: any;
5
- role: any;
6
- }): React.JSX.Element;
7
- export default DialogThreads;
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare const Inbox: (props: any) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- export declare const IMAGE_CACHE_FOLDER: string;
2
- export default IMAGE_CACHE_FOLDER;
@@ -1,8 +0,0 @@
1
- import * as FileSystem from 'expo-file-system';
2
- declare const CachedImage: (props: any) => any;
3
- export declare const CacheManager: {
4
- addToCache: ({ file, key }: any) => Promise<string>;
5
- getCachedUri: ({ key }: any) => Promise<string>;
6
- downloadAsync: ({ uri, key, options }: any) => Promise<FileSystem.FileSystemDownloadResult>;
7
- };
8
- export default CachedImage;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- export declare function DialogsHeader({ onBack, extra, style, title, }: {
4
- onBack?: () => void;
5
- extra?: any;
6
- style?: StyleProp<ViewStyle>;
7
- title: string;
8
- }): React.JSX.Element;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { IChannel, IUserAccount } from 'common';
3
- export interface IDialogListChannel extends IChannel {
4
- users: IUserAccount[];
5
- }
6
- export interface IDialogListItemProps {
7
- currentUser?: any;
8
- users?: any;
9
- selectedChannelId?: any;
10
- channel?: any;
11
- onOpen: (id: any, title: any) => void;
12
- }
13
- /**
14
- * TODO:
15
- * - Get Reservation info: reservation date, status
16
- * - Add ability to get property information: name, logo
17
- */
18
- export declare const DialogsListItemComponent: React.FC<IDialogListItemProps>;
19
- export declare const DialogsListItem: React.NamedExoticComponent<IDialogListItemProps>;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { IChannel, IUserAccount } from 'common';
3
- export interface IDialogListChannel extends IChannel {
4
- users: IUserAccount[];
5
- }
6
- export interface IDialogListItemProps {
7
- currentUser?: any;
8
- users?: any;
9
- selectedChannelId?: any;
10
- channel?: any;
11
- onOpen: (id: any, title: any, postParentId?: any) => void;
12
- refreshing: boolean;
13
- role: any;
14
- }
15
- /**
16
- * TODO:
17
- * - Get Reservation info: reservation date, status
18
- * - Add ability to get property information: name, logo
19
- */
20
- export declare const ServiceDialogsListItemComponent: React.FC<IDialogListItemProps>;
21
- export declare const ServiceDialogsListItem: React.NamedExoticComponent<IDialogListItemProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ImageViewerModal: ({ children, isVisible, setVisible, modalContent }: any) => React.JSX.Element;
3
- export default ImageViewerModal;
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- export default class Bubble extends React.Component<any> {
3
- static defaultProps: {
4
- touchableProps: {};
5
- onLongPress: null;
6
- renderMessageImage: null;
7
- renderMessageText: null;
8
- renderCustomView: null;
9
- renderTime: null;
10
- currentMessage: {
11
- text: null;
12
- createdAt: null;
13
- image: null;
14
- };
15
- nextMessage: {};
16
- previousMessage: {};
17
- containerStyle: {};
18
- wrapperStyle: {};
19
- tickStyle: {};
20
- containerToNextStyle: {};
21
- containerToPreviousStyle: {};
22
- isShowImageViewer: false;
23
- setImageViewer: (obj: any, v: boolean) => void;
24
- };
25
- static propTypes: any;
26
- constructor(props: any);
27
- renderMessageText(): any;
28
- renderMessageImage(): any;
29
- renderTicks(): any;
30
- renderUsername(): any;
31
- renderTime(): any;
32
- renderCustomView(): any;
33
- render(): React.JSX.Element;
34
- }
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { utils } from 'react-native-gifted-chat';
3
- export default class Message extends React.Component<any> {
4
- static defaultProps: {
5
- renderAvatar: undefined;
6
- renderBubble: null;
7
- renderDay: null;
8
- currentMessage: {};
9
- nextMessage: {};
10
- previousMessage: {};
11
- user: {};
12
- containerStyle: {};
13
- isShowImageViewer: false;
14
- setImageViewer: (obj: any, v: boolean) => void;
15
- };
16
- getInnerComponentProps(): {
17
- position: string;
18
- isSameUser: typeof utils.isSameUser;
19
- isSameDay: typeof utils.isSameDay;
20
- };
21
- renderDay(): any;
22
- renderBubble(): any;
23
- renderAvatar(): React.JSX.Element;
24
- render(): React.JSX.Element;
25
- }
@@ -1,3 +0,0 @@
1
- import SlackMessage from './SlackMessage';
2
- import ImageViewerModal from './ImageViewerModal';
3
- export { SlackMessage, ImageViewerModal };
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { IChannel, IUserAccount } from 'common';
3
- export interface IDialogListChannel extends IChannel {
4
- users: IUserAccount[];
5
- }
6
- export interface IDialogListItemProps {
7
- currentUser?: any;
8
- users?: any;
9
- selectedChannelId?: any;
10
- channel?: any;
11
- onOpen: (id: any, title: any, postParentId?: any) => void;
12
- refreshing: boolean;
13
- role: any;
14
- }
15
- /**
16
- * TODO:
17
- * - Get Reservation info: reservation date, status
18
- * - Add ability to get property information: name, logo
19
- */
20
- export declare const SupportServiceDialogsListItemComponent: React.FC<IDialogListItemProps>;
21
- export declare const SupportServiceDialogsListItem: React.NamedExoticComponent<IDialogListItemProps>;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { IChannel, IUserAccount } from 'common';
3
- export interface IDialogListChannel extends IChannel {
4
- users: IUserAccount[];
5
- }
6
- export interface IDialogListItemProps {
7
- currentUser?: any;
8
- users?: any;
9
- thread?: any;
10
- onOpen: (id: any, title: any, postParentId?: any) => void;
11
- role?: any;
12
- setData?: any;
13
- }
14
- /**
15
- * TODO:
16
- * - Get Reservation info: reservation date, status
17
- * - Add ability to get property information: name, logo
18
- */
19
- export declare const ThreadViewItemComponent: React.FC<IDialogListItemProps>;
20
- export declare const ThreadViewItem: React.NamedExoticComponent<IDialogListItemProps>;
@@ -1,11 +0,0 @@
1
- export declare const config: Readonly<{
2
- MESSAGES_PER_PAGE: number;
3
- FILES_PER_MESSAGE: number;
4
- INBOX_MESSEGE_PATH: string;
5
- THREAD_MESSEGE_PATH: string;
6
- THREADS_PATH: string;
7
- CALL_TO_ACTION_PATH: string;
8
- CALL_TO_ACTION_BOX_BGCOLOR: string;
9
- CALL_TO_ACTION_BUTTON_BORDERCOLOR: string;
10
- CALL_TO_ACTION_TEXT_COLOR: string;
11
- } & import("envalid").CleanedEnvAccessors>;
@@ -1 +0,0 @@
1
- export { config } from './config';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export interface AlertMessageAttachmentsInterface {
3
- title: string;
4
- isTitleHtml: boolean;
5
- icon: string;
6
- callToAction: {
7
- title: string;
8
- link: string;
9
- };
10
- }
11
- export declare const ConversationView: React.MemoExoticComponent<({ channelId: ChannelId, role, isShowThreadMessage, ...rest }: any) => React.JSX.Element>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface InboxProps {
3
- channelFilters?: Record<string, unknown>;
4
- channelRole?: string;
5
- supportServices: boolean;
6
- }
7
- export declare const Dialogs: React.MemoExoticComponent<(props: InboxProps) => React.JSX.Element>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface SupportServiceInboxProps {
3
- channelFilters?: Record<string, unknown>;
4
- channelRole?: string;
5
- }
6
- export declare const SupportServiceDialogs: React.MemoExoticComponent<(props: SupportServiceInboxProps) => React.JSX.Element>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export interface AlertMessageAttachmentsInterface {
3
- title: string;
4
- isTitleHtml: boolean;
5
- icon: string;
6
- callToAction: {
7
- title: string;
8
- link: string;
9
- };
10
- }
11
- export declare const ThreadConversationView: ({ channelId, postParentId, isPostParentIdThread, role }: any) => React.JSX.Element;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export interface ThreadsViewProps {
3
- data: any;
4
- loading: boolean;
5
- refetch: any;
6
- subscribeToMore: any;
7
- error: any;
8
- channelId?: string;
9
- role?: string;
10
- channelsDetail?: any;
11
- refetchChannelDetail: (id: any) => Promise<any>;
12
- }
13
- export declare const ThreadsView: ({ data, loading: threadLoading, refetch, subscribeToMore, error, channelId, role, channelsDetail, refetchChannelDetail, }: ThreadsViewProps) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- export * from './inbox/Inbox';
2
- export * from './inbox/DialogMessages';
3
- export * from './inbox/DialogThreads';
4
- export * from './inbox/DialogThreadMessages';