@pisell/private-materials 6.12.434 → 6.12.435

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 (54) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +1 -0
  10. package/es/components/bigSale/components/ProductList/index.js +1 -0
  11. package/es/components/bigSale/components/TimeBar/index.js +1 -0
  12. package/es/components/bigSale/dialog.js +1 -0
  13. package/es/components/bigSale/hooks/useBigSaleContext.js +1 -0
  14. package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +1 -0
  15. package/es/components/bigSale/index.js +1 -0
  16. package/es/components/bigSale/templates/Kiosk/index.js +1 -0
  17. package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +1 -0
  18. package/es/components/vendingMachine/CustomerScreens.js +16 -12
  19. package/es/components/vendingMachine/customer.less +23 -25
  20. package/es/components/venueBookingSales/checkout/VenueBookingHolderStep.js +1 -0
  21. package/es/components/venueBookingSales/checkout/useVenueBookingCheckout.js +1 -0
  22. package/es/components/venueBookingSales/checkout/useVenueCustomerAccess.js +1 -0
  23. package/es/components/venueBookingSales/checkout/useVenueKioskCheckout.js +1 -0
  24. package/es/components/venueBookingSales/extras/VenueExtraDetailModal.js +1 -0
  25. package/es/components/venueBookingSales/useVenueBookingSession.js +1 -0
  26. package/es/index.js +2 -0
  27. package/es/plus/multiCurrencySettlement/index.js +1 -1
  28. package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
  29. package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
  30. package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
  31. package/es/plus/pisellReservation/index.js +17 -0
  32. package/es/plus/pisellReservation/utils/calendarBookingSelection.js +4 -4
  33. package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
  34. package/es/plus/saleDetail/Base.js +1 -0
  35. package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +1 -0
  36. package/es/plus/saleDetail/components/DetailActions/PrintAction.js +1 -0
  37. package/es/plus/saleDetail/components/DetailActions/index.js +1 -0
  38. package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +1 -0
  39. package/es/plus/saleDetail/index.js +1 -0
  40. package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +1 -0
  41. package/es/plus/saleDetail/tmpl/B/index.js +1 -0
  42. package/es/plus/salesSdk/index.js +54 -0
  43. package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
  44. package/es/plus/salesSdk/utils/bookingDate.js +1 -1
  45. package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
  46. package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
  47. package/es/pro/Login2.0/AuthModal.d.ts +1 -1
  48. package/es/pro/Login2.0/index.d.ts +2 -2
  49. package/es/pro/Login2.0/shared/types.d.ts +1 -1
  50. package/es/pro/skuDetailModal/flow/calendarEntry.js +2 -2
  51. package/lib/components/vendingMachine/CustomerScreens.js +9 -5
  52. package/lib/components/vendingMachine/customer.less +23 -25
  53. package/package.json +3 -3
  54. package/es/private-materials/lowcode/authmodal/meta.d.ts +0 -1
@@ -14,4 +14,4 @@ interface AuthModalProps {
14
14
  */
15
15
  declare const AuthModal: React.FC<AuthModalProps>;
16
16
  //#endregion
17
- export { AuthModal, AuthModalProps };
17
+ export { AuthModal };
@@ -1,4 +1,4 @@
1
- import { AuthMethodType, VerificationMethod } from "./shared/types.js";
1
+ import { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LoginFormData, OAuthConfig, PhoneAuthConfig, RegisterFormData, UIConfig, VerificationMethod } from "./shared/types.js";
2
2
  import { Login2, Login2Config, Login2Events, Login2Props } from "./Login2.js";
3
3
  import { Register2, Register2Config, Register2Events, Register2Props } from "./Register2.js";
4
- import { AuthModal, AuthModalProps } from "./AuthModal.js";
4
+ import { AuthModal } from "./AuthModal.js";
@@ -226,4 +226,4 @@ interface RegisterFormData {
226
226
  verification_token?: string;
227
227
  }
228
228
  //#endregion
229
- export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
229
+ export { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
@@ -1,9 +1,9 @@
1
1
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import { isMultiDayProduct } from "../../../components/booking/info2/service/addService/utils.js";
3
3
  import dayjs from "dayjs";
4
- import utcPlugin from "dayjs/plugin/utc";
4
+ import utc from "dayjs/plugin/utc";
5
5
  //#region src/pro/skuDetailModal/flow/calendarEntry.ts
6
- dayjs.extend(utcPlugin);
6
+ dayjs.extend(utc);
7
7
  /** Calendar timestamps belong to the shop clock, rather than the browser clock. */
8
8
  function calendarDateTime(value) {
9
9
  const matched = value.match(/(Z|([+-])(\d{2}):(\d{2}))$/i);
@@ -1,9 +1,11 @@
1
1
  const require_runtime = require("../../_virtual/_rolldown/runtime.js");
2
+ const require_useLocale = require("../../hooks/useLocale.js");
2
3
  const require_locales = require("./locales.js");
3
4
  const require_CustomerLanguageSelect = require("./CustomerLanguageSelect.js");
4
5
  let react = require("react");
5
6
  react = require_runtime.__toESM(react);
6
7
  let antd = require("antd");
8
+ let _pisell_materials = require("@pisell/materials");
7
9
  require("./customer.less");
8
10
  //#region src/components/vendingMachine/CustomerScreens.tsx
9
11
  function Icon({ name }) {
@@ -38,17 +40,19 @@ function ScanHint({ pill = false }) {
38
40
  return /* @__PURE__ */ react.default.createElement("div", { className: `vm-customer-scan-hint${pill ? " vm-customer-scan-hint-pill" : ""}` }, /* @__PURE__ */ react.default.createElement(Icon, { name: "qr-code" }), /* @__PURE__ */ react.default.createElement("span", null, t("scanHint")), /* @__PURE__ */ react.default.createElement(Icon, { name: "arrow-down" }));
39
41
  }
40
42
  function TechnicalSupportBar({ active, onRequestSettings }) {
41
- const { text: t } = require_locales.useVendingLocale();
43
+ const locale = require_useLocale.default();
42
44
  const taps = (0, react.useRef)([]);
43
45
  (0, react.useEffect)(() => {
44
46
  taps.current = [];
45
47
  }, [active]);
46
- return /* @__PURE__ */ react.default.createElement("button", {
47
- type: "button",
48
+ return /* @__PURE__ */ react.default.createElement("fieldset", {
48
49
  className: "vm-customer-technical-support",
49
- disabled: !active,
50
+ disabled: !active
51
+ }, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellBrand, {
52
+ locale,
50
53
  onClick: (event) => {
51
54
  event.stopPropagation();
55
+ if (!active) return;
52
56
  const now = Date.now();
53
57
  taps.current = [...taps.current.filter((at) => now - at < 3e3), now];
54
58
  if (taps.current.length >= 5) {
@@ -56,7 +60,7 @@ function TechnicalSupportBar({ active, onRequestSettings }) {
56
60
  onRequestSettings();
57
61
  }
58
62
  }
59
- }, t("poweredBy"));
63
+ }));
60
64
  }
61
65
  function IdleScreen({ brand, subtitle, active, onStart, onRequestSettings }) {
62
66
  const { text: t } = require_locales.useVendingLocale();
@@ -70,6 +70,8 @@
70
70
 
71
71
  .vm-customer-idle {
72
72
  position: relative;
73
+ display: flex;
74
+ flex-direction: column;
73
75
  width: 100%;
74
76
  height: 100%;
75
77
  overflow: hidden;
@@ -144,9 +146,9 @@
144
146
  display: grid;
145
147
  grid-template-rows: auto minmax(200px, 1fr) auto;
146
148
  row-gap: 32px;
147
- height: 100%;
149
+ flex: 1 0 auto;
148
150
  min-height: min-content;
149
- padding: 48px 40px 40px;
151
+ padding: 28px 40px 40px;
150
152
  }
151
153
  .vm-customer-idle-header,
152
154
  .vm-customer-idle-actions,
@@ -214,10 +216,9 @@
214
216
  }
215
217
  .vm-customer-idle-copy {
216
218
  flex-shrink: 0;
217
- margin-top: 56px;
219
+ margin-top: 36px;
218
220
  h1 {
219
221
  font-size: 64px;
220
- line-height: 1;
221
222
  display: -webkit-box;
222
223
  -webkit-box-orient: vertical;
223
224
  -webkit-line-clamp: 3;
@@ -301,30 +302,25 @@
301
302
  background: rgba(255, 255, 255, 0.8);
302
303
  line-height: 1.4;
303
304
  }
304
- .vm-customer-canvas .vm-customer-technical-support {
305
- position: absolute;
305
+ .vm-customer-technical-support {
306
+ --pisell-brand-inset: clamp(18px, 4.44cqw, 64px);
307
+ --pisell-brand-font-size: clamp(12px, 2.04cqw, 28px);
308
+ --pisell-brand-top-height: clamp(50px, 10.37cqw, 148px);
309
+ --pisell-brand-top-gap: clamp(14px, 2.41cqw, 34px);
310
+ --pisell-brand-top-logo-width: clamp(76px, 16.67cqw, 240px);
311
+ position: relative;
306
312
  z-index: 3;
307
- top: 0;
308
- left: 0;
309
- width: 100%;
313
+ flex: none;
314
+ min-width: 0;
315
+ height: var(--pisell-brand-top-height);
310
316
  margin: 0;
311
317
  border: 0;
312
- padding: 6px 0;
313
- background-color: rgba(0, 0, 0, 0.31);
314
- color: #fff;
315
- font-size: 16px;
316
- line-height: normal;
317
- text-align: center;
318
- touch-action: manipulation;
319
- user-select: none;
320
- &:focus-visible {
321
- outline-offset: -3px;
318
+ padding: 0;
319
+
320
+ .pisell-brand__content::before {
321
+ --brand-surface: #efe8fc;
322
322
  }
323
323
  }
324
- .vm-customer-canvas .vm-customer-home > .vm-customer-technical-support {
325
- position: relative;
326
- flex-shrink: 0;
327
- }
328
324
  .vm-customer-canvas .vm-customer-idle-hitarea {
329
325
  position: absolute;
330
326
  z-index: 2;
@@ -352,6 +348,8 @@
352
348
  padding: 0 var(--vm-customer-gutter);
353
349
  }
354
350
  .vm-customer-home-toolbar {
351
+ position: relative;
352
+ z-index: 3;
355
353
  justify-content: space-between;
356
354
  gap: 24px;
357
355
  > .vm-customer-brand {
@@ -619,10 +617,10 @@
619
617
  .vm-customer-idle-layout {
620
618
  grid-template-rows: auto minmax(160px, 1fr) auto;
621
619
  gap: 24px;
622
- padding: 40px 20px 24px;
620
+ padding-inline: 20px;
621
+ padding-bottom: 24px;
623
622
  }
624
623
  .vm-customer-idle-copy {
625
- margin-top: 32px;
626
624
  h1 {
627
625
  font-size: 44px;
628
626
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.434",
3
+ "version": "6.12.435",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -75,9 +75,9 @@
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/icon": "0.0.11",
79
78
  "@pisell/utils": "3.0.7",
80
- "@pisell/materials": "6.12.96",
79
+ "@pisell/icon": "0.0.11",
80
+ "@pisell/materials": "6.12.97",
81
81
  "@pisell/date-picker": "3.0.12"
82
82
  },
83
83
  "peerDependencies": {
@@ -1 +0,0 @@
1
- export { };