@walkeros/web-destination-plausible 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/examples/index.js +12552 -5011
- package/dist/examples/index.mjs +12552 -5011
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +48 -60
- package/dist/index.d.ts +48 -60
- 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 +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _walkeros_core from '@walkeros/core';
|
|
2
|
+
import { WalkerOS, Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
4
|
|
|
4
5
|
declare global {
|
|
@@ -11,10 +12,10 @@ declare global {
|
|
|
11
12
|
type Plausible = (event: string, options?: {
|
|
12
13
|
props?: WalkerOS.AnyObject;
|
|
13
14
|
}) => void;
|
|
14
|
-
interface Settings {
|
|
15
|
+
interface Settings$1 {
|
|
15
16
|
domain?: string;
|
|
16
17
|
}
|
|
17
|
-
interface Mapping {
|
|
18
|
+
interface Mapping$1 {
|
|
18
19
|
}
|
|
19
20
|
interface Env extends DestinationWeb.Env {
|
|
20
21
|
window: {
|
|
@@ -23,27 +24,25 @@ interface Env extends DestinationWeb.Env {
|
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
type Types = Destination$1.Types<Settings, Mapping, Env>;
|
|
27
|
+
type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
|
|
27
28
|
type Destination = DestinationWeb.Destination<Types>;
|
|
28
29
|
type Config = DestinationWeb.Config<Types>;
|
|
29
30
|
interface PlausibleDestination extends Destination {
|
|
30
31
|
env?: Env;
|
|
31
32
|
}
|
|
32
|
-
type Rule = Mapping$
|
|
33
|
-
type Rules = Mapping$
|
|
33
|
+
type Rule = Mapping$2.Rule<Mapping$1>;
|
|
34
|
+
type Rules = Mapping$2.Rules<Rule>;
|
|
34
35
|
|
|
35
|
-
type index$
|
|
36
|
-
type index$
|
|
37
|
-
type index$
|
|
38
|
-
type index$
|
|
39
|
-
type index$
|
|
40
|
-
type index$
|
|
41
|
-
type index$
|
|
42
|
-
type index$
|
|
43
|
-
|
|
44
|
-
type index$
|
|
45
|
-
declare namespace index$1 {
|
|
46
|
-
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_Mapping as Mapping, index$1_Plausible as Plausible, index$1_PlausibleDestination as PlausibleDestination, index$1_Rule as Rule, index$1_Rules as Rules, index$1_Settings as Settings, index$1_Types as Types };
|
|
36
|
+
type index$2_Config = Config;
|
|
37
|
+
type index$2_Destination = Destination;
|
|
38
|
+
type index$2_Env = Env;
|
|
39
|
+
type index$2_Plausible = Plausible;
|
|
40
|
+
type index$2_PlausibleDestination = PlausibleDestination;
|
|
41
|
+
type index$2_Rule = Rule;
|
|
42
|
+
type index$2_Rules = Rules;
|
|
43
|
+
type index$2_Types = Types;
|
|
44
|
+
declare namespace index$2 {
|
|
45
|
+
export type { index$2_Config as Config, index$2_Destination as Destination, index$2_Env as Env, Mapping$1 as Mapping, index$2_Plausible as Plausible, index$2_PlausibleDestination as PlausibleDestination, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_Types as Types };
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
declare const init: Env | undefined;
|
|
@@ -73,58 +72,47 @@ declare const config: {
|
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
|
|
76
|
-
declare const
|
|
77
|
-
declare const
|
|
78
|
-
declare const
|
|
79
|
-
declare namespace mapping {
|
|
80
|
-
export {
|
|
75
|
+
declare const mapping$1_config: typeof config;
|
|
76
|
+
declare const mapping$1_customEvent: typeof customEvent;
|
|
77
|
+
declare const mapping$1_purchase: typeof purchase;
|
|
78
|
+
declare namespace mapping$1 {
|
|
79
|
+
export { mapping$1_config as config, mapping$1_customEvent as customEvent, mapping$1_purchase as purchase };
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
declare const
|
|
84
|
-
declare const
|
|
85
|
-
declare
|
|
86
|
-
|
|
87
|
-
export { index_env as env, index_events as events, index_mapping as mapping };
|
|
82
|
+
declare const index$1_env: typeof env;
|
|
83
|
+
declare const index$1_events: typeof events;
|
|
84
|
+
declare namespace index$1 {
|
|
85
|
+
export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
|
|
88
86
|
}
|
|
89
87
|
|
|
88
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
89
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
92
|
+
|
|
90
93
|
/**
|
|
91
|
-
*
|
|
92
|
-
|
|
93
|
-
type UiSchema = Record<string, unknown>;
|
|
94
|
-
/**
|
|
95
|
-
* RJSF schema for Plausible config-level settings
|
|
96
|
-
* Matches Settings interface in types/index.ts
|
|
97
|
-
*
|
|
98
|
-
* @see {@link Settings} in types/index.ts
|
|
99
|
-
*/
|
|
100
|
-
declare const settingsSchema: JSONSchema;
|
|
101
|
-
/**
|
|
102
|
-
* UI Schema for Plausible settings
|
|
103
|
-
*/
|
|
104
|
-
declare const settingsUiSchema: UiSchema;
|
|
105
|
-
/**
|
|
106
|
-
* RJSF schema for Plausible rule-level mapping settings
|
|
107
|
-
* Matches Mapping interface in types/index.ts
|
|
108
|
-
*
|
|
109
|
-
* Note: Plausible has an empty Mapping interface, so no rule-level settings
|
|
110
|
-
*
|
|
111
|
-
* @see {@link Mapping} in types/index.ts
|
|
94
|
+
* Plausible Mapping Schema
|
|
95
|
+
* Plausible has no event-level mapping configuration
|
|
112
96
|
*/
|
|
113
|
-
declare const
|
|
97
|
+
declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
|
|
114
98
|
/**
|
|
115
|
-
*
|
|
99
|
+
* Type inference from MappingSchema
|
|
116
100
|
*/
|
|
117
|
-
|
|
101
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
118
102
|
|
|
119
|
-
|
|
120
|
-
declare const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
declare const
|
|
124
|
-
|
|
125
|
-
|
|
103
|
+
declare const settings: _walkeros_core.JSONSchema;
|
|
104
|
+
declare const mapping: _walkeros_core.JSONSchema;
|
|
105
|
+
|
|
106
|
+
type index_Mapping = Mapping;
|
|
107
|
+
declare const index_MappingSchema: typeof MappingSchema;
|
|
108
|
+
type index_Settings = Settings;
|
|
109
|
+
declare const index_SettingsSchema: typeof SettingsSchema;
|
|
110
|
+
declare const index_mapping: typeof mapping;
|
|
111
|
+
declare const index_settings: typeof settings;
|
|
112
|
+
declare namespace index {
|
|
113
|
+
export { type index_Mapping as Mapping, index_MappingSchema as MappingSchema, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_mapping as mapping, index_settings as settings };
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
declare const destinationPlausible: Destination;
|
|
129
117
|
|
|
130
|
-
export { index$
|
|
118
|
+
export { index$2 as DestinationPlausible, destinationPlausible as default, destinationPlausible, index$1 as examples, index as schemas };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _walkeros_core from '@walkeros/core';
|
|
2
|
+
import { WalkerOS, Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
4
|
|
|
4
5
|
declare global {
|
|
@@ -11,10 +12,10 @@ declare global {
|
|
|
11
12
|
type Plausible = (event: string, options?: {
|
|
12
13
|
props?: WalkerOS.AnyObject;
|
|
13
14
|
}) => void;
|
|
14
|
-
interface Settings {
|
|
15
|
+
interface Settings$1 {
|
|
15
16
|
domain?: string;
|
|
16
17
|
}
|
|
17
|
-
interface Mapping {
|
|
18
|
+
interface Mapping$1 {
|
|
18
19
|
}
|
|
19
20
|
interface Env extends DestinationWeb.Env {
|
|
20
21
|
window: {
|
|
@@ -23,27 +24,25 @@ interface Env extends DestinationWeb.Env {
|
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
type Types = Destination$1.Types<Settings, Mapping, Env>;
|
|
27
|
+
type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
|
|
27
28
|
type Destination = DestinationWeb.Destination<Types>;
|
|
28
29
|
type Config = DestinationWeb.Config<Types>;
|
|
29
30
|
interface PlausibleDestination extends Destination {
|
|
30
31
|
env?: Env;
|
|
31
32
|
}
|
|
32
|
-
type Rule = Mapping$
|
|
33
|
-
type Rules = Mapping$
|
|
33
|
+
type Rule = Mapping$2.Rule<Mapping$1>;
|
|
34
|
+
type Rules = Mapping$2.Rules<Rule>;
|
|
34
35
|
|
|
35
|
-
type index$
|
|
36
|
-
type index$
|
|
37
|
-
type index$
|
|
38
|
-
type index$
|
|
39
|
-
type index$
|
|
40
|
-
type index$
|
|
41
|
-
type index$
|
|
42
|
-
type index$
|
|
43
|
-
|
|
44
|
-
type index$
|
|
45
|
-
declare namespace index$1 {
|
|
46
|
-
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_Mapping as Mapping, index$1_Plausible as Plausible, index$1_PlausibleDestination as PlausibleDestination, index$1_Rule as Rule, index$1_Rules as Rules, index$1_Settings as Settings, index$1_Types as Types };
|
|
36
|
+
type index$2_Config = Config;
|
|
37
|
+
type index$2_Destination = Destination;
|
|
38
|
+
type index$2_Env = Env;
|
|
39
|
+
type index$2_Plausible = Plausible;
|
|
40
|
+
type index$2_PlausibleDestination = PlausibleDestination;
|
|
41
|
+
type index$2_Rule = Rule;
|
|
42
|
+
type index$2_Rules = Rules;
|
|
43
|
+
type index$2_Types = Types;
|
|
44
|
+
declare namespace index$2 {
|
|
45
|
+
export type { index$2_Config as Config, index$2_Destination as Destination, index$2_Env as Env, Mapping$1 as Mapping, index$2_Plausible as Plausible, index$2_PlausibleDestination as PlausibleDestination, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_Types as Types };
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
declare const init: Env | undefined;
|
|
@@ -73,58 +72,47 @@ declare const config: {
|
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
|
|
76
|
-
declare const
|
|
77
|
-
declare const
|
|
78
|
-
declare const
|
|
79
|
-
declare namespace mapping {
|
|
80
|
-
export {
|
|
75
|
+
declare const mapping$1_config: typeof config;
|
|
76
|
+
declare const mapping$1_customEvent: typeof customEvent;
|
|
77
|
+
declare const mapping$1_purchase: typeof purchase;
|
|
78
|
+
declare namespace mapping$1 {
|
|
79
|
+
export { mapping$1_config as config, mapping$1_customEvent as customEvent, mapping$1_purchase as purchase };
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
declare const
|
|
84
|
-
declare const
|
|
85
|
-
declare
|
|
86
|
-
|
|
87
|
-
export { index_env as env, index_events as events, index_mapping as mapping };
|
|
82
|
+
declare const index$1_env: typeof env;
|
|
83
|
+
declare const index$1_events: typeof events;
|
|
84
|
+
declare namespace index$1 {
|
|
85
|
+
export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
|
|
88
86
|
}
|
|
89
87
|
|
|
88
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
89
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
92
|
+
|
|
90
93
|
/**
|
|
91
|
-
*
|
|
92
|
-
|
|
93
|
-
type UiSchema = Record<string, unknown>;
|
|
94
|
-
/**
|
|
95
|
-
* RJSF schema for Plausible config-level settings
|
|
96
|
-
* Matches Settings interface in types/index.ts
|
|
97
|
-
*
|
|
98
|
-
* @see {@link Settings} in types/index.ts
|
|
99
|
-
*/
|
|
100
|
-
declare const settingsSchema: JSONSchema;
|
|
101
|
-
/**
|
|
102
|
-
* UI Schema for Plausible settings
|
|
103
|
-
*/
|
|
104
|
-
declare const settingsUiSchema: UiSchema;
|
|
105
|
-
/**
|
|
106
|
-
* RJSF schema for Plausible rule-level mapping settings
|
|
107
|
-
* Matches Mapping interface in types/index.ts
|
|
108
|
-
*
|
|
109
|
-
* Note: Plausible has an empty Mapping interface, so no rule-level settings
|
|
110
|
-
*
|
|
111
|
-
* @see {@link Mapping} in types/index.ts
|
|
94
|
+
* Plausible Mapping Schema
|
|
95
|
+
* Plausible has no event-level mapping configuration
|
|
112
96
|
*/
|
|
113
|
-
declare const
|
|
97
|
+
declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
|
|
114
98
|
/**
|
|
115
|
-
*
|
|
99
|
+
* Type inference from MappingSchema
|
|
116
100
|
*/
|
|
117
|
-
|
|
101
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
118
102
|
|
|
119
|
-
|
|
120
|
-
declare const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
declare const
|
|
124
|
-
|
|
125
|
-
|
|
103
|
+
declare const settings: _walkeros_core.JSONSchema;
|
|
104
|
+
declare const mapping: _walkeros_core.JSONSchema;
|
|
105
|
+
|
|
106
|
+
type index_Mapping = Mapping;
|
|
107
|
+
declare const index_MappingSchema: typeof MappingSchema;
|
|
108
|
+
type index_Settings = Settings;
|
|
109
|
+
declare const index_SettingsSchema: typeof SettingsSchema;
|
|
110
|
+
declare const index_mapping: typeof mapping;
|
|
111
|
+
declare const index_settings: typeof settings;
|
|
112
|
+
declare namespace index {
|
|
113
|
+
export { type index_Mapping as Mapping, index_MappingSchema as MappingSchema, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_mapping as mapping, index_settings as settings };
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
declare const destinationPlausible: Destination;
|
|
129
117
|
|
|
130
|
-
export { index$
|
|
118
|
+
export { index$2 as DestinationPlausible, destinationPlausible as default, destinationPlausible, index$1 as examples, index as schemas };
|