@iblai/web-utils 1.1.8 → 1.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-utils",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -65,7 +65,7 @@
65
65
  "zod": "3.24.2"
66
66
  },
67
67
  "peerDependencies": {
68
- "@iblai/data-layer": "workspace:^",
68
+ "@iblai/data-layer": "^1.1.2",
69
69
  "@iblai/iblai-api": "4.166.0-ai",
70
70
  "react": "19.1.0"
71
71
  },
@@ -23,8 +23,9 @@ type Props = {
23
23
  onOAuthResolved?: (data: OAuthResolvedData) => void;
24
24
  isOffline?: boolean;
25
25
  onOfflineWithoutLocalLLM?: () => void;
26
+ isPublicRoute?: boolean;
26
27
  };
27
- export declare function useAdvancedChat({ tenantKey, mentorId, username, token, wsUrl, stopGenerationWsUrl, redirectToAuthSpa, errorHandler, sendMessageToParentWebsite, isPreviewMode, mentorShareableToken, on402Error, cachedSessionId, onStartNewChat, onOAuthRequired, onOAuthResolved, isOffline, onOfflineWithoutLocalLLM, }: Props): {
28
+ export declare function useAdvancedChat({ tenantKey, mentorId, username, token, wsUrl, stopGenerationWsUrl, redirectToAuthSpa, errorHandler, sendMessageToParentWebsite, isPreviewMode, mentorShareableToken, on402Error, cachedSessionId, onStartNewChat, onOAuthRequired, onOAuthResolved, isOffline, onOfflineWithoutLocalLLM, isPublicRoute, }: Props): {
28
29
  messages: Message[];
29
30
  isStreaming: boolean;
30
31
  status: ChatStatus;
@@ -3,8 +3,9 @@ type Props = {
3
3
  mentorId: string;
4
4
  username: string;
5
5
  errorHandler?: (message: string, error?: any) => void;
6
+ isPublicRoute?: boolean;
6
7
  };
7
- export declare function useMentorTools({ tenantKey, mentorId, username, errorHandler, }: Props): {
8
+ export declare function useMentorTools({ tenantKey, mentorId, username, errorHandler, isPublicRoute, }: Props): {
8
9
  tools: any;
9
10
  activeTools: string[];
10
11
  updateSessionTools: (tool: string) => Promise<void>;
@@ -2,6 +2,7 @@ type Props = {
2
2
  mentorId: string;
3
3
  tenantKey: string;
4
4
  username: string;
5
+ isPublicRoute?: boolean;
5
6
  };
6
7
  type MentorSettingsData = {
7
8
  profileImage?: string | null;
@@ -21,5 +22,5 @@ type MentorSettingsData = {
21
22
  type UseMentorSettingsReturn = {
22
23
  data: MentorSettingsData;
23
24
  };
24
- export declare function useMentorSettings({ mentorId, tenantKey, username, }: Props): UseMentorSettingsReturn;
25
+ export declare function useMentorSettings({ mentorId, tenantKey, username, isPublicRoute, }: Props): UseMentorSettingsReturn;
25
26
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-utils",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -56,9 +56,9 @@
56
56
  "zod": "3.24.2"
57
57
  },
58
58
  "peerDependencies": {
59
+ "@iblai/data-layer": "^1.1.2",
59
60
  "@iblai/iblai-api": "4.166.0-ai",
60
- "react": "19.1.0",
61
- "@iblai/data-layer": "^1.1.4"
61
+ "react": "19.1.0"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@tauri-apps/api": {