@prosdevlab/experience-sdk-plugins 0.1.3 → 0.2.0
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +56 -0
- package/dist/index.d.ts +626 -2
- package/dist/index.js +799 -49
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/banner/banner.ts +149 -51
- package/src/exit-intent/exit-intent.test.ts +423 -0
- package/src/exit-intent/exit-intent.ts +372 -0
- package/src/exit-intent/index.ts +6 -0
- package/src/exit-intent/types.ts +59 -0
- package/src/index.ts +5 -0
- package/src/integration.test.ts +362 -0
- package/src/page-visits/index.ts +6 -0
- package/src/page-visits/page-visits.test.ts +562 -0
- package/src/page-visits/page-visits.ts +314 -0
- package/src/page-visits/types.ts +119 -0
- package/src/scroll-depth/index.ts +6 -0
- package/src/scroll-depth/scroll-depth.test.ts +545 -0
- package/src/scroll-depth/scroll-depth.ts +400 -0
- package/src/scroll-depth/types.ts +122 -0
- package/src/time-delay/index.ts +6 -0
- package/src/time-delay/time-delay.test.ts +477 -0
- package/src/time-delay/time-delay.ts +297 -0
- package/src/time-delay/types.ts +89 -0
- package/src/utils/sanitize.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosdevlab/experience-sdk-plugins@0.
|
|
2
|
+
> @prosdevlab/experience-sdk-plugins@0.2.0 build /home/runner/work/experience-sdk/experience-sdk/packages/plugins
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
[34mCLI[39m Target: es2024
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
13
|
-
[32mESM[39m [1mdist/index.js.map [22m[
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m40.31 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m105.77 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 262ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1098ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m22.78 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @prosdevlab/experience-sdk-plugins
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 02de640: feat: add display condition plugins with event-driven architecture
|
|
8
|
+
|
|
9
|
+
Add 4 new display condition plugins with comprehensive testing and documentation:
|
|
10
|
+
|
|
11
|
+
**New Plugins:**
|
|
12
|
+
|
|
13
|
+
- Exit Intent: Velocity-based mouse tracking with session awareness
|
|
14
|
+
- Scroll Depth: Multiple thresholds with advanced engagement metrics
|
|
15
|
+
- Page Visits: Session and lifetime counters with first-visit detection
|
|
16
|
+
- Time Delay: Millisecond-precision delays with visibility API integration
|
|
17
|
+
|
|
18
|
+
**Core Enhancements:**
|
|
19
|
+
|
|
20
|
+
- Event-driven trigger architecture (`trigger:*` events)
|
|
21
|
+
- Composable display conditions (AND/OR/NOT logic)
|
|
22
|
+
- TriggerState interface for type-safe context updates
|
|
23
|
+
|
|
24
|
+
**Developer Experience:**
|
|
25
|
+
|
|
26
|
+
- 101 new tests across 4 plugins (314 total)
|
|
27
|
+
- 12 integration tests for plugin composition
|
|
28
|
+
- Complete API documentation with examples
|
|
29
|
+
- Pure functions for easier testing
|
|
30
|
+
|
|
31
|
+
All plugins are backward compatible and work independently or together.
|
|
32
|
+
|
|
33
|
+
## 0.1.4
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- df2c286: feat(banner): add pushDown option to push content down instead of overlay
|
|
38
|
+
|
|
39
|
+
Add optional `pushDown` config to banner plugin that allows top banners to smoothly push page content down (add margin-top) instead of overlaying it.
|
|
40
|
+
|
|
41
|
+
**Usage:**
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
init({
|
|
45
|
+
banner: {
|
|
46
|
+
position: "top",
|
|
47
|
+
pushDown: "header", // CSS selector of element to push down
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Benefits:**
|
|
53
|
+
|
|
54
|
+
- Opt-in feature (default behavior unchanged)
|
|
55
|
+
- Smooth transition with CSS animations
|
|
56
|
+
- Improves UX for sticky navigation
|
|
57
|
+
- Automatically removes margin when banner is dismissed
|
|
58
|
+
|
|
3
59
|
## 0.1.3
|
|
4
60
|
|
|
5
61
|
### Patch Changes
|