@blocklet/discuss-kit-ux 2.4.108 → 2.4.110
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/blocklets.mjs +1 -1
- package/package.json +3 -3
package/dist/blocklets.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const blockletMountPoints = window.blocklet.componentMountPoints;
|
|
2
2
|
export const blockletMountPointsByDid = Object.fromEntries(blockletMountPoints.map((x) => [x.did, x]));
|
|
3
|
-
export const isBlockletApp = (did) => !!blockletMountPointsByDid[did];
|
|
3
|
+
export const isBlockletApp = (did) => !!blockletMountPointsByDid[did] || did === window.blocklet.appId;
|
|
4
4
|
export const getUsername = (user, fallback) => {
|
|
5
5
|
const username = user?.fullName || fallback;
|
|
6
6
|
if (username) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.110",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"unstated-next": "^1.1.0",
|
|
48
48
|
"url-join": "^4.0.1",
|
|
49
49
|
"zustand": "^4.5.5",
|
|
50
|
-
"@blocklet/editor": "2.4.
|
|
51
|
-
"@blocklet/labels": "2.4.
|
|
50
|
+
"@blocklet/editor": "2.4.110",
|
|
51
|
+
"@blocklet/labels": "2.4.110"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@arcblock/did-connect-react": "^3.1.5",
|