@bbearai/react 0.1.8 → 0.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/index.d.mts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +1415 -829
- package/dist/index.mjs +1416 -830
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, Component, ErrorInfo } from 'react';
|
|
2
|
+
import React, { ReactNode, Component, ErrorInfo } from 'react';
|
|
3
3
|
import * as _bbearai_core from '@bbearai/core';
|
|
4
|
-
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, QASession, QAFinding, StartSessionOptions, AddFindingOptions, AppContext, captureError } from '@bbearai/core';
|
|
4
|
+
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, QASession, QAFinding, StartSessionOptions, AddFindingOptions, TesterThread, TesterMessage, AppContext, captureError } from '@bbearai/core';
|
|
5
5
|
export { AppContext, BugBearConfig, BugBearReport, ConsoleLogEntry, DeviceInfo, EnhancedBugContext, NetworkRequest, QATrack, ReportType, Severity, TestAssignment, TestTemplate, TesterInfo, captureError, contextCapture } from '@bbearai/core';
|
|
6
6
|
|
|
7
7
|
interface BugBearContextValue {
|
|
@@ -41,6 +41,20 @@ interface BugBearContextValue {
|
|
|
41
41
|
error?: string;
|
|
42
42
|
}>;
|
|
43
43
|
refreshSession: () => Promise<void>;
|
|
44
|
+
threads: TesterThread[];
|
|
45
|
+
unreadCount: number;
|
|
46
|
+
refreshThreads: () => Promise<void>;
|
|
47
|
+
getThreadMessages: (threadId: string) => Promise<TesterMessage[]>;
|
|
48
|
+
sendMessage: (threadId: string, content: string) => Promise<boolean>;
|
|
49
|
+
markAsRead: (threadId: string) => Promise<void>;
|
|
50
|
+
createThread: (options: {
|
|
51
|
+
subject: string;
|
|
52
|
+
message: string;
|
|
53
|
+
}) => Promise<{
|
|
54
|
+
success: boolean;
|
|
55
|
+
threadId?: string;
|
|
56
|
+
error?: string;
|
|
57
|
+
}>;
|
|
44
58
|
}
|
|
45
59
|
declare function useBugBear(): BugBearContextValue;
|
|
46
60
|
interface BugBearProviderProps {
|
|
@@ -65,7 +79,7 @@ interface BugBearPanelProps {
|
|
|
65
79
|
/** Enable dragging (default: true) */
|
|
66
80
|
draggable?: boolean;
|
|
67
81
|
}
|
|
68
|
-
declare function BugBearPanel({ getAppContext, position, defaultCollapsed, draggable, }: BugBearPanelProps):
|
|
82
|
+
declare function BugBearPanel({ getAppContext, position, defaultCollapsed, draggable, }: BugBearPanelProps): React.ReactPortal | null;
|
|
69
83
|
|
|
70
84
|
interface Props {
|
|
71
85
|
children: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, Component, ErrorInfo } from 'react';
|
|
2
|
+
import React, { ReactNode, Component, ErrorInfo } from 'react';
|
|
3
3
|
import * as _bbearai_core from '@bbearai/core';
|
|
4
|
-
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, QASession, QAFinding, StartSessionOptions, AddFindingOptions, AppContext, captureError } from '@bbearai/core';
|
|
4
|
+
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, QASession, QAFinding, StartSessionOptions, AddFindingOptions, TesterThread, TesterMessage, AppContext, captureError } from '@bbearai/core';
|
|
5
5
|
export { AppContext, BugBearConfig, BugBearReport, ConsoleLogEntry, DeviceInfo, EnhancedBugContext, NetworkRequest, QATrack, ReportType, Severity, TestAssignment, TestTemplate, TesterInfo, captureError, contextCapture } from '@bbearai/core';
|
|
6
6
|
|
|
7
7
|
interface BugBearContextValue {
|
|
@@ -41,6 +41,20 @@ interface BugBearContextValue {
|
|
|
41
41
|
error?: string;
|
|
42
42
|
}>;
|
|
43
43
|
refreshSession: () => Promise<void>;
|
|
44
|
+
threads: TesterThread[];
|
|
45
|
+
unreadCount: number;
|
|
46
|
+
refreshThreads: () => Promise<void>;
|
|
47
|
+
getThreadMessages: (threadId: string) => Promise<TesterMessage[]>;
|
|
48
|
+
sendMessage: (threadId: string, content: string) => Promise<boolean>;
|
|
49
|
+
markAsRead: (threadId: string) => Promise<void>;
|
|
50
|
+
createThread: (options: {
|
|
51
|
+
subject: string;
|
|
52
|
+
message: string;
|
|
53
|
+
}) => Promise<{
|
|
54
|
+
success: boolean;
|
|
55
|
+
threadId?: string;
|
|
56
|
+
error?: string;
|
|
57
|
+
}>;
|
|
44
58
|
}
|
|
45
59
|
declare function useBugBear(): BugBearContextValue;
|
|
46
60
|
interface BugBearProviderProps {
|
|
@@ -65,7 +79,7 @@ interface BugBearPanelProps {
|
|
|
65
79
|
/** Enable dragging (default: true) */
|
|
66
80
|
draggable?: boolean;
|
|
67
81
|
}
|
|
68
|
-
declare function BugBearPanel({ getAppContext, position, defaultCollapsed, draggable, }: BugBearPanelProps):
|
|
82
|
+
declare function BugBearPanel({ getAppContext, position, defaultCollapsed, draggable, }: BugBearPanelProps): React.ReactPortal | null;
|
|
69
83
|
|
|
70
84
|
interface Props {
|
|
71
85
|
children: ReactNode;
|