@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.
Files changed (41) hide show
  1. package/README.md +12 -2
  2. package/dist/capture/extract-dom.d.ts +33 -0
  3. package/dist/connect.d.ts +47 -0
  4. package/dist/dom.d.ts +7 -19
  5. package/dist/element-picker.d.ts +1 -1
  6. package/dist/error-capture.d.ts +21 -64
  7. package/dist/fixback.umd.js +36 -202
  8. package/dist/fixback.umd.js.map +1 -1
  9. package/dist/identity.d.ts +6 -1
  10. package/dist/index.d.ts +17 -15
  11. package/dist/index.mjs +3577 -3683
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/init.d.ts +62 -96
  14. package/dist/mount.d.ts +46 -0
  15. package/dist/overlay/dom.d.ts +16 -0
  16. package/dist/overlay/icons.d.ts +23 -0
  17. package/dist/overlay/marking.d.ts +64 -0
  18. package/dist/overlay/send.d.ts +65 -0
  19. package/dist/overlay/view.d.ts +78 -0
  20. package/dist/overlay-styles.d.ts +1 -1
  21. package/dist/overlay.d.ts +40 -41
  22. package/dist/package.json +3 -0
  23. package/dist/report.d.ts +9 -13
  24. package/dist/reporter-session-store.d.ts +17 -0
  25. package/dist/session.d.ts +27 -0
  26. package/dist/submit.d.ts +51 -8
  27. package/dist/trace/instrument/beacon.d.ts +16 -0
  28. package/dist/trace/instrument/console.d.ts +11 -0
  29. package/dist/trace/instrument/fetch.d.ts +16 -0
  30. package/dist/trace/instrument/index.d.ts +64 -0
  31. package/dist/trace/instrument/navigation.d.ts +12 -0
  32. package/dist/trace/instrument/ui.d.ts +23 -0
  33. package/dist/trace/instrument/window.d.ts +66 -0
  34. package/dist/trace/instrument/xhr.d.ts +15 -0
  35. package/dist/version.d.ts +1 -1
  36. package/package.json +8 -5
  37. package/dist/boot.d.ts +0 -74
  38. package/dist/breadcrumbs.d.ts +0 -327
  39. package/dist/invite.d.ts +0 -104
  40. package/dist/onboarding-styles.d.ts +0 -8
  41. package/dist/onboarding.d.ts +0 -44
@@ -1,5 +1,10 @@
1
1
  /**
2
- * The Public Reporter's stable, first-party anonymous id.
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 captures a masked
8
- * screenshot, assembles the Annotation, and submits to ingest (no Kind to pick —
9
- * analysis classifies the Issue server-side, ADR-0023). Activation
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
- * On load `init` also detects an invite token in the page URL
13
- * (`?fixback_invite=`) and renders the SDK's invite onboarding modal; `redeem`
14
- * runs that same redemption flow for a token supplied programmatically. Redeeming
15
- * persists a `reporterId` (scoped by publishable key) the SDK thereafter presents
16
- * as an identity input the tester's tier stays server-derived.
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, init, redeem } from "./init";
19
- export type { FixbackInstance, InitOptions, RedeemOptions, TraceOptions } from "./init";
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 "./boot";
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";