@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosdevlab/experience-sdk-plugins@0.1.3 build /home/runner/work/experience-sdk/experience-sdk/packages/plugins
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
  CLI Building entry: src/index.ts
@@ -9,9 +9,9 @@
9
9
  CLI Target: es2024
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM dist/index.js 17.87 KB
13
- ESM dist/index.js.map 44.45 KB
14
- ESM ⚡️ Build success in 190ms
12
+ ESM dist/index.js 40.31 KB
13
+ ESM dist/index.js.map 105.77 KB
14
+ ESM ⚡️ Build success in 262ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 873ms
17
- DTS dist/index.d.ts 5.09 KB
16
+ DTS ⚡️ Build success in 1098ms
17
+ DTS dist/index.d.ts 22.78 KB
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