@arcblock/ux 2.7.8 → 2.7.10

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.
@@ -7,6 +7,14 @@ const {
7
7
  Provider,
8
8
  Consumer
9
9
  } = BlockletContext;
10
+
11
+ /**
12
+ *
13
+ * @param {object} props
14
+ * @param {string} props.baseUrl baseUrl 为 blocklet origin + blocklet prefix
15
+ * @param {any} props.children
16
+ * @returns
17
+ */
10
18
  function BlockletProvider({
11
19
  children,
12
20
  baseUrl
@@ -17,6 +17,14 @@ const {
17
17
  Provider,
18
18
  Consumer
19
19
  } = BlockletContext;
20
+
21
+ /**
22
+ *
23
+ * @param {object} props
24
+ * @param {string} props.baseUrl baseUrl 为 blocklet origin + blocklet prefix
25
+ * @param {any} props.children
26
+ * @returns
27
+ */
20
28
  exports.BlockletConsumer = Consumer;
21
29
  function BlockletProvider(_ref) {
22
30
  let {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.7.8",
3
+ "version": "2.7.10",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -318,11 +318,11 @@
318
318
  "peerDependencies": {
319
319
  "react": ">=18.1.0"
320
320
  },
321
- "gitHead": "3519d637481ef3ad3b90c7fccfbaa4e8f83576bc",
321
+ "gitHead": "4e9fabd1bc24b2a85e5201d4aaa2fc6baf528c34",
322
322
  "dependencies": {
323
323
  "@arcblock/did-motif": "^1.1.13",
324
- "@arcblock/icons": "^2.7.8",
325
- "@arcblock/react-hooks": "^2.7.8",
324
+ "@arcblock/icons": "^2.7.10",
325
+ "@arcblock/react-hooks": "^2.7.10",
326
326
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
327
327
  "@emotion/react": "^11.10.4",
328
328
  "@emotion/styled": "^11.10.4",
@@ -6,6 +6,13 @@ const BlockletContext = createContext();
6
6
 
7
7
  const { Provider, Consumer } = BlockletContext;
8
8
 
9
+ /**
10
+ *
11
+ * @param {object} props
12
+ * @param {string} props.baseUrl baseUrl 为 blocklet origin + blocklet prefix
13
+ * @param {any} props.children
14
+ * @returns
15
+ */
9
16
  function BlockletProvider({ children, baseUrl }) {
10
17
  const [blockletData, setBlockletData] = useState(null);
11
18
  const getBlockleData = useMemoizedFn(async () => {