Commit 31c177658d06a20b8b3b943c55708f11b6574da1

Authored by 张志伟
1 parent 0694c397

🚚 chore(*): 更新依赖

package.json
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 "dist/" 23 "dist/"
24 ], 24 ],
25 "dependencies": { 25 "dependencies": {
26 - "@feewee/h5app-common": "^0.1.8", 26 + "@feewee/h5app-common": "^0.1.10",
27 "@modern-js/runtime": "~2.48.6", 27 "@modern-js/runtime": "~2.48.6",
28 "ahooks": "^3.7.11", 28 "ahooks": "^3.7.11",
29 "clsx": "^2.1.0", 29 "clsx": "^2.1.0",
pnpm-lock.yaml
@@ -9,8 +9,8 @@ importers: @@ -9,8 +9,8 @@ importers:
9 .: 9 .:
10 dependencies: 10 dependencies:
11 '@feewee/h5app-common': 11 '@feewee/h5app-common':
12 - specifier: ^0.1.8  
13 - version: 0.1.8(react-dom@18.2.0(react@18.2.0))(react@18.2.0) 12 + specifier: ^0.1.10
  13 + version: 0.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
14 '@modern-js/runtime': 14 '@modern-js/runtime':
15 specifier: ~2.48.6 15 specifier: ~2.48.6
16 version: 2.48.6(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(webpack@5.91.0(esbuild@0.17.19)) 16 version: 2.48.6(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(webpack@5.91.0(esbuild@0.17.19))
@@ -1003,8 +1003,8 @@ packages: @@ -1003,8 +1003,8 @@ packages:
1003 engines: {node: '>=14', npm: '>=6'} 1003 engines: {node: '>=14', npm: '>=6'}
1004 hasBin: true 1004 hasBin: true
1005 1005
1006 - '@feewee/h5app-common@0.1.8':  
1007 - resolution: {integrity: sha512-onuAiOmlsPszfmewpuVSn/CXa/uzS4nVNfYxKtzsCjXDvUAF3mBapciwibFEiM0K0q2KTDeaWQDjY8KK5TlIYg==} 1006 + '@feewee/h5app-common@0.1.10':
  1007 + resolution: {integrity: sha512-JJyQIydwaXUR+H7kw89/TQRVD0ch1XiU2wtrk8hdWjJyiijxy5Gp3JnGB+VIqIkNCCOGzGZiDyGn32n4Nk3Thw==}
1008 engines: {node: '>=18', npm: '>=6.9.0'} 1008 engines: {node: '>=18', npm: '>=6.9.0'}
1009 peerDependencies: 1009 peerDependencies:
1010 react: '>=18' 1010 react: '>=18'
@@ -1256,8 +1256,8 @@ packages: @@ -1256,8 +1256,8 @@ packages:
1256 '@nutui/icons-react@1.0.4': 1256 '@nutui/icons-react@1.0.4':
1257 resolution: {integrity: sha512-nLFYpJvMBkKzT+PpfMaYoO6vJXMTM0yxAragTkEHt9HAFNjdTdvByCSRfUazHHdLdr1AJxS9h62VB1+jmBEtWA==} 1257 resolution: {integrity: sha512-nLFYpJvMBkKzT+PpfMaYoO6vJXMTM0yxAragTkEHt9HAFNjdTdvByCSRfUazHHdLdr1AJxS9h62VB1+jmBEtWA==}
1258 1258
1259 - '@nutui/nutui-react@2.6.0':  
1260 - resolution: {integrity: sha512-4/nfZ/br4mu7m+8qm4EsaO++Mxlxr5tpAEmEsgFghaxeZ2lZLcftJ7e7INzk8tV3IJuKMq7eA/J/BLbbrJldIA==} 1259 + '@nutui/nutui-react@2.6.1':
  1260 + resolution: {integrity: sha512-Eao/Kd7kbI+4sTL7UN3YmhRxQQazN+pDYMzxzG32r7X9SNs48wzbtVG7dCngOM3UKn+WV3vFvHsPJbYVYyZAfA==}
1261 peerDependencies: 1261 peerDependencies:
1262 react: ^16.8.0 || ^17.0.0 || ^18.0.0 1262 react: ^16.8.0 || ^17.0.0 || ^18.0.0
1263 1263
@@ -1624,8 +1624,8 @@ packages: @@ -1624,8 +1624,8 @@ packages:
1624 '@types/eslint-scope@3.7.7': 1624 '@types/eslint-scope@3.7.7':
1625 resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} 1625 resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}
1626 1626
1627 - '@types/eslint@8.56.9':  
1628 - resolution: {integrity: sha512-W4W3KcqzjJ0sHg2vAq9vfml6OhsJ53TcUjUqfzzZf/EChUtwspszj/S0pzMxnfRcO55/iGq47dscXw71Fxc4Zg==} 1627 + '@types/eslint@8.56.10':
  1628 + resolution: {integrity: sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==}
1629 1629
1630 '@types/estree@1.0.5': 1630 '@types/estree@1.0.5':
1631 resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} 1631 resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
@@ -2178,8 +2178,8 @@ packages: @@ -2178,8 +2178,8 @@ packages:
2178 caniuse-api@3.0.0: 2178 caniuse-api@3.0.0:
2179 resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} 2179 resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==}
2180 2180
2181 - caniuse-lite@1.0.30001611:  
2182 - resolution: {integrity: sha512-19NuN1/3PjA3QI8Eki55N8my4LzfkMCRLgCVfrl/slbSAchQfV0+GwjPrK3rq37As4UCLlM/DHajbKkAqbv92Q==} 2181 + caniuse-lite@1.0.30001612:
  2182 + resolution: {integrity: sha512-lFgnZ07UhaCcsSZgWW0K5j4e69dK1u/ltrL9lTUiFOwNHs12S3UMIEYgBV0Z6C6hRDev7iRnMzzYmKabYdXF9g==}
2183 2183
2184 chalk@2.4.2: 2184 chalk@2.4.2:
2185 resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} 2185 resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
@@ -2377,8 +2377,8 @@ packages: @@ -2377,8 +2377,8 @@ packages:
2377 peerDependencies: 2377 peerDependencies:
2378 postcss: ^8.0.9 2378 postcss: ^8.0.9
2379 2379
2380 - css-functions-list@3.2.1:  
2381 - resolution: {integrity: sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==} 2380 + css-functions-list@3.2.2:
  2381 + resolution: {integrity: sha512-c+N0v6wbKVxTu5gOBBFkr9BEdBWaqqjQeiJ8QvSRIJOf+UxlJh930m8e6/WNeODIK0mYLFkoONrnj16i2EcvfQ==}
2382 engines: {node: '>=12 || >=16'} 2382 engines: {node: '>=12 || >=16'}
2383 2383
2384 css-minimizer-webpack-plugin@5.0.1: 2384 css-minimizer-webpack-plugin@5.0.1:
@@ -2613,8 +2613,8 @@ packages: @@ -2613,8 +2613,8 @@ packages:
2613 ee-first@1.1.1: 2613 ee-first@1.1.1:
2614 resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} 2614 resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
2615 2615
2616 - electron-to-chromium@1.4.740:  
2617 - resolution: {integrity: sha512-Yvg5i+iyv7Xm18BRdVPVm8lc7kgxM3r6iwqCH2zB7QZy1kZRNmd0Zqm0zcD9XoFREE5/5rwIuIAOT+/mzGcnZg==} 2616 + electron-to-chromium@1.4.745:
  2617 + resolution: {integrity: sha512-tRbzkaRI5gbUn5DEvF0dV4TQbMZ5CLkWeTAXmpC9IrYT+GE+x76i9p+o3RJ5l9XmdQlI1pPhVtE9uNcJJ0G0EA==}
2618 2618
2619 elliptic@6.5.5: 2619 elliptic@6.5.5:
2620 resolution: {integrity: sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==} 2620 resolution: {integrity: sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==}
@@ -5516,8 +5516,8 @@ packages: @@ -5516,8 +5516,8 @@ packages:
5516 peerDependencies: 5516 peerDependencies:
5517 zod: ^3.18.0 5517 zod: ^3.18.0
5518 5518
5519 - zod@3.22.4:  
5520 - resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} 5519 + zod@3.23.0:
  5520 + resolution: {integrity: sha512-OFLT+LTocvabn6q76BTwVB0hExEBS0IduTr3cqZyMqEDbOnYmcU+y0tUAYbND4uwclpBGi4I4UUBGzylWpjLGA==}
5521 5521
5522 snapshots: 5522 snapshots:
5523 5523
@@ -6536,10 +6536,10 @@ snapshots: @@ -6536,10 +6536,10 @@ snapshots:
6536 - jest 6536 - jest
6537 - supports-color 6537 - supports-color
6538 6538
6539 - '@feewee/h5app-common@0.1.8(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': 6539 + '@feewee/h5app-common@0.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)':
6540 dependencies: 6540 dependencies:
6541 '@nutui/icons-react': 1.0.4 6541 '@nutui/icons-react': 1.0.4
6542 - '@nutui/nutui-react': 2.6.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) 6542 + '@nutui/nutui-react': 2.6.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
6543 clsx: 2.1.0 6543 clsx: 2.1.0
6544 react: 18.2.0 6544 react: 18.2.0
6545 react-dom: 18.2.0(react@18.2.0) 6545 react-dom: 18.2.0(react@18.2.0)
@@ -7049,7 +7049,7 @@ snapshots: @@ -7049,7 +7049,7 @@ snapshots:
7049 '@modern-js/utils@2.48.6': 7049 '@modern-js/utils@2.48.6':
7050 dependencies: 7050 dependencies:
7051 '@swc/helpers': 0.5.3 7051 '@swc/helpers': 0.5.3
7052 - caniuse-lite: 1.0.30001611 7052 + caniuse-lite: 1.0.30001612
7053 lodash: 4.17.21 7053 lodash: 4.17.21
7054 rslog: 1.2.1 7054 rslog: 1.2.1
7055 7055
@@ -7087,7 +7087,7 @@ snapshots: @@ -7087,7 +7087,7 @@ snapshots:
7087 7087
7088 '@nutui/icons-react@1.0.4': {} 7088 '@nutui/icons-react@1.0.4': {}
7089 7089
7090 - '@nutui/nutui-react@2.6.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': 7090 + '@nutui/nutui-react@2.6.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)':
7091 dependencies: 7091 dependencies:
7092 '@babel/runtime': 7.24.4 7092 '@babel/runtime': 7.24.4
7093 '@nutui/icons-react': 1.0.4 7093 '@nutui/icons-react': 1.0.4
@@ -7425,7 +7425,7 @@ snapshots: @@ -7425,7 +7425,7 @@ snapshots:
7425 '@rsbuild/shared@0.6.1(@swc/helpers@0.5.3)': 7425 '@rsbuild/shared@0.6.1(@swc/helpers@0.5.3)':
7426 dependencies: 7426 dependencies:
7427 '@rspack/core': 0.6.1(@swc/helpers@0.5.3) 7427 '@rspack/core': 0.6.1(@swc/helpers@0.5.3)
7428 - caniuse-lite: 1.0.30001611 7428 + caniuse-lite: 1.0.30001612
7429 postcss: 8.4.38 7429 postcss: 8.4.38
7430 transitivePeerDependencies: 7430 transitivePeerDependencies:
7431 - '@swc/helpers' 7431 - '@swc/helpers'
@@ -7501,8 +7501,8 @@ snapshots: @@ -7501,8 +7501,8 @@ snapshots:
7501 tapable: 2.2.1 7501 tapable: 2.2.1
7502 watchpack: 2.4.1 7502 watchpack: 2.4.1
7503 webpack-sources: 3.2.3 7503 webpack-sources: 3.2.3
7504 - zod: 3.22.4  
7505 - zod-validation-error: 1.3.1(zod@3.22.4) 7504 + zod: 3.23.0
  7505 + zod-validation-error: 1.3.1(zod@3.23.0)
7506 optionalDependencies: 7506 optionalDependencies:
7507 '@swc/helpers': 0.5.3 7507 '@swc/helpers': 0.5.3
7508 7508
@@ -7626,10 +7626,10 @@ snapshots: @@ -7626,10 +7626,10 @@ snapshots:
7626 7626
7627 '@types/eslint-scope@3.7.7': 7627 '@types/eslint-scope@3.7.7':
7628 dependencies: 7628 dependencies:
7629 - '@types/eslint': 8.56.9 7629 + '@types/eslint': 8.56.10
7630 '@types/estree': 1.0.5 7630 '@types/estree': 1.0.5
7631 7631
7632 - '@types/eslint@8.56.9': 7632 + '@types/eslint@8.56.10':
7633 dependencies: 7633 dependencies:
7634 '@types/estree': 1.0.5 7634 '@types/estree': 1.0.5
7635 '@types/json-schema': 7.0.15 7635 '@types/json-schema': 7.0.15
@@ -8252,8 +8252,8 @@ snapshots: @@ -8252,8 +8252,8 @@ snapshots:
8252 8252
8253 browserslist@4.23.0: 8253 browserslist@4.23.0:
8254 dependencies: 8254 dependencies:
8255 - caniuse-lite: 1.0.30001611  
8256 - electron-to-chromium: 1.4.740 8255 + caniuse-lite: 1.0.30001612
  8256 + electron-to-chromium: 1.4.745
8257 node-releases: 2.0.14 8257 node-releases: 2.0.14
8258 update-browserslist-db: 1.0.13(browserslist@4.23.0) 8258 update-browserslist-db: 1.0.13(browserslist@4.23.0)
8259 8259
@@ -8306,11 +8306,11 @@ snapshots: @@ -8306,11 +8306,11 @@ snapshots:
8306 caniuse-api@3.0.0: 8306 caniuse-api@3.0.0:
8307 dependencies: 8307 dependencies:
8308 browserslist: 4.23.0 8308 browserslist: 4.23.0
8309 - caniuse-lite: 1.0.30001611 8309 + caniuse-lite: 1.0.30001612
8310 lodash.memoize: 4.1.2 8310 lodash.memoize: 4.1.2
8311 lodash.uniq: 4.5.0 8311 lodash.uniq: 4.5.0
8312 8312
8313 - caniuse-lite@1.0.30001611: {} 8313 + caniuse-lite@1.0.30001612: {}
8314 8314
8315 chalk@2.4.2: 8315 chalk@2.4.2:
8316 dependencies: 8316 dependencies:
@@ -8519,7 +8519,7 @@ snapshots: @@ -8519,7 +8519,7 @@ snapshots:
8519 dependencies: 8519 dependencies:
8520 postcss: 8.4.38 8520 postcss: 8.4.38
8521 8521
8522 - css-functions-list@3.2.1: {} 8522 + css-functions-list@3.2.2: {}
8523 8523
8524 css-minimizer-webpack-plugin@5.0.1(esbuild@0.17.19)(webpack@5.91.0(esbuild@0.17.19)): 8524 css-minimizer-webpack-plugin@5.0.1(esbuild@0.17.19)(webpack@5.91.0(esbuild@0.17.19)):
8525 dependencies: 8525 dependencies:
@@ -8771,7 +8771,7 @@ snapshots: @@ -8771,7 +8771,7 @@ snapshots:
8771 8771
8772 ee-first@1.1.1: {} 8772 ee-first@1.1.1: {}
8773 8773
8774 - electron-to-chromium@1.4.740: {} 8774 + electron-to-chromium@1.4.745: {}
8775 8775
8776 elliptic@6.5.5: 8776 elliptic@6.5.5:
8777 dependencies: 8777 dependencies:
@@ -8799,7 +8799,7 @@ snapshots: @@ -8799,7 +8799,7 @@ snapshots:
8799 8799
8800 enhanced-resolve@5.12.0: 8800 enhanced-resolve@5.12.0:
8801 dependencies: 8801 dependencies:
8802 - graceful-fs: 4.2.11 8802 + graceful-fs: 4.2.10
8803 tapable: 2.2.1 8803 tapable: 2.2.1
8804 8804
8805 enhanced-resolve@5.16.0: 8805 enhanced-resolve@5.16.0:
@@ -8954,7 +8954,7 @@ snapshots: @@ -8954,7 +8954,7 @@ snapshots:
8954 8954
8955 eslint-formatter-pretty@5.0.0: 8955 eslint-formatter-pretty@5.0.0:
8956 dependencies: 8956 dependencies:
8957 - '@types/eslint': 8.56.9 8957 + '@types/eslint': 8.56.10
8958 ansi-escapes: 4.3.2 8958 ansi-escapes: 4.3.2
8959 chalk: 4.1.2 8959 chalk: 4.1.2
8960 eslint-rule-docs: 1.1.235 8960 eslint-rule-docs: 1.1.235
@@ -11487,7 +11487,7 @@ snapshots: @@ -11487,7 +11487,7 @@ snapshots:
11487 balanced-match: 2.0.0 11487 balanced-match: 2.0.0
11488 colord: 2.9.3 11488 colord: 2.9.3
11489 cosmiconfig: 8.3.6(typescript@5.4.5) 11489 cosmiconfig: 8.3.6(typescript@5.4.5)
11490 - css-functions-list: 3.2.1 11490 + css-functions-list: 3.2.2
11491 css-tree: 2.3.1 11491 css-tree: 2.3.1
11492 debug: 4.3.4(supports-color@5.5.0) 11492 debug: 4.3.4(supports-color@5.5.0)
11493 fast-glob: 3.3.2 11493 fast-glob: 3.3.2
@@ -11980,8 +11980,8 @@ snapshots: @@ -11980,8 +11980,8 @@ snapshots:
11980 11980
11981 yocto-queue@1.0.0: {} 11981 yocto-queue@1.0.0: {}
11982 11982
11983 - zod-validation-error@1.3.1(zod@3.22.4): 11983 + zod-validation-error@1.3.1(zod@3.23.0):
11984 dependencies: 11984 dependencies:
11985 - zod: 3.22.4 11985 + zod: 3.23.0
11986 11986
11987 - zod@3.22.4: {} 11987 + zod@3.23.0: {}
src/routes/page.tsx
1 -import { Button } from '@feewee/h5app-common'; 1 +import { Button, Toast } from '@feewee/h5app-common';
2 import { Helmet } from '@modern-js/runtime/head'; 2 import { Helmet } from '@modern-js/runtime/head';
3 import { useNavigate } from '@modern-js/runtime/router'; 3 import { useNavigate } from '@modern-js/runtime/router';
4 4
@@ -16,6 +16,20 @@ function Index() { @@ -16,6 +16,20 @@ function Index() {
16 <Button type="info" shape="round" fill="outline" className="!mx-auto !block" onClick={() => navigate('/demo')}> 16 <Button type="info" shape="round" fill="outline" className="!mx-auto !block" onClick={() => navigate('/demo')}>
17 跳转页面 17 跳转页面
18 </Button> 18 </Button>
  19 +
  20 + <Button
  21 + type="primary"
  22 + shape="round"
  23 + className="!mx-auto !block !mt-4"
  24 + onClick={() =>
  25 + Toast.show({
  26 + content: '成功提示',
  27 + icon: 'success',
  28 + })
  29 + }
  30 + >
  31 + 吐司提示
  32 + </Button>
19 </div> 33 </div>
20 </main> 34 </main>
21 </> 35 </>