@blipit/react-native 0.2.1 → 0.4.0
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/CHANGELOG.md +8 -0
- package/README.md +46 -0
- package/dist/index.cjs +1113 -10
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1122 -2
- package/package.json +12 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ReactNativeOptions } from '@sentry/react-native';
|
|
2
2
|
export { addBreadcrumb, captureException, captureMessage, flush, setTag, setUser, wrap } from '@sentry/react-native';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
declare function showReport(): void;
|
|
7
|
+
declare function BlipitReporter({ children, showButton }: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
showButton?: boolean;
|
|
10
|
+
}): react.JSX.Element;
|
|
3
11
|
|
|
4
12
|
declare const DEFAULT_ENDPOINT = "https://in.blipit.io";
|
|
5
|
-
declare const VERSION = "0.
|
|
13
|
+
declare const VERSION = "0.4.0";
|
|
6
14
|
type BeforeSend = NonNullable<ReactNativeOptions["beforeSend"]>;
|
|
7
15
|
declare function withIdentity(user?: BeforeSend): BeforeSend;
|
|
8
16
|
interface BlipitOptions extends Omit<ReactNativeOptions, "dsn"> {
|
|
@@ -10,6 +18,7 @@ interface BlipitOptions extends Omit<ReactNativeOptions, "dsn"> {
|
|
|
10
18
|
publicKey?: string;
|
|
11
19
|
project: string | number;
|
|
12
20
|
endpoint?: string;
|
|
21
|
+
waitForReady?: boolean;
|
|
13
22
|
}
|
|
14
23
|
interface SecurityDetails {
|
|
15
24
|
outcome?: string;
|
|
@@ -20,6 +29,10 @@ interface SecurityDetails {
|
|
|
20
29
|
}
|
|
21
30
|
declare function dsn(key: string, project: string | number, endpoint?: string): string;
|
|
22
31
|
declare function init(options: BlipitOptions): boolean;
|
|
32
|
+
declare function reportReady(): void;
|
|
33
|
+
declare function startFlow(name: string): void;
|
|
34
|
+
declare function flowStep(name: string, step: string): void;
|
|
35
|
+
declare function endFlow(name: string): void;
|
|
23
36
|
declare function captureSecurity(kind: string, actor: string, details?: SecurityDetails): void;
|
|
24
37
|
|
|
25
|
-
export { type BlipitOptions, DEFAULT_ENDPOINT, type SecurityDetails, VERSION, captureSecurity, dsn, init, withIdentity };
|
|
38
|
+
export { type BlipitOptions, BlipitReporter, DEFAULT_ENDPOINT, type SecurityDetails, VERSION, captureSecurity, dsn, endFlow, flowStep, init, reportReady, showReport, startFlow, withIdentity };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ReactNativeOptions } from '@sentry/react-native';
|
|
2
2
|
export { addBreadcrumb, captureException, captureMessage, flush, setTag, setUser, wrap } from '@sentry/react-native';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
declare function showReport(): void;
|
|
7
|
+
declare function BlipitReporter({ children, showButton }: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
showButton?: boolean;
|
|
10
|
+
}): react.JSX.Element;
|
|
3
11
|
|
|
4
12
|
declare const DEFAULT_ENDPOINT = "https://in.blipit.io";
|
|
5
|
-
declare const VERSION = "0.
|
|
13
|
+
declare const VERSION = "0.4.0";
|
|
6
14
|
type BeforeSend = NonNullable<ReactNativeOptions["beforeSend"]>;
|
|
7
15
|
declare function withIdentity(user?: BeforeSend): BeforeSend;
|
|
8
16
|
interface BlipitOptions extends Omit<ReactNativeOptions, "dsn"> {
|
|
@@ -10,6 +18,7 @@ interface BlipitOptions extends Omit<ReactNativeOptions, "dsn"> {
|
|
|
10
18
|
publicKey?: string;
|
|
11
19
|
project: string | number;
|
|
12
20
|
endpoint?: string;
|
|
21
|
+
waitForReady?: boolean;
|
|
13
22
|
}
|
|
14
23
|
interface SecurityDetails {
|
|
15
24
|
outcome?: string;
|
|
@@ -20,6 +29,10 @@ interface SecurityDetails {
|
|
|
20
29
|
}
|
|
21
30
|
declare function dsn(key: string, project: string | number, endpoint?: string): string;
|
|
22
31
|
declare function init(options: BlipitOptions): boolean;
|
|
32
|
+
declare function reportReady(): void;
|
|
33
|
+
declare function startFlow(name: string): void;
|
|
34
|
+
declare function flowStep(name: string, step: string): void;
|
|
35
|
+
declare function endFlow(name: string): void;
|
|
23
36
|
declare function captureSecurity(kind: string, actor: string, details?: SecurityDetails): void;
|
|
24
37
|
|
|
25
|
-
export { type BlipitOptions, DEFAULT_ENDPOINT, type SecurityDetails, VERSION, captureSecurity, dsn, init, withIdentity };
|
|
38
|
+
export { type BlipitOptions, BlipitReporter, DEFAULT_ENDPOINT, type SecurityDetails, VERSION, captureSecurity, dsn, endFlow, flowStep, init, reportReady, showReport, startFlow, withIdentity };
|