@walkeros/web-source-browser 2.0.1 → 2.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 CHANGED
@@ -1,5 +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
4
 
4
5
  /**
5
6
  * Data attribute prefix
@@ -42,17 +43,51 @@ type TaggerConfig = z.infer<typeof TaggerSchema>;
42
43
  declare const settings: _walkeros_core_dev.JSONSchema;
43
44
  declare const tagger: _walkeros_core_dev.JSONSchema;
44
45
 
45
- declare const index_DataAttributePrefix: typeof DataAttributePrefix;
46
- declare const index_JavaScriptVarName: typeof JavaScriptVarName;
47
- declare const index_ScopeSelector: typeof ScopeSelector;
48
- type index_Settings = Settings;
49
- declare const index_SettingsSchema: typeof SettingsSchema;
50
- type index_TaggerConfig = TaggerConfig;
51
- declare const index_TaggerSchema: typeof TaggerSchema;
52
- declare const index_settings: typeof settings;
53
- declare const index_tagger: typeof tagger;
46
+ declare const index$1_DataAttributePrefix: typeof DataAttributePrefix;
47
+ declare const index$1_JavaScriptVarName: typeof JavaScriptVarName;
48
+ declare const index$1_ScopeSelector: typeof ScopeSelector;
49
+ type index$1_Settings = Settings;
50
+ declare const index$1_SettingsSchema: typeof SettingsSchema;
51
+ type index$1_TaggerConfig = TaggerConfig;
52
+ declare const index$1_TaggerSchema: typeof TaggerSchema;
53
+ declare const index$1_settings: typeof settings;
54
+ declare const index$1_tagger: typeof tagger;
55
+ declare namespace index$1 {
56
+ export { index$1_DataAttributePrefix as DataAttributePrefix, index$1_JavaScriptVarName as JavaScriptVarName, index$1_ScopeSelector as ScopeSelector, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, type index$1_TaggerConfig as TaggerConfig, index$1_TaggerSchema as TaggerSchema, index$1_settings as settings, index$1_tagger as tagger };
57
+ }
58
+
59
+ interface Env extends Source.BaseEnv {
60
+ elb: Elb.Fn;
61
+ window?: Window & typeof globalThis;
62
+ document?: Document;
63
+ }
64
+
65
+ /**
66
+ * Standard mock environment for testing browser source
67
+ *
68
+ * Use this for testing event capture, DOM interactions, and pageview tracking
69
+ * without requiring a real browser environment.
70
+ */
71
+ declare const push: Env;
72
+
73
+ declare const env_push: typeof push;
74
+ declare namespace env {
75
+ export { env_push as push };
76
+ }
77
+
78
+ declare const pageView: Flow.StepExample;
79
+ declare const clickEvent: Flow.StepExample;
80
+
81
+ declare const step_clickEvent: typeof clickEvent;
82
+ declare const step_pageView: typeof pageView;
83
+ declare namespace step {
84
+ export { step_clickEvent as clickEvent, step_pageView as pageView };
85
+ }
86
+
87
+ declare const index_env: typeof env;
88
+ declare const index_step: typeof step;
54
89
  declare namespace index {
55
- export { index_DataAttributePrefix as DataAttributePrefix, index_JavaScriptVarName as JavaScriptVarName, index_ScopeSelector as ScopeSelector, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, type index_TaggerConfig as TaggerConfig, index_TaggerSchema as TaggerSchema, index_settings as settings, index_tagger as tagger };
90
+ export { index_env as env, index_step as step };
56
91
  }
57
92
 
58
- export { index as schemas };
93
+ export { index as examples, index$1 as schemas };
package/dist/dev.d.ts CHANGED
@@ -1,5 +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
4
 
4
5
  /**
5
6
  * Data attribute prefix
@@ -42,17 +43,51 @@ type TaggerConfig = z.infer<typeof TaggerSchema>;
42
43
  declare const settings: _walkeros_core_dev.JSONSchema;
43
44
  declare const tagger: _walkeros_core_dev.JSONSchema;
44
45
 
45
- declare const index_DataAttributePrefix: typeof DataAttributePrefix;
46
- declare const index_JavaScriptVarName: typeof JavaScriptVarName;
47
- declare const index_ScopeSelector: typeof ScopeSelector;
48
- type index_Settings = Settings;
49
- declare const index_SettingsSchema: typeof SettingsSchema;
50
- type index_TaggerConfig = TaggerConfig;
51
- declare const index_TaggerSchema: typeof TaggerSchema;
52
- declare const index_settings: typeof settings;
53
- declare const index_tagger: typeof tagger;
46
+ declare const index$1_DataAttributePrefix: typeof DataAttributePrefix;
47
+ declare const index$1_JavaScriptVarName: typeof JavaScriptVarName;
48
+ declare const index$1_ScopeSelector: typeof ScopeSelector;
49
+ type index$1_Settings = Settings;
50
+ declare const index$1_SettingsSchema: typeof SettingsSchema;
51
+ type index$1_TaggerConfig = TaggerConfig;
52
+ declare const index$1_TaggerSchema: typeof TaggerSchema;
53
+ declare const index$1_settings: typeof settings;
54
+ declare const index$1_tagger: typeof tagger;
55
+ declare namespace index$1 {
56
+ export { index$1_DataAttributePrefix as DataAttributePrefix, index$1_JavaScriptVarName as JavaScriptVarName, index$1_ScopeSelector as ScopeSelector, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, type index$1_TaggerConfig as TaggerConfig, index$1_TaggerSchema as TaggerSchema, index$1_settings as settings, index$1_tagger as tagger };
57
+ }
58
+
59
+ interface Env extends Source.BaseEnv {
60
+ elb: Elb.Fn;
61
+ window?: Window & typeof globalThis;
62
+ document?: Document;
63
+ }
64
+
65
+ /**
66
+ * Standard mock environment for testing browser source
67
+ *
68
+ * Use this for testing event capture, DOM interactions, and pageview tracking
69
+ * without requiring a real browser environment.
70
+ */
71
+ declare const push: Env;
72
+
73
+ declare const env_push: typeof push;
74
+ declare namespace env {
75
+ export { env_push as push };
76
+ }
77
+
78
+ declare const pageView: Flow.StepExample;
79
+ declare const clickEvent: Flow.StepExample;
80
+
81
+ declare const step_clickEvent: typeof clickEvent;
82
+ declare const step_pageView: typeof pageView;
83
+ declare namespace step {
84
+ export { step_clickEvent as clickEvent, step_pageView as pageView };
85
+ }
86
+
87
+ declare const index_env: typeof env;
88
+ declare const index_step: typeof step;
54
89
  declare namespace index {
55
- export { index_DataAttributePrefix as DataAttributePrefix, index_JavaScriptVarName as JavaScriptVarName, index_ScopeSelector as ScopeSelector, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, type index_TaggerConfig as TaggerConfig, index_TaggerSchema as TaggerSchema, index_settings as settings, index_tagger as tagger };
90
+ export { index_env as env, index_step as step };
56
91
  }
57
92
 
58
- export { index as schemas };
93
+ export { index as examples, index$1 as schemas };