@everframe/react-native 1.0.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 +238 -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/browser-ZQAY6B4M.js +1 -0
- package/dist/chunk-ENPQ66EV.js +1 -0
- package/dist/chunk-POE5CSO5.js +1 -0
- package/dist/index.d.ts +55 -1
- package/dist/index.js +26 -26
- package/dist/index.web.d.ts +12 -0
- package/dist/index.web.js +1 -1
- 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 +7 -2
- package/src/NativeEverframe.ts +3 -0
- package/dist/browser-4GHZL7XI.js +0 -1
- package/dist/chunk-QRPINMCR.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,c as s,e as u}from"./chunk-ENPQ66EV.js";import{a as t}from"./chunk-XUSV3KOD.js";var n=class extends Error{static{t(this,"EverframeNotMountedError")}name="EverframeNotMountedError";constructor(o){super(o??"EverframeProvider is not mounted; wrap your app root.")}};var r=null,a={};function x(){return a}t(x,"__getContextEpoch");function f(){try{return r?.getPromiseRejectionStatus?.()??u("not-mounted","no-mount")}catch{return u("install-failed","hook-install")}}t(f,"getPromiseRejectionStatus");function E(e){r=e,a={}}t(E,"__setCurrentContext");function g(){return r}t(g,"__getCurrentContext");function R(){let e=r;return e?e.open():Promise.reject(new n("EverframeProvider not mounted; wrap your root with <EverframeProvider>."))}t(R,"open");function S(e){r?.setExtra(e)}t(S,"setExtra");function y(e){r?.addBreadcrumb(e)}t(y,"addBreadcrumb");function C(e,o){o!==void 0?r?.recordScreen(e,o):r?.recordScreen(e)}t(C,"recordScreen");function b(e){r?.setUser(e)}t(b,"setUser");function j(e,o){r?.captureException(e,o)}t(j,"captureException");function w(){try{return r?.getErrorCaptureStatus?.()??s("not-mounted","no-mount")}catch{return s("not-mounted","no-mount")}}t(w,"getErrorCaptureStatus");function P(){let e=r;try{let o=e?.getReportDeliveryStatus?.();return e===r&&o?o:i("not-mounted","no-mount")}catch{return i("unavailable","native-call-failed")}}t(P,"getReportDeliveryStatus");export{n as a,x as b,f as c,E as d,g as e,R as f,S as g,y as h,C as i,b as j,j as k,w as l,P as m};
|
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
|
|
|
@@ -232,6 +234,42 @@ declare const ReportEnvelope: z.ZodObject<{
|
|
|
232
234
|
}, z.core.$strip>>;
|
|
233
235
|
causesTruncated: z.ZodBoolean;
|
|
234
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>>;
|
|
235
273
|
exceptionType: z.ZodString;
|
|
236
274
|
message: z.ZodString;
|
|
237
275
|
frames: z.ZodArray<z.ZodObject<{
|
|
@@ -463,6 +501,12 @@ declare const EXTRA_MAX_CHARS = 16384;
|
|
|
463
501
|
|
|
464
502
|
/** Shape exposed via `useEverframe()` and the top-level `open` re-export. */
|
|
465
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;
|
|
466
510
|
/** Capture a handled exception without opening the reporter. No-op outside the owning mount. */
|
|
467
511
|
captureException(error: unknown, options?: CaptureExceptionOptions): void;
|
|
468
512
|
/**
|
|
@@ -550,6 +594,8 @@ interface EverframeContextValue {
|
|
|
550
594
|
*/
|
|
551
595
|
setUser(user?: EverframeUserSpec): void;
|
|
552
596
|
}
|
|
597
|
+
/** Bounded coverage status only; does not install an observer or report delivery. */
|
|
598
|
+
declare function getPromiseRejectionStatus(): PromiseRejectionStatus;
|
|
553
599
|
/**
|
|
554
600
|
* Top-level imperative `open` re-export. Inside the React tree, prefer
|
|
555
601
|
* `useEverframe().open()`. This re-export exists for non-component call
|
|
@@ -582,6 +628,10 @@ declare function recordScreen(name: string, data?: Record<string, unknown>): voi
|
|
|
582
628
|
declare function setUser(user?: EverframeUserSpec): void;
|
|
583
629
|
/** Capture a handled exception from any call site. No-op without a mounted provider. */
|
|
584
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;
|
|
585
635
|
|
|
586
636
|
/**
|
|
587
637
|
* Runtime configuration — the host-facing `EverframeProvider config` shape.
|
|
@@ -637,6 +687,10 @@ interface RuntimeConfig extends Omit<ConfigOpts, "sdkVersion" | "installIdentifi
|
|
|
637
687
|
*/
|
|
638
688
|
crashReporting?: {
|
|
639
689
|
disabled?: boolean;
|
|
690
|
+
/** Opt-in automatic observation on qualified RN/Hermes runtimes. */
|
|
691
|
+
promiseRejections?: {
|
|
692
|
+
enabled?: boolean;
|
|
693
|
+
};
|
|
640
694
|
};
|
|
641
695
|
/**
|
|
642
696
|
* Network request/response body capture (spec 2026-08-12). CLIENT VETO
|
|
@@ -1009,4 +1063,4 @@ declare namespace companion {
|
|
|
1009
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 };
|
|
1010
1064
|
}
|
|
1011
1065
|
|
|
1012
|
-
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, EverframeSensitive as Sensitive, 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 };
|