@particle-academy/fancy-flow 0.65.0 → 0.65.1

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/README.md CHANGED
@@ -219,7 +219,8 @@ A host whose runtime owns selected values can hide those authoring controls
219
219
  without replacing the panel or redefining the node kind. `fieldFilter` is
220
220
  forwarded by `FlowEditor` and receives the selected node, its resolved kind,
221
221
  and each schema field. Returning `false` removes the field's label,
222
- description, and control; it does not mutate the registered schema:
222
+ description, control, and built-in validation messages; it does not mutate the
223
+ registered schema or runtime validation:
223
224
 
224
225
  ```tsx
225
226
  <FlowEditor
package/dist/index.cjs CHANGED
@@ -14006,10 +14006,11 @@ function NodeConfigPanel({
14006
14006
  const setDescription = (description) => onChange({ ...node, data: { ...node.data, description } });
14007
14007
  const setStatusMsg = (key, value) => onChange({ ...node, data: { ...node.data, [key]: value } });
14008
14008
  const setConfigValue = (key, value) => onChange({ ...node, data: { ...node.data, config: { ...config, [key]: value } } });
14009
- const issues = validateConfig(kind, config);
14010
14009
  const configFields = (kind.configSchema ?? []).filter(
14011
14010
  (field) => fieldFilter ? fieldFilter({ node, kind, field }) : true
14012
14011
  );
14012
+ const visibleFieldKeys = new Set(configFields.map((field) => field.key));
14013
+ const issues = validateConfig(kind, config).filter((issue) => visibleFieldKeys.has(issue.key));
14013
14014
  const adapter2 = getRichInputAdapter();
14014
14015
  const documentField = renderDocumentField ?? (adapter2?.renderEditor ? ({ value, onChange: set3 }) => adapter2.renderEditor({ value, onChange: set3 }) : void 0);
14015
14016
  return /* @__PURE__ */ jsxRuntime.jsxs("aside", { className: ["ff-panel", className ?? ""].filter(Boolean).join(" "), style: style2, children: [