@fixback/sdk 0.1.0 → 0.2.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/dist/index.d.ts CHANGED
@@ -7,9 +7,19 @@
7
7
  * overlay: Kind tabs, a comment, an element-select mode, and a Send that captures
8
8
  * a masked screenshot, assembles the Annotation, and submits to ingest. Activation
9
9
  * also emits {@link LAUNCH_EVENT}, the seam the overlay is wired to.
10
+ *
11
+ * On load `init` also detects an invite token in the page URL
12
+ * (`?fixback_invite=`) and renders the SDK's invite onboarding modal; `redeem`
13
+ * runs that same redemption flow for a token supplied programmatically. Redeeming
14
+ * persists a `reporterId` (scoped by publishable key) the SDK thereafter presents
15
+ * as an identity input — the tester's tier stays server-derived.
10
16
  */
11
- export { DEFAULT_API_URL, init } from "./init";
12
- export type { FixbackInstance, InitOptions } from "./init";
17
+ export { DEFAULT_API_URL, init, redeem } from "./init";
18
+ export type { FixbackInstance, InitOptions, RedeemOptions, TraceOptions } from "./init";
13
19
  export { LAUNCH_EVENT } from "./launcher";
14
20
  export type { BootAnswer, BootRequest, IdentityInputs, ProjectGate, ReporterTier, } from "./boot";
15
- export type { CaptureEnvironment, ElementRect, IssueKind, ReportContent, SelectedElement, } from "./report";
21
+ export type { CaptureEnvironment, ElementRect, FeedbackSource, IssueKind, ReportContent, SelectedElement, } from "./report";
22
+ export type { Annotation, ArrowMark, BoxMark, DrawTool, Mark, PenMark, Point, Rect, TextMark, } from "./annotation";
23
+ export type { BeforeBreadcrumb, Breadcrumb, BreadcrumbCategory, BreadcrumbLevel, } from "./breadcrumbs";
24
+ export type { BeforeSend } from "./scrub";
25
+ export type { InviteKind, InviteStatusAnswer, RedeemAnswer, ReporterDisplay, } from "./invite";