@pipelex/mthds-ui 0.55.0 → 0.56.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.
- package/dist/{chunk-PKCT3ZNX.js → chunk-7QUQJW6Q.js} +36 -6
- package/dist/chunk-7QUQJW6Q.js.map +1 -0
- package/dist/form/react/index.d.ts +3 -3
- package/dist/form/react/index.js.map +1 -1
- package/dist/graph/index.js +1 -1
- package/dist/graph/react/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/standalone/graph-standalone.html +112 -112
- package/dist/standalone/graph-viewer.js +112 -112
- package/package.json +2 -2
- package/dist/chunk-PKCT3ZNX.js.map +0 -1
|
@@ -2013,8 +2013,33 @@ function estimateWrap(text, lineWidthPx, fontPx, maxLines) {
|
|
|
2013
2013
|
return { lines, drawnLines, clamped: lines > maxLines };
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
-
// src/graph/styles/
|
|
2016
|
+
// src/graph/styles/nativeConcepts.ts
|
|
2017
2017
|
var NATIVE_DOMAIN = "native";
|
|
2018
|
+
var STORED_VALUE_NATIVES = /* @__PURE__ */ new Set(["Text", "Markdown", "Html", "JSON"]);
|
|
2019
|
+
var STORED_VALUE_REFERENCE_MEMBERS = /* @__PURE__ */ new Set([
|
|
2020
|
+
"url",
|
|
2021
|
+
"size",
|
|
2022
|
+
"mime_type",
|
|
2023
|
+
"preview"
|
|
2024
|
+
]);
|
|
2025
|
+
function isStoredValueConcept(graphspec, concept) {
|
|
2026
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2027
|
+
let current = concept;
|
|
2028
|
+
while (current && !seen.has(current)) {
|
|
2029
|
+
seen.add(current);
|
|
2030
|
+
if (current.domain_code === NATIVE_DOMAIN) return STORED_VALUE_NATIVES.has(current.code);
|
|
2031
|
+
const parent = current.refines;
|
|
2032
|
+
if (!parent) return false;
|
|
2033
|
+
const resolved = resolveConceptRef(graphspec, parent);
|
|
2034
|
+
if (!resolved) {
|
|
2035
|
+
return parent.startsWith(`${NATIVE_DOMAIN}.`) && STORED_VALUE_NATIVES.has(stripDomain(parent));
|
|
2036
|
+
}
|
|
2037
|
+
current = resolved;
|
|
2038
|
+
}
|
|
2039
|
+
return false;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
// src/graph/styles/simpleStyle.ts
|
|
2018
2043
|
var SIMPLE_STEP_WIDTH = 160;
|
|
2019
2044
|
var SIMPLE_STEP_WIDE_WIDTH = 200;
|
|
2020
2045
|
var STEP_PADDING_X = 12;
|
|
@@ -3009,7 +3034,7 @@ function buildSimpleNodeDetail(input, target) {
|
|
|
3009
3034
|
nodeId: node.id,
|
|
3010
3035
|
role,
|
|
3011
3036
|
value: located,
|
|
3012
|
-
fields:
|
|
3037
|
+
fields: concept ? conceptFields(graphspec, concept) : []
|
|
3013
3038
|
};
|
|
3014
3039
|
}
|
|
3015
3040
|
const spec = specById.get(node.id);
|
|
@@ -3209,10 +3234,15 @@ function decisionOutcomes(graphspec, decision, decisionRuns, context) {
|
|
|
3209
3234
|
function isOutcomeEnd(pipeRef) {
|
|
3210
3235
|
return pipeRef === "fail" || pipeRef === "continue";
|
|
3211
3236
|
}
|
|
3212
|
-
function conceptFields(
|
|
3213
|
-
|
|
3237
|
+
function conceptFields(graphspec, concept) {
|
|
3238
|
+
var _a;
|
|
3239
|
+
const properties = (_a = concept.json_schema) == null ? void 0 : _a.properties;
|
|
3214
3240
|
if (!properties) return [];
|
|
3215
|
-
|
|
3241
|
+
const storedValue = isStoredValueConcept(graphspec, concept);
|
|
3242
|
+
const entries = Object.entries(properties).filter(
|
|
3243
|
+
([name]) => !(storedValue && STORED_VALUE_REFERENCE_MEMBERS.has(name))
|
|
3244
|
+
);
|
|
3245
|
+
return entries.map(([name, field]) => {
|
|
3216
3246
|
const description = typeof field.description === "string" ? field.description.trim() : void 0;
|
|
3217
3247
|
return description ? { title: humanizeIdentifier(name), description } : { title: humanizeIdentifier(name) };
|
|
3218
3248
|
});
|
|
@@ -3282,4 +3312,4 @@ export {
|
|
|
3282
3312
|
GRAPH_STYLE_PIPELINES,
|
|
3283
3313
|
buildSimpleNodeDetail
|
|
3284
3314
|
};
|
|
3285
|
-
//# sourceMappingURL=chunk-
|
|
3315
|
+
//# sourceMappingURL=chunk-7QUQJW6Q.js.map
|