@teamkeel/functions-runtime 0.419.0 → 0.420.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.
- package/dist/index.cjs +25 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -786,9 +786,9 @@ var InlineFile = class _InlineFile {
|
|
|
786
786
|
const mime = info.split(";")[0];
|
|
787
787
|
const name = info.split(";")[1].split("=")[1];
|
|
788
788
|
const buffer = Buffer.from(data, "base64");
|
|
789
|
-
const
|
|
790
|
-
|
|
791
|
-
return
|
|
789
|
+
const file2 = new _InlineFile({ filename: name, contentType: mime });
|
|
790
|
+
file2.write(buffer);
|
|
791
|
+
return file2;
|
|
792
792
|
}
|
|
793
793
|
// Gets size of the file's contents in bytes
|
|
794
794
|
get size() {
|
|
@@ -2541,7 +2541,8 @@ async function page(options, data, action) {
|
|
|
2541
2541
|
}),
|
|
2542
2542
|
hasValidationErrors,
|
|
2543
2543
|
validationError,
|
|
2544
|
-
allowBack: options.allowBack
|
|
2544
|
+
allowBack: options.allowBack,
|
|
2545
|
+
fullWidth: options.fullWidth
|
|
2545
2546
|
},
|
|
2546
2547
|
hasValidationErrors
|
|
2547
2548
|
};
|
|
@@ -2969,6 +2970,23 @@ var scan = /* @__PURE__ */ __name((name, options) => {
|
|
|
2969
2970
|
};
|
|
2970
2971
|
}, "scan");
|
|
2971
2972
|
|
|
2973
|
+
// src/flows/ui/elements/display/file.ts
|
|
2974
|
+
var file = /* @__PURE__ */ __name(async (options) => {
|
|
2975
|
+
const title = options.title || options.file.filename;
|
|
2976
|
+
const url = await options.file.getPresignedUrl();
|
|
2977
|
+
const metadata = await options.file.toJSON();
|
|
2978
|
+
return {
|
|
2979
|
+
uiConfig: {
|
|
2980
|
+
__type: "ui.display.file",
|
|
2981
|
+
title,
|
|
2982
|
+
file: metadata ? {
|
|
2983
|
+
url: url?.toString() || "",
|
|
2984
|
+
...metadata
|
|
2985
|
+
} : void 0
|
|
2986
|
+
}
|
|
2987
|
+
};
|
|
2988
|
+
}, "file");
|
|
2989
|
+
|
|
2972
2990
|
// src/flows/index.ts
|
|
2973
2991
|
var STEP_STATUS = /* @__PURE__ */ ((STEP_STATUS2) => {
|
|
2974
2992
|
STEP_STATUS2["NEW"] = "NEW";
|
|
@@ -3219,7 +3237,8 @@ function createFlowContext(runId, data, action, callback, element, spanId, ctx)
|
|
|
3219
3237
|
code,
|
|
3220
3238
|
grid,
|
|
3221
3239
|
list,
|
|
3222
|
-
keyValue
|
|
3240
|
+
keyValue,
|
|
3241
|
+
file
|
|
3223
3242
|
},
|
|
3224
3243
|
select: {
|
|
3225
3244
|
one: selectOne,
|
|
@@ -3263,6 +3282,7 @@ async function complete(options) {
|
|
|
3263
3282
|
description: options.description,
|
|
3264
3283
|
content: contentUiConfig || [],
|
|
3265
3284
|
autoClose: options.autoClose,
|
|
3285
|
+
fullWidth: options.fullWidth,
|
|
3266
3286
|
allowRestart: typeof options.allowRestart === "boolean" ? options.allowRestart ? { inputs: void 0 } : void 0 : options.allowRestart
|
|
3267
3287
|
};
|
|
3268
3288
|
}
|