@nok-integration/storefront-react 0.19.17 → 0.19.20
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.mjs +12 -8
- package/dist/standalone/storefront.mjs +12 -8
- package/dist/standalone/styles.css +14 -14
- package/dist/styles.css +14 -14
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5495,6 +5495,8 @@ function useTopOffset(ref, property, enabled = true) {
|
|
|
5495
5495
|
timer2 = setTimeout(measure, SETTLE_MS$1);
|
|
5496
5496
|
};
|
|
5497
5497
|
measure();
|
|
5498
|
+
const frame2 = typeof requestAnimationFrame === "undefined" ? void 0 : requestAnimationFrame(measure);
|
|
5499
|
+
const settleAfterMount = setTimeout(measure, SETTLE_MS$1);
|
|
5498
5500
|
window.addEventListener("resize", measure);
|
|
5499
5501
|
window.addEventListener("orientationchange", measure);
|
|
5500
5502
|
document.addEventListener("scroll", settle, {
|
|
@@ -5505,6 +5507,8 @@ function useTopOffset(ref, property, enabled = true) {
|
|
|
5505
5507
|
if (observer && el.parentElement) observer.observe(el.parentElement);
|
|
5506
5508
|
return () => {
|
|
5507
5509
|
if (timer2) clearTimeout(timer2);
|
|
5510
|
+
if (frame2 !== void 0) cancelAnimationFrame(frame2);
|
|
5511
|
+
clearTimeout(settleAfterMount);
|
|
5508
5512
|
window.removeEventListener("resize", measure);
|
|
5509
5513
|
window.removeEventListener("orientationchange", measure);
|
|
5510
5514
|
document.removeEventListener("scroll", settle, {
|
|
@@ -10206,14 +10210,14 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [] })
|
|
|
10206
10210
|
})]
|
|
10207
10211
|
});
|
|
10208
10212
|
}
|
|
10209
|
-
const hero$1 = "
|
|
10210
|
-
const image$2 = "
|
|
10211
|
-
const scrim$1 = "
|
|
10212
|
-
const fade = "
|
|
10213
|
-
const text$2 = "
|
|
10214
|
-
const title$5 = "
|
|
10215
|
-
const subtitle$2 = "
|
|
10216
|
-
const noImage = "
|
|
10213
|
+
const hero$1 = "_hero_1tiqx_10";
|
|
10214
|
+
const image$2 = "_image_1tiqx_42";
|
|
10215
|
+
const scrim$1 = "_scrim_1tiqx_70";
|
|
10216
|
+
const fade = "_fade_1tiqx_94";
|
|
10217
|
+
const text$2 = "_text_1tiqx_108";
|
|
10218
|
+
const title$5 = "_title_1tiqx_157";
|
|
10219
|
+
const subtitle$2 = "_subtitle_1tiqx_168";
|
|
10220
|
+
const noImage = "_noImage_1tiqx_183";
|
|
10217
10221
|
const styles$9 = {
|
|
10218
10222
|
hero: hero$1,
|
|
10219
10223
|
image: image$2,
|
|
@@ -5495,6 +5495,8 @@ function useTopOffset(ref, property, enabled = true) {
|
|
|
5495
5495
|
timer2 = setTimeout(measure, SETTLE_MS$1);
|
|
5496
5496
|
};
|
|
5497
5497
|
measure();
|
|
5498
|
+
const frame2 = typeof requestAnimationFrame === "undefined" ? void 0 : requestAnimationFrame(measure);
|
|
5499
|
+
const settleAfterMount = setTimeout(measure, SETTLE_MS$1);
|
|
5498
5500
|
window.addEventListener("resize", measure);
|
|
5499
5501
|
window.addEventListener("orientationchange", measure);
|
|
5500
5502
|
document.addEventListener("scroll", settle, {
|
|
@@ -5505,6 +5507,8 @@ function useTopOffset(ref, property, enabled = true) {
|
|
|
5505
5507
|
if (observer && el.parentElement) observer.observe(el.parentElement);
|
|
5506
5508
|
return () => {
|
|
5507
5509
|
if (timer2) clearTimeout(timer2);
|
|
5510
|
+
if (frame2 !== void 0) cancelAnimationFrame(frame2);
|
|
5511
|
+
clearTimeout(settleAfterMount);
|
|
5508
5512
|
window.removeEventListener("resize", measure);
|
|
5509
5513
|
window.removeEventListener("orientationchange", measure);
|
|
5510
5514
|
document.removeEventListener("scroll", settle, {
|
|
@@ -10206,14 +10210,14 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [] })
|
|
|
10206
10210
|
})]
|
|
10207
10211
|
});
|
|
10208
10212
|
}
|
|
10209
|
-
const hero$1 = "
|
|
10210
|
-
const image$2 = "
|
|
10211
|
-
const scrim$1 = "
|
|
10212
|
-
const fade = "
|
|
10213
|
-
const text$2 = "
|
|
10214
|
-
const title$5 = "
|
|
10215
|
-
const subtitle$2 = "
|
|
10216
|
-
const noImage = "
|
|
10213
|
+
const hero$1 = "_hero_1tiqx_10";
|
|
10214
|
+
const image$2 = "_image_1tiqx_42";
|
|
10215
|
+
const scrim$1 = "_scrim_1tiqx_70";
|
|
10216
|
+
const fade = "_fade_1tiqx_94";
|
|
10217
|
+
const text$2 = "_text_1tiqx_108";
|
|
10218
|
+
const title$5 = "_title_1tiqx_157";
|
|
10219
|
+
const subtitle$2 = "_subtitle_1tiqx_168";
|
|
10220
|
+
const noImage = "_noImage_1tiqx_183";
|
|
10217
10221
|
const styles$9 = {
|
|
10218
10222
|
hero: hero$1,
|
|
10219
10223
|
image: image$2,
|
|
@@ -3107,7 +3107,7 @@
|
|
|
3107
3107
|
._oos_1hv16_66 {
|
|
3108
3108
|
color: var(--color-state-surface-critical-default);
|
|
3109
3109
|
}
|
|
3110
|
-
.
|
|
3110
|
+
._hero_1tiqx_10 {
|
|
3111
3111
|
--hero-height: clamp(480px, calc(100svh - var(--hero-top, 0px)), 812px);
|
|
3112
3112
|
position: relative;
|
|
3113
3113
|
height: var(--hero-height);
|
|
@@ -3115,15 +3115,15 @@
|
|
|
3115
3115
|
background: var(--color-surface-default);
|
|
3116
3116
|
margin-bottom: calc(var(--hero-height) * -237 / 812);
|
|
3117
3117
|
}
|
|
3118
|
-
.
|
|
3118
|
+
._image_1tiqx_42 {
|
|
3119
3119
|
position: absolute;
|
|
3120
3120
|
inset: 0;
|
|
3121
3121
|
}
|
|
3122
|
-
.
|
|
3122
|
+
._image_1tiqx_42 img {
|
|
3123
3123
|
object-fit: cover;
|
|
3124
3124
|
object-position: top center;
|
|
3125
3125
|
}
|
|
3126
|
-
.
|
|
3126
|
+
._scrim_1tiqx_70 {
|
|
3127
3127
|
position: absolute;
|
|
3128
3128
|
inset: 0;
|
|
3129
3129
|
background:
|
|
@@ -3133,7 +3133,7 @@
|
|
|
3133
3133
|
rgba(0, 0, 0, 0.1) 45%,
|
|
3134
3134
|
rgba(0, 0, 0, 0) 70%);
|
|
3135
3135
|
}
|
|
3136
|
-
.
|
|
3136
|
+
._fade_1tiqx_94 {
|
|
3137
3137
|
position: absolute;
|
|
3138
3138
|
right: 0;
|
|
3139
3139
|
bottom: 0;
|
|
@@ -3146,19 +3146,19 @@
|
|
|
3146
3146
|
rgba(8, 14, 18, 0.65) 55%,
|
|
3147
3147
|
var(--color-surface-default) 100%);
|
|
3148
3148
|
}
|
|
3149
|
-
.
|
|
3149
|
+
._text_1tiqx_108 {
|
|
3150
3150
|
position: absolute;
|
|
3151
|
-
top: max(
|
|
3151
|
+
top: max(var(--space-12), calc(65px - var(--hero-top, 0px)));
|
|
3152
3152
|
left: 0;
|
|
3153
3153
|
right: 0;
|
|
3154
3154
|
display: flex;
|
|
3155
3155
|
flex-direction: column;
|
|
3156
3156
|
align-items: center;
|
|
3157
3157
|
gap: var(--space-8);
|
|
3158
|
-
padding:
|
|
3158
|
+
padding: var(--space-12) var(--space-24) var(--space-24);
|
|
3159
3159
|
text-align: center;
|
|
3160
3160
|
}
|
|
3161
|
-
.
|
|
3161
|
+
._title_1tiqx_157 {
|
|
3162
3162
|
width: 327px;
|
|
3163
3163
|
max-width: 100%;
|
|
3164
3164
|
margin: 0;
|
|
@@ -3168,7 +3168,7 @@
|
|
|
3168
3168
|
color: #f9fafa;
|
|
3169
3169
|
text-wrap: balance;
|
|
3170
3170
|
}
|
|
3171
|
-
.
|
|
3171
|
+
._subtitle_1tiqx_168 {
|
|
3172
3172
|
width: 224px;
|
|
3173
3173
|
max-width: 100%;
|
|
3174
3174
|
margin: 0;
|
|
@@ -3177,18 +3177,18 @@
|
|
|
3177
3177
|
font-weight: var(--font-weight-regular);
|
|
3178
3178
|
color: #f9fafa;
|
|
3179
3179
|
}
|
|
3180
|
-
.
|
|
3180
|
+
._noImage_1tiqx_183 {
|
|
3181
3181
|
height: auto;
|
|
3182
3182
|
min-height: 0;
|
|
3183
3183
|
max-height: none;
|
|
3184
3184
|
margin-bottom: 0;
|
|
3185
3185
|
}
|
|
3186
|
-
.
|
|
3186
|
+
._noImage_1tiqx_183 ._text_1tiqx_108 {
|
|
3187
3187
|
position: static;
|
|
3188
3188
|
padding-top: var(--space-24);
|
|
3189
3189
|
}
|
|
3190
|
-
.
|
|
3191
|
-
.
|
|
3190
|
+
._noImage_1tiqx_183 ._title_1tiqx_157,
|
|
3191
|
+
._noImage_1tiqx_183 ._subtitle_1tiqx_168 {
|
|
3192
3192
|
color: var(--color-text-default);
|
|
3193
3193
|
}
|
|
3194
3194
|
._text_1saw4_6 {
|
package/dist/styles.css
CHANGED
|
@@ -3107,7 +3107,7 @@
|
|
|
3107
3107
|
._oos_1hv16_66 {
|
|
3108
3108
|
color: var(--color-state-surface-critical-default);
|
|
3109
3109
|
}
|
|
3110
|
-
.
|
|
3110
|
+
._hero_1tiqx_10 {
|
|
3111
3111
|
--hero-height: clamp(480px, calc(100svh - var(--hero-top, 0px)), 812px);
|
|
3112
3112
|
position: relative;
|
|
3113
3113
|
height: var(--hero-height);
|
|
@@ -3115,15 +3115,15 @@
|
|
|
3115
3115
|
background: var(--color-surface-default);
|
|
3116
3116
|
margin-bottom: calc(var(--hero-height) * -237 / 812);
|
|
3117
3117
|
}
|
|
3118
|
-
.
|
|
3118
|
+
._image_1tiqx_42 {
|
|
3119
3119
|
position: absolute;
|
|
3120
3120
|
inset: 0;
|
|
3121
3121
|
}
|
|
3122
|
-
.
|
|
3122
|
+
._image_1tiqx_42 img {
|
|
3123
3123
|
object-fit: cover;
|
|
3124
3124
|
object-position: top center;
|
|
3125
3125
|
}
|
|
3126
|
-
.
|
|
3126
|
+
._scrim_1tiqx_70 {
|
|
3127
3127
|
position: absolute;
|
|
3128
3128
|
inset: 0;
|
|
3129
3129
|
background:
|
|
@@ -3133,7 +3133,7 @@
|
|
|
3133
3133
|
rgba(0, 0, 0, 0.1) 45%,
|
|
3134
3134
|
rgba(0, 0, 0, 0) 70%);
|
|
3135
3135
|
}
|
|
3136
|
-
.
|
|
3136
|
+
._fade_1tiqx_94 {
|
|
3137
3137
|
position: absolute;
|
|
3138
3138
|
right: 0;
|
|
3139
3139
|
bottom: 0;
|
|
@@ -3146,19 +3146,19 @@
|
|
|
3146
3146
|
rgba(8, 14, 18, 0.65) 55%,
|
|
3147
3147
|
var(--color-surface-default) 100%);
|
|
3148
3148
|
}
|
|
3149
|
-
.
|
|
3149
|
+
._text_1tiqx_108 {
|
|
3150
3150
|
position: absolute;
|
|
3151
|
-
top: max(
|
|
3151
|
+
top: max(var(--space-12), calc(65px - var(--hero-top, 0px)));
|
|
3152
3152
|
left: 0;
|
|
3153
3153
|
right: 0;
|
|
3154
3154
|
display: flex;
|
|
3155
3155
|
flex-direction: column;
|
|
3156
3156
|
align-items: center;
|
|
3157
3157
|
gap: var(--space-8);
|
|
3158
|
-
padding:
|
|
3158
|
+
padding: var(--space-12) var(--space-24) var(--space-24);
|
|
3159
3159
|
text-align: center;
|
|
3160
3160
|
}
|
|
3161
|
-
.
|
|
3161
|
+
._title_1tiqx_157 {
|
|
3162
3162
|
width: 327px;
|
|
3163
3163
|
max-width: 100%;
|
|
3164
3164
|
margin: 0;
|
|
@@ -3168,7 +3168,7 @@
|
|
|
3168
3168
|
color: #f9fafa;
|
|
3169
3169
|
text-wrap: balance;
|
|
3170
3170
|
}
|
|
3171
|
-
.
|
|
3171
|
+
._subtitle_1tiqx_168 {
|
|
3172
3172
|
width: 224px;
|
|
3173
3173
|
max-width: 100%;
|
|
3174
3174
|
margin: 0;
|
|
@@ -3177,18 +3177,18 @@
|
|
|
3177
3177
|
font-weight: var(--font-weight-regular);
|
|
3178
3178
|
color: #f9fafa;
|
|
3179
3179
|
}
|
|
3180
|
-
.
|
|
3180
|
+
._noImage_1tiqx_183 {
|
|
3181
3181
|
height: auto;
|
|
3182
3182
|
min-height: 0;
|
|
3183
3183
|
max-height: none;
|
|
3184
3184
|
margin-bottom: 0;
|
|
3185
3185
|
}
|
|
3186
|
-
.
|
|
3186
|
+
._noImage_1tiqx_183 ._text_1tiqx_108 {
|
|
3187
3187
|
position: static;
|
|
3188
3188
|
padding-top: var(--space-24);
|
|
3189
3189
|
}
|
|
3190
|
-
.
|
|
3191
|
-
.
|
|
3190
|
+
._noImage_1tiqx_183 ._title_1tiqx_157,
|
|
3191
|
+
._noImage_1tiqx_183 ._subtitle_1tiqx_168 {
|
|
3192
3192
|
color: var(--color-text-default);
|
|
3193
3193
|
}
|
|
3194
3194
|
._text_1saw4_6 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nok-integration/storefront-react",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.20",
|
|
4
4
|
"description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|