@walkeros/web-destination-plausible 0.1.2 → 0.2.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/README.md +2 -2
- package/dist/examples/index.d.mts +25 -8
- package/dist/examples/index.d.ts +25 -8
- package/dist/examples/index.js +5429 -26
- package/dist/examples/index.mjs +5428 -26
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +68 -6
- package/dist/index.d.ts +68 -6
- 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/README.md
CHANGED
|
@@ -30,10 +30,10 @@ npm install @walkeros/web-destination-plausible
|
|
|
30
30
|
Here's a basic example of how to use the Plausible destination:
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
import {
|
|
33
|
+
import { startFlow } from '@walkeros/collector';
|
|
34
34
|
import { destinationPlausible } from '@walkeros/web-destination-plausible';
|
|
35
35
|
|
|
36
|
-
const { elb } = await
|
|
36
|
+
const { elb } = await startFlow();
|
|
37
37
|
|
|
38
38
|
elb('walker destination', destinationPlausible, {
|
|
39
39
|
settings: {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { WalkerOS, Mapping as Mapping$1 } from '@walkeros/core';
|
|
2
|
-
|
|
3
|
-
declare function purchase$1(): unknown[];
|
|
4
|
-
declare function customEvent$1(): unknown[];
|
|
5
|
-
|
|
6
|
-
declare namespace events {
|
|
7
|
-
export { customEvent$1 as customEvent, purchase$1 as purchase };
|
|
8
|
-
}
|
|
2
|
+
import { DestinationWeb } from '@walkeros/web-core';
|
|
9
3
|
|
|
10
4
|
declare global {
|
|
11
5
|
interface Window {
|
|
@@ -19,8 +13,31 @@ type Plausible = (event: string, options?: {
|
|
|
19
13
|
}) => void;
|
|
20
14
|
interface Mapping {
|
|
21
15
|
}
|
|
16
|
+
interface Env extends DestinationWeb.Env {
|
|
17
|
+
window: {
|
|
18
|
+
plausible: Plausible & {
|
|
19
|
+
q?: IArguments[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
22
23
|
type Rule = Mapping$1.Rule<Mapping>;
|
|
23
24
|
|
|
25
|
+
declare const init: Env | undefined;
|
|
26
|
+
declare const push: Env;
|
|
27
|
+
|
|
28
|
+
declare const env_init: typeof init;
|
|
29
|
+
declare const env_push: typeof push;
|
|
30
|
+
declare namespace env {
|
|
31
|
+
export { env_init as init, env_push as push };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare function purchase$1(): unknown[];
|
|
35
|
+
declare function customEvent$1(): unknown[];
|
|
36
|
+
|
|
37
|
+
declare namespace events {
|
|
38
|
+
export { customEvent$1 as customEvent, purchase$1 as purchase };
|
|
39
|
+
}
|
|
40
|
+
|
|
24
41
|
declare const customEvent: Rule;
|
|
25
42
|
declare const purchase: Rule;
|
|
26
43
|
declare const config: {
|
|
@@ -39,4 +56,4 @@ declare namespace mapping {
|
|
|
39
56
|
export { mapping_config as config, mapping_customEvent as customEvent, mapping_purchase as purchase };
|
|
40
57
|
}
|
|
41
58
|
|
|
42
|
-
export { events, mapping };
|
|
59
|
+
export { env, events, mapping };
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { WalkerOS, Mapping as Mapping$1 } from '@walkeros/core';
|
|
2
|
-
|
|
3
|
-
declare function purchase$1(): unknown[];
|
|
4
|
-
declare function customEvent$1(): unknown[];
|
|
5
|
-
|
|
6
|
-
declare namespace events {
|
|
7
|
-
export { customEvent$1 as customEvent, purchase$1 as purchase };
|
|
8
|
-
}
|
|
2
|
+
import { DestinationWeb } from '@walkeros/web-core';
|
|
9
3
|
|
|
10
4
|
declare global {
|
|
11
5
|
interface Window {
|
|
@@ -19,8 +13,31 @@ type Plausible = (event: string, options?: {
|
|
|
19
13
|
}) => void;
|
|
20
14
|
interface Mapping {
|
|
21
15
|
}
|
|
16
|
+
interface Env extends DestinationWeb.Env {
|
|
17
|
+
window: {
|
|
18
|
+
plausible: Plausible & {
|
|
19
|
+
q?: IArguments[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
22
23
|
type Rule = Mapping$1.Rule<Mapping>;
|
|
23
24
|
|
|
25
|
+
declare const init: Env | undefined;
|
|
26
|
+
declare const push: Env;
|
|
27
|
+
|
|
28
|
+
declare const env_init: typeof init;
|
|
29
|
+
declare const env_push: typeof push;
|
|
30
|
+
declare namespace env {
|
|
31
|
+
export { env_init as init, env_push as push };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare function purchase$1(): unknown[];
|
|
35
|
+
declare function customEvent$1(): unknown[];
|
|
36
|
+
|
|
37
|
+
declare namespace events {
|
|
38
|
+
export { customEvent$1 as customEvent, purchase$1 as purchase };
|
|
39
|
+
}
|
|
40
|
+
|
|
24
41
|
declare const customEvent: Rule;
|
|
25
42
|
declare const purchase: Rule;
|
|
26
43
|
declare const config: {
|
|
@@ -39,4 +56,4 @@ declare namespace mapping {
|
|
|
39
56
|
export { mapping_config as config, mapping_customEvent as customEvent, mapping_purchase as purchase };
|
|
40
57
|
}
|
|
41
58
|
|
|
42
|
-
export { events, mapping };
|
|
59
|
+
export { env, events, mapping };
|