@lowdefy/plugin-posthog 0.0.0-experimental-20261006165558 → 0.0.0-experimental-20261007124348
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/lib/enrichEvent.js
CHANGED
|
@@ -22,7 +22,10 @@ const AUTOCAPTURE_EVENTS = [
|
|
|
22
22
|
'$dead_click'
|
|
23
23
|
];
|
|
24
24
|
// The lowdefy_* properties of a described target. Null, false and empty values are left out, so
|
|
25
|
-
// an event only carries what it says.
|
|
25
|
+
// an event only carries what it says. `lowdefy_text` is the text of the control the click reached
|
|
26
|
+
// (the button, menu item, option or label), as the dev recorder reads it; `$el_text` is only the
|
|
27
|
+
// clicked element's, which a click on a wrapper or a child leaves empty or different. It is a
|
|
28
|
+
// text property, so maskEventText removes it like `$el_text` when it is not config text.
|
|
26
29
|
function targetProperties(target) {
|
|
27
30
|
const properties = {
|
|
28
31
|
lowdefy_page_id: target.page_id,
|
|
@@ -31,7 +34,8 @@ function targetProperties(target) {
|
|
|
31
34
|
lowdefy_row: target.row,
|
|
32
35
|
lowdefy_column: target.column,
|
|
33
36
|
lowdefy_block_ids: target.block_ids,
|
|
34
|
-
lowdefy_option: target.option
|
|
37
|
+
lowdefy_option: target.option,
|
|
38
|
+
lowdefy_text: target.text
|
|
35
39
|
};
|
|
36
40
|
return Object.fromEntries(Object.entries(properties).filter(([, value])=>!type.isNone(value) && value !== false && !(type.isArray(value) && value.length === 0)));
|
|
37
41
|
}
|
|
@@ -63,7 +63,8 @@ const ELEMENT_HREF_KEYS = new Set([
|
|
|
63
63
|
const TEXT_PROPERTIES = [
|
|
64
64
|
'$el_text',
|
|
65
65
|
'$selected_content',
|
|
66
|
-
'$external_click_url'
|
|
66
|
+
'$external_click_url',
|
|
67
|
+
'lowdefy_text'
|
|
67
68
|
];
|
|
68
69
|
function isBlockWrapperId(value) {
|
|
69
70
|
return type.isString(value) && value.startsWith(blockWrapperPrefix);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/plugin-posthog",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20261007124348",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy PostHog product analytics plugin: initialise posthog-js, capture events, identify people and groups, manage consent and read feature flags.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"dist/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
40
|
+
"@lowdefy/helpers": "0.0.0-experimental-20261007124348",
|
|
41
41
|
"posthog-js": "1.434.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "28.1.3",
|
|
45
|
-
"@lowdefy/block-dev-e2e": "0.0.0-experimental-
|
|
46
|
-
"@lowdefy/e2e-utils": "0.0.0-experimental-
|
|
47
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
45
|
+
"@lowdefy/block-dev-e2e": "0.0.0-experimental-20261007124348",
|
|
46
|
+
"@lowdefy/e2e-utils": "0.0.0-experimental-20261007124348",
|
|
47
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20261007124348",
|
|
48
48
|
"@playwright/test": "1.59.1",
|
|
49
49
|
"@swc/cli": "0.8.1",
|
|
50
50
|
"@swc/core": "1.15.32",
|