@pisell/private-materials 6.12.161 → 6.12.162
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 +12 -12
- package/build/lowcode/view.js +12 -12
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/ProductList/index.js +30 -19
- package/es/components/bigSale/components/TimeBar/index.js +0 -1
- package/es/components/bigSale/dialog.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
- package/es/components/bigSale/index.js +1 -2
- package/es/components/bigSale/templates/Kiosk/index.js +0 -1
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/index.js +0 -2
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/saleDetail/Base.js +0 -1
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/index.js +0 -1
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +0 -1
- package/es/plus/saleDetail/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/index.js +0 -1
- package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/customerAuthGate.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/salesSdk/utils/runAddProductFlow.js +8 -4
- package/es/private-materials/lowcode/authmodal/meta.d.ts +1 -0
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +1 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/es/pro/skuDetailModal/index.js +4 -4
- package/lib/components/bigSale/components/ProductList/index.js +30 -19
- package/lib/components/bigSale/index.js +1 -1
- package/lib/plus/salesSdk/utils/runAddProductFlow.js +8 -4
- package/lib/pro/skuDetailModal/index.js +4 -4
- package/package.json +3 -3
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -51
|
@@ -75,7 +75,7 @@ const BigSale = ({ osKey = DEFAULT_OS_KEY, osModuleName, selectionFlowScene, lif
|
|
|
75
75
|
return resolvedTemplate === "kiosk" ? require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, selectionFlowConfig), {}, {
|
|
76
76
|
initializeFullBookingContext: false,
|
|
77
77
|
variant: "phone",
|
|
78
|
-
selectorColumns:
|
|
78
|
+
selectorColumns: (selectionFlowConfig === null || selectionFlowConfig === void 0 ? void 0 : selectionFlowConfig.presentationPlatform) === "kiosk" ? 2 : 1,
|
|
79
79
|
isShowProductSummary: true,
|
|
80
80
|
isShowCollapsibleSections: true,
|
|
81
81
|
isShowMobileWeighing: true,
|
|
@@ -154,10 +154,14 @@ function _runAddProductFlow() {
|
|
|
154
154
|
initialHolderIds: (_flowOptions$initialH = flowOptions.initialHolderIds) !== null && _flowOptions$initialH !== void 0 ? _flowOptions$initialH : result.payload.initialHolderIds
|
|
155
155
|
}));
|
|
156
156
|
if (!detailResult) return { status: "cancelled" };
|
|
157
|
-
if (detailResult._committedProducts)
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
if (detailResult._committedProducts) {
|
|
158
|
+
var _flowOptions$onBookin2;
|
|
159
|
+
yield (_flowOptions$onBookin2 = flowOptions.onBookingSelectionCommitted) === null || _flowOptions$onBookin2 === void 0 ? void 0 : _flowOptions$onBookin2.call(flowOptions);
|
|
160
|
+
return {
|
|
161
|
+
status: "added",
|
|
162
|
+
products: detailResult._committedProducts
|
|
163
|
+
};
|
|
164
|
+
}
|
|
161
165
|
const catalog = (_result$payload$produ = (_result$payload = result.payload) === null || _result$payload === void 0 ? void 0 : _result$payload.productData) !== null && _result$payload$produ !== void 0 ? _result$payload$produ : product;
|
|
162
166
|
const detailExtend = (_detailResult$detail = detailResult.detail) === null || _detailResult$detail === void 0 ? void 0 : _detailResult$detail._extend;
|
|
163
167
|
const hasFlowSelectedMultiDayRange = require_resolveIsMultiDayProduct.resolveIsMultiDayProduct(detailResult.detail, catalog, product) && (detailExtend === null || detailExtend === void 0 ? void 0 : detailExtend.start_date) && (detailExtend === null || detailExtend === void 0 ? void 0 : detailExtend.end_date);
|
|
@@ -1679,7 +1679,7 @@ const SkuDetailModal = ({ onConfirm, onRemove, onClose, variant }, ref) => {
|
|
|
1679
1679
|
}, isMobile && (skuDetailConfig === null || skuDetailConfig === void 0 ? void 0 : skuDetailConfig.isShowProductSummary) ? showProductDetailsCollapsible ? /* @__PURE__ */ react.default.createElement(require_index$5.default, {
|
|
1680
1680
|
key: `details-${selectionFlowInstanceKey}`,
|
|
1681
1681
|
title: _pisell_utils.locales.getText("pisell2.text.sku.detail.modal.section.details"),
|
|
1682
|
-
defaultExpanded:
|
|
1682
|
+
defaultExpanded: isKioskPlatform
|
|
1683
1683
|
}, renderProductDetails()) : renderProductSummary() : null, shouldRenderMobileWeighing ? /* @__PURE__ */ react.default.createElement("div", { className: "sku-detail-mobile-weighing" }, renderWeighingSection()) : null, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellSelectionFlow, {
|
|
1684
1684
|
key: selectionFlowInstanceKey,
|
|
1685
1685
|
ref: selectionFlowRef,
|
|
@@ -1764,7 +1764,7 @@ const SkuDetailModal = ({ onConfirm, onRemove, onClose, variant }, ref) => {
|
|
|
1764
1764
|
key: `details-${selectionFlowInstanceKey}`,
|
|
1765
1765
|
className: "sku-detail-collapsible-section--product-details",
|
|
1766
1766
|
title: _pisell_utils.locales.getText("pisell2.text.sku.detail.modal.section.details"),
|
|
1767
|
-
defaultExpanded:
|
|
1767
|
+
defaultExpanded: isKioskPlatform
|
|
1768
1768
|
}, renderProductDetails()) : mobileProductDetails, shouldRenderMobileWeighing ? /* @__PURE__ */ react.default.createElement("div", { className: "sku-detail-mobile-weighing" }, renderWeighingSection()) : null, shouldRenderSkuSelection ? /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement(require_index$4.default, {
|
|
1769
1769
|
ref: skuOptionsSelectionRef,
|
|
1770
1770
|
dataSource: productData,
|
|
@@ -1827,8 +1827,8 @@ const SkuDetailModal = ({ onConfirm, onRemove, onClose, variant }, ref) => {
|
|
|
1827
1827
|
footer: variant === "phone" ? leftContent({ showTop: false }) : null,
|
|
1828
1828
|
closable: false,
|
|
1829
1829
|
destroyOnClose: true,
|
|
1830
|
-
style: { maxHeight: variant === "phone" ? "99dvh" : void 0 },
|
|
1831
|
-
height: variant === "phone" ? "auto" : void 0,
|
|
1830
|
+
style: { maxHeight: isKioskPlatform ? "100%" : variant === "phone" ? "99dvh" : void 0 },
|
|
1831
|
+
height: isKioskPlatform ? "100%" : variant === "phone" ? "auto" : void 0,
|
|
1832
1832
|
styles: isKioskPlatform ? { content: { height: "100%" } } : void 0,
|
|
1833
1833
|
width: variant === "phone" ? "100%" : "80%",
|
|
1834
1834
|
className: (0, classnames.default)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.162",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"styled-components": "^6.0.0-rc.3",
|
|
71
71
|
"use-sync-external-store": "^1.6.0",
|
|
72
72
|
"@pisell/pi-payment-sdk": "0.0.3",
|
|
73
|
-
"@pisell/icon": "0.0.11",
|
|
74
|
-
"@pisell/materials": "6.12.46",
|
|
75
73
|
"@pisell/utils": "3.0.4",
|
|
74
|
+
"@pisell/materials": "6.12.47",
|
|
75
|
+
"@pisell/icon": "0.0.11",
|
|
76
76
|
"@pisell/date-picker": "3.0.10"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./serve/formResourcePage.js";
|
|
2
|
-
import "./floorRoomCard/mapRowToFloorRoomCardData.js";
|
|
3
|
-
import "./floorRoomCard/ReservationFloorRoomCard.js";
|
|
4
|
-
import "./floorMap/reservationMock.js";
|
|
5
|
-
import "./floorMap/floorPlanApi.js";
|
|
6
|
-
import "./reservationConstants.js";
|
|
7
|
-
import "./data/bookingToReservationTables.js";
|
|
8
|
-
import "./data/formResourceToReservationTables.js";
|
|
9
|
-
import "./data/salesEmbeddedResourceToTableRows.js";
|
|
10
|
-
import "./floorMap/reservationCards.js";
|
|
11
|
-
import "./PisellReservation.js";
|
|
12
|
-
import "./PisellReservationBookingPage.js";
|
|
13
|
-
import "./PisellVenueControlPage.js";
|
|
14
|
-
import "./PisellVenueWallPage.js";
|
|
15
|
-
import "./PisellReservationTablePage.js";
|
|
16
|
-
import "./components/SelectFloorMapResourceDialog.js";
|
|
17
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import "./hosts/createInstanceHostBridge.js";
|
|
2
|
-
import "./holderConfirm/createHolderConfirmBridge.js";
|
|
3
|
-
import "./giftSelect/createGiftSelectBridge.js";
|
|
4
|
-
import "./context/SalesSdkHostBridgesContext.js";
|
|
5
|
-
import "./utils/formatHolderOptions.js";
|
|
6
|
-
import "./utils/enrichCartLineHolderDisplay.js";
|
|
7
|
-
import "./context/SalesSdkHolderContext.js";
|
|
8
|
-
import "./utils/appendPromotionTags.js";
|
|
9
|
-
import "./context/SalesSdkUIHostsContext.js";
|
|
10
|
-
import "./utils/runAddProductFlow.js";
|
|
11
|
-
import "./components/showAddToCartToast.js";
|
|
12
|
-
import "./utils/resolveAddProductDebounceKey.js";
|
|
13
|
-
import "./utils/productSkuOptions.js";
|
|
14
|
-
import "./utils/identity.js";
|
|
15
|
-
import "./utils/resolveInCartQuantityForAddToast.js";
|
|
16
|
-
import "./utils/addProductWithFlowDebounced.js";
|
|
17
|
-
import "./utils/customerAuthGate.js";
|
|
18
|
-
import "./utils/bookingDate.js";
|
|
19
|
-
import "./utils/holderSubmitValidation.js";
|
|
20
|
-
import "./utils/removeOrderProducts.js";
|
|
21
|
-
import "./selectors.js";
|
|
22
|
-
import "./utils/enrich.js";
|
|
23
|
-
import "./giftSelect/createOpenGiftSelectHost.js";
|
|
24
|
-
import "./utils/ensureHoldersBeforeSubmit.js";
|
|
25
|
-
import "./hooks/useSalesSdk.js";
|
|
26
|
-
import "./bookingEditService/BookingEditServiceDrawer.js";
|
|
27
|
-
import "./hosts/BookingEditHostRenderer.js";
|
|
28
|
-
import "./hosts/CustomerAuthHostRenderer.js";
|
|
29
|
-
import "./hooks/useSalesSdkCart.js";
|
|
30
|
-
import "./hooks/useSalesSdkCustomer.js";
|
|
31
|
-
import "./normalProductDetail/NormalProductDetailHostRenderer.js";
|
|
32
|
-
import "./hosts/createOpenBookingEditHost.js";
|
|
33
|
-
import "./hosts/createOpenMultiDaySelectHost.js";
|
|
34
|
-
import "./hosts/createOpenHolderSelectHost.js";
|
|
35
|
-
import "./hosts/createOpenCustomerAuthHost.js";
|
|
36
|
-
import "./demo/hosts/legacyOpenProductDetail.js";
|
|
37
|
-
import "./hosts/createCompositeOpenProductDetailHost.js";
|
|
38
|
-
import "./normalProductDetail/createOpenNormalProductDetailHost.js";
|
|
39
|
-
import "./normalProductDetail/createOpenBookingSelectionFlowHost.js";
|
|
40
|
-
import "./giftSelect/GiftSelectModal.js";
|
|
41
|
-
import "./giftSelect/GiftSelectHostRenderer.js";
|
|
42
|
-
import "./context/SalesSdkProvider.js";
|
|
43
|
-
import "./context/SalesSdkDishContext.js";
|
|
44
|
-
import "./context/SalesSdkBookingContext.js";
|
|
45
|
-
import "./hooks/useSalesSdkSummary.js";
|
|
46
|
-
import "./hooks/useSalesSdkProducts.js";
|
|
47
|
-
import "./demo/index.js";
|
|
48
|
-
import "./hooks/useSalesSdkDish.js";
|
|
49
|
-
import "./hooks/useCurrentSalesSdkDish.js";
|
|
50
|
-
import "./hooks/useSyncOsModule.js";
|
|
51
|
-
export {};
|