@funnelsgrove/runtime 0.7.21 → 0.7.23

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.
@@ -101,7 +101,13 @@ export const bootstrapPostHog = (config) => {
101
101
  capture_exceptions: false,
102
102
  capture_heatmaps: false,
103
103
  capture_performance: false,
104
- disable_session_recording: !sessionReplayEnabled,
104
+ disable_session_recording: true,
105
+ before_send: (event) => {
106
+ if (!event || Object.keys(scopeProperties).length === 0) {
107
+ return event;
108
+ }
109
+ return Object.assign(Object.assign({}, event), { properties: Object.assign(Object.assign({}, event.properties), scopeProperties) });
110
+ },
105
111
  session_recording: {
106
112
  maskAllInputs: true,
107
113
  },
@@ -112,6 +118,9 @@ export const bootstrapPostHog = (config) => {
112
118
  if (Object.keys(scopeProperties).length > 0) {
113
119
  posthog.register(scopeProperties);
114
120
  }
121
+ if (sessionReplayEnabled) {
122
+ posthog.startSessionRecording();
123
+ }
115
124
  let unsubscribe = null;
116
125
  let scopedReloadRetried = false;
117
126
  unsubscribe = posthog.onFeatureFlags((flags) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/runtime",
3
- "version": "0.7.21",
3
+ "version": "0.7.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",