@blocklet/discuss-kit-ux 2.5.18 → 2.5.19

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.
@@ -2,7 +2,8 @@ import bridge from "@arcblock/bridge";
2
2
  import { useCallback } from "react";
3
3
  import { joinURL, withQuery, parseQuery } from "ufo";
4
4
  import { useSessionContext } from "../hooks/session.mjs";
5
- export const isInArcSphere = window?.navigator?.userAgent.indexOf("ArcSphere") > -1;
5
+ const ARC_SPHERE_TAG = "ArcSphere";
6
+ export const isInArcSphere = window?.navigator?.userAgent.indexOf(ARC_SPHERE_TAG) > -1;
6
7
  export const isInArcSphereDialog = !!parseQuery(window.location.search).arcSphereDialog;
7
8
  function normalizeUrl(url) {
8
9
  if (url.startsWith("/")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.5.18",
3
+ "version": "2.5.19",
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.5.18",
51
- "@blocklet/labels": "2.5.18"
50
+ "@blocklet/editor": "2.5.19",
51
+ "@blocklet/labels": "2.5.19"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@arcblock/did-connect-react": "^3.1.5",