重构(共享导出): 会员商品 id helper 提升为公共导出

- packages/shared/src/index.ts 导出 resolveMembershipProductId
- useAccountWallet 改从 @genarrative/shared 公共入口引入,去掉对弹层私有文件结构的深路径依赖
This commit is contained in:
2026-10-05 17:34:27 +08:00
parent ff1e15194d
commit 92a8fa1b66
2 changed files with 2 additions and 1 deletions
@@ -1,7 +1,7 @@
import { resolveMembershipProductId } from '@genarrative/shared';
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
import { type PlatformProfileRechargeNativePaymentState } from '../../../../../packages/shared/src/components/PlatformProfileRechargeModal';
import { resolveMembershipProductId } from '../../../../../packages/shared/src/components/PlatformProfileRechargeModal/membershipProduct';
import type {
ProfileMembershipCycleKind,
ProfileMembershipPlan,
+1
View File
@@ -1,4 +1,5 @@
export * from './components';
export * from './components/PlatformProfileRechargeModal/membershipProduct';
export * from './contracts/auth';
export type * from './contracts/clientDownload';
export * from './contracts/common';