@nok-integration/storefront-react 0.19.40 → 0.19.42
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/index.d.ts +1 -1
- package/dist/index.mjs +106 -122
- package/dist/standalone/storefront.mjs +106 -122
- package/dist/standalone/styles.css +135 -135
- package/dist/styles.css +135 -135
- package/package.json +9 -28
|
@@ -4647,7 +4647,7 @@ function requireOrderTracking() {
|
|
|
4647
4647
|
Object.defineProperty(exports, "__esModule", {
|
|
4648
4648
|
value: true
|
|
4649
4649
|
});
|
|
4650
|
-
exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.OrderList = exports.OrderSummaryItem = exports.ReturnStatus = exports.OrderItem = exports.OrderTracking = exports.OrderProgressEntry = exports.OrderProgressStep = void 0;
|
|
4650
|
+
exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.OrderList = exports.OrderSummaryItem = exports.ReturnOutcome = exports.ReturnStatus = exports.OrderItem = exports.OrderTracking = exports.OrderProgressEntry = exports.OrderProgressStep = void 0;
|
|
4651
4651
|
const zod_1 = requireZod();
|
|
4652
4652
|
const money_1 = requireMoney();
|
|
4653
4653
|
const ids_1 = requireIds();
|
|
@@ -4680,6 +4680,7 @@ function requireOrderTracking() {
|
|
|
4680
4680
|
returned_qty: zod_1.z.number().int().nonnegative().optional()
|
|
4681
4681
|
});
|
|
4682
4682
|
exports.ReturnStatus = zod_1.z.enum(["reported", "package_received", "completed"]);
|
|
4683
|
+
exports.ReturnOutcome = zod_1.z.enum(["accepted", "rejected", "partial"]);
|
|
4683
4684
|
exports.OrderSummaryItem = zod_1.z.object({
|
|
4684
4685
|
order_ref: ids_1.OrderRef,
|
|
4685
4686
|
placed_at: common_1.Timestamp,
|
|
@@ -5523,13 +5524,13 @@ function Skeleton({ width, height, radius, className, circle }) {
|
|
|
5523
5524
|
style
|
|
5524
5525
|
});
|
|
5525
5526
|
}
|
|
5526
|
-
const surface$1 = "
|
|
5527
|
-
const fill = "
|
|
5527
|
+
const surface$1 = "_surface_ekrjo_10";
|
|
5528
|
+
const fill = "_fill_ekrjo_35";
|
|
5528
5529
|
const styles$O = {
|
|
5529
5530
|
surface: surface$1,
|
|
5530
5531
|
fill
|
|
5531
5532
|
};
|
|
5532
|
-
const SETTLE_MS
|
|
5533
|
+
const SETTLE_MS = 150;
|
|
5533
5534
|
function scrolledOffOrigin(el) {
|
|
5534
5535
|
for (let node = el.parentElement; node; node = node.parentElement) {
|
|
5535
5536
|
if (node.scrollTop > 0) return true;
|
|
@@ -5553,11 +5554,11 @@ function useTopOffset(ref, property, enabled = true) {
|
|
|
5553
5554
|
};
|
|
5554
5555
|
const settle = () => {
|
|
5555
5556
|
if (timer2) clearTimeout(timer2);
|
|
5556
|
-
timer2 = setTimeout(measure, SETTLE_MS
|
|
5557
|
+
timer2 = setTimeout(measure, SETTLE_MS);
|
|
5557
5558
|
};
|
|
5558
5559
|
measure();
|
|
5559
5560
|
const frame2 = typeof requestAnimationFrame === "undefined" ? void 0 : requestAnimationFrame(measure);
|
|
5560
|
-
const settleAfterMount = setTimeout(measure, SETTLE_MS
|
|
5561
|
+
const settleAfterMount = setTimeout(measure, SETTLE_MS);
|
|
5561
5562
|
window.addEventListener("resize", measure);
|
|
5562
5563
|
window.addEventListener("orientationchange", measure);
|
|
5563
5564
|
document.addEventListener("scroll", settle, {
|
|
@@ -6598,27 +6599,27 @@ function renderValue(key, pricing, format, t) {
|
|
|
6598
6599
|
}
|
|
6599
6600
|
return key === "discount" ? null : format(pricing[key]);
|
|
6600
6601
|
}
|
|
6601
|
-
const lines$1 = "
|
|
6602
|
-
const line$2 = "
|
|
6603
|
-
const thumb$2 = "
|
|
6604
|
-
const image$9 = "
|
|
6605
|
-
const placeholder$8 = "
|
|
6606
|
-
const lineBody = "
|
|
6607
|
-
const lineText = "
|
|
6608
|
-
const lineTitle = "
|
|
6609
|
-
const lineMeta = "
|
|
6610
|
-
const detail$1 = "
|
|
6611
|
-
const linePrice = "
|
|
6612
|
-
const paid$3 = "
|
|
6613
|
-
const was$4 = "
|
|
6614
|
-
const card$4 = "
|
|
6615
|
-
const cardTitle = "
|
|
6616
|
-
const cardBody = "
|
|
6617
|
-
const summaryCard = "
|
|
6618
|
-
const itemsHeader = "
|
|
6619
|
-
const itemsTitle = "
|
|
6620
|
-
const itemsCount = "
|
|
6621
|
-
const cardLines = "
|
|
6602
|
+
const lines$1 = "_lines_1nchz_19";
|
|
6603
|
+
const line$2 = "_line_1nchz_19";
|
|
6604
|
+
const thumb$2 = "_thumb_1nchz_34";
|
|
6605
|
+
const image$9 = "_image_1nchz_44";
|
|
6606
|
+
const placeholder$8 = "_placeholder_1nchz_51";
|
|
6607
|
+
const lineBody = "_lineBody_1nchz_56";
|
|
6608
|
+
const lineText = "_lineText_1nchz_65";
|
|
6609
|
+
const lineTitle = "_lineTitle_1nchz_75";
|
|
6610
|
+
const lineMeta = "_lineMeta_1nchz_107";
|
|
6611
|
+
const detail$1 = "_detail_1nchz_104";
|
|
6612
|
+
const linePrice = "_linePrice_1nchz_128";
|
|
6613
|
+
const paid$3 = "_paid_1nchz_140";
|
|
6614
|
+
const was$4 = "_was_1nchz_153";
|
|
6615
|
+
const card$4 = "_card_1nchz_176";
|
|
6616
|
+
const cardTitle = "_cardTitle_1nchz_184";
|
|
6617
|
+
const cardBody = "_cardBody_1nchz_196";
|
|
6618
|
+
const summaryCard = "_summaryCard_1nchz_168";
|
|
6619
|
+
const itemsHeader = "_itemsHeader_1nchz_14";
|
|
6620
|
+
const itemsTitle = "_itemsTitle_1nchz_239";
|
|
6621
|
+
const itemsCount = "_itemsCount_1nchz_250";
|
|
6622
|
+
const cardLines = "_cardLines_1nchz_269";
|
|
6622
6623
|
const styles$F = {
|
|
6623
6624
|
lines: lines$1,
|
|
6624
6625
|
line: line$2,
|
|
@@ -7056,17 +7057,17 @@ function ReturnItemRow({ item: item2, className }) {
|
|
|
7056
7057
|
})]
|
|
7057
7058
|
});
|
|
7058
7059
|
}
|
|
7059
|
-
const page$6 = "
|
|
7060
|
-
const titles$2 = "
|
|
7061
|
-
const title$k = "
|
|
7062
|
-
const subtitle$7 = "
|
|
7063
|
-
const list$2 = "
|
|
7064
|
-
const card$3 = "
|
|
7065
|
-
const checkSlot = "
|
|
7066
|
-
const check = "
|
|
7067
|
-
const row$6 = "
|
|
7068
|
-
const reason = "
|
|
7069
|
-
const reasonSet = "
|
|
7060
|
+
const page$6 = "_page_1wude_7";
|
|
7061
|
+
const titles$2 = "_titles_1wude_15";
|
|
7062
|
+
const title$k = "_title_1wude_15";
|
|
7063
|
+
const subtitle$7 = "_subtitle_1wude_30";
|
|
7064
|
+
const list$2 = "_list_1wude_38";
|
|
7065
|
+
const card$3 = "_card_1wude_48";
|
|
7066
|
+
const checkSlot = "_checkSlot_1wude_61";
|
|
7067
|
+
const check = "_check_1wude_61";
|
|
7068
|
+
const row$6 = "_row_1wude_105";
|
|
7069
|
+
const reason = "_reason_1wude_130";
|
|
7070
|
+
const reasonSet = "_reasonSet_1wude_150";
|
|
7070
7071
|
const styles$B = {
|
|
7071
7072
|
page: page$6,
|
|
7072
7073
|
titles: titles$2,
|
|
@@ -7942,13 +7943,13 @@ function HelpRow({ label: label2, status, onClick }) {
|
|
|
7942
7943
|
function shortRef$1(orderRef) {
|
|
7943
7944
|
return orderRef.replace(/^ord_/, "");
|
|
7944
7945
|
}
|
|
7945
|
-
const page$2 = "
|
|
7946
|
-
const confirmed = "
|
|
7947
|
-
const title$h = "
|
|
7948
|
-
const headline = "
|
|
7949
|
-
const subtitle$4 = "
|
|
7950
|
-
const rule = "
|
|
7951
|
-
const done = "
|
|
7946
|
+
const page$2 = "_page_o6awf_6";
|
|
7947
|
+
const confirmed = "_confirmed_o6awf_16";
|
|
7948
|
+
const title$h = "_title_o6awf_22";
|
|
7949
|
+
const headline = "_headline_o6awf_47";
|
|
7950
|
+
const subtitle$4 = "_subtitle_o6awf_65";
|
|
7951
|
+
const rule = "_rule_o6awf_89";
|
|
7952
|
+
const done = "_done_o6awf_106";
|
|
7952
7953
|
const styles$x = {
|
|
7953
7954
|
page: page$2,
|
|
7954
7955
|
confirmed,
|
|
@@ -9138,11 +9139,11 @@ function ShippingInfo() {
|
|
|
9138
9139
|
})]
|
|
9139
9140
|
});
|
|
9140
9141
|
}
|
|
9141
|
-
const bar = "
|
|
9142
|
-
const floating$1 = "
|
|
9143
|
-
const divider = "
|
|
9144
|
-
const info$1 = "
|
|
9145
|
-
const actions = "
|
|
9142
|
+
const bar = "_bar_1e0f6_1";
|
|
9143
|
+
const floating$1 = "_floating_1e0f6_53";
|
|
9144
|
+
const divider = "_divider_1e0f6_59";
|
|
9145
|
+
const info$1 = "_info_1e0f6_63";
|
|
9146
|
+
const actions = "_actions_1e0f6_71";
|
|
9146
9147
|
const styles$k = {
|
|
9147
9148
|
bar,
|
|
9148
9149
|
floating: floating$1,
|
|
@@ -9162,14 +9163,14 @@ function StickyCtaBar({ children, info: info2, variant = "floating" }) {
|
|
|
9162
9163
|
})]
|
|
9163
9164
|
});
|
|
9164
9165
|
}
|
|
9165
|
-
const surface = "
|
|
9166
|
-
const screen = "
|
|
9167
|
-
const body$3 = "
|
|
9168
|
-
const items = "
|
|
9169
|
-
const sectionHeader = "
|
|
9170
|
-
const sectionTitle = "
|
|
9171
|
-
const count = "
|
|
9172
|
-
const lines = "
|
|
9166
|
+
const surface = "_surface_3g1wi_15";
|
|
9167
|
+
const screen = "_screen_3g1wi_20";
|
|
9168
|
+
const body$3 = "_body_3g1wi_12";
|
|
9169
|
+
const items = "_items_3g1wi_34";
|
|
9170
|
+
const sectionHeader = "_sectionHeader_3g1wi_40";
|
|
9171
|
+
const sectionTitle = "_sectionTitle_3g1wi_46";
|
|
9172
|
+
const count = "_count_3g1wi_67";
|
|
9173
|
+
const lines = "_lines_3g1wi_91";
|
|
9173
9174
|
const styles$j = {
|
|
9174
9175
|
surface,
|
|
9175
9176
|
screen,
|
|
@@ -9428,14 +9429,14 @@ function CartSheetProvider({ children }) {
|
|
|
9428
9429
|
})]
|
|
9429
9430
|
});
|
|
9430
9431
|
}
|
|
9431
|
-
const gallery = "
|
|
9432
|
-
const track$2 = "
|
|
9433
|
-
const slide$1 = "
|
|
9434
|
-
const image$4 = "
|
|
9435
|
-
const placeholder$1 = "
|
|
9436
|
-
const dots$2 = "
|
|
9437
|
-
const dot$2 = "
|
|
9438
|
-
const dotActive$2 = "
|
|
9432
|
+
const gallery = "_gallery_o876w_1";
|
|
9433
|
+
const track$2 = "_track_o876w_5";
|
|
9434
|
+
const slide$1 = "_slide_o876w_29";
|
|
9435
|
+
const image$4 = "_image_o876w_36";
|
|
9436
|
+
const placeholder$1 = "_placeholder_o876w_40";
|
|
9437
|
+
const dots$2 = "_dots_o876w_58";
|
|
9438
|
+
const dot$2 = "_dot_o876w_58";
|
|
9439
|
+
const dotActive$2 = "_dotActive_o876w_109";
|
|
9439
9440
|
const styles$i = {
|
|
9440
9441
|
gallery,
|
|
9441
9442
|
track: track$2,
|
|
@@ -10401,14 +10402,14 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [] })
|
|
|
10401
10402
|
})]
|
|
10402
10403
|
});
|
|
10403
10404
|
}
|
|
10404
|
-
const hero$1 = "
|
|
10405
|
-
const image$2 = "
|
|
10406
|
-
const scrim$1 = "
|
|
10407
|
-
const fade = "
|
|
10408
|
-
const text$2 = "
|
|
10409
|
-
const title$5 = "
|
|
10410
|
-
const subtitle$2 = "
|
|
10411
|
-
const noImage = "
|
|
10405
|
+
const hero$1 = "_hero_s25l3_10";
|
|
10406
|
+
const image$2 = "_image_s25l3_42";
|
|
10407
|
+
const scrim$1 = "_scrim_s25l3_70";
|
|
10408
|
+
const fade = "_fade_s25l3_94";
|
|
10409
|
+
const text$2 = "_text_s25l3_108";
|
|
10410
|
+
const title$5 = "_title_s25l3_157";
|
|
10411
|
+
const subtitle$2 = "_subtitle_s25l3_168";
|
|
10412
|
+
const noImage = "_noImage_s25l3_183";
|
|
10412
10413
|
const styles$9 = {
|
|
10413
10414
|
hero: hero$1,
|
|
10414
10415
|
image: image$2,
|
|
@@ -10924,24 +10925,24 @@ function ProductView({ sku, initialData, showRecommendations = true, onNotFound
|
|
|
10924
10925
|
})
|
|
10925
10926
|
});
|
|
10926
10927
|
}
|
|
10927
|
-
const showcase = "
|
|
10928
|
-
const panel = "
|
|
10929
|
-
const image = "
|
|
10930
|
-
const hero = "
|
|
10931
|
-
const heroContent = "
|
|
10932
|
-
const heroText = "
|
|
10933
|
-
const logo = "
|
|
10934
|
-
const heroTitle = "
|
|
10935
|
-
const heroSub = "
|
|
10936
|
-
const swipe = "
|
|
10937
|
-
const swipeLabel = "
|
|
10938
|
-
const chevron$1 = "
|
|
10939
|
-
const overlay$1 = "
|
|
10940
|
-
const copy = "
|
|
10941
|
-
const title$2 = "
|
|
10942
|
-
const subtitle$1 = "
|
|
10943
|
-
const cta = "
|
|
10944
|
-
const mosaic = "
|
|
10928
|
+
const showcase = "_showcase_t7w1s_59";
|
|
10929
|
+
const panel = "_panel_t7w1s_63";
|
|
10930
|
+
const image = "_image_t7w1s_91";
|
|
10931
|
+
const hero = "_hero_t7w1s_131";
|
|
10932
|
+
const heroContent = "_heroContent_t7w1s_212";
|
|
10933
|
+
const heroText = "_heroText_t7w1s_236";
|
|
10934
|
+
const logo = "_logo_t7w1s_245";
|
|
10935
|
+
const heroTitle = "_heroTitle_t7w1s_265";
|
|
10936
|
+
const heroSub = "_heroSub_t7w1s_289";
|
|
10937
|
+
const swipe = "_swipe_t7w1s_308";
|
|
10938
|
+
const swipeLabel = "_swipeLabel_t7w1s_315";
|
|
10939
|
+
const chevron$1 = "_chevron_t7w1s_321";
|
|
10940
|
+
const overlay$1 = "_overlay_t7w1s_11";
|
|
10941
|
+
const copy = "_copy_t7w1s_356";
|
|
10942
|
+
const title$2 = "_title_t7w1s_361";
|
|
10943
|
+
const subtitle$1 = "_subtitle_t7w1s_368";
|
|
10944
|
+
const cta = "_cta_t7w1s_374";
|
|
10945
|
+
const mosaic = "_mosaic_t7w1s_418";
|
|
10945
10946
|
const styles$2 = {
|
|
10946
10947
|
showcase,
|
|
10947
10948
|
panel,
|
|
@@ -10962,7 +10963,6 @@ const styles$2 = {
|
|
|
10962
10963
|
cta,
|
|
10963
10964
|
mosaic
|
|
10964
10965
|
};
|
|
10965
|
-
const SETTLE_MS = 150;
|
|
10966
10966
|
function useDocumentSnap(ref, enabled = true) {
|
|
10967
10967
|
useEffect(() => {
|
|
10968
10968
|
const el = ref.current;
|
|
@@ -10970,23 +10970,9 @@ function useDocumentSnap(ref, enabled = true) {
|
|
|
10970
10970
|
const root2 = document.documentElement;
|
|
10971
10971
|
const previousType = root2.style.scrollSnapType;
|
|
10972
10972
|
const previousPadding = root2.style.scrollPaddingTop;
|
|
10973
|
-
let timer2;
|
|
10974
|
-
const syncPadding = () => {
|
|
10975
|
-
const top2 = getComputedStyle(el).getPropertyValue("--showcase-top").trim();
|
|
10976
|
-
root2.style.scrollPaddingTop = top2 === "" ? "0px" : top2;
|
|
10977
|
-
};
|
|
10978
|
-
const schedule = () => {
|
|
10979
|
-
if (timer2) clearTimeout(timer2);
|
|
10980
|
-
timer2 = setTimeout(syncPadding, SETTLE_MS);
|
|
10981
|
-
};
|
|
10982
10973
|
root2.style.scrollSnapType = "y mandatory";
|
|
10983
|
-
|
|
10984
|
-
window.addEventListener("resize", schedule);
|
|
10985
|
-
window.addEventListener("orientationchange", schedule);
|
|
10974
|
+
root2.style.scrollPaddingTop = "0px";
|
|
10986
10975
|
return () => {
|
|
10987
|
-
if (timer2) clearTimeout(timer2);
|
|
10988
|
-
window.removeEventListener("resize", schedule);
|
|
10989
|
-
window.removeEventListener("orientationchange", schedule);
|
|
10990
10976
|
root2.style.scrollSnapType = previousType;
|
|
10991
10977
|
root2.style.scrollPaddingTop = previousPadding;
|
|
10992
10978
|
};
|
|
@@ -11113,7 +11099,6 @@ function HomeShowcase() {
|
|
|
11113
11099
|
const assetUrl = useAssetUrl();
|
|
11114
11100
|
const panels = useSlides();
|
|
11115
11101
|
const showcaseRef = useRef(null);
|
|
11116
|
-
useTopOffset(showcaseRef, "--showcase-top");
|
|
11117
11102
|
useDocumentSnap(showcaseRef);
|
|
11118
11103
|
return jsx(ShopSurface, {
|
|
11119
11104
|
tone: "dark",
|
|
@@ -11232,18 +11217,18 @@ function useCartCount() {
|
|
|
11232
11217
|
}, [subscribe]);
|
|
11233
11218
|
return count2;
|
|
11234
11219
|
}
|
|
11235
|
-
const header$1 = "
|
|
11236
|
-
const floating = "
|
|
11237
|
-
const scrolled = "
|
|
11238
|
-
const title$1 = "
|
|
11239
|
-
const leading = "
|
|
11240
|
-
const right = "
|
|
11241
|
-
const spacer = "
|
|
11242
|
-
const iconBtn = "
|
|
11243
|
-
const menuBtn = "
|
|
11244
|
-
const badge = "
|
|
11245
|
-
const closeSlot = "
|
|
11246
|
-
const centred = "
|
|
11220
|
+
const header$1 = "_header_1a3o7_25";
|
|
11221
|
+
const floating = "_floating_1a3o7_44";
|
|
11222
|
+
const scrolled = "_scrolled_1a3o7_79";
|
|
11223
|
+
const title$1 = "_title_1a3o7_172";
|
|
11224
|
+
const leading = "_leading_1a3o7_199";
|
|
11225
|
+
const right = "_right_1a3o7_205";
|
|
11226
|
+
const spacer = "_spacer_1a3o7_218";
|
|
11227
|
+
const iconBtn = "_iconBtn_1a3o7_223";
|
|
11228
|
+
const menuBtn = "_menuBtn_1a3o7_250";
|
|
11229
|
+
const badge = "_badge_1a3o7_278";
|
|
11230
|
+
const closeSlot = "_closeSlot_1a3o7_305";
|
|
11231
|
+
const centred = "_centred_1a3o7_320";
|
|
11247
11232
|
const styles$1 = {
|
|
11248
11233
|
header: header$1,
|
|
11249
11234
|
floating,
|
|
@@ -11724,4 +11709,3 @@ export {
|
|
|
11724
11709
|
useToast,
|
|
11725
11710
|
variantLabel
|
|
11726
11711
|
};
|
|
11727
|
-
//# sourceMappingURL=storefront.mjs.map
|