@pisell/private-materials 6.12.370 → 6.12.372
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/ProductList/index.js +0 -1
- 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 +0 -1
- package/es/components/bigSale/templates/Kiosk/index.js +0 -1
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/components/vendingMachine/README.md +2 -0
- package/es/components/vendingMachine/VoucherCollectPage.js +21 -23
- package/es/components/vendingMachine/voucherRedemption.js +16 -25
- package/es/index.js +0 -2
- package/es/plus/multiCurrencySettlement/index.js +1 -1
- 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/PrintAction.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/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/salesSdk/utils/resolveLocalizedText.js +1 -1
- 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 +2 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/es/pro/skuDetailModal/flow/registry.d.ts +2 -2
- package/lib/components/vendingMachine/README.md +2 -0
- package/lib/components/vendingMachine/VoucherCollectPage.js +19 -21
- package/lib/components/vendingMachine/voucherRedemption.js +16 -24
- package/lib/plus/salesSdk/utils/resolveLocalizedText.js +1 -1
- package/lib/pro/skuDetailModal/flow/registry.d.ts +2 -2
- package/package.json +3 -3
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -54
|
@@ -57,14 +57,14 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
57
57
|
var _ticket$getDiscountLi, _ticket$getTempOrder3, _context$cart$tempOrd;
|
|
58
58
|
return require_voucherRedemption.buildRedemptionGroups((ticket === null || ticket === void 0 || (_ticket$getDiscountLi = ticket.getDiscountList) === null || _ticket$getDiscountLi === void 0 ? void 0 : _ticket$getDiscountLi.call(ticket)) || context.cart.discountList, products, (ticket === null || ticket === void 0 || (_ticket$getTempOrder3 = ticket.getTempOrder) === null || _ticket$getTempOrder3 === void 0 || (_ticket$getTempOrder3 = _ticket$getTempOrder3.call(ticket)) === null || _ticket$getTempOrder3 === void 0 ? void 0 : _ticket$getTempOrder3.products) || ((_context$cart$tempOrd = context.cart.tempOrder) === null || _context$cart$tempOrd === void 0 ? void 0 : _context$cart$tempOrd.products) || []);
|
|
59
59
|
});
|
|
60
|
-
const remaining = (0, ahooks.useMemoizedFn)((key) => {
|
|
61
|
-
|
|
62
|
-
return
|
|
60
|
+
const remaining = (0, ahooks.useMemoizedFn)((key, product) => {
|
|
61
|
+
const group = getLiveGroups().find((entry) => entry.key === key);
|
|
62
|
+
return group ? require_voucherRedemption.getRemainingProductVouchers(group, product).length : 0;
|
|
63
63
|
});
|
|
64
64
|
const restoreUnappliedVouchers = (0, ahooks.useMemoizedFn)(function() {
|
|
65
|
-
var _ref = require_asyncToGenerator._asyncToGenerator(function* (key, targetSelected, isCurrent) {
|
|
65
|
+
var _ref = require_asyncToGenerator._asyncToGenerator(function* (key, product, targetSelected, isCurrent) {
|
|
66
66
|
let group = getLiveGroups().find((item) => item.key === key);
|
|
67
|
-
const manuallyUnapplied =
|
|
67
|
+
const manuallyUnapplied = group ? require_voucherRedemption.getRemainingProductVouchers(group, product).filter((voucher) => voucher.source.isManualSelect) : [];
|
|
68
68
|
for (const voucher of manuallyUnapplied) {
|
|
69
69
|
if (!isCurrent() || !group || group.selected >= targetSelected) return;
|
|
70
70
|
yield context.cart.setDiscount({
|
|
@@ -74,7 +74,7 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
74
74
|
group = getLiveGroups().find((item) => item.key === key);
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
return function(_x, _x2, _x3) {
|
|
77
|
+
return function(_x, _x2, _x3, _x4) {
|
|
78
78
|
return _ref.apply(this, arguments);
|
|
79
79
|
};
|
|
80
80
|
}());
|
|
@@ -87,7 +87,7 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
87
87
|
var _variant$id;
|
|
88
88
|
const id = (_variant$id = variant.id) !== null && _variant$id !== void 0 ? _variant$id : variant.product_variant_id;
|
|
89
89
|
const stock = inventory.selectionAvailability(product, id, items);
|
|
90
|
-
const limit = freeSelection || require_voucherSkuSelection.isFreeVoucherProduct(product, id) ? Infinity : remaining(group.key);
|
|
90
|
+
const limit = freeSelection || require_voucherSkuSelection.isFreeVoucherProduct(product, id) ? Infinity : remaining(group.key, product);
|
|
91
91
|
return stock.availability.status === "ready" ? Math.min(stock.availableQuantity, limit) : 0;
|
|
92
92
|
}));
|
|
93
93
|
});
|
|
@@ -101,17 +101,17 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
101
101
|
quantity,
|
|
102
102
|
debounceMs: 0,
|
|
103
103
|
notShowToast: true,
|
|
104
|
-
getQuantityLimit: free ? void 0 : () => remaining(group.key),
|
|
105
|
-
initialHolderIds:
|
|
104
|
+
getQuantityLimit: free ? void 0 : () => remaining(group.key, product),
|
|
105
|
+
initialHolderIds: []
|
|
106
106
|
});
|
|
107
107
|
if (result.status === "added" && isCurrent() && !free) {
|
|
108
108
|
const after = getLiveGroups().find((item) => item.key === group.key);
|
|
109
109
|
const freeAdded = Math.max(0, ((after === null || after === void 0 ? void 0 : after.freeQuantity) || 0) - ((before === null || before === void 0 ? void 0 : before.freeQuantity) || 0));
|
|
110
|
-
yield restoreUnappliedVouchers(group.key, ((before === null || before === void 0 ? void 0 : before.selected) || 0) + Math.max(0, quantity - freeAdded), isCurrent);
|
|
110
|
+
yield restoreUnappliedVouchers(group.key, product, ((before === null || before === void 0 ? void 0 : before.selected) || 0) + Math.max(0, quantity - freeAdded), isCurrent);
|
|
111
111
|
}
|
|
112
112
|
return result;
|
|
113
113
|
});
|
|
114
|
-
return function(
|
|
114
|
+
return function(_x5, _x6, _x7, _x8) {
|
|
115
115
|
return _ref3.apply(this, arguments);
|
|
116
116
|
};
|
|
117
117
|
}());
|
|
@@ -120,7 +120,7 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
120
120
|
if (increaseLimit(group, product) < 1) throw new Error(t("collectLimit"));
|
|
121
121
|
return addVoucherProduct(group, product, 1, isCurrent);
|
|
122
122
|
});
|
|
123
|
-
return function(
|
|
123
|
+
return function(_x9) {
|
|
124
124
|
return _ref4.apply(this, arguments);
|
|
125
125
|
};
|
|
126
126
|
}());
|
|
@@ -154,16 +154,14 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
154
154
|
const row = (_buildVendingCatalog$2 = require_catalogModel.buildVendingCatalog([product], [], localized)[0]) === null || _buildVendingCatalog$2 === void 0 ? void 0 : _buildVendingCatalog$2.rows[0];
|
|
155
155
|
const currentItems = ((_ref5 = (_ticket$getTempOrder6 = ticket === null || ticket === void 0 || (_ticket$getTempOrder7 = ticket.getTempOrder) === null || _ticket$getTempOrder7 === void 0 ? void 0 : _ticket$getTempOrder7.call(ticket)) !== null && _ticket$getTempOrder6 !== void 0 ? _ticket$getTempOrder6 : context.cart.tempOrder) === null || _ref5 === void 0 ? void 0 : _ref5.products) || [];
|
|
156
156
|
if (!(row === null || row === void 0 ? void 0 : row.enabled) || inventoryFailed || inventoryRefreshing || (inventory === null || inventory === void 0 ? void 0 : inventory.selectionAvailability(product, 0, currentItems).availability.status) !== "ready") return;
|
|
157
|
-
const
|
|
158
|
-
const allocated = new Set(group.items.flatMap(require_voucherRedemption.appliedProductVoucherIds));
|
|
159
|
-
const unused = fresh.filter((voucher) => !voucher.source.isManualSelect && !allocated.has(String(voucher.id)));
|
|
157
|
+
const unused = require_voucherRedemption.getRemainingProductVouchers(group, product).filter((voucher) => freshIds.has(String(voucher.id)) && !voucher.source.isManualSelect);
|
|
160
158
|
const quantity = Math.min(unused.length, increaseLimit(group, product, 0), require_voucherSkuSelection.isFreeVoucherProduct(product, 0) ? Math.max(0, group.quota - group.freeQuantity) : Infinity);
|
|
161
159
|
if (quantity > 0) {
|
|
162
160
|
const result = yield addVoucherProduct(group, require_catalogModel.buildVendingSkuProduct(row), quantity, isCurrent);
|
|
163
161
|
if (isCurrent() && result.status !== "added" && result.status !== "cancelled") throw new Error(t("catalogUpdateFailed"));
|
|
164
162
|
}
|
|
165
163
|
});
|
|
166
|
-
return function(
|
|
164
|
+
return function(_x10) {
|
|
167
165
|
return _ref6.apply(this, arguments);
|
|
168
166
|
};
|
|
169
167
|
}());
|
|
@@ -215,10 +213,10 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
215
213
|
const result = yield addVoucherProduct(liveGroup, require_catalogModel.buildVendingSkuProduct(liveRow), delta, isCurrent);
|
|
216
214
|
if (isCurrent() && result.status !== "added" && result.status !== "cancelled") throw new Error(t("catalogUpdateFailed"));
|
|
217
215
|
} else {
|
|
218
|
-
var _getLiveGroups$
|
|
219
|
-
const selectedBefore = ((_getLiveGroups$
|
|
216
|
+
var _getLiveGroups$find;
|
|
217
|
+
const selectedBefore = ((_getLiveGroups$find = getLiveGroups().find((entry) => entry.key === group.key)) === null || _getLiveGroups$find === void 0 ? void 0 : _getLiveGroups$find.selected) || 0;
|
|
220
218
|
yield context.cart.updateItemQuantity(item, Number(item.num) + delta);
|
|
221
|
-
if (isCurrent() && !free) yield restoreUnappliedVouchers(group.key, selectedBefore + delta, isCurrent);
|
|
219
|
+
if (isCurrent() && !free) yield restoreUnappliedVouchers(group.key, product, selectedBefore + delta, isCurrent);
|
|
222
220
|
}
|
|
223
221
|
return;
|
|
224
222
|
}
|
|
@@ -235,7 +233,7 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
235
233
|
yield context.cart.waitForCartConsistency();
|
|
236
234
|
}
|
|
237
235
|
});
|
|
238
|
-
return function(
|
|
236
|
+
return function(_x11) {
|
|
239
237
|
return _ref9.apply(this, arguments);
|
|
240
238
|
};
|
|
241
239
|
}());
|
|
@@ -342,7 +340,7 @@ function VoucherCollectPage({ brand, context, products, loading, isActive, inven
|
|
|
342
340
|
product,
|
|
343
341
|
items: (order === null || order === void 0 ? void 0 : order.products) || [],
|
|
344
342
|
selectedItems: group.items,
|
|
345
|
-
remaining: group.
|
|
343
|
+
remaining: require_voucherRedemption.getRemainingProductVouchers(group, product).length,
|
|
346
344
|
inventory,
|
|
347
345
|
localize: localized
|
|
348
346
|
}),
|
|
@@ -2,33 +2,15 @@ const require_resolveLocalizedText = require("../../plus/salesSdk/utils/resolveL
|
|
|
2
2
|
const require_enrich = require("../../plus/salesSdk/utils/enrich.js");
|
|
3
3
|
const require_adapters = require("../../plus/saleDetail/components/PromotionWalletPanels/adapters.js");
|
|
4
4
|
//#region src/components/vendingMachine/voucherRedemption.ts
|
|
5
|
-
/**
|
|
5
|
+
/** Normalize selection details without depending on response ordering. */
|
|
6
6
|
function canonical(value) {
|
|
7
7
|
if (Array.isArray(value)) return value.map(canonical).sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b)));
|
|
8
8
|
if (value && typeof value === "object") return Object.fromEntries(Object.keys(value).sort().map((key) => [key, canonical(value[key])]));
|
|
9
9
|
return value;
|
|
10
10
|
}
|
|
11
11
|
function voucherGroupKey(voucher) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const relation = {
|
|
15
|
-
type: source.type,
|
|
16
|
-
filter: source.filter,
|
|
17
|
-
product_ids: source.product_ids,
|
|
18
|
-
exclude_product_ids: source.exclude_product_ids,
|
|
19
|
-
product_collection_id: source.product_collection_id,
|
|
20
|
-
package_sub_item_usage_rules: source.package_sub_item_usage_rules
|
|
21
|
-
};
|
|
22
|
-
return JSON.stringify(canonical({
|
|
23
|
-
productId: voucher.product_id,
|
|
24
|
-
relation,
|
|
25
|
-
holder: (_voucher$metadata = voucher.metadata) === null || _voucher$metadata === void 0 ? void 0 : _voucher$metadata.holder,
|
|
26
|
-
holderId: (_voucher$holder = voucher.holder) === null || _voucher$holder === void 0 ? void 0 : _voucher$holder.holder_id,
|
|
27
|
-
rules: (voucher.extension_data || []).map((field) => ({
|
|
28
|
-
key: field.field_key,
|
|
29
|
-
value: field.value
|
|
30
|
-
}))
|
|
31
|
-
}));
|
|
12
|
+
const productId = voucher.product_id;
|
|
13
|
+
return JSON.stringify(productId == null || String(productId) === "" ? ["voucher", String(voucher.id)] : ["product", String(productId)]);
|
|
32
14
|
}
|
|
33
15
|
function isRedeemableVoucher(voucher) {
|
|
34
16
|
var _source$config;
|
|
@@ -64,13 +46,21 @@ function isFreeRedemptionItem(item) {
|
|
|
64
46
|
const price = item.selling_price;
|
|
65
47
|
return price != null && String(price).trim() !== "" && Number(price) === 0 && !((_item$discount_list = item.discount_list) === null || _item$discount_list === void 0 ? void 0 : _item$discount_list.length);
|
|
66
48
|
}
|
|
49
|
+
/** A merged group can contain instances with different eligible products. */
|
|
50
|
+
function getRemainingProductVouchers(group, product) {
|
|
51
|
+
const used = new Set(group.items.flatMap(appliedProductVoucherIds));
|
|
52
|
+
return group.vouchers.filter((voucher) => !used.has(String(voucher.id)) && voucherAppliesToProduct(voucher.source, product));
|
|
53
|
+
}
|
|
67
54
|
function buildRedemptionGroups(current, products, items = []) {
|
|
68
55
|
const groups = /* @__PURE__ */ new Map();
|
|
69
56
|
const seen = /* @__PURE__ */ new Set();
|
|
57
|
+
const allocatedIds = new Set(items.flatMap(appliedProductVoucherIds));
|
|
58
|
+
const freeItems = items.filter(isFreeRedemptionItem);
|
|
70
59
|
for (const voucher of require_adapters.buildVoucherViews(current).filter(isRedeemableVoucher)) {
|
|
71
60
|
if (seen.has(String(voucher.id))) continue;
|
|
72
61
|
seen.add(String(voucher.id));
|
|
73
62
|
const source = voucher.source;
|
|
63
|
+
if (!products.some((product) => voucherAppliesToProduct(source, product)) && !allocatedIds.has(String(voucher.id)) && !freeItems.some((item) => voucherAppliesToProduct(source, { id: item.product_id }))) continue;
|
|
74
64
|
const key = voucherGroupKey(source);
|
|
75
65
|
let group = groups.get(key);
|
|
76
66
|
if (!group) {
|
|
@@ -84,7 +74,7 @@ function buildRedemptionGroups(current, products, items = []) {
|
|
|
84
74
|
freeQuantity: 0,
|
|
85
75
|
remaining: 0,
|
|
86
76
|
items: [],
|
|
87
|
-
products:
|
|
77
|
+
products: []
|
|
88
78
|
};
|
|
89
79
|
groups.set(key, group);
|
|
90
80
|
}
|
|
@@ -92,14 +82,15 @@ function buildRedemptionGroups(current, products, items = []) {
|
|
|
92
82
|
group.vouchers.push(voucher);
|
|
93
83
|
group.quota += 1;
|
|
94
84
|
}
|
|
95
|
-
const
|
|
85
|
+
const freeItemSet = new Set(freeItems);
|
|
96
86
|
for (const group of groups.values()) {
|
|
87
|
+
group.products = products.filter((product) => group.vouchers.some((voucher) => voucherAppliesToProduct(voucher.source, product)));
|
|
97
88
|
const ids = new Set(group.discountIds.map(String));
|
|
98
89
|
const used = /* @__PURE__ */ new Set();
|
|
99
90
|
group.items = items.filter((item) => {
|
|
100
91
|
const allocated = appliedProductVoucherIds(item).filter((id) => ids.has(id));
|
|
101
92
|
allocated.forEach((id) => used.add(id));
|
|
102
|
-
if (
|
|
93
|
+
if (freeItemSet.has(item) && group.vouchers.some((voucher) => voucherAppliesToProduct(voucher.source, { id: item.product_id }))) {
|
|
103
94
|
group.freeQuantity += Number(item.num || 0);
|
|
104
95
|
return true;
|
|
105
96
|
}
|
|
@@ -136,6 +127,7 @@ function redemptionRows(items, displayContext) {
|
|
|
136
127
|
//#endregion
|
|
137
128
|
exports.appliedProductVoucherIds = appliedProductVoucherIds;
|
|
138
129
|
exports.buildRedemptionGroups = buildRedemptionGroups;
|
|
130
|
+
exports.getRemainingProductVouchers = getRemainingProductVouchers;
|
|
139
131
|
exports.isFreeRedemptionItem = isFreeRedemptionItem;
|
|
140
132
|
exports.mergeRedemptionVouchers = mergeRedemptionVouchers;
|
|
141
133
|
exports.redemptionRows = redemptionRows;
|
|
@@ -23,7 +23,7 @@ function resolveLocalizedText(value, translationOriginal, localeOverride) {
|
|
|
23
23
|
const locale = localeOverride || ((_locales$getLocale = _pisell_utils.locales.getLocale) === null || _locales$getLocale === void 0 ? void 0 : _locales$getLocale.call(_pisell_utils.locales)) || _pisell_utils.locales.locale || "en";
|
|
24
24
|
const normalized = ((_locales$formatLocale = _pisell_utils.locales.formatLocale) === null || _locales$formatLocale === void 0 ? void 0 : _locales$formatLocale.call(_pisell_utils.locales, locale)) || locale;
|
|
25
25
|
const record = value;
|
|
26
|
-
return record[normalized] || record[locale] || record.
|
|
26
|
+
return record[normalized] || record[locale] || record.original || record.default || record.auto || record.en || record["zh-CN"] || record["zh-HK"] || record.ja || record.pt || record.kitchen || Object.keys(record).sort().map((key) => record[key]).find((text) => typeof text === "string" && text) || "";
|
|
27
27
|
}
|
|
28
28
|
return String(value);
|
|
29
29
|
}
|
|
@@ -37,7 +37,7 @@ declare const flowModuleRegistry: {
|
|
|
37
37
|
Component: _$react.FC<FlowModuleProps<string>>;
|
|
38
38
|
initializeWhileInactive: true;
|
|
39
39
|
hardRequires: ("productData" | "booking.selectedCandidate")[];
|
|
40
|
-
refreshOn: ("
|
|
40
|
+
refreshOn: ("productData" | "skuValue" | "quantity" | "booking.customerId" | "booking.duration" | "booking.selectedCandidate")[];
|
|
41
41
|
isApplicable: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
42
42
|
canInitialize: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
43
43
|
refresh: (context: SelectionFlowContextValue<string>, module: CompiledSelectionFlowModuleConfig<string>) => Promise<void>;
|
|
@@ -55,7 +55,7 @@ declare const flowModuleRegistry: {
|
|
|
55
55
|
isSkippable: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => any;
|
|
56
56
|
provides: "booking.capacity"[];
|
|
57
57
|
hardRequires: "productData"[];
|
|
58
|
-
refreshOn: ("
|
|
58
|
+
refreshOn: ("productData" | "skuValue" | "quantity")[];
|
|
59
59
|
isApplicable: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
60
60
|
canInitialize: () => true;
|
|
61
61
|
refresh: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>, module: _$_pisell_materials_src0.CompiledSelectionFlowModuleConfig<string>) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.372",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"styled-components": "^6.0.0-rc.3",
|
|
75
75
|
"use-sync-external-store": "^1.6.0",
|
|
76
76
|
"@pisell/pi-payment-sdk": "0.0.4",
|
|
77
|
-
"@pisell/date-picker": "3.0.12",
|
|
78
77
|
"@pisell/materials": "6.12.88",
|
|
79
78
|
"@pisell/icon": "0.0.11",
|
|
80
|
-
"@pisell/utils": "3.0.7"
|
|
79
|
+
"@pisell/utils": "3.0.7",
|
|
80
|
+
"@pisell/date-picker": "3.0.12"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": "^18.0.0",
|
|
@@ -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,54 +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 "../multiCurrencySettlement/index.js";
|
|
9
|
-
import "./utils/customerAuthGate.js";
|
|
10
|
-
import "./context/SalesSdkBusinessAvailabilityContext.js";
|
|
11
|
-
import "./utils/appendPromotionTags.js";
|
|
12
|
-
import "./utils/productSkuOptions.js";
|
|
13
|
-
import "./context/SalesSdkUIHostsContext.js";
|
|
14
|
-
import "./utils/runAddProductFlow.js";
|
|
15
|
-
import "./components/showAddToCartToast.js";
|
|
16
|
-
import "./utils/resolveAddProductDebounceKey.js";
|
|
17
|
-
import "./utils/identity.js";
|
|
18
|
-
import "./utils/resolveInCartQuantityForAddToast.js";
|
|
19
|
-
import "./utils/addProductWithFlowDebounced.js";
|
|
20
|
-
import "./utils/bookingDate.js";
|
|
21
|
-
import "./utils/holderSubmitValidation.js";
|
|
22
|
-
import "./utils/removeOrderProducts.js";
|
|
23
|
-
import "./selectors.js";
|
|
24
|
-
import "./utils/enrich.js";
|
|
25
|
-
import "./giftSelect/createOpenGiftSelectHost.js";
|
|
26
|
-
import "./utils/ensureHoldersBeforeSubmit.js";
|
|
27
|
-
import "./hooks/useSalesSdk.js";
|
|
28
|
-
import "./bookingEditService/BookingEditServiceDrawer.js";
|
|
29
|
-
import "./hosts/BookingEditHostRenderer.js";
|
|
30
|
-
import "./hosts/CustomerAuthHostRenderer.js";
|
|
31
|
-
import "./hooks/useSalesSdkCart.js";
|
|
32
|
-
import "./hooks/useSalesSdkCustomer.js";
|
|
33
|
-
import "./normalProductDetail/NormalProductDetailHostRenderer.js";
|
|
34
|
-
import "./hosts/createOpenBookingEditHost.js";
|
|
35
|
-
import "./hosts/createOpenMultiDaySelectHost.js";
|
|
36
|
-
import "./hosts/createOpenHolderSelectHost.js";
|
|
37
|
-
import "./hosts/createOpenCustomerAuthHost.js";
|
|
38
|
-
import "./demo/hosts/legacyOpenProductDetail.js";
|
|
39
|
-
import "./hosts/createCompositeOpenProductDetailHost.js";
|
|
40
|
-
import "./normalProductDetail/createOpenNormalProductDetailHost.js";
|
|
41
|
-
import "./normalProductDetail/createOpenBookingSelectionFlowHost.js";
|
|
42
|
-
import "./giftSelect/GiftSelectModal.js";
|
|
43
|
-
import "./giftSelect/GiftSelectHostRenderer.js";
|
|
44
|
-
import "./allergy/AllergySelectionModal.js";
|
|
45
|
-
import "./context/SalesSdkProvider.js";
|
|
46
|
-
import "./context/SalesSdkDishContext.js";
|
|
47
|
-
import "./context/SalesSdkBookingContext.js";
|
|
48
|
-
import "./hooks/useSalesSdkSummary.js";
|
|
49
|
-
import "./hooks/useSalesSdkProducts.js";
|
|
50
|
-
import "./demo/index.js";
|
|
51
|
-
import "./hooks/useSalesSdkDish.js";
|
|
52
|
-
import "./hooks/useCurrentSalesSdkDish.js";
|
|
53
|
-
import "./hooks/useSyncOsModule.js";
|
|
54
|
-
export {};
|