@particle-academy/fancy-flow 0.57.0 → 0.59.0

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.
Files changed (57) hide show
  1. package/dist/{HumanPrompt-DlJSFi3F.d.ts → HumanPrompt-Bw09OyS3.d.ts} +1 -1
  2. package/dist/{HumanPrompt-CPl-Spmp.d.cts → HumanPrompt-DV5-xnDa.d.cts} +1 -1
  3. package/dist/{chunk-45SSUYW7.js → chunk-A3TLZS5B.js} +3 -3
  4. package/dist/{chunk-45SSUYW7.js.map → chunk-A3TLZS5B.js.map} +1 -1
  5. package/dist/{chunk-E3XNFOLI.js → chunk-FGYG5JVW.js} +3 -3
  6. package/dist/{chunk-E3XNFOLI.js.map → chunk-FGYG5JVW.js.map} +1 -1
  7. package/dist/{chunk-LTUOAFQA.js → chunk-HBE4LVPX.js} +29 -2
  8. package/dist/chunk-HBE4LVPX.js.map +1 -0
  9. package/dist/{chunk-4X3DPRVD.js → chunk-LGLOBK6Q.js} +3 -3
  10. package/dist/{chunk-4X3DPRVD.js.map → chunk-LGLOBK6Q.js.map} +1 -1
  11. package/dist/{chunk-LUXQXJ4R.js → chunk-M7M6GLFV.js} +3 -3
  12. package/dist/{chunk-LUXQXJ4R.js.map → chunk-M7M6GLFV.js.map} +1 -1
  13. package/dist/{chunk-UBXRIK5R.js → chunk-MX4SJDNI.js} +4 -4
  14. package/dist/{chunk-UBXRIK5R.js.map → chunk-MX4SJDNI.js.map} +1 -1
  15. package/dist/connectors.d.cts +1 -1
  16. package/dist/connectors.d.ts +1 -1
  17. package/dist/durable.cjs +27 -0
  18. package/dist/durable.cjs.map +1 -1
  19. package/dist/durable.js +1 -1
  20. package/dist/engine.cjs +27 -0
  21. package/dist/engine.cjs.map +1 -1
  22. package/dist/engine.d.cts +2 -2
  23. package/dist/engine.d.ts +2 -2
  24. package/dist/engine.js +3 -3
  25. package/dist/fields/react-fancy.d.cts +2 -2
  26. package/dist/fields/react-fancy.d.ts +2 -2
  27. package/dist/index.cjs +27 -0
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +5 -5
  30. package/dist/index.d.ts +5 -5
  31. package/dist/index.js +11 -11
  32. package/dist/index.js.map +1 -1
  33. package/dist/registry/index.d.cts +3 -3
  34. package/dist/registry/index.d.ts +3 -3
  35. package/dist/{registry-C6TMfiD_.d.cts → registry-1qhmRtvC.d.cts} +1 -1
  36. package/dist/{registry-3RkSYrMi.d.ts → registry-D2qocEsY.d.ts} +1 -1
  37. package/dist/registry.cjs +27 -0
  38. package/dist/registry.cjs.map +1 -1
  39. package/dist/registry.js +2 -2
  40. package/dist/runtime.cjs +27 -0
  41. package/dist/runtime.cjs.map +1 -1
  42. package/dist/runtime.js +3 -3
  43. package/dist/schema.cjs +27 -0
  44. package/dist/schema.cjs.map +1 -1
  45. package/dist/schema.js +2 -2
  46. package/dist/screens.cjs +27 -0
  47. package/dist/screens.cjs.map +1 -1
  48. package/dist/screens.js +4 -4
  49. package/dist/{types-3sPauVRT.d.cts → types-BLVpNNLN.d.cts} +40 -1
  50. package/dist/{types-s643U1Hi.d.ts → types-CLSUZW8c.d.ts} +40 -1
  51. package/dist/ux.cjs +27 -0
  52. package/dist/ux.cjs.map +1 -1
  53. package/dist/ux.d.cts +1 -1
  54. package/dist/ux.d.ts +1 -1
  55. package/dist/ux.js +1 -1
  56. package/package.json +2 -2
  57. package/dist/chunk-LTUOAFQA.js.map +0 -1
package/dist/durable.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { truthy } from './chunk-BHM5HGXH.js';
2
2
  import { pauseForHuman, decodePause } from './chunk-UEOE6B52.js';
3
- import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-LTUOAFQA.js';
3
+ import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-HBE4LVPX.js';
4
4
  import './chunk-F5RPRB7A.js';
5
5
  import './chunk-USL4FMFU.js';
6
6
 
package/dist/engine.cjs CHANGED
@@ -9304,6 +9304,8 @@ var KINDS = [
9304
9304
  // ───────────── Triggers ─────────────
9305
9305
  {
9306
9306
  name: "@particle-academy/manual_trigger",
9307
+ // returns the inputs it was started with
9308
+ emits: "input",
9307
9309
  aliases: ["manual_trigger", "@fancy/manual_trigger"],
9308
9310
  category: "trigger",
9309
9311
  label: "Manual",
@@ -9332,6 +9334,12 @@ var KINDS = [
9332
9334
  },
9333
9335
  {
9334
9336
  name: "@particle-academy/schedule_trigger",
9337
+ outputShape: [
9338
+ { path: "cron", type: "string", description: "The cron expression that fired." },
9339
+ { path: "timezone", type: "string", description: "The timezone it was evaluated in." }
9340
+ ],
9341
+ // merges its inputs into the TOP level beside cron/timezone
9342
+ emits: "inputs-merged",
9335
9343
  aliases: ["schedule_trigger", "@fancy/schedule_trigger"],
9336
9344
  category: "trigger",
9337
9345
  label: "Schedule",
@@ -9519,6 +9527,8 @@ var KINDS = [
9519
9527
  // ───────────── Logic ─────────────
9520
9528
  {
9521
9529
  name: "@particle-academy/branch",
9530
+ // returns its input on the chosen port
9531
+ emits: "input",
9522
9532
  aliases: ["branch", "@fancy/branch"],
9523
9533
  category: "logic",
9524
9534
  label: "Branch",
@@ -9582,6 +9592,8 @@ var KINDS = [
9582
9592
  },
9583
9593
  {
9584
9594
  name: "@particle-academy/switch_case",
9595
+ // returns its input on the chosen port
9596
+ emits: "input",
9585
9597
  aliases: ["switch_case", "@fancy/switch_case"],
9586
9598
  category: "logic",
9587
9599
  label: "Switch",
@@ -9628,6 +9640,12 @@ var KINDS = [
9628
9640
  },
9629
9641
  {
9630
9642
  name: "@particle-academy/merge",
9643
+ // `merge` mode unions every object input at the TOP level; `concat` builds
9644
+ // a list instead, whose elements are not addressable as fields. So concat
9645
+ // declares NOTHING rather than an empty list -- `[]` would claim "emits no
9646
+ // fields" of a kind that emits a list, which is false and refuses every
9647
+ // reference.
9648
+ emits: (config) => (config?.mode ?? "merge") === "concat" ? null : "inputs-merged",
9631
9649
  aliases: ["merge", "@fancy/merge"],
9632
9650
  category: "logic",
9633
9651
  label: "Merge",
@@ -9670,6 +9688,9 @@ var KINDS = [
9670
9688
  },
9671
9689
  {
9672
9690
  name: "@particle-academy/transform",
9691
+ // Two behaviours: the input unchanged when no expression is configured,
9692
+ // else the shape that expression names. So the RELATION is config-dependent.
9693
+ emits: (config) => (config?.expression ?? "") === "" ? "input" : "expression:expression",
9673
9694
  aliases: ["transform", "@fancy/transform"],
9674
9695
  category: "logic",
9675
9696
  label: "Transform",
@@ -9769,6 +9790,8 @@ var KINDS = [
9769
9790
  },
9770
9791
  {
9771
9792
  name: "@particle-academy/variable",
9793
+ // evaluates the expression in config.value
9794
+ emits: "expression:value",
9772
9795
  aliases: ["variable", "@fancy/variable"],
9773
9796
  category: "data",
9774
9797
  label: "Variable",
@@ -10018,6 +10041,8 @@ var KINDS = [
10018
10041
  // ───────────── Human ─────────────
10019
10042
  {
10020
10043
  name: "@particle-academy/human_approval",
10044
+ // returns its input on approved/denied
10045
+ emits: "input",
10021
10046
  aliases: ["human_approval", "@fancy/human_approval"],
10022
10047
  pausesForHuman: "approval",
10023
10048
  category: "human",
@@ -10065,6 +10090,8 @@ var KINDS = [
10065
10090
  // ───────────── Output ─────────────
10066
10091
  {
10067
10092
  name: "@particle-academy/output",
10093
+ // returns its input unchanged
10094
+ emits: "input",
10068
10095
  aliases: ["output", "@fancy/output"],
10069
10096
  category: "output",
10070
10097
  label: "Output",