@teleporthq/teleport-plugin-next-workflows 0.43.44 → 0.43.45
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/cjs/executor-generator.d.ts.map +1 -1
- package/dist/cjs/executor-generator.js +26 -1
- package/dist/cjs/executor-generator.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/workflow-component-plugin.d.ts.map +1 -1
- package/dist/cjs/workflow-component-plugin.js +10 -1
- package/dist/cjs/workflow-component-plugin.js.map +1 -1
- package/dist/esm/executor-generator.d.ts.map +1 -1
- package/dist/esm/executor-generator.js +26 -1
- package/dist/esm/executor-generator.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/workflow-component-plugin.d.ts.map +1 -1
- package/dist/esm/workflow-component-plugin.js +10 -1
- package/dist/esm/workflow-component-plugin.js.map +1 -1
- package/package.json +2 -2
- package/src/executor-generator.ts +26 -1
- package/src/workflow-component-plugin.ts +14 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor-generator.d.ts","sourceRoot":"","sources":["../../src/executor-generator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,QAAO,
|
|
1
|
+
{"version":3,"file":"executor-generator.d.ts","sourceRoot":"","sources":["../../src/executor-generator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,QAAO,MAimCjD,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAO,MA2d5C,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAO,MAK5C,CAAA"}
|
|
@@ -40,9 +40,34 @@ function resolveContextRef(ref, context) {
|
|
|
40
40
|
let result = nodeOutput;
|
|
41
41
|
const startIdx = (ref.path.length > 0 && ref.path[0] === ref.nodeId) ? 1 : 0;
|
|
42
42
|
for (let i = startIdx; i < ref.path.length; i++) {
|
|
43
|
-
if (result === undefined || result === null)
|
|
43
|
+
if (result === undefined || result === null) { result = undefined; break; }
|
|
44
44
|
result = result[ref.path[i]];
|
|
45
45
|
}
|
|
46
|
+
// Fallback for form-submit trigger bindings authored without the formData
|
|
47
|
+
// level: the trigger's runtime output nests submitted fields under formData
|
|
48
|
+
// ({ formData: { field: value }, formId, ... }), but the editor/AI has
|
|
49
|
+
// historically emitted paths that read the field directly off the trigger
|
|
50
|
+
// ([triggerId, 'class']). When the direct walk misses AND the node output
|
|
51
|
+
// carries a formData object that holds the first path segment, resolve
|
|
52
|
+
// through it instead of returning undefined — otherwise data-create-item
|
|
53
|
+
// INSERTs NULL for the column and violates not-null constraints. The
|
|
54
|
+
// hasOwnProperty gate keeps this from inventing values for genuinely
|
|
55
|
+
// missing keys.
|
|
56
|
+
if (result === undefined && startIdx < ref.path.length) {
|
|
57
|
+
const formDataBag = nodeOutput.formData;
|
|
58
|
+
if (
|
|
59
|
+
formDataBag &&
|
|
60
|
+
typeof formDataBag === 'object' &&
|
|
61
|
+
Object.prototype.hasOwnProperty.call(formDataBag, ref.path[startIdx])
|
|
62
|
+
) {
|
|
63
|
+
let fallback = formDataBag;
|
|
64
|
+
for (let j = startIdx; j < ref.path.length; j++) {
|
|
65
|
+
if (fallback === undefined || fallback === null) return undefined;
|
|
66
|
+
fallback = fallback[ref.path[j]];
|
|
67
|
+
}
|
|
68
|
+
return fallback;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
46
71
|
return result;
|
|
47
72
|
}
|
|
48
73
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor-generator.js","sourceRoot":"","sources":["../../src/executor-generator.ts"],"names":[],"mappings":";;;AAAO,MAAM,8BAA8B,GAAG,GAAW,EAAE;IACzD,OAAO
|
|
1
|
+
{"version":3,"file":"executor-generator.js","sourceRoot":"","sources":["../../src/executor-generator.ts"],"names":[],"mappings":";;;AAAO,MAAM,8BAA8B,GAAG,GAAW,EAAE;IACzD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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