@bbearai/react 0.1.7 → 0.1.8
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 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +673 -29
- package/dist/index.mjs +673 -29
- package/package.json +11 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, Component, ErrorInfo } from 'react';
|
|
3
3
|
import * as _bbearai_core from '@bbearai/core';
|
|
4
|
-
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, AppContext, captureError } from '@bbearai/core';
|
|
4
|
+
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, QASession, QAFinding, StartSessionOptions, AddFindingOptions, 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 {
|
|
@@ -25,6 +25,22 @@ interface BugBearContextValue {
|
|
|
25
25
|
}>;
|
|
26
26
|
/** Refresh tester info from server */
|
|
27
27
|
refreshTesterInfo: () => Promise<void>;
|
|
28
|
+
activeSession: QASession | null;
|
|
29
|
+
sessionFindings: QAFinding[];
|
|
30
|
+
startSession: (options?: StartSessionOptions) => Promise<{
|
|
31
|
+
success: boolean;
|
|
32
|
+
error?: string;
|
|
33
|
+
}>;
|
|
34
|
+
endSession: (notes?: string) => Promise<{
|
|
35
|
+
success: boolean;
|
|
36
|
+
error?: string;
|
|
37
|
+
}>;
|
|
38
|
+
addFinding: (options: AddFindingOptions) => Promise<{
|
|
39
|
+
success: boolean;
|
|
40
|
+
finding?: QAFinding;
|
|
41
|
+
error?: string;
|
|
42
|
+
}>;
|
|
43
|
+
refreshSession: () => Promise<void>;
|
|
28
44
|
}
|
|
29
45
|
declare function useBugBear(): BugBearContextValue;
|
|
30
46
|
interface BugBearProviderProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, Component, ErrorInfo } from 'react';
|
|
3
3
|
import * as _bbearai_core from '@bbearai/core';
|
|
4
|
-
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, AppContext, captureError } from '@bbearai/core';
|
|
4
|
+
import { BugBearConfig, BugBearClient, TesterInfo, TestAssignment, TesterProfileUpdate, QASession, QAFinding, StartSessionOptions, AddFindingOptions, 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 {
|
|
@@ -25,6 +25,22 @@ interface BugBearContextValue {
|
|
|
25
25
|
}>;
|
|
26
26
|
/** Refresh tester info from server */
|
|
27
27
|
refreshTesterInfo: () => Promise<void>;
|
|
28
|
+
activeSession: QASession | null;
|
|
29
|
+
sessionFindings: QAFinding[];
|
|
30
|
+
startSession: (options?: StartSessionOptions) => Promise<{
|
|
31
|
+
success: boolean;
|
|
32
|
+
error?: string;
|
|
33
|
+
}>;
|
|
34
|
+
endSession: (notes?: string) => Promise<{
|
|
35
|
+
success: boolean;
|
|
36
|
+
error?: string;
|
|
37
|
+
}>;
|
|
38
|
+
addFinding: (options: AddFindingOptions) => Promise<{
|
|
39
|
+
success: boolean;
|
|
40
|
+
finding?: QAFinding;
|
|
41
|
+
error?: string;
|
|
42
|
+
}>;
|
|
43
|
+
refreshSession: () => Promise<void>;
|
|
28
44
|
}
|
|
29
45
|
declare function useBugBear(): BugBearContextValue;
|
|
30
46
|
interface BugBearProviderProps {
|