@ohhwells/bridge 0.1.117-next.327 → 0.1.117-next.328
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.cjs +20 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2442,7 +2442,7 @@ function MediaStripBlock({ node, ctx, path }) {
|
|
|
2442
2442
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
|
|
2443
2443
|
// Host sites often style `a:hover{opacity}` globally — that would fade every linked item
|
|
2444
2444
|
// whatever preset is chosen, so the anchors here opt out and only the preset applies.
|
|
2445
|
-
children: '[data-ohw-media-strip] a,[data-ohw-media-strip] a:hover{opacity:1}[data-ohw-media-strip-
|
|
2445
|
+
children: '[data-ohw-media-strip] a,[data-ohw-media-strip] a:hover{opacity:1}[data-ohw-media-strip-hover]{transition:transform 0.2s ease, opacity 0.2s ease}[data-ohw-media-strip-item]:hover>[data-ohw-media-strip-hover="lift"]{transform:translateY(-4px)}[data-ohw-media-strip-item]:hover>[data-ohw-media-strip-hover="zoom"]{transform:scale(1.05)}[data-ohw-media-strip-item]:hover>[data-ohw-media-strip-hover="fade"]{opacity:0.75}'
|
|
2446
2446
|
}),
|
|
2447
2447
|
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2448
2448
|
"div",
|
|
@@ -2474,22 +2474,28 @@ function MediaStripBlock({ node, ctx, path }) {
|
|
|
2474
2474
|
{
|
|
2475
2475
|
"data-ohw-media-strip-item": "",
|
|
2476
2476
|
"data-ohw-media-strip-index": i,
|
|
2477
|
-
"data-ohw-media-strip-hover": hoverPreset === "none" ? void 0 : hoverPreset,
|
|
2478
2477
|
style: variant === "logos" ? { height: logoMaxHeight, width: "auto" } : { width: cardWidth, flexShrink: 0 },
|
|
2479
2478
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2480
|
-
|
|
2479
|
+
"div",
|
|
2481
2480
|
{
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2481
|
+
"data-ohw-media-strip-hover": hoverPreset === "none" ? void 0 : hoverPreset,
|
|
2482
|
+
style: { height: "100%" },
|
|
2483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2484
|
+
MediaBox,
|
|
2485
|
+
{
|
|
2486
|
+
refValue: item.assetId,
|
|
2487
|
+
ctx,
|
|
2488
|
+
aspect: variant === "reel" ? "9:16" : void 0,
|
|
2489
|
+
radius: variant === "reel" ? AI_TREE_TOKENS.radiusCard : 4,
|
|
2490
|
+
height: variant === "logos" ? logoMaxHeight : void 0,
|
|
2491
|
+
editPath: `${path}.items.${i}.assetId`,
|
|
2492
|
+
alt: item.alt,
|
|
2493
|
+
fit: variant === "logos" ? "contain" : "cover",
|
|
2494
|
+
grayscale: treatment === "grayscale",
|
|
2495
|
+
fixedSize: variant === "logos",
|
|
2496
|
+
genericImageEdit: false
|
|
2497
|
+
}
|
|
2498
|
+
)
|
|
2493
2499
|
}
|
|
2494
2500
|
)
|
|
2495
2501
|
}
|