@fixback/sdk 0.5.0 → 0.6.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/README.md +12 -2
- package/dist/capture/extract-dom.d.ts +33 -0
- package/dist/connect.d.ts +47 -0
- package/dist/dom.d.ts +7 -19
- package/dist/element-picker.d.ts +1 -1
- package/dist/error-capture.d.ts +21 -64
- package/dist/fixback.umd.js +36 -202
- package/dist/fixback.umd.js.map +1 -1
- package/dist/identity.d.ts +6 -1
- package/dist/index.d.ts +17 -15
- package/dist/index.mjs +3577 -3683
- package/dist/index.mjs.map +1 -1
- package/dist/init.d.ts +62 -96
- package/dist/mount.d.ts +46 -0
- package/dist/overlay/dom.d.ts +16 -0
- package/dist/overlay/icons.d.ts +23 -0
- package/dist/overlay/marking.d.ts +64 -0
- package/dist/overlay/send.d.ts +65 -0
- package/dist/overlay/view.d.ts +78 -0
- package/dist/overlay-styles.d.ts +1 -1
- package/dist/overlay.d.ts +40 -41
- package/dist/package.json +3 -0
- package/dist/report.d.ts +9 -13
- package/dist/reporter-session-store.d.ts +17 -0
- package/dist/session.d.ts +27 -0
- package/dist/submit.d.ts +51 -8
- package/dist/trace/instrument/beacon.d.ts +16 -0
- package/dist/trace/instrument/console.d.ts +11 -0
- package/dist/trace/instrument/fetch.d.ts +16 -0
- package/dist/trace/instrument/index.d.ts +64 -0
- package/dist/trace/instrument/navigation.d.ts +12 -0
- package/dist/trace/instrument/ui.d.ts +23 -0
- package/dist/trace/instrument/window.d.ts +66 -0
- package/dist/trace/instrument/xhr.d.ts +15 -0
- package/dist/version.d.ts +1 -1
- package/package.json +8 -5
- package/dist/boot.d.ts +0 -74
- package/dist/breadcrumbs.d.ts +0 -327
- package/dist/invite.d.ts +0 -104
- package/dist/onboarding-styles.d.ts +0 -8
- package/dist/onboarding.d.ts +0 -44
package/dist/identity.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The Public Reporter's
|
|
2
|
+
* The Public Reporter's anonymous id in the browser — the **storage binding** only.
|
|
3
|
+
*
|
|
4
|
+
* The key and the id generator are shared with every other SDK
|
|
5
|
+
* (`@fixback/sdk-core`, ADR-0028), so a Fixback anonymous id looks the same across
|
|
6
|
+
* clients. What differs, and so lives here, is persistence: `localStorage` is
|
|
7
|
+
* synchronous, where React Native's AsyncStorage is not.
|
|
3
8
|
*
|
|
4
9
|
* When the host site does not supply its own identity, the SDK establishes a
|
|
5
10
|
* per-browser id and persists it, so repeated boots from the same browser are one
|
package/dist/index.d.ts
CHANGED
|
@@ -4,24 +4,26 @@
|
|
|
4
4
|
* `init({ key })` calls the Fixback ingest boot endpoint and mounts a boot-gated,
|
|
5
5
|
* self-isolating (Shadow DOM), Signal-styled launcher on the host page — only
|
|
6
6
|
* when a submission would be accepted. Activating the launcher opens the report
|
|
7
|
-
* overlay: a comment, an element-select mode, and a Send that
|
|
8
|
-
* screenshot, assembles the Annotation, and submits to ingest
|
|
9
|
-
* analysis classifies the Issue server-side, ADR-0023).
|
|
10
|
-
* also emits {@link LAUNCH_EVENT}, the seam the overlay is wired to.
|
|
7
|
+
* overlay: an identity chip, a comment, an element-select mode, and a Send that
|
|
8
|
+
* captures a masked screenshot, assembles the Annotation, and submits to ingest
|
|
9
|
+
* (no Kind to pick — analysis classifies the Issue server-side, ADR-0023).
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
* (
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* A Reporter is an **Account** (ADR-0032): the overlay's identity chip Connects the
|
|
12
|
+
* visitor through the platform (`Fixback.signIn()`, or the instance's `signIn`), and
|
|
13
|
+
* the SDK holds a **Reporter session** token per origin, refreshed on boot. On a gated
|
|
14
|
+
* Project the launcher stays absent for a signed-out visitor; a Fixback-issued link's
|
|
15
|
+
* `?fixback=` code and `Fixback.signIn()` both start Connect. `signOut` clears the
|
|
16
|
+
* session.
|
|
17
|
+
*
|
|
18
|
+
* The runtime-agnostic half — the trace buffer and its crumb builders, scrubbing,
|
|
19
|
+
* fingerprinting, the ingest boot + Connect contracts, and the shared init vocabulary —
|
|
20
|
+
* is `@fixback/sdk-core` (ADR-0028) and re-exported here, so a host page imports
|
|
21
|
+
* everything from one package.
|
|
17
22
|
*/
|
|
18
|
-
export { DEFAULT_API_URL,
|
|
19
|
-
export type { FixbackInstance, InitOptions,
|
|
23
|
+
export { DEFAULT_API_URL, Fixback, init } from "./init";
|
|
24
|
+
export type { FixbackInstance, InitOptions, TraceOptions } from "./init";
|
|
20
25
|
export { LAUNCH_EVENT } from "./launcher";
|
|
21
|
-
export type { BootAnswer, BootRequest, IdentityInputs, ProjectGate, ReporterTier, } from "
|
|
26
|
+
export type { BeforeBreadcrumb, BeforeSend, BootAnswer, BootRequest, Breadcrumb, BreadcrumbCategory, BreadcrumbLevel, CaptureToggles, CommonInitOptions, ConnectedAccount, ConsoleArg, ConsoleArgType, IdentityInputs, ProjectGate, ReporterIdentity, ReporterTier, SourceLocation, TraceStream, } from "@fixback/sdk-core";
|
|
22
27
|
export type { CaptureEnvironment, ElementRect, FeedbackSource, ReportContent, SelectedElement, } from "./report";
|
|
23
28
|
export type { Annotation, ArrowMark, BoxMark, DrawTool, Mark, PenMark, Point, Rect, TextMark, } from "./annotation";
|
|
24
|
-
export type { BeforeBreadcrumb, Breadcrumb, BreadcrumbCategory, BreadcrumbLevel, ConsoleArg, ConsoleArgType, SourceLocation, TraceStream, } from "./breadcrumbs";
|
|
25
29
|
export type { ReplayEvent, ReplayOptions, ReplaySnapshot, ReplaySource, } from "./replay";
|
|
26
|
-
export type { BeforeSend } from "@fixback/sdk-core";
|
|
27
|
-
export type { InviteKind, InviteStatusAnswer, RedeemAnswer, ReporterDisplay, } from "./invite";
|