@pipelex/mthds-ui 0.39.0 → 0.41.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 (41) hide show
  1. package/README.md +8 -6
  2. package/dist/chunk-6S5TQPTO.js +1349 -0
  3. package/dist/chunk-6S5TQPTO.js.map +1 -0
  4. package/dist/chunk-7JZBXBZS.js +258 -0
  5. package/dist/chunk-7JZBXBZS.js.map +1 -0
  6. package/dist/{chunk-AGFLCOWW.js → chunk-HPARBH6K.js} +14 -197
  7. package/dist/chunk-HPARBH6K.js.map +1 -0
  8. package/dist/chunk-N2F62MW7.js +55 -0
  9. package/dist/chunk-N2F62MW7.js.map +1 -0
  10. package/dist/chunk-P6IGZVWE.js +155 -0
  11. package/dist/chunk-P6IGZVWE.js.map +1 -0
  12. package/dist/form/react/index.d.ts +1 -1
  13. package/dist/graph/index.d.ts +19 -3
  14. package/dist/graph/index.js +20 -12
  15. package/dist/graph/react/index.d.ts +13 -13
  16. package/dist/graph/react/index.js +387 -560
  17. package/dist/graph/react/index.js.map +1 -1
  18. package/dist/graph/react/viewer/GraphToolbar.css +2 -107
  19. package/dist/graph/react/viewer/StyleMenu.css +109 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +20 -12
  22. package/dist/registryJoin-C6Wfkik-.d.ts +441 -0
  23. package/dist/standalone/graph-standalone.html +176 -171
  24. package/dist/standalone/graph-viewer.css +75 -70
  25. package/dist/standalone/graph-viewer.js +101 -101
  26. package/dist/static-graph/index.d.ts +1 -1
  27. package/dist/timeline/index.d.ts +344 -83
  28. package/dist/timeline/index.js +67 -3
  29. package/dist/timeline/react/RunTimeline.css +141 -0
  30. package/dist/timeline/react/index.d.ts +57 -6
  31. package/dist/timeline/react/index.js +929 -120
  32. package/dist/timeline/react/index.js.map +1 -1
  33. package/dist/timeline/react/styles/simple/SimpleProgress.css +354 -0
  34. package/dist/{types-DsrzH6gM.d.ts → types-DLAnYNoi.d.ts} +1 -1
  35. package/package.json +6 -4
  36. package/dist/chunk-AGFLCOWW.js.map +0 -1
  37. package/dist/chunk-ILZJIORT.js +0 -54
  38. package/dist/chunk-ILZJIORT.js.map +0 -1
  39. package/dist/chunk-JJG2TO7P.js +0 -473
  40. package/dist/chunk-JJG2TO7P.js.map +0 -1
  41. package/dist/progressSnapshot-VZ4PLul9.d.ts +0 -191
@@ -0,0 +1,55 @@
1
+ import {
2
+ DEFAULT_GRAPH_CONFIG
3
+ } from "./chunk-ENRYQOCO.js";
4
+ import {
5
+ GRAPH_STYLE
6
+ } from "./chunk-4KLE62AN.js";
7
+
8
+ // src/graph/styles/graphStyles.ts
9
+ var GRAPH_STYLES = {
10
+ [GRAPH_STYLE.DETAILED]: {
11
+ id: GRAPH_STYLE.DETAILED,
12
+ name: "Detailed",
13
+ description: "Every pipe with its inputs, outputs and settings",
14
+ capabilities: { controllerFrameToggle: true, foldAll: true }
15
+ },
16
+ [GRAPH_STYLE.SIMPLE]: {
17
+ id: GRAPH_STYLE.SIMPLE,
18
+ name: "Simple",
19
+ description: "The method's steps in plain words",
20
+ capabilities: { controllerFrameToggle: false, foldAll: true },
21
+ layout: {
22
+ nodesep: 28,
23
+ ranksep: 44,
24
+ routeEdges: true,
25
+ groupPadding: { x: 20, top: 40, bottom: 16 }
26
+ }
27
+ }
28
+ };
29
+ var GRAPH_STYLE_IDS = [GRAPH_STYLE.DETAILED, GRAPH_STYLE.SIMPLE];
30
+ function isGraphStyleId(value) {
31
+ return typeof value === "string" && Object.hasOwn(GRAPH_STYLES, value);
32
+ }
33
+ function resolveGraphStyle(styleProp, configStyle) {
34
+ if (isGraphStyleId(styleProp)) return styleProp;
35
+ if (isGraphStyleId(configStyle)) return configStyle;
36
+ return DEFAULT_GRAPH_CONFIG.graphStyle;
37
+ }
38
+ function resolveStyleMenu(styleMenu) {
39
+ if (styleMenu === void 0 || styleMenu === false) return [];
40
+ const requested = styleMenu === true ? GRAPH_STYLE_IDS : styleMenu;
41
+ const offered = [];
42
+ for (const id of requested) {
43
+ if (isGraphStyleId(id) && !offered.includes(id)) offered.push(id);
44
+ }
45
+ return offered.length >= 2 ? offered : [];
46
+ }
47
+
48
+ export {
49
+ GRAPH_STYLES,
50
+ GRAPH_STYLE_IDS,
51
+ isGraphStyleId,
52
+ resolveGraphStyle,
53
+ resolveStyleMenu
54
+ };
55
+ //# sourceMappingURL=chunk-N2F62MW7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/graph/styles/graphStyles.ts"],"sourcesContent":["import type { GraphStyleId, LayoutConfig } from \"@graph/types\";\nimport { GRAPH_STYLE } from \"@graph/types\";\nimport { DEFAULT_GRAPH_CONFIG } from \"@graph/graphConfig\";\n\n// ─── The style registry ─────────────────────────────────────────────────────\n// A closed, typed table: adding a style is a new `GRAPH_STYLE` id, after which\n// the compiler names every table keyed by `GraphStyleId` that needs a row — the\n// descriptor below, the drawing pipeline (`stylePipelines.ts`), the node\n// components and the menu icon in the React layer.\n\n/** Which of the toolbar's controls make sense for a style. */\nexport interface GraphStyleCapabilities {\n /**\n * The toolbar's show/hide controllers toggle applies: the style draws\n * controller frames on demand. A style that decides its own frames hides it.\n */\n controllerFrameToggle: boolean;\n /**\n * Fold-all and expand-all apply. In a style that also has the frame toggle\n * they apply only while the frames are shown, since a fold is undone from a\n * frame.\n */\n foldAll: boolean;\n}\n\n/** What the registry says of one style: what it is called, what it is for, and what it supports. */\nexport interface GraphStyleDescriptor {\n id: GraphStyleId;\n /** The style's name in the toolbar menu. */\n name: string;\n /** One line saying what the style shows, under its name in the menu. */\n description: string;\n capabilities: GraphStyleCapabilities;\n /**\n * How the style lays out: its spacing, which replaces `config.nodesep` and\n * `config.ranksep` for it, the room its frames keep around their steps, and\n * whether its edges follow routes around the nodes in their way. A style\n * that leaves it undefined keeps the host's spacing and the controller\n * groups' padding, and draws free curves of the host's `edgeType`.\n */\n layout?: Required<LayoutConfig>;\n}\n\nexport const GRAPH_STYLES: Record<GraphStyleId, GraphStyleDescriptor> = {\n [GRAPH_STYLE.DETAILED]: {\n id: GRAPH_STYLE.DETAILED,\n name: \"Detailed\",\n description: \"Every pipe with its inputs, outputs and settings\",\n capabilities: { controllerFrameToggle: true, foldAll: true },\n },\n [GRAPH_STYLE.SIMPLE]: {\n id: GRAPH_STYLE.SIMPLE,\n name: \"Simple\",\n description: \"The method's steps in plain words\",\n capabilities: { controllerFrameToggle: false, foldAll: true },\n layout: {\n nodesep: 28,\n ranksep: 44,\n routeEdges: true,\n groupPadding: { x: 20, top: 40, bottom: 16 },\n },\n },\n};\n\n/** Every registered style, in the order the menu lists them. */\nexport const GRAPH_STYLE_IDS: readonly GraphStyleId[] = [GRAPH_STYLE.DETAILED, GRAPH_STYLE.SIMPLE];\n\n/**\n * Whether a value names a registered style. For values that cross an untyped\n * boundary — an editor setting, the standalone page's config embed, a host\n * written in plain JavaScript — before they reach the viewer.\n */\nexport function isGraphStyleId(value: unknown): value is GraphStyleId {\n return typeof value === \"string\" && Object.hasOwn(GRAPH_STYLES, value);\n}\n\n/**\n * Resolve the active style from `(graphStyle prop, config.graphStyle, default)`.\n * Pure + exported so the controlled/reactive precedence is unit-testable\n * without React, under the same contract `resolveExternalThemeMode` holds:\n * - the prop wins when it names a style,\n * - falls back to `config.graphStyle` when the prop is undefined (so a host can\n * hand control back to config after passing the prop),\n * - falls back to the library default (`detailed`) when neither is set.\n *\n * A value naming no registered style is treated as unset rather than thrown\n * on: a style is a preference, and a host relaying a setting written for a\n * newer version of this package should still get a graph.\n */\nexport function resolveGraphStyle(styleProp: unknown, configStyle: unknown): GraphStyleId {\n if (isGraphStyleId(styleProp)) return styleProp;\n if (isGraphStyleId(configStyle)) return configStyle;\n return DEFAULT_GRAPH_CONFIG.graphStyle;\n}\n\n/**\n * The styles the toolbar menu offers, from the viewer's `styleMenu` prop:\n * nothing for `false` or `undefined` (the menu is opt-in), every registered\n * style in registry order for `true`, and for a list the registered styles it\n * names, in its order and without repeats. A menu needs two styles to choose\n * between, so fewer than two offer none.\n */\nexport function resolveStyleMenu(\n styleMenu: boolean | readonly GraphStyleId[] | undefined,\n): GraphStyleId[] {\n if (styleMenu === undefined || styleMenu === false) return [];\n const requested: readonly unknown[] = styleMenu === true ? GRAPH_STYLE_IDS : styleMenu;\n const offered: GraphStyleId[] = [];\n for (const id of requested) {\n if (isGraphStyleId(id) && !offered.includes(id)) offered.push(id);\n }\n return offered.length >= 2 ? offered : [];\n}\n"],"mappings":";;;;;;;;AA2CO,IAAM,eAA2D;AAAA,EACtE,CAAC,YAAY,QAAQ,GAAG;AAAA,IACtB,IAAI,YAAY;AAAA,IAChB,MAAM;AAAA,IACN,aAAa;AAAA,IACb,cAAc,EAAE,uBAAuB,MAAM,SAAS,KAAK;AAAA,EAC7D;AAAA,EACA,CAAC,YAAY,MAAM,GAAG;AAAA,IACpB,IAAI,YAAY;AAAA,IAChB,MAAM;AAAA,IACN,aAAa;AAAA,IACb,cAAc,EAAE,uBAAuB,OAAO,SAAS,KAAK;AAAA,IAC5D,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,cAAc,EAAE,GAAG,IAAI,KAAK,IAAI,QAAQ,GAAG;AAAA,IAC7C;AAAA,EACF;AACF;AAGO,IAAM,kBAA2C,CAAC,YAAY,UAAU,YAAY,MAAM;AAO1F,SAAS,eAAe,OAAuC;AACpE,SAAO,OAAO,UAAU,YAAY,OAAO,OAAO,cAAc,KAAK;AACvE;AAeO,SAAS,kBAAkB,WAAoB,aAAoC;AACxF,MAAI,eAAe,SAAS,EAAG,QAAO;AACtC,MAAI,eAAe,WAAW,EAAG,QAAO;AACxC,SAAO,qBAAqB;AAC9B;AASO,SAAS,iBACd,WACgB;AAChB,MAAI,cAAc,UAAa,cAAc,MAAO,QAAO,CAAC;AAC5D,QAAM,YAAgC,cAAc,OAAO,kBAAkB;AAC7E,QAAM,UAA0B,CAAC;AACjC,aAAW,MAAM,WAAW;AAC1B,QAAI,eAAe,EAAE,KAAK,CAAC,QAAQ,SAAS,EAAE,EAAG,SAAQ,KAAK,EAAE;AAAA,EAClE;AACA,SAAO,QAAQ,UAAU,IAAI,UAAU,CAAC;AAC1C;","names":[]}
@@ -0,0 +1,155 @@
1
+ // src/graph/styles/humanize.ts
2
+ var VOWELED_ACRONYMS = /* @__PURE__ */ new Set([
3
+ "ai",
4
+ "api",
5
+ "faq",
6
+ "iban",
7
+ "id",
8
+ "io",
9
+ "ip",
10
+ "json",
11
+ "kpi",
12
+ "ocr",
13
+ "roi",
14
+ "seo",
15
+ "ui",
16
+ "uri",
17
+ "url",
18
+ "uuid",
19
+ "ux"
20
+ ]);
21
+ var VOWELS = /[aeiouy]/;
22
+ var VOWELLESS_WORDS = /* @__PURE__ */ new Set([
23
+ "cfg",
24
+ "cm",
25
+ "cnt",
26
+ "ctx",
27
+ "dr",
28
+ "dst",
29
+ "fn",
30
+ "ft",
31
+ "hmm",
32
+ "hr",
33
+ "kg",
34
+ "km",
35
+ "lb",
36
+ "mg",
37
+ "ml",
38
+ "mm",
39
+ "mr",
40
+ "mrs",
41
+ "ms",
42
+ "msg",
43
+ "nd",
44
+ "nth",
45
+ "pkg",
46
+ "pt",
47
+ "rd",
48
+ "src",
49
+ "st",
50
+ "th",
51
+ "tmp",
52
+ "vs"
53
+ ]);
54
+ var SINGULAR_S_ACRONYMS = /* @__PURE__ */ new Set([
55
+ "cms",
56
+ "css",
57
+ "dns",
58
+ "gps",
59
+ "rss",
60
+ "sms"
61
+ ]);
62
+ var NATIVE_PLAIN_NAMES = {
63
+ Html: "HTML",
64
+ JSON: "JSON",
65
+ TextAndImages: "Text and images",
66
+ YesNo: "Yes or no",
67
+ SearchResult: "Search result",
68
+ Composite: "Combined results",
69
+ Dynamic: "Data"
70
+ };
71
+ var GENERIC_NATIVES = /* @__PURE__ */ new Set(["Anything", "Dynamic", "Composite"]);
72
+ function isAcronymWord(lower) {
73
+ if (lower.length < 2 || !/^[a-z]+$/.test(lower)) return false;
74
+ if (VOWELLESS_WORDS.has(lower)) return false;
75
+ if (lower.endsWith("s") && VOWELLESS_WORDS.has(lower.slice(0, -1))) return false;
76
+ return !VOWELS.test(lower) || VOWELED_ACRONYMS.has(lower);
77
+ }
78
+ function spellWord(lower, wasAllCaps) {
79
+ if (/^\d+$/.test(lower)) return lower;
80
+ if (wasAllCaps && lower.length >= 2) return lower.toUpperCase();
81
+ if (lower.endsWith("s") && !SINGULAR_S_ACRONYMS.has(lower) && isAcronymWord(lower.slice(0, -1))) {
82
+ return lower.slice(0, -1).toUpperCase() + "s";
83
+ }
84
+ if (isAcronymWord(lower)) return lower.toUpperCase();
85
+ return lower;
86
+ }
87
+ function splitIdentifier(identifier) {
88
+ const parts = identifier.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/([A-Za-z])(\d)/g, "$1 $2").split(/[\s_\-.]+/).filter((p) => p.length > 0);
89
+ return parts.map((p) => ({
90
+ word: p.toLowerCase(),
91
+ wasAllCaps: p.length >= 2 && p === p.toUpperCase() && /[A-Z]/.test(p)
92
+ }));
93
+ }
94
+ function capitalizeFirst(text) {
95
+ return text.length === 0 ? text : text.charAt(0).toUpperCase() + text.slice(1);
96
+ }
97
+ function stripDomain(ref) {
98
+ const dot = ref.lastIndexOf(".");
99
+ return dot === -1 ? ref : ref.slice(dot + 1);
100
+ }
101
+ function humanizeIdentifier(identifier) {
102
+ const words = splitIdentifier(stripDomain(identifier.trim()));
103
+ if (words.length === 0) return "";
104
+ return capitalizeFirst(words.map((w) => spellWord(w.word, w.wasAllCaps)).join(" "));
105
+ }
106
+ function conceptPlainName(conceptRef) {
107
+ var _a;
108
+ const code = stripDomain(conceptRef.trim());
109
+ return (_a = NATIVE_PLAIN_NAMES[code]) != null ? _a : humanizeIdentifier(code);
110
+ }
111
+ function isGenericConcept(conceptRef) {
112
+ return GENERIC_NATIVES.has(stripDomain(conceptRef.trim()));
113
+ }
114
+ function sentenceCase(text) {
115
+ const collapsed = text.replace(/\s+/g, " ").trim();
116
+ const trimmed = collapsed.endsWith(".") && !collapsed.endsWith("..") ? collapsed.slice(0, -1) : collapsed;
117
+ return capitalizeFirst(trimmed);
118
+ }
119
+ function pipeTitle(description, pipeCode) {
120
+ const described = sentenceCase(description != null ? description : "");
121
+ if (described) return { title: described, fromDescription: true };
122
+ return { title: humanizeIdentifier(pipeCode), fromDescription: false };
123
+ }
124
+ function humanizeInSentence(identifier) {
125
+ var _a;
126
+ const words = humanizeIdentifier(identifier);
127
+ const first = (_a = words.split(" ")[0]) != null ? _a : "";
128
+ return first.length >= 2 && first === first.toUpperCase() ? words : words.charAt(0).toLowerCase() + words.slice(1);
129
+ }
130
+ var OUTCOME_WORDS = {
131
+ true: "Yes",
132
+ false: "No",
133
+ default: "Otherwise"
134
+ };
135
+ function outcomeLabel(outcome) {
136
+ const outcomes = outcome.split("|").map((o) => o.trim()).filter((o) => o.length > 0);
137
+ const labels = outcomes.map((o, index) => {
138
+ var _a;
139
+ const label = (_a = OUTCOME_WORDS[o.toLowerCase()]) != null ? _a : humanizeIdentifier(o);
140
+ return index === 0 ? label : label.charAt(0).toLowerCase() + label.slice(1);
141
+ });
142
+ return labels.join(" or ");
143
+ }
144
+
145
+ export {
146
+ stripDomain,
147
+ humanizeIdentifier,
148
+ conceptPlainName,
149
+ isGenericConcept,
150
+ sentenceCase,
151
+ pipeTitle,
152
+ humanizeInSentence,
153
+ outcomeLabel
154
+ };
155
+ //# sourceMappingURL=chunk-P6IGZVWE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/graph/styles/humanize.ts"],"sourcesContent":["// Plain words from identifiers: the simple style's fallback when a method\n// declares nothing better. Pure, deterministic and tested — never a stand-in\n// for an authored description, and never a guess at meaning: an identifier is\n// split, cased and spelled, nothing more.\n\n/**\n * Words spelled as acronyms although they hold a vowel. A word with no vowel at\n * all (`cv`, `pdf`, `rfp`, `html`) is spelled as an acronym without being\n * listed, unless it is one of the `VOWELLESS_WORDS`.\n */\nconst VOWELED_ACRONYMS: ReadonlySet<string> = new Set([\n \"ai\",\n \"api\",\n \"faq\",\n \"iban\",\n \"id\",\n \"io\",\n \"ip\",\n \"json\",\n \"kpi\",\n \"ocr\",\n \"roi\",\n \"seo\",\n \"ui\",\n \"uri\",\n \"url\",\n \"uuid\",\n \"ux\",\n]);\n\nconst VOWELS = /[aeiouy]/;\n\n/**\n * Words with no vowel that are written in lowercase rather than spelled out:\n * abbreviations, units and ordinal suffixes found in identifiers (`weight_kg`\n * is \"Weight kg\", `nth_item` is \"Nth item\"). A plural is covered by its\n * singular (`hrs` by `hr`).\n */\nconst VOWELLESS_WORDS: ReadonlySet<string> = new Set([\n \"cfg\",\n \"cm\",\n \"cnt\",\n \"ctx\",\n \"dr\",\n \"dst\",\n \"fn\",\n \"ft\",\n \"hmm\",\n \"hr\",\n \"kg\",\n \"km\",\n \"lb\",\n \"mg\",\n \"ml\",\n \"mm\",\n \"mr\",\n \"mrs\",\n \"ms\",\n \"msg\",\n \"nd\",\n \"nth\",\n \"pkg\",\n \"pt\",\n \"rd\",\n \"src\",\n \"st\",\n \"th\",\n \"tmp\",\n \"vs\",\n]);\n\n/** Vowelless acronyms that end in `s` without being plurals (`css` is not two `cs`). */\nconst SINGULAR_S_ACRONYMS: ReadonlySet<string> = new Set([\n \"cms\",\n \"css\",\n \"dns\",\n \"gps\",\n \"rss\",\n \"sms\",\n]);\n\n/**\n * The plain names of the natives whose code does not read as words once split\n * (`YesNo` is not \"Yes no\"). Every other native reads well humanized.\n */\nconst NATIVE_PLAIN_NAMES: Readonly<Record<string, string>> = {\n Html: \"HTML\",\n JSON: \"JSON\",\n TextAndImages: \"Text and images\",\n YesNo: \"Yes or no\",\n SearchResult: \"Search result\",\n Composite: \"Combined results\",\n Dynamic: \"Data\",\n};\n\n/**\n * Natives that say what kind of value something is without saying what it is:\n * a final output of one of these is named by its variable, not its concept.\n */\nconst GENERIC_NATIVES: ReadonlySet<string> = new Set([\"Anything\", \"Dynamic\", \"Composite\"]);\n\nfunction isAcronymWord(lower: string): boolean {\n if (lower.length < 2 || !/^[a-z]+$/.test(lower)) return false;\n if (VOWELLESS_WORDS.has(lower)) return false;\n if (lower.endsWith(\"s\") && VOWELLESS_WORDS.has(lower.slice(0, -1))) return false;\n return !VOWELS.test(lower) || VOWELED_ACRONYMS.has(lower);\n}\n\n/** Spell one lowercase word: an acronym in capitals (a plural keeps its `s`), anything else as is. */\nfunction spellWord(lower: string, wasAllCaps: boolean): string {\n if (/^\\d+$/.test(lower)) return lower;\n if (wasAllCaps && lower.length >= 2) return lower.toUpperCase();\n // A plural acronym keeps its lowercase `s`: `cvs` is \"CVs\", not \"CVS\".\n if (lower.endsWith(\"s\") && !SINGULAR_S_ACRONYMS.has(lower) && isAcronymWord(lower.slice(0, -1))) {\n return lower.slice(0, -1).toUpperCase() + \"s\";\n }\n if (isAcronymWord(lower)) return lower.toUpperCase();\n return lower;\n}\n\n/**\n * Split an identifier into its words: on `_`, `-`, `.` and spaces, and at the\n * case boundaries of camel and Pascal case, keeping a run of capitals together\n * (`PDFDocument` is `PDF` and `Document`).\n */\nfunction splitIdentifier(identifier: string): { word: string; wasAllCaps: boolean }[] {\n const parts = identifier\n .replace(/([a-z\\d])([A-Z])/g, \"$1 $2\")\n .replace(/([A-Z]+)([A-Z][a-z])/g, \"$1 $2\")\n .replace(/([A-Za-z])(\\d)/g, \"$1 $2\")\n .split(/[\\s_\\-.]+/)\n .filter((p) => p.length > 0);\n return parts.map((p) => ({\n word: p.toLowerCase(),\n wasAllCaps: p.length >= 2 && p === p.toUpperCase() && /[A-Z]/.test(p),\n }));\n}\n\n/** Capitalize the first letter, leaving the rest as written. */\nfunction capitalizeFirst(text: string): string {\n return text.length === 0 ? text : text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n/** The last segment of a dotted ref: the code without its domain (`recruitment.CandidateProfile` → `CandidateProfile`). */\nexport function stripDomain(ref: string): string {\n const dot = ref.lastIndexOf(\".\");\n return dot === -1 ? ref : ref.slice(dot + 1);\n}\n\n/**\n * An identifier as words in sentence case: `job_offer` → \"Job offer\",\n * `CandidateProfile` → \"Candidate profile\", `pr_url` → \"PR URL\",\n * `cvs` → \"CVs\". A dotted ref is humanized by its last segment.\n */\nexport function humanizeIdentifier(identifier: string): string {\n const words = splitIdentifier(stripDomain(identifier.trim()));\n if (words.length === 0) return \"\";\n return capitalizeFirst(words.map((w) => spellWord(w.word, w.wasAllCaps)).join(\" \"));\n}\n\n/** A concept's plain name, from its code or ref: a native's own plain name, or the humanized code. */\nexport function conceptPlainName(conceptRef: string): string {\n const code = stripDomain(conceptRef.trim());\n return NATIVE_PLAIN_NAMES[code] ?? humanizeIdentifier(code);\n}\n\n/** Whether a concept is a native that names no particular kind of content (`Anything`, `Dynamic`, `Composite`). */\nexport function isGenericConcept(conceptRef: string): boolean {\n return GENERIC_NATIVES.has(stripDomain(conceptRef.trim()));\n}\n\n/**\n * Authored text as a title: whitespace collapsed (descriptions are often\n * written across lines), the first letter capitalized, and a single closing\n * period dropped, since a label in a box reads as a heading. Nothing else is\n * touched: the words are the author's.\n */\nexport function sentenceCase(text: string): string {\n const collapsed = text.replace(/\\s+/g, \" \").trim();\n const trimmed =\n collapsed.endsWith(\".\") && !collapsed.endsWith(\"..\") ? collapsed.slice(0, -1) : collapsed;\n return capitalizeFirst(trimmed);\n}\n\n/**\n * A pipe's title in plain words: its authored description as a title\n * (`sentenceCase`), or its humanized code when it has none. The simple graph\n * style titles its steps this way, and the simple timeline style its lines, so\n * a step reads the same in both. `fromDescription` says which it was.\n */\nexport function pipeTitle(\n description: string | null | undefined,\n pipeCode: string,\n): { title: string; fromDescription: boolean } {\n const described = sentenceCase(description ?? \"\");\n if (described) return { title: described, fromDescription: true };\n return { title: humanizeIdentifier(pipeCode), fromDescription: false };\n}\n\n/**\n * An identifier as words inside a sentence: `humanizeIdentifier`'s words with\n * their first letter in lower case, unless the first word is an acronym\n * (`filing` → \"filing\", `cv_file` → \"CV file\").\n */\nexport function humanizeInSentence(identifier: string): string {\n const words = humanizeIdentifier(identifier);\n const first = words.split(\" \")[0] ?? \"\";\n return first.length >= 2 && first === first.toUpperCase()\n ? words\n : words.charAt(0).toLowerCase() + words.slice(1);\n}\n\n/** The outcome names that read better as other words: a yes-or-no test's, and the default. */\nconst OUTCOME_WORDS: Readonly<Record<string, string>> = {\n true: \"Yes\",\n false: \"No\",\n default: \"Otherwise\",\n};\n\n/**\n * A condition's outcome as an arrow label: `english` → \"English\",\n * `high_priority` → \"High priority\", a yes-or-no test's `true` and `false` →\n * \"Yes\" and \"No\", and the `default` outcome → \"Otherwise\". A branch taken on\n * several outcomes, written `no_fit | default` as the static builder labels it,\n * reads \"No fit or otherwise\".\n */\nexport function outcomeLabel(outcome: string): string {\n const outcomes = outcome\n .split(\"|\")\n .map((o) => o.trim())\n .filter((o) => o.length > 0);\n const labels = outcomes.map((o, index) => {\n const label = OUTCOME_WORDS[o.toLowerCase()] ?? humanizeIdentifier(o);\n return index === 0 ? label : label.charAt(0).toLowerCase() + label.slice(1);\n });\n return labels.join(\" or \");\n}\n"],"mappings":"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","names":[]}
@@ -2,7 +2,7 @@ import { FieldEnv } from '@pipelex/mthds-form/react';
2
2
  export * from '@pipelex/mthds-form/react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ValidationMessageKey, PipeIOContract, RunField, RunInputError, PipeInputFormDescriptor, FileSource, ExampleSource, FormExample } from '@pipelex/mthds-form';
5
- import { a as GraphTheme } from '../../types-DsrzH6gM.js';
5
+ import { a as GraphTheme } from '../../types-DLAnYNoi.js';
6
6
  import 'mthds/errors';
7
7
 
8
8
  /**
@@ -1,5 +1,5 @@
1
- import { p as GraphSpecNode, r as CardNode, s as PipeCallNode, c as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, t as GraphData, u as GraphSpecMode, o as PipeCardPayload, n as FoldToggleOptions, f as GraphNode, e as GraphEdge, d as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, k as GraphSpecNodeIoItem, h as GraphDirection, v as LayoutConfig, E as EdgeRoute, w as GraphPoint, g as GraphConfig, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, S as SimpleTitleFit, x as NodePipeType, y as StepCategory, j as PipeStatus } from '../types-DsrzH6gM.js';
2
- export { A as ARROW_CLOSED_MARKER, B as BINDING_STEP_TYPE, z as BindingNode, H as BindingStepSpec, I as BindingStepType, J as CONTROLLER_PADDING_BOTTOM, K as CONTROLLER_PADDING_TOP, M as CONTROLLER_PADDING_X, O as EDGE_TYPE, Q as EDGE_TYPE_ROUTED, R as EdgeType, U as FOLD_MODE, W as FieldResolution, F as FoldMode, X as GRAPH_DIRECTION, Y as GRAPH_SPEC_MODE, Z as GRAPH_STYLE, _ as GRAPH_THEME, $ as GRAPH_THEME_MODE, a0 as GraphSpecEdge, a1 as GraphSpecEdgeKind, a2 as GraphSpecMeta, a3 as GraphSpecModelUsage, a4 as GraphSpecNodeIo, a5 as GraphSpecNodeTiming, a6 as GraphSpecNodeUsage, a7 as GraphSpecUsage, G as GraphThemeMode, a8 as JudgmentQuestionSpec, a9 as KNOWN_PIPE_TYPES, L as LabelDescriptor, aa as NODE_TYPE_CONTROLLER, ab as NODE_TYPE_PIPE_CARD, ac as NODE_TYPE_SIMPLE_DECISION, ad as NODE_TYPE_SIMPLE_FRAME, ae as NODE_TYPE_SIMPLE_STEP, af as NODE_TYPE_SIMPLE_TERMINAL, ag as NODE_TYPE_STUFF, ah as NodeKind, ai as PipeBatchBlueprint, aj as PipeBlueprintBase, ak as PipeComposeBlueprint, al as PipeComposeConstructBlueprint, am as PipeComposeConstructField, an as PipeConditionBlueprint, m as PipeControllerType, ao as PipeDocGenBlueprint, ap as PipeExtractBlueprint, aq as PipeFuncBlueprint, ar as PipeImgGenBlueprint, as as PipeJudgeBlueprint, at as PipeLLMBlueprint, q as PipeOperatorType, au as PipeParallelBlueprint, av as PipeSearchBlueprint, aw as PipeSequenceBlueprint, ax as PipeSignatureBlueprint, ay as PipeStructureBlueprint, az as PipeType, b as PresenceMarker, aA as STEP_CATEGORY, aB as STUFF_ID_PREFIX, aC as SequenceStepSpec, aD as SimpleNodePayload, aE as StuffMultiplicity, aF as StuffRegistryEntry, aG as StuffRole, aH as StuffSpecInfo, aI as SubPipeSpec, aJ as TOOLBAR_POSITION, aK as TemplateBlueprint, aL as ToolbarOrientation, aM as ToolbarSide, aN as VALIDATION_STATE, l as ValidationState, aO as graphSpecMode, aP as isBindingNode, aQ as isBindingStepSpec, aR as isDryGraphSpec, aS as isFailingPipeNode, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as problemFailingPipe, a_ as stuffDigestFromId, a$ as stuffNodeId, b0 as toolbarOrientation, b1 as toolbarSide } from '../types-DsrzH6gM.js';
1
+ import { q as GraphSpecNode, s as CardNode, t as PipeCallNode, d as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, u as GraphData, v as GraphSpecMode, p as PipeCardPayload, o as FoldToggleOptions, g as GraphNode, f as GraphEdge, e as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, l as GraphSpecNodeIoItem, i as GraphDirection, w as LayoutConfig, E as EdgeRoute, x as GraphPoint, h as GraphConfig, T as ToolbarPosition, j as GraphStyleId, a as GraphTheme, y as SimpleTitleFit, z as NodePipeType, A as StepCategory, k as PipeStatus } from '../types-DLAnYNoi.js';
2
+ export { B as ARROW_CLOSED_MARKER, H as BINDING_STEP_TYPE, I as BindingNode, J as BindingStepSpec, K as BindingStepType, M as CONTROLLER_PADDING_BOTTOM, O as CONTROLLER_PADDING_TOP, Q as CONTROLLER_PADDING_X, R as EDGE_TYPE, U as EDGE_TYPE_ROUTED, W as EdgeType, X as FOLD_MODE, Y as FieldResolution, F as FoldMode, Z as GRAPH_DIRECTION, _ as GRAPH_SPEC_MODE, $ as GRAPH_STYLE, a0 as GRAPH_THEME, a1 as GRAPH_THEME_MODE, a2 as GraphSpecEdge, a3 as GraphSpecEdgeKind, a4 as GraphSpecMeta, a5 as GraphSpecModelUsage, a6 as GraphSpecNodeIo, a7 as GraphSpecNodeTiming, a8 as GraphSpecNodeUsage, a9 as GraphSpecUsage, G as GraphThemeMode, aa as JudgmentQuestionSpec, ab as KNOWN_PIPE_TYPES, L as LabelDescriptor, ac as NODE_TYPE_CONTROLLER, ad as NODE_TYPE_PIPE_CARD, ae as NODE_TYPE_SIMPLE_DECISION, af as NODE_TYPE_SIMPLE_FRAME, ag as NODE_TYPE_SIMPLE_STEP, ah as NODE_TYPE_SIMPLE_TERMINAL, ai as NODE_TYPE_STUFF, aj as NodeKind, ak as PipeBatchBlueprint, al as PipeBlueprintBase, am as PipeComposeBlueprint, an as PipeComposeConstructBlueprint, ao as PipeComposeConstructField, ap as PipeConditionBlueprint, n as PipeControllerType, aq as PipeDocGenBlueprint, ar as PipeExtractBlueprint, as as PipeFuncBlueprint, at as PipeImgGenBlueprint, au as PipeJudgeBlueprint, av as PipeLLMBlueprint, r as PipeOperatorType, aw as PipeParallelBlueprint, ax as PipeSearchBlueprint, b as PipeSequenceBlueprint, ay as PipeSignatureBlueprint, az as PipeStructureBlueprint, aA as PipeType, c as PresenceMarker, aB as STEP_CATEGORY, aC as STUFF_ID_PREFIX, aD as SequenceStepSpec, aE as SimpleNodePayload, aF as StuffMultiplicity, aG as StuffRegistryEntry, aH as StuffRole, aI as StuffSpecInfo, S as SubPipeSpec, aJ as TOOLBAR_POSITION, aK as TemplateBlueprint, aL as ToolbarOrientation, aM as ToolbarSide, aN as VALIDATION_STATE, m as ValidationState, aO as graphSpecMode, aP as isBindingNode, aQ as isBindingStepSpec, aR as isDryGraphSpec, aS as isFailingPipeNode, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as problemFailingPipe, a_ as stuffDigestFromId, a$ as stuffNodeId, b0 as toolbarOrientation, b1 as toolbarSide } from '../types-DLAnYNoi.js';
3
3
  export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
4
4
  import { ElkNode } from 'elkjs/lib/elk-api';
5
5
  import 'mthds/errors';
@@ -459,6 +459,22 @@ declare function isGenericConcept(conceptRef: string): boolean;
459
459
  * touched: the words are the author's.
460
460
  */
461
461
  declare function sentenceCase(text: string): string;
462
+ /**
463
+ * A pipe's title in plain words: its authored description as a title
464
+ * (`sentenceCase`), or its humanized code when it has none. The simple graph
465
+ * style titles its steps this way, and the simple timeline style its lines, so
466
+ * a step reads the same in both. `fromDescription` says which it was.
467
+ */
468
+ declare function pipeTitle(description: string | null | undefined, pipeCode: string): {
469
+ title: string;
470
+ fromDescription: boolean;
471
+ };
472
+ /**
473
+ * An identifier as words inside a sentence: `humanizeIdentifier`'s words with
474
+ * their first letter in lower case, unless the first word is an acronym
475
+ * (`filing` → "filing", `cv_file` → "CV file").
476
+ */
477
+ declare function humanizeInSentence(identifier: string): string;
462
478
  /**
463
479
  * A condition's outcome as an arrow label: `english` → "English",
464
480
  * `high_priority` → "High priority", a yes-or-no test's `true` and `false` →
@@ -681,4 +697,4 @@ interface GraphStylePipeline {
681
697
  }
682
698
  declare const GRAPH_STYLE_PIPELINES: Record<GraphStyleId, GraphStylePipeline>;
683
699
 
684
- export { CardNode, ConceptInfo, type ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, DataflowAnalysis, EdgeRoute, type ElkPositionResult, FoldToggleOptions, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphConfig, GraphData, GraphDirection, GraphEdge, GraphNode, GraphNodeData, GraphPoint, GraphSpec, GraphSpecMode, GraphSpecNode, GraphSpecNodeIoItem, GraphSpecValidationError, type GraphStyleCapabilities, type GraphStyleDescriptor, GraphStyleId, type GraphStylePipeline, GraphTheme, LIGHT_PALETTE_COLORS, LayoutConfig, type LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, NodePipeType, NodeValidationSummary, PipeBlueprintUnion, PipeCallNode, PipeCardPayload, PipeStatus, ROUTE_CORNER_RADIUS_PX, ROUTE_ENDPOINT_TOLERANCE_PX, SIMPLE_DECISION_WIDTHS, SIMPLE_FOLD_DEPTH, SIMPLE_STEP_TITLE_FITS, SIMPLE_STEP_WIDE_WIDTH, SIMPLE_STEP_WIDTH, SIMPLE_TERMINAL_WIDTH, STEP_CATEGORY_BY_PIPE_TYPE, STEP_CATEGORY_WORDS, type SimpleProjection, type SimpleProjectionInput, SimpleTitleFit, StepCategory, type StuffLocation, type StyleFrameArgs, type StyleProjection, type StyleProjectionArgs, ToolbarPosition, ValidationIssue, type WrapEstimate, aggregateStatus, applyControllers, applyFolds, applySimpleFrames, applyValidationDecorations, asCardNode, asPipeCallNode, buildChildToControllerMap, buildContainmentChain, buildControllerNodes, buildDataflowAnalysis, buildDataflowGraph, buildElkGraph, buildGraph, buildPipeCardPayload, buildValidationDecorations, conceptPlainName, estimateNodeDimensions, estimateWrap, extractAbsolutePositions, extractEdgeRoutes, findCousinControllers, findStuffByDigest, fitRoute, getConceptInfo, getLayoutedElements, getPaletteColors, getPaletteForTheme, getPipeBlueprint, humanizeIdentifier, inputPortId, isGenericConcept, isGraphStyleId, outcomeLabel, outermostFoldedAncestor, outputPortId, pipeRefOf, polylineMidpoint, projectSimpleGraph, resolveConceptRef, resolveGraphStyle, resolveIssueTargetNodeId, resolveNodeBlueprint, resolveStyleMenu, roundedPolylinePath, routeLabelCenter, sentenceCase, simpleDecisionSize, simpleDefaultFolds, simpleEdgeLabelSize, simpleStepSize, simpleTerminalSize, simpleTitleFit, simpleTitleWrap, sortParentsFirst, stripDomain, textWidthPx, validateGraphSpec };
700
+ export { CardNode, ConceptInfo, type ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, DataflowAnalysis, EdgeRoute, type ElkPositionResult, FoldToggleOptions, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphConfig, GraphData, GraphDirection, GraphEdge, GraphNode, GraphNodeData, GraphPoint, GraphSpec, GraphSpecMode, GraphSpecNode, GraphSpecNodeIoItem, GraphSpecValidationError, type GraphStyleCapabilities, type GraphStyleDescriptor, GraphStyleId, type GraphStylePipeline, GraphTheme, LIGHT_PALETTE_COLORS, LayoutConfig, type LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, NodePipeType, NodeValidationSummary, PipeBlueprintUnion, PipeCallNode, PipeCardPayload, PipeStatus, ROUTE_CORNER_RADIUS_PX, ROUTE_ENDPOINT_TOLERANCE_PX, SIMPLE_DECISION_WIDTHS, SIMPLE_FOLD_DEPTH, SIMPLE_STEP_TITLE_FITS, SIMPLE_STEP_WIDE_WIDTH, SIMPLE_STEP_WIDTH, SIMPLE_TERMINAL_WIDTH, STEP_CATEGORY_BY_PIPE_TYPE, STEP_CATEGORY_WORDS, type SimpleProjection, type SimpleProjectionInput, SimpleTitleFit, StepCategory, type StuffLocation, type StyleFrameArgs, type StyleProjection, type StyleProjectionArgs, ToolbarPosition, ValidationIssue, type WrapEstimate, aggregateStatus, applyControllers, applyFolds, applySimpleFrames, applyValidationDecorations, asCardNode, asPipeCallNode, buildChildToControllerMap, buildContainmentChain, buildControllerNodes, buildDataflowAnalysis, buildDataflowGraph, buildElkGraph, buildGraph, buildPipeCardPayload, buildValidationDecorations, conceptPlainName, estimateNodeDimensions, estimateWrap, extractAbsolutePositions, extractEdgeRoutes, findCousinControllers, findStuffByDigest, fitRoute, getConceptInfo, getLayoutedElements, getPaletteColors, getPaletteForTheme, getPipeBlueprint, humanizeIdentifier, humanizeInSentence, inputPortId, isGenericConcept, isGraphStyleId, outcomeLabel, outermostFoldedAncestor, outputPortId, pipeRefOf, pipeTitle, polylineMidpoint, projectSimpleGraph, resolveConceptRef, resolveGraphStyle, resolveIssueTargetNodeId, resolveNodeBlueprint, resolveStyleMenu, roundedPolylinePath, routeLabelCenter, sentenceCase, simpleDecisionSize, simpleDefaultFolds, simpleEdgeLabelSize, simpleStepSize, simpleTerminalSize, simpleTitleFit, simpleTitleWrap, sortParentsFirst, stripDomain, textWidthPx, validateGraphSpec };
@@ -1,7 +1,5 @@
1
1
  import "../chunk-KB2DIEVF.js";
2
2
  import {
3
- GRAPH_STYLES,
4
- GRAPH_STYLE_IDS,
5
3
  GRAPH_STYLE_PIPELINES,
6
4
  GraphSpecValidationError,
7
5
  MAX_VISIBLE_CONTROLLER_CHILDREN,
@@ -31,7 +29,6 @@ import {
31
29
  buildGraph,
32
30
  buildPipeCardPayload,
33
31
  buildValidationDecorations,
34
- conceptPlainName,
35
32
  estimateNodeDimensions,
36
33
  estimateWrap,
37
34
  extractAbsolutePositions,
@@ -42,24 +39,17 @@ import {
42
39
  getConceptInfo,
43
40
  getLayoutedElements,
44
41
  getPipeBlueprint,
45
- humanizeIdentifier,
46
42
  inputPortId,
47
- isGenericConcept,
48
- isGraphStyleId,
49
- outcomeLabel,
50
43
  outermostFoldedAncestor,
51
44
  outputPortId,
52
45
  pipeRefOf,
53
46
  polylineMidpoint,
54
47
  projectSimpleGraph,
55
48
  resolveConceptRef,
56
- resolveGraphStyle,
57
49
  resolveIssueTargetNodeId,
58
50
  resolveNodeBlueprint,
59
- resolveStyleMenu,
60
51
  roundedPolylinePath,
61
52
  routeLabelCenter,
62
- sentenceCase,
63
53
  simpleDecisionSize,
64
54
  simpleDefaultFolds,
65
55
  simpleEdgeLabelSize,
@@ -68,14 +58,30 @@ import {
68
58
  simpleTitleFit,
69
59
  simpleTitleWrap,
70
60
  sortParentsFirst,
71
- stripDomain,
72
61
  textWidthPx,
73
62
  validateGraphSpec
74
- } from "../chunk-AGFLCOWW.js";
63
+ } from "../chunk-HPARBH6K.js";
64
+ import {
65
+ GRAPH_STYLES,
66
+ GRAPH_STYLE_IDS,
67
+ isGraphStyleId,
68
+ resolveGraphStyle,
69
+ resolveStyleMenu
70
+ } from "../chunk-N2F62MW7.js";
75
71
  import {
76
72
  makePipeRef,
77
73
  parsePipeRef
78
74
  } from "../chunk-2N65P32H.js";
75
+ import {
76
+ conceptPlainName,
77
+ humanizeIdentifier,
78
+ humanizeInSentence,
79
+ isGenericConcept,
80
+ outcomeLabel,
81
+ pipeTitle,
82
+ sentenceCase,
83
+ stripDomain
84
+ } from "../chunk-P6IGZVWE.js";
79
85
  import {
80
86
  DARK_PALETTE_COLORS,
81
87
  DEFAULT_GRAPH_CONFIG,
@@ -202,6 +208,7 @@ export {
202
208
  getPipeBlueprint,
203
209
  graphSpecMode,
204
210
  humanizeIdentifier,
211
+ humanizeInSentence,
205
212
  inputPortId,
206
213
  isBindingNode,
207
214
  isBindingStepSpec,
@@ -221,6 +228,7 @@ export {
221
228
  outputPortId,
222
229
  parsePipeRef,
223
230
  pipeRefOf,
231
+ pipeTitle,
224
232
  polylineMidpoint,
225
233
  problemFailingPipe,
226
234
  projectSimpleGraph,
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
- import { c as GraphSpec, d as GraphNodeData, e as GraphEdge, f as GraphNode, g as GraphConfig, h as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, j as PipeStatus, k as GraphSpecNodeIoItem, l as ValidationState, V as ValidationIssue, L as LabelDescriptor, m as PipeControllerType, n as FoldToggleOptions, N as NodeValidationSummary, o as PipeCardPayload, C as ConceptInfo, p as GraphSpecNode } from '../../types-DsrzH6gM.js';
4
- export { q as PipeOperatorType } from '../../types-DsrzH6gM.js';
2
+ import React__default from 'react';
3
+ import { d as GraphSpec, e as GraphNodeData, f as GraphEdge, g as GraphNode, h as GraphConfig, i as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, j as GraphStyleId, a as GraphTheme, k as PipeStatus, l as GraphSpecNodeIoItem, m as ValidationState, V as ValidationIssue, L as LabelDescriptor, n as PipeControllerType, o as FoldToggleOptions, N as NodeValidationSummary, p as PipeCardPayload, C as ConceptInfo, q as GraphSpecNode } from '../../types-DLAnYNoi.js';
4
+ export { r as PipeOperatorType } from '../../types-DLAnYNoi.js';
5
5
  import { PipeIOContracts, OutputForm, InputForm, SaveFiles } from '@pipelex/mthds-form';
6
6
  import { ResolveUrl, ResolveShareUrl, DownloadDisplay } from '@pipelex/mthds-form/react';
7
7
  import { Edge, Node, ReactFlowInstance } from '@xyflow/react';
@@ -230,11 +230,11 @@ interface GraphViewerProps {
230
230
  */
231
231
  statusMap?: Record<string, PipeStatus>;
232
232
  /** Called when any node is clicked with full node data. Use for detail/inspector panels. */
233
- onNodeSelect?: (nodeId: string, nodeData: GraphNodeData, event: React.MouseEvent) => void;
233
+ onNodeSelect?: (nodeId: string, nodeData: GraphNodeData, event: React__default.MouseEvent) => void;
234
234
  /** Called when the graph background (pane) is clicked. Use to dismiss detail panels. */
235
235
  onPaneClick?: () => void;
236
236
  /** Render extra content below the built-in detail panel content for the selected node. */
237
- renderDetailExtra?: (nodeId: string, nodeData: GraphNodeData) => React.ReactNode;
237
+ renderDetailExtra?: (nodeId: string, nodeData: GraphNodeData) => React__default.ReactNode;
238
238
  /**
239
239
  * Turns the runtime's own `pipelex-storage://…` reference into a URL a
240
240
  * browser can fetch, so files in a result actually paint.
@@ -309,7 +309,7 @@ declare function applyStatusOverrides(nodes: AppNode[], statusMap: Record<string
309
309
  */
310
310
  declare function GraphViewer(props: GraphViewerProps): react_jsx_runtime.JSX.Element;
311
311
 
312
- declare function renderLabel(desc: LabelDescriptor): React.ReactNode;
312
+ declare function renderLabel(desc: LabelDescriptor): React__default.ReactNode;
313
313
  /** Convert label descriptors to React elements on all nodes */
314
314
  declare function hydrateLabels(nodes: GraphNode[]): GraphNode[];
315
315
 
@@ -368,7 +368,7 @@ declare function detectSystemTheme(): GraphTheme;
368
368
  declare function useSystemTheme(injected?: GraphTheme): GraphTheme;
369
369
 
370
370
  interface ControllerGroupData {
371
- label?: React.ReactNode;
371
+ label?: React__default.ReactNode;
372
372
  pipeType?: PipeControllerType;
373
373
  childCount?: number;
374
374
  isCollapsed?: boolean;
@@ -402,7 +402,7 @@ declare function PipeCardNode({ data }: PipeCardNodeProps): react_jsx_runtime.JS
402
402
  interface PipeCardBaseProps {
403
403
  data: PipeCardData;
404
404
  /** Extra content rendered below the I/O section (for per-type customization) */
405
- children?: React.ReactNode;
405
+ children?: React__default.ReactNode;
406
406
  }
407
407
  declare function PipeCardBase({ data, children }: PipeCardBaseProps): react_jsx_runtime.JSX.Element;
408
408
 
@@ -548,13 +548,13 @@ declare function StuffResultPanel({ pipeIoContracts, outputForm, inputForm, stuf
548
548
  interface DetailPanelProps {
549
549
  isOpen: boolean;
550
550
  onClose: () => void;
551
- children: React.ReactNode;
551
+ children: React__default.ReactNode;
552
552
  /** Panel width in pixels. When provided, overrides the CSS default. */
553
553
  width?: number;
554
554
  /** Whether a resize drag is in progress. Disables CSS transition during drag. */
555
555
  isDragging?: boolean;
556
556
  /** Mouse-down handler for the resize handle. When provided, the handle is rendered. */
557
- onResizeHandleMouseDown?: (e: React.MouseEvent) => void;
557
+ onResizeHandleMouseDown?: (e: React__default.MouseEvent) => void;
558
558
  /** Close panel on Escape key. Defaults to true. */
559
559
  closeOnEscape?: boolean;
560
560
  }
@@ -582,7 +582,7 @@ interface ConceptDetailPanelProps {
582
582
  * structure table alone and no tabs, which is what a viewer that has not been
583
583
  * given a renderer honestly has to offer.
584
584
  */
585
- renderData?: () => React.ReactNode;
585
+ renderData?: () => React__default.ReactNode;
586
586
  /**
587
587
  * Identity of the selected node/instance (e.g. the graph node id). Drives
588
588
  * the Data/Structure tab reset: a new `instanceKey` remounts the body so
@@ -602,7 +602,7 @@ interface UseResizableOptions {
602
602
  /** Maximum allowed width in pixels (also clamped to 60% of container). */
603
603
  maxWidth: number;
604
604
  /** Container element ref for percentage-based max-width calculation. */
605
- containerRef?: React.RefObject<HTMLElement | null>;
605
+ containerRef?: React__default.RefObject<HTMLElement | null>;
606
606
  }
607
607
  interface UseResizableResult {
608
608
  /** Current panel width in pixels. */
@@ -610,7 +610,7 @@ interface UseResizableResult {
610
610
  /** Whether a resize drag is in progress. */
611
611
  isDragging: boolean;
612
612
  /** Attach to the resize handle's onMouseDown. */
613
- handleMouseDown: (e: React.MouseEvent) => void;
613
+ handleMouseDown: (e: React__default.MouseEvent) => void;
614
614
  }
615
615
  declare function useResizable({ defaultWidth, minWidth, maxWidth, containerRef, }: UseResizableOptions): UseResizableResult;
616
616