@xhub-short/sdk 0.1.0-beta.6 → 0.1.0-beta.7
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/index.d.ts +10 -0
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1373,6 +1373,16 @@ interface SDKConfig {
|
|
|
1373
1373
|
* endpoints: {
|
|
1374
1374
|
* feed: { list: '/videos', detail: '/videos/:id' },
|
|
1375
1375
|
* interaction: { like: '/videos/:id/like', ... },
|
|
1376
|
+
* // View tracking (per-video) - optional
|
|
1377
|
+
* viewTracking: {
|
|
1378
|
+
* notify: '/reels/:id/notify-views',
|
|
1379
|
+
* },
|
|
1380
|
+
* },
|
|
1381
|
+
* // View tracking behavior config (optional)
|
|
1382
|
+
* viewTracking: {
|
|
1383
|
+
* viewEventValue: 'seek',
|
|
1384
|
+
* heartbeatInterval: 10000,
|
|
1385
|
+
* minWatchTime: 3,
|
|
1376
1386
|
* },
|
|
1377
1387
|
* },
|
|
1378
1388
|
* }}>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xhub-short/sdk",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@xhub-short/adapters": "0.1.0-beta.
|
|
24
|
-
"@xhub-short/
|
|
25
|
-
"@xhub-short/
|
|
26
|
-
"@xhub-short/ui": "0.1.0-beta.
|
|
23
|
+
"@xhub-short/adapters": "0.1.0-beta.7",
|
|
24
|
+
"@xhub-short/contracts": "0.1.0-beta.7",
|
|
25
|
+
"@xhub-short/core": "0.1.0-beta.7",
|
|
26
|
+
"@xhub-short/ui": "0.1.0-beta.7"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@xhub-short/bridge": "0.0.1-beta.
|
|
29
|
+
"@xhub-short/bridge": "0.0.1-beta.7"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^19.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "^5.7.0",
|
|
44
44
|
"vitest": "^2.1.0",
|
|
45
45
|
"@xhub-short/tsconfig": "0.0.0",
|
|
46
|
-
"@xhub-short/vitest-config": "0.0.1-beta.
|
|
46
|
+
"@xhub-short/vitest-config": "0.0.1-beta.6"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup",
|