@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.
@@ -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 { jsxs, Fragment, jsx } from 'react/jsx-runtime';
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-base2.js');
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-base.mjs';
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-base.js');
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-base2.mjs';
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;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var layoutBase$1 = require('../../../../../_virtual/layout-base2.js');
3
+ var layoutBase$1 = require('../../../../../_virtual/layout-base.js');
4
4
 
5
5
  var layoutBase = layoutBase$1.__module.exports;
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var layoutBase$1 = require('../../../../../_virtual/layout-base.js');
3
+ var layoutBase$1 = require('../../../../../_virtual/layout-base2.js');
4
4
 
5
5
  var layoutBase = layoutBase$1.__module.exports;
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/third-ui",
3
- "version": "7.3.8",
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/lib": "^7.1.2",
79
- "@windrun-huaiin/base-ui": "^8.1.2"
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
  }