@everframe/react-native 0.9.0 → 1.1.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/EverframeRN.podspec +1 -1
- package/README.md +258 -0
- package/android/build.gradle.kts +1 -1
- package/android/src/main/java/dev/everframe/rn/EverframeModule.kt +31 -46
- package/android/src/main/java/dev/everframe/rn/ReporterBridge.kt +89 -0
- package/dist/NativeEverframe.d.ts +2 -0
- package/dist/chunk-ENPQ66EV.js +1 -0
- package/dist/chunk-POE5CSO5.js +1 -0
- package/dist/index.d.ts +61 -1
- package/dist/index.js +25 -25
- package/dist/index.web.d.ts +13 -0
- package/dist/index.web.js +1 -0
- package/dist/integrations/console.js +1 -1
- package/dist/integrations/react-navigation.js +1 -1
- package/dist/integrations/react.d.ts +15 -0
- package/dist/integrations/react.js +1 -0
- package/dist/promise-rejection-types-C-lxCdDl.d.ts +101 -0
- package/ios/Sources/EverframeBridge.swift +5 -0
- package/ios/Sources/EverframeModule.mm +4 -0
- package/package.json +19 -4
- package/src/NativeEverframe.ts +3 -0
- package/dist/chunk-QRPINMCR.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { EverframeUserSpec, ConfigOpts } from './NativeEverframe.js';
|
|
3
3
|
export { Rect, Spec } from './NativeEverframe.js';
|
|
4
4
|
import { E as EverframeIntegration } from './types-D5e4kWaw.js';
|
|
5
|
+
import { R as ReportDeliveryStatus, E as ErrorCaptureStatus, P as PromiseRejectionStatus } from './promise-rejection-types-C-lxCdDl.js';
|
|
6
|
+
export { a as ErrorCaptureCounters, b as ErrorCaptureOutcome, c as ErrorCapturePath, d as PromiseRejectionCounters, e as RejectionReason, f as ReportCaptureOutcome, g as ReportCapturePath, h as ReportCapturePathStatus, i as ReportDeliveryReason, j as ReportQueueOperation, k as ReportQueueStatus, l as ReportStorageFailure, m as ReportTransportOrigin, n as ReportTransportOutcome, o as ReportTransportStatus } from './promise-rejection-types-C-lxCdDl.js';
|
|
5
7
|
import { z } from 'zod';
|
|
6
8
|
import { ViewProps, EventSubscription } from 'react-native';
|
|
7
9
|
|
|
@@ -26,8 +28,11 @@ declare const ReportEnvelope: z.ZodObject<{
|
|
|
26
28
|
"everframe-react": "everframe-react";
|
|
27
29
|
"everframe-web": "everframe-web";
|
|
28
30
|
"everframe-react-native": "everframe-react-native";
|
|
31
|
+
"everframe-flutter": "everframe-flutter";
|
|
32
|
+
"everframe-kmp": "everframe-kmp";
|
|
29
33
|
"everframe-ios": "everframe-ios";
|
|
30
34
|
"everframe-android": "everframe-android";
|
|
35
|
+
"everframe-roku": "everframe-roku";
|
|
31
36
|
}>;
|
|
32
37
|
version: z.ZodString;
|
|
33
38
|
platform: z.ZodEnum<{
|
|
@@ -38,6 +43,7 @@ declare const ReportEnvelope: z.ZodObject<{
|
|
|
38
43
|
tizen: "tizen";
|
|
39
44
|
webos: "webos";
|
|
40
45
|
androidtv: "androidtv";
|
|
46
|
+
roku: "roku";
|
|
41
47
|
}>;
|
|
42
48
|
formFactor: z.ZodEnum<{
|
|
43
49
|
phone: "phone";
|
|
@@ -228,6 +234,42 @@ declare const ReportEnvelope: z.ZodObject<{
|
|
|
228
234
|
}, z.core.$strip>>;
|
|
229
235
|
causesTruncated: z.ZodBoolean;
|
|
230
236
|
}, z.core.$strip>>;
|
|
237
|
+
native: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
platform: z.ZodLiteral<"apple">;
|
|
239
|
+
timestampMicros: z.ZodString;
|
|
240
|
+
crashedThreadIndex: z.ZodNumber;
|
|
241
|
+
framesIncomplete: z.ZodBoolean;
|
|
242
|
+
imagesIncomplete: z.ZodBoolean;
|
|
243
|
+
images: z.ZodArray<z.ZodObject<{
|
|
244
|
+
uuid: z.ZodString;
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
loadAddress: z.ZodString;
|
|
247
|
+
vmAddress: z.ZodOptional<z.ZodString>;
|
|
248
|
+
size: z.ZodString;
|
|
249
|
+
cpuType: z.ZodNumber;
|
|
250
|
+
cpuSubtype: z.ZodNumber;
|
|
251
|
+
architecture: z.ZodEnum<{
|
|
252
|
+
unknown: "unknown";
|
|
253
|
+
arm64e: "arm64e";
|
|
254
|
+
arm64: "arm64";
|
|
255
|
+
x86_64: "x86_64";
|
|
256
|
+
x86_64h: "x86_64h";
|
|
257
|
+
}>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
260
|
+
instructionAddress: z.ZodString;
|
|
261
|
+
imageIndex: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
imageOffset: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
error: z.ZodObject<{
|
|
265
|
+
signalNumber: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
signalCode: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
machException: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
machCode: z.ZodOptional<z.ZodString>;
|
|
269
|
+
machSubcode: z.ZodOptional<z.ZodString>;
|
|
270
|
+
faultAddress: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
231
273
|
exceptionType: z.ZodString;
|
|
232
274
|
message: z.ZodString;
|
|
233
275
|
frames: z.ZodArray<z.ZodObject<{
|
|
@@ -274,6 +316,7 @@ declare const ReportEnvelope: z.ZodObject<{
|
|
|
274
316
|
video: "video";
|
|
275
317
|
audio: "audio";
|
|
276
318
|
"session-replay": "session-replay";
|
|
319
|
+
"dom-snapshot": "dom-snapshot";
|
|
277
320
|
other: "other";
|
|
278
321
|
}>;
|
|
279
322
|
contentType: z.ZodString;
|
|
@@ -331,6 +374,7 @@ declare const AttachmentRef: z.ZodObject<{
|
|
|
331
374
|
video: "video";
|
|
332
375
|
audio: "audio";
|
|
333
376
|
"session-replay": "session-replay";
|
|
377
|
+
"dom-snapshot": "dom-snapshot";
|
|
334
378
|
other: "other";
|
|
335
379
|
}>;
|
|
336
380
|
contentType: z.ZodString;
|
|
@@ -457,6 +501,12 @@ declare const EXTRA_MAX_CHARS = 16384;
|
|
|
457
501
|
|
|
458
502
|
/** Shape exposed via `useEverframe()` and the top-level `open` re-export. */
|
|
459
503
|
interface EverframeContextValue {
|
|
504
|
+
/** Cached native delivery observations, independent of JS admission; optional for older context implementations. */
|
|
505
|
+
getReportDeliveryStatus?(): ReportDeliveryStatus;
|
|
506
|
+
/** Local admission only; optional for older context implementations. */
|
|
507
|
+
getErrorCaptureStatus?(): ErrorCaptureStatus;
|
|
508
|
+
/** Optional for compatibility with existing context implementations. */
|
|
509
|
+
getPromiseRejectionStatus?(): PromiseRejectionStatus;
|
|
460
510
|
/** Capture a handled exception without opening the reporter. No-op outside the owning mount. */
|
|
461
511
|
captureException(error: unknown, options?: CaptureExceptionOptions): void;
|
|
462
512
|
/**
|
|
@@ -544,6 +594,8 @@ interface EverframeContextValue {
|
|
|
544
594
|
*/
|
|
545
595
|
setUser(user?: EverframeUserSpec): void;
|
|
546
596
|
}
|
|
597
|
+
/** Bounded coverage status only; does not install an observer or report delivery. */
|
|
598
|
+
declare function getPromiseRejectionStatus(): PromiseRejectionStatus;
|
|
547
599
|
/**
|
|
548
600
|
* Top-level imperative `open` re-export. Inside the React tree, prefer
|
|
549
601
|
* `useEverframe().open()`. This re-export exists for non-component call
|
|
@@ -576,6 +628,10 @@ declare function recordScreen(name: string, data?: Record<string, unknown>): voi
|
|
|
576
628
|
declare function setUser(user?: EverframeUserSpec): void;
|
|
577
629
|
/** Capture a handled exception from any call site. No-op without a mounted provider. */
|
|
578
630
|
declare function captureException(error: unknown, options?: CaptureExceptionOptions): void;
|
|
631
|
+
/** Detached local admission snapshot. Does not query native delivery or install hooks. */
|
|
632
|
+
declare function getErrorCaptureStatus(): ErrorCaptureStatus;
|
|
633
|
+
/** Cached native delivery observations, independent of JS admission. */
|
|
634
|
+
declare function getReportDeliveryStatus(): ReportDeliveryStatus;
|
|
579
635
|
|
|
580
636
|
/**
|
|
581
637
|
* Runtime configuration — the host-facing `EverframeProvider config` shape.
|
|
@@ -631,6 +687,10 @@ interface RuntimeConfig extends Omit<ConfigOpts, "sdkVersion" | "installIdentifi
|
|
|
631
687
|
*/
|
|
632
688
|
crashReporting?: {
|
|
633
689
|
disabled?: boolean;
|
|
690
|
+
/** Opt-in automatic observation on qualified RN/Hermes runtimes. */
|
|
691
|
+
promiseRejections?: {
|
|
692
|
+
enabled?: boolean;
|
|
693
|
+
};
|
|
634
694
|
};
|
|
635
695
|
/**
|
|
636
696
|
* Network request/response body capture (spec 2026-08-12). CLIENT VETO
|
|
@@ -1003,4 +1063,4 @@ declare namespace companion {
|
|
|
1003
1063
|
export { type companion_CompanionAttachChallenge as CompanionAttachChallenge, type companion_CompanionState as CompanionState, companion_getEmitter as getEmitter, companion_onAttachChallenge as onAttachChallenge, companion_onAttachedUserName as onAttachedUserName, companion_onCode as onCode, companion_onPairUrl as onPairUrl, companion_onResolvedName as onResolvedName, companion_onRunning as onRunning, companion_onState as onState, companion_start as start, companion_stop as stop, companion_useCompanion as useCompanion };
|
|
1004
1064
|
}
|
|
1005
1065
|
|
|
1006
|
-
export { AttachmentRef, type CaptureExceptionOptions, type CompanionState, ConfigOpts, type DeviceMetadata, EXTRA_MAX_CHARS, type EverframeContextValue, EverframeIntegration, EverframeNotMountedError, EverframeProvider, type EverframeProviderProps, EverframeScreen, type EverframeScreenProps, EverframeSensitive, EverframeUserSpec, type HostPlayerEventType, type PlayerHandle, type PlayerStats, type ReportDraft, ReportEnvelope, type ReporterResult, type TrackPlayerOptions, UINode, UITree, VitalsPlayerEventType, addBreadcrumb, captureException, companion, open, recordScreen, setExtra, setUser, trackPlayer, trackVitals, useCompanion, useEverframe, useEverframeScreen, useEverframeSensitiveRef, useTrackPlayer };
|
|
1066
|
+
export { AttachmentRef, type CaptureExceptionOptions, type CompanionState, ConfigOpts, type DeviceMetadata, EXTRA_MAX_CHARS, ErrorCaptureStatus, type EverframeContextValue, EverframeIntegration, EverframeNotMountedError, EverframeProvider, type EverframeProviderProps, EverframeScreen, type EverframeScreenProps, EverframeSensitive, EverframeUserSpec, type HostPlayerEventType, type PlayerHandle, type PlayerStats, PromiseRejectionStatus, ReportDeliveryStatus, type ReportDraft, ReportEnvelope, type ReporterResult, EverframeSensitive as Sensitive, type TrackPlayerOptions, UINode, UITree, VitalsPlayerEventType, addBreadcrumb, captureException, companion, getErrorCaptureStatus, getPromiseRejectionStatus, getReportDeliveryStatus, open, recordScreen, setExtra, setUser, trackPlayer, trackVitals, useCompanion, useEverframe, useEverframeScreen, useEverframeSensitiveRef, useTrackPlayer };
|