@playpilot/tpi 5.34.2 → 5.34.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "5.34.2",
3
+ "version": "5.34.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -4,9 +4,4 @@ export const SplitTest = {
4
4
  numberOfVariants: 2,
5
5
  variantNames: ['Separated', 'Inline'] as string[],
6
6
  },
7
- UserTimeSpent: {
8
- key: 'user_time_spent',
9
- numberOfVariants: 2,
10
- variantNames: ['No Links', 'Default'] as string[],
11
- },
12
7
  } as const
@@ -133,11 +133,6 @@
133
133
  }
134
134
 
135
135
  function inject(injections: LinkInjectionTypes = { aiInjections, manualInjections }): void {
136
- // This is part of a split test were we are not injecting for 10% of users.
137
- // The action is tracked as part of the UserLeft event in /components/UserJourney.svelte.
138
- const hasAnyInjections = aiInjections?.length || manualInjections?.length
139
- if (process.env.NODE_ENV !== 'test' && hasAnyInjections && getSplitTestVariantName(SplitTest.UserTimeSpent) === 'No Links') return
140
-
141
136
  // Get filtered injections as they are shown on the page.
142
137
  // Only update state if it they are different from current injections.
143
138
  const filteredInjections = injectLinksInDocument(elements, injections)
@@ -78,7 +78,6 @@
78
78
  existing_injections_count: totalInjectionElements.length,
79
79
  shown_injections_count: shownInjections.length,
80
80
  fired_events: window.PlayPilotLinkInjections?.tracked_events?.map(event => event.event) || [],
81
- split_test_variant: getSplitTestVariantName(SplitTest.UserTimeSpent),
82
81
  scroll_percentage: getScrollPercentage(),
83
82
  })
84
83
  }