@teamkeel/functions-runtime 0.420.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.d.cts CHANGED
@@ -356,6 +356,7 @@ type PageOptions<C extends FlowConfig, A extends PageActions[], T extends UIElem
356
356
  validate?: ValidateFn<ExtractFormData<T>>;
357
357
  actions?: A;
358
358
  allowBack?: boolean;
359
+ fullWidth?: boolean;
359
360
  };
360
361
  type UiPage<C extends FlowConfig> = <T extends UIElements, const A extends PageActions[] = []>(name: string, options: PageOptions<C, A, T>) => Promise<A["length"] extends 0 ? ExtractFormData<T> : {
361
362
  data: ExtractFormData<T>;
@@ -504,6 +505,7 @@ type CompleteOptions<C extends FlowConfig, I> = {
504
505
  * Title and description will be shown in a notification if provided.
505
506
  * If set, you cannot return content as this will not be shown. */
506
507
  autoClose?: boolean;
508
+ fullWidth?: boolean;
507
509
  /** Restart the flow once complete.
508
510
  * Title and description will be shown in a notification if provided.
509
511
  * If set, the flow will be restarted with the inputs provided.
@@ -520,6 +522,7 @@ type CompleteOptions<C extends FlowConfig, I> = {
520
522
  } | {
521
523
  autoClose?: false;
522
524
  content?: DisplayElementResponse[];
525
+ fullWidth?: boolean;
523
526
  });
524
527
  type Complete<C extends FlowConfig, I> = (options: CompleteOptions<C, I>) => CompleteOptions<C, I> & {
525
528
  __type: "ui.complete";
package/dist/index.d.ts CHANGED
@@ -356,6 +356,7 @@ type PageOptions<C extends FlowConfig, A extends PageActions[], T extends UIElem
356
356
  validate?: ValidateFn<ExtractFormData<T>>;
357
357
  actions?: A;
358
358
  allowBack?: boolean;
359
+ fullWidth?: boolean;
359
360
  };
360
361
  type UiPage<C extends FlowConfig> = <T extends UIElements, const A extends PageActions[] = []>(name: string, options: PageOptions<C, A, T>) => Promise<A["length"] extends 0 ? ExtractFormData<T> : {
361
362
  data: ExtractFormData<T>;
@@ -504,6 +505,7 @@ type CompleteOptions<C extends FlowConfig, I> = {
504
505
  * Title and description will be shown in a notification if provided.
505
506
  * If set, you cannot return content as this will not be shown. */
506
507
  autoClose?: boolean;
508
+ fullWidth?: boolean;
507
509
  /** Restart the flow once complete.
508
510
  * Title and description will be shown in a notification if provided.
509
511
  * If set, the flow will be restarted with the inputs provided.
@@ -520,6 +522,7 @@ type CompleteOptions<C extends FlowConfig, I> = {
520
522
  } | {
521
523
  autoClose?: false;
522
524
  content?: DisplayElementResponse[];
525
+ fullWidth?: boolean;
523
526
  });
524
527
  type Complete<C extends FlowConfig, I> = (options: CompleteOptions<C, I>) => CompleteOptions<C, I> & {
525
528
  __type: "ui.complete";
package/dist/index.js CHANGED
@@ -2511,7 +2511,8 @@ async function page(options, data, action) {
2511
2511
  }),
2512
2512
  hasValidationErrors,
2513
2513
  validationError,
2514
- allowBack: options.allowBack
2514
+ allowBack: options.allowBack,
2515
+ fullWidth: options.fullWidth
2515
2516
  },
2516
2517
  hasValidationErrors
2517
2518
  };
@@ -3251,6 +3252,7 @@ async function complete(options) {
3251
3252
  description: options.description,
3252
3253
  content: contentUiConfig || [],
3253
3254
  autoClose: options.autoClose,
3255
+ fullWidth: options.fullWidth,
3254
3256
  allowRestart: typeof options.allowRestart === "boolean" ? options.allowRestart ? { inputs: void 0 } : void 0 : options.allowRestart
3255
3257
  };
3256
3258
  }