@ohhwells/bridge 0.1.81 → 0.1.82

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 CHANGED
@@ -2732,7 +2732,7 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
2732
2732
  const autoId = (0, import_react5.useId)();
2733
2733
  const insertAfter = insertAfterProp ?? autoId;
2734
2734
  const [schedule, setSchedule] = (0, import_react5.useState)(null);
2735
- const [loading, setLoading] = (0, import_react5.useState)(true);
2735
+ const [loading, setLoading] = (0, import_react5.useState)(initialScheduleId !== null);
2736
2736
  const [inEditor, setInEditor] = (0, import_react5.useState)(false);
2737
2737
  const [isHovered, setIsHovered] = (0, import_react5.useState)(false);
2738
2738
  const [modalState, setModalState] = (0, import_react5.useState)(null);
@@ -2906,8 +2906,10 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
2906
2906
  "*"
2907
2907
  );
2908
2908
  };
2909
- if (!inEditor && !loading && !schedule) return null;
2910
2909
  const sectionId = `scheduling-${insertAfter}`;
2910
+ if (!inEditor && !loading && !schedule) {
2911
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("section", { "data-ohw-section": sectionId, "data-ohw-scheduling-anchor": insertAfter, style: { display: "none" } });
2912
+ }
2911
2913
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2912
2914
  "section",
2913
2915
  {
@@ -15001,7 +15003,7 @@ function mountSchedulingEntries(entries, notifyOnConnect = false) {
15001
15003
  for (let i = pending.length - 1; i >= 0; i--) {
15002
15004
  const entry = pending[i];
15003
15005
  const shouldNotify = typeof notifyOnConnect === "function" ? notifyOnConnect(entry) : notifyOnConnect;
15004
- if (mountSchedulingWidget(entry.insertAfter, shouldNotify, entry.scheduleId)) {
15006
+ if (mountSchedulingWidget(entry.insertAfter, shouldNotify, entry.scheduleId ?? null)) {
15005
15007
  pending.splice(i, 1);
15006
15008
  }
15007
15009
  }
@@ -21089,7 +21091,7 @@ function OhhwellsBridge() {
21089
21091
  postToParent2({
21090
21092
  type: "ow:ready",
21091
21093
  version: "1",
21092
- bridgeVersion: "0.1.80",
21094
+ bridgeVersion: "0.1.81",
21093
21095
  path: pathname,
21094
21096
  nodes: collectEditableNodes(editContentRef.current),
21095
21097
  sections