@lobehub/icons 4.2.0 → 4.3.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.
@@ -1,6 +1,6 @@
1
1
  export interface LobeIconCdnConfig {
2
2
  cdn?: 'github' | 'aliyun' | 'unpkg';
3
- format?: 'svg' | 'png' | 'webp';
3
+ format?: 'svg' | 'png' | 'webp' | 'avatar';
4
4
  isDarkMode?: boolean;
5
5
  type?: 'mono' | 'color' | 'text' | 'text-cn' | 'text-color' | 'brand' | 'brand-color';
6
6
  }
@@ -34,19 +34,23 @@ export var getLobeIconCDN = function getLobeIconCDN(id, config) {
34
34
  baseUrl = ALIYUN_ICON_CDN(format);
35
35
  }
36
36
  }
37
- var addon = type === 'mono' ? '' : "-".concat(type);
38
- switch (format) {
39
- case 'svg':
40
- {
41
- return "".concat(baseUrl, "/icons/").concat(id.toLowerCase() + addon, ".svg");
42
- }
43
- case 'webp':
44
- {
45
- return "".concat(baseUrl, "/").concat(isDarkMode ? 'dark' : 'light', "/").concat(id.toLowerCase() + addon, ".webp");
46
- }
47
- default:
48
- {
49
- return "".concat(baseUrl, "/").concat(isDarkMode ? 'dark' : 'light', "/").concat(id.toLowerCase() + addon, ".png");
50
- }
37
+ if (format === 'avatar') {
38
+ return "".concat(baseUrl, "/avatars/").concat(id.toLowerCase(), ".webp");
39
+ } else {
40
+ var addon = type === 'mono' ? '' : "-".concat(type);
41
+ switch (format) {
42
+ case 'svg':
43
+ {
44
+ return "".concat(baseUrl, "/icons/").concat(id.toLowerCase() + addon, ".svg");
45
+ }
46
+ case 'webp':
47
+ {
48
+ return "".concat(baseUrl, "/").concat(isDarkMode ? 'dark' : 'light', "/").concat(id.toLowerCase() + addon, ".webp");
49
+ }
50
+ default:
51
+ {
52
+ return "".concat(baseUrl, "/").concat(isDarkMode ? 'dark' : 'light', "/").concat(id.toLowerCase() + addon, ".png");
53
+ }
54
+ }
51
55
  }
52
56
  };
package/es/toc.js CHANGED
@@ -3388,7 +3388,7 @@ var toc = [{
3388
3388
  "color": "#ff4d4d",
3389
3389
  "desc": "https://openclaw.dev",
3390
3390
  "docsUrl": "open-claw",
3391
- "fullTitle": "OpenClaw (Moltbot/Clawbot)",
3391
+ "fullTitle": "OpenClaw (MoltBot/ClawdBot)",
3392
3392
  "group": "application",
3393
3393
  "id": "OpenClaw",
3394
3394
  "param": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/icons",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Popular AI / LLM Model Brand SVG Logo and Icon Collection",
5
5
  "keywords": [
6
6
  "lobehub",