@walkeros/web-source-datalayer 0.2.1 → 0.3.1
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.browser.js +1 -1
- package/dist/index.d.mts +36 -3
- package/dist/index.d.ts +36 -3
- 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/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _walkeros_core from '@walkeros/core';
|
|
2
|
+
import { z, Source, WalkerOS, Elb, Mapping as Mapping$1 } from '@walkeros/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* JavaScript variable name
|
|
6
|
+
* Used for dataLayer variable naming
|
|
7
|
+
*/
|
|
8
|
+
declare const JavaScriptVarName: z.ZodString;
|
|
9
|
+
/**
|
|
10
|
+
* Event prefix
|
|
11
|
+
* Used for filtering dataLayer events
|
|
12
|
+
*/
|
|
13
|
+
declare const EventPrefix: z.ZodString;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* DataLayer source settings schema
|
|
17
|
+
*/
|
|
18
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
20
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
21
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
type Settings$1 = z.infer<typeof SettingsSchema>;
|
|
24
|
+
|
|
25
|
+
declare const settings: _walkeros_core.JSONSchema;
|
|
26
|
+
|
|
27
|
+
declare const index$1_EventPrefix: typeof EventPrefix;
|
|
28
|
+
declare const index$1_JavaScriptVarName: typeof JavaScriptVarName;
|
|
29
|
+
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
30
|
+
declare const index$1_settings: typeof settings;
|
|
31
|
+
declare namespace index$1 {
|
|
32
|
+
export { index$1_EventPrefix as EventPrefix, index$1_JavaScriptVarName as JavaScriptVarName, type Settings$1 as Settings, index$1_SettingsSchema as SettingsSchema, index$1_settings as settings };
|
|
33
|
+
}
|
|
2
34
|
|
|
3
35
|
declare global {
|
|
4
36
|
interface Window {
|
|
@@ -7,7 +39,8 @@ declare global {
|
|
|
7
39
|
}
|
|
8
40
|
}
|
|
9
41
|
type DataLayer = Array<unknown>;
|
|
10
|
-
|
|
42
|
+
type BaseSettings = z.infer<typeof SettingsSchema>;
|
|
43
|
+
interface Settings extends Omit<BaseSettings, 'filter'> {
|
|
11
44
|
name?: string;
|
|
12
45
|
prefix?: string;
|
|
13
46
|
filter?: (event: unknown) => WalkerOS.PromiseOrValue<boolean>;
|
|
@@ -151,4 +184,4 @@ declare namespace mapping {
|
|
|
151
184
|
*/
|
|
152
185
|
declare const sourceDataLayer: Source.Init<Types>;
|
|
153
186
|
|
|
154
|
-
export { events as Events, mapping as Mapping, index as SourceDataLayer, consentOnlyMapping, consentUpdate$1 as consentUpdateEvent, config as dataLayerExamples, sourceDataLayer as default, env, sourceDataLayer };
|
|
187
|
+
export { events as Events, mapping as Mapping, index as SourceDataLayer, consentOnlyMapping, consentUpdate$1 as consentUpdateEvent, config as dataLayerExamples, sourceDataLayer as default, env, index$1 as schemas, sourceDataLayer };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _walkeros_core from '@walkeros/core';
|
|
2
|
+
import { z, Source, WalkerOS, Elb, Mapping as Mapping$1 } from '@walkeros/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* JavaScript variable name
|
|
6
|
+
* Used for dataLayer variable naming
|
|
7
|
+
*/
|
|
8
|
+
declare const JavaScriptVarName: z.ZodString;
|
|
9
|
+
/**
|
|
10
|
+
* Event prefix
|
|
11
|
+
* Used for filtering dataLayer events
|
|
12
|
+
*/
|
|
13
|
+
declare const EventPrefix: z.ZodString;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* DataLayer source settings schema
|
|
17
|
+
*/
|
|
18
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
20
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
21
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
type Settings$1 = z.infer<typeof SettingsSchema>;
|
|
24
|
+
|
|
25
|
+
declare const settings: _walkeros_core.JSONSchema;
|
|
26
|
+
|
|
27
|
+
declare const index$1_EventPrefix: typeof EventPrefix;
|
|
28
|
+
declare const index$1_JavaScriptVarName: typeof JavaScriptVarName;
|
|
29
|
+
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
30
|
+
declare const index$1_settings: typeof settings;
|
|
31
|
+
declare namespace index$1 {
|
|
32
|
+
export { index$1_EventPrefix as EventPrefix, index$1_JavaScriptVarName as JavaScriptVarName, type Settings$1 as Settings, index$1_SettingsSchema as SettingsSchema, index$1_settings as settings };
|
|
33
|
+
}
|
|
2
34
|
|
|
3
35
|
declare global {
|
|
4
36
|
interface Window {
|
|
@@ -7,7 +39,8 @@ declare global {
|
|
|
7
39
|
}
|
|
8
40
|
}
|
|
9
41
|
type DataLayer = Array<unknown>;
|
|
10
|
-
|
|
42
|
+
type BaseSettings = z.infer<typeof SettingsSchema>;
|
|
43
|
+
interface Settings extends Omit<BaseSettings, 'filter'> {
|
|
11
44
|
name?: string;
|
|
12
45
|
prefix?: string;
|
|
13
46
|
filter?: (event: unknown) => WalkerOS.PromiseOrValue<boolean>;
|
|
@@ -151,4 +184,4 @@ declare namespace mapping {
|
|
|
151
184
|
*/
|
|
152
185
|
declare const sourceDataLayer: Source.Init<Types>;
|
|
153
186
|
|
|
154
|
-
export { events as Events, mapping as Mapping, index as SourceDataLayer, consentOnlyMapping, consentUpdate$1 as consentUpdateEvent, config as dataLayerExamples, sourceDataLayer as default, env, sourceDataLayer };
|
|
187
|
+
export { events as Events, mapping as Mapping, index as SourceDataLayer, consentOnlyMapping, consentUpdate$1 as consentUpdateEvent, config as dataLayerExamples, sourceDataLayer as default, env, index$1 as schemas, sourceDataLayer };
|