@blocklet/ui-react 2.10.60 → 2.10.62

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { WELLKNOWN_SERVICE_PATH_PREFIX } from "@arcblock/ux/lib/Util/constant";
2
3
  import { useEffect, useRef, useState } from "react";
3
4
  import { joinURL } from "ufo";
4
- const WELL_KNOWN_SERVICE_PATH = "/.well-known/service";
5
5
  function parseUrl(uri, params) {
6
6
  const url = new URL(uri);
7
7
  Object.keys(params).forEach((key) => {
@@ -71,7 +71,7 @@ function BlockletStudio({
71
71
  return null;
72
72
  }
73
73
  const src = parseUrl(
74
- joinURL(window.location.origin, WELL_KNOWN_SERVICE_PATH, "/embed/resources", componentDid, "publish"),
74
+ joinURL(window.location.origin, WELLKNOWN_SERVICE_PATH_PREFIX, "/embed/resources", componentDid, "/publish"),
75
75
  {
76
76
  title,
77
77
  logo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.10.60",
3
+ "version": "2.10.62",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -32,9 +32,9 @@
32
32
  "url": "https://github.com/ArcBlock/ux/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@arcblock/bridge": "^2.10.60",
36
- "@arcblock/react-hooks": "^2.10.60",
37
- "@blocklet/did-space-react": "^0.5.59",
35
+ "@arcblock/bridge": "^2.10.62",
36
+ "@arcblock/react-hooks": "^2.10.62",
37
+ "@blocklet/did-space-react": "^0.5.63",
38
38
  "@iconify-icons/logos": "^1.2.36",
39
39
  "@iconify-icons/material-symbols": "^1.2.58",
40
40
  "@iconify/react": "^4.1.1",
@@ -80,5 +80,5 @@
80
80
  "jest": "^29.7.0",
81
81
  "unbuild": "^2.0.0"
82
82
  },
83
- "gitHead": "fb4ccbae5428593bc9d7555e832f7743fbd9c71b"
83
+ "gitHead": "de451a401cc66a05ecd7eb191fdfc6dbd7e25e8f"
84
84
  }
@@ -1,8 +1,7 @@
1
+ import { WELLKNOWN_SERVICE_PATH_PREFIX } from '@arcblock/ux/lib/Util/constant';
1
2
  import { useEffect, useRef, useState } from 'react';
2
3
  import { joinURL } from 'ufo';
3
4
 
4
- const WELL_KNOWN_SERVICE_PATH = '/.well-known/service';
5
-
6
5
  function parseUrl(uri: string, params: Record<string, any>): string {
7
6
  const url = new URL(uri);
8
7
  Object.keys(params).forEach((key) => {
@@ -102,7 +101,7 @@ function BlockletStudio({
102
101
  }
103
102
 
104
103
  const src = parseUrl(
105
- joinURL(window.location.origin, WELL_KNOWN_SERVICE_PATH, '/embed/resources', componentDid, 'publish'),
104
+ joinURL(window.location.origin, WELLKNOWN_SERVICE_PATH_PREFIX, '/embed/resources', componentDid, '/publish'),
106
105
  {
107
106
  title,
108
107
  logo,