@particle-academy/fancy-flow 0.66.0 → 0.66.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/dist/chunk-27RZJAE2.js +2586 -0
- package/dist/chunk-27RZJAE2.js.map +1 -0
- package/dist/{chunk-FNYLKSFJ.js → chunk-2QTEELJE.js} +4 -3
- package/dist/chunk-2QTEELJE.js.map +1 -0
- package/dist/{chunk-MTONBM53.js → chunk-6AYC3BWI.js} +4 -4
- package/dist/{chunk-MTONBM53.js.map → chunk-6AYC3BWI.js.map} +1 -1
- package/dist/{chunk-IEYCNFXZ.js → chunk-6TH646CS.js} +127 -5
- package/dist/chunk-6TH646CS.js.map +1 -0
- package/dist/{chunk-UCCTXJXL.js → chunk-BUNFPBTF.js} +5 -4
- package/dist/chunk-BUNFPBTF.js.map +1 -0
- package/dist/{chunk-B7HKJJVV.js → chunk-FV3D366L.js} +3 -3
- package/dist/{chunk-B7HKJJVV.js.map → chunk-FV3D366L.js.map} +1 -1
- package/dist/{chunk-HQGOFGAL.js → chunk-OWENS2H5.js} +64 -2754
- package/dist/chunk-OWENS2H5.js.map +1 -0
- package/dist/{chunk-PNHZHEWE.js → chunk-RE3XNVSB.js} +3 -3
- package/dist/{chunk-PNHZHEWE.js.map → chunk-RE3XNVSB.js.map} +1 -1
- package/dist/durable.cjs +153 -9213
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -2
- package/dist/durable.js.map +1 -1
- package/dist/engine.cjs +103 -9165
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +4 -5
- package/dist/engine.js.map +1 -1
- package/dist/index.cjs +11135 -11121
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/dist/registry/index.d.cts +15 -3
- package/dist/registry/index.d.ts +15 -3
- package/dist/registry.cjs +11166 -11153
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +4 -3
- package/dist/runtime.cjs +10772 -10924
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +4 -4
- package/dist/schema.cjs +85 -9147
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +3 -4
- package/dist/screens.cjs +7 -52
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +6 -5
- package/dist/screens.js.map +1 -1
- package/dist/ux.cjs +89 -9147
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.js +1 -2
- package/dist/ux.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-FNYLKSFJ.js.map +0 -1
- package/dist/chunk-HQGOFGAL.js.map +0 -1
- package/dist/chunk-IEYCNFXZ.js.map +0 -1
- package/dist/chunk-UCCTXJXL.js.map +0 -1
package/dist/schema.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-F5RPRB7A.js';
|
|
1
|
+
export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-6AYC3BWI.js';
|
|
2
|
+
import './chunk-FV3D366L.js';
|
|
3
|
+
import './chunk-27RZJAE2.js';
|
|
5
4
|
import './chunk-2QXKDLGT.js';
|
|
6
5
|
//# sourceMappingURL=schema.js.map
|
|
7
6
|
//# sourceMappingURL=schema.js.map
|
package/dist/screens.cjs
CHANGED
|
@@ -9249,26 +9249,6 @@ function humanFieldType(raw) {
|
|
|
9249
9249
|
if (typeof raw !== "string") return "text";
|
|
9250
9250
|
return HUMAN_FIELD_TYPE_ALIASES[raw.trim().toLowerCase()] ?? "text";
|
|
9251
9251
|
}
|
|
9252
|
-
function RichInputPreview({ config }) {
|
|
9253
|
-
const title = typeof config.title === "string" && config.title.trim() !== "" ? config.title : "Untitled step";
|
|
9254
|
-
config.document;
|
|
9255
|
-
{
|
|
9256
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ff-rich-preview", children: [
|
|
9257
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ff-rich-preview__title", children: title }),
|
|
9258
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ff-rich-preview__unavailable", children: [
|
|
9259
|
-
"Add ",
|
|
9260
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { children: "@particle-academy/fancy-cms-ui" }),
|
|
9261
|
-
" +",
|
|
9262
|
-
" ",
|
|
9263
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { children: "@particle-academy/react-fancy" }),
|
|
9264
|
-
", then",
|
|
9265
|
-
" ",
|
|
9266
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { children: 'import "@particle-academy/fancy-flow/rich-input"' }),
|
|
9267
|
-
"."
|
|
9268
|
-
] })
|
|
9269
|
-
] });
|
|
9270
|
-
}
|
|
9271
|
-
}
|
|
9272
9252
|
|
|
9273
9253
|
// src/registry/capabilities.ts
|
|
9274
9254
|
var llmClient = null;
|
|
@@ -10433,7 +10413,7 @@ ${result.text.slice(-2e3)}`
|
|
|
10433
10413
|
};
|
|
10434
10414
|
};
|
|
10435
10415
|
|
|
10436
|
-
// src/registry/builtin.ts
|
|
10416
|
+
// src/registry/builtin-kinds.ts
|
|
10437
10417
|
var HUMAN_FIELD_OUTPUT_TYPE = {
|
|
10438
10418
|
text: "string",
|
|
10439
10419
|
textarea: "string",
|
|
@@ -10651,10 +10631,7 @@ var KINDS = [
|
|
|
10651
10631
|
},
|
|
10652
10632
|
{ type: "switch", key: "requireConfirm", label: "Require explicit confirmation", default: true },
|
|
10653
10633
|
{ type: "text", key: "submitLabel", label: "Submit button", default: "Continue" }
|
|
10654
|
-
]
|
|
10655
|
-
// Preview the authored page inside a FauxClient frame, so the canvas shows
|
|
10656
|
-
// what the person hitting this step will actually see.
|
|
10657
|
-
renderBody: (ctx) => ReactExports.createElement(RichInputPreview, { config: ctx.config ?? {} })
|
|
10634
|
+
]
|
|
10658
10635
|
},
|
|
10659
10636
|
{
|
|
10660
10637
|
name: "@particle-academy/subflow",
|
|
@@ -11351,8 +11328,7 @@ var KINDS = [
|
|
|
11351
11328
|
}
|
|
11352
11329
|
],
|
|
11353
11330
|
defaultConfig: { title: "Lane", orientation: "horizontal" },
|
|
11354
|
-
resizable: { minWidth: 160, minHeight: 72 }
|
|
11355
|
-
component: LaneNode
|
|
11331
|
+
resizable: { minWidth: 160, minHeight: 72 }
|
|
11356
11332
|
},
|
|
11357
11333
|
{
|
|
11358
11334
|
// Terminal lane — a lane that OWNS a terminal for the length of the run.
|
|
@@ -11398,8 +11374,7 @@ var KINDS = [
|
|
|
11398
11374
|
}
|
|
11399
11375
|
],
|
|
11400
11376
|
defaultConfig: { title: "Terminal", orientation: "horizontal" },
|
|
11401
|
-
resizable: { minWidth: 220, minHeight: 120 }
|
|
11402
|
-
component: LaneNode
|
|
11377
|
+
resizable: { minWidth: 220, minHeight: 120 }
|
|
11403
11378
|
},
|
|
11404
11379
|
{
|
|
11405
11380
|
// Terminal nodes. All three live inside a terminal lane and talk to the
|
|
@@ -11553,11 +11528,10 @@ var KINDS = [
|
|
|
11553
11528
|
] }
|
|
11554
11529
|
],
|
|
11555
11530
|
defaultConfig: { text: "", color: "amber" },
|
|
11556
|
-
resizable: { minWidth: 140, minHeight: 80 }
|
|
11557
|
-
component: NoteNode
|
|
11531
|
+
resizable: { minWidth: 140, minHeight: 80 }
|
|
11558
11532
|
}
|
|
11559
11533
|
];
|
|
11560
|
-
function
|
|
11534
|
+
function registerBuiltinKindData() {
|
|
11561
11535
|
for (const k of KINDS) registerNodeKind(k);
|
|
11562
11536
|
}
|
|
11563
11537
|
|
|
@@ -11570,7 +11544,7 @@ var builtinsEnsured = false;
|
|
|
11570
11544
|
function ensureBuiltinKinds() {
|
|
11571
11545
|
if (builtinsEnsured) return;
|
|
11572
11546
|
builtinsEnsured = true;
|
|
11573
|
-
|
|
11547
|
+
registerBuiltinKindData();
|
|
11574
11548
|
}
|
|
11575
11549
|
function registerNodeKind(definition) {
|
|
11576
11550
|
ensureBuiltinKinds();
|
|
@@ -11639,25 +11613,6 @@ function categoryAccent(category) {
|
|
|
11639
11613
|
return "#71717a";
|
|
11640
11614
|
}
|
|
11641
11615
|
}
|
|
11642
|
-
function LaneNodeInner(props) {
|
|
11643
|
-
const data = props.data;
|
|
11644
|
-
const config = data.config ?? {};
|
|
11645
|
-
const title = config.title ?? data.label ?? "Lane";
|
|
11646
|
-
const orientation = config.orientation ?? "horizontal";
|
|
11647
|
-
const accent = config.color ?? data.color ?? categoryAccent("layout");
|
|
11648
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11649
|
-
"div",
|
|
11650
|
-
{
|
|
11651
|
-
className: ["ff-lane", `ff-lane--${orientation}`, props.selected ? "ff-lane--selected" : ""].filter(Boolean).join(" "),
|
|
11652
|
-
style: { borderColor: props.selected ? accent : void 0 },
|
|
11653
|
-
children: [
|
|
11654
|
-
/* @__PURE__ */ jsxRuntime.jsx(NodeResizer, { isVisible: props.selected ?? false, color: accent, minWidth: 160, minHeight: 72 }),
|
|
11655
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ff-lane__header", style: { background: accent }, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ff-lane__title", children: title }) })
|
|
11656
|
-
]
|
|
11657
|
-
}
|
|
11658
|
-
);
|
|
11659
|
-
}
|
|
11660
|
-
var LaneNode = ReactExports.memo(LaneNodeInner);
|
|
11661
11616
|
|
|
11662
11617
|
// src/components/nodes/index.ts
|
|
11663
11618
|
var defaultNodeTypes = {
|