{"_id":"@alipay/carlife-h5-ulink","_rev":"5-24ddb314e1b77bff714feb6dc01a0346","name":"@alipay/carlife-h5-ulink","dist-tags":{"latest":"1.0.5"},"versions":{"0.0.0":{"name":"@alipay/carlife-h5-ulink","version":"0.0.0","license":"UNLICENSED","_id":"@alipay/carlife-h5-ulink@0.0.0","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"dist":{"shasum":"e3fc9b1871df1228e9b5e580d19fa5e9ee8cd8b8","tarball":"https://registry.npmjs.org/@alipay/carlife-h5-ulink/-/carlife-h5-ulink-0.0.0.tgz","fileCount":2,"integrity":"sha512-7lHP3yVr/X5TRuokrMy7WVmE6CORoQH1c77hDiWGKpyj8DF5C/SxIIa/fdbqAWlymgKyqXm087i/3QMK/e33bQ==","signatures":[{"sig":"MEYCIQDw8iE9JidanOyq9sdv134NXowHJnMBcl7ZUmeKK1TzZQIhAPo3QOca7P0DxgYYRfwrEej6Yp1MQKc1lDmnLkQiaF1N","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":365},"private":false,"_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"_npmVersion":"11.17.0","description":"Reserved placeholder package.","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/carlife-h5-ulink_0.0.0_1788334303339_0.19504290747664643","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@alipay/carlife-h5-ulink","version":"1.0.2","author":{"name":"hr374614"},"_id":"@alipay/carlife-h5-ulink@1.0.2","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"dist":{"shasum":"7dda51f98e5c287d8a41d55514e3d413538425f4","tarball":"https://registry.npmjs.org/@alipay/carlife-h5-ulink/-/carlife-h5-ulink-1.0.2.tgz","fileCount":84,"integrity":"sha512-YMro08BIQKQr0/MuDpYLKeuPfFf5AUkK3TeFys8oZ29FjkS1y3brcD8OIYx1A79IVLd1ghiXJbT75HkOtk1mgA==","signatures":[{"sig":"MEUCIQCA1ldNJZVH1xXKigMRzVAd8YWXTqfUYzvj8Xt/bTF0tgIgHGDaAlSSsjRW9XwN0+n2TEdw+JkFVAu7UgzzOGumFfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1665411},"main":"dist/index.umd.js","tnpm":{"mode":"npm"},"types":"esm/index.d.ts","module":"esm/index.js","engines":{"node":">=20.0.0"},"gitHead":"c17f5374b3f4ca9336d33808b3b4de46a59c517a","scripts":{"dev":"smallfish dev","lint":"fishlint eslint","mock":"smallfish dev --mock","test":"vitest","build":"smallfish build -s all","start":"npm run dev","deploy":"smallfish build -s all --deploy","format":"fishlint format","analyze":"smallfish build -s library --analyze","dev:doc":"smallfish dev --doc=true","dev:esm":"smallfish transpile --watch","dev:lib":"smallfish dev -s library","lint:fix":"npm run lint -- --fix","test:cov":"vitest run --coverage","stylelint":"fishlint stylelint","commitlint":"fishlint commitlint","oneapi:init":"smallfish oneapi --init","oneapi:mock":"smallfish oneapi --mock","projectlint":"fishlint projectlint","stylelint:fix":"npm run stylelint -- --fix","oneapi:service":"smallfish oneapi --service","prepublishOnly":"smallfish build -s all --deploy --deploy-mode=assets"},"yuyanId":"180020010101339141","_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"dumiAssets":"assets.json","repository":{"url":"https://code.alipay.com/industryprod/carLifeH5Components","type":"git"},"_npmVersion":"11.13.0","description":"- 安装依赖：","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@babel/runtime":"^7.21.5"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.1.0","react":"18.2.0","vitest":"^3.2.4","prettier":"^3","react-dom":"18.2.0","typescript":"^4","@types/react":"18","@alipay/fast-spm":"^4","@alipay/fishlint":"^1.0.0","@types/react-dom":"18","@alipay/smallfish":"^2.2.11","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.0","@vitest/coverage-istanbul":"^3.2.4","@alipay/smallfish-plugin-app":"^2.2.11","@alipay/smallfish-plugin-hitu":"^2.2.11","@alipay/smallfish-plugin-bakery":"^1.1.2","@alipay/smallfish-plugin-component":"^2.2.11","@alipay/smallfish-plugin-comp-antlog":"^1.1.6","@alipay/smallfish-plugin-component-morpho":"^2.2.11"},"_npmOperationalInternal":{"tmp":"tmp/carlife-h5-ulink_1.0.2_1788336544188_0.9427059715371982","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@alipay/carlife-h5-ulink","version":"1.0.3","_id":"@alipay/carlife-h5-ulink@1.0.3","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"dist":{"shasum":"4eab5482d508690373eaec1489187fdab9f76d8d","tarball":"https://registry.npmjs.org/@alipay/carlife-h5-ulink/-/carlife-h5-ulink-1.0.3.tgz","fileCount":17,"integrity":"sha512-NZ053SFfBbGDQeKfA5WjrNpIR7WbOo8mYMNK8Y5848qd1Eakl9isuIhqgsUCOTpUdJhjd90YTlbCNCt9Bmn5gQ==","signatures":[{"sig":"MEUCIQDTOcldKPula5dU+japyjro3SditV2EY2lTvN7A5LFRowIgbOx3P0PJsakNLq7L69uYjQMfEnMUfWVtgd8865AI/Gs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2607113},"main":"dist/index.umd.js","_from":"file:alipay-carlife-h5-ulink-1.0.3.tgz","types":"types/index.d.ts","_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"_resolved":"/private/var/folders/w9/sjzy9gvj1_z01lhj0mhcxpcr0000gp/T/carlife-public-ezk6fg1d/alipay-carlife-h5-ulink-1.0.3.tgz","_integrity":"sha512-NZ053SFfBbGDQeKfA5WjrNpIR7WbOo8mYMNK8Y5848qd1Eakl9isuIhqgsUCOTpUdJhjd90YTlbCNCt9Bmn5gQ==","_npmVersion":"11.13.0","description":"Car life H5 components with CouponModal load result callbacks","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/carlife-h5-ulink_1.0.3_1788854565106_0.931503071435398","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@alipay/carlife-h5-ulink","version":"1.0.4","author":{"name":"hr374614"},"_id":"@alipay/carlife-h5-ulink@1.0.4","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"dist":{"shasum":"3f4cf5a8066985365c19059df4efbd5a8672137b","tarball":"https://registry.npmjs.org/@alipay/carlife-h5-ulink/-/carlife-h5-ulink-1.0.4.tgz","fileCount":99,"integrity":"sha512-nO3w69qXfjHf6Qfqy465t02NXgt9+yLVilpwXSUsvjmWd2jolO+Wy26eHrD7lMwKEJ7bu86r0dsHyHbXi8XWKw==","signatures":[{"sig":"MEUCIQCWNBBERW1oTd4NX/5qOUAAlvkcnRashAlMGtUPceQSLQIgaZVsEcjr5guKS55NRG3rv0txSNjYVLAgUI0fQu9ZtNw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2624450},"main":"dist/index.umd.js","tnpm":{"mode":"npm"},"types":"esm/index.d.ts","module":"esm/index.js","engines":{"node":">=20.0.0"},"gitHead":"fe305c19ab042221f7d7effffa385681bf868190","scripts":{"dev":"smallfish dev","lint":"fishlint eslint","mock":"smallfish dev --mock","test":"vitest","build":"smallfish build -s all","start":"npm run dev","deploy":"smallfish build -s all --deploy","format":"fishlint format","analyze":"smallfish build -s library --analyze","dev:doc":"smallfish dev --doc=true","dev:esm":"smallfish transpile --watch","dev:lib":"smallfish dev -s library","lint:fix":"npm run lint -- --fix","test:cov":"vitest run --coverage","stylelint":"fishlint stylelint","commitlint":"fishlint commitlint","oneapi:init":"smallfish oneapi --init","oneapi:mock":"smallfish oneapi --mock","projectlint":"fishlint projectlint","stylelint:fix":"npm run stylelint -- --fix","oneapi:service":"smallfish oneapi --service","prepublishOnly":"smallfish build -s all --deploy --deploy-mode=assets"},"yuyanId":"180020010101339141","_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"dumiAssets":"assets.json","repository":{"url":"https://code.alipay.com/industryprod/carLifeH5Components","type":"git"},"_npmVersion":"11.9.0","description":"- 安装依赖：","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@babel/runtime":"^7.21.5"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.1.0","react":"18.2.0","vitest":"^3.2.4","prettier":"^3","react-dom":"18.2.0","typescript":"^4","@types/react":"18","@alipay/fast-spm":"^4","@alipay/fishlint":"^1.0.0","@types/react-dom":"18","@alipay/smallfish":"^2.2.11","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.0","@vitest/coverage-istanbul":"^3.2.4","@alipay/smallfish-plugin-app":"^2.2.11","@alipay/smallfish-plugin-hitu":"^2.2.11","@alipay/smallfish-plugin-bakery":"^1.1.2","@alipay/smallfish-plugin-component":"^2.2.11","@alipay/smallfish-plugin-comp-antlog":"^1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/carlife-h5-ulink_1.0.4_1789456803910_0.58540086452793","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@alipay/carlife-h5-ulink","version":"1.0.5","main":"dist/index.umd.js","module":"esm/index.js","types":"esm/index.d.ts","dumiAssets":"assets.json","scripts":{"start":"npm run dev","dev":"smallfish dev","dev:doc":"smallfish dev --doc=true","dev:esm":"smallfish transpile --watch","dev:lib":"smallfish dev -s library","mock":"smallfish dev --mock","build":"smallfish build -s all","oneapi:init":"smallfish oneapi --init","oneapi:service":"smallfish oneapi --service","oneapi:mock":"smallfish oneapi --mock","deploy":"smallfish build -s all --deploy","analyze":"smallfish build -s library --analyze","prepublishOnly":"smallfish build -s all --deploy --deploy-mode=assets","commitlint":"fishlint commitlint","lint":"fishlint eslint","lint:fix":"npm run lint -- --fix","format":"fishlint format","stylelint":"fishlint stylelint","stylelint:fix":"npm run stylelint -- --fix","test":"vitest","test:cov":"vitest run --coverage","projectlint":"fishlint projectlint"},"dependencies":{"@babel/runtime":"^7.21.5"},"devDependencies":{"@alipay/fast-spm":"^4","@alipay/fishlint":"^1.0.0","@alipay/smallfish":"^2.2.11","@alipay/smallfish-plugin-app":"^2.2.11","@alipay/smallfish-plugin-bakery":"^1.1.2","@alipay/smallfish-plugin-comp-antlog":"^1.1.6","@alipay/smallfish-plugin-component":"^2.2.11","@alipay/smallfish-plugin-hitu":"^2.2.11","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.0","@types/react":"18","@types/react-dom":"18","@vitest/coverage-istanbul":"^3.2.4","jsdom":"^26.1.0","prettier":"^3","react":"18.2.0","react-dom":"18.2.0","typescript":"^4","vitest":"^3.2.4"},"tnpm":{"mode":"npm"},"engines":{"node":">=20.0.0"},"description":"- 安装依赖：","author":{"name":"hr374614"},"yuyanId":"180020010101339141","repository":{"type":"git","url":"https://code.alipay.com/industryprod/carLifeH5Components"},"gitHead":"fe305c19ab042221f7d7effffa385681bf868190","_id":"@alipay/carlife-h5-ulink@1.0.5","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-jmeueNazgJSy45q/KrWSMTBMTp6ExH2uUr3eB6b1sgEs9TEPhUmkGiSjPKxE6xvlinhLeg/IqsVgTFOz04A7dw==","shasum":"edde4061f8fcf35dd97a5eea33979e74f1e19036","tarball":"https://registry.npmjs.org/@alipay/carlife-h5-ulink/-/carlife-h5-ulink-1.0.5.tgz","fileCount":99,"unpackedSize":2624410,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHIh+nnESZfy+o9Qx6w2JZAt4PIn2ktsnos3Wq27D7JAIgMqG/IhOymWU1c+P5OUj/LlsAyHg+Gi+JWMgkG3c3iDQ="}]},"_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"directories":{},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/carlife-h5-ulink_1.0.5_1789458466416_0.060303197797738184"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T07:31:43.136Z","modified":"2026-09-15T07:47:46.753Z","0.0.0":"2026-09-02T07:31:43.502Z","1.0.2":"2026-09-02T08:09:04.520Z","1.0.3":"2026-09-08T08:02:45.286Z","1.0.4":"2026-09-15T07:20:04.043Z","1.0.5":"2026-09-15T07:47:46.579Z"},"author":{"name":"hr374614"},"repository":{"type":"git","url":"https://code.alipay.com/industryprod/carLifeH5Components"},"description":"- 安装依赖：","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"readme":"# @alipay/carlife-h5\n\n## Usage\n\n- 安装依赖：\n\n```bash\ntnpm install\n```\n\n- 启动 Dev Server:\n\n```bash\ntnpm run dev\n```\n\n- 启动 Dev Server w/ Bakery Mock:\n\n```bash\ntnpm run mock\n```\n\n## CouponModal 加载结果回调\n\n`onLoadResult` 为可选回调，在首次 `visible=true` 加载及每次调用 `ref.reset()` 的请求结束后触发。\n单纯挂载且 `visible=false` 时不会请求或回调；重复打开不会重新加载，需调用 `reset()`。\n\n```tsx | pure\nimport { CouponModal, type CouponLoadResult } from '@alipay/carlife-h5';\n\nconst handleLoadResult = (result: CouponLoadResult) => {\n  if (!result.success) {\n    console.log(result.msg);\n  }\n};\n\n<CouponModal\n  visible={visible}\n  onClose={() => setVisible(false)}\n  onConfirm={handleConfirm}\n  onLoadResult={handleLoadResult}\n/>;\n```\n\n回调仅包含 `success` 和 `msg`：\n\n- 成功取到有效券：`{ success: true, msg: '调用成功' }`。\n- 无有效券、业务失败或请求异常：`{ success: false, msg: '调用失败' }`。\n\n## License\n\nCopyright (c) 2021-present, Ant Financial\n","readmeFilename":"README.md"}