@hachther/akilio-widget 0.6.2 → 0.6.6
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/README.md +37 -10
- package/dist/AkilioWidget.d.ts +1 -1
- package/dist/akilio-widget.min.js +36 -36
- package/dist/components/BrandLogo.d.ts +5 -1
- package/dist/components/ChatPanel.d.ts +1 -33
- package/dist/components/Composer.d.ts +24 -0
- package/dist/components/EmptyState.d.ts +9 -0
- package/dist/components/Launcher.d.ts +2 -1
- package/dist/components/LauncherCoachmark.d.ts +12 -0
- package/dist/components/MessageBubble.d.ts +1 -0
- package/dist/components/MessageList.d.ts +3 -0
- package/dist/components/ProductCard.d.ts +12 -0
- package/dist/components/StreamActivity.d.ts +7 -0
- package/dist/index.min.js +4894 -4286
- package/dist/index.umd.min.cjs +29 -29
- package/dist/lib/client.d.ts +5 -1
- package/dist/lib/detector.d.ts +16 -0
- package/dist/logos/AkilioMark.d.ts +1 -1
- package/dist/logos/AkilioWordmark.d.ts +2 -1
- package/dist/style.css +503 -100
- package/dist/types.d.ts +64 -14
- package/package.json +3 -1
package/dist/lib/client.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { AkilioAuthConfig, AkilioChatRequest, AkilioChatResponse, AkilioChatStreamHandlers, AkilioCommerceEvent, AkilioConversationResponse, AkilioFeedbackRating, AkilioProjectConfig } from '../types';
|
|
1
|
+
import type { AkilioAuthConfig, AkilioChatRequest, AkilioChatResponse, AkilioChatStreamHandlers, AkilioCommerceEvent, AkilioConversationResponse, AkilioFeedbackRating, AkilioMode, AkilioProjectConfig } from '../types';
|
|
2
2
|
export interface AkilioClientOptions {
|
|
3
3
|
apiBaseUrl: string;
|
|
4
4
|
auth?: AkilioAuthConfig;
|
|
5
5
|
fetchImpl?: typeof fetch;
|
|
6
|
+
mode: AkilioMode;
|
|
7
|
+
locale: string;
|
|
6
8
|
}
|
|
7
9
|
export declare class AkilioClient {
|
|
8
10
|
private apiBaseUrl;
|
|
@@ -11,6 +13,8 @@ export declare class AkilioClient {
|
|
|
11
13
|
private widgetToken;
|
|
12
14
|
private widgetTokenPromise;
|
|
13
15
|
private widgetTokenPromiseKey;
|
|
16
|
+
private mode;
|
|
17
|
+
private locale;
|
|
14
18
|
constructor(options: AkilioClientOptions);
|
|
15
19
|
private hasHostManagedToken;
|
|
16
20
|
private hostManagedToken;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IntegrationDetection } from '../types';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
Shopify?: unknown;
|
|
5
|
+
wcSettings?: unknown;
|
|
6
|
+
prestashop?: unknown;
|
|
7
|
+
PrestaShop?: unknown;
|
|
8
|
+
requirejs?: unknown;
|
|
9
|
+
__NEXT_DATA__?: unknown;
|
|
10
|
+
__NUXT__?: unknown;
|
|
11
|
+
React?: unknown;
|
|
12
|
+
Vue?: unknown;
|
|
13
|
+
angular?: unknown;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export declare function detectIntegration(): IntegrationDetection;
|
|
@@ -4,5 +4,5 @@ export interface AkilioMarkProps {
|
|
|
4
4
|
primaryColor?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
}
|
|
7
|
-
declare function AkilioMark({ className, primaryColor, style }: AkilioMarkProps): React.JSX.Element;
|
|
7
|
+
declare function AkilioMark({ className, primaryColor, style, }: AkilioMarkProps): React.JSX.Element;
|
|
8
8
|
export default AkilioMark;
|
|
@@ -3,6 +3,7 @@ export interface AkilioWordmarkProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
primaryColor?: string;
|
|
5
5
|
secondaryColor?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
6
7
|
}
|
|
7
|
-
declare function AkilioWordmark({ className, primaryColor, secondaryColor }: AkilioWordmarkProps): React.JSX.Element;
|
|
8
|
+
declare function AkilioWordmark({ className, primaryColor, secondaryColor, style, }: AkilioWordmarkProps): React.JSX.Element;
|
|
8
9
|
export default AkilioWordmark;
|