@blocklet/ui-react 2.10.60 → 2.10.61
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,
|
|
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.
|
|
3
|
+
"version": "2.10.61",
|
|
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.
|
|
36
|
-
"@arcblock/react-hooks": "^2.10.
|
|
37
|
-
"@blocklet/did-space-react": "^0.5.
|
|
35
|
+
"@arcblock/bridge": "^2.10.61",
|
|
36
|
+
"@arcblock/react-hooks": "^2.10.61",
|
|
37
|
+
"@blocklet/did-space-react": "^0.5.62",
|
|
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": "
|
|
83
|
+
"gitHead": "281ea6ca4acf367c8011e926e5baaf16ea991367"
|
|
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,
|
|
104
|
+
joinURL(window.location.origin, WELLKNOWN_SERVICE_PATH_PREFIX, '/embed/resources', componentDid, '/publish'),
|
|
106
105
|
{
|
|
107
106
|
title,
|
|
108
107
|
logo,
|