@pisell/private-materials 6.12.266 → 6.12.268

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.
@@ -0,0 +1,16 @@
1
+ const require_identity = require("../../../plus/salesSdk/utils/identity.js");
2
+ //#region src/components/venueBooking/utils/orderProductIdentity.ts
3
+ /** VenueBooking 删改必须定位具体订单行,不能退回只按商品/SKU 匹配。 */
4
+ function getVenueBookingProductIdentity(line) {
5
+ if (!line || typeof line !== "object") return null;
6
+ const identity = require_identity.pickIdentity(line);
7
+ if (typeof identity.unique_identification_number !== "string" || identity.unique_identification_number.length === 0) return null;
8
+ return identity;
9
+ }
10
+ function getVenueBookingProductUid(line) {
11
+ var _getVenueBookingProdu;
12
+ return (_getVenueBookingProdu = getVenueBookingProductIdentity(line)) === null || _getVenueBookingProdu === void 0 ? void 0 : _getVenueBookingProdu.unique_identification_number;
13
+ }
14
+ //#endregion
15
+ exports.getVenueBookingProductIdentity = getVenueBookingProductIdentity;
16
+ exports.getVenueBookingProductUid = getVenueBookingProductUid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.266",
3
+ "version": "6.12.268",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -72,10 +72,10 @@
72
72
  "styled-components": "^6.0.0-rc.3",
73
73
  "use-sync-external-store": "^1.6.0",
74
74
  "@pisell/pi-payment-sdk": "0.0.3",
75
- "@pisell/materials": "6.12.74",
76
- "@pisell/date-picker": "3.0.12",
77
75
  "@pisell/icon": "0.0.11",
78
- "@pisell/utils": "3.0.7"
76
+ "@pisell/utils": "3.0.7",
77
+ "@pisell/materials": "6.12.74",
78
+ "@pisell/date-picker": "3.0.12"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": "^18.0.0",