@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.cjs
CHANGED
|
@@ -5887,6 +5887,7 @@ function OhhwellsBridge() {
|
|
|
5887
5887
|
const [toggleState, setToggleState] = (0, import_react5.useState)(null);
|
|
5888
5888
|
const [maxBadge, setMaxBadge] = (0, import_react5.useState)(null);
|
|
5889
5889
|
const [activeCommands, setActiveCommands] = (0, import_react5.useState)(/* @__PURE__ */ new Set());
|
|
5890
|
+
const [sectionGap, setSectionGap] = (0, import_react5.useState)(null);
|
|
5890
5891
|
const [toolbarShowEditLink, setToolbarShowEditLink] = (0, import_react5.useState)(false);
|
|
5891
5892
|
const [linkPopover, setLinkPopover] = (0, import_react5.useState)(null);
|
|
5892
5893
|
const [sitePages, setSitePages] = (0, import_react5.useState)([]);
|
|
@@ -5953,7 +5954,6 @@ function OhhwellsBridge() {
|
|
|
5953
5954
|
if (!useFixtures) postToParent({ type: "ow:request-site-pages" });
|
|
5954
5955
|
return () => window.removeEventListener("message", onSitePages);
|
|
5955
5956
|
}, [isEditMode, postToParent]);
|
|
5956
|
-
const [sectionGap, setSectionGap] = (0, import_react5.useState)(null);
|
|
5957
5957
|
(0, import_react5.useEffect)(() => {
|
|
5958
5958
|
if (!isEditMode || shouldUseDevFixtures()) return;
|
|
5959
5959
|
void loadAllSectionsManifest().then((manifest) => {
|
|
@@ -7205,22 +7205,6 @@ function OhhwellsBridge() {
|
|
|
7205
7205
|
onStateChange: handleStateChange
|
|
7206
7206
|
}
|
|
7207
7207
|
),
|
|
7208
|
-
linkPopover ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7209
|
-
LinkPopover,
|
|
7210
|
-
{
|
|
7211
|
-
rect: linkPopover.rect,
|
|
7212
|
-
parentScroll: parentScrollRef.current,
|
|
7213
|
-
panelRef: linkPopoverPanelRef,
|
|
7214
|
-
open: true,
|
|
7215
|
-
mode: "edit",
|
|
7216
|
-
pages: sitePages,
|
|
7217
|
-
sections: currentSections,
|
|
7218
|
-
sectionsByPath,
|
|
7219
|
-
initialTarget: linkPopover.target,
|
|
7220
|
-
onClose: closeLinkPopover,
|
|
7221
|
-
onSubmit: handleLinkPopoverSubmit
|
|
7222
|
-
}
|
|
7223
|
-
) : null,
|
|
7224
7208
|
sectionGap && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
7225
7209
|
"div",
|
|
7226
7210
|
{
|
|
@@ -7245,7 +7229,23 @@ function OhhwellsBridge() {
|
|
|
7245
7229
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex-1 bg-primary", style: { height: 3 } })
|
|
7246
7230
|
]
|
|
7247
7231
|
}
|
|
7248
|
-
)
|
|
7232
|
+
),
|
|
7233
|
+
linkPopover ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7234
|
+
LinkPopover,
|
|
7235
|
+
{
|
|
7236
|
+
rect: linkPopover.rect,
|
|
7237
|
+
parentScroll: parentScrollRef.current,
|
|
7238
|
+
panelRef: linkPopoverPanelRef,
|
|
7239
|
+
open: true,
|
|
7240
|
+
mode: "edit",
|
|
7241
|
+
pages: sitePages,
|
|
7242
|
+
sections: currentSections,
|
|
7243
|
+
sectionsByPath,
|
|
7244
|
+
initialTarget: linkPopover.target,
|
|
7245
|
+
onClose: closeLinkPopover,
|
|
7246
|
+
onSubmit: handleLinkPopoverSubmit
|
|
7247
|
+
}
|
|
7248
|
+
) : null
|
|
7249
7249
|
] }),
|
|
7250
7250
|
bridgeRoot
|
|
7251
7251
|
) : null;
|