@particle-academy/fancy-flow 0.33.1 → 0.33.2

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.js CHANGED
@@ -948,6 +948,12 @@ function NodeConfigPanel({
948
948
  style
949
949
  }) {
950
950
  const uid = useId();
951
+ const kindName = node ? node.data.kind ?? node.type : null;
952
+ const kind = useMemo(() => kindName ? getNodeKind(kindName) : void 0, [kindName]);
953
+ const config = useMemo(
954
+ () => node?.data?.config ?? {},
955
+ [node?.data]
956
+ );
951
957
  const fieldId = (key) => `${uid}-${key}`;
952
958
  if (!node) {
953
959
  return /* @__PURE__ */ jsxs("aside", { className: ["ff-panel", "ff-panel--empty", className ?? ""].filter(Boolean).join(" "), style, children: [
@@ -955,9 +961,6 @@ function NodeConfigPanel({
955
961
  /* @__PURE__ */ jsx("p", { className: "ff-panel__empty", children: "Select a node to configure it." })
956
962
  ] });
957
963
  }
958
- const kindName = node.data.kind ?? node.type;
959
- const kind = useMemo(() => getNodeKind(kindName), [kindName]);
960
- const config = useMemo(() => node.data.config ?? {}, [node.data]);
961
964
  if (!kind) {
962
965
  return /* @__PURE__ */ jsxs("aside", { className: ["ff-panel", className ?? ""].filter(Boolean).join(" "), style, children: [
963
966
  header,