@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/dev.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Source, Elb, Flow } from '@walkeros/core';
|
|
3
|
+
import { Source, Elb, Flow, Trigger } from '@walkeros/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Data attribute prefix
|
|
@@ -94,10 +94,30 @@ declare namespace step {
|
|
|
94
94
|
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 };
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Browser source createTrigger.
|
|
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.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* const { trigger } = await createTrigger(config);
|
|
106
|
+
* await trigger('click', 'button')('<button data-elb="cta">Click</button>');
|
|
107
|
+
*/
|
|
108
|
+
declare const createTrigger: Trigger.CreateFn<string, void>;
|
|
109
|
+
/**
|
|
110
|
+
* Browser source trigger (legacy).
|
|
111
|
+
* Converts step example `in` data into DOM elements and dispatches events.
|
|
112
|
+
*/
|
|
113
|
+
declare const trigger: (input: unknown, env: Record<string, unknown>) => void | (() => void);
|
|
114
|
+
|
|
115
|
+
declare const index_createTrigger: typeof createTrigger;
|
|
97
116
|
declare const index_env: typeof env;
|
|
98
117
|
declare const index_step: typeof step;
|
|
118
|
+
declare const index_trigger: typeof trigger;
|
|
99
119
|
declare namespace index {
|
|
100
|
-
export { index_env as env, index_step as step };
|
|
120
|
+
export { index_createTrigger as createTrigger, index_env as env, index_step as step, index_trigger as trigger };
|
|
101
121
|
}
|
|
102
122
|
|
|
103
123
|
export { index as examples, index$1 as schemas };
|
package/dist/dev.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Source, Elb, Flow } from '@walkeros/core';
|
|
3
|
+
import { Source, Elb, Flow, Trigger } from '@walkeros/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Data attribute prefix
|
|
@@ -94,10 +94,30 @@ declare namespace step {
|
|
|
94
94
|
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 };
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Browser source createTrigger.
|
|
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.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* const { trigger } = await createTrigger(config);
|
|
106
|
+
* await trigger('click', 'button')('<button data-elb="cta">Click</button>');
|
|
107
|
+
*/
|
|
108
|
+
declare const createTrigger: Trigger.CreateFn<string, void>;
|
|
109
|
+
/**
|
|
110
|
+
* Browser source trigger (legacy).
|
|
111
|
+
* Converts step example `in` data into DOM elements and dispatches events.
|
|
112
|
+
*/
|
|
113
|
+
declare const trigger: (input: unknown, env: Record<string, unknown>) => void | (() => void);
|
|
114
|
+
|
|
115
|
+
declare const index_createTrigger: typeof createTrigger;
|
|
97
116
|
declare const index_env: typeof env;
|
|
98
117
|
declare const index_step: typeof step;
|
|
118
|
+
declare const index_trigger: typeof trigger;
|
|
99
119
|
declare namespace index {
|
|
100
|
-
export { index_env as env, index_step as step };
|
|
120
|
+
export { index_createTrigger as createTrigger, index_env as env, index_step as step, index_trigger as trigger };
|
|
101
121
|
}
|
|
102
122
|
|
|
103
123
|
export { index as examples, index$1 as schemas };
|