@particle-academy/fancy-flow 0.65.0 → 0.65.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/README.md +2 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/ux.cjs +8 -3
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.d.cts +12 -0
- package/dist/ux.d.ts +12 -0
- package/dist/ux.js +8 -3
- package/dist/ux.js.map +1 -1
- package/package.json +1 -1
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
|
|
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: [
|