@3cr/viewer-browser 0.0.147 → 0.0.149
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/index.html +3 -1
- package/package.json +1 -1
- package/playground/index.html +5 -2
package/index.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<script type="module">
|
|
18
18
|
import {registerViewer, loadViewer} from './index.ts';
|
|
19
19
|
|
|
20
|
-
const { StatsigClient, runStatsigAutoCapture, runStatsigSessionReplay } = window.Statsig;
|
|
20
|
+
const { StatsigClient, SessionReplay, runStatsigAutoCapture, runStatsigSessionReplay } = window.Statsig;
|
|
21
21
|
const client = new StatsigClient(
|
|
22
22
|
"client-YaAjxOTTRbuSN3peDAwXEzErieXpI744a3OHDgonzvV",
|
|
23
23
|
{ userID: undefined },
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
window.playgroundStatsigClient = client
|
|
27
27
|
runStatsigSessionReplay(client);
|
|
28
28
|
|
|
29
|
+
const replayer = new SessionReplay(client);
|
|
30
|
+
console.log(replayer)
|
|
29
31
|
|
|
30
32
|
const dynamicConfig = window.playgroundStatsigClient.getDynamicConfig("3cr_viewer_version");
|
|
31
33
|
const version = dynamicConfig.value["sdkVersion"] ?? "1.0.0";
|
package/package.json
CHANGED
package/playground/index.html
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<meta charset="UTF-8" />
|
|
6
6
|
<link rel="icon" href="/favicon.ico" />
|
|
7
7
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
8
|
+
<script src="https://cdn.jsdelivr.net/npm/@3cr/viewer-browser@{{version}}/dist/Viewer3CR.umd.js"> </script>
|
|
8
9
|
<script type="module">
|
|
9
10
|
function initServiceWorker() {
|
|
10
11
|
// Only enable service worker in production
|
|
@@ -28,7 +29,6 @@
|
|
|
28
29
|
initServiceWorker();
|
|
29
30
|
});
|
|
30
31
|
</script>
|
|
31
|
-
<script src="https://cdn.jsdelivr.net/npm/@3cr/viewer-browser@{{version}}/dist/Viewer3CR.umd.js"> </script>
|
|
32
32
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
|
33
33
|
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
|
34
34
|
<script src="https://cdn.jsdelivr.net/npm/@statsig/js-client@latest/build/statsig-js-client+session-replay+web-analytics.min.js"></script>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<div id="app"></div>
|
|
42
42
|
<script type="module">
|
|
43
43
|
|
|
44
|
-
const { StatsigClient, runStatsigAutoCapture, runStatsigSessionReplay } = window.Statsig;
|
|
44
|
+
const { StatsigClient, SessionReplay, runStatsigAutoCapture, runStatsigSessionReplay } = window.Statsig;
|
|
45
45
|
const client = new StatsigClient(
|
|
46
46
|
"client-YaAjxOTTRbuSN3peDAwXEzErieXpI744a3OHDgonzvV",
|
|
47
47
|
{ userID: undefined },
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
const dynamicConfig = window.playgroundStatsigClient.getDynamicConfig("3cr_viewer_version");
|
|
54
54
|
const version = dynamicConfig.value["sdkVersion"] ?? "1.0.0";
|
|
55
55
|
|
|
56
|
+
const replayer = new SessionReplay(client);
|
|
57
|
+
console.log(replayer)
|
|
58
|
+
|
|
56
59
|
|
|
57
60
|
client.initializeAsync().then(() => {
|
|
58
61
|
window.registerViewer(version).then(() => {
|