@windrun-huaiin/third-ui 7.3.8 → 7.3.9
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/main/money-price/money-price-interactive.js +2 -2
- package/dist/main/money-price/money-price-interactive.mjs +3 -3
- 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@1.0.3/node_modules/cose-base/cose-base.mjs +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/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +1 -1
- 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/package.json +3 -3
- package/src/main/money-price/money-price-interactive.tsx +15 -19
|
@@ -235,6 +235,7 @@ function MoneyPriceInteractive({ data, config, upgradeApiEndpoint, signInPath })
|
|
|
235
235
|
});
|
|
236
236
|
updatePriceDisplay(billingType);
|
|
237
237
|
updateDiscountInfo(billingType);
|
|
238
|
+
data.plans.map((plan) => (jsxRuntime.jsx("div", { "data-button-placeholder": plan.key, children: jsxRuntime.jsx(moneyPriceButton.MoneyPriceButton, { planKey: plan.key, userContext: userContext, billingType: billingType, onLogin: handleLogin, onUpgrade: handleUpgrade, texts: data.buttonTexts, isProcessing: isProcessing }) }, plan.key)));
|
|
238
239
|
return () => {
|
|
239
240
|
if (monthlyButton) {
|
|
240
241
|
monthlyButton.removeEventListener('click', handleMonthlyClick);
|
|
@@ -265,8 +266,7 @@ function MoneyPriceInteractive({ data, config, upgradeApiEndpoint, signInPath })
|
|
|
265
266
|
};
|
|
266
267
|
return (jsxRuntime.jsx("div", { style: style, className: "bg-gray-700 dark:bg-gray-200 text-gray-100 dark:text-gray-800 text-xs leading-relaxed px-3 py-2 rounded-lg shadow-lg border border-gray-300 dark:border-gray-600 backdrop-blur-sm", children: content }));
|
|
267
268
|
};
|
|
268
|
-
|
|
269
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [data.plans.map((plan) => (jsxRuntime.jsx("div", { "data-button-placeholder": plan.key, children: jsxRuntime.jsx(moneyPriceButton.MoneyPriceButton, { planKey: plan.key, userContext: userContext, billingType: billingType, onLogin: handleLogin, onUpgrade: handleUpgrade, texts: data.buttonTexts, isProcessing: isProcessing }) }, plan.key))), jsxRuntime.jsx(Tooltip, Object.assign({}, tooltip))] }));
|
|
269
|
+
return jsxRuntime.jsx(Tooltip, Object.assign({}, tooltip));
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
exports.MoneyPriceInteractive = MoneyPriceInteractive;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { __awaiter } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { useClerk } from '@clerk/nextjs';
|
|
5
5
|
import { useState, useCallback, useMemo, useEffect } from 'react';
|
|
6
6
|
import { useFingerprintContextSafe } from '../../clerk/fingerprint/fingerprint-provider.mjs';
|
|
@@ -233,6 +233,7 @@ function MoneyPriceInteractive({ data, config, upgradeApiEndpoint, signInPath })
|
|
|
233
233
|
});
|
|
234
234
|
updatePriceDisplay(billingType);
|
|
235
235
|
updateDiscountInfo(billingType);
|
|
236
|
+
data.plans.map((plan) => (jsx("div", { "data-button-placeholder": plan.key, children: jsx(MoneyPriceButton, { planKey: plan.key, userContext: userContext, billingType: billingType, onLogin: handleLogin, onUpgrade: handleUpgrade, texts: data.buttonTexts, isProcessing: isProcessing }) }, plan.key)));
|
|
236
237
|
return () => {
|
|
237
238
|
if (monthlyButton) {
|
|
238
239
|
monthlyButton.removeEventListener('click', handleMonthlyClick);
|
|
@@ -263,8 +264,7 @@ function MoneyPriceInteractive({ data, config, upgradeApiEndpoint, signInPath })
|
|
|
263
264
|
};
|
|
264
265
|
return (jsx("div", { style: style, className: "bg-gray-700 dark:bg-gray-200 text-gray-100 dark:text-gray-800 text-xs leading-relaxed px-3 py-2 rounded-lg shadow-lg border border-gray-300 dark:border-gray-600 backdrop-blur-sm", children: content }));
|
|
265
266
|
};
|
|
266
|
-
|
|
267
|
-
return (jsxs(Fragment, { children: [data.plans.map((plan) => (jsx("div", { "data-button-placeholder": plan.key, children: jsx(MoneyPriceButton, { planKey: plan.key, userContext: userContext, billingType: billingType, onLogin: handleLogin, onUpgrade: handleUpgrade, texts: data.buttonTexts, isProcessing: isProcessing }) }, plan.key))), jsx(Tooltip, Object.assign({}, tooltip))] }));
|
|
267
|
+
return jsx(Tooltip, Object.assign({}, tooltip));
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
export { MoneyPriceInteractive };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var coseBase$1 = require('../../../../../_virtual/cose-
|
|
3
|
+
var coseBase$1 = require('../../../../../_virtual/cose-base.js');
|
|
4
4
|
var layoutBase = require('../../../layout-base@1.0.2/node_modules/layout-base/layout-base.js');
|
|
5
5
|
|
|
6
6
|
var coseBase = coseBase$1.__module.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as coseBase$1 } from '../../../../../_virtual/cose-
|
|
1
|
+
import { __module as coseBase$1 } from '../../../../../_virtual/cose-base2.mjs';
|
|
2
2
|
import { __require as requireLayoutBase } from '../../../layout-base@1.0.2/node_modules/layout-base/layout-base.mjs';
|
|
3
3
|
|
|
4
4
|
var coseBase = coseBase$1.exports;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var coseBase$1 = require('../../../../../_virtual/cose-
|
|
3
|
+
var coseBase$1 = require('../../../../../_virtual/cose-base2.js');
|
|
4
4
|
var layoutBase = require('../../../layout-base@2.0.1/node_modules/layout-base/layout-base.js');
|
|
5
5
|
|
|
6
6
|
var coseBase = coseBase$1.__module.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as coseBase$1 } from '../../../../../_virtual/cose-
|
|
1
|
+
import { __module as coseBase$1 } from '../../../../../_virtual/cose-base.mjs';
|
|
2
2
|
import { __require as requireLayoutBase } from '../../../layout-base@2.0.1/node_modules/layout-base/layout-base.mjs';
|
|
3
3
|
|
|
4
4
|
var coseBase = coseBase$1.exports;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/third-ui",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.9",
|
|
4
4
|
"description": "Third-party integrated UI components for windrun-huaiin projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"mermaid": "^11.6.0",
|
|
76
76
|
"react-medium-image-zoom": "^5.2.14",
|
|
77
77
|
"zod": "^3.22.4",
|
|
78
|
-
"@windrun-huaiin/
|
|
79
|
-
"@windrun-huaiin/
|
|
78
|
+
"@windrun-huaiin/base-ui": "^8.1.2",
|
|
79
|
+
"@windrun-huaiin/lib": "^7.1.2"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"react": "19.1.0",
|
|
@@ -277,6 +277,20 @@ export function MoneyPriceInteractive({
|
|
|
277
277
|
|
|
278
278
|
updatePriceDisplay(billingType);
|
|
279
279
|
updateDiscountInfo(billingType);
|
|
280
|
+
|
|
281
|
+
data.plans.map((plan: any) => (
|
|
282
|
+
<div key={plan.key} data-button-placeholder={plan.key}>
|
|
283
|
+
<MoneyPriceButton
|
|
284
|
+
planKey={plan.key}
|
|
285
|
+
userContext={userContext}
|
|
286
|
+
billingType={billingType}
|
|
287
|
+
onLogin={handleLogin}
|
|
288
|
+
onUpgrade={handleUpgrade}
|
|
289
|
+
texts={data.buttonTexts}
|
|
290
|
+
isProcessing={isProcessing}
|
|
291
|
+
/>
|
|
292
|
+
</div>
|
|
293
|
+
))
|
|
280
294
|
|
|
281
295
|
return () => {
|
|
282
296
|
if (monthlyButton) {
|
|
@@ -317,23 +331,5 @@ export function MoneyPriceInteractive({
|
|
|
317
331
|
);
|
|
318
332
|
};
|
|
319
333
|
|
|
320
|
-
|
|
321
|
-
return (
|
|
322
|
-
<>
|
|
323
|
-
{data.plans.map((plan: any) => (
|
|
324
|
-
<div key={plan.key} data-button-placeholder={plan.key}>
|
|
325
|
-
<MoneyPriceButton
|
|
326
|
-
planKey={plan.key}
|
|
327
|
-
userContext={userContext}
|
|
328
|
-
billingType={billingType}
|
|
329
|
-
onLogin={handleLogin}
|
|
330
|
-
onUpgrade={handleUpgrade}
|
|
331
|
-
texts={data.buttonTexts}
|
|
332
|
-
isProcessing={isProcessing}
|
|
333
|
-
/>
|
|
334
|
-
</div>
|
|
335
|
-
))}
|
|
336
|
-
<Tooltip {...tooltip} />
|
|
337
|
-
</>
|
|
338
|
-
);
|
|
334
|
+
return <Tooltip {...tooltip} />
|
|
339
335
|
}
|