@walkeros/web-source-browser 3.1.1 → 3.2.0-next-1775064795590

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/dist/dev.d.mts CHANGED
@@ -97,13 +97,18 @@ declare namespace step {
97
97
  /**
98
98
  * Browser source createTrigger.
99
99
  *
100
- * Injects HTML into the DOM, lazily starts the flow, then dispatches
101
- * native browser events. Mirrors real-world behavior: HTML exists on
102
- * the page, walker.js loads, source scans DOM and sets up listeners.
100
+ * Injects HTML into the DOM, lazily starts the flow, then calls
101
+ * handleTrigger directly the same convergence point as production.
102
+ * For load triggers, the source's DOM scan during startFlow handles
103
+ * event capture automatically.
103
104
  *
104
105
  * @example
105
106
  * const { trigger } = await createTrigger(config);
106
- * await trigger('click', 'button')('<button data-elb="cta">Click</button>');
107
+ * await trigger('click', 'button')('<button data-elb="cta" data-elbaction="click:cta click">Click</button>');
108
+ *
109
+ * @example
110
+ * // Impression trigger — handleTrigger reads data-elbaction directly
111
+ * await trigger('impression', '[data-elb="promo"]')('<div data-elb="promo" data-elbaction="visible:promo seen">Ad</div>');
107
112
  */
108
113
  declare const createTrigger: Trigger.CreateFn<string, void>;
109
114
  /**
package/dist/dev.d.ts CHANGED
@@ -97,13 +97,18 @@ declare namespace step {
97
97
  /**
98
98
  * Browser source createTrigger.
99
99
  *
100
- * Injects HTML into the DOM, lazily starts the flow, then dispatches
101
- * native browser events. Mirrors real-world behavior: HTML exists on
102
- * the page, walker.js loads, source scans DOM and sets up listeners.
100
+ * Injects HTML into the DOM, lazily starts the flow, then calls
101
+ * handleTrigger directly the same convergence point as production.
102
+ * For load triggers, the source's DOM scan during startFlow handles
103
+ * event capture automatically.
103
104
  *
104
105
  * @example
105
106
  * const { trigger } = await createTrigger(config);
106
- * await trigger('click', 'button')('<button data-elb="cta">Click</button>');
107
+ * await trigger('click', 'button')('<button data-elb="cta" data-elbaction="click:cta click">Click</button>');
108
+ *
109
+ * @example
110
+ * // Impression trigger — handleTrigger reads data-elbaction directly
111
+ * await trigger('impression', '[data-elb="promo"]')('<div data-elb="promo" data-elbaction="visible:promo seen">Ad</div>');
107
112
  */
108
113
  declare const createTrigger: Trigger.CreateFn<string, void>;
109
114
  /**