@syntrologie/adapt-product 2.50.0 → 2.52.0

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/cdn.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onActivate,
3
3
  runtime
4
- } from "./chunk-P64UMUWD.js";
4
+ } from "./chunk-F6ZXHGAT.js";
5
5
  import "./chunk-D2W6UYLT.js";
6
6
 
7
7
  // src/cdn.ts
@@ -5979,6 +5979,26 @@ function _readDevice() {
5979
5979
  }
5980
5980
  var SPEC_CHIP_FADE_MASK = "linear-gradient(90deg, black 0, black calc(100% - 18px), transparent 100%)";
5981
5981
  var CARD_FLIP_CSS = `
5982
+ /* \u2500\u2500 Height-bounded container opt-in (velvet deck band) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
5983
+ The canvas that owns a DEFINITE-height mount opts the card into filling
5984
+ it by setting --sc-card-host-height: 100% (velvet: .deck-card tokens).
5985
+ The chain below then hands that definite height to the front-face grid,
5986
+ whose 1fr/auto rows resolve inside it and whose image box (max-height:
5987
+ 100% on .sc-product-card__media) crops to what remains. Everywhere the
5988
+ token is unset the host is auto-height and every percentage in the
5989
+ chain is inert \u2014 chat/PDP stacked cards are untouched.
5990
+ Regression this exists for: #3591 shaved the solo-deck band 24px and
5991
+ the fixed 132\xD7176 image box pushed the CTA/link row past the card
5992
+ bottom (live on iglowmedspa.com 2026-09-03; pinned by
5993
+ test-server/tests/velvet-deck-product-card-fit.spec.ts). */
5994
+ syntro-product-card {
5995
+ height: var(--sc-card-host-height, auto);
5996
+ min-height: 0;
5997
+ }
5998
+ .sc-product-card { height: 100%; min-height: 0; }
5999
+ .sc-product-card > [data-face] { height: 100%; min-height: 0; }
6000
+ .sc-product-card [data-product-card-grid] { height: 100%; min-height: 0; }
6001
+
5982
6002
  /* Hide the scrollbar chrome on the declared, scrollable spec-chip tracks
5983
6003
  (data-clip-ok scroll containers) while keeping them scrollable. The inline
5984
6004
  styles set scrollbar-width:none (Firefox); WebKit needs this pseudo. */
@@ -6489,6 +6509,16 @@ function renderProductCardInner(product, density, resolved, visibleFacts, ctas,
6489
6509
  height: "var(--sc-card-image-h, auto)",
6490
6510
  // 132 × (4/3) = 176 → the spec's 132×176 portrait. Velvet's token wins.
6491
6511
  aspectRatio: "var(--sc-card-image-aspect, 3 / 4)",
6512
+ // The aspect box is a PREFERENCE, never a floor: in a definite-height
6513
+ // container (velvet's deck band) the box caps at the area's height and
6514
+ // the photo object-fit:covers into whatever remains, so the card always
6515
+ // fits the band. In auto-height contexts (chat/PDP stacked layout)
6516
+ // 100% resolves against auto → no-op, the 3/4 box stands unchanged.
6517
+ // Regression this guards: #3591 shaved the solo-deck band 24px and the
6518
+ // fixed 176px box pushed the CTA/link row past the card bottom
6519
+ // (velvet-deck-product-card-fit.spec.ts).
6520
+ maxHeight: "100%",
6521
+ overflow: "hidden",
6492
6522
  alignSelf: "var(--sc-card-image-align, start)",
6493
6523
  minWidth: "0",
6494
6524
  minHeight: "0"
@@ -12106,4 +12136,4 @@ export {
12106
12136
  * SPDX-License-Identifier: BSD-3-Clause
12107
12137
  *)
12108
12138
  */
12109
- //# sourceMappingURL=chunk-P64UMUWD.js.map
12139
+ //# sourceMappingURL=chunk-F6ZXHGAT.js.map