@aslaluroba/help-center-react 2.0.2 → 2.0.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.
- package/dist/core/api.d.ts +4 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +994 -25294
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +995 -25295
- package/dist/index.js.map +1 -1
- package/dist/lib/config.d.ts +1 -1
- package/dist/lib/types.d.ts +4 -0
- package/dist/ui/chatbot-popup/chat-window-screen/footer.d.ts +1 -0
- package/dist/ui/chatbot-popup/chat-window-screen/index.d.ts +1 -1
- package/dist/ui/help-center.d.ts +1 -1
- package/dist/ui/help-popup.d.ts +9 -3
- package/dist/ui/review-dialog/index.d.ts +8 -0
- package/dist/ui/review-dialog/rating.d.ts +12 -0
- package/package.json +26 -5
- package/src/assets/icons/arrowRight.svg +1 -1
- package/src/assets/icons/closeCircle.svg +1 -1
- package/src/components/ui/agent-response/agent-response.tsx +36 -34
- package/src/components/ui/header.tsx +2 -3
- package/src/core/SignalRService.ts +25 -25
- package/src/core/api.ts +180 -43
- package/src/globals.css +0 -9
- package/src/index.ts +3 -2
- package/src/lib/config.ts +31 -25
- package/src/lib/types.ts +5 -0
- package/src/locales/ar.json +18 -1
- package/src/locales/en.json +26 -8
- package/src/ui/chatbot-popup/chat-window-screen/footer.tsx +31 -34
- package/src/ui/chatbot-popup/chat-window-screen/header.tsx +47 -53
- package/src/ui/chatbot-popup/chat-window-screen/index.tsx +178 -88
- package/src/ui/chatbot-popup/options-list-screen/header.tsx +24 -20
- package/src/ui/chatbot-popup/options-list-screen/index.tsx +24 -24
- package/src/ui/chatbot-popup/options-list-screen/option-card.tsx +9 -4
- package/src/ui/help-center.tsx +367 -141
- package/src/ui/help-popup.tsx +239 -165
- package/src/ui/review-dialog/index.tsx +106 -0
- package/src/ui/review-dialog/rating.tsx +78 -0
- package/tsconfig.json +48 -0
- package/postcss.config.js +0 -6
- package/rollup.config.js +0 -58
- package/tailwind.config.js +0 -174
package/dist/core/api.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { TokenResponse } from '../lib/types';
|
|
2
2
|
export declare function initializeAPI(url: string, getToken: () => Promise<TokenResponse>): void;
|
|
3
3
|
export declare function getValidToken(forceRefresh?: boolean): Promise<string>;
|
|
4
|
-
export declare function apiRequest(endpoint: string, method?: string, body?: any
|
|
4
|
+
export declare function apiRequest(endpoint: string, method?: string, body?: any, options?: {
|
|
5
|
+
cache?: boolean;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
}): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { HelpCenter } from './ui/help-center';
|
|
2
|
+
import { TokenResponse } from './lib/types';
|
|
2
3
|
export type HelpCenterConfig = {
|
|
3
|
-
baseUrl
|
|
4
|
+
baseUrl?: string;
|
|
4
5
|
hubUrl?: string;
|
|
6
|
+
getToken?: () => Promise<TokenResponse>;
|
|
5
7
|
};
|
|
6
8
|
export declare function initializeHelpCenter(config: HelpCenterConfig): void;
|
|
7
9
|
export { HelpCenter };
|
|
@@ -9,4 +11,3 @@ export * from './lib/types';
|
|
|
9
11
|
export * from './core/ApiService';
|
|
10
12
|
export * from './core/SignalRService';
|
|
11
13
|
export { TokenService } from './core/token-service';
|
|
12
|
-
export { initializeAPI } from './core/api';
|