@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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -273,7 +273,7 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
|
|
|
273
273
|
notifyOnConnect?: boolean;
|
|
274
274
|
initialScheduleId?: string | null;
|
|
275
275
|
insertAfter?: string;
|
|
276
|
-
}): react_jsx_runtime.JSX.Element
|
|
276
|
+
}): react_jsx_runtime.JSX.Element;
|
|
277
277
|
|
|
278
278
|
declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
279
279
|
|
package/dist/index.d.ts
CHANGED
|
@@ -273,7 +273,7 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
|
|
|
273
273
|
notifyOnConnect?: boolean;
|
|
274
274
|
initialScheduleId?: string | null;
|
|
275
275
|
insertAfter?: string;
|
|
276
|
-
}): react_jsx_runtime.JSX.Element
|
|
276
|
+
}): react_jsx_runtime.JSX.Element;
|
|
277
277
|
|
|
278
278
|
declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
279
279
|
|
package/dist/index.js
CHANGED
|
@@ -2659,7 +2659,7 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
|
|
|
2659
2659
|
const autoId = useId();
|
|
2660
2660
|
const insertAfter = insertAfterProp ?? autoId;
|
|
2661
2661
|
const [schedule, setSchedule] = useState2(null);
|
|
2662
|
-
const [loading, setLoading] = useState2(
|
|
2662
|
+
const [loading, setLoading] = useState2(initialScheduleId !== null);
|
|
2663
2663
|
const [inEditor, setInEditor] = useState2(false);
|
|
2664
2664
|
const [isHovered, setIsHovered] = useState2(false);
|
|
2665
2665
|
const [modalState, setModalState] = useState2(null);
|
|
@@ -2833,8 +2833,10 @@ function SchedulingWidget({ notifyOnConnect = false, initialScheduleId, insertAf
|
|
|
2833
2833
|
"*"
|
|
2834
2834
|
);
|
|
2835
2835
|
};
|
|
2836
|
-
if (!inEditor && !loading && !schedule) return null;
|
|
2837
2836
|
const sectionId = `scheduling-${insertAfter}`;
|
|
2837
|
+
if (!inEditor && !loading && !schedule) {
|
|
2838
|
+
return /* @__PURE__ */ jsx4("section", { "data-ohw-section": sectionId, "data-ohw-scheduling-anchor": insertAfter, style: { display: "none" } });
|
|
2839
|
+
}
|
|
2838
2840
|
return /* @__PURE__ */ jsxs3(
|
|
2839
2841
|
"section",
|
|
2840
2842
|
{
|
|
@@ -14934,7 +14936,7 @@ function mountSchedulingEntries(entries, notifyOnConnect = false) {
|
|
|
14934
14936
|
for (let i = pending.length - 1; i >= 0; i--) {
|
|
14935
14937
|
const entry = pending[i];
|
|
14936
14938
|
const shouldNotify = typeof notifyOnConnect === "function" ? notifyOnConnect(entry) : notifyOnConnect;
|
|
14937
|
-
if (mountSchedulingWidget(entry.insertAfter, shouldNotify, entry.scheduleId)) {
|
|
14939
|
+
if (mountSchedulingWidget(entry.insertAfter, shouldNotify, entry.scheduleId ?? null)) {
|
|
14938
14940
|
pending.splice(i, 1);
|
|
14939
14941
|
}
|
|
14940
14942
|
}
|
|
@@ -21022,7 +21024,7 @@ function OhhwellsBridge() {
|
|
|
21022
21024
|
postToParent2({
|
|
21023
21025
|
type: "ow:ready",
|
|
21024
21026
|
version: "1",
|
|
21025
|
-
bridgeVersion: "0.1.
|
|
21027
|
+
bridgeVersion: "0.1.81",
|
|
21026
21028
|
path: pathname,
|
|
21027
21029
|
nodes: collectEditableNodes(editContentRef.current),
|
|
21028
21030
|
sections
|