@repros/sdk 0.0.1
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/LICENSE +11 -0
- package/README.md +51 -0
- package/dist/index.cjs +967 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +109 -0
- package/dist/index.d.ts +109 -0
- package/dist/index.js +937 -0
- package/dist/index.js.map +1 -0
- package/dist/repros-sdk.global.js +179 -0
- package/dist/repros-sdk.global.js.map +1 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright (c) Repros. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This software is provided for use solely by customers of Repros as part
|
|
4
|
+
of an active subscription, for the purpose of integrating Repros Customer
|
|
5
|
+
Sessions into their own applications. No license is granted to use, copy,
|
|
6
|
+
modify, merge, publish, distribute, sublicense, or sell copies of this
|
|
7
|
+
software for any other purpose.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
10
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
11
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @repros/sdk
|
|
2
|
+
|
|
3
|
+
The SDK that makes [Repros](https://www.repros.dev) Customer Sessions work:
|
|
4
|
+
install it once, anywhere in your app, and it does nothing at all until one
|
|
5
|
+
of your customers opens a one-time report link an account manager sent
|
|
6
|
+
them — then it asks for their consent and, if they agree, records a
|
|
7
|
+
screenshot, console errors and failed network requests until they send the
|
|
8
|
+
report.
|
|
9
|
+
|
|
10
|
+
You only need this for Customer Sessions. Internal QA testers use the
|
|
11
|
+
Repros Chrome extension instead — nothing here is required for that.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @repros/sdk
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { init } from "@repros/sdk";
|
|
21
|
+
|
|
22
|
+
init();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
No build step of your own? Use the script tag instead:
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<script src="https://www.repros.dev/sdk/repros-sdk.global.js"></script>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Either way, add it once, near the root of your app — it's safe to leave
|
|
32
|
+
installed on every page, permanently.
|
|
33
|
+
|
|
34
|
+
## What it actually does
|
|
35
|
+
|
|
36
|
+
Nothing, almost all of the time. `init()` looks for a one-time claim token
|
|
37
|
+
in the page's URL — the one a Repros-hosted link redirects your app to
|
|
38
|
+
after a customer opens it. No token, no network call, no UI, nothing
|
|
39
|
+
mounted.
|
|
40
|
+
|
|
41
|
+
When a real token is present, it asks the customer to confirm before
|
|
42
|
+
anything is recorded, then shows a small toolbar they can use to add a
|
|
43
|
+
note and send the report. Capture starts only after they say yes, and
|
|
44
|
+
stops again the moment they send the report.
|
|
45
|
+
|
|
46
|
+
Full docs: <https://www.repros.dev/docs/sdk>
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
Proprietary — see [LICENSE](./LICENSE). This package is provided for use
|
|
51
|
+
by Repros customers as part of their subscription; it isn't open source.
|