@lobehub/ui 1.56.0 → 1.57.0
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.
- package/es/FluentEmoji/index.js +5 -2
- package/package.json +4 -3
package/es/FluentEmoji/index.js
CHANGED
|
@@ -54,8 +54,11 @@ var FluentEmoji = /*#__PURE__*/memo(function (_ref) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
}, [type]);
|
|
58
|
-
|
|
57
|
+
}, [type, emoji]);
|
|
58
|
+
var isFallback = useMemo(function () {
|
|
59
|
+
return type === 'pure' || !emojiUrl || loadingFail;
|
|
60
|
+
}, []);
|
|
61
|
+
if (isFallback) return /*#__PURE__*/_jsx("div", {
|
|
59
62
|
className: cx(styles.container, className),
|
|
60
63
|
style: _objectSpread({
|
|
61
64
|
fontSize: size * 0.9,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building chatbot web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "father build",
|
|
31
|
-
"build:watch": "father dev",
|
|
32
31
|
"ci": "npm run lint && npm run type-check",
|
|
33
32
|
"clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
|
|
34
|
-
"dev": "
|
|
33
|
+
"dev": "father dev",
|
|
35
34
|
"docs:build": "dumi build",
|
|
35
|
+
"docs:dev": "dumi dev",
|
|
36
36
|
"doctor": "father doctor",
|
|
37
37
|
"lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
38
38
|
"lint:md": "remark . --quiet --frail --output",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"prepare": "husky install && npm run setup",
|
|
41
41
|
"prepublishOnly": "father doctor && npm run build",
|
|
42
42
|
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
43
|
+
"pull": "git pull",
|
|
43
44
|
"release": "semantic-release",
|
|
44
45
|
"setup": "dumi setup",
|
|
45
46
|
"start": "dumi dev",
|