@simpleapps-com/augur-hooks 2.2.14 → 2.2.16
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/dist/checkout/index.cjs +314 -0
- package/dist/checkout/index.cjs.map +1 -0
- package/dist/checkout/index.d.cts +246 -0
- package/dist/checkout/index.d.ts +246 -0
- package/dist/checkout/index.js +314 -0
- package/dist/checkout/index.js.map +1 -0
- package/dist/chunk-AJ2TD5BG.js +225 -0
- package/dist/chunk-AJ2TD5BG.js.map +1 -0
- package/dist/chunk-SSOW6W53.cjs +225 -0
- package/dist/chunk-SSOW6W53.cjs.map +1 -0
- package/dist/index.cjs +100 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -79
- package/dist/index.d.ts +88 -79
- package/dist/index.js +101 -165
- package/dist/index.js.map +1 -1
- package/dist/use-payment-flow-DF8OEQiq.d.cts +88 -0
- package/dist/use-payment-flow-DF8OEQiq.d.ts +88 -0
- package/package.json +8 -3
package/dist/index.cjs
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
var _chunkXJJ6DZDKcjs = require('./chunk-XJJ6DZDK.cjs');
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkSSOW6W53cjs = require('./chunk-SSOW6W53.cjs');
|
|
14
|
+
|
|
10
15
|
// src/provider.tsx
|
|
11
16
|
var _react = require('react');
|
|
12
17
|
|
|
@@ -400,164 +405,87 @@ function useCartActions(callbacks) {
|
|
|
400
405
|
};
|
|
401
406
|
}
|
|
402
407
|
|
|
403
|
-
// src/hooks/use-
|
|
404
|
-
|
|
405
|
-
function
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
paymentMethod,
|
|
410
|
-
shippingAccepted
|
|
411
|
-
}) {
|
|
412
|
-
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
413
|
-
const [unified, setUnified] = _react.useState.call(void 0, null);
|
|
414
|
-
const [unifiedCc, setUnifiedCc] = _react.useState.call(void 0, null);
|
|
415
|
-
const [unifiedResponse, setUnifiedResponse] = _react.useState.call(void 0, false);
|
|
416
|
-
const [unifiedBilling, setUnifiedBilling] = _react.useState.call(void 0, false);
|
|
417
|
-
const [unifiedPayment, setUnifiedPayment] = _react.useState.call(void 0, null);
|
|
418
|
-
const [capturedBin, setCapturedBin] = _react.useState.call(void 0, null);
|
|
419
|
-
const [editCc, setEditCc] = _react.useState.call(void 0, false);
|
|
420
|
-
const handleBinCapture = _react.useCallback.call(void 0, (bin) => {
|
|
421
|
-
setCapturedBin(bin);
|
|
408
|
+
// src/hooks/use-modal-lifecycle.ts
|
|
409
|
+
|
|
410
|
+
function useModalLifecycle(isOpen, onClose) {
|
|
411
|
+
const [isClient, setIsClient] = _react.useState.call(void 0, false);
|
|
412
|
+
_react.useEffect.call(void 0, () => {
|
|
413
|
+
setIsClient(true);
|
|
422
414
|
}, []);
|
|
423
|
-
const postUnified = _react.useCallback.call(void 0, async () => {
|
|
424
|
-
if (!customerId) return;
|
|
425
|
-
try {
|
|
426
|
-
const result = await callbacks.transactionSetup({ customerId: String(customerId) });
|
|
427
|
-
if (!result) {
|
|
428
|
-
_optionalChain([callbacks, 'access', _26 => _26.toast, 'optionalAccess', _27 => _27.error, 'optionalCall', _28 => _28("Unable to initialize payment. Please try again.")]);
|
|
429
|
-
return;
|
|
430
|
-
}
|
|
431
|
-
setUnified(result);
|
|
432
|
-
} catch (error) {
|
|
433
|
-
console.error("transactionSetup failed:", error);
|
|
434
|
-
_optionalChain([callbacks, 'access', _29 => _29.toast, 'optionalAccess', _30 => _30.error, 'optionalCall', _31 => _31("Unable to initialize payment. Please try again.")]);
|
|
435
|
-
}
|
|
436
|
-
}, [customerId, callbacks]);
|
|
437
|
-
const getCardInfo = _react.useCallback.call(void 0, async () => {
|
|
438
|
-
if (!_optionalChain([unified, 'optionalAccess', _32 => _32.transactionSetupId])) return;
|
|
439
|
-
try {
|
|
440
|
-
const result = await callbacks.cardInfo({ transactionSetupId: unified.transactionSetupId });
|
|
441
|
-
if (!result) {
|
|
442
|
-
_optionalChain([callbacks, 'access', _33 => _33.toast, 'optionalAccess', _34 => _34.error, 'optionalCall', _35 => _35("Unable to verify card details. Please try again.")]);
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
setUnifiedCc(result);
|
|
446
|
-
} catch (error) {
|
|
447
|
-
console.error("cardInfo failed:", error);
|
|
448
|
-
_optionalChain([callbacks, 'access', _36 => _36.toast, 'optionalAccess', _37 => _37.error, 'optionalCall', _38 => _38("Unable to verify card details. Please try again.")]);
|
|
449
|
-
}
|
|
450
|
-
}, [unified, callbacks]);
|
|
451
|
-
const verifyUnified = _react.useCallback.call(void 0, async () => {
|
|
452
|
-
if (!_optionalChain([unified, 'optionalAccess', _39 => _39.transactionSetupId]) || !customerId) return;
|
|
453
|
-
try {
|
|
454
|
-
const result = await callbacks.validatePayment({
|
|
455
|
-
transactionSetupId: unified.transactionSetupId,
|
|
456
|
-
customerId: String(customerId)
|
|
457
|
-
});
|
|
458
|
-
if (!result) {
|
|
459
|
-
_optionalChain([callbacks, 'access', _40 => _40.toast, 'optionalAccess', _41 => _41.error, 'optionalCall', _42 => _42("Payment verification failed. Please try again.")]);
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
setUnifiedResponse(result.valid);
|
|
463
|
-
if (result.valid) {
|
|
464
|
-
await getCardInfo();
|
|
465
|
-
}
|
|
466
|
-
} catch (error) {
|
|
467
|
-
console.error("validatePayment failed:", error);
|
|
468
|
-
_optionalChain([callbacks, 'access', _43 => _43.toast, 'optionalAccess', _44 => _44.error, 'optionalCall', _45 => _45("Payment verification failed. Please try again.")]);
|
|
469
|
-
}
|
|
470
|
-
}, [unified, customerId, getCardInfo, callbacks]);
|
|
471
|
-
const getUnifiedPayment = _react.useCallback.call(void 0, async () => {
|
|
472
|
-
if (!_optionalChain([unified, 'optionalAccess', _46 => _46.transactionSetupId]) || !customerId) return;
|
|
473
|
-
try {
|
|
474
|
-
const result = await callbacks.accountQuery({
|
|
475
|
-
transactionSetupId: unified.transactionSetupId,
|
|
476
|
-
customerId: String(customerId)
|
|
477
|
-
});
|
|
478
|
-
if (!result) {
|
|
479
|
-
_optionalChain([callbacks, 'access', _47 => _47.toast, 'optionalAccess', _48 => _48.error, 'optionalCall', _49 => _49("Unable to retrieve payment account. Please try again.")]);
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
const payment = capturedBin && !result.Bin ? { ...result, Bin: capturedBin } : result;
|
|
483
|
-
setUnifiedPayment(payment);
|
|
484
|
-
} catch (error) {
|
|
485
|
-
console.error("accountQuery failed:", error);
|
|
486
|
-
_optionalChain([callbacks, 'access', _50 => _50.toast, 'optionalAccess', _51 => _51.error, 'optionalCall', _52 => _52("Unable to retrieve payment account. Please try again.")]);
|
|
487
|
-
}
|
|
488
|
-
}, [unified, customerId, capturedBin, callbacks]);
|
|
489
|
-
const updateUnifiedBilling = _react.useCallback.call(void 0, async () => {
|
|
490
|
-
if (!_optionalChain([unified, 'optionalAccess', _53 => _53.transactionSetupId]) || !billingAddress) return;
|
|
491
|
-
try {
|
|
492
|
-
const result = await callbacks.billingUpdate({
|
|
493
|
-
transactionSetupId: unified.transactionSetupId,
|
|
494
|
-
address1: billingAddress.address1,
|
|
495
|
-
address2: billingAddress.address2,
|
|
496
|
-
city: billingAddress.city,
|
|
497
|
-
state: billingAddress.state,
|
|
498
|
-
zip: billingAddress.postalCode
|
|
499
|
-
});
|
|
500
|
-
if (!result) {
|
|
501
|
-
_optionalChain([callbacks, 'access', _54 => _54.toast, 'optionalAccess', _55 => _55.error, 'optionalCall', _56 => _56("Billing update failed. Please try again.")]);
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
setUnifiedBilling(true);
|
|
505
|
-
void getUnifiedPayment();
|
|
506
|
-
} catch (error) {
|
|
507
|
-
console.error("billingUpdate failed:", error);
|
|
508
|
-
_optionalChain([callbacks, 'access', _57 => _57.toast, 'optionalAccess', _58 => _58.error, 'optionalCall', _59 => _59("Billing update failed. Please try again.")]);
|
|
509
|
-
}
|
|
510
|
-
}, [unified, billingAddress, getUnifiedPayment, callbacks]);
|
|
511
415
|
_react.useEffect.call(void 0, () => {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
416
|
+
document.body.style.overflow = isOpen ? "hidden" : "auto";
|
|
417
|
+
return () => {
|
|
418
|
+
document.body.style.overflow = "auto";
|
|
419
|
+
};
|
|
420
|
+
}, [isOpen]);
|
|
516
421
|
_react.useEffect.call(void 0, () => {
|
|
517
|
-
|
|
518
|
-
|
|
422
|
+
const handleEscape = (e) => {
|
|
423
|
+
if (e.key === "Escape" && isOpen) onClose();
|
|
424
|
+
};
|
|
425
|
+
document.addEventListener("keydown", handleEscape);
|
|
426
|
+
return () => document.removeEventListener("keydown", handleEscape);
|
|
427
|
+
}, [isOpen, onClose]);
|
|
428
|
+
return { isClient };
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// src/hooks/use-checkout-persistence.ts
|
|
432
|
+
|
|
433
|
+
var DEFAULT_TTL = 30 * 60 * 1e3;
|
|
434
|
+
function saveToSession(key, value) {
|
|
435
|
+
try {
|
|
436
|
+
const entry = { value, savedAt: Date.now() };
|
|
437
|
+
sessionStorage.setItem(key, JSON.stringify(entry));
|
|
438
|
+
} catch (e2) {
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function loadFromSession(key, ttl = DEFAULT_TTL, validate) {
|
|
442
|
+
try {
|
|
443
|
+
const raw = sessionStorage.getItem(key);
|
|
444
|
+
if (!raw) return null;
|
|
445
|
+
const entry = JSON.parse(raw);
|
|
446
|
+
if (Date.now() - entry.savedAt > ttl) {
|
|
447
|
+
sessionStorage.removeItem(key);
|
|
448
|
+
return null;
|
|
519
449
|
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
if (!isOpen && unified !== null && shippingAccepted && paymentMethod === "credit-card") {
|
|
523
|
-
void verifyUnified();
|
|
450
|
+
if (validate) {
|
|
451
|
+
return validate(entry.value);
|
|
524
452
|
}
|
|
525
|
-
|
|
453
|
+
return entry.value;
|
|
454
|
+
} catch (e3) {
|
|
455
|
+
sessionStorage.removeItem(key);
|
|
456
|
+
return null;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
function clearFromSession(key) {
|
|
460
|
+
try {
|
|
461
|
+
sessionStorage.removeItem(key);
|
|
462
|
+
} catch (e4) {
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function useCheckoutPersistence(fields) {
|
|
466
|
+
const fieldsRef = _react.useRef.call(void 0, fields);
|
|
467
|
+
fieldsRef.current = fields;
|
|
526
468
|
_react.useEffect.call(void 0, () => {
|
|
527
|
-
|
|
528
|
-
|
|
469
|
+
for (const field of fieldsRef.current) {
|
|
470
|
+
const restored = loadFromSession(field.key, _nullishCoalesce(field.ttl, () => ( DEFAULT_TTL)), field.validate);
|
|
471
|
+
if (restored !== null) {
|
|
472
|
+
field.set(restored);
|
|
473
|
+
}
|
|
529
474
|
}
|
|
530
|
-
}, [
|
|
531
|
-
|
|
532
|
-
billingAddress,
|
|
533
|
-
_optionalChain([unifiedCc, 'optionalAccess', _61 => _61.transactionSetupId]),
|
|
534
|
-
updateUnifiedBilling,
|
|
535
|
-
paymentMethod
|
|
536
|
-
]);
|
|
475
|
+
}, []);
|
|
476
|
+
const serialized = JSON.stringify(fields.map((f) => [f.key, f.value]));
|
|
537
477
|
_react.useEffect.call(void 0, () => {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
setUnifiedPayment(null);
|
|
543
|
-
setUnifiedBilling(false);
|
|
544
|
-
setUnifiedResponse(false);
|
|
545
|
-
setCapturedBin(null);
|
|
478
|
+
for (const field of fields) {
|
|
479
|
+
if (field.value !== void 0 && field.value !== null) {
|
|
480
|
+
saveToSession(field.key, field.value);
|
|
481
|
+
}
|
|
546
482
|
}
|
|
547
|
-
}, [
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
unified,
|
|
554
|
-
unifiedCc,
|
|
555
|
-
unifiedResponse,
|
|
556
|
-
unifiedBilling,
|
|
557
|
-
unifiedPayment,
|
|
558
|
-
capturedBin,
|
|
559
|
-
handleBinCapture
|
|
560
|
-
};
|
|
483
|
+
}, [serialized]);
|
|
484
|
+
}
|
|
485
|
+
function clearCheckoutPersistence(keys) {
|
|
486
|
+
for (const key of keys) {
|
|
487
|
+
clearFromSession(key);
|
|
488
|
+
}
|
|
561
489
|
}
|
|
562
490
|
|
|
563
491
|
// src/hooks/use-cart-initialization.ts
|
|
@@ -579,8 +507,8 @@ function useCartInitialization(session, callbacks) {
|
|
|
579
507
|
const clearCart = useClearCart();
|
|
580
508
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
581
509
|
const effectiveStatus = session.status;
|
|
582
|
-
const effectiveUserId = _nullishCoalesce(session.userId, () => ( _optionalChain([auth, 'optionalAccess',
|
|
583
|
-
const effectiveCartHdrUid = _nullishCoalesce(session.cartHdrUid, () => ( _optionalChain([auth, 'optionalAccess',
|
|
510
|
+
const effectiveUserId = _nullishCoalesce(session.userId, () => ( _optionalChain([auth, 'optionalAccess', _26 => _26.userId])));
|
|
511
|
+
const effectiveCartHdrUid = _nullishCoalesce(session.cartHdrUid, () => ( _optionalChain([auth, 'optionalAccess', _27 => _27.cartHdrUid])));
|
|
584
512
|
const effectiveSession = _react.useMemo.call(void 0,
|
|
585
513
|
() => ({ status: effectiveStatus, userId: effectiveUserId, cartHdrUid: effectiveCartHdrUid }),
|
|
586
514
|
[effectiveStatus, effectiveUserId, effectiveCartHdrUid]
|
|
@@ -675,13 +603,13 @@ function useCartPricing(options = {}) {
|
|
|
675
603
|
const auth = useAugurAuth();
|
|
676
604
|
const site = useAugurSite();
|
|
677
605
|
const cartLines = useCartLines();
|
|
678
|
-
const customerId = _nullishCoalesce(_nullishCoalesce(options.customerId, () => ( _optionalChain([auth, 'optionalAccess',
|
|
606
|
+
const customerId = _nullishCoalesce(_nullishCoalesce(options.customerId, () => ( _optionalChain([auth, 'optionalAccess', _28 => _28.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _29 => _29.defaults, 'optionalAccess', _30 => _30.customerId])));
|
|
679
607
|
const priceFn = options.queryFn;
|
|
680
608
|
const priceQueries = _reactquery.useQueries.call(void 0, {
|
|
681
609
|
queries: cartLines.map((line) => {
|
|
682
610
|
if (priceFn) {
|
|
683
611
|
return {
|
|
684
|
-
queryKey: ["price", _optionalChain([line, 'access',
|
|
612
|
+
queryKey: ["price", _optionalChain([line, 'access', _31 => _31.itemId, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()]) || "", customerId, line.quantity],
|
|
685
613
|
queryFn: () => priceFn(line.itemId, customerId, line.quantity),
|
|
686
614
|
refetchOnReconnect: true,
|
|
687
615
|
refetchOnWindowFocus: false,
|
|
@@ -690,7 +618,7 @@ function useCartPricing(options = {}) {
|
|
|
690
618
|
};
|
|
691
619
|
}
|
|
692
620
|
const proxyOpts = proxy.pricing.priceEngine.list({
|
|
693
|
-
itemId: _optionalChain([line, 'access',
|
|
621
|
+
itemId: _optionalChain([line, 'access', _34 => _34.itemId, 'optionalAccess', _35 => _35.toUpperCase, 'call', _36 => _36()]) || "",
|
|
694
622
|
customerId: Number(customerId),
|
|
695
623
|
quantity: line.quantity
|
|
696
624
|
});
|
|
@@ -707,7 +635,7 @@ function useCartPricing(options = {}) {
|
|
|
707
635
|
const map = {};
|
|
708
636
|
cartLines.forEach((line, index) => {
|
|
709
637
|
const queryResult = priceQueries[index];
|
|
710
|
-
const rawData = _optionalChain([queryResult, 'optionalAccess',
|
|
638
|
+
const rawData = _optionalChain([queryResult, 'optionalAccess', _37 => _37.data]);
|
|
711
639
|
if (rawData) {
|
|
712
640
|
const priceData = _nullishCoalesce(rawData.data, () => ( rawData));
|
|
713
641
|
const derived = _augurutils.derivePrice.call(void 0, {
|
|
@@ -724,7 +652,7 @@ function useCartPricing(options = {}) {
|
|
|
724
652
|
}, [cartLines, priceQueries]);
|
|
725
653
|
const getUnitPrice = _react.useMemo.call(void 0, () => {
|
|
726
654
|
return (itemId) => {
|
|
727
|
-
return _nullishCoalesce(_optionalChain([prices, 'access',
|
|
655
|
+
return _nullishCoalesce(_optionalChain([prices, 'access', _38 => _38[_optionalChain([itemId, 'optionalAccess', _39 => _39.toUpperCase, 'call', _40 => _40()])], 'optionalAccess', _41 => _41.unitPrice]), () => ( 0));
|
|
728
656
|
};
|
|
729
657
|
}, [prices]);
|
|
730
658
|
const getItemTotal = _react.useMemo.call(void 0, () => {
|
|
@@ -734,7 +662,7 @@ function useCartPricing(options = {}) {
|
|
|
734
662
|
}, [getUnitPrice]);
|
|
735
663
|
const subtotal = _react.useMemo.call(void 0, () => {
|
|
736
664
|
return cartLines.reduce((sum, line) => {
|
|
737
|
-
const unitPrice = _nullishCoalesce(_optionalChain([prices, 'access',
|
|
665
|
+
const unitPrice = _nullishCoalesce(_optionalChain([prices, 'access', _42 => _42[line.itemId.toUpperCase()], 'optionalAccess', _43 => _43.unitPrice]), () => ( 0));
|
|
738
666
|
return sum + unitPrice * line.quantity;
|
|
739
667
|
}, 0);
|
|
740
668
|
}, [cartLines, prices]);
|
|
@@ -811,7 +739,7 @@ function deserialize(data) {
|
|
|
811
739
|
|
|
812
740
|
// src/persistence/apply-limits.ts
|
|
813
741
|
function applyLimits(data, limits) {
|
|
814
|
-
const queries = _optionalChain([data, 'access',
|
|
742
|
+
const queries = _optionalChain([data, 'access', _44 => _44.clientState, 'optionalAccess', _45 => _45.queries]);
|
|
815
743
|
if (!queries || Object.keys(limits).length === 0) return data;
|
|
816
744
|
const entries = queries;
|
|
817
745
|
const unlimited = [];
|
|
@@ -862,7 +790,7 @@ function createPersister(config) {
|
|
|
862
790
|
try {
|
|
863
791
|
const limited = applyLimits(pending, limits);
|
|
864
792
|
window.localStorage.setItem(config.key, serialize(limited));
|
|
865
|
-
} catch (
|
|
793
|
+
} catch (e5) {
|
|
866
794
|
}
|
|
867
795
|
pending = void 0;
|
|
868
796
|
}
|
|
@@ -881,7 +809,7 @@ function createPersister(config) {
|
|
|
881
809
|
const raw = window.localStorage.getItem(config.key);
|
|
882
810
|
if (!raw) return void 0;
|
|
883
811
|
return deserialize(raw);
|
|
884
|
-
} catch (
|
|
812
|
+
} catch (e6) {
|
|
885
813
|
return void 0;
|
|
886
814
|
}
|
|
887
815
|
},
|
|
@@ -912,7 +840,7 @@ function useStorageMonitor(config) {
|
|
|
912
840
|
const raw = storage.getItem(key);
|
|
913
841
|
if (!raw) return;
|
|
914
842
|
const parsed = JSON.parse(raw);
|
|
915
|
-
if (!_optionalChain([parsed, 'access',
|
|
843
|
+
if (!_optionalChain([parsed, 'access', _46 => _46.clientState, 'optionalAccess', _47 => _47.queries])) return;
|
|
916
844
|
parsed.clientState.queries = parsed.clientState.queries.filter(
|
|
917
845
|
(q) => {
|
|
918
846
|
if (!Array.isArray(q.queryKey)) return true;
|
|
@@ -921,7 +849,7 @@ function useStorageMonitor(config) {
|
|
|
921
849
|
}
|
|
922
850
|
);
|
|
923
851
|
storage.setItem(key, JSON.stringify(parsed));
|
|
924
|
-
} catch (
|
|
852
|
+
} catch (e7) {
|
|
925
853
|
storage.removeItem(key);
|
|
926
854
|
}
|
|
927
855
|
}
|
|
@@ -939,7 +867,7 @@ function useAugurPersistence(config) {
|
|
|
939
867
|
setIsMounted(true);
|
|
940
868
|
}, []);
|
|
941
869
|
useStorageMonitor(config);
|
|
942
|
-
const isDev = typeof process !== "undefined" && _optionalChain([process, 'access',
|
|
870
|
+
const isDev = typeof process !== "undefined" && _optionalChain([process, 'access', _48 => _48.env, 'optionalAccess', _49 => _49["NODE_ENV"]]) === "development";
|
|
943
871
|
const { persistableKeys } = config;
|
|
944
872
|
const dehydrateOptions = _react.useMemo.call(void 0,
|
|
945
873
|
() => ({
|
|
@@ -991,5 +919,13 @@ function useAugurPersistence(config) {
|
|
|
991
919
|
|
|
992
920
|
|
|
993
921
|
|
|
994
|
-
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
exports.AugurHooksProvider = AugurHooksProvider; exports.clearCheckoutPersistence = clearCheckoutPersistence; exports.clearFromSession = clearFromSession; exports.determineOrderReadiness = _chunkSSOW6W53cjs.determineOrderReadiness; exports.executeBatchQuery = _chunkXJJ6DZDKcjs.executeBatchQuery; exports.getCartPricingQueryOptions = _chunkXJJ6DZDKcjs.getCartPricingQueryOptions; exports.getRegisteredQueryAction = _chunkXJJ6DZDKcjs.getRegisteredQueryAction; exports.getStockKey = _chunkXJJ6DZDKcjs.getStockKey; exports.getStockOptions = _chunkXJJ6DZDKcjs.getStockOptions; exports.loadFromSession = loadFromSession; exports.registerQueryAction = _chunkXJJ6DZDKcjs.registerQueryAction; exports.saveToSession = saveToSession; exports.useAugurApi = useAugurApi; exports.useAugurApiOptional = useAugurApiOptional; exports.useAugurAuth = useAugurAuth; exports.useAugurCache = useAugurCache; exports.useAugurOptions = useAugurOptions; exports.useAugurPersistence = useAugurPersistence; exports.useAugurSite = useAugurSite; exports.useCartActions = useCartActions; exports.useCartHdrUid = useCartHdrUid; exports.useCartInitialization = useCartInitialization; exports.useCartLineCount = useCartLineCount; exports.useCartLines = useCartLines; exports.useCartPricing = useCartPricing; exports.useCartQuantityTotal = useCartQuantityTotal; exports.useCartStore = useCartStore; exports.useCheckoutPersistence = useCheckoutPersistence; exports.useClearCart = useClearCart; exports.useDebounce = useDebounce; exports.useFormatPrice = useFormatPrice; exports.useItemFiltersStore = useItemFiltersStore; exports.useModalLifecycle = useModalLifecycle; exports.useOrderReadiness = _chunkSSOW6W53cjs.useOrderReadiness; exports.usePaginationPrefetch = usePaginationPrefetch; exports.usePaymentFlow = _chunkSSOW6W53cjs.usePaymentFlow; exports.useSetCartHdrUid = useSetCartHdrUid; exports.useSetCartLines = useSetCartLines; exports.useStock = useStock;
|
|
995
931
|
//# sourceMappingURL=index.cjs.map
|