@lobehub/icons 1.59.1 → 1.62.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.
@@ -11,7 +11,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import { useCallback, useEffect, useRef, useState } from 'react';
12
12
  import SvgoClient from "./svgo";
13
13
  export var useSvgo = function useSvgo(svg, config) {
14
- var svgoInstance = useRef();
14
+ var svgoInstance = useRef(null);
15
15
  var _useState = useState(true),
16
16
  _useState2 = _slicedToArray(_useState, 2),
17
17
  isLoading = _useState2[0],
package/es/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './features';
2
+ export { useFillId, useFillIds } from './hooks/useFillId';
2
3
  export * from './icons';
3
4
  export { type IconToc, default as toc } from './toc';
4
5
  export type { IconType } from './types';
package/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./features";
2
+ export { useFillId, useFillIds } from "./hooks/useFillId";
2
3
  export * from "./icons";
3
4
  export { default as toc } from "./toc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/icons",
3
- "version": "1.59.1",
3
+ "version": "1.62.0",
4
4
  "description": "Popular AI / LLM Model Brand SVG Logo and Icon Collection",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -26,110 +26,16 @@
26
26
  "files": [
27
27
  "es"
28
28
  ],
29
- "scripts": {
30
- "build": "npm run build:toc && father build",
31
- "build:static": "tsx scripts/svgWorkflow/index.ts",
32
- "build:toc": "tsx scripts/tocWorkflow/index.ts",
33
- "build:watch": "father dev",
34
- "ci": "npm run lint && npm run type-check",
35
- "clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
36
- "dev": "dumi dev",
37
- "docs:build": "dumi build",
38
- "docs:build-analyze": "ANALYZE=1 dumi build",
39
- "docs:dev": "dumi dev",
40
- "doctor": "father doctor",
41
- "lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
42
- "lint:md": "remark . --quiet --frail --output",
43
- "lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
44
- "prepare": "husky && npm run setup",
45
- "prepublishOnly": "npm run build",
46
- "prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
47
- "pull": "git pull",
48
- "release": "semantic-release",
49
- "release:static": "multi-semantic-release",
50
- "setup": "dumi setup",
51
- "start": "npm run dev",
52
- "sync:cnpm": "cnpm sync @lobehub/icons-static-svg @lobehub/icons-static-png @lobehub/icons-static-webp",
53
- "sync:md": "npm run build:toc && tsx scripts/readmeWorkflow/index.ts",
54
- "test": "vitest --passWithNoTests",
55
- "test:coverage": "vitest run --coverage --passWithNoTests",
56
- "test:update": "vitest -u",
57
- "type-check": "tsc -p tsconfig-check.json"
58
- },
59
- "lint-staged": {
60
- "*.md": [
61
- "remark --quiet --output --",
62
- "prettier --write --no-error-on-unmatched-pattern"
63
- ],
64
- "*.json": [
65
- "prettier --write --no-error-on-unmatched-pattern"
66
- ],
67
- "*.{js,jsx}": [
68
- "prettier --write",
69
- "stylelint --fix",
70
- "eslint --fix"
71
- ],
72
- "*.{ts,tsx}": [
73
- "prettier --parser=typescript --write",
74
- "stylelint --fix",
75
- "eslint --fix"
76
- ]
77
- },
78
- "devDependencies": {
79
- "@babel/runtime": "^7.26.0",
80
- "@commitlint/cli": "^18.6.1",
81
- "@lobehub/lint": "^1.24.4",
82
- "@testing-library/react": "^14.3.1",
83
- "@types/lodash-es": "^4.17.12",
84
- "@types/pangu": "^4.0.2",
85
- "@types/query-string": "^6.3.0",
86
- "@types/react": "^18.3.12",
87
- "@types/react-dom": "^18.3.1",
88
- "@vitest/coverage-v8": "~1.2.2",
89
- "babel-plugin-antd-style": "^1.0.4",
90
- "commitlint": "^18.6.1",
91
- "concurrently": "^8.2.2",
92
- "consola": "^3.2.3",
93
- "cross-env": "^7.0.3",
94
- "dumi": "^2.4.14",
95
- "dumi-theme-lobehub": "^1.10.9",
96
- "eslint": "^8.57.1",
97
- "father": "^4.5.1",
98
- "glob": "^11.0.0",
99
- "gray-matter": "^4.0.3",
100
- "husky": "^9.1.7",
101
- "jsdom": "^23.2.0",
102
- "lint-staged": "^15.2.10",
103
- "lodash-es": "^4.17.21",
104
- "markdown-table": "^3.0.4",
105
- "multi-semantic-release": "^3.0.2",
106
- "p-map": "^7.0.2",
29
+ "dependencies": {
30
+ "@lobehub/ui": "^1.162.0",
31
+ "antd-style": "^3.7.1",
32
+ "lucide-react": "^0.469.0",
107
33
  "polished": "^4.3.1",
108
- "prettier": "^3.4.1",
109
- "react": "^18.3.1",
110
- "react-dom": "^18.3.1",
111
- "remark": "^14.0.3",
112
- "remark-cli": "^11.0.0",
113
- "semantic-release": "^21.1.2",
114
- "sharp": "^0.33.5",
115
- "stylelint": "^15.11.0",
116
- "svgo-browser": "^1.3.8",
117
- "swr": "^2.2.5",
118
- "tsx": "^4.19.2",
119
- "typescript": "^5.7.2",
120
- "vitest": "~1.2.2"
34
+ "react-layout-kit": "^1.9.1"
121
35
  },
122
36
  "peerDependencies": {
123
- "@lobehub/ui": ">=1",
124
- "antd": ">=5",
125
- "antd-style": ">=3",
126
- "lucide-react": ">=0.396.0",
127
- "react": ">=18",
128
- "react-dom": ">=18",
129
- "react-layout-kit": ">=1"
130
- },
131
- "publishConfig": {
132
- "access": "public",
133
- "registry": "https://registry.npmjs.org"
37
+ "antd": "^5.23.0",
38
+ "react": "^18.0.0 || ^19.0.0",
39
+ "react-dom": "^18.0.0 || ^19.0.0"
134
40
  }
135
41
  }