@mat3ra/wode 2026.7.9-0 → 2026.7.29-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.
|
@@ -9,7 +9,7 @@ const made_1 = require("@mat3ra/made");
|
|
|
9
9
|
const ApplicationContextMixin_1 = __importDefault(require("../../mixins/ApplicationContextMixin"));
|
|
10
10
|
const MaterialContextMixin_1 = __importDefault(require("../../mixins/MaterialContextMixin"));
|
|
11
11
|
const JSONSchemaDataProvider_1 = __importDefault(require("../base/JSONSchemaDataProvider"));
|
|
12
|
-
const defaultPoint = "
|
|
12
|
+
const defaultPoint = "Γ";
|
|
13
13
|
const defaultSteps = 10;
|
|
14
14
|
const jsonSchemaId = "context-providers-directory/points-path-data-provider";
|
|
15
15
|
class MixinsContextProvider extends JSONSchemaDataProvider_1.default {
|
|
@@ -33,14 +33,24 @@ class ExecutionUnitInput extends entity_1.InMemoryEntity {
|
|
|
33
33
|
try {
|
|
34
34
|
const rendered = nunjucks_1.default.compile(this.template.content, env).render(renderingContext);
|
|
35
35
|
this.rendered = rendered || this.template.content;
|
|
36
|
-
return this;
|
|
37
36
|
}
|
|
38
37
|
catch (error) {
|
|
38
|
+
// Can happen transiently right after switching to a multi-material workflow (e.g.
|
|
39
|
+
// interface left/right units keyed by MATERIAL_INDEX "1"/"2"), before the job's
|
|
40
|
+
// materials have been updated to match: `input.perMaterial[MATERIAL_INDEX]` is
|
|
41
|
+
// undefined until enough materials are assigned. This throwing used to propagate out
|
|
42
|
+
// of `ExecutionUnit.render()` and up through the JOB_WORKFLOW_SYNC/JOB_UPDATE
|
|
43
|
+
// reducers, aborting the whole dispatch - so the workflow selection itself silently
|
|
44
|
+
// never applied to the job (job-designer's `onSelectWorkflowsSubmit` just logs the
|
|
45
|
+
// rejected promise). Fall back to the raw template so the reducer can complete;
|
|
46
|
+
// render() runs again on the next job/material update and renders correctly once
|
|
47
|
+
// materials line up.
|
|
39
48
|
console.error("Error rendering template", this.template.content);
|
|
40
49
|
console.error("Rendering context: ", JSON.stringify(renderingContext));
|
|
41
50
|
console.error("Error", error);
|
|
42
|
-
|
|
51
|
+
this.rendered = this.template.content;
|
|
43
52
|
}
|
|
53
|
+
return this;
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
56
|
(0, ExecutionUnitInputSchemaMixin_1.executionUnitInputSchemaMixin)(ExecutionUnitInput.prototype);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/wode",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.29-1",
|
|
4
4
|
"description": "WOrkflow DEfinitions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha --recursive --bail --require ts-node/register 'tests/js/**/*.ts'",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@mat3ra/code": "2026.5.27-0",
|
|
45
45
|
"@mat3ra/esse": "2026.6.16-0",
|
|
46
46
|
"@mat3ra/ide": "2026.5.28-0",
|
|
47
|
-
"@mat3ra/made": "2026.
|
|
47
|
+
"@mat3ra/made": "2026.7.29-0",
|
|
48
48
|
"@mat3ra/mode": "2026.5.29-1",
|
|
49
49
|
"@mat3ra/prode": "2026.5.28-0",
|
|
50
50
|
"@mat3ra/standata": "2026.5.28-0",
|
|
51
51
|
"@mat3ra/tsconfig": "^2024.6.3-0",
|
|
52
|
-
"@mat3ra/utils": "
|
|
52
|
+
"@mat3ra/utils": "2026.7.9-0",
|
|
53
53
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
54
54
|
"@typescript-eslint/parser": "^5.62.0",
|
|
55
55
|
"@types/nunjucks": "^3.2.6",
|
|
@@ -19,7 +19,7 @@ import materialContextMixin, {
|
|
|
19
19
|
} from "../../mixins/MaterialContextMixin";
|
|
20
20
|
import JSONSchemaDataProvider, { type JinjaExternalContext } from "../base/JSONSchemaDataProvider";
|
|
21
21
|
|
|
22
|
-
const defaultPoint = "
|
|
22
|
+
const defaultPoint = "Γ" as const;
|
|
23
23
|
const defaultSteps = 10 as const;
|
|
24
24
|
|
|
25
25
|
export type PointsPathFormDataProviderData = PointsPathDataProviderSchema;
|
|
@@ -55,14 +55,24 @@ class ExecutionUnitInput extends InMemoryEntity implements Schema {
|
|
|
55
55
|
const rendered = nunjucks.compile(this.template.content, env).render(renderingContext);
|
|
56
56
|
|
|
57
57
|
this.rendered = rendered || this.template.content;
|
|
58
|
-
|
|
59
|
-
return this;
|
|
60
58
|
} catch (error) {
|
|
59
|
+
// Can happen transiently right after switching to a multi-material workflow (e.g.
|
|
60
|
+
// interface left/right units keyed by MATERIAL_INDEX "1"/"2"), before the job's
|
|
61
|
+
// materials have been updated to match: `input.perMaterial[MATERIAL_INDEX]` is
|
|
62
|
+
// undefined until enough materials are assigned. This throwing used to propagate out
|
|
63
|
+
// of `ExecutionUnit.render()` and up through the JOB_WORKFLOW_SYNC/JOB_UPDATE
|
|
64
|
+
// reducers, aborting the whole dispatch - so the workflow selection itself silently
|
|
65
|
+
// never applied to the job (job-designer's `onSelectWorkflowsSubmit` just logs the
|
|
66
|
+
// rejected promise). Fall back to the raw template so the reducer can complete;
|
|
67
|
+
// render() runs again on the next job/material update and renders correctly once
|
|
68
|
+
// materials line up.
|
|
61
69
|
console.error("Error rendering template", this.template.content);
|
|
62
70
|
console.error("Rendering context: ", JSON.stringify(renderingContext));
|
|
63
71
|
console.error("Error", error);
|
|
64
|
-
|
|
72
|
+
this.rendered = this.template.content;
|
|
65
73
|
}
|
|
74
|
+
|
|
75
|
+
return this;
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
|