@ohhwells/bridge 0.1.177 → 0.1.178
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 +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1009,6 +1009,11 @@ function findImages(deps, section) {
|
|
|
1009
1009
|
if (url && style.objectFit === "cover") out.push({ el, url, urlLayer: -1 });
|
|
1010
1010
|
continue;
|
|
1011
1011
|
}
|
|
1012
|
+
if (el.tagName === "VIDEO") {
|
|
1013
|
+
const url = el.poster;
|
|
1014
|
+
if (url && style.objectFit === "cover") out.push({ el, url, urlLayer: -1 });
|
|
1015
|
+
continue;
|
|
1016
|
+
}
|
|
1012
1017
|
const layers = bgLayers(style);
|
|
1013
1018
|
const urlLayer = layers.findIndex((l) => urlOf(l) !== null);
|
|
1014
1019
|
if (urlLayer >= 0) out.push({ el, url: urlOf(layers[urlLayer]), urlLayer });
|
|
@@ -1581,13 +1586,14 @@ var WATCHED_ATTRS = [
|
|
|
1581
1586
|
"class",
|
|
1582
1587
|
"src",
|
|
1583
1588
|
"srcset",
|
|
1589
|
+
"poster",
|
|
1584
1590
|
"data-ohw-style-bg",
|
|
1585
1591
|
"data-ohw-style-bgcolor",
|
|
1586
1592
|
"data-ohw-style-cardbg",
|
|
1587
1593
|
// The editor's Default / Hover toggle forces :hover rules through this attribute.
|
|
1588
1594
|
"data-ohw-active-state"
|
|
1589
1595
|
];
|
|
1590
|
-
var
|
|
1596
|
+
var RESCAN_TRANSITIONS = /* @__PURE__ */ new Set(["opacity", "visibility", "background-color", "background"]);
|
|
1591
1597
|
function outermostSection(node) {
|
|
1592
1598
|
let el = node instanceof Element ? node : node?.parentElement ?? null;
|
|
1593
1599
|
let top = null;
|
|
@@ -1652,7 +1658,7 @@ function mountBackgroundTone(doc = document) {
|
|
|
1652
1658
|
});
|
|
1653
1659
|
const onResize = () => schedule();
|
|
1654
1660
|
const onTransitionEnd = (event) => {
|
|
1655
|
-
if (!
|
|
1661
|
+
if (!RESCAN_TRANSITIONS.has(event.propertyName)) return;
|
|
1656
1662
|
const section = outermostSection(event.target);
|
|
1657
1663
|
if (section) schedule(section);
|
|
1658
1664
|
};
|
|
@@ -19371,7 +19377,7 @@ function apiBase() {
|
|
|
19371
19377
|
function bridgeVersion() {
|
|
19372
19378
|
try {
|
|
19373
19379
|
if (true) {
|
|
19374
|
-
return "0.1.
|
|
19380
|
+
return "0.1.178";
|
|
19375
19381
|
}
|
|
19376
19382
|
} catch {
|
|
19377
19383
|
}
|
|
@@ -19385,7 +19391,7 @@ function stampBridgeVersionOnDocument() {
|
|
|
19385
19391
|
return;
|
|
19386
19392
|
}
|
|
19387
19393
|
try {
|
|
19388
|
-
const v = true ? "0.1.
|
|
19394
|
+
const v = true ? "0.1.178" : "";
|
|
19389
19395
|
if (v) {
|
|
19390
19396
|
document.documentElement.setAttribute("data-ohw-bridge-version", v);
|
|
19391
19397
|
window.__OHW_BRIDGE_VERSION__ = v;
|
|
@@ -34721,7 +34727,7 @@ function OhhwellsBridge() {
|
|
|
34721
34727
|
postToParent2({
|
|
34722
34728
|
type: "ow:ready",
|
|
34723
34729
|
version: "1",
|
|
34724
|
-
bridgeVersion: "0.1.
|
|
34730
|
+
bridgeVersion: "0.1.178",
|
|
34725
34731
|
path: pathname,
|
|
34726
34732
|
nodes: collectEditableNodes(editContentRef.current),
|
|
34727
34733
|
sections
|