@bcrumbs.net/inbox 0.0.40 → 0.0.41
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/assets/ar/inbox.json +9 -2
- package/assets/en/inbox.json +9 -2
- package/index.cjs.js +1851 -1667
- package/index.esm.js +1853 -1669
- package/package.json +3 -3
- package/src/app/auth/components/UserAvatar/index.d.ts +2 -10
- package/src/app/auth/pages/PartnerLogin.d.ts +11 -0
- package/src/app/auth/pages/Profile.d.ts +0 -7
- package/src/app/broadcast/components/BroadcastSampleContacts.d.ts +4 -1
- package/src/app/contact/components/ContactFormFields.d.ts +3 -1
- package/src/app/contact/config/contactForm.d.ts +1 -0
- package/src/app/contact/hooks/useAgentOptions.d.ts +4 -10
- package/src/app/contact/hooks/useLifecycleSelectOptions.d.ts +9 -0
- package/src/app/inbox/components/NewDetails/ClientSection.d.ts +10 -0
- package/src/app/inbox/components/NewDetails/index.d.ts +3 -1
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +1 -1
- package/src/app/inbox/hooks/useTags.d.ts +1 -1
- package/src/app/inbox/utils/convs.d.ts +1 -1
- package/src/app/resources/config/broadcast.d.ts +1 -3
- package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +2 -2
- package/src/app/subscriptions/pages/Subscriptions.d.ts +2 -8
- package/src/assets/locales/translations.d.ts +6 -0
- package/src/config/constants.d.ts +2 -2
- package/src/environments/environment.d.ts +2 -4
- package/src/environments/environment.prod.d.ts +2 -4
- package/src/environments/environment.wakeed.d.ts +2 -0
- package/src/environments/types.d.ts +15 -0
- package/src/graphql.autogenerated.d.ts +479 -0
- package/src/lib/inbox.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/inbox",
|
|
3
3
|
"description": "Inbox widget for Bread Crumbs portals",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.41",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@bcrumbs.net/bc-shared": "^0.0.7",
|
|
28
|
-
"@bcrumbs.net/bc-ui": "^0.0.
|
|
29
|
-
"@bcrumbs.net/bc-api": "^0.0.
|
|
28
|
+
"@bcrumbs.net/bc-ui": "^0.0.9",
|
|
29
|
+
"@bcrumbs.net/bc-api": "^0.0.44",
|
|
30
30
|
"@azure/storage-blob": "^12.25.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "./index.esm.js",
|
|
@@ -4,15 +4,7 @@ export type AccountWrapperProps = {
|
|
|
4
4
|
rtl?: boolean;
|
|
5
5
|
};
|
|
6
6
|
export type UserAvatarProps = {
|
|
7
|
-
userInfo: {
|
|
8
|
-
Email: string;
|
|
9
|
-
PhoneNumber: string;
|
|
10
|
-
AccessFailedCount: number;
|
|
11
|
-
Id: string;
|
|
12
|
-
UserName: string;
|
|
13
|
-
Role?: string;
|
|
14
|
-
};
|
|
15
7
|
onLogout: () => void;
|
|
16
8
|
};
|
|
17
|
-
declare
|
|
18
|
-
export default
|
|
9
|
+
declare function UserAvatar({ onLogout }: UserAvatarProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export default UserAvatar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as UserAuthTypes from '../redux/auth.types';
|
|
2
|
+
export type Props = {
|
|
3
|
+
history: any;
|
|
4
|
+
router: any;
|
|
5
|
+
userIsAuthenticated: boolean;
|
|
6
|
+
oauthLoginAction: UserAuthTypes.OAuthLoginAction;
|
|
7
|
+
status: any;
|
|
8
|
+
error: any;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: any;
|
|
11
|
+
export default _default;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { UpdateProfileAction, SetCurrentUserAction } from '../redux/auth.types';
|
|
2
2
|
export type Props = {
|
|
3
|
-
userInfo: {
|
|
4
|
-
Email: string;
|
|
5
|
-
PhoneNumber: string;
|
|
6
|
-
AccessFailedCount: number;
|
|
7
|
-
Id: string;
|
|
8
|
-
UserName: string;
|
|
9
|
-
};
|
|
10
3
|
updatePassword: any;
|
|
11
4
|
updateProfile: any;
|
|
12
5
|
updateProfileAction: UpdateProfileAction;
|
|
@@ -3,6 +3,9 @@ interface BroadcastSampleContactsProps {
|
|
|
3
3
|
clients: any[];
|
|
4
4
|
clientsLoading: boolean;
|
|
5
5
|
clientsCount: number;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
loadMoreItems?: () => void;
|
|
8
|
+
loadingMore: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const _default: React.MemoExoticComponent<({ clients, clientsLoading, clientsCount }: BroadcastSampleContactsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ clients, clientsLoading, clientsCount, hasMore, loadMoreItems, loadingMore, }: BroadcastSampleContactsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
8
11
|
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Tag } from '../../../graphql.autogenerated';
|
|
1
2
|
interface ContactFormFieldsProps {
|
|
2
3
|
renderField: any;
|
|
3
4
|
isEditMode?: boolean;
|
|
4
5
|
renderDroplistField?: any;
|
|
6
|
+
clientStages?: Tag[];
|
|
5
7
|
}
|
|
6
|
-
declare const ContactFormFields: ({ renderField, renderDroplistField, isEditMode, }: ContactFormFieldsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const ContactFormFields: ({ renderField, renderDroplistField, isEditMode, clientStages }: ContactFormFieldsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
9
|
export default ContactFormFields;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
export interface AgentOption {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
text: string;
|
|
3
|
+
value: string;
|
|
4
4
|
}
|
|
5
5
|
interface UseAgentOptionsParams {
|
|
6
|
-
/**
|
|
7
|
-
* Override workspaceId if needed
|
|
8
|
-
* (useful for admin or cross-workspace screens)
|
|
9
|
-
*/
|
|
10
6
|
workspaceId?: number;
|
|
11
|
-
/**
|
|
12
|
-
* Allows changing fetch policy when needed
|
|
13
|
-
*/
|
|
14
7
|
fetchPolicy?: 'cache-first' | 'no-cache' | 'network-only';
|
|
8
|
+
isEditMode?: boolean;
|
|
15
9
|
}
|
|
16
|
-
export declare const useAgentOptions: ({ workspaceId, fetchPolicy }?: UseAgentOptionsParams) => {
|
|
10
|
+
export declare const useAgentOptions: ({ workspaceId, fetchPolicy, isEditMode, }?: UseAgentOptionsParams) => {
|
|
17
11
|
agentOptions: AgentOption[];
|
|
18
12
|
loading: boolean;
|
|
19
13
|
error: import("@apollo/client").ApolloError | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
2
|
+
interface ClientSectionProps {
|
|
3
|
+
conv: Conversation;
|
|
4
|
+
clientTags: Tag[];
|
|
5
|
+
conversationTags: Tag[];
|
|
6
|
+
tagsLoading: boolean;
|
|
7
|
+
refetchTags: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ClientSection: ({ conv, clientTags, conversationTags, tagsLoading, refetchTags, }: ClientSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default ClientSection;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Conversation, Agent, Tag } from '../../../../graphql.autogenerated';
|
|
2
3
|
interface Props {
|
|
3
4
|
conv: Conversation;
|
|
@@ -8,6 +9,7 @@ interface Props {
|
|
|
8
9
|
agents: Agent[];
|
|
9
10
|
convStages: Tag[];
|
|
10
11
|
onUpdate?: () => void;
|
|
12
|
+
clientSectionPlaceholder?: React.ReactNode;
|
|
11
13
|
}
|
|
12
|
-
declare const NewDetails: ({ conv, clientTags, conversationTags, tagsLoading, refetchTags, agents, convStages, onUpdate, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const NewDetails: ({ conv, clientTags, conversationTags, tagsLoading, refetchTags, agents, convStages, onUpdate, clientSectionPlaceholder, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default NewDetails;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Conversation } from '../../../graphql.autogenerated';
|
|
2
2
|
import { ConvsFilters } from '../utils/convs';
|
|
3
|
-
declare function useConversationsPeriodicFetch(selectedConvId?: string, onSelectedUpdate?: (conv: Conversation) => void, notifyUser?: boolean, filters?: ConvsFilters): {
|
|
3
|
+
declare function useConversationsPeriodicFetch(selectedConvId?: string, onSelectedUpdate?: (conv: Conversation) => void, notifyUser?: boolean, filters?: ConvsFilters, skip?: boolean): {
|
|
4
4
|
convs: {
|
|
5
5
|
__typename?: "Conversation" | undefined;
|
|
6
6
|
workspaceId: number;
|
|
@@ -35,7 +35,7 @@ interface BuildLifeCycleMenuOptions {
|
|
|
35
35
|
export declare function getNumOfNewClientMessages(messages: Maybe<Message[]> | undefined): number;
|
|
36
36
|
export declare function getLastMessage(messages: Maybe<Message[]> | undefined, filterFn?: (m: Message) => boolean): Message | undefined;
|
|
37
37
|
export declare function hashStatuses(messages?: Maybe<Message[]> | null): string;
|
|
38
|
-
export declare function isOutside24HourWindow(
|
|
38
|
+
export declare function isOutside24HourWindow(message: Message | null | undefined): boolean;
|
|
39
39
|
export declare function formatSeconds(value: number): string;
|
|
40
40
|
export declare const getMessageStatusIcon: (message: Message | null | undefined) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
41
41
|
export declare const getDisplayName: (clientData: ClientQuery['client'] | undefined) => string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Broadcast
|
|
1
|
+
import { Broadcast } from '../../../graphql.autogenerated';
|
|
2
2
|
import { ResourceDefinition } from './types';
|
|
3
3
|
declare const broadcastDefinition: ResourceDefinition<Broadcast>;
|
|
4
|
-
export declare const StateToColorMap: Record<BroadcastState | 'all', string>;
|
|
5
|
-
export declare const StateToBackgroundColorMap: Record<BroadcastState | 'all', string>;
|
|
6
4
|
export default broadcastDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
2
|
-
export default
|
|
1
|
+
declare function SubscriptionSwitcher(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default SubscriptionSwitcher;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
refetchCompanies: any;
|
|
4
|
-
loadingCompanies: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const Subscriptions: ({ companies, refetchCompanies, loadingCompanies }: SubscriptionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare const _default: any;
|
|
8
|
-
export default _default;
|
|
1
|
+
export declare const Subscriptions: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default Subscriptions;
|
|
@@ -311,6 +311,9 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
311
311
|
noClientsFoundDescription: string;
|
|
312
312
|
scheduleAt: string;
|
|
313
313
|
estimatedCost: string;
|
|
314
|
+
cancelBroadcast: string;
|
|
315
|
+
cancelBroadcastDescription: string;
|
|
316
|
+
confirmCancel: string;
|
|
314
317
|
};
|
|
315
318
|
resources: {
|
|
316
319
|
loginToFB: string;
|
|
@@ -492,6 +495,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
492
495
|
name: string;
|
|
493
496
|
delete: string;
|
|
494
497
|
submit: string;
|
|
498
|
+
close: string;
|
|
495
499
|
pwa: {
|
|
496
500
|
installApp: string;
|
|
497
501
|
addAppToHomeScreen: string;
|
|
@@ -535,6 +539,8 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
535
539
|
cityPlaceholder: string;
|
|
536
540
|
group: string;
|
|
537
541
|
groupPlaceholder: string;
|
|
542
|
+
lifecycle: string;
|
|
543
|
+
lifecyclePlaceholder: string;
|
|
538
544
|
cancel: string;
|
|
539
545
|
save: string;
|
|
540
546
|
create: string;
|
|
@@ -2,8 +2,8 @@ import { Color } from '@bcrumbs.net/bc-ui';
|
|
|
2
2
|
export declare const PARAMETERS: never[];
|
|
3
3
|
export declare const BLUR_CONTAINER = "root";
|
|
4
4
|
export declare const LOADING_COLOR = Color.PRIMARY;
|
|
5
|
-
export declare const FavIcon16 = "
|
|
6
|
-
export declare const FavIcon32 = "
|
|
5
|
+
export declare const FavIcon16 = "/assets/icons/favicons/favicon-16x16.png";
|
|
6
|
+
export declare const FavIcon32 = "/assets/icons/favicons/favicon-32x32.png";
|
|
7
7
|
export declare const HELPDESK_URL = "https://bcrumbs.featurebase.app/help";
|
|
8
8
|
export declare const CHANGELOG_URL = "https://bcrumbs.featurebase.app/changelog";
|
|
9
9
|
export declare const FEEDBACK_URL = "https://bcrumbs.featurebase.app/";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Environment = {
|
|
2
|
+
production: boolean;
|
|
3
|
+
enablePaidPlans: boolean;
|
|
4
|
+
enableRegister: boolean;
|
|
5
|
+
enableForgotPassword: boolean;
|
|
6
|
+
enableProfile: boolean;
|
|
7
|
+
enableWorkspaceMgmt: boolean;
|
|
8
|
+
companyName: string;
|
|
9
|
+
enableSupportLinks: boolean;
|
|
10
|
+
enableSocialLogin: boolean;
|
|
11
|
+
enableInviteUsers: boolean;
|
|
12
|
+
solidMenuColor: boolean;
|
|
13
|
+
chatLogo?: string;
|
|
14
|
+
externalAuth?: 'wakeed';
|
|
15
|
+
};
|