@syntrologie/adapt-product 2.48.0 → 2.49.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/runtime.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  runTakeover,
12
12
  runtime,
13
13
  runtime_default
14
- } from "./chunk-XZVLFHRB.js";
14
+ } from "./chunk-LFYTHTQS.js";
15
15
  import "./chunk-D2W6UYLT.js";
16
16
  export {
17
17
  ProductCardMountable,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCardLit.d.ts","sourceRoot":"","sources":["../../src/widgets/ProductCardLit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGrE,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAAE,KAAK,SAAS,EAAiC,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIpD,OAAO,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;SAAE,CAAC;QAChC,OAAO,CAAC,EAAE;YACR,MAAM,CAAC,EAAE;gBACP,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;gBAOjE,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC;aAClE,CAAC;YACF,OAAO,CAAC,EAAE;gBACR,GAAG,CAAC,IAAI;oBAAE,OAAO,CAAC,EAAE;wBAAE,MAAM,CAA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O,EAAE,WAAW,CAAa;IAEjC,cAAc,EAAE,SAAS,CAA4B;IA6B5C,gBAAgB;IAIhB,iBAAiB,IAAI,IAAI;IA2CzB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAa/C,OAAO,IAAI,IAAI;IA8Df,oBAAoB,IAAI,IAAI;IA8ErC,OAAO,CAAC,cAAc,CAGpB;IAEF,OAAO,CAAC,yBAAyB,CAQ/B;IAEF,OAAO,CAAC,aAAa,CAInB;IAEF,OAAO,CAAC,eAAe,CAGrB;IA0CO,MAAM,IAAI,cAAc,GAAG,OAAO,OAAO;CA2GnD;AA2/BD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,SAAS,GAAG,UAAU,EAC/B,QAAQ,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EACxD,YAAY,CAAC,EAAE,SAAS,cAAc,EAAE,GACvC,cAAc,CAahB"}
@@ -3,19 +3,30 @@
3
3
  *
4
4
  * Parker 2026-08-28: "we shouldn't reject products that don't have images.
5
5
  * Can we do a stand in with something? sweeping it under the rug is a worse
6
- * option." (Real case: iGlow's Plush Peel / Brightening Facial Wash the
7
- * old contract rejected their mounts as `incomplete_product`, so the chat
8
- * narrated instead of showing a card.)
6
+ * option." and, on v1: "I see just a black thing where the product picture
7
+ * was.. i thought you were going to do something more fancy."
9
8
  *
10
- * The stand-in is a pure token gradient no color literals (presentation
11
- * ratchet), no hosted placeholder asset, and nothing that pretends to be a
12
- * product photo. It themes itself from the workspace's own tokens and the
13
- * card upgrades to the real image automatically the moment the storefront
14
- * adds one (hydration reads the live index).
9
+ * v1 was `linear-gradient(primary, primaryHover)`on brands whose two
10
+ * tokens are near-identical (iGlow: #000 -> #282828) that renders as a flat
11
+ * slab; the gradient existed but was imperceptible. v2 (B2) makes the
12
+ * structure independent of the brand's token DISTANCE:
15
13
  *
16
- * Decorative on purpose (`aria-hidden`): every consumer renders the product
17
- * name as adjacent visible text (card content column, comparison name
18
- * overlay, hero heading), so the tile itself carries no information.
14
+ * - the sheen is ALPHA overlays (white highlight -> black shade, 135°)
15
+ * layered over the single primary token — visible on any brand color,
16
+ * black included;
17
+ * - the product's monogram initial sits centered in the launcher's PAIRED
18
+ * foreground token (`--sc-launcher-color` is what every workspace already
19
+ * pairs against a primary-colored surface — the FAB), so contrast rides
20
+ * an existing, intentional token pairing.
21
+ *
22
+ * Still honest (nothing pretending to be a photo), still asset-free, and the
23
+ * card upgrades to the real image automatically once the storefront adds one.
24
+ *
25
+ * Decorative on purpose (`aria-hidden` on the tile): every consumer renders
26
+ * the product name as adjacent visible text.
19
27
  */
20
- export declare const IMAGE_STANDIN_BACKGROUND = "linear-gradient(135deg, var(--sc-color-primary), var(--sc-color-primary-hover))";
28
+ import { type TemplateResult } from 'lit';
29
+ export declare const IMAGE_STANDIN_BACKGROUND = "linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0.22)), var(--sc-color-primary, #3a3a3a)";
30
+ /** Centered monogram — the first character of the product name. */
31
+ export declare function standinMonogram(name: string): TemplateResult;
21
32
  //# sourceMappingURL=imageStandin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageStandin.d.ts","sourceRoot":"","sources":["../../src/widgets/imageStandin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,wBAAwB,oFAC8C,CAAC"}
1
+ {"version":3,"file":"imageStandin.d.ts","sourceRoot":"","sources":["../../src/widgets/imageStandin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEhD,eAAO,MAAM,wBAAwB,6IACuG,CAAC;AAE7I,mEAAmE;AACnE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAS5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntrologie/adapt-product",
3
- "version": "2.48.0",
3
+ "version": "2.49.0",
4
4
  "description": "Adaptive Product — product cards, comparison, hero, and grid tile widgets with optional price/image binding to host-page sources.",
5
5
  "license": "Proprietary",
6
6
  "private": false,