@blocklet/ui-react 2.7.0 → 2.7.2

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,3 +1,5 @@
1
+ import 'iconify-icon';
2
+
1
3
  /* eslint-disable no-shadow */
2
4
  import { useMemo, useLayoutEffect, useContext } from 'react';
3
5
  import PropTypes from 'prop-types';
package/es/Icon/index.js CHANGED
@@ -1,6 +1,6 @@
1
+ import 'iconify-icon';
1
2
  import PropTypes from 'prop-types';
2
3
  import Avatar from '@mui/material/Avatar';
3
- import 'iconify-icon';
4
4
  import { isUrl, isIconifyString } from '../utils';
5
5
 
6
6
  /**
@@ -1,3 +1,4 @@
1
+ import 'iconify-icon';
1
2
  import { useContext, createElement } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  // FIXME: 直接从 react 中 import Fragment 可能会在 vite 下出错,先暂时从 react/jsx-runtime 导入 Fragment 来跳过这个问题
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ require("iconify-icon");
7
8
  var _react = require("react");
8
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _Session = require("@arcblock/did-connect/lib/Session");
package/lib/Icon/index.js CHANGED
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = Icon;
7
+ require("iconify-icon");
7
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
9
  var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
9
- require("iconify-icon");
10
10
  var _utils = require("../utils");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  const _excluded = ["icon", "size", "sx"];
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = HeaderAddons;
7
+ require("iconify-icon");
7
8
  var _react = require("react");
8
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _jsxRuntime = require("react/jsx-runtime");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -61,8 +61,8 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@arcblock/did-connect": "^2.7.0",
65
- "@arcblock/ux": "^2.7.0",
64
+ "@arcblock/did-connect": "^2.7.2",
65
+ "@arcblock/ux": "^2.7.2",
66
66
  "@emotion/react": "^11.10.4",
67
67
  "@emotion/styled": "^11.10.4",
68
68
  "@mui/material": "^5.10.8",
@@ -85,5 +85,5 @@
85
85
  "glob": "^10.3.3",
86
86
  "jest": "^28.1.3"
87
87
  },
88
- "gitHead": "6ad0ce9f2f929e737be1a271c09d3a1bce1315e1"
88
+ "gitHead": "659556d235dd7291737aa746b6d926b76854427a"
89
89
  }
@@ -1,3 +1,5 @@
1
+ import 'iconify-icon';
2
+
1
3
  /* eslint-disable no-shadow */
2
4
  import { useMemo, useLayoutEffect, useContext } from 'react';
3
5
  import PropTypes from 'prop-types';
package/src/Icon/index.js CHANGED
@@ -1,6 +1,7 @@
1
+ import 'iconify-icon';
2
+
1
3
  import PropTypes from 'prop-types';
2
4
  import Avatar from '@mui/material/Avatar';
3
- import 'iconify-icon';
4
5
  import { isUrl, isIconifyString } from '../utils';
5
6
 
6
7
  /**
@@ -1,3 +1,5 @@
1
+ import 'iconify-icon';
2
+
1
3
  import { useContext, createElement } from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  // FIXME: 直接从 react 中 import Fragment 可能会在 vite 下出错,先暂时从 react/jsx-runtime 导入 Fragment 来跳过这个问题