@0xchain/iconfont 1.1.0-beta.2 → 1.1.0-beta.20

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/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 1.1.0-beta.19 (2026-03-17)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - 升级iconfont
6
+ - monorepo 最佳实践审查修复
7
+
8
+ ### ❤️ Thank You
9
+
10
+ - caojide
11
+ - jee.song
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present 0xchain
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
- import { createFromIconfontCN as o } from "@ant-design/icons";
3
- const t = o({
4
- scriptUrl: `${process.env.NEXT_PUBLIC_CDN_URL}/common/iconfont/20260128/iconfont.js`
2
+ import { createFromIconfontCN } from "@ant-design/icons";
3
+ const index = createFromIconfontCN({
4
+ scriptUrl: `${process.env.NEXT_PUBLIC_CDN_URL}/common/iconfont/20260325/iconfont.js`
5
5
  // 在 iconfont.cn 上生成
6
6
  });
7
7
  export {
8
- t as default
8
+ index as default
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/iconfont",
3
- "version": "1.1.0-beta.2",
3
+ "version": "1.1.0-beta.20",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -13,13 +13,21 @@
13
13
  "default": "./dist/index.js"
14
14
  }
15
15
  },
16
- "devDependencies": {
17
- "rollup-plugin-preserve-use-client": "3.0.1"
16
+ "peerDependencies": {
17
+ "@ant-design/icons": "6.1.0",
18
+ "react": "19.1.1",
19
+ "react-dom": "19.1.1"
18
20
  },
19
- "dependencies": {
21
+ "devDependencies": {
22
+ "@ant-design/icons": "6.1.0",
20
23
  "react": "19.1.1",
21
24
  "react-dom": "19.1.1",
22
- "@ant-design/icons": "6.1.0"
25
+ "rollup-plugin-preserve-use-client": "3.0.1"
26
+ },
27
+ "nx": {
28
+ "tags": [
29
+ "type:ui"
30
+ ]
23
31
  },
24
32
  "publishConfig": {
25
33
  "access": "public"
package/src/index.tsx CHANGED
@@ -3,5 +3,5 @@
3
3
  import { createFromIconfontCN } from '@ant-design/icons';
4
4
 
5
5
  export default createFromIconfontCN({
6
- scriptUrl: `${process.env.NEXT_PUBLIC_CDN_URL}/common/iconfont/20260128/iconfont.js`, // 在 iconfont.cn 上生成
6
+ scriptUrl: `${process.env.NEXT_PUBLIC_CDN_URL}/common/iconfont/20260325/iconfont.js`, // 在 iconfont.cn 上生成
7
7
  });
package/vite.config.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types='vitest' />
2
1
  import { defineConfig } from 'vite';
3
2
  import react from '@vitejs/plugin-react';
4
3
  import dts from 'vite-plugin-dts';
@@ -16,30 +15,21 @@ export default defineConfig(() => ({
16
15
  tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
17
16
  }),
18
17
  ],
19
- // Uncomment this if you are using workers.
20
- // worker: {
21
- // plugins: [ nxViteTsPaths() ],
22
- // },
23
- // Configuration for building your library.
24
- // See: https://vitejs.dev/guide/build.html#library-mode
25
18
  build: {
26
19
  outDir: './dist',
27
20
  emptyOutDir: true,
21
+ minify: false,
28
22
  reportCompressedSize: true,
29
23
  commonjsOptions: {
30
24
  transformMixedEsModules: true,
31
25
  },
32
26
  lib: {
33
- // Could also be a dictionary or array of multiple entry points.
34
27
  entry: 'src/index.tsx',
35
28
  name: '@0xchain/iconfont',
36
29
  fileName: 'index',
37
- // Change this to the formats you want to support.
38
- // Don't forget to update your package.json as well.
39
30
  formats: ['es' as const],
40
31
  },
41
32
  rollupOptions: {
42
- // External packages that should not be bundled into your library.
43
33
  external: [
44
34
  'react',
45
35
  'react-dom',