@pisell/private-materials 6.12.407 → 6.12.409

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.
Files changed (27) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +4 -4
  6. package/build/lowcode/view.js +4 -4
  7. package/es/components/bigSale/components/ProductList/index.js +179 -26
  8. package/es/components/bigSale/components/ProductListSettingsModal/index.js +5 -3
  9. package/es/components/bigSale/utils/productListPreferences.js +5 -2
  10. package/es/components/venueBookingSales/BookingComposer.js +44 -8
  11. package/es/components/venueBookingSales/VenueBookingShared.js +1 -1
  12. package/es/components/venueBookingSales/availability/BookingSelectionPanel.js +12 -1
  13. package/es/components/venueBookingSales/extras/VenueExtraDetailModal.js +1 -1
  14. package/es/plus/pisellReservation/PisellReservation.js +1 -0
  15. package/es/plus/pisellReservation/components/ReservationNewReservationModal.js +29 -1
  16. package/es/pro/bookingProductDetailModal/index.js +7 -7
  17. package/lib/components/bigSale/components/ProductList/index.js +179 -26
  18. package/lib/components/bigSale/components/ProductListSettingsModal/index.js +5 -3
  19. package/lib/components/bigSale/utils/productListPreferences.js +5 -2
  20. package/lib/components/venueBookingSales/BookingComposer.js +43 -7
  21. package/lib/components/venueBookingSales/VenueBookingShared.js +1 -1
  22. package/lib/components/venueBookingSales/availability/BookingSelectionPanel.js +12 -1
  23. package/lib/components/venueBookingSales/extras/VenueExtraDetailModal.js +1 -1
  24. package/lib/plus/pisellReservation/PisellReservation.js +1 -0
  25. package/lib/plus/pisellReservation/components/ReservationNewReservationModal.js +29 -1
  26. package/lib/pro/bookingProductDetailModal/index.js +7 -7
  27. package/package.json +3 -3
@@ -64,7 +64,7 @@ function BookingProductDetailModal(props) {
64
64
  return ui ? session : /* @__PURE__ */ react.default.createElement(require_BookingUIProvider.VenueBookingDesignProvider, { lang: props.locale || "en" }, session);
65
65
  }
66
66
  function DetailSession(props) {
67
- var _props$configuration$, _props$skuOptions, _props$skuOptions2, _bookingActionAmount, _props$labels$confirm, _props$labels, _configurationFooter$, _skuPresentation$moda, _getAppearance, _skuPresentation$moda2, _props$skuOptions3, _props$skuOptions4, _props$skuOptions5;
67
+ var _props$configuration$, _props$skuOptions, _props$skuOptions2, _bookingActionAmount, _configurationFooter$, _props$labels$confirm, _props$labels, _configurationFooter$2, _skuPresentation$moda, _getAppearance, _skuPresentation$moda2, _props$skuOptions3, _props$skuOptions4, _props$skuOptions5;
68
68
  const ui = require_context.useOptionalBookingUI();
69
69
  const brandTokens = ui === null || ui === void 0 ? void 0 : ui.brandTokens;
70
70
  const [plan] = (0, react.useState)(() => props.plan);
@@ -205,7 +205,7 @@ function DetailSession(props) {
205
205
  busy
206
206
  };
207
207
  const footerContent = typeof props.footerContent === "function" ? props.footerContent(footerContext) : props.footerContent;
208
- const configurationFooter = !isTicket && "configurationFooter" in props ? props.configurationFooter : void 0;
208
+ const configurationFooter = step === "configuration" ? props.configurationFooter : void 0;
209
209
  const actionLabel = step === "configuration" ? isTicket ? labels.next : labels.confirmConfiguration : labels.confirmBooking;
210
210
  const error = invalid ? labels.invalidPlan : message || props.error;
211
211
  const skuType = ((_props$skuOptions = props.skuOptions) === null || _props$skuOptions === void 0 ? void 0 : _props$skuOptions.type) || "flat";
@@ -234,7 +234,7 @@ function DetailSession(props) {
234
234
  wide: true,
235
235
  className: `${isTicket ? "reservation-modal" : "party-package-dialog"} pisell-booking-product-detail-modal ${props.className || ""}`,
236
236
  bodyClassName: `${isTicket ? "reservation-content" : "package-config-body"} pisell-booking-product-detail-body`,
237
- footerClassName: `${isTicket ? "booking-config-dialog-footer" : "package-config-footer"} pisell-booking-product-detail-footer${isTicket && step === "configuration" ? " pisell-booking-product-detail-options-footer" : ""}${configurationFooter ? " pisell-booking-product-detail-configuration-footer" : ""}`,
237
+ footerClassName: `${isTicket ? "booking-config-dialog-footer" : "package-config-footer"} pisell-booking-product-detail-footer${isTicket && step === "configuration" && !configurationFooter ? " pisell-booking-product-detail-options-footer" : ""}${!isTicket && configurationFooter ? " pisell-booking-product-detail-configuration-footer" : ""}`,
238
238
  mobile: "fullscreen",
239
239
  bodyRef: setScrollContainer,
240
240
  portal,
@@ -243,9 +243,9 @@ function DetailSession(props) {
243
243
  style: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props.width ? { width: props.width } : {}), props.style),
244
244
  intro: steps,
245
245
  footer: isTicket ? /* @__PURE__ */ react.default.createElement(require_BookingActions.ConfigurationFooter, {
246
- leading: step === "booking" ? footerContent : void 0,
247
- label: step === "booking" ? require_i18n.translate(locale, "subtotal") : void 0,
248
- amount: step === "booking" ? (_bookingActionAmount = props.bookingActionAmount) !== null && _bookingActionAmount !== void 0 ? _bookingActionAmount : "—" : null,
246
+ leading: step === "booking" || configurationFooter ? footerContent : void 0,
247
+ label: step === "booking" ? require_i18n.translate(locale, "subtotal") : configurationFooter === null || configurationFooter === void 0 ? void 0 : configurationFooter.label,
248
+ amount: step === "booking" ? (_bookingActionAmount = props.bookingActionAmount) !== null && _bookingActionAmount !== void 0 ? _bookingActionAmount : "—" : (_configurationFooter$ = configurationFooter === null || configurationFooter === void 0 ? void 0 : configurationFooter.amount) !== null && _configurationFooter$ !== void 0 ? _configurationFooter$ : null,
249
249
  action: {
250
250
  label: completed ? labels.working : actionLabel,
251
251
  compactLabel: completed ? labels.working : step === "booking" ? (_props$labels$confirm = (_props$labels = props.labels) === null || _props$labels === void 0 ? void 0 : _props$labels.confirmBooking) !== null && _props$labels$confirm !== void 0 ? _props$labels$confirm : require_i18n.translate(locale, editing ? "saveTicketsCompact" : "addTicketsCompact") : actionLabel,
@@ -259,7 +259,7 @@ function DetailSession(props) {
259
259
  }, error)
260
260
  }) : configurationFooter ? /* @__PURE__ */ react.default.createElement(require_BookingActions.ConfigurationFooter, {
261
261
  leading: footerContent,
262
- label: (_configurationFooter$ = configurationFooter.label) !== null && _configurationFooter$ !== void 0 ? _configurationFooter$ : require_i18n.translate(locale, "subtotal"),
262
+ label: (_configurationFooter$2 = configurationFooter.label) !== null && _configurationFooter$2 !== void 0 ? _configurationFooter$2 : require_i18n.translate(locale, "subtotal"),
263
263
  amount: configurationFooter.amount,
264
264
  action: {
265
265
  label: completed ? labels.working : actionLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.407",
3
+ "version": "6.12.409",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -75,10 +75,10 @@
75
75
  "styled-components": "^6.0.0-rc.3",
76
76
  "use-sync-external-store": "^1.6.0",
77
77
  "@pisell/pi-payment-sdk": "0.0.4",
78
- "@pisell/date-picker": "3.0.12",
79
78
  "@pisell/utils": "3.0.7",
79
+ "@pisell/icon": "0.0.11",
80
80
  "@pisell/materials": "6.12.91",
81
- "@pisell/icon": "0.0.11"
81
+ "@pisell/date-picker": "3.0.12"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "react": "^18.0.0",