@neroom/nevision 0.1.0 → 0.1.2
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 +7 -7
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @neroom/nevision
|
|
2
2
|
|
|
3
|
-
React SDK for
|
|
3
|
+
React SDK for Neroom session recording.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install @neroom/nevision
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Add the `
|
|
13
|
+
Add the `NevisionRecorder` component to your app's root layout:
|
|
14
14
|
|
|
15
15
|
```tsx
|
|
16
|
-
import {
|
|
16
|
+
import { NevisionRecorder } from '@neroom/nevision';
|
|
17
17
|
|
|
18
18
|
export default function RootLayout({ children }) {
|
|
19
19
|
return (
|
|
20
20
|
<html>
|
|
21
21
|
<body>
|
|
22
|
-
<
|
|
22
|
+
<NevisionRecorder
|
|
23
23
|
siteId="your-site-id"
|
|
24
24
|
apiKey="your-api-key"
|
|
25
25
|
/>
|
|
@@ -47,7 +47,7 @@ export default function RootLayout({ children }) {
|
|
|
47
47
|
By default, password and email inputs are masked. You can customize this:
|
|
48
48
|
|
|
49
49
|
```tsx
|
|
50
|
-
<
|
|
50
|
+
<NevisionRecorder
|
|
51
51
|
siteId="your-site-id"
|
|
52
52
|
apiKey="your-api-key"
|
|
53
53
|
privacy={{
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface NevisionRecorderProps {
|
|
2
2
|
siteId: string;
|
|
3
3
|
apiKey: string;
|
|
4
4
|
apiUrl?: string;
|
|
@@ -27,6 +27,6 @@ interface NeRoomRecorderProps {
|
|
|
27
27
|
/** Callback on error */
|
|
28
28
|
onError?: (error: Error) => void;
|
|
29
29
|
}
|
|
30
|
-
declare function
|
|
30
|
+
declare function NevisionRecorder({ siteId, apiKey, apiUrl, sampling, privacy, onStart, onError, }: NevisionRecorderProps): null;
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { NevisionRecorder, type NevisionRecorderProps, NevisionRecorder as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface NevisionRecorderProps {
|
|
2
2
|
siteId: string;
|
|
3
3
|
apiKey: string;
|
|
4
4
|
apiUrl?: string;
|
|
@@ -27,6 +27,6 @@ interface NeRoomRecorderProps {
|
|
|
27
27
|
/** Callback on error */
|
|
28
28
|
onError?: (error: Error) => void;
|
|
29
29
|
}
|
|
30
|
-
declare function
|
|
30
|
+
declare function NevisionRecorder({ siteId, apiKey, apiUrl, sampling, privacy, onStart, onError, }: NevisionRecorderProps): null;
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { NevisionRecorder, type NevisionRecorderProps, NevisionRecorder as default };
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/index.tsx
|
|
32
32
|
var index_exports = {};
|
|
33
33
|
__export(index_exports, {
|
|
34
|
-
|
|
34
|
+
NevisionRecorder: () => NevisionRecorder,
|
|
35
35
|
default: () => index_default
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -39,7 +39,7 @@ var import_react = require("react");
|
|
|
39
39
|
var DEFAULT_API_URL = "https://api.ne-room.io";
|
|
40
40
|
var CHUNK_INTERVAL = 1e4;
|
|
41
41
|
var MAX_EVENTS_PER_CHUNK = 100;
|
|
42
|
-
function
|
|
42
|
+
function NevisionRecorder({
|
|
43
43
|
siteId,
|
|
44
44
|
apiKey,
|
|
45
45
|
apiUrl = DEFAULT_API_URL,
|
|
@@ -173,8 +173,8 @@ function NeRoomRecorder({
|
|
|
173
173
|
}, [siteId, apiKey, apiUrl, sampling, privacy, onStart, onError]);
|
|
174
174
|
return null;
|
|
175
175
|
}
|
|
176
|
-
var index_default =
|
|
176
|
+
var index_default = NevisionRecorder;
|
|
177
177
|
// Annotate the CommonJS export names for ESM import in node:
|
|
178
178
|
0 && (module.exports = {
|
|
179
|
-
|
|
179
|
+
NevisionRecorder
|
|
180
180
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useEffect, useRef } from "react";
|
|
|
5
5
|
var DEFAULT_API_URL = "https://api.ne-room.io";
|
|
6
6
|
var CHUNK_INTERVAL = 1e4;
|
|
7
7
|
var MAX_EVENTS_PER_CHUNK = 100;
|
|
8
|
-
function
|
|
8
|
+
function NevisionRecorder({
|
|
9
9
|
siteId,
|
|
10
10
|
apiKey,
|
|
11
11
|
apiUrl = DEFAULT_API_URL,
|
|
@@ -139,8 +139,8 @@ function NeRoomRecorder({
|
|
|
139
139
|
}, [siteId, apiKey, apiUrl, sampling, privacy, onStart, onError]);
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var index_default =
|
|
142
|
+
var index_default = NevisionRecorder;
|
|
143
143
|
export {
|
|
144
|
-
|
|
144
|
+
NevisionRecorder,
|
|
145
145
|
index_default as default
|
|
146
146
|
};
|