@pisell/private-materials 6.12.436 → 6.12.437
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/bigSale/hooks/useBigSaleProductListConfig.js +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/es/components/venueBookingSales/availability/catalogPreview.js +1 -1
- package/es/components/venueBookingSales/catalogPresentation.js +1 -0
- package/es/components/venueBookingSales/useVenueCatalog.js +1 -0
- package/es/components/venueBookingSales/useVenueDates.js +1 -0
- package/es/plus/pisellReservation/utils/calendarBookingSelection.js +4 -4
- package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- package/es/pro/skuDetailModal/flow/calendarEntry.js +2 -2
- package/lib/components/venueBookingSales/availability/catalogPreview.js +1 -1
- package/lib/components/venueBookingSales/useVenueCatalog.js +1 -0
- package/lib/components/venueBookingSales/useVenueDates.js +1 -0
- package/package.json +4 -4
|
@@ -2,6 +2,7 @@ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
3
3
|
import { generateProductTabs, sortProductsByTabOrder } from "../../ticketBooking/components/ProductDisplayAdapter/utils.js";
|
|
4
4
|
import { ProductDisplayPresets } from "../../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
5
|
+
import "../../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
5
6
|
import { mergeBigSaleProductListPreferences } from "../utils/productListPreferences.js";
|
|
6
7
|
import { useMemo, useRef } from "react";
|
|
7
8
|
import isEqual from "lodash/isEqual";
|
|
@@ -20,6 +20,7 @@ import { useProducts } from "../../hooks/pisellos/useProducts.js";
|
|
|
20
20
|
import { useService } from "../../../booking/info/service/serviceManager/index.js";
|
|
21
21
|
import ProductDisplayAdapter_default from "../ProductDisplayAdapter/ProductDisplayAdapter.js";
|
|
22
22
|
import { resolveProductDisplayConfig } from "../ProductDisplayAdapter/types.js";
|
|
23
|
+
import "../ProductDisplayAdapter/index.js";
|
|
23
24
|
import notAvailable_default from "../notAvailable/index.js";
|
|
24
25
|
import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal.js";
|
|
25
26
|
import dayjs from "dayjs";
|
|
@@ -382,7 +382,7 @@ function _queryCatalogPreview() {
|
|
|
382
382
|
continue;
|
|
383
383
|
}
|
|
384
384
|
if (!input.catalogParams.menu_list_ids.length) throw new PreviewError("PREVIEW_MENU_CONFIGURATION_REQUIRED");
|
|
385
|
-
const detail = yield input.queries.queryCatalogProductDetail(_objectSpread2(_objectSpread2({}, input.catalogParams), {}, {
|
|
385
|
+
const detail = input.productsFromSessionSnapshot ? listed : yield input.queries.queryCatalogProductDetail(_objectSpread2(_objectSpread2({}, input.catalogParams), {}, {
|
|
386
386
|
product_id: Number(id),
|
|
387
387
|
schedule_date: input.date,
|
|
388
388
|
with_count: ["bundleGroup", "optionGroup"],
|
|
@@ -3,6 +3,7 @@ import index from "../../plus/productSelect/components/pisellPriceText/index.js"
|
|
|
3
3
|
import { resolveProductPricePresentation } from "../../plus/productSelect/pricing/pricePresentation.js";
|
|
4
4
|
import SettlementPriceList from "../../plus/multiCurrencySettlement/SettlementPriceList.js";
|
|
5
5
|
import { ProductDisplayPresets } from "../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
6
|
+
import "../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
6
7
|
import { DEFAULT_BIG_SALE_PRODUCT_LIST_PREFERENCES } from "../bigSale/utils/productListPreferences.js";
|
|
7
8
|
import { translate } from "../../plus/venueBookingDesign/i18n.js";
|
|
8
9
|
import { ProductCard as ProductCard$1 } from "../../plus/venueBookingDesign/shared/ProductCard.js";
|
|
@@ -110,6 +110,7 @@ function useVenueCatalog({ os, ready, catalog, date, datetime, customerId, scope
|
|
|
110
110
|
if (!resolvePolicy) throw new Error("The booking sales settings are unavailable.");
|
|
111
111
|
const preview = yield queryCatalogPreview(os, _objectSpread2(_objectSpread2({
|
|
112
112
|
products,
|
|
113
|
+
productsFromSessionSnapshot: true,
|
|
113
114
|
date,
|
|
114
115
|
mode,
|
|
115
116
|
resolvePolicy,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import dayjs from "dayjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
3
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
4
4
|
//#region src/plus/pisellReservation/utils/calendarBookingSelection.ts
|
|
5
|
-
dayjs.extend(
|
|
6
|
-
dayjs.extend(
|
|
5
|
+
dayjs.extend(utcPlugin);
|
|
6
|
+
dayjs.extend(timezonePlugin);
|
|
7
7
|
/** Resolve the same shop clock used by the POS host; previews use the device clock. */
|
|
8
8
|
function resolveReservationTimeZone(utils) {
|
|
9
9
|
var _utils$getStore$getSt, _utils$getStore, _utils$getStore$getSt2, _utils$store, _utils$store$getState, _utils$getApp, _utils$getApp$getStor, _utils$getApp$getStor2, _core$tenant, _core$core, _core$core2, _state$core, _state$core2, _utils$getData, _state$global, _state$global2, _state$global3;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
4
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
5
5
|
//#region src/plus/saasDevice/devicePasscodes/model.ts
|
|
6
|
-
dayjs.extend(
|
|
7
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utcPlugin);
|
|
7
|
+
dayjs.extend(timezonePlugin);
|
|
8
8
|
const INITIAL_DEVICE_PASSCODE_STATE = {
|
|
9
9
|
deviceIds: [],
|
|
10
10
|
devicesById: {}
|
|
@@ -7,12 +7,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
|
|
|
7
7
|
import { locales } from "@pisell/utils";
|
|
8
8
|
import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
|
|
9
9
|
import { useRequest } from "ahooks";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
11
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
//#region src/plus/walletPassGallery/components/timelineSection/index.tsx
|
|
14
|
-
dayjs.extend(
|
|
15
|
-
dayjs.extend(
|
|
14
|
+
dayjs.extend(timezonePlugin);
|
|
15
|
+
dayjs.extend(utcPlugin);
|
|
16
16
|
const stateTimeUnix = 1723255863;
|
|
17
17
|
const POLL_INTERVAL = 2e3;
|
|
18
18
|
const POLL_MAX_TIMES = 5;
|
|
@@ -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
|
|
4
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
5
5
|
//#region src/pro/skuDetailModal/flow/calendarEntry.ts
|
|
6
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utcPlugin);
|
|
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);
|
|
@@ -382,7 +382,7 @@ function _queryCatalogPreview() {
|
|
|
382
382
|
continue;
|
|
383
383
|
}
|
|
384
384
|
if (!input.catalogParams.menu_list_ids.length) throw new PreviewError("PREVIEW_MENU_CONFIGURATION_REQUIRED");
|
|
385
|
-
const detail = yield input.queries.queryCatalogProductDetail(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, input.catalogParams), {}, {
|
|
385
|
+
const detail = input.productsFromSessionSnapshot ? listed : yield input.queries.queryCatalogProductDetail(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, input.catalogParams), {}, {
|
|
386
386
|
product_id: Number(id),
|
|
387
387
|
schedule_date: input.date,
|
|
388
388
|
with_count: ["bundleGroup", "optionGroup"],
|
|
@@ -111,6 +111,7 @@ function useVenueCatalog({ os, ready, catalog, date, datetime, customerId, scope
|
|
|
111
111
|
if (!resolvePolicy) throw new Error("The booking sales settings are unavailable.");
|
|
112
112
|
const preview = yield require_catalogPreview.queryCatalogPreview(os, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({
|
|
113
113
|
products,
|
|
114
|
+
productsFromSessionSnapshot: true,
|
|
114
115
|
date,
|
|
115
116
|
mode,
|
|
116
117
|
resolvePolicy,
|
|
@@ -107,6 +107,7 @@ function useVenueDates(input) {
|
|
|
107
107
|
if (products.length) {
|
|
108
108
|
const result = yield require_catalogPreview.queryCatalogPreview(request.os, {
|
|
109
109
|
products,
|
|
110
|
+
productsFromSessionSnapshot: true,
|
|
110
111
|
date,
|
|
111
112
|
mode: request.mode,
|
|
112
113
|
queries: request.queries,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.437",
|
|
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/
|
|
79
|
-
"@pisell/materials": "6.12.97",
|
|
78
|
+
"@pisell/date-picker": "3.0.12",
|
|
80
79
|
"@pisell/utils": "3.0.7",
|
|
81
|
-
"@pisell/
|
|
80
|
+
"@pisell/materials": "6.12.97",
|
|
81
|
+
"@pisell/icon": "0.0.11"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"react": "^18.0.0",
|