@windrun-huaiin/third-ui 7.5.1 → 7.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/third-ui",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "description": "Third-party integrated UI components for windrun-huaiin projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -248,20 +248,6 @@ export function MoneyPriceInteractive({
248
248
  // State for button portals
249
249
  const [buttonPortals, setButtonPortals] = useState<React.ReactElement[]>([]);
250
250
 
251
- // 当 fingerprint context 变化时,更新 billing type 以匹配用户的订阅状态
252
- useEffect(() => {
253
- const newBillingType = getInitialBillingType();
254
- if (newBillingType !== billingType) {
255
- setBillingType(newBillingType);
256
- // 延迟执行以确保 DOM 已渲染
257
- setTimeout(() => {
258
- updatePriceDisplay(newBillingType);
259
- updateButtonStyles(newBillingType);
260
- updateDiscountInfo(newBillingType);
261
- }, 0);
262
- }
263
- }, [fingerprintContext, getInitialBillingType, billingType, updatePriceDisplay, updateButtonStyles, updateDiscountInfo]);
264
-
265
251
  // 处理月付/年付切换和 tooltip 功能
266
252
  useEffect(() => {
267
253
  const monthlyButton = document.querySelector('[data-billing-button="monthly"]') as HTMLButtonElement;