@dotcms/analytics 1.0.2-next.2 → 1.0.2-next.4
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 +3 -3
- package/package.json +22 -5
package/README.md
CHANGED
|
@@ -11,9 +11,9 @@ Lightweight JavaScript SDK for tracking content-aware events in dotCMS. Works in
|
|
|
11
11
|
```html
|
|
12
12
|
<script
|
|
13
13
|
src="ca.min.js"
|
|
14
|
-
data-
|
|
15
|
-
data-
|
|
16
|
-
data-
|
|
14
|
+
data-server="https://demo.dotcms.com"
|
|
15
|
+
data-site-key="SITE_KEY"
|
|
16
|
+
data-auto-page-view></script>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
**npm (ES Module)**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/analytics",
|
|
3
|
-
"version": "1.0.2-next.
|
|
3
|
+
"version": "1.0.2-next.4",
|
|
4
4
|
"description": "Official JavaScript library for Content Analytics with DotCMS.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/dotCMS/core/tree/main/core-web/libs/sdk/analytics/README.md",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"analytics": "^0.8.14"
|
|
23
|
+
"analytics": "^0.8.14",
|
|
24
|
+
"@analytics/core": "^0.8.14",
|
|
25
|
+
"@analytics/storage-utils": "^0.8.14"
|
|
24
26
|
},
|
|
25
27
|
"peerDependencies": {
|
|
26
28
|
"react": "^18",
|
|
@@ -31,12 +33,27 @@
|
|
|
31
33
|
"@testing-library/react": "^14.0.0",
|
|
32
34
|
"vite": "~5.0.0"
|
|
33
35
|
},
|
|
34
|
-
"main": "./index.
|
|
35
|
-
"module": "./index.
|
|
36
|
+
"main": "./index.js",
|
|
37
|
+
"module": "./index.js",
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"typesVersions": {
|
|
40
|
+
"*": {
|
|
41
|
+
"react": [
|
|
42
|
+
"react/index.d.ts"
|
|
43
|
+
],
|
|
44
|
+
"*": [
|
|
45
|
+
"index.d.ts"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
36
49
|
"exports": {
|
|
50
|
+
".": {
|
|
51
|
+
"import": "./index.js",
|
|
52
|
+
"types": "./index.d.ts"
|
|
53
|
+
},
|
|
37
54
|
"./react": {
|
|
38
55
|
"import": "./react/index.js",
|
|
39
|
-
"types": "./
|
|
56
|
+
"types": "./react/index.d.ts"
|
|
40
57
|
}
|
|
41
58
|
}
|
|
42
59
|
}
|