@walkeros/web-source-browser 3.0.2 → 3.1.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/dist/dev.d.mts +22 -2
- package/dist/dev.d.ts +22 -2
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +41 -68
- package/package.json +6 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _walkeros_core from '@walkeros/core';
|
|
2
|
-
import { Elb, WalkerOS, Collector, Source, Flow } from '@walkeros/core';
|
|
2
|
+
import { Elb, WalkerOS, Collector, Source, Flow, Trigger as Trigger$1 } from '@walkeros/core';
|
|
3
3
|
import { z } from '@walkeros/core/dev';
|
|
4
4
|
import { DestinationWeb, Walker } from '@walkeros/web-core';
|
|
5
5
|
|
|
@@ -127,10 +127,30 @@ declare namespace step {
|
|
|
127
127
|
export { step_clickEvent as clickEvent, step_contextAndGlobals as contextAndGlobals, step_dataAttributeTypes as dataAttributeTypes, step_impressionEvent as impressionEvent, step_nestedEntities as nestedEntities, step_pageView as pageView, step_submitEvent as submitEvent };
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Browser source createTrigger.
|
|
132
|
+
*
|
|
133
|
+
* Injects HTML into the DOM, lazily starts the flow, then dispatches
|
|
134
|
+
* native browser events. Mirrors real-world behavior: HTML exists on
|
|
135
|
+
* the page, walker.js loads, source scans DOM and sets up listeners.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* const { trigger } = await createTrigger(config);
|
|
139
|
+
* await trigger('click', 'button')('<button data-elb="cta">Click</button>');
|
|
140
|
+
*/
|
|
141
|
+
declare const createTrigger: Trigger$1.CreateFn<string, void>;
|
|
142
|
+
/**
|
|
143
|
+
* Browser source trigger (legacy).
|
|
144
|
+
* Converts step example `in` data into DOM elements and dispatches events.
|
|
145
|
+
*/
|
|
146
|
+
declare const trigger: (input: unknown, env: Record<string, unknown>) => void | (() => void);
|
|
147
|
+
|
|
148
|
+
declare const index_createTrigger: typeof createTrigger;
|
|
130
149
|
declare const index_env: typeof env;
|
|
131
150
|
declare const index_step: typeof step;
|
|
151
|
+
declare const index_trigger: typeof trigger;
|
|
132
152
|
declare namespace index {
|
|
133
|
-
export { index_env as env, index_step as step };
|
|
153
|
+
export { index_createTrigger as createTrigger, index_env as env, index_step as step, index_trigger as trigger };
|
|
134
154
|
}
|
|
135
155
|
|
|
136
156
|
declare function getElbAttributeName(prefix: string, name?: string, isProperty?: boolean): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _walkeros_core from '@walkeros/core';
|
|
2
|
-
import { Elb, WalkerOS, Collector, Source, Flow } from '@walkeros/core';
|
|
2
|
+
import { Elb, WalkerOS, Collector, Source, Flow, Trigger as Trigger$1 } from '@walkeros/core';
|
|
3
3
|
import { z } from '@walkeros/core/dev';
|
|
4
4
|
import { DestinationWeb, Walker } from '@walkeros/web-core';
|
|
5
5
|
|
|
@@ -127,10 +127,30 @@ declare namespace step {
|
|
|
127
127
|
export { step_clickEvent as clickEvent, step_contextAndGlobals as contextAndGlobals, step_dataAttributeTypes as dataAttributeTypes, step_impressionEvent as impressionEvent, step_nestedEntities as nestedEntities, step_pageView as pageView, step_submitEvent as submitEvent };
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Browser source createTrigger.
|
|
132
|
+
*
|
|
133
|
+
* Injects HTML into the DOM, lazily starts the flow, then dispatches
|
|
134
|
+
* native browser events. Mirrors real-world behavior: HTML exists on
|
|
135
|
+
* the page, walker.js loads, source scans DOM and sets up listeners.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* const { trigger } = await createTrigger(config);
|
|
139
|
+
* await trigger('click', 'button')('<button data-elb="cta">Click</button>');
|
|
140
|
+
*/
|
|
141
|
+
declare const createTrigger: Trigger$1.CreateFn<string, void>;
|
|
142
|
+
/**
|
|
143
|
+
* Browser source trigger (legacy).
|
|
144
|
+
* Converts step example `in` data into DOM elements and dispatches events.
|
|
145
|
+
*/
|
|
146
|
+
declare const trigger: (input: unknown, env: Record<string, unknown>) => void | (() => void);
|
|
147
|
+
|
|
148
|
+
declare const index_createTrigger: typeof createTrigger;
|
|
130
149
|
declare const index_env: typeof env;
|
|
131
150
|
declare const index_step: typeof step;
|
|
151
|
+
declare const index_trigger: typeof trigger;
|
|
132
152
|
declare namespace index {
|
|
133
|
-
export { index_env as env, index_step as step };
|
|
153
|
+
export { index_createTrigger as createTrigger, index_env as env, index_step as step, index_trigger as trigger };
|
|
134
154
|
}
|
|
135
155
|
|
|
136
156
|
declare function getElbAttributeName(prefix: string, name?: string, isProperty?: boolean): string;
|