@ohhwells/bridge 0.1.29-next.21 → 0.1.30
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 +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5839,6 +5839,7 @@ function OhhwellsBridge() {
|
|
|
5839
5839
|
const [toggleState, setToggleState] = useState5(null);
|
|
5840
5840
|
const [maxBadge, setMaxBadge] = useState5(null);
|
|
5841
5841
|
const [activeCommands, setActiveCommands] = useState5(/* @__PURE__ */ new Set());
|
|
5842
|
+
const [sectionGap, setSectionGap] = useState5(null);
|
|
5842
5843
|
const [toolbarShowEditLink, setToolbarShowEditLink] = useState5(false);
|
|
5843
5844
|
const [linkPopover, setLinkPopover] = useState5(null);
|
|
5844
5845
|
const [sitePages, setSitePages] = useState5([]);
|
|
@@ -5905,7 +5906,6 @@ function OhhwellsBridge() {
|
|
|
5905
5906
|
if (!useFixtures) postToParent({ type: "ow:request-site-pages" });
|
|
5906
5907
|
return () => window.removeEventListener("message", onSitePages);
|
|
5907
5908
|
}, [isEditMode, postToParent]);
|
|
5908
|
-
const [sectionGap, setSectionGap] = useState5(null);
|
|
5909
5909
|
useEffect3(() => {
|
|
5910
5910
|
if (!isEditMode || shouldUseDevFixtures()) return;
|
|
5911
5911
|
void loadAllSectionsManifest().then((manifest) => {
|
|
@@ -7157,22 +7157,6 @@ function OhhwellsBridge() {
|
|
|
7157
7157
|
onStateChange: handleStateChange
|
|
7158
7158
|
}
|
|
7159
7159
|
),
|
|
7160
|
-
linkPopover ? /* @__PURE__ */ jsx16(
|
|
7161
|
-
LinkPopover,
|
|
7162
|
-
{
|
|
7163
|
-
rect: linkPopover.rect,
|
|
7164
|
-
parentScroll: parentScrollRef.current,
|
|
7165
|
-
panelRef: linkPopoverPanelRef,
|
|
7166
|
-
open: true,
|
|
7167
|
-
mode: "edit",
|
|
7168
|
-
pages: sitePages,
|
|
7169
|
-
sections: currentSections,
|
|
7170
|
-
sectionsByPath,
|
|
7171
|
-
initialTarget: linkPopover.target,
|
|
7172
|
-
onClose: closeLinkPopover,
|
|
7173
|
-
onSubmit: handleLinkPopoverSubmit
|
|
7174
|
-
}
|
|
7175
|
-
) : null,
|
|
7176
7160
|
sectionGap && /* @__PURE__ */ jsxs8(
|
|
7177
7161
|
"div",
|
|
7178
7162
|
{
|
|
@@ -7197,7 +7181,23 @@ function OhhwellsBridge() {
|
|
|
7197
7181
|
/* @__PURE__ */ jsx16("div", { className: "flex-1 bg-primary", style: { height: 3 } })
|
|
7198
7182
|
]
|
|
7199
7183
|
}
|
|
7200
|
-
)
|
|
7184
|
+
),
|
|
7185
|
+
linkPopover ? /* @__PURE__ */ jsx16(
|
|
7186
|
+
LinkPopover,
|
|
7187
|
+
{
|
|
7188
|
+
rect: linkPopover.rect,
|
|
7189
|
+
parentScroll: parentScrollRef.current,
|
|
7190
|
+
panelRef: linkPopoverPanelRef,
|
|
7191
|
+
open: true,
|
|
7192
|
+
mode: "edit",
|
|
7193
|
+
pages: sitePages,
|
|
7194
|
+
sections: currentSections,
|
|
7195
|
+
sectionsByPath,
|
|
7196
|
+
initialTarget: linkPopover.target,
|
|
7197
|
+
onClose: closeLinkPopover,
|
|
7198
|
+
onSubmit: handleLinkPopoverSubmit
|
|
7199
|
+
}
|
|
7200
|
+
) : null
|
|
7201
7201
|
] }),
|
|
7202
7202
|
bridgeRoot
|
|
7203
7203
|
) : null;
|