player-map 2.0.12 → 2.0.13
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.es.js +5 -4
- package/dist/index.umd.js +2 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -6625,6 +6625,7 @@ const Tve = (n) => {
|
|
|
6625
6625
|
subject_id
|
|
6626
6626
|
object {
|
|
6627
6627
|
term_id
|
|
6628
|
+
label
|
|
6628
6629
|
data
|
|
6629
6630
|
image
|
|
6630
6631
|
}
|
|
@@ -6643,15 +6644,15 @@ const Tve = (n) => {
|
|
|
6643
6644
|
})
|
|
6644
6645
|
})).json();
|
|
6645
6646
|
return o.errors ? (console.error("GraphQL errors (fetchAliasesByWalletPosition):", o.errors), []) : (((r = o.data) == null ? void 0 : r.triples) || []).map((u) => {
|
|
6646
|
-
var d, p, f, m, v, y;
|
|
6647
|
+
var d, p, f, m, v, y, g;
|
|
6647
6648
|
const c = ((d = u.object) == null ? void 0 : d.image) ?? void 0, h = c ? ro(c) ? ol(c) : c : void 0;
|
|
6648
6649
|
return {
|
|
6649
6650
|
tripleId: u.term_id,
|
|
6650
6651
|
subjectId: u.subject_id ?? "",
|
|
6651
|
-
pseudo: ((p = u.object) == null ? void 0 : p.data)
|
|
6652
|
-
atomId: ((
|
|
6652
|
+
pseudo: ((p = u.object) == null ? void 0 : p.label) || ((f = u.object) == null ? void 0 : f.data) || "",
|
|
6653
|
+
atomId: ((m = u.object) == null ? void 0 : m.term_id) ?? "",
|
|
6653
6654
|
image: h,
|
|
6654
|
-
userPosition: (
|
|
6655
|
+
userPosition: (g = (y = (v = u.term) == null ? void 0 : v.positions) == null ? void 0 : y[0]) != null && g.shares ? BigInt(u.term.positions[0].shares) : 0n
|
|
6655
6656
|
};
|
|
6656
6657
|
});
|
|
6657
6658
|
} catch (s) {
|
package/dist/index.umd.js
CHANGED
|
@@ -71,6 +71,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
71
71
|
subject_id
|
|
72
72
|
object {
|
|
73
73
|
term_id
|
|
74
|
+
label
|
|
74
75
|
data
|
|
75
76
|
image
|
|
76
77
|
}
|
|
@@ -81,7 +82,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
`,variables:{predicateId:e,userAddress:n}})})).json();return o.errors?(console.error("GraphQL errors (fetchAliasesByWalletPosition):",o.errors),[]):(((r=o.data)==null?void 0:r.triples)||[]).map(u=>{var d,p,f,m,b,y;const c=((d=u.object)==null?void 0:d.image)??void 0,h=c?ua(c)?go(c):c:void 0;return{tripleId:u.term_id,subjectId:u.subject_id??"",pseudo:((p=u.object)==null?void 0:p.data)
|
|
85
|
+
`,variables:{predicateId:e,userAddress:n}})})).json();return o.errors?(console.error("GraphQL errors (fetchAliasesByWalletPosition):",o.errors),[]):(((r=o.data)==null?void 0:r.triples)||[]).map(u=>{var d,p,f,m,b,y,g;const c=((d=u.object)==null?void 0:d.image)??void 0,h=c?ua(c)?go(c):c:void 0;return{tripleId:u.term_id,subjectId:u.subject_id??"",pseudo:((p=u.object)==null?void 0:p.label)||((f=u.object)==null?void 0:f.data)||"",atomId:((m=u.object)==null?void 0:m.term_id)??"",image:h,userPosition:(g=(y=(b=u.term)==null?void 0:b.positions)==null?void 0:y[0])!=null&&g.shares?BigInt(u.term.positions[0].shares):0n}})}catch(s){return console.error("Error fetching aliases by wallet position:",s),[]}},cF=async(n,e,i=jt.MAINNET)=>{var r,s;try{const a=Xi[i],l=await(await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:`
|
|
85
86
|
query GetAccountConsent($subjectId: String!, $predicateId: String!) {
|
|
86
87
|
triples(
|
|
87
88
|
where: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "player-map",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "vite build",
|
|
20
|
-
"sync": "STORE=$(ls -d ../playermap.box/examples/test-player-map/node_modules/.pnpm/player-map
|
|
20
|
+
"sync": "STORE=$(ls -d ../playermap.box/examples/test-player-map/node_modules/.pnpm/player-map@*/node_modules/player-map 2>/dev/null | head -1) && cp dist/* $STORE/dist/ && rm -rf ../playermap.box/examples/test-player-map/node_modules/.vite/deps && echo 'Synced to consuming app (Vite cache cleared)'",
|
|
21
21
|
"build:sync": "vite build && pnpm sync",
|
|
22
22
|
"test": ""
|
|
23
23
|
},
|