diff --git a/package.json b/package.json index b1ab0a1..19bb35d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-iztro", - "version": "1.3.2", + "version": "1.3.3", "description": "基于iztro实现的react紫微斗数星盘组件。A react component used to generate an astrolabe of ziweidoushu based on iztro.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -67,9 +67,9 @@ }, "dependencies": { "classnames": "^2.3.2", - "iztro": "2.3.2", - "iztro-hook": "1.2.14", - "lunar-lite": "^0.1.2" + "iztro": "2.4.1", + "iztro-hook": "1.2.16", + "lunar-lite": "^0.2.0" }, "resolutions": { "jackspeak": "2.1.1" diff --git a/src/Iztrolabe/Iztrolabe.stories.tsx b/src/Iztrolabe/Iztrolabe.stories.tsx index 11be995..54a2ebc 100644 --- a/src/Iztrolabe/Iztrolabe.stories.tsx +++ b/src/Iztrolabe/Iztrolabe.stories.tsx @@ -84,4 +84,7 @@ Iztrolabe.args = { birthdayType: "solar", isLeapMonth: false, fixLeap: true, + options: { + yearDivide: "exact", + }, }; diff --git a/src/Iztrolabe/Iztrolabe.tsx b/src/Iztrolabe/Iztrolabe.tsx index d5cef39..a6a3ee9 100644 --- a/src/Iztrolabe/Iztrolabe.tsx +++ b/src/Iztrolabe/Iztrolabe.tsx @@ -32,6 +32,7 @@ export const Iztrolabe: React.FC = (props) => { fixLeap: props.fixLeap, isLeapMonth: props.isLeapMonth, lang: props.lang, + options: props.options, }); const toggleShowScope = (scope: Scope) => { diff --git a/yarn.lock b/yarn.lock index 0a9f2ce..68cabec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5761,21 +5761,21 @@ istanbul-reports@^3.1.4: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -iztro-hook@1.2.14: - version "1.2.14" - resolved "https://registry.npmjs.org/iztro-hook/-/iztro-hook-1.2.14.tgz#d2b1b0c33e991cbae1e8573b1baab149bbf8b43d" - integrity sha512-OIpWmhMeszEGkDlCsPx6YuW9jc2Dtl3je19kL/LQ7m2EcQl0c2IhYjW9+qpbLkeR2VU8pwAVieiVjffGDUN+ow== +iztro-hook@1.2.16: + version "1.2.16" + resolved "https://registry.npmjs.org/iztro-hook/-/iztro-hook-1.2.16.tgz#ae66cd5077c11c61f4defc21c04ef230f02963ab" + integrity sha512-ZHu98n1HLYgkxt9QH6rhptRrP7Azwv6tzQezF0OIWCFBacY1htYKLzUYgDG7hajlqZvYBMmICt2/t0l2Zc8c8g== dependencies: - iztro "2.3.2" + iztro "2.4.1" -iztro@2.3.2: - version "2.3.2" - resolved "https://registry.npmjs.org/iztro/-/iztro-2.3.2.tgz#33ee0517da715e8ef3406950dabdb2dbd1da1582" - integrity sha512-JIWD/BaSpPBaB/hqC6bWuRMeNE/wPPlZ1s0COdkV1NnCIg3SSwuWCDRyQPEiRKjJbXDu3c4jK3LZQONwLUf/UA== +iztro@2.4.1: + version "2.4.1" + resolved "https://registry.npmjs.org/iztro/-/iztro-2.4.1.tgz#1832a3125061bf9137af948ff74682122526cb3c" + integrity sha512-sVNLxLcRJ932pQ4tuToI95WY4sxb3Gh/iBTHV0FQeL0oEW3r1n5OI2xm0KmLOQcqcLtkidGqqWC2kO0YYNT5zw== dependencies: dayjs "^1.11.10" i18next "^23.5.1" - lunar-lite "^0.1.2" + lunar-lite "^0.2.0" jackspeak@2.1.1, jackspeak@^2.0.3: version "2.1.1" @@ -6096,10 +6096,10 @@ lru-cache@^6.0.0: resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz#0a3be479df549cca0e5d693ac402ff19537a6b7a" integrity sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g== -lunar-lite@^0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/lunar-lite/-/lunar-lite-0.1.2.tgz#a66b08cbc6c8df3a31d4e166052593662f489144" - integrity sha512-3SKo8zTDdbS1Ynn4qHUPNOW9oviqL8d2qdHSMS9jfNbmIdh6DbYKaY9dnXpMS5I1dzG9ztAuwVJ8MBAupv89aA== +lunar-lite@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/lunar-lite/-/lunar-lite-0.2.0.tgz#12214860bb753b0840aaf553ae3754b4c4998af1" + integrity sha512-Dskql5YCpd6xjtXj3Rl61A1qxT0zaPdold/tM/n6m0r7bfZ6FfEFom7zzKPJMuD0XUNji5C/ItuaMR+LAjqAVQ== dependencies: lunar-typescript "^1.7.3"