@sealcode/sealgen 0.17.26 → 0.17.27

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.
@@ -3,4 +3,4 @@ export declare function toggleModal(options: {
3
3
  name: string;
4
4
  contentWrapped: (id: string) => FlatTemplatable | Promise<FlatTemplatable>;
5
5
  contentUnwrapped: (id: string) => FlatTemplatable | Promise<FlatTemplatable>;
6
- }): Promise<string>;
6
+ }): string | Promise<string>;
@@ -17,5 +17,5 @@ export declare class CheckboxedListInput extends FormFieldControl {
17
17
  value: string;
18
18
  label?: string;
19
19
  checked: boolean;
20
- }): Promise<string>;
20
+ }): string | Promise<string>;
21
21
  }
@@ -14,7 +14,7 @@ export declare class CollapsibleFieldGroup extends FieldGroup {
14
14
  options: CollapsibleFieldGroupOptions;
15
15
  collapseID: string;
16
16
  constructor(controls: FormControl[], options?: CollapsibleFieldGroupOptions);
17
- getGroupLabelProps(): Promise<string>;
17
+ getGroupLabelProps(): string | Promise<string>;
18
18
  preLabelContainer(): FlatTemplatable;
19
19
  postLabel(): FlatTemplatable;
20
20
  }
@@ -16,6 +16,6 @@ export declare class DerivedFrame extends Derived<{
16
16
  generateFrameContent: (ctx: FormControlContext, args: ParsedUrlQuery) => Promise<FlatTemplatable>;
17
17
  frame_id: string;
18
18
  constructor(frame_name: string, fields: FormField[], generateFrameContent: (ctx: FormControlContext, args: ParsedUrlQuery) => Promise<FlatTemplatable>, frame_id?: string);
19
- renderBackendResponseFrame(_ctx: Context, content: FlatTemplatable): Promise<string>;
19
+ renderBackendResponseFrame(_ctx: Context, content: FlatTemplatable): string | Promise<string>;
20
20
  mount(router: Router): void;
21
21
  }
@@ -22,7 +22,7 @@ export declare class MultipleFiles extends FormFieldControl {
22
22
  addFileAssociation(ctx: Context, file: FilePointer): Promise<void>;
23
23
  getFrameRelativeURL(): string;
24
24
  getFrameID(): string;
25
- renderFrame(_ctx: Context, content?: FlatTemplatable): Promise<string>;
25
+ renderFrame(_ctx: Context, content?: FlatTemplatable): string | Promise<string>;
26
26
  render(fctx: FormControlContext): FlatTemplatable | Promise<FlatTemplatable>;
27
27
  getReferencingCollection(): Collection;
28
28
  getFileField(): SealiousField<any> | null;
@@ -5,7 +5,7 @@ function getRequiredClass(isRequired) {
5
5
  function getModifierClasses(modifiers) {
6
6
  return modifiers.map((m) => "form-input__wrapper--" + m).join(" ");
7
7
  }
8
- function inputWrapper(type, modifiers, input) {
8
+ async function inputWrapper(type, modifiers, input) {
9
9
  return tempstream`<div
10
10
  class="form-input form-input--type-${type} form-input__wrapper ${getModifierClasses(
11
11
  modifiers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.17.26",
3
+ "version": "0.17.27",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -79,7 +79,7 @@
79
79
  "prompts": "^2.4.2",
80
80
  "recursive-readdir": "^2.2.3",
81
81
  "tempfile": "^5.0.0",
82
- "tempstream": "^0.4.4",
82
+ "tempstream": "^0.4.6",
83
83
  "tiny-glob": "^0.2.9",
84
84
  "ws": "^8.16.0",
85
85
  "yargs": "^17.6.2"
@@ -8,7 +8,7 @@ function getModifierClasses(modifiers: string[]) {
8
8
  return modifiers.map((m) => "form-input__wrapper--" + m).join(" ");
9
9
  }
10
10
 
11
- export function inputWrapper(
11
+ export async function inputWrapper(
12
12
  type: string,
13
13
  modifiers: string[],
14
14
  input: FlatTemplatable