minerva-plexus-csd 1.0.5 → 1.0.7

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/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import { BackgroundGraphicMinerva } from 'minerva-components-library';
2
2
  import { default as default_2 } from 'react';
3
3
  import { default as i18n } from 'i18next';
4
4
  import { JSX as JSX_2 } from 'react/jsx-runtime';
5
- import * as React_2 from 'react';
6
5
  import { ReactNode } from 'react';
7
6
 
8
7
  export declare const ApiConfigProvider: ({ children, initialConfig, }: {
@@ -16,42 +15,6 @@ declare interface ApiConfigType {
16
15
  service?: string;
17
16
  }
18
17
 
19
- declare interface AuthContextType {
20
- isAuthenticated: boolean;
21
- loadingAuth: boolean;
22
- loadingData: boolean;
23
- login: (username: string, password: string) => Promise<void>;
24
- logout: () => void;
25
- isManualLogin: boolean;
26
- setIsManualLogin: React.Dispatch<React.SetStateAction<boolean>>;
27
- callbackUrl: string;
28
- tokenUrl: string;
29
- clientId: string;
30
- clientSecret: string;
31
- keycloakUrl: string;
32
- jwksUrl: string;
33
- isLoggingOut: boolean;
34
- updateAuth: () => Promise<void>;
35
- keycloakLogoutUrl: string;
36
- microsoftLogoutUrl: string;
37
- services: Service[];
38
- fetchServices: () => Promise<void>;
39
- loadingServices: boolean;
40
- loginRedirectPath: string;
41
- }
42
-
43
- export declare const AuthProvider: ({ children, callbackUrl, tokenUrl, clientId, clientSecret, keycloakUrl, keycloakLogoutUrl, microsoftLogoutUrl, loginRedirectPath, }: {
44
- children: ReactNode;
45
- callbackUrl: string;
46
- tokenUrl: string;
47
- clientId: string;
48
- clientSecret: string;
49
- keycloakUrl: string;
50
- keycloakLogoutUrl: string;
51
- microsoftLogoutUrl: string;
52
- loginRedirectPath?: string;
53
- }) => JSX_2.Element;
54
-
55
18
  declare interface AutoCreateConversationParams {
56
19
  enableAutoCreate: boolean;
57
20
  enableAutoCreateCsd: boolean;
@@ -63,8 +26,6 @@ declare interface AutoCreateConversationParams {
63
26
 
64
27
  export { BackgroundGraphicMinerva }
65
28
 
66
- export declare const CallbackPage: React.FC;
67
-
68
29
  export declare const ChatBoard: default_2.FC<ChatProps>;
69
30
 
70
31
  declare interface ChatProps {
@@ -101,14 +62,18 @@ declare interface ConversationContextType {
101
62
  selectedConversation: Conversation | null;
102
63
  selectedConversationId: string | null;
103
64
  service: string;
65
+ serviceTicketing?: boolean;
66
+ serviceTicketingNoUSer?: boolean;
104
67
  }
105
68
 
106
- export declare const ConversationProvider: ({ children, enableAutoCreate, enableAutoCreateCsd, }: ConversationProviderProps) => JSX_2.Element;
69
+ export declare const ConversationProvider: ({ children, enableAutoCreate, enableAutoCreateCsd, serviceTicketing, serviceTicketingNoUSer, }: ConversationProviderProps) => JSX_2.Element;
107
70
 
108
71
  declare interface ConversationProviderProps {
109
72
  children: ReactNode;
110
73
  enableAutoCreate?: boolean;
111
74
  enableAutoCreateCsd?: boolean;
75
+ serviceTicketing?: boolean;
76
+ serviceTicketingNoUSer?: boolean;
112
77
  }
113
78
 
114
79
  export declare const CustomLogo: default_2.FC<CustomLogoProps>;
@@ -129,26 +94,6 @@ export declare const getApiConfig: () => {
129
94
 
130
95
  export { i18n }
131
96
 
132
- export declare const Login: React_2.FC<LoginProps>;
133
-
134
- export declare const LoginLDAP: () => JSX_2.Element;
135
-
136
- export declare const LoginMixto: React_2.FC<LoginProps_2>;
137
-
138
- declare interface LoginProps {
139
- customLogo?: React_2.ReactNode;
140
- chatVersion?: string;
141
- miniVersionHeight?: string;
142
- miniVersionWidth?: string;
143
- className?: string;
144
- }
145
-
146
- declare interface LoginProps_2 {
147
- customLogo?: React_2.ReactNode;
148
- chatVersion?: string;
149
- className?: string;
150
- }
151
-
152
97
  export declare const MessageInteractionProvider: React.FC<{
153
98
  children: React.ReactNode;
154
99
  typeWritterSpeed: number;
@@ -289,18 +234,9 @@ export declare const minervaLocales: {
289
234
  };
290
235
  };
291
236
 
292
- declare interface Service {
293
- alias: string;
294
- service: string;
295
- }
296
-
297
237
  declare type ServiceContextType = {
298
238
  service: string;
299
239
  setService: (service: string) => void;
300
- availableServices: {
301
- alias: string;
302
- service: string;
303
- }[];
304
240
  };
305
241
 
306
242
  export declare const ServiceProvider: ({ children, usedService, }: {
@@ -318,12 +254,15 @@ export declare const setApiConfig: (config: {
318
254
 
319
255
  export declare const setAssetsBasePath: (path: string) => void;
320
256
 
321
- export declare const useApiConfig: () => ApiConfigType;
257
+ export declare const TicketingComponent: default_2.FC<TicketingComponentProps>;
322
258
 
323
- export declare const useAuth: () => AuthContextType;
259
+ declare interface TicketingComponentProps {
260
+ serviceTicketingNoUSer: boolean;
261
+ }
262
+
263
+ export declare const useApiConfig: () => ApiConfigType;
324
264
 
325
265
  export declare const useAutoCreateConversation: ({ enableAutoCreate, enableAutoCreateCsd, addConversation, selectConversation, service, conversations, }: AutoCreateConversationParams) => {
326
- autoCreateConversation: () => Promise<void>;
327
266
  autoCreateConversationCsd: () => Promise<void>;
328
267
  };
329
268