@pisell/private-materials 6.6.6 → 6.6.8
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +15 -10
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/package.json +4 -4
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/pay/toC/locales.d.ts +0 -301
- package/es/components/pay/toC/status.d.ts +0 -13
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -27
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/plus/selectHolder/types.d.ts +0 -104
- package/es/plus/selectHolder/utils.d.ts +0 -9
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/es/plus/walletEditor/locales.d.ts +0 -135
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -285
- package/es/plus/walletPassGallery/utils.d.ts +0 -48
- package/es/pro/Login2.0/hooks/index.d.ts +0 -2
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/Header.d.ts +0 -11
- package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/es/pro/Login2.0/shared/types.d.ts +0 -232
- package/es/pro/Login2.0/types.d.ts +0 -167
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/pay/toC/locales.d.ts +0 -301
- package/lib/components/pay/toC/status.d.ts +0 -13
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -27
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/plus/selectHolder/types.d.ts +0 -104
- package/lib/plus/selectHolder/utils.d.ts +0 -9
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/lib/plus/walletEditor/locales.d.ts +0 -135
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -285
- package/lib/plus/walletPassGallery/utils.d.ts +0 -48
- package/lib/pro/Login2.0/hooks/index.d.ts +0 -2
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/Header.d.ts +0 -11
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/lib/pro/Login2.0/shared/types.d.ts +0 -232
- package/lib/pro/Login2.0/types.d.ts +0 -167
|
@@ -2078,7 +2078,7 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2078
2078
|
useEffect(function () {
|
|
2079
2079
|
var initCheckoutData = /*#__PURE__*/function () {
|
|
2080
2080
|
var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
2081
|
-
var checkout, shop_wallet_pass_id, newData, _newData$subtotal_inf, _newData$subtotal_inf2, _orderInfo2, _data$subtotal_info, _data$subtotal_info2, _orderInfo4;
|
|
2081
|
+
var checkout, shop_wallet_pass_id, newData, _newData$subtotal_inf, _newData$subtotal_inf2, _orderInfo2, _data$subtotal_info, _data$subtotal_info2, _orderInfo4, domain;
|
|
2082
2082
|
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
2083
2083
|
while (1) switch (_context23.prev = _context23.next) {
|
|
2084
2084
|
case 0:
|
|
@@ -2095,7 +2095,7 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2095
2095
|
case 6:
|
|
2096
2096
|
shop_wallet_pass_id = _context23.sent;
|
|
2097
2097
|
checkout.setOtherParams({
|
|
2098
|
-
is_price_include_tax: getData('is_price_include_tax'),
|
|
2098
|
+
is_price_include_tax: getData('is_price_include_tax') || 1,
|
|
2099
2099
|
tax_rate: getData('tax_rate') || '10',
|
|
2100
2100
|
surcharge_list: getData('surcharge_list'),
|
|
2101
2101
|
currency_format: getData('currency_format'),
|
|
@@ -2310,11 +2310,11 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2310
2310
|
return _ref29.apply(this, arguments);
|
|
2311
2311
|
};
|
|
2312
2312
|
}()));
|
|
2313
|
-
_context23.next =
|
|
2313
|
+
_context23.next = 45;
|
|
2314
2314
|
break;
|
|
2315
2315
|
case 25:
|
|
2316
2316
|
if (!isLocalOrderCreated.current) {
|
|
2317
|
-
_context23.next =
|
|
2317
|
+
_context23.next = 44;
|
|
2318
2318
|
break;
|
|
2319
2319
|
}
|
|
2320
2320
|
// // 如果本地订单已创建,这时候还更新了 data,则需要销毁当前的订单数据,然后更新新的订单数据了
|
|
@@ -2361,27 +2361,32 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
setOrderInfo(_orderInfo4);
|
|
2363
2363
|
isLocalOrderCreated.current = true;
|
|
2364
|
-
|
|
2365
|
-
_context23.next = 49;
|
|
2364
|
+
_context23.next = 45;
|
|
2366
2365
|
break;
|
|
2367
2366
|
case 44:
|
|
2368
|
-
|
|
2367
|
+
throw new Error('pisellos is not available');
|
|
2368
|
+
case 45:
|
|
2369
|
+
_context23.next = 53;
|
|
2370
|
+
break;
|
|
2371
|
+
case 47:
|
|
2372
|
+
_context23.prev = 47;
|
|
2369
2373
|
_context23.t0 = _context23["catch"](0);
|
|
2370
2374
|
console.error('Failed to initialize checkout data:', _context23.t0);
|
|
2375
|
+
domain = window.location.hostname;
|
|
2371
2376
|
logger === null || logger === void 0 || logger.addLog({
|
|
2372
2377
|
type: 'error',
|
|
2373
|
-
title:
|
|
2378
|
+
title: "".concat(domain, ": Failed to initialize checkout data"),
|
|
2374
2379
|
metadata: {
|
|
2375
2380
|
error: _context23.t0
|
|
2376
2381
|
}
|
|
2377
2382
|
});
|
|
2378
2383
|
// 如果订单创建失败,弹出提示让重新加载 app
|
|
2379
2384
|
setShowCreateErrorModal(true);
|
|
2380
|
-
case
|
|
2385
|
+
case 53:
|
|
2381
2386
|
case "end":
|
|
2382
2387
|
return _context23.stop();
|
|
2383
2388
|
}
|
|
2384
|
-
}, _callee23, null, [[0,
|
|
2389
|
+
}, _callee23, null, [[0, 47]]);
|
|
2385
2390
|
}));
|
|
2386
2391
|
return function initCheckoutData() {
|
|
2387
2392
|
return _ref28.apply(this, arguments);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
5
|
* 包括如何通过 Context 访问父组件配置
|
|
6
6
|
*/
|
|
7
|
+
/// <reference types="react" />
|
|
7
8
|
export declare const BasicExample: () => JSX.Element;
|
|
8
9
|
export declare const ChildrenExample: () => JSX.Element;
|
|
9
10
|
export declare const CustomItemExample: () => JSX.Element;
|
|
@@ -1472,7 +1472,7 @@ var PaymentModal = ({
|
|
|
1472
1472
|
isLocalOrderCreated.current = true;
|
|
1473
1473
|
const shop_wallet_pass_id = await (0, import_utils2.getShopWalletPassId)(interaction);
|
|
1474
1474
|
checkout.setOtherParams({
|
|
1475
|
-
is_price_include_tax: getData("is_price_include_tax"),
|
|
1475
|
+
is_price_include_tax: getData("is_price_include_tax") || 1,
|
|
1476
1476
|
tax_rate: getData("tax_rate") || "10",
|
|
1477
1477
|
surcharge_list: getData("surcharge_list"),
|
|
1478
1478
|
currency_format: getData("currency_format"),
|
|
@@ -1673,12 +1673,15 @@ var PaymentModal = ({
|
|
|
1673
1673
|
}
|
|
1674
1674
|
setOrderInfo(orderInfo2);
|
|
1675
1675
|
isLocalOrderCreated.current = true;
|
|
1676
|
+
} else {
|
|
1677
|
+
throw new Error("pisellos is not available");
|
|
1676
1678
|
}
|
|
1677
1679
|
} catch (error) {
|
|
1678
1680
|
console.error("Failed to initialize checkout data:", error);
|
|
1681
|
+
const domain = window.location.hostname;
|
|
1679
1682
|
logger == null ? void 0 : logger.addLog({
|
|
1680
1683
|
type: "error",
|
|
1681
|
-
title:
|
|
1684
|
+
title: `${domain}: Failed to initialize checkout data`,
|
|
1682
1685
|
metadata: {
|
|
1683
1686
|
error
|
|
1684
1687
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
5
|
* 包括如何通过 Context 访问父组件配置
|
|
6
6
|
*/
|
|
7
|
+
/// <reference types="react" />
|
|
7
8
|
export declare const BasicExample: () => JSX.Element;
|
|
8
9
|
export declare const ChildrenExample: () => JSX.Element;
|
|
9
10
|
export declare const CustomItemExample: () => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.8",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
|
-
"@pisell/date-picker": "3.0.7",
|
|
65
|
-
"@pisell/materials": "6.6.3",
|
|
66
64
|
"@pisell/icon": "0.0.11",
|
|
67
|
-
"@pisell/
|
|
65
|
+
"@pisell/materials": "6.6.3",
|
|
66
|
+
"@pisell/utils": "3.0.2",
|
|
67
|
+
"@pisell/date-picker": "3.0.7"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getIsPartyRoomResourceShop: (id: number) => boolean;
|