@windrun-huaiin/third-ui 7.3.11 → 7.3.13
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/dist/_virtual/cytoscape-cose-bilkent.js +1 -1
- package/dist/_virtual/cytoscape-cose-bilkent.mjs +1 -1
- package/dist/_virtual/cytoscape-fcose.js +1 -1
- package/dist/_virtual/cytoscape-fcose.mjs +1 -1
- package/dist/lib/clerk-intl.d.ts +3 -4566
- package/dist/main/faq.js +0 -1
- package/dist/main/faq.mjs +0 -1
- package/dist/main/gallery.js +0 -1
- package/dist/main/gallery.mjs +0 -1
- package/dist/main/money-price/money-price-button.js +36 -15
- package/dist/main/money-price/money-price-button.mjs +36 -15
- package/dist/main/money-price/money-price-interactive.js +15 -9
- package/dist/main/money-price/money-price-interactive.mjs +16 -10
- package/dist/main/money-price/money-price.js +1 -14
- package/dist/main/money-price/money-price.mjs +1 -14
- package/dist/main/price-plan.js +0 -1
- package/dist/main/price-plan.mjs +0 -1
- package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js +1 -1
- package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js +1 -1
- package/dist/node_modules/.pnpm/{cytoscape@3.33.0 → cytoscape@3.33.1}/node_modules/cytoscape/dist/cytoscape.esm.js +19 -2
- package/dist/node_modules/.pnpm/{cytoscape@3.33.0 → cytoscape@3.33.1}/node_modules/cytoscape/dist/cytoscape.esm.mjs +19 -2
- package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js +1 -1
- package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js +1 -1
- package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-SUXI7LT5.js +1 -1
- package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-SUXI7LT5.mjs +1 -1
- package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-6CBA2TL7.js +1 -1
- package/dist/node_modules/.pnpm/mermaid@11.9.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-6CBA2TL7.mjs +1 -1
- package/package.json +1 -1
- package/src/main/money-price/money-price-button.tsx +48 -24
- package/src/main/money-price/money-price-interactive.tsx +38 -21
- package/src/main/money-price/money-price.tsx +6 -8
- package/dist/clerk/client-page-generator.d.ts +0 -10
- package/dist/clerk/client-page-generator.js +0 -28
- package/dist/clerk/client-page-generator.mjs +0 -25
- package/dist/clerk/context/FingerprintProvider.d.ts +0 -25
- package/dist/clerk/context/FingerprintProvider.js +0 -71
- package/dist/clerk/context/FingerprintProvider.mjs +0 -65
- package/dist/clerk/fingerprint/fingerprint.d.ts +0 -55
- package/dist/clerk/fingerprint/fingerprint.js +0 -17
- package/dist/clerk/fingerprint/fingerprint.mjs +0 -15
- package/dist/clerk/fingerprint.d.ts +0 -55
- package/dist/clerk/fingerprint.js +0 -237
- package/dist/clerk/fingerprint.mjs +0 -225
- package/dist/clerk/hooks/useFingerprint.d.ts +0 -6
- package/dist/clerk/hooks/useFingerprint.js +0 -182
- package/dist/clerk/hooks/useFingerprint.mjs +0 -180
- package/dist/clerk/types.d.ts +0 -42
- package/dist/main/money-price/money-price-config.d.ts +0 -8
- package/dist/main/money-price/money-price-config.js +0 -223
- package/dist/main/money-price/money-price-config.mjs +0 -219
- /package/dist/node_modules/.pnpm/{cytoscape-cose-bilkent@4.1.0_cytoscape@3.33.0 → cytoscape-cose-bilkent@4.1.0_cytoscape@3.33.1}/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +0 -0
- /package/dist/node_modules/.pnpm/{cytoscape-cose-bilkent@4.1.0_cytoscape@3.33.0 → cytoscape-cose-bilkent@4.1.0_cytoscape@3.33.1}/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +0 -0
- /package/dist/node_modules/.pnpm/{cytoscape-fcose@2.2.0_cytoscape@3.33.0 → cytoscape-fcose@2.2.0_cytoscape@3.33.1}/node_modules/cytoscape-fcose/cytoscape-fcose.js +0 -0
- /package/dist/node_modules/.pnpm/{cytoscape-fcose@2.2.0_cytoscape@3.33.0 → cytoscape-fcose@2.2.0_cytoscape@3.33.1}/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +0 -0
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Money Price Configuration
|
|
3
|
-
* 价格组件配置文件
|
|
4
|
-
*/
|
|
5
|
-
// 示例配置
|
|
6
|
-
const moneyPriceConfig = {
|
|
7
|
-
paymentProviders: {
|
|
8
|
-
stripe: {
|
|
9
|
-
provider: 'stripe',
|
|
10
|
-
enabled: true,
|
|
11
|
-
products: {
|
|
12
|
-
free: {
|
|
13
|
-
key: 'free',
|
|
14
|
-
name: 'free', // Just a key, actual display name comes from translation
|
|
15
|
-
plans: {
|
|
16
|
-
monthly: {
|
|
17
|
-
priceId: 'free',
|
|
18
|
-
amount: 0,
|
|
19
|
-
currency: 'usd',
|
|
20
|
-
credits: 0
|
|
21
|
-
},
|
|
22
|
-
yearly: {
|
|
23
|
-
priceId: 'free',
|
|
24
|
-
amount: 0,
|
|
25
|
-
currency: 'usd',
|
|
26
|
-
credits: 0
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
pro: {
|
|
31
|
-
key: 'pro',
|
|
32
|
-
name: 'pro', // Just a key, actual display name comes from translation
|
|
33
|
-
plans: {
|
|
34
|
-
monthly: {
|
|
35
|
-
priceId: process.env.NEXT_PUBLIC_STRIPE_PRO_MONTHLY_PRICE_ID || 'price_pro_monthly',
|
|
36
|
-
amount: Number(process.env.NEXT_PUBLIC_STRIPE_PRO_MONTHLY_AMOUNT) || 10,
|
|
37
|
-
currency: process.env.NEXT_PUBLIC_STRIPE_PRO_MONTHLY_CURRENCY || 'usd',
|
|
38
|
-
credits: Number(process.env.NEXT_PUBLIC_STRIPE_PRO_MONTHLY_CREDITS) || 100
|
|
39
|
-
},
|
|
40
|
-
yearly: {
|
|
41
|
-
priceId: process.env.NEXT_PUBLIC_STRIPE_PRO_YEARLY_PRICE_ID || 'price_pro_yearly',
|
|
42
|
-
amount: Number(process.env.NEXT_PUBLIC_STRIPE_PRO_YEARLY_AMOUNT) || 96,
|
|
43
|
-
originalAmount: 120,
|
|
44
|
-
discountPercent: 20,
|
|
45
|
-
currency: process.env.NEXT_PUBLIC_STRIPE_PRO_YEARLY_CURRENCY || 'usd',
|
|
46
|
-
credits: Number(process.env.NEXT_PUBLIC_STRIPE_PRO_YEARLY_CREDITS) || 1200
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
ultra: {
|
|
51
|
-
key: 'ultra',
|
|
52
|
-
name: 'ultra', // Just a key, actual display name comes from translation
|
|
53
|
-
plans: {
|
|
54
|
-
monthly: {
|
|
55
|
-
priceId: process.env.NEXT_PUBLIC_STRIPE_ULTRA_MONTHLY_PRICE_ID || 'price_ultra_monthly',
|
|
56
|
-
amount: Number(process.env.NEXT_PUBLIC_STRIPE_ULTRA_MONTHLY_AMOUNT) || 20,
|
|
57
|
-
currency: process.env.NEXT_PUBLIC_STRIPE_ULTRA_MONTHLY_CURRENCY || 'usd',
|
|
58
|
-
credits: Number(process.env.NEXT_PUBLIC_STRIPE_ULTRA_MONTHLY_CREDITS) || 250
|
|
59
|
-
},
|
|
60
|
-
yearly: {
|
|
61
|
-
priceId: process.env.NEXT_PUBLIC_STRIPE_ULTRA_YEARLY_PRICE_ID || 'price_ultra_yearly',
|
|
62
|
-
amount: Number(process.env.NEXT_PUBLIC_STRIPE_ULTRA_YEARLY_AMOUNT) || 192,
|
|
63
|
-
originalAmount: 240,
|
|
64
|
-
discountPercent: 20,
|
|
65
|
-
currency: process.env.NEXT_PUBLIC_STRIPE_ULTRA_YEARLY_CURRENCY || 'usd',
|
|
66
|
-
credits: Number(process.env.NEXT_PUBLIC_STRIPE_ULTRA_YEARLY_CREDITS) || 3000
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
alipay: {
|
|
73
|
-
provider: 'alipay',
|
|
74
|
-
enabled: false,
|
|
75
|
-
products: {
|
|
76
|
-
free: {
|
|
77
|
-
key: 'free',
|
|
78
|
-
name: 'free',
|
|
79
|
-
plans: {
|
|
80
|
-
monthly: {
|
|
81
|
-
priceId: 'free',
|
|
82
|
-
amount: 0,
|
|
83
|
-
currency: 'cny',
|
|
84
|
-
credits: 0
|
|
85
|
-
},
|
|
86
|
-
yearly: {
|
|
87
|
-
priceId: 'free',
|
|
88
|
-
amount: 0,
|
|
89
|
-
currency: 'cny',
|
|
90
|
-
credits: 0
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
pro: {
|
|
95
|
-
key: 'pro',
|
|
96
|
-
name: 'pro',
|
|
97
|
-
plans: {
|
|
98
|
-
monthly: {
|
|
99
|
-
priceId: 'alipay_pro_monthly',
|
|
100
|
-
amount: 70,
|
|
101
|
-
currency: 'cny',
|
|
102
|
-
credits: 100
|
|
103
|
-
},
|
|
104
|
-
yearly: {
|
|
105
|
-
priceId: 'alipay_pro_yearly',
|
|
106
|
-
amount: 672,
|
|
107
|
-
originalAmount: 840,
|
|
108
|
-
discountPercent: 20,
|
|
109
|
-
currency: 'cny',
|
|
110
|
-
credits: 1200
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
ultra: {
|
|
115
|
-
key: 'ultra',
|
|
116
|
-
name: 'ultra',
|
|
117
|
-
plans: {
|
|
118
|
-
monthly: {
|
|
119
|
-
priceId: 'alipay_ultra_monthly',
|
|
120
|
-
amount: 140,
|
|
121
|
-
currency: 'cny',
|
|
122
|
-
credits: 250
|
|
123
|
-
},
|
|
124
|
-
yearly: {
|
|
125
|
-
priceId: 'alipay_ultra_yearly',
|
|
126
|
-
amount: 1344,
|
|
127
|
-
originalAmount: 1680,
|
|
128
|
-
discountPercent: 20,
|
|
129
|
-
currency: 'cny',
|
|
130
|
-
credits: 3000
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
wechat: {
|
|
137
|
-
provider: 'wechat',
|
|
138
|
-
enabled: false,
|
|
139
|
-
products: {
|
|
140
|
-
free: {
|
|
141
|
-
key: 'free',
|
|
142
|
-
name: 'free',
|
|
143
|
-
plans: {
|
|
144
|
-
monthly: {
|
|
145
|
-
priceId: 'free',
|
|
146
|
-
amount: 0,
|
|
147
|
-
currency: 'cny',
|
|
148
|
-
credits: 0
|
|
149
|
-
},
|
|
150
|
-
yearly: {
|
|
151
|
-
priceId: 'free',
|
|
152
|
-
amount: 0,
|
|
153
|
-
currency: 'cny',
|
|
154
|
-
credits: 0
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
pro: {
|
|
159
|
-
key: 'pro',
|
|
160
|
-
name: 'pro',
|
|
161
|
-
plans: {
|
|
162
|
-
monthly: {
|
|
163
|
-
priceId: 'wechat_pro_monthly',
|
|
164
|
-
amount: 70,
|
|
165
|
-
currency: 'cny',
|
|
166
|
-
credits: 100
|
|
167
|
-
},
|
|
168
|
-
yearly: {
|
|
169
|
-
priceId: 'wechat_pro_yearly',
|
|
170
|
-
amount: 672,
|
|
171
|
-
originalAmount: 840,
|
|
172
|
-
discountPercent: 20,
|
|
173
|
-
currency: 'cny',
|
|
174
|
-
credits: 1200
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
ultra: {
|
|
179
|
-
key: 'ultra',
|
|
180
|
-
name: 'ultra',
|
|
181
|
-
plans: {
|
|
182
|
-
monthly: {
|
|
183
|
-
priceId: 'wechat_ultra_monthly',
|
|
184
|
-
amount: 140,
|
|
185
|
-
currency: 'cny',
|
|
186
|
-
credits: 250
|
|
187
|
-
},
|
|
188
|
-
yearly: {
|
|
189
|
-
priceId: 'wechat_ultra_yearly',
|
|
190
|
-
amount: 1344,
|
|
191
|
-
originalAmount: 1680,
|
|
192
|
-
discountPercent: 20,
|
|
193
|
-
currency: 'cny',
|
|
194
|
-
credits: 3000
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
activeProvider: process.env.NEXT_PUBLIC_ACTIVE_PAYMENT_PROVIDER || 'stripe',
|
|
202
|
-
display: {
|
|
203
|
-
currency: '$',
|
|
204
|
-
locale: 'en',
|
|
205
|
-
minFeaturesCount: 4
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
// 辅助函数:获取当前激活的支付供应商配置
|
|
209
|
-
function getActiveProviderConfig(config) {
|
|
210
|
-
const provider = config.activeProvider;
|
|
211
|
-
return config.paymentProviders[provider];
|
|
212
|
-
}
|
|
213
|
-
// 辅助函数:获取特定产品的价格信息
|
|
214
|
-
function getProductPricing(productKey, billingType, provider, config) {
|
|
215
|
-
const providerConfig = config.paymentProviders[provider];
|
|
216
|
-
return providerConfig.products[productKey].plans[billingType];
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export { getActiveProviderConfig, getProductPricing, moneyPriceConfig };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|