@walkeros/web-destination-clarity 3.3.1 → 3.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/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.js +4 -4
- package/dist/examples/index.mjs +4 -4
- package/dist/walkerOS.json +15 -13
- package/package.json +3 -3
package/dist/examples/index.js
CHANGED
|
@@ -87,9 +87,9 @@ var c = {};
|
|
|
87
87
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
88
88
|
})(c, { Level: () => u });
|
|
89
89
|
var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
|
|
90
|
-
var
|
|
90
|
+
var W = { merge: true, shallow: true, extend: true };
|
|
91
91
|
function L(e2, t = {}, n = {}) {
|
|
92
|
-
n = { ...
|
|
92
|
+
n = { ...W, ...n };
|
|
93
93
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
94
94
|
const i = e2[o2];
|
|
95
95
|
return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
|
|
@@ -98,7 +98,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
98
98
|
}
|
|
99
99
|
function fe(e2 = {}) {
|
|
100
100
|
var _a;
|
|
101
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.
|
|
101
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
102
102
|
if (e2.name) {
|
|
103
103
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
104
104
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -113,7 +113,7 @@ function le(e2 = "entity action", t = {}) {
|
|
|
113
113
|
// src/examples/step.ts
|
|
114
114
|
var defaultEventForwarding = {
|
|
115
115
|
in: le("product view", { timestamp: 1700000100 }),
|
|
116
|
-
out: ["clarity.event", "product view"]
|
|
116
|
+
out: [["clarity.event", "product view"]]
|
|
117
117
|
};
|
|
118
118
|
var wildcardIgnored = {
|
|
119
119
|
in: le("debug noise", { timestamp: 1700000101 }),
|
package/dist/examples/index.mjs
CHANGED
|
@@ -66,9 +66,9 @@ var c = {};
|
|
|
66
66
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
67
67
|
})(c, { Level: () => u });
|
|
68
68
|
var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
|
|
69
|
-
var
|
|
69
|
+
var W = { merge: true, shallow: true, extend: true };
|
|
70
70
|
function L(e2, t = {}, n = {}) {
|
|
71
|
-
n = { ...
|
|
71
|
+
n = { ...W, ...n };
|
|
72
72
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
73
73
|
const i = e2[o2];
|
|
74
74
|
return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
|
|
@@ -77,7 +77,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
77
77
|
}
|
|
78
78
|
function fe(e2 = {}) {
|
|
79
79
|
var _a;
|
|
80
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.
|
|
80
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
81
81
|
if (e2.name) {
|
|
82
82
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
83
83
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -92,7 +92,7 @@ function le(e2 = "entity action", t = {}) {
|
|
|
92
92
|
// src/examples/step.ts
|
|
93
93
|
var defaultEventForwarding = {
|
|
94
94
|
in: le("product view", { timestamp: 1700000100 }),
|
|
95
|
-
out: ["clarity.event", "product view"]
|
|
95
|
+
out: [["clarity.event", "product view"]]
|
|
96
96
|
};
|
|
97
97
|
var wildcardIgnored = {
|
|
98
98
|
in: le("debug noise", { timestamp: 1700000101 }),
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-clarity",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"group": "gr0up",
|
|
160
160
|
"count": 1,
|
|
161
161
|
"version": {
|
|
162
|
-
"source": "3.
|
|
162
|
+
"source": "3.4.0",
|
|
163
163
|
"tagging": 1
|
|
164
164
|
},
|
|
165
165
|
"source": {
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"group": "gr0up",
|
|
280
280
|
"count": 1,
|
|
281
281
|
"version": {
|
|
282
|
-
"source": "3.
|
|
282
|
+
"source": "3.4.0",
|
|
283
283
|
"tagging": 1
|
|
284
284
|
},
|
|
285
285
|
"source": {
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
"group": "gr0up",
|
|
411
411
|
"count": 1,
|
|
412
412
|
"version": {
|
|
413
|
-
"source": "3.
|
|
413
|
+
"source": "3.4.0",
|
|
414
414
|
"tagging": 1
|
|
415
415
|
},
|
|
416
416
|
"source": {
|
|
@@ -420,8 +420,10 @@
|
|
|
420
420
|
}
|
|
421
421
|
},
|
|
422
422
|
"out": [
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
[
|
|
424
|
+
"clarity.event",
|
|
425
|
+
"product view"
|
|
426
|
+
]
|
|
425
427
|
]
|
|
426
428
|
},
|
|
427
429
|
"destinationLevelIdentify": {
|
|
@@ -479,7 +481,7 @@
|
|
|
479
481
|
"group": "gr0up",
|
|
480
482
|
"count": 1,
|
|
481
483
|
"version": {
|
|
482
|
-
"source": "3.
|
|
484
|
+
"source": "3.4.0",
|
|
483
485
|
"tagging": 1
|
|
484
486
|
},
|
|
485
487
|
"source": {
|
|
@@ -593,7 +595,7 @@
|
|
|
593
595
|
"group": "gr0up",
|
|
594
596
|
"count": 1,
|
|
595
597
|
"version": {
|
|
596
|
-
"source": "3.
|
|
598
|
+
"source": "3.4.0",
|
|
597
599
|
"tagging": 1
|
|
598
600
|
},
|
|
599
601
|
"source": {
|
|
@@ -726,7 +728,7 @@
|
|
|
726
728
|
"group": "gr0up",
|
|
727
729
|
"count": 1,
|
|
728
730
|
"version": {
|
|
729
|
-
"source": "3.
|
|
731
|
+
"source": "3.4.0",
|
|
730
732
|
"tagging": 1
|
|
731
733
|
},
|
|
732
734
|
"source": {
|
|
@@ -809,7 +811,7 @@
|
|
|
809
811
|
"group": "gr0up",
|
|
810
812
|
"count": 1,
|
|
811
813
|
"version": {
|
|
812
|
-
"source": "3.
|
|
814
|
+
"source": "3.4.0",
|
|
813
815
|
"tagging": 1
|
|
814
816
|
},
|
|
815
817
|
"source": {
|
|
@@ -876,7 +878,7 @@
|
|
|
876
878
|
"group": "gr0up",
|
|
877
879
|
"count": 1,
|
|
878
880
|
"version": {
|
|
879
|
-
"source": "3.
|
|
881
|
+
"source": "3.4.0",
|
|
880
882
|
"tagging": 1
|
|
881
883
|
},
|
|
882
884
|
"source": {
|
|
@@ -964,7 +966,7 @@
|
|
|
964
966
|
"group": "gr0up",
|
|
965
967
|
"count": 1,
|
|
966
968
|
"version": {
|
|
967
|
-
"source": "3.
|
|
969
|
+
"source": "3.4.0",
|
|
968
970
|
"tagging": 1
|
|
969
971
|
},
|
|
970
972
|
"source": {
|
|
@@ -1056,7 +1058,7 @@
|
|
|
1056
1058
|
"group": "gr0up",
|
|
1057
1059
|
"count": 1,
|
|
1058
1060
|
"version": {
|
|
1059
|
-
"source": "3.
|
|
1061
|
+
"source": "3.4.0",
|
|
1060
1062
|
"tagging": 1
|
|
1061
1063
|
},
|
|
1062
1064
|
"source": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-clarity",
|
|
3
3
|
"description": "Microsoft Clarity web destination for walkerOS (session replay, heatmaps, smart events)",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@microsoft/clarity": "^1.0.2",
|
|
41
|
-
"@walkeros/web-core": "3.
|
|
41
|
+
"@walkeros/web-core": "3.4.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@walkeros/collector": "3.
|
|
44
|
+
"@walkeros/collector": "3.4.0"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|