@walkeros/web-source-browser 0.3.1 → 0.4.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/index.d.mts CHANGED
@@ -1,22 +1,7 @@
1
1
  import * as _walkeros_core from '@walkeros/core';
2
- import { z, Elb, WalkerOS, Collector, Source } from '@walkeros/core';
2
+ import { Elb, WalkerOS, Collector, Source } from '@walkeros/core';
3
3
  import { DestinationWeb, SessionConfig, SessionCallback, Walker } from '@walkeros/web-core';
4
-
5
- /**
6
- * Data attribute prefix
7
- * Used for DOM event tracking
8
- */
9
- declare const DataAttributePrefix: z.ZodString;
10
- /**
11
- * JavaScript variable name
12
- * Used for global function names
13
- */
14
- declare const JavaScriptVarName: z.ZodString;
15
- /**
16
- * DOM scope selector
17
- * Note: Runtime type is Element | Document (non-serializable)
18
- */
19
- declare const ScopeSelector: z.ZodOptional<z.ZodString>;
4
+ import { z } from '@walkeros/core/dev';
20
5
 
21
6
  /**
22
7
  * Browser source settings schema
@@ -30,30 +15,6 @@ declare const SettingsSchema: z.ZodObject<{
30
15
  name: z.ZodOptional<z.ZodString>;
31
16
  elbLayer: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodAny]>>;
32
17
  }, z.core.$strip>;
33
- type Settings$1 = z.infer<typeof SettingsSchema>;
34
-
35
- /**
36
- * Tagger configuration schema
37
- * Used for automatic data attribute generation
38
- */
39
- declare const TaggerSchema: z.ZodObject<{
40
- prefix: z.ZodDefault<z.ZodString>;
41
- }, z.core.$strip>;
42
- type TaggerConfig$1 = z.infer<typeof TaggerSchema>;
43
-
44
- declare const settings: _walkeros_core.JSONSchema;
45
- declare const tagger: _walkeros_core.JSONSchema;
46
-
47
- declare const index$2_DataAttributePrefix: typeof DataAttributePrefix;
48
- declare const index$2_JavaScriptVarName: typeof JavaScriptVarName;
49
- declare const index$2_ScopeSelector: typeof ScopeSelector;
50
- declare const index$2_SettingsSchema: typeof SettingsSchema;
51
- declare const index$2_TaggerSchema: typeof TaggerSchema;
52
- declare const index$2_settings: typeof settings;
53
- declare const index$2_tagger: typeof tagger;
54
- declare namespace index$2 {
55
- export { index$2_DataAttributePrefix as DataAttributePrefix, index$2_JavaScriptVarName as JavaScriptVarName, index$2_ScopeSelector as ScopeSelector, type Settings$1 as Settings, index$2_SettingsSchema as SettingsSchema, type TaggerConfig$1 as TaggerConfig, index$2_TaggerSchema as TaggerSchema, index$2_settings as settings, index$2_tagger as tagger };
56
- }
57
18
 
58
19
  type Scope$1 = Element | Document;
59
20
  type Trigger = string;
@@ -191,4 +152,4 @@ declare function createTagger(config?: TaggerConfig): (entity?: string) => Tagge
191
152
  */
192
153
  declare const sourceBrowser: Source.Init<Types>;
193
154
 
194
- export { index$1 as SourceBrowser, type TaggerConfig, type TaggerInstance, createTagger, sourceBrowser as default, index as examples, getAllEvents, getElbAttributeName, getElbValues, getEvents, getGlobals, index$2 as schemas, sourceBrowser };
155
+ export { index$1 as SourceBrowser, type TaggerConfig, type TaggerInstance, createTagger, sourceBrowser as default, index as examples, getAllEvents, getElbAttributeName, getElbValues, getEvents, getGlobals, sourceBrowser };
package/dist/index.d.ts CHANGED
@@ -1,22 +1,7 @@
1
1
  import * as _walkeros_core from '@walkeros/core';
2
- import { z, Elb, WalkerOS, Collector, Source } from '@walkeros/core';
2
+ import { Elb, WalkerOS, Collector, Source } from '@walkeros/core';
3
3
  import { DestinationWeb, SessionConfig, SessionCallback, Walker } from '@walkeros/web-core';
4
-
5
- /**
6
- * Data attribute prefix
7
- * Used for DOM event tracking
8
- */
9
- declare const DataAttributePrefix: z.ZodString;
10
- /**
11
- * JavaScript variable name
12
- * Used for global function names
13
- */
14
- declare const JavaScriptVarName: z.ZodString;
15
- /**
16
- * DOM scope selector
17
- * Note: Runtime type is Element | Document (non-serializable)
18
- */
19
- declare const ScopeSelector: z.ZodOptional<z.ZodString>;
4
+ import { z } from '@walkeros/core/dev';
20
5
 
21
6
  /**
22
7
  * Browser source settings schema
@@ -30,30 +15,6 @@ declare const SettingsSchema: z.ZodObject<{
30
15
  name: z.ZodOptional<z.ZodString>;
31
16
  elbLayer: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodAny]>>;
32
17
  }, z.core.$strip>;
33
- type Settings$1 = z.infer<typeof SettingsSchema>;
34
-
35
- /**
36
- * Tagger configuration schema
37
- * Used for automatic data attribute generation
38
- */
39
- declare const TaggerSchema: z.ZodObject<{
40
- prefix: z.ZodDefault<z.ZodString>;
41
- }, z.core.$strip>;
42
- type TaggerConfig$1 = z.infer<typeof TaggerSchema>;
43
-
44
- declare const settings: _walkeros_core.JSONSchema;
45
- declare const tagger: _walkeros_core.JSONSchema;
46
-
47
- declare const index$2_DataAttributePrefix: typeof DataAttributePrefix;
48
- declare const index$2_JavaScriptVarName: typeof JavaScriptVarName;
49
- declare const index$2_ScopeSelector: typeof ScopeSelector;
50
- declare const index$2_SettingsSchema: typeof SettingsSchema;
51
- declare const index$2_TaggerSchema: typeof TaggerSchema;
52
- declare const index$2_settings: typeof settings;
53
- declare const index$2_tagger: typeof tagger;
54
- declare namespace index$2 {
55
- export { index$2_DataAttributePrefix as DataAttributePrefix, index$2_JavaScriptVarName as JavaScriptVarName, index$2_ScopeSelector as ScopeSelector, type Settings$1 as Settings, index$2_SettingsSchema as SettingsSchema, type TaggerConfig$1 as TaggerConfig, index$2_TaggerSchema as TaggerSchema, index$2_settings as settings, index$2_tagger as tagger };
56
- }
57
18
 
58
19
  type Scope$1 = Element | Document;
59
20
  type Trigger = string;
@@ -191,4 +152,4 @@ declare function createTagger(config?: TaggerConfig): (entity?: string) => Tagge
191
152
  */
192
153
  declare const sourceBrowser: Source.Init<Types>;
193
154
 
194
- export { index$1 as SourceBrowser, type TaggerConfig, type TaggerInstance, createTagger, sourceBrowser as default, index as examples, getAllEvents, getElbAttributeName, getElbValues, getEvents, getGlobals, index$2 as schemas, sourceBrowser };
155
+ export { index$1 as SourceBrowser, type TaggerConfig, type TaggerInstance, createTagger, sourceBrowser as default, index as examples, getAllEvents, getElbAttributeName, getElbValues, getEvents, getGlobals, sourceBrowser };