@jx3box/jx3box-ui 2.4.11 → 2.4.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.4.11",
3
+ "version": "2.4.12",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@element-plus/icons-vue": "^2.3.2",
37
- "@jx3box/jx3box-common": "^9.5.9",
37
+ "@jx3box/jx3box-common": "^9.5.11",
38
38
  "@jx3box/jx3box-data": "^3.9.9",
39
39
  "@jx3box/jx3box-editor": "^3.2.13",
40
40
  "@jx3box/jx3box-emotion": "^1.3.2",
@@ -0,0 +1,150 @@
1
+ {
2
+ "fixture_version": "analytics-dual-sink-v1",
3
+ "privacy_assertions": {
4
+ "payload_fields_that_must_be_absent": [
5
+ "query",
6
+ "hash",
7
+ "full_url",
8
+ "fullPath",
9
+ "href",
10
+ "location"
11
+ ],
12
+ "route_context_is_template_or_sanitized_path_only": true
13
+ },
14
+ "canonical_event": {
15
+ "schema_version": 1,
16
+ "event_id": "canonical-page-view-0001",
17
+ "instance_id": "instance-fixture-0001",
18
+ "session_id": "session-fixture-0001",
19
+ "sequence_no": 1,
20
+ "page_view_id": "page-view-fixture-0001",
21
+ "occurred_at": "2026-08-26T01:20:30.000Z",
22
+ "timezone_offset": -480,
23
+ "event_type": "page_view",
24
+ "event_name": "page_view",
25
+ "page_key": "index.home",
26
+ "route_name": "index",
27
+ "route_pattern": "/index/:section?",
28
+ "route_path": "/index",
29
+ "navigation_type": "router",
30
+ "is_entry": true,
31
+ "layout_version": "index-2026-08",
32
+ "public_target": {
33
+ "key": "section",
34
+ "type": "section",
35
+ "id": "home"
36
+ },
37
+ "product": "jx3box",
38
+ "project": "index",
39
+ "client": "web",
40
+ "surface": "pc_web",
41
+ "game_client": "std",
42
+ "platform": "web",
43
+ "domain": "www.jx3box.com",
44
+ "referrer_domain": "ref.example",
45
+ "display_mode": "browser",
46
+ "sample_rate": 1
47
+ },
48
+ "traffic_finalization": {
49
+ "duration_ms": 32000,
50
+ "is_exit": true
51
+ },
52
+ "tracking": {
53
+ "request": {
54
+ "schema_version": 1,
55
+ "sdk_version": "1.1.0",
56
+ "events": [
57
+ {
58
+ "schema_version": 1,
59
+ "event_id": "canonical-page-view-0001",
60
+ "instance_id": "instance-fixture-0001",
61
+ "session_id": "session-fixture-0001",
62
+ "sequence_no": 1,
63
+ "page_view_id": "page-view-fixture-0001",
64
+ "occurred_at": "2026-08-26T01:20:30.000Z",
65
+ "timezone_offset": -480,
66
+ "event_type": "page_view",
67
+ "event_name": "page_view",
68
+ "page_key": "index.home",
69
+ "route_name": "index",
70
+ "route_pattern": "/index/:section?",
71
+ "route_path": "/index",
72
+ "navigation_type": "router",
73
+ "is_entry": true,
74
+ "layout_version": "index-2026-08",
75
+ "public_target": {
76
+ "key": "section",
77
+ "type": "section",
78
+ "id": "home"
79
+ },
80
+ "product": "jx3box",
81
+ "project": "index",
82
+ "client": "web",
83
+ "surface": "pc_web",
84
+ "game_client": "std",
85
+ "platform": "web",
86
+ "domain": "www.jx3box.com",
87
+ "referrer_domain": "ref.example",
88
+ "display_mode": "browser",
89
+ "sample_rate": 1
90
+ }
91
+ ]
92
+ },
93
+ "response": {
94
+ "code": 0,
95
+ "data": {
96
+ "items": [
97
+ {
98
+ "event_id": "canonical-page-view-0001",
99
+ "status": "accepted"
100
+ }
101
+ ],
102
+ "blocked": null,
103
+ "rule_version": "tracking-2026-08-26"
104
+ }
105
+ }
106
+ },
107
+ "traffic": {
108
+ "request": {
109
+ "instance_id": "instance-fixture-0001",
110
+ "session_id": "session-fixture-0001",
111
+ "surface": "pc_web",
112
+ "domain": "www.jx3box.com",
113
+ "game_client": "std",
114
+ "entry_source": {
115
+ "referrer": "https://ref.example/"
116
+ },
117
+ "events": [
118
+ {
119
+ "event_id": "canonical-page-view-0001",
120
+ "occurred_at": "2026-08-26T01:20:30.000Z",
121
+ "project": "index",
122
+ "path": "/index",
123
+ "route_pattern": "/index/:section?",
124
+ "page_key": "index.home",
125
+ "target": {
126
+ "type": "section",
127
+ "id": "home"
128
+ },
129
+ "sequence": 1,
130
+ "is_entry": true,
131
+ "is_exit": true,
132
+ "duration_ms": 32000
133
+ }
134
+ ]
135
+ },
136
+ "response": {
137
+ "code": 0,
138
+ "data": {
139
+ "items": [
140
+ {
141
+ "event_id": "canonical-page-view-0001",
142
+ "status": "duplicate"
143
+ }
144
+ ],
145
+ "blocked": null,
146
+ "rule_version": "traffic-2026-08-26"
147
+ }
148
+ }
149
+ }
150
+ }
@@ -18,7 +18,7 @@ require("@babel/register")({
18
18
  const assert = require("node:assert/strict");
19
19
  const fs = require("node:fs");
20
20
  const { test } = require("node:test");
21
- const fixture = require("@jx3box/jx3box-common/docs/fixtures/analytics-dual-sink-v1.json");
21
+ const fixture = require("./fixtures/analytics-dual-sink-v1.json");
22
22
  const SHARED_ANALYTICS_QUEUE_STORAGE_KEY = "jx3box:analytics:queue:v1";
23
23
  const { createEventQueue, createQueueStorage, createTrafficSink } = require("@jx3box/jx3box-common/js/analytics.js");
24
24
  const {